@pie-element/drawing-response 12.1.2-next.26 → 12.1.2-next.29
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/dist/browser/{MenuItem-KxyPutyS.js → MenuItem-BlSbsCsJ.js} +1880 -1884
- package/dist/browser/MenuItem-BlSbsCsJ.js.map +1 -0
- package/dist/browser/author/index.js +16 -10
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{MenuItem-BaQrEmcj.js → MenuItem-iPQBRj-N.js} +1880 -1884
- package/dist/browser/editor-runtime/MenuItem-iPQBRj-N.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +16 -10
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +3 -3
- package/dist/index.iife.js +40 -40
- package/package.json +10 -10
- package/dist/browser/MenuItem-KxyPutyS.js.map +0 -1
- package/dist/browser/editor-runtime/MenuItem-BaQrEmcj.js.map +0 -1
package/dist/index.iife.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
this.DrawingResponseElement=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)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`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ee(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N={current:null},te={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:te,ReactCurrentOwner:C};function F(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,e.act=F,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ee}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=te.transition;te.transition={};try{e()}finally{te.transition=t}},e.unstable_act=F,e.useCallback=function(e,t){return N.current.useCallback(e,t)},e.useContext=function(e){return N.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return N.current.useDeferredValue(e)},e.useEffect=function(e,t){return N.current.useEffect(e,t)},e.useId=function(){return N.current.useId()},e.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return N.current.useMemo(e,t)},e.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},e.useRef=function(e){return N.current.useRef(e)},e.useState=function(e){return N.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return N.current.useTransition()},e.version=`18.3.1`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&ee(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ee(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function ee(t,n){w=g(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(){m||p||(m=!0,M(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`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},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,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ee(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p(),n=h();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};function m(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)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}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(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){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`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(b,x);y[t]=new v(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(b,x);y[t]=new v(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(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?m(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),k=Symbol.for(`react.provider`),A=Symbol.for(`react.context`),j=Symbol.for(`react.forward_ref`),M=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),N=Symbol.for(`react.memo`),te=Symbol.for(`react.lazy`),P=Symbol.for(`react.offscreen`),F=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=F&&e[F]||e[`@@iterator`],typeof e==`function`?e:null)}var I=Object.assign,re;function ie(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``}return`
|
|
2
|
-
`+
|
|
1
|
+
this.DrawingResponseElement=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)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`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function k(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+k(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(ee,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+k(s,l);c+=A(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+k(s,l++),c+=A(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function j(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var M={current:null},ne={transition:null},N={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:ne,ReactCurrentOwner:C};function P(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,e.act=P,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ne.transition;ne.transition={};try{e()}finally{ne.transition=t}},e.unstable_act=P,e.useCallback=function(e,t){return M.current.useCallback(e,t)},e.useContext=function(e){return M.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return M.current.useDeferredValue(e)},e.useEffect=function(e,t){return M.current.useEffect(e,t)},e.useId=function(){return M.current.useId()},e.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return M.current.useMemo(e,t)},e.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},e.useRef=function(e){return M.current.useRef(e)},e.useState=function(e){return M.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return M.current.useTransition()},e.version=`18.3.1`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,j(x);else{var t=n(l);t!==null&&te(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&te(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?ee():(S=!1,C=null)}}else S=!1}var ee;if(typeof v==`function`)ee=function(){v(O)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=O,ee=function(){A.postMessage(null)}}else ee=function(){g(O,0)};function j(e){C=e,S||(S=!0,ee())}function te(t,n){w=g(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(){m||p||(m=!0,j(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`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},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,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,te(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,j(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p(),n=h();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};function m(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)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}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(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){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`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(b,x);y[t]=new v(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(b,x);y[t]=new v(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(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?m(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),ee=Symbol.for(`react.provider`),k=Symbol.for(`react.context`),A=Symbol.for(`react.forward_ref`),j=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),M=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),N=Symbol.for(`react.offscreen`),P=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=P&&e[P]||e[`@@iterator`],typeof e==`function`?e:null)}var F=Object.assign,ie;function ae(e){if(ie===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ie=t&&t[1]||``}return`
|
|
2
|
+
`+ie+e}var oe=!1;function se(e,t){if(!e||oe)return``;oe=!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()}}),typeof Reflect==`object`&&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&&typeof t.stack==`string`){for(var i=t.stack.split(`
|
|
3
3
|
`),a=r.stack.split(`
|
|
4
4
|
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
|
|
5
|
-
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ie(e):``}function se(e){switch(e.tag){case 5:return ie(e.type);case 16:return ie(`Lazy`);case 13:return ie(`Suspense`);case 19:return ie(`SuspenseList`);case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return``}}function ce(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case M:return`Suspense`;case ee:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case A:return(e.displayName||`Context`)+`.Consumer`;case k:return(e._context.displayName||`Context`)+`.Provider`;case j:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case N:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case te:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function le(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=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ce(t);case 8:return t===D?`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(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function ue(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function de(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function fe(e){var t=de(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.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]}}}}function pe(e){e._valueTracker||=fe(e)}function me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=de(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function he(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ge(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _e(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=ue(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function ve(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function ye(e,t){ve(e,t);var n=ue(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?xe(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&xe(e,t.type,ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function be(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function xe(e,t,n){(t!==`number`||he(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Se=Array.isArray;function Ce(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+ue(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function we(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return I({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Te(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Se(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:ue(n)}}function Ee(e,t){var n=ue(t.value),r=ue(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Oe(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 ke(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Oe(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ae,je=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ae||=document.createElement(`div`),Ae.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ne={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},Pe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ne).forEach(function(e){Pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ne[t]=Ne[e]})});function Fe(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ne.hasOwnProperty(e)&&Ne[e]?(``+t).trim():t+`px`}function Ie(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Fe(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Le=I({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 Re(e,t){if(t){if(Le[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function ze(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;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 Be=null;function Ve(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var He=null,Ue=null,We=null;function Ge(e){if(e=Hi(e)){if(typeof He!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Wi(t),He(e.stateNode,e.type,t))}}function Ke(e){Ue?We?We.push(e):We=[e]:Ue=e}function qe(){if(Ue){var e=Ue,t=We;if(We=Ue=null,Ge(e),t)for(e=0;e<t.length;e++)Ge(t[e])}}function Je(e,t){return e(t)}function Ye(){}var Xe=!1;function Ze(e,t,n){if(Xe)return e(t,n);Xe=!0;try{return Je(e,t,n)}finally{Xe=!1,(Ue!==null||We!==null)&&(Ye(),qe())}}function Qe(e,t){var n=e.stateNode;if(n===null)return null;var i=Wi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var $e=!1;if(c)try{var et={};Object.defineProperty(et,"passive",{get:function(){$e=!0}}),window.addEventListener(`test`,et,et),window.removeEventListener(`test`,et,et)}catch{$e=!1}function tt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var L=!1,R=null,nt=!1,rt=null,z={onError:function(e){L=!0,R=e}};function B(e,t,n,r,i,a,o,s,c){L=!1,R=null,tt.apply(z,arguments)}function it(e,t,n,i,a,o,s,c,l){if(B.apply(this,arguments),L){if(L){var u=R;L=!1,R=null}else throw Error(r(198));nt||(nt=!0,rt=u)}}function at(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ot(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function st(e){if(at(e)!==e)throw Error(r(188))}function ct(e){var t=e.alternate;if(!t){if(t=at(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return st(a),e;if(o===i)return st(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function lt(e){return e=ct(e),e===null?null:ut(e)}function ut(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ut(e);if(t!==null)return t;e=e.sibling}return null}var dt=n.unstable_scheduleCallback,ft=n.unstable_cancelCallback,pt=n.unstable_shouldYield,mt=n.unstable_requestPaint,ht=n.unstable_now,gt=n.unstable_getCurrentPriorityLevel,_t=n.unstable_ImmediatePriority,vt=n.unstable_UserBlockingPriority,yt=n.unstable_NormalPriority,bt=n.unstable_LowPriority,xt=n.unstable_IdlePriority,St=null,Ct=null;function wt(e){if(Ct&&typeof Ct.onCommitFiberRoot==`function`)try{Ct.onCommitFiberRoot(St,e,void 0,(e.current.flags&128)==128)}catch{}}var Tt=Math.clz32?Math.clz32:Ot,Et=Math.log,Dt=Math.LN2;function Ot(e){return e>>>=0,e===0?32:31-(Et(e)/Dt|0)|0}var kt=64,At=4194304;function jt(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=jt(a))):r=jt(s)}else o=n&~i,o===0?a!==0&&(r=jt(a)):r=jt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Tt(t),i=1<<n,r|=e[n],t&=~i;return r}function Nt(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Tt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ft(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function It(){var e=kt;return kt<<=1,!(kt&4194240)&&(kt=64),e}function Lt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function zt(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 i=31-Tt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Vt=0;function Ht(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ut,Wt,Gt,Kt,qt,Jt=!1,Yt=[],Xt=null,Zt=null,Qt=null,$t=new Map,en=new Map,tn=[],nn=`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 rn(e,t){switch(e){case`focusin`:case`focusout`:Xt=null;break;case`dragenter`:case`dragleave`:Zt=null;break;case`mouseover`:case`mouseout`:Qt=null;break;case`pointerover`:case`pointerout`:$t.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:en.delete(t.pointerId)}}function an(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Hi(t),t!==null&&Wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function on(e,t,n,r,i){switch(t){case`focusin`:return Xt=an(Xt,e,t,n,r,i),!0;case`dragenter`:return Zt=an(Zt,e,t,n,r,i),!0;case`mouseover`:return Qt=an(Qt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return $t.set(a,an($t.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,en.set(a,an(en.get(a)||null,e,t,n,r,i)),!0}return!1}function sn(e){var t=Vi(e.target);if(t!==null){var n=at(t);if(n!==null){if(t=n.tag,t===13){if(t=ot(n),t!==null){e.blockedOn=t,qt(e.priority,function(){Gt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Be=r,n.target.dispatchEvent(r),Be=null}else return t=Hi(n),t!==null&&Wt(t),e.blockedOn=n,!1;t.shift()}return!0}function ln(e,t,n){cn(e)&&n.delete(t)}function un(){Jt=!1,Xt!==null&&cn(Xt)&&(Xt=null),Zt!==null&&cn(Zt)&&(Zt=null),Qt!==null&&cn(Qt)&&(Qt=null),$t.forEach(ln),en.forEach(ln)}function dn(e,t){e.blockedOn===t&&(e.blockedOn=null,Jt||(Jt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,un)))}function fn(e){function t(t){return dn(t,e)}if(0<Yt.length){dn(Yt[0],e);for(var n=1;n<Yt.length;n++){var r=Yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xt!==null&&dn(Xt,e),Zt!==null&&dn(Zt,e),Qt!==null&&dn(Qt,e),$t.forEach(t),en.forEach(t),n=0;n<tn.length;n++)r=tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tn.length&&(n=tn[0],n.blockedOn===null);)sn(n),n.blockedOn===null&&tn.shift()}var pn=C.ReactCurrentBatchConfig,mn=!0;function hn(e,t,n,r){var i=Vt,a=pn.transition;pn.transition=null;try{Vt=1,_n(e,t,n,r)}finally{Vt=i,pn.transition=a}}function gn(e,t,n,r){var i=Vt,a=pn.transition;pn.transition=null;try{Vt=4,_n(e,t,n,r)}finally{Vt=i,pn.transition=a}}function _n(e,t,n,r){if(mn){var i=yn(e,t,n,r);if(i===null)pi(e,t,r,vn,n),rn(e,r);else if(on(i,e,t,n,r))r.stopPropagation();else if(rn(e,r),t&4&&-1<nn.indexOf(e)){for(;i!==null;){var a=Hi(i);if(a!==null&&Ut(a),a=yn(e,t,n,r),a===null&&pi(e,t,r,vn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else pi(e,t,r,null,n)}}var vn=null;function yn(e,t,n,r){if(vn=null,e=Ve(r),e=Vi(e),e!==null)if(t=at(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ot(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vn=e,null}function bn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(gt()){case _t:return 1;case vt:return 4;case yt:case bt:return 16;case xt:return 536870912;default:return 16}default:return 16}}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=I({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=I({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(I({},In,{dataTransfer:0})),zn=On(I({},jn,{relatedTarget:0})),Bn=On(I({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(I({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(I({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={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`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(I({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(I({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(I({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(I({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(I({},In,{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})),$n=[9,13,27,32],er=c&&`CompositionEvent`in window,tr=null;c&&`documentMode`in document&&(tr=document.documentMode);var nr=c&&`TextEvent`in window&&!tr,rr=c&&(!er||tr&&8<tr&&11>=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=wn(),Cn=Sn=xn=null,cr=!1,e):null;switch(e){case`paste`: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 rr&&t.locale!==`ko`?null:t.data;default:return null}}var dr={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 fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!dr[e.type]:t===`textarea`}function pr(e,t,n,r){Ke(r),t=hi(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var mr=null,hr=null;function gr(e){si(e,0)}function _r(e){if(me(Ui(e)))return e}function vr(e,t){if(e===`change`)return t}var yr=!1;if(c){var br;if(c){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}br=xr}else br=!1;yr=br&&(!document.documentMode||9<document.documentMode)}function Cr(){mr&&(mr.detachEvent(`onpropertychange`,wr),hr=mr=null)}function wr(e){if(e.propertyName===`value`&&_r(hr)){var t=[];pr(t,hr,e,Ve(e)),Ze(gr,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),mr=t,hr=n,mr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return _r(hr)}function Dr(e,t){if(e===`click`)return _r(t)}function Or(e,t){if(e===`input`||e===`change`)return _r(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function jr(e,t){if(Ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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 i=n[r];if(!l.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function Mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var n=Mr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(){for(var e=window,t=he();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=he(e.document)}return t}function Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Lr(e){var t=Fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pr(n.ownerDocument.documentElement,n)){if(r!==null&&Ir(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Nr(n,a);var o=Nr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rr=c&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==he(r)||(r=zr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&jr(Vr,r)||(Vr=r,r=hi(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};c&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var Yr=Jr(`animationend`),Xr=Jr(`animationiteration`),Zr=Jr(`animationstart`),Qr=Jr(`transitionend`),$r=new Map,ei=`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 ti(e,t){$r.set(e,t),o(t,[e])}for(var ni=0;ni<ei.length;ni++){var ri=ei[ni];ti(ri.toLowerCase(),`on`+(ri[0].toUpperCase()+ri.slice(1)))}ti(Yr,`onAnimationEnd`),ti(Xr,`onAnimationIteration`),ti(Zr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Qr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ii=`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(` `),ai=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ii));function oi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,it(r,t,void 0,e),e.currentTarget=null}function si(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;oi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;oi(i,s,l),a=c}}}if(nt)throw e=rt,nt=!1,rt=null,e}function ci(e,t){var n=t[Ri];n===void 0&&(n=t[Ri]=new Set);var r=e+`__bubble`;n.has(r)||(fi(t,e,2,!1),n.add(r))}function li(e,t,n){var r=0;t&&(r|=4),fi(n,e,r,t)}var ui=`_reactListening`+Math.random().toString(36).slice(2);function di(e){if(!e[ui]){e[ui]=!0,i.forEach(function(t){t!==`selectionchange`&&(ai.has(t)||li(t,!1,e),li(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,li(`selectionchange`,!1,t))}}function fi(e,t,n,r){switch(bn(t)){case 1:var i=hn;break;case 4:i=gn;break;default:i=_n}n=i.bind(null,t,n,e),i=void 0,!$e||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function pi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Vi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Ze(function(){var r=a,i=Ve(n),o=[];a:{var s=$r.get(e);if(s!==void 0){var c=An,l=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:c=Jn;break;case`focusin`:l=`focus`,c=zn;break;case`focusout`:l=`blur`,c=zn;break;case`beforeblur`:case`afterblur`:c=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Xn;break;case Yr:case Xr:case Zr:c=Bn;break;case Qr:c=Zn;break;case`scroll`:c=Mn;break;case`wheel`:c=Qn;break;case`copy`:case`cut`:case`paste`:c=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Yn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=Qe(p,f),h!=null&&u.push(mi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Be&&(l=n.relatedTarget||n.fromElement)&&(Vi(l)||l[Li]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Vi(l):null,l!==null&&(d=at(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Ln,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Yn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ui(c),m=l==null?s:Ui(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Vi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=gi(m))p++;for(m=0,h=f;h;h=gi(h))m++;for(;0<p-m;)u=gi(u),p--;for(;0<m-p;)f=gi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=gi(u),f=gi(f)}u=null}else u=null;c!==null&&_i(o,s,c,u,!1),l!==null&&d!==null&&_i(o,d,l,u,!0)}}a:{if(s=r?Ui(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=vr;else if(fr(s))if(yr)g=Or;else{g=Er;var _=Tr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Dr);if(g&&=g(e,r)){pr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&xe(s,`number`,s.value)}switch(_=r?Ui(r):window,e){case`focusin`:(fr(_)||_.contentEditable===`true`)&&(zr=_,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var v;if(er)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else cr?or(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(rr&&n.locale!==`ko`&&(cr||y!==`onCompositionStart`?y===`onCompositionEnd`&&cr&&(v=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,cr=!0)),_=hi(r,y),0<_.length&&(y=new Hn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=sr(n),v!==null&&(y.data=v)))),(v=nr?lr(e,n):ur(e,n))&&(r=hi(r,`onBeforeInput`),0<r.length&&(i=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}si(o,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Qe(e,n),a!=null&&r.unshift(mi(e,a,i)),a=Qe(e,t),a!=null&&r.push(mi(e,a,i))),e=e.return}return r}function gi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _i(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Qe(n,a),c!=null&&o.unshift(mi(n,c,s))):i||(c=Qe(n,a),c!=null&&o.push(mi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var vi=/\r\n?/g,yi=/\u0000|\uFFFD/g;function bi(e){return(typeof e==`string`?e:``+e).replace(vi,`
|
|
6
|
-
`).replace(yi,``)}function xi(e,t,n){if(t=bi(t),bi(e)!==t&&n)throw Error(r(425))}function Si(){}var Ci=null,wi=null;function Ti(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ei=typeof setTimeout==`function`?setTimeout:void 0,Di=typeof clearTimeout==`function`?clearTimeout:void 0,Oi=typeof Promise==`function`?Promise:void 0,ki=typeof queueMicrotask==`function`?queueMicrotask:Oi===void 0?Ei:function(e){return Oi.resolve(null).then(e).catch(Ai)};function Ai(e){setTimeout(function(){throw e})}function ji(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),fn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);fn(t)}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Ni(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Fi=`__reactFiber$`+Pi,Ii=`__reactProps$`+Pi,Li=`__reactContainer$`+Pi,Ri=`__reactEvents$`+Pi,zi=`__reactListeners$`+Pi,Bi=`__reactHandles$`+Pi;function Vi(e){var t=e[Fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[Fi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ni(e);e!==null;){if(n=e[Fi])return n;e=Ni(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[Fi]||e[Li],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Wi(e){return e[Ii]||null}var Gi=[],Ki=-1;function qi(e){return{current:e}}function Ji(e){0>Ki||(e.current=Gi[Ki],Gi[Ki]=null,Ki--)}function Yi(e,t){Ki++,Gi[Ki]=e.current,e.current=t}var Xi={},Zi=qi(Xi),Qi=qi(!1),$i=Xi;function ea(e,t){var n=e.type.contextTypes;if(!n)return Xi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ta(e){return e=e.childContextTypes,e!=null}function na(){Ji(Qi),Ji(Zi)}function ra(e,t,n){if(Zi.current!==Xi)throw Error(r(168));Yi(Zi,t),Yi(Qi,n)}function ia(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,le(e)||`Unknown`,a));return I({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,$i=Zi.current,Yi(Zi,e),Yi(Qi,Qi.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,$i),i.__reactInternalMemoizedMergedChildContext=e,Ji(Qi),Ji(Zi),Yi(Zi,e)):Ji(Qi),Yi(Qi,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function fa(){if(!la&&sa!==null){la=!0;var e=0,t=Vt;try{var n=sa;for(Vt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sa=null,ca=!1}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),dt(_t,fa),t}finally{Vt=t,la=!1}}return null}var pa=[],ma=0,ha=null,ga=0,_a=[],va=0,ya=null,ba=1,xa=``;function Sa(e,t){pa[ma++]=ga,pa[ma++]=ha,ha=e,ga=t}function Ca(e,t,n){_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ya=e;var r=ba;e=xa;var i=32-Tt(r)-1;r&=~(1<<i),n+=1;var a=32-Tt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ba=1<<32-Tt(t)+i|n<<i|r,xa=a+e}else ba=1<<a|n<<i|r,xa=e}function wa(e){e.return!==null&&(Sa(e,1),Ca(e,1,0))}function Ta(e){for(;e===ha;)ha=pa[--ma],pa[ma]=null,ga=pa[--ma],pa[ma]=null;for(;e===ya;)ya=_a[--va],_a[va]=null,xa=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null}var Ea=null,Da=null,Oa=!1,ka=null;function Aa(e,t){var n=eu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ja(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=Mi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=ya===null?null:{id:ba,overflow:xa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=eu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ea=e,Da=null,!0);default:return!1}}function Ma(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Na(e){if(Oa){var t=Da;if(t){var n=t;if(!ja(e,t)){if(Ma(e))throw Error(r(418));t=Mi(n.nextSibling);var i=Ea;t&&ja(e,t)?Aa(i,n):(e.flags=e.flags&-4097|2,Oa=!1,Ea=e)}}else{if(Ma(e))throw Error(r(418));e.flags=e.flags&-4097|2,Oa=!1,Ea=e}}}function Pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function Fa(e){if(e!==Ea)return!1;if(!Oa)return Pa(e),Oa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ti(e.type,e.memoizedProps)),t&&=Da){if(Ma(e))throw Ia(),Error(r(418));for(;t;)Aa(e,t),t=Mi(t.nextSibling)}if(Pa(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Da=Mi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Da=null}}else Da=Ea?Mi(e.stateNode.nextSibling):null;return!0}function Ia(){for(var e=Da;e;)e=Mi(e.nextSibling)}function V(){Da=Ea=null,Oa=!1}function La(e){ka===null?ka=[e]:ka.push(e)}var Ra=C.ReactCurrentBatchConfig;function za(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ba(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Va(e){var t=e._init;return t(e._payload)}function Ha(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=ru(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=su(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===te&&Va(i)===t.type)?(r=a(t,n.props),r.ref=za(e,t,n),r.return=e,r):(r=iu(n.type,n.key,n.props,null,e.mode,r),r.ref=za(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=cu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=au(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=su(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=iu(t.type,t.key,t.props,null,e.mode,n),n.ref=za(e,null,t),n.return=e,n;case T:return t=cu(t,e.mode,n),t.return=e,t;case te:var r=t._init;return f(e,r(t._payload),n)}if(Se(t)||ne(t))return t=au(t,e.mode,n,null),t.return=e,t;Ba(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case te:return i=n._init,p(e,t,i(n._payload),r)}if(Se(n)||ne(n))return i===null?d(e,t,n,r,null):null;Ba(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case te:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Se(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);Ba(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Oa&&Sa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Oa&&Sa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Oa&&Sa(r,h),l}function g(a,s,c,l){var u=ne(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Oa&&Sa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Oa&&Sa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Oa&&Sa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===te&&Va(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=za(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=au(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=iu(i.type,i.key,i.props,null,e.mode,o),o.ref=za(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=cu(i,e.mode,o),r.return=e,e=r}return s(e);case te:return l=i._init,_(e,r,l(i._payload),o)}if(Se(i))return h(e,r,i,o);if(ne(i))return g(e,r,i,o);Ba(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=su(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ua=Ha(!0),Wa=Ha(!1),Ga=qi(null),Ka=null,qa=null,Ja=null;function Ya(){Ja=qa=Ka=null}function Xa(e){var t=Ga.current;Ji(Ga),e._currentValue=t}function Za(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Qa(e,t){Ka=e,Ja=qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Bs=!0),e.firstContext=null)}function $a(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},qa===null){if(Ka===null)throw Error(r(308));qa=e,Ka.dependencies={lanes:0,firstContext:e}}else qa=qa.next=e;return t}var eo=null;function to(e){eo===null?eo=[e]:eo.push(e)}function no(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,to(t)):(n.next=i.next,i.next=n),t.interleaved=n,ro(e,r)}function ro(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var io=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oo(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 so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ro(e,n)}return i=r.interleaved,i===null?(t.next=t,to(r)):(t.next=i.next,i.next=t),r.interleaved=t,ro(e,n)}function lo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}function uo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fo(e,t,n,r){var i=e.updateQueue;io=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=I({},d,f);break a;case 2:io=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);nl|=o,e.lanes=o,e.memoizedState=d}}function po(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var mo={},ho=qi(mo),go=qi(mo),_o=qi(mo);function vo(e){if(e===mo)throw Error(r(174));return e}function yo(e,t){switch(Yi(_o,t),Yi(go,e),Yi(ho,mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ke(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ke(t,e)}Ji(ho),Yi(ho,t)}function bo(){Ji(ho),Ji(go),Ji(_o)}function xo(e){vo(_o.current);var t=vo(ho.current),n=ke(t,e.type);t!==n&&(Yi(go,e),Yi(ho,n))}function So(e){go.current===e&&(Ji(ho),Ji(go))}var H=qi(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wo=[];function To(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var Eo=C.ReactCurrentDispatcher,Do=C.ReactCurrentBatchConfig,Oo=0,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0;function Io(){throw Error(r(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Ro(e,t,n,i,a,o){if(Oo=o,ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?xs:Ss,e=n(i,a),No){o=0;do{if(No=!1,Po=0,25<=o)throw Error(r(301));o+=1,jo=Ao=null,t.updateQueue=null,Eo.current=Cs,e=n(i,a)}while(No)}if(Eo.current=bs,t=Ao!==null&&Ao.next!==null,Oo=0,jo=Ao=ko=null,Mo=!1,t)throw Error(r(300));return e}function zo(){var e=Po!==0;return Po=0,e}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jo===null?ko.memoizedState=jo=e:jo=jo.next=e,jo}function Vo(){if(Ao===null){var e=ko.alternate;e=e===null?null:e.memoizedState}else e=Ao.next;var t=jo===null?ko.memoizedState:jo.next;if(t!==null)jo=t,Ao=e;else{if(e===null)throw Error(r(310));Ao=e,e={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},jo===null?ko.memoizedState=jo=e:jo=jo.next=e}return jo}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ao,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,ko.lanes|=d,nl|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ar(i,t.memoizedState)||(Bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,ko.lanes|=o,nl|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ar(o,t.memoizedState)||(Bs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Go(){}function Ko(e,t){var n=ko,i=Vo(),a=t(),o=!Ar(i.memoizedState,a);if(o&&(i.memoizedState=a,Bs=!0),i=i.queue,is(Yo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||jo!==null&&jo.memoizedState.tag&1){if(n.flags|=2048,$o(9,Jo.bind(null,n,i,a,t),void 0,null),Yc===null)throw Error(r(349));Oo&30||qo(n,t,a)}return a}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function Zo(e){var t=ro(e,1);t!==null&&Sl(t,e,1,-1)}function Qo(e){var t=Bo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t.queue=e,e=e.dispatch=gs.bind(null,ko,e),[t.memoizedState,e]}function $o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function es(){return Vo().memoizedState}function ts(e,t,n,r){var i=Bo();ko.flags|=e,i.memoizedState=$o(1|t,n,void 0,r===void 0?null:r)}function ns(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=void 0;if(Ao!==null){var o=Ao.memoizedState;if(a=o.destroy,r!==null&&Lo(r,o.deps)){i.memoizedState=$o(t,n,a,r);return}}ko.flags|=e,i.memoizedState=$o(1|t,n,a,r)}function rs(e,t){return ts(8390656,8,e,t)}function is(e,t){return ns(2048,8,e,t)}function as(e,t){return ns(4,2,e,t)}function os(e,t){return ns(4,4,e,t)}function ss(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cs(e,t,n){return n=n==null?null:n.concat([e]),ns(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){return Oo&21?(Ar(n,t)||(n=It(),ko.lanes|=n,nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bs=!0),e.memoizedState=n)}function ps(e,t){var n=Vt;Vt=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{Vt=n,Do.transition=r}}function ms(){return Vo().memoizedState}function hs(e,t,n){var r=xl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_s(e))vs(t,n);else if(n=no(e,t,n,r),n!==null){var i=bl();Sl(n,e,r,i),ys(n,t,r)}}function gs(e,t,n){var r=xl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(e))vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o)){var c=t.interleaved;c===null?(i.next=i,to(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=no(e,t,i,r),n!==null&&(i=bl(),Sl(n,e,r,i),ys(n,t,r))}}function _s(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function vs(e,t){No=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ys(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}var bs={readContext:$a,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useInsertionEffect:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef:Io,useState:Io,useDebugValue:Io,useDeferredValue:Io,useTransition:Io,useMutableSource:Io,useSyncExternalStore:Io,useId:Io,unstable_isNewReconciler:!1},xs={readContext:$a,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:$a,useEffect:rs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ts(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();return t=n===void 0?t:n(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=hs.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:Qo,useDebugValue:ls,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=ps.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ko,a=Bo();if(Oa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Yc===null)throw Error(r(349));Oo&30||qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Yo.bind(null,i,o,e),[e]),i.flags|=2048,$o(9,Jo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Bo(),t=Yc.identifierPrefix;if(Oa){var n=xa,r=ba;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Po++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Fo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ss={readContext:$a,useCallback:us,useContext:$a,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Uo,useRef:es,useState:function(){return Uo(Ho)},useDebugValue:ls,useDeferredValue:function(e){return fs(Vo(),Ao.memoizedState,e)},useTransition:function(){return[Uo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1},Cs={readContext:$a,useCallback:us,useContext:$a,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Wo,useRef:es,useState:function(){return Wo(Ho)},useDebugValue:ls,useDeferredValue:function(e){var t=Vo();return Ao===null?t.memoizedState=e:fs(t,Ao.memoizedState,e)},useTransition:function(){return[Wo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1};function ws(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:I({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Es={isMounted:function(e){return(e=e._reactInternals)?at(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bl(),i=xl(e),a=so(r,i);a.payload=t,n!=null&&(a.callback=n),t=co(e,a,i),t!==null&&(Sl(t,e,i,r),lo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bl(),i=xl(e),a=so(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=co(e,a,i),t!==null&&(Sl(t,e,i,r),lo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bl(),r=xl(e),i=so(n,r);i.tag=2,t!=null&&(i.callback=t),t=co(e,i,r),t!==null&&(Sl(t,e,r,n),lo(t,e,r))}};function Ds(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(i,a):!0}function Os(e,t,n){var r=!1,i=Xi,a=t.contextType;return typeof a==`object`&&a?a=$a(a):(i=ta(t)?$i:Zi.current,r=t.contextTypes,a=(r=r!=null)?ea(e,i):Xi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Es,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Es.enqueueReplaceState(t,t.state,null)}function As(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ao(e);var a=t.contextType;typeof a==`object`&&a?i.context=$a(a):(a=ta(t)?$i:Zi.current,i.context=ea(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ts(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Es.enqueueReplaceState(i,i.state,null),fo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function js(e,t){try{var n=``,r=t;do n+=se(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
5
|
+
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{oe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ae(e):``}function ce(e){switch(e.tag){case 5:return ae(e.type);case 16:return ae(`Lazy`);case 13:return ae(`Suspense`);case 19:return ae(`SuspenseList`);case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return``}}function le(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case j:return`Suspense`;case te:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case k:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case A:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function ue(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=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return le(t);case 8:return t===D?`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(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function de(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function fe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function pe(e){var t=fe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.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]}}}}function me(e){e._valueTracker||=pe(e)}function he(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=fe(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ge(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function _e(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ve(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=de(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function ye(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function be(e,t){ye(e,t);var n=de(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Se(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Se(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xe(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Se(e,t,n){(t!==`number`||ge(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Ce=Array.isArray;function we(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+de(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Te(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Ee(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Ce(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:de(n)}}function De(e,t){var n=de(t.value),r=de(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function ke(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 Ae(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?ke(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var je,Me=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(je||=document.createElement(`div`),je.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ne(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Pe).forEach(function(e){Fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pe[t]=Pe[e]})});function Ie(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Pe.hasOwnProperty(e)&&Pe[e]?(``+t).trim():t+`px`}function Le(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ie(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Re=F({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 ze(e,t){if(t){if(Re[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Be(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;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 Ve=null;function He(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ue=null,We=null,Ge=null;function Ke(e){if(e=Hi(e)){if(typeof Ue!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Wi(t),Ue(e.stateNode,e.type,t))}}function qe(e){We?Ge?Ge.push(e):Ge=[e]:We=e}function Je(){if(We){var e=We,t=Ge;if(Ge=We=null,Ke(e),t)for(e=0;e<t.length;e++)Ke(t[e])}}function Ye(e,t){return e(t)}function Xe(){}var Ze=!1;function Qe(e,t,n){if(Ze)return e(t,n);Ze=!0;try{return Ye(e,t,n)}finally{Ze=!1,(We!==null||Ge!==null)&&(Xe(),Je())}}function $e(e,t){var n=e.stateNode;if(n===null)return null;var i=Wi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var et=!1;if(c)try{var tt={};Object.defineProperty(tt,"passive",{get:function(){et=!0}}),window.addEventListener(`test`,tt,tt),window.removeEventListener(`test`,tt,tt)}catch{et=!1}function I(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var L=!1,nt=null,rt=!1,R=null,z={onError:function(e){L=!0,nt=e}};function it(e,t,n,r,i,a,o,s,c){L=!1,nt=null,I.apply(z,arguments)}function at(e,t,n,i,a,o,s,c,l){if(it.apply(this,arguments),L){if(L){var u=nt;L=!1,nt=null}else throw Error(r(198));rt||(rt=!0,R=u)}}function ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function st(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ct(e){if(ot(e)!==e)throw Error(r(188))}function lt(e){var t=e.alternate;if(!t){if(t=ot(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return ct(a),e;if(o===i)return ct(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ut(e){return e=lt(e),e===null?null:dt(e)}function dt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=dt(e);if(t!==null)return t;e=e.sibling}return null}var ft=n.unstable_scheduleCallback,pt=n.unstable_cancelCallback,mt=n.unstable_shouldYield,ht=n.unstable_requestPaint,gt=n.unstable_now,_t=n.unstable_getCurrentPriorityLevel,vt=n.unstable_ImmediatePriority,yt=n.unstable_UserBlockingPriority,bt=n.unstable_NormalPriority,xt=n.unstable_LowPriority,St=n.unstable_IdlePriority,Ct=null,B=null;function wt(e){if(B&&typeof B.onCommitFiberRoot==`function`)try{B.onCommitFiberRoot(Ct,e,void 0,(e.current.flags&128)==128)}catch{}}var Tt=Math.clz32?Math.clz32:Ot,Et=Math.log,Dt=Math.LN2;function Ot(e){return e>>>=0,e===0?32:31-(Et(e)/Dt|0)|0}var kt=64,At=4194304;function jt(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=jt(a))):r=jt(s)}else o=n&~i,o===0?a!==0&&(r=jt(a)):r=jt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Tt(t),i=1<<n,r|=e[n],t&=~i;return r}function Nt(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Tt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ft(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function It(){var e=kt;return kt<<=1,!(kt&4194240)&&(kt=64),e}function Lt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function zt(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 i=31-Tt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Vt=0;function Ht(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ut,Wt,Gt,Kt,qt,Jt=!1,Yt=[],Xt=null,Zt=null,Qt=null,$t=new Map,en=new Map,tn=[],nn=`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 rn(e,t){switch(e){case`focusin`:case`focusout`:Xt=null;break;case`dragenter`:case`dragleave`:Zt=null;break;case`mouseover`:case`mouseout`:Qt=null;break;case`pointerover`:case`pointerout`:$t.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:en.delete(t.pointerId)}}function an(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Hi(t),t!==null&&Wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function on(e,t,n,r,i){switch(t){case`focusin`:return Xt=an(Xt,e,t,n,r,i),!0;case`dragenter`:return Zt=an(Zt,e,t,n,r,i),!0;case`mouseover`:return Qt=an(Qt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return $t.set(a,an($t.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,en.set(a,an(en.get(a)||null,e,t,n,r,i)),!0}return!1}function sn(e){var t=Vi(e.target);if(t!==null){var n=ot(t);if(n!==null){if(t=n.tag,t===13){if(t=st(n),t!==null){e.blockedOn=t,qt(e.priority,function(){Gt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ve=r,n.target.dispatchEvent(r),Ve=null}else return t=Hi(n),t!==null&&Wt(t),e.blockedOn=n,!1;t.shift()}return!0}function ln(e,t,n){cn(e)&&n.delete(t)}function un(){Jt=!1,Xt!==null&&cn(Xt)&&(Xt=null),Zt!==null&&cn(Zt)&&(Zt=null),Qt!==null&&cn(Qt)&&(Qt=null),$t.forEach(ln),en.forEach(ln)}function dn(e,t){e.blockedOn===t&&(e.blockedOn=null,Jt||(Jt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,un)))}function fn(e){function t(t){return dn(t,e)}if(0<Yt.length){dn(Yt[0],e);for(var n=1;n<Yt.length;n++){var r=Yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xt!==null&&dn(Xt,e),Zt!==null&&dn(Zt,e),Qt!==null&&dn(Qt,e),$t.forEach(t),en.forEach(t),n=0;n<tn.length;n++)r=tn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tn.length&&(n=tn[0],n.blockedOn===null);)sn(n),n.blockedOn===null&&tn.shift()}var pn=C.ReactCurrentBatchConfig,mn=!0;function hn(e,t,n,r){var i=Vt,a=pn.transition;pn.transition=null;try{Vt=1,_n(e,t,n,r)}finally{Vt=i,pn.transition=a}}function gn(e,t,n,r){var i=Vt,a=pn.transition;pn.transition=null;try{Vt=4,_n(e,t,n,r)}finally{Vt=i,pn.transition=a}}function _n(e,t,n,r){if(mn){var i=yn(e,t,n,r);if(i===null)pi(e,t,r,vn,n),rn(e,r);else if(on(i,e,t,n,r))r.stopPropagation();else if(rn(e,r),t&4&&-1<nn.indexOf(e)){for(;i!==null;){var a=Hi(i);if(a!==null&&Ut(a),a=yn(e,t,n,r),a===null&&pi(e,t,r,vn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else pi(e,t,r,null,n)}}var vn=null;function yn(e,t,n,r){if(vn=null,e=He(r),e=Vi(e),e!==null)if(t=ot(e),t===null)e=null;else if(n=t.tag,n===13){if(e=st(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vn=e,null}function bn(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(_t()){case vt:return 1;case yt:return 4;case bt:case xt:return 16;case St:return 536870912;default:return 16}default:return 16}}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=F({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=F({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(F({},In,{dataTransfer:0})),zn=On(F({},jn,{relatedTarget:0})),Bn=On(F({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(F({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(F({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={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`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(F({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(F({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(F({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(F({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(F({},In,{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})),$n=[9,13,27,32],er=c&&`CompositionEvent`in window,tr=null;c&&`documentMode`in document&&(tr=document.documentMode);var nr=c&&`TextEvent`in window&&!tr,rr=c&&(!er||tr&&8<tr&&11>=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=wn(),Cn=Sn=xn=null,cr=!1,e):null;switch(e){case`paste`: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 rr&&t.locale!==`ko`?null:t.data;default:return null}}var dr={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 fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!dr[e.type]:t===`textarea`}function pr(e,t,n,r){qe(r),t=hi(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var mr=null,hr=null;function gr(e){si(e,0)}function _r(e){if(he(Ui(e)))return e}function vr(e,t){if(e===`change`)return t}var yr=!1;if(c){var br;if(c){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}br=xr}else br=!1;yr=br&&(!document.documentMode||9<document.documentMode)}function Cr(){mr&&(mr.detachEvent(`onpropertychange`,wr),hr=mr=null)}function wr(e){if(e.propertyName===`value`&&_r(hr)){var t=[];pr(t,hr,e,He(e)),Qe(gr,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),mr=t,hr=n,mr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return _r(hr)}function Dr(e,t){if(e===`click`)return _r(t)}function Or(e,t){if(e===`input`||e===`change`)return _r(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function jr(e,t){if(Ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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 i=n[r];if(!l.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function Mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var n=Mr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(){for(var e=window,t=ge();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ge(e.document)}return t}function Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Lr(e){var t=Fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pr(n.ownerDocument.documentElement,n)){if(r!==null&&Ir(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Nr(n,a);var o=Nr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rr=c&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==ge(r)||(r=zr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&jr(Vr,r)||(Vr=r,r=hi(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};c&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var Yr=Jr(`animationend`),Xr=Jr(`animationiteration`),Zr=Jr(`animationstart`),Qr=Jr(`transitionend`),$r=new Map,ei=`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 ti(e,t){$r.set(e,t),o(t,[e])}for(var ni=0;ni<ei.length;ni++){var ri=ei[ni];ti(ri.toLowerCase(),`on`+(ri[0].toUpperCase()+ri.slice(1)))}ti(Yr,`onAnimationEnd`),ti(Xr,`onAnimationIteration`),ti(Zr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Qr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ii=`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(` `),ai=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ii));function oi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,at(r,t,void 0,e),e.currentTarget=null}function si(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;oi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;oi(i,s,l),a=c}}}if(rt)throw e=R,rt=!1,R=null,e}function ci(e,t){var n=t[Ri];n===void 0&&(n=t[Ri]=new Set);var r=e+`__bubble`;n.has(r)||(fi(t,e,2,!1),n.add(r))}function li(e,t,n){var r=0;t&&(r|=4),fi(n,e,r,t)}var ui=`_reactListening`+Math.random().toString(36).slice(2);function di(e){if(!e[ui]){e[ui]=!0,i.forEach(function(t){t!==`selectionchange`&&(ai.has(t)||li(t,!1,e),li(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,li(`selectionchange`,!1,t))}}function fi(e,t,n,r){switch(bn(t)){case 1:var i=hn;break;case 4:i=gn;break;default:i=_n}n=i.bind(null,t,n,e),i=void 0,!et||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function pi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Vi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Qe(function(){var r=a,i=He(n),o=[];a:{var s=$r.get(e);if(s!==void 0){var c=An,l=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:c=Jn;break;case`focusin`:l=`focus`,c=zn;break;case`focusout`:l=`blur`,c=zn;break;case`beforeblur`:case`afterblur`:c=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Xn;break;case Yr:case Xr:case Zr:c=Bn;break;case Qr:c=Zn;break;case`scroll`:c=Mn;break;case`wheel`:c=Qn;break;case`copy`:case`cut`:case`paste`:c=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Yn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=$e(p,f),h!=null&&u.push(mi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ve&&(l=n.relatedTarget||n.fromElement)&&(Vi(l)||l[Li]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Vi(l):null,l!==null&&(d=ot(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Ln,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Yn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ui(c),m=l==null?s:Ui(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Vi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=gi(m))p++;for(m=0,h=f;h;h=gi(h))m++;for(;0<p-m;)u=gi(u),p--;for(;0<m-p;)f=gi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=gi(u),f=gi(f)}u=null}else u=null;c!==null&&_i(o,s,c,u,!1),l!==null&&d!==null&&_i(o,d,l,u,!0)}}a:{if(s=r?Ui(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=vr;else if(fr(s))if(yr)g=Or;else{g=Er;var _=Tr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Dr);if(g&&=g(e,r)){pr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Se(s,`number`,s.value)}switch(_=r?Ui(r):window,e){case`focusin`:(fr(_)||_.contentEditable===`true`)&&(zr=_,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var v;if(er)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else cr?or(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(rr&&n.locale!==`ko`&&(cr||y!==`onCompositionStart`?y===`onCompositionEnd`&&cr&&(v=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,cr=!0)),_=hi(r,y),0<_.length&&(y=new Hn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=sr(n),v!==null&&(y.data=v)))),(v=nr?lr(e,n):ur(e,n))&&(r=hi(r,`onBeforeInput`),0<r.length&&(i=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}si(o,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=$e(e,n),a!=null&&r.unshift(mi(e,a,i)),a=$e(e,t),a!=null&&r.push(mi(e,a,i))),e=e.return}return r}function gi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _i(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=$e(n,a),c!=null&&o.unshift(mi(n,c,s))):i||(c=$e(n,a),c!=null&&o.push(mi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var vi=/\r\n?/g,yi=/\u0000|\uFFFD/g;function bi(e){return(typeof e==`string`?e:``+e).replace(vi,`
|
|
6
|
+
`).replace(yi,``)}function xi(e,t,n){if(t=bi(t),bi(e)!==t&&n)throw Error(r(425))}function Si(){}var Ci=null,wi=null;function Ti(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ei=typeof setTimeout==`function`?setTimeout:void 0,Di=typeof clearTimeout==`function`?clearTimeout:void 0,Oi=typeof Promise==`function`?Promise:void 0,ki=typeof queueMicrotask==`function`?queueMicrotask:Oi===void 0?Ei:function(e){return Oi.resolve(null).then(e).catch(Ai)};function Ai(e){setTimeout(function(){throw e})}function ji(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),fn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);fn(t)}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Ni(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Fi=`__reactFiber$`+Pi,Ii=`__reactProps$`+Pi,Li=`__reactContainer$`+Pi,Ri=`__reactEvents$`+Pi,zi=`__reactListeners$`+Pi,Bi=`__reactHandles$`+Pi;function Vi(e){var t=e[Fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[Fi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ni(e);e!==null;){if(n=e[Fi])return n;e=Ni(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[Fi]||e[Li],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Wi(e){return e[Ii]||null}var Gi=[],Ki=-1;function qi(e){return{current:e}}function Ji(e){0>Ki||(e.current=Gi[Ki],Gi[Ki]=null,Ki--)}function Yi(e,t){Ki++,Gi[Ki]=e.current,e.current=t}var Xi={},Zi=qi(Xi),Qi=qi(!1),$i=Xi;function ea(e,t){var n=e.type.contextTypes;if(!n)return Xi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ta(e){return e=e.childContextTypes,e!=null}function na(){Ji(Qi),Ji(Zi)}function ra(e,t,n){if(Zi.current!==Xi)throw Error(r(168));Yi(Zi,t),Yi(Qi,n)}function ia(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,ue(e)||`Unknown`,a));return F({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,$i=Zi.current,Yi(Zi,e),Yi(Qi,Qi.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,$i),i.__reactInternalMemoizedMergedChildContext=e,Ji(Qi),Ji(Zi),Yi(Zi,e)):Ji(Qi),Yi(Qi,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function V(){if(!la&&sa!==null){la=!0;var e=0,t=Vt;try{var n=sa;for(Vt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sa=null,ca=!1}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),ft(vt,V),t}finally{Vt=t,la=!1}}return null}var fa=[],pa=0,ma=null,ha=0,ga=[],_a=0,va=null,ya=1,ba=``;function xa(e,t){fa[pa++]=ha,fa[pa++]=ma,ma=e,ha=t}function Sa(e,t,n){ga[_a++]=ya,ga[_a++]=ba,ga[_a++]=va,va=e;var r=ya;e=ba;var i=32-Tt(r)-1;r&=~(1<<i),n+=1;var a=32-Tt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ya=1<<32-Tt(t)+i|n<<i|r,ba=a+e}else ya=1<<a|n<<i|r,ba=e}function Ca(e){e.return!==null&&(xa(e,1),Sa(e,1,0))}function wa(e){for(;e===ma;)ma=fa[--pa],fa[pa]=null,ha=fa[--pa],fa[pa]=null;for(;e===va;)va=ga[--_a],ga[_a]=null,ba=ga[--_a],ga[_a]=null,ya=ga[--_a],ga[_a]=null}var Ta=null,Ea=null,Da=!1,Oa=null;function ka(e,t){var n=eu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Aa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ta=e,Ea=Mi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ta=e,Ea=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=va===null?null:{id:ya,overflow:ba},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=eu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ta=e,Ea=null,!0);default:return!1}}function ja(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Ma(e){if(Da){var t=Ea;if(t){var n=t;if(!Aa(e,t)){if(ja(e))throw Error(r(418));t=Mi(n.nextSibling);var i=Ta;t&&Aa(e,t)?ka(i,n):(e.flags=e.flags&-4097|2,Da=!1,Ta=e)}}else{if(ja(e))throw Error(r(418));e.flags=e.flags&-4097|2,Da=!1,Ta=e}}}function Na(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ta=e}function Pa(e){if(e!==Ta)return!1;if(!Da)return Na(e),Da=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ti(e.type,e.memoizedProps)),t&&=Ea){if(ja(e))throw Fa(),Error(r(418));for(;t;)ka(e,t),t=Mi(t.nextSibling)}if(Na(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Ea=Mi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Ea=null}}else Ea=Ta?Mi(e.stateNode.nextSibling):null;return!0}function Fa(){for(var e=Ea;e;)e=Mi(e.nextSibling)}function H(){Ea=Ta=null,Da=!1}function Ia(e){Oa===null?Oa=[e]:Oa.push(e)}var La=C.ReactCurrentBatchConfig;function Ra(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function za(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ba(e){var t=e._init;return t(e._payload)}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=ru(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=su(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ne&&Ba(i)===t.type)?(r=a(t,n.props),r.ref=Ra(e,t,n),r.return=e,r):(r=iu(n.type,n.key,n.props,null,e.mode,r),r.ref=Ra(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=cu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=au(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=su(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=iu(t.type,t.key,t.props,null,e.mode,n),n.ref=Ra(e,null,t),n.return=e,n;case T:return t=cu(t,e.mode,n),t.return=e,t;case ne:var r=t._init;return f(e,r(t._payload),n)}if(Ce(t)||re(t))return t=au(t,e.mode,n,null),t.return=e,t;za(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case ne:return i=n._init,p(e,t,i(n._payload),r)}if(Ce(n)||re(n))return i===null?d(e,t,n,r,null):null;za(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Ce(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);za(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Da&&xa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Da&&xa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Da&&xa(r,h),l}function g(a,s,c,l){var u=re(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Da&&xa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Da&&xa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Da&&xa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ne&&Ba(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ra(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=au(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=iu(i.type,i.key,i.props,null,e.mode,o),o.ref=Ra(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=cu(i,e.mode,o),r.return=e,e=r}return s(e);case ne:return l=i._init,_(e,r,l(i._payload),o)}if(Ce(i))return h(e,r,i,o);if(re(i))return g(e,r,i,o);za(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=su(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ha=Va(!0),Ua=Va(!1),Wa=qi(null),Ga=null,Ka=null,qa=null;function Ja(){qa=Ka=Ga=null}function Ya(e){var t=Wa.current;Ji(Wa),e._currentValue=t}function Xa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Za(e,t){Ga=e,qa=Ka=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Bs=!0),e.firstContext=null)}function Qa(e){var t=e._currentValue;if(qa!==e)if(e={context:e,memoizedValue:t,next:null},Ka===null){if(Ga===null)throw Error(r(308));Ka=e,Ga.dependencies={lanes:0,firstContext:e}}else Ka=Ka.next=e;return t}var $a=null;function eo(e){$a===null?$a=[e]:$a.push(e)}function to(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,eo(t)):(n.next=i.next,i.next=n),t.interleaved=n,no(e,r)}function no(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ro=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ao(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 oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,no(e,n)}return i=r.interleaved,i===null?(t.next=t,eo(r)):(t.next=i.next,i.next=t),r.interleaved=t,no(e,n)}function co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;ro=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=F({},d,f);break a;case 2:ro=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);nl|=o,e.lanes=o,e.memoizedState=d}}function fo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var po={},mo=qi(po),ho=qi(po),go=qi(po);function _o(e){if(e===po)throw Error(r(174));return e}function vo(e,t){switch(Yi(go,t),Yi(ho,e),Yi(mo,po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ae(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ae(t,e)}Ji(mo),Yi(mo,t)}function yo(){Ji(mo),Ji(ho),Ji(go)}function bo(e){_o(go.current);var t=_o(mo.current),n=Ae(t,e.type);t!==n&&(Yi(ho,e),Yi(mo,n))}function xo(e){ho.current===e&&(Ji(mo),Ji(ho))}var So=qi(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wo=[];function To(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var Eo=C.ReactCurrentDispatcher,Do=C.ReactCurrentBatchConfig,Oo=0,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0;function Io(){throw Error(r(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Ro(e,t,n,i,a,o){if(Oo=o,ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?xs:Ss,e=n(i,a),No){o=0;do{if(No=!1,Po=0,25<=o)throw Error(r(301));o+=1,jo=Ao=null,t.updateQueue=null,Eo.current=Cs,e=n(i,a)}while(No)}if(Eo.current=bs,t=Ao!==null&&Ao.next!==null,Oo=0,jo=Ao=ko=null,Mo=!1,t)throw Error(r(300));return e}function zo(){var e=Po!==0;return Po=0,e}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jo===null?ko.memoizedState=jo=e:jo=jo.next=e,jo}function Vo(){if(Ao===null){var e=ko.alternate;e=e===null?null:e.memoizedState}else e=Ao.next;var t=jo===null?ko.memoizedState:jo.next;if(t!==null)jo=t,Ao=e;else{if(e===null)throw Error(r(310));Ao=e,e={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},jo===null?ko.memoizedState=jo=e:jo=jo.next=e}return jo}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ao,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,ko.lanes|=d,nl|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ar(i,t.memoizedState)||(Bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,ko.lanes|=o,nl|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ar(o,t.memoizedState)||(Bs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Go(){}function Ko(e,t){var n=ko,i=Vo(),a=t(),o=!Ar(i.memoizedState,a);if(o&&(i.memoizedState=a,Bs=!0),i=i.queue,is(Yo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||jo!==null&&jo.memoizedState.tag&1){if(n.flags|=2048,$o(9,Jo.bind(null,n,i,a,t),void 0,null),Yc===null)throw Error(r(349));Oo&30||qo(n,t,a)}return a}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function Zo(e){var t=no(e,1);t!==null&&Sl(t,e,1,-1)}function Qo(e){var t=Bo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t.queue=e,e=e.dispatch=gs.bind(null,ko,e),[t.memoizedState,e]}function $o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function es(){return Vo().memoizedState}function ts(e,t,n,r){var i=Bo();ko.flags|=e,i.memoizedState=$o(1|t,n,void 0,r===void 0?null:r)}function ns(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=void 0;if(Ao!==null){var o=Ao.memoizedState;if(a=o.destroy,r!==null&&Lo(r,o.deps)){i.memoizedState=$o(t,n,a,r);return}}ko.flags|=e,i.memoizedState=$o(1|t,n,a,r)}function rs(e,t){return ts(8390656,8,e,t)}function is(e,t){return ns(2048,8,e,t)}function as(e,t){return ns(4,2,e,t)}function os(e,t){return ns(4,4,e,t)}function ss(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cs(e,t,n){return n=n==null?null:n.concat([e]),ns(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){return Oo&21?(Ar(n,t)||(n=It(),ko.lanes|=n,nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bs=!0),e.memoizedState=n)}function ps(e,t){var n=Vt;Vt=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{Vt=n,Do.transition=r}}function ms(){return Vo().memoizedState}function hs(e,t,n){var r=xl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_s(e))vs(t,n);else if(n=to(e,t,n,r),n!==null){var i=bl();Sl(n,e,r,i),ys(n,t,r)}}function gs(e,t,n){var r=xl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(e))vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o)){var c=t.interleaved;c===null?(i.next=i,eo(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=to(e,t,i,r),n!==null&&(i=bl(),Sl(n,e,r,i),ys(n,t,r))}}function _s(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function vs(e,t){No=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ys(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}var bs={readContext:Qa,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useInsertionEffect:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef:Io,useState:Io,useDebugValue:Io,useDeferredValue:Io,useTransition:Io,useMutableSource:Io,useSyncExternalStore:Io,useId:Io,unstable_isNewReconciler:!1},xs={readContext:Qa,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:Qa,useEffect:rs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ts(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();return t=n===void 0?t:n(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=hs.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:Qo,useDebugValue:ls,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=ps.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ko,a=Bo();if(Da){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Yc===null)throw Error(r(349));Oo&30||qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Yo.bind(null,i,o,e),[e]),i.flags|=2048,$o(9,Jo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Bo(),t=Yc.identifierPrefix;if(Da){var n=ba,r=ya;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Po++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Fo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ss={readContext:Qa,useCallback:us,useContext:Qa,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Uo,useRef:es,useState:function(){return Uo(Ho)},useDebugValue:ls,useDeferredValue:function(e){return fs(Vo(),Ao.memoizedState,e)},useTransition:function(){return[Uo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1},Cs={readContext:Qa,useCallback:us,useContext:Qa,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Wo,useRef:es,useState:function(){return Wo(Ho)},useDebugValue:ls,useDeferredValue:function(e){var t=Vo();return Ao===null?t.memoizedState=e:fs(t,Ao.memoizedState,e)},useTransition:function(){return[Wo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1};function ws(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Es={isMounted:function(e){return(e=e._reactInternals)?ot(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bl(),i=xl(e),a=oo(r,i);a.payload=t,n!=null&&(a.callback=n),t=so(e,a,i),t!==null&&(Sl(t,e,i,r),co(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bl(),i=xl(e),a=oo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=so(e,a,i),t!==null&&(Sl(t,e,i,r),co(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bl(),r=xl(e),i=oo(n,r);i.tag=2,t!=null&&(i.callback=t),t=so(e,i,r),t!==null&&(Sl(t,e,r,n),co(t,e,r))}};function Ds(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(i,a):!0}function Os(e,t,n){var r=!1,i=Xi,a=t.contextType;return typeof a==`object`&&a?a=Qa(a):(i=ta(t)?$i:Zi.current,r=t.contextTypes,a=(r=r!=null)?ea(e,i):Xi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Es,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Es.enqueueReplaceState(t,t.state,null)}function As(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},io(e);var a=t.contextType;typeof a==`object`&&a?i.context=Qa(a):(a=ta(t)?$i:Zi.current,i.context=ea(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ts(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Es.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function js(e,t){try{var n=``,r=t;do n+=ce(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=so(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ul||(ul=!0,dl=r),Ns(e,t)},n}function Is(e,t,n){n=so(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ns(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ns(e,t),typeof r!=`function`&&(fl===null?fl=new Set([this]):fl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ls(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ps;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ql.bind(null,e,t,n),t.then(e,e))}function U(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Rs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=so(-1,1),t.tag=2,co(n,t,1))),n.lanes|=1),e)}var zs=C.ReactCurrentOwner,Bs=!1;function Vs(e,t,n,r){t.child=e===null?Wa(t,null,n,r):Ua(t,e.child,n,r)}function Hs(e,t,n,r,i){n=n.render;var a=t.ref;return Qa(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Bs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sc(e,t,i)):(Oa&&n&&wa(t),t.flags|=1,Vs(e,t,r,i),t.child)}function Us(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!tu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ws(e,t,a,r,i)):(e=iu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?jr:n,n(o,r)&&e.ref===t.ref)return sc(e,t,i)}return t.flags|=1,e=ru(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jr(a,r)&&e.ref===t.ref)if(Bs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Bs=!0);else return t.lanes=e.lanes,sc(e,t,i)}return qs(e,t,n,r,i)}function Gs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yi($c,Qc),Qc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Yi($c,Qc),Qc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Yi($c,Qc),Qc|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Yi($c,Qc),Qc|=r;return Vs(e,t,i,n),t.child}function Ks(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qs(e,t,n,r,i){var a=ta(n)?$i:Zi.current;return a=ea(t,a),Qa(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Bs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sc(e,t,i)):(Oa&&r&&wa(t),t.flags|=1,Vs(e,t,n,i),t.child)}function Js(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if(Qa(t,i),t.stateNode===null)oc(e,t),Os(t,n,r),As(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=$a(l):(l=ta(n)?$i:Zi.current,l=ea(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&ks(t,o,r,l),io=!1;var f=t.memoizedState;o.state=f,fo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Qi.current||io?(typeof u==`function`&&(Ts(t,n,u,r),c=t.memoizedState),(s=io||Ds(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ws(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=$a(c):(c=ta(n)?$i:Zi.current,c=ea(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&ks(t,o,r,c),io=!1,f=t.memoizedState,o.state=f,fo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Qi.current||io?(typeof p==`function`&&(Ts(t,n,p,r),m=t.memoizedState),(l=io||Ds(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ys(e,t,n,r,a,i)}function Ys(e,t,n,r,i,a){Ks(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&oa(t,n,!1),sc(e,t,a);r=t.stateNode,zs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ua(t,e.child,null,a),t.child=Ua(t,null,s,a)):Vs(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Xs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),yo(e,t.containerInfo)}function W(e,t,n,r,i){return V(),La(i),t.flags|=256,Vs(e,t,n,r),t.child}var Zs={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r=t.pendingProps,i=H.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Yi(H,i&1),e===null)return Na(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=ou(o,r,0,null),e=au(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Qs(n),t.memoizedState=Zs,e):ec(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ru(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=au(a,o,n,null),a.flags|=2):a=ru(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Qs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Zs,r}return a=e.child,e=a.sibling,r=ru(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ec(e,t){return t=ou({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function tc(e,t,n,r){return r!==null&&La(r),Ua(t,e.child,null,n),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ms(Error(r(422))),tc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=ou({mode:`visible`,children:i.children},a,0,null),o=au(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ua(t,e.child,null,s),t.child.memoizedState=Qs(s),t.memoizedState=Zs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return tc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ms(o,i,void 0),tc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Bs||c){if(i=Yc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,ro(e,a),Sl(i,e,a,-1))}return Il(),i=Ms(Error(r(421))),tc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Yl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Da=Mi(a.nextSibling),Ea=t,Oa=!0,ka=null,e!==null&&(_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ba=e.id,xa=e.overflow,ya=t),t=ec(t,i.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Za(e.return,t,n)}function ic(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Vs(e,t,r.children,n),r=H.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Yi(H,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ic(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ic(t,!0,n,null,a);break;case`together`:ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=ru(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ru(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cc(e,t,n){switch(t.tag){case 3:Xs(t),V();break;case 5:xo(t);break;case 1:ta(t.type)&&aa(t);break;case 4:yo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yi(Ga,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Yi(H,H.current&1),e=sc(e,t,n),e===null?null:e.sibling):$s(e,t,n):(Yi(H,H.current&1),t.flags|=128,null);Yi(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yi(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,Gs(e,t,n)}return sc(e,t,n)}var lc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},uc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,vo(ho.current);var o=null;switch(n){case`input`:i=ge(e,i),r=ge(e,r),o=[];break;case`select`:i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),o=[];break;case`textarea`:i=we(e,i),r=we(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Si)}Re(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&ci(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},dc=function(e,t,n,r){n!==r&&(t.flags|=4)};function fc(e,t){if(!Oa)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mc(e,t,n){var i=t.pendingProps;switch(Ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pc(t),null;case 1:return ta(t.type)&&na(),pc(t),null;case 3:return i=t.stateNode,bo(),Ji(Qi),Ji(Zi),To(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ka!==null&&(El(ka),ka=null))),pc(t),null;case 5:So(t);var o=vo(_o.current);if(n=t.type,e!==null&&t.stateNode!=null)uc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return pc(t),null}if(e=vo(ho.current),Fa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Fi]=t,i[Ii]=s,e=(t.mode&1)!=0,n){case`dialog`:ci(`cancel`,i),ci(`close`,i);break;case`iframe`:case`object`:case`embed`:ci(`load`,i);break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],i);break;case`source`:ci(`error`,i);break;case`img`:case`image`:case`link`:ci(`error`,i),ci(`load`,i);break;case`details`:ci(`toggle`,i);break;case`input`:_e(i,s),ci(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ci(`invalid`,i);break;case`textarea`:Te(i,s),ci(`invalid`,i)}for(var c in Re(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ci(`scroll`,i)}switch(n){case`input`:pe(i),be(i,s,!0);break;case`textarea`:pe(i),De(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Si)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Oe(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Fi]=t,e[Ii]=i,lc(e,t,!1,!1),t.stateNode=e;a:{switch(c=ze(n,i),n){case`dialog`:ci(`cancel`,e),ci(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ci(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],e);o=i;break;case`source`:ci(`error`,e),o=i;break;case`img`:case`image`:case`link`:ci(`error`,e),ci(`load`,e),o=i;break;case`details`:ci(`toggle`,e),o=i;break;case`input`:_e(e,i),o=ge(e,i),ci(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=I({},i,{value:void 0}),ci(`invalid`,e);break;case`textarea`:Te(e,i),o=we(e,i),ci(`invalid`,e);break;default:o=i}for(s in Re(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ie(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&je(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Me(e,u):typeof u==`number`&&Me(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ci(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:pe(e),be(e,i,!1);break;case`textarea`:pe(e),De(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+ue(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Ce(e,!!i.multiple,i.defaultValue,!0):Ce(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Si)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pc(t),null;case 6:if(e&&t.stateNode!=null)dc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=vo(_o.current),vo(ho.current),Fa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Fi]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:xi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Fi]=t,t.stateNode=i}return pc(t),null;case 13:if(Ji(H),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oa&&Da!==null&&t.mode&1&&!(t.flags&128))Ia(),V(),t.flags|=98560,s=!1;else if(s=Fa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Fi]=t}else V(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pc(t),s=!1}else ka!==null&&(El(ka),ka=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||H.current&1?el===0&&(el=3):Il())),t.updateQueue!==null&&(t.flags|=4),pc(t),null);case 4:return bo(),e===null&&di(t.stateNode.containerInfo),pc(t),null;case 10:return Xa(t.type._context),pc(t),null;case 17:return ta(t.type)&&na(),pc(t),null;case 19:if(Ji(H),s=t.memoizedState,s===null)return pc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)fc(s,!1);else{if(el!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Co(e),c!==null){for(t.flags|=128,fc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yi(H,H.current&1|2),t.child}e=e.sibling}s.tail!==null&&ht()>cl&&(t.flags|=128,i=!0,fc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Oa)return pc(t),null}else 2*ht()-s.renderingStartTime>cl&&n!==1073741824&&(t.flags|=128,i=!0,fc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(pc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ht(),t.sibling=null,n=H.current,Yi(H,i?n&1|2:n&1),t);case 22:case 23:return Ml(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Qc&1073741824&&(pc(t),t.subtreeFlags&6&&(t.flags|=8192)):pc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function hc(e,t){switch(Ta(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),Ji(Qi),Ji(Zi),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return So(t),null;case 13:if(Ji(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));V()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ji(H),null;case 4:return bo(),null;case 10:return Xa(t.type._context),null;case 22:case 23:return Ml(),null;case 24:return null;default:return null}}var gc=!1,_c=!1,vc=typeof WeakSet==`function`?WeakSet:Set,G=null;function yc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Kl(e,t,n)}else n.current=null}function bc(e,t,n){try{n()}catch(n){Kl(e,t,n)}}var xc=!1;function Sc(e,t){if(Ci=mn,e=Fr(),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(wi={focusedElem:e,selectionRange:n},mn=!1,G=t;G!==null;)if(t=G,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ws(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Kl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return h=xc,xc=!1,h}function Cc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&bc(t,n,a)}i=i.next}while(i!==r)}}function wc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==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 Tc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),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 Dc(e){return e.tag===5||e.tag===3||e.tag===4}function Oc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Dc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Si));else if(r!==4&&(e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}var jc=null,Mc=!1;function Nc(e,t,n){for(n=n.child;n!==null;)Pc(e,t,n),n=n.sibling}function Pc(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount==`function`)try{Ct.onCommitFiberUnmount(St,n)}catch{}switch(n.tag){case 5:_c||yc(n,t);case 6:var r=jc,i=Mc;jc=null,Nc(e,t,n),jc=r,Mc=i,jc!==null&&(Mc?(e=jc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jc.removeChild(n.stateNode));break;case 18:jc!==null&&(Mc?(e=jc,n=n.stateNode,e.nodeType===8?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),fn(e)):ji(jc,n.stateNode));break;case 4:r=jc,i=Mc,jc=n.stateNode.containerInfo,Mc=!0,Nc(e,t,n),jc=r,Mc=i;break;case 0:case 11:case 14:case 15:if(!_c&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&bc(n,t,o),i=i.next}while(i!==r)}Nc(e,t,n);break;case 1:if(!_c&&(yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Kl(n,t,e)}Nc(e,t,n);break;case 21:Nc(e,t,n);break;case 22:n.mode&1?(_c=(r=_c)||n.memoizedState!==null,Nc(e,t,n),_c=r):Nc(e,t,n);break;default:Nc(e,t,n)}}function Fc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vc),t.forEach(function(t){var r=Xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ic(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:jc=c.stateNode,Mc=!1;break a;case 3:jc=c.stateNode.containerInfo,Mc=!0;break a;case 4:jc=c.stateNode.containerInfo,Mc=!0;break a}c=c.return}if(jc===null)throw Error(r(160));Pc(o,s,a),jc=null,Mc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Kl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lc(t,e),t=t.sibling}function Lc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ic(t,e),Rc(e),i&4){try{Cc(3,e,e.return),wc(3,e)}catch(t){Kl(e,e.return,t)}try{Cc(5,e,e.return)}catch(t){Kl(e,e.return,t)}}break;case 1:Ic(t,e),Rc(e),i&512&&n!==null&&yc(n,n.return);break;case 5:if(Ic(t,e),Rc(e),i&512&&n!==null&&yc(n,n.return),e.flags&32){var a=e.stateNode;try{Me(a,``)}catch(t){Kl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&ve(a,o),ze(c,s);var u=ze(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ie(a,f):d===`dangerouslySetInnerHTML`?je(a,f):d===`children`?Me(a,f):S(a,d,f,u)}switch(c){case`input`:ye(a,o);break;case`textarea`:Ee(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Ce(a,!!o.multiple,o.multiple?[]:``,!1):Ce(a,!!o.multiple,o.defaultValue,!0)):Ce(a,!!o.multiple,m,!1)}a[Ii]=o}catch(t){Kl(e,e.return,t)}}break;case 6:if(Ic(t,e),Rc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Kl(e,e.return,t)}}break;case 3:if(Ic(t,e),Rc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{fn(t.containerInfo)}catch(t){Kl(e,e.return,t)}break;case 4:Ic(t,e),Rc(e);break;case 13:Ic(t,e),Rc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(sl=ht())),i&4&&Fc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(_c=(u=_c)||d,Ic(t,e),_c=u):Ic(t,e),Rc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(G=e,d=e.child;d!==null;){for(f=G=d;G!==null;){switch(p=G,m=p.child,p.tag){case 0:case 11:case 14:case 15:Cc(4,p,p.return);break;case 1:yc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Kl(i,n,e)}}break;case 5:yc(p,p.return);break;case 22:if(p.memoizedState!==null){Hc(f);continue}}m===null?Hc(f):(m.return=p,G=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Fe(`display`,s))}catch(t){Kl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Kl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ic(t,e),Rc(e),i&4&&Fc(e);break;case 21:break;default:Ic(t,e),Rc(e)}}function Rc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Dc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Me(a,``),i.flags&=-33),Ac(e,Oc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;kc(e,Oc(e),o);break;default:throw Error(r(161))}}catch(t){Kl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zc(e,t,n){G=e,Bc(e,t,n)}function Bc(e,t,n){for(var r=(e.mode&1)!=0;G!==null;){var i=G,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||gc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||_c;s=gc;var l=_c;if(gc=o,(_c=c)&&!l)for(G=i;G!==null;)o=G,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Uc(i):(c.return=o,G=c);for(;a!==null;)G=a,Bc(a,t,n),a=a.sibling;G=i,gc=s,_c=l}Vc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,G=a):Vc(e,t,n)}}function Vc(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_c||wc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!_c)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ws(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&po(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}po(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}_c||t.flags&512&&Tc(t)}catch(e){Kl(t,t.return,e)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Hc(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Uc(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wc(4,t)}catch(e){Kl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Kl(t,i,e)}}var a=t.return;try{Tc(t)}catch(e){Kl(t,a,e)}break;case 5:var o=t.return;try{Tc(t)}catch(e){Kl(t,o,e)}}}catch(e){Kl(t,t.return,e)}if(t===e){G=null;break}var s=t.sibling;if(s!==null){s.return=t.return,G=s;break}G=t.return}}var Wc=Math.ceil,Gc=C.ReactCurrentDispatcher,Kc=C.ReactCurrentOwner,qc=C.ReactCurrentBatchConfig,Jc=0,Yc=null,Xc=null,Zc=0,Qc=0,$c=qi(0),el=0,tl=null,nl=0,rl=0,il=0,al=null,ol=null,sl=0,cl=1/0,ll=null,ul=!1,dl=null,fl=null,pl=!1,ml=null,hl=0,gl=0,_l=null,vl=-1,yl=0;function bl(){return Jc&6?ht():vl===-1?vl=ht():vl}function xl(e){return e.mode&1?Jc&2&&Zc!==0?Zc&-Zc:Ra.transition===null?(e=Vt,e===0?(e=window.event,e=e===void 0?16:bn(e.type),e):e):(yl===0&&(yl=It()),yl):1}function Sl(e,t,n,i){if(50<gl)throw gl=0,_l=null,Error(r(185));Rt(e,n,i),(!(Jc&2)||e!==Yc)&&(e===Yc&&(!(Jc&2)&&(rl|=n),el===4&&Ol(e,Zc)),Cl(e,i),n===1&&Jc===0&&!(t.mode&1)&&(cl=ht()+500,ca&&fa()))}function Cl(e,t){var n=e.callbackNode;Pt(e,t);var r=Mt(e,e===Yc?Zc:0);if(r===0)n!==null&&ft(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ft(n),t===1)e.tag===0?da(kl.bind(null,e)):ua(kl.bind(null,e)),ki(function(){!(Jc&6)&&fa()}),n=null;else{switch(Ht(r)){case 1:n=_t;break;case 4:n=vt;break;case 16:n=yt;break;case 536870912:n=xt;break;default:n=yt}n=Ql(n,wl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wl(e,t){if(vl=-1,yl=0,Jc&6)throw Error(r(327));var n=e.callbackNode;if(Wl()&&e.callbackNode!==n)return null;var i=Mt(e,e===Yc?Zc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Ll(e,i);else{t=i;var a=Jc;Jc|=2;var o=Fl();(Yc!==e||Zc!==t)&&(ll=null,cl=ht()+500,Nl(e,t));do try{zl();break}catch(t){Pl(e,t)}while(1);Ya(),Gc.current=o,Jc=a,Xc===null?(Yc=null,Zc=0,t=el):t=0}if(t!==0){if(t===2&&(a=Ft(e),a!==0&&(i=a,t=Tl(e,a))),t===1)throw n=tl,Nl(e,0),Ol(e,i),Cl(e,ht()),n;if(t===6)Ol(e,i);else{if(a=e.current.alternate,!(i&30)&&!Dl(a)&&(t=Ll(e,i),t===2&&(o=Ft(e),o!==0&&(i=o,t=Tl(e,o))),t===1))throw n=tl,Nl(e,0),Ol(e,i),Cl(e,ht()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Hl(e,ol,ll);break;case 3:if(Ol(e,i),(i&130023424)===i&&(t=sl+500-ht(),10<t)){if(Mt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){bl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ei(Hl.bind(null,e,ol,ll),t);break}Hl(e,ol,ll);break;case 4:if(Ol(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Tt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=ht()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wc(i/1960))-i,10<i){e.timeoutHandle=Ei(Hl.bind(null,e,ol,ll),i);break}Hl(e,ol,ll);break;case 5:Hl(e,ol,ll);break;default:throw Error(r(329))}}}return Cl(e,ht()),e.callbackNode===n?wl.bind(null,e):null}function Tl(e,t){var n=al;return e.current.memoizedState.isDehydrated&&(Nl(e,t).flags|=256),e=Ll(e,t),e!==2&&(t=ol,ol=n,t!==null&&El(t)),e}function El(e){ol===null?ol=e:ol.push.apply(ol,e)}function Dl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ar(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t){for(t&=~il,t&=~rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tt(t),r=1<<n;e[n]=-1,t&=~r}}function kl(e){if(Jc&6)throw Error(r(327));Wl();var t=Mt(e,0);if(!(t&1))return Cl(e,ht()),null;var n=Ll(e,t);if(e.tag!==0&&n===2){var i=Ft(e);i!==0&&(t=i,n=Tl(e,i))}if(n===1)throw n=tl,Nl(e,0),Ol(e,t),Cl(e,ht()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hl(e,ol,ll),Cl(e,ht()),null}function Al(e,t){var n=Jc;Jc|=1;try{return e(t)}finally{Jc=n,Jc===0&&(cl=ht()+500,ca&&fa())}}function jl(e){ml!==null&&ml.tag===0&&!(Jc&6)&&Wl();var t=Jc;Jc|=1;var n=qc.transition,r=Vt;try{if(qc.transition=null,Vt=1,e)return e()}finally{Vt=r,qc.transition=n,Jc=t,!(Jc&6)&&fa()}}function Ml(){Qc=$c.current,Ji($c)}function Nl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Di(n)),Xc!==null)for(n=Xc.return;n!==null;){var r=n;switch(Ta(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&na();break;case 3:bo(),Ji(Qi),Ji(Zi),To();break;case 5:So(r);break;case 4:bo();break;case 13:Ji(H);break;case 19:Ji(H);break;case 10:Xa(r.type._context);break;case 22:case 23:Ml()}n=n.return}if(Yc=e,Xc=e=ru(e.current,null),Zc=Qc=t,el=0,tl=null,il=rl=nl=0,ol=al=null,eo!==null){for(t=0;t<eo.length;t++)if(n=eo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}eo=null}return e}function Pl(e,t){do{var n=Xc;try{if(Ya(),Eo.current=bs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=0,Kc.current=null,n===null||n.return===null){el=1,tl=t,Xc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Zc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=U(s);if(m!==null){m.flags&=-257,Rs(m,s,c,o,t),m.mode&1&&Ls(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Ls(o,u,t),Il();break a}l=Error(r(426))}}else if(Oa&&c.mode&1){var _=U(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Rs(_,s,c,o,t),La(js(l,c));break a}}o=l=js(l,c),el!==4&&(el=2),al===null?al=[o]:al.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Fs(o,l,t);uo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(fl===null||!fl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Is(o,c,t);uo(o,x);break a}}o=o.return}while(o!==null)}Vl(n)}catch(e){t=e,Xc===n&&n!==null&&(Xc=n=n.return);continue}break}while(1)}function Fl(){var e=Gc.current;return Gc.current=bs,e===null?bs:e}function Il(){(el===0||el===3||el===2)&&(el=4),Yc===null||!(nl&268435455)&&!(rl&268435455)||Ol(Yc,Zc)}function Ll(e,t){var n=Jc;Jc|=2;var i=Fl();(Yc!==e||Zc!==t)&&(ll=null,Nl(e,t));do try{Rl();break}catch(t){Pl(e,t)}while(1);if(Ya(),Jc=n,Gc.current=i,Xc!==null)throw Error(r(261));return Yc=null,Zc=0,el}function Rl(){for(;Xc!==null;)Bl(Xc)}function zl(){for(;Xc!==null&&!pt();)Bl(Xc)}function Bl(e){var t=Zl(e.alternate,e,Qc);e.memoizedProps=e.pendingProps,t===null?Vl(e):Xc=t,Kc.current=null}function Vl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hc(n,t),n!==null){n.flags&=32767,Xc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{el=6,Xc=null;return}}else if(n=mc(n,t,Qc),n!==null){Xc=n;return}if(t=t.sibling,t!==null){Xc=t;return}Xc=t=e}while(t!==null);el===0&&(el=5)}function Hl(e,t,n){var r=Vt,i=qc.transition;try{qc.transition=null,Vt=1,Ul(e,t,n,r)}finally{qc.transition=i,Vt=r}return null}function Ul(e,t,n,i){do Wl();while(ml!==null);if(Jc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(zt(e,o),e===Yc&&(Xc=Yc=null,Zc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pl||(pl=!0,Ql(yt,function(){return Wl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=qc.transition,qc.transition=null;var s=Vt;Vt=1;var c=Jc;Jc|=4,Kc.current=null,Sc(e,n),Lc(n,e),Lr(wi),mn=!!Ci,wi=Ci=null,e.current=n,zc(n,e,a),mt(),Jc=c,Vt=s,qc.transition=o}else e.current=n;if(pl&&(pl=!1,ml=e,hl=a),o=e.pendingLanes,o===0&&(fl=null),wt(n.stateNode,i),Cl(e,ht()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(ul)throw ul=!1,e=dl,dl=null,e;return hl&1&&e.tag!==0&&Wl(),o=e.pendingLanes,o&1?e===_l?gl++:(gl=0,_l=e):gl=0,fa(),null}function Wl(){if(ml!==null){var e=Ht(hl),t=qc.transition,n=Vt;try{if(qc.transition=null,Vt=16>e?16:e,ml===null)var i=!1;else{if(e=ml,ml=null,hl=0,Jc&6)throw Error(r(331));var a=Jc;for(Jc|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(G=u;G!==null;){var d=G;switch(d.tag){case 0:case 11:case 15:Cc(8,d,o)}var f=d.child;if(f!==null)f.return=d,G=f;else for(;G!==null;){d=G;var p=d.sibling,m=d.return;if(Ec(d),d===u){G=null;break}if(p!==null){p.return=m,G=p;break}G=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}G=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,G=s;else b:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Cc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,G=v;break b}G=o.return}}var y=e.current;for(G=y;G!==null;){s=G;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,G=b;else b:for(s=y;G!==null;){if(c=G,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:wc(9,c)}}catch(e){Kl(c,c.return,e)}if(c===s){G=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,G=x;break b}G=c.return}}if(Jc=a,fa(),Ct&&typeof Ct.onPostCommitFiberRoot==`function`)try{Ct.onPostCommitFiberRoot(St,e)}catch{}i=!0}return i}finally{Vt=n,qc.transition=t}}return!1}function Gl(e,t,n){t=js(n,t),t=Fs(e,t,1),e=co(e,t,1),t=bl(),e!==null&&(Rt(e,1,t),Cl(e,t))}function Kl(e,t,n){if(e.tag===3)Gl(e,e,n);else for(;t!==null;){if(t.tag===3){Gl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(fl===null||!fl.has(r))){e=js(n,e),e=Is(t,e,1),t=co(t,e,1),e=bl(),t!==null&&(Rt(t,1,e),Cl(t,e));break}}t=t.return}}function ql(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=bl(),e.pingedLanes|=e.suspendedLanes&n,Yc===e&&(Zc&n)===n&&(el===4||el===3&&(Zc&130023424)===Zc&&500>ht()-sl?Nl(e,0):il|=n),Cl(e,t)}function Jl(e,t){t===0&&(e.mode&1?(t=At,At<<=1,!(At&130023424)&&(At=4194304)):t=1);var n=bl();e=ro(e,t),e!==null&&(Rt(e,t,n),Cl(e,n))}function Yl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jl(e,n)}function Xl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Jl(e,n)}var Zl=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qi.current)Bs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Bs=!1,cc(e,t,n);Bs=!!(e.flags&131072)}else Bs=!1,Oa&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;oc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);Qa(t,n),a=Ro(null,t,i,e,a,n);var o=zo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ta(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ao(t),a.updater=Es,t.stateNode=a,a._reactInternals=t,As(t,i,e,n),t=Ys(null,t,i,!0,o,n)):(t.tag=0,Oa&&o&&wa(t),Vs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(oc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=nu(i),e=ws(i,e),a){case 0:t=qs(null,t,i,e,n);break a;case 1:t=Js(null,t,i,e,n);break a;case 11:t=Hs(null,t,i,e,n);break a;case 14:t=Us(null,t,i,ws(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),qs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Js(e,t,i,a,n);case 3:a:{if(Xs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,oo(e,t),fo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=js(Error(r(423)),t),t=W(e,t,i,n,a);break a}else if(i!==a){a=js(Error(r(424)),t),t=W(e,t,i,n,a);break a}else for(Da=Mi(t.stateNode.containerInfo.firstChild),Ea=t,Oa=!0,ka=null,n=Wa(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(V(),i===a){t=sc(e,t,n);break a}Vs(e,t,i,n)}t=t.child}return t;case 5:return xo(t),e===null&&Na(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),Ks(e,t),Vs(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return $s(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ua(t,null,i,n):Vs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Hs(e,t,i,a,n);case 7:return Vs(e,t,t.pendingProps,n),t.child;case 8:return Vs(e,t,t.pendingProps.children,n),t.child;case 12:return Vs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Yi(Ga,i._currentValue),i._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===a.children&&!Qi.current){t=sc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=so(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Za(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Za(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Vs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Qa(t,n),a=$a(a),i=i(a),t.flags|=1,Vs(e,t,i,n),t.child;case 14:return i=t.type,a=ws(i,t.pendingProps),a=ws(i.type,a),Us(e,t,i,a,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),oc(e,t),t.tag=1,ta(i)?(e=!0,aa(t)):e=!1,Qa(t,n),Os(t,i,a),As(t,i,a,n),Ys(null,t,i,!0,e,n);case 19:return ac(e,t,n);case 22:return Gs(e,t,n)}throw Error(r(156,t.tag))};function Ql(e,t){return dt(e,t)}function $l(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 eu(e,t,n,r){return new $l(e,t,n,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nu(e){if(typeof e==`function`)return+!!tu(e);if(e!=null){if(e=e.$$typeof,e===j)return 11;if(e===N)return 14}return 2}function ru(e,t){var n=e.alternate;return n===null?(n=eu(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)tu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return au(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=eu(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case M:return e=eu(13,n,t,a),e.elementType=M,e.lanes=o,e;case ee:return e=eu(19,n,t,a),e.elementType=ee,e.lanes=o,e;case P:return ou(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case k:s=10;break a;case A:s=9;break a;case j:s=11;break a;case N:s=14;break a;case te:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=eu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function au(e,t,n,r){return e=eu(7,e,r,t),e.lanes=n,e}function ou(e,t,n,r){return e=eu(22,e,r,t),e.elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=eu(6,e,null,t),e.lanes=n,e}function cu(e,t,n){return t=eu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lu(e,t,n,r,i){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=Lt(0),this.expirationTimes=Lt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,i,a,o,s,c){return e=new lu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=eu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ao(a),e}function du(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function fu(e){if(!e)return Xi;e=e._reactInternals;a:{if(at(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ta(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ta(n))return ia(e,n,t)}return t}function pu(e,t,n,r,i,a,o,s,c){return e=uu(n,r,!0,e,i,a,o,s,c),e.context=fu(null),n=e.current,r=bl(),i=xl(n),a=so(r,i),a.callback=t??null,co(n,a,i),e.current.lanes=i,Rt(e,i,r),Cl(e,r),e}function mu(e,t,n,r){var i=t.current,a=bl(),o=xl(i);return n=fu(n),t.context===null?t.context=n:t.pendingContext=n,t=so(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=co(i,t,o),e!==null&&(Sl(e,i,o,a),lo(e,i,o)),o}function hu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _u(e,t){gu(e,t),(e=e.alternate)&&gu(e,t)}function vu(){return null}var yu=typeof reportError==`function`?reportError:function(e){console.error(e)};function bu(e){this._internalRoot=e}xu.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));mu(e,t,null,null)},xu.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jl(function(){mu(null,e,null,null)}),t[Li]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tn.length&&t!==0&&t<tn[n].priority;n++);tn.splice(n,0,e),n===0&&sn(e)}};function Su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function wu(){}function Tu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=hu(o);a.call(e)}}var o=pu(t,r,e,0,null,!1,!1,``,wu);return e._reactRootContainer=o,e[Li]=o.current,di(e.nodeType===8?e.parentNode:e),jl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=hu(c);s.call(e)}}var c=uu(e,0,!1,null,null,!1,!1,``,wu);return e._reactRootContainer=c,e[Li]=c.current,di(e.nodeType===8?e.parentNode:e),jl(function(){mu(t,c,n,r)}),c}function Eu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=hu(o);s.call(e)}}mu(t,o,e,i)}else o=Tu(n,t,e,i,r);return hu(o)}Ut=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jt(t.pendingLanes);n!==0&&(Bt(t,n|1),Cl(t,ht()),!(Jc&6)&&(cl=ht()+500,fa()))}break;case 13:jl(function(){var t=ro(e,1);t!==null&&Sl(t,e,1,bl())}),_u(e,1)}},Wt=function(e){if(e.tag===13){var t=ro(e,134217728);t!==null&&Sl(t,e,134217728,bl()),_u(e,134217728)}},Gt=function(e){if(e.tag===13){var t=xl(e),n=ro(e,t);n!==null&&Sl(n,e,t,bl()),_u(e,t)}},Kt=function(){return Vt},qt=function(e,t){var n=Vt;try{return Vt=e,t()}finally{Vt=n}},He=function(e,t,n){switch(t){case`input`:if(ye(e,n),t=n.name,n.type===`radio`&&t!=null){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 i=n[t];if(i!==e&&i.form===e.form){var a=Wi(i);if(!a)throw Error(r(90));me(i),ye(i,a)}}}break;case`textarea`:Ee(e,n);break;case`select`:t=n.value,t!=null&&Ce(e,!!n.multiple,t,!1)}},Je=Al,Ye=jl;var Du={usingClientEntryPoint:!1,Events:[Hi,Ui,Wi,Ke,qe,Al]},Ou={findFiberByHostInstance:Vi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ku={bundleType:Ou.bundleType,version:Ou.version,rendererPackageName:Ou.rendererPackageName,rendererConfig:Ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lt(e),e===null?null:e.stateNode},findFiberByHostInstance:Ou.findFiberByHostInstance||vu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{St=Au.inject(ku),Ct=Au}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Du,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Su(t))throw Error(r(200));return du(e,t,null,n)},e.createRoot=function(e,t){if(!Su(e))throw Error(r(299));var n=!1,i=``,a=yu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uu(e,1,!1,null,null,n,!1,i,a),e[Li]=t.current,di(e.nodeType===8?e.parentNode:e),new bu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=lt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return jl(e)},e.hydrate=function(e,t,n){if(!Cu(t))throw Error(r(200));return Eu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Su(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=yu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=pu(t,null,e,1,n??null,a,!1,o,s),e[Li]=t.current,di(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new xu(t)},e.render=function(e,t,n){if(!Cu(t))throw Error(r(200));return Eu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Cu(e))throw Error(r(40));return e._reactRootContainer?(jl(function(){Eu(null,null,e,!1,function(){e._reactRootContainer=null,e[Li]=null})}),!0):!1},e.unstable_batchedUpdates=Al,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Cu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Eu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=_();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),y=Object.prototype;function b(e){return typeof e==`object`&&!!e}function x(e){if(!b(e))return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(e=>x(e));let t={};for(let[n,r]of Object.entries(e))t[n]=x(r);return t}function S(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:!b(e)||Object.keys(e).length===0}function C(e,t,n){let r=n?.(e,t);if(r!==void 0)return!!r;if(Object.is(e,t))return!0;if(!b(e)||!b(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>C(e,t[r],n));let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(r=>y.hasOwnProperty.call(t,r)&&C(e[r],t[r],n))}function w(e,t){return C(e,t)}function T(e,t){let n={...e??{}};for(let e of Array.isArray(t)?t:[t])delete n[e];return n}var E=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,D=`pie-mathjax-version-conflict`,O=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function k(e,t){if(typeof window>`u`)return;let n=globalThis;n[O]??={logged:!1,conditions:[]};let r=n[O];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${E}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(D,{detail:{condition:e,message:i,docsUrl:E}}))}function A(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var j=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,M={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},ee=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,N=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,te=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,P=/\\embed\{newLine\}\[\]/g,F=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],ne=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),I=`PIE-MJX-CHTML-styles`,re=`MJX-CHTML-styles`,ie=[re,`MJX-SVG-styles`],ae=201;function oe(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function se(){return window.MathJax}function ce(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of F)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function le(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${ce(e)}\\)`.replace(P,`\\newline `),t.dataset.mathHandled=`true`)}}function ue(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?te:N).test(e.textContent??``)}function de(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=se(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&fe(e),r?.defaultReady?.(),i&&pe(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...M}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(ee),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||j,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function fe(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=I)}function pe(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(oe(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,ae,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&oe(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===re&&(r.id=I),ge()}function me(e){return e instanceof HTMLStyleElement&&ie.includes(e.id)}function he(e){k(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function ge(){let e=document.head,t=[...e.children].find(me);if(t){he(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(me);if(e){he(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function _e(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=se()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function ve(e){let t=se();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():_e(t):de(e)}function ye(e){return ve(e).then(()=>{typeof se()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function be(e){let t=globalThis,n=t[ne];return n||(n=ye(e),t[ne]=n),n}function xe(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=A();r&&k(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),le(n);let i=be(e);if(!ue(n,t)){i.catch(()=>{});return}await i;let a=se();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),oe(n))}}var Se=`@pie-lib/math-rendering`,Ce=`@pie-lib/math-rendering@2`,we=null;function Te(){return!!window[Ce]?.opts?.useSingleDollar}function Ee(){return we||=xe({useSingleDollar:Te()}),we}function De(){if(typeof window>`u`)return null;let e=window[Se];return typeof e?.renderMath==`function`?e:null}function Oe(){let e=A();e&&k(`legacy-renderer-delegation`,`window['${Se}'] renders this element's math with MathJax ${e}`)}var ke=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=De();return r?(Oe(),await r.renderMath?.(n)):await Ee()(n),t?n.innerHTML:void 0},Ae=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},je=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},Me=c({PropTypes:()=>L,any:()=>Ue,array:()=>Fe,arrayOf:()=>qe,bigint:()=>Ie,bool:()=>Le,checkPropTypes:()=>et,default:()=>L,element:()=>We,elementType:()=>Ge,exact:()=>$e,func:()=>Re,instanceOf:()=>Je,node:()=>Ke,number:()=>ze,object:()=>Be,objectOf:()=>Ye,oneOf:()=>Xe,oneOfType:()=>Ze,resetWarningCache:()=>tt,shape:()=>Qe,string:()=>Ve,symbol:()=>He}),Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,L,R=o((()=>{Ne=function(){return null},Ne.isRequired=Ne,Pe=()=>Ne,Fe=Ne,Ie=Ne,Le=Ne,Re=Ne,ze=Ne,Be=Ne,Ve=Ne,He=Ne,Ue=Ne,We=Ne,Ge=Ne,Ke=Ne,qe=Pe,Je=Pe,Ye=Pe,Xe=Pe,Ze=Pe,Qe=Pe,$e=Pe,et=()=>{},tt=()=>{},L={array:Fe,bigint:Ie,bool:Le,func:Re,number:ze,object:Be,string:Ve,symbol:He,any:Ue,element:We,elementType:Ge,node:Ke,arrayOf:qe,instanceOf:Je,objectOf:Ye,oneOf:Xe,oneOfType:Ze,shape:Qe,exact:$e,checkPropTypes:et,resetWarningCache:tt},L.PropTypes=L})),nt=s((e=>{var t=p(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),rt=s(((e,t)=>{t.exports=nt()})),z=u(p(),1);R();var B=rt(),it=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,at=({size:e,children:t})=>(e=it(e),(0,B.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));at.propTypes={size:L.number,children:L.oneOfType([L.arrayOf(L.node),L.node]).isRequired},R();var ot=({size:e,children:t,sx:n})=>(0,B.jsx)(at,{size:e,children:(0,B.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});ot.propTypes={size:L.oneOfType([L.string,L.number]),children:L.oneOfType([L.arrayOf(L.node),L.node]).isRequired,sx:L.object};var st=({fill:e})=>(0,B.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});st.propTypes={fill:L.string.isRequired};var ct=({fill:e})=>(0,B.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});ct.propTypes={fill:L.string.isRequired};var lt=({fill:e})=>(0,B.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});lt.propTypes={fill:L.string.isRequired};var ut=({fill:e})=>(0,B.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});ut.propTypes={fill:L.string.isRequired};var dt=({fill:e})=>(0,B.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});dt.propTypes={fill:L.string.isRequired},R();var ft=(e,t)=>{class n extends z.Component{static propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,size:L.oneOfType([L.number,L.string]),fg:L.string,bg:L.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,B.jsx)(e,{fill:s}):(0,B.jsx)(t,{fill:s}),u=n===`check`?(0,B.jsx)(e,{fill:c}):(0,B.jsx)(t,{fill:c});return a?(0,B.jsx)(ot,{size:o,children:u}):(0,B.jsxs)(ot,{size:o,children:[i===`feedback`?r===`round`?(0,B.jsx)(lt,{fill:c}):(0,B.jsx)(ct,{fill:c}):r===`round`?(0,B.jsx)(ut,{fill:c}):(0,B.jsx)(dt,{fill:c}),l]})}}return n};R();var pt=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,B.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
|
|
9
|
-
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,B.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,B.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});pt.propTypes={fill:L.string.isRequired};var mt=({fill:e,x:t=0,y:n=0})=>(0,B.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});mt.propTypes={fill:L.string.isRequired,x:L.number,y:L.number};var ht=ft(mt,pt);ht.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},ht.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};function gt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var _t=`$$material`;function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vt.apply(null,arguments)}function yt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bt(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var xt=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(bt(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=yt(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),St=`-ms-`,Ct=`-moz-`,wt=`-webkit-`,Tt=`comm`,Et=`rule`,Dt=`decl`,Ot=`@import`,kt=`@keyframes`,At=`@layer`,jt=Math.abs,Mt=String.fromCharCode,Nt=Object.assign;function Pt(e,t){return zt(e,0)^45?(((t<<2^zt(e,0))<<2^zt(e,1))<<2^zt(e,2))<<2^zt(e,3):0}function Ft(e){return e.trim()}function It(e,t){return(e=t.exec(e))?e[0]:e}function Lt(e,t,n){return e.replace(t,n)}function Rt(e,t){return e.indexOf(t)}function zt(e,t){return e.charCodeAt(t)|0}function Bt(e,t,n){return e.slice(t,n)}function Vt(e){return e.length}function Ht(e){return e.length}function Ut(e,t){return t.push(e),e}function Wt(e,t){return e.map(t).join(``)}var Gt=1,Kt=1,qt=0,Jt=0,Yt=0,Xt=``;function Zt(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Gt,column:Kt,length:o,return:``}}function Qt(e,t){return Nt(Zt(``,null,null,``,null,null,0),e,{length:-e.length},t)}function $t(){return Yt}function en(){return Yt=Jt>0?zt(Xt,--Jt):0,Kt--,Yt===10&&(Kt=1,Gt--),Yt}function tn(){return Yt=Jt<qt?zt(Xt,Jt++):0,Kt++,Yt===10&&(Kt=1,Gt++),Yt}function nn(){return zt(Xt,Jt)}function rn(){return Jt}function an(e,t){return Bt(Xt,e,t)}function on(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sn(e){return Gt=Kt=1,qt=Vt(Xt=e),Jt=0,[]}function cn(e){return Xt=``,e}function ln(e){return Ft(an(Jt-1,fn(e===91?e+2:e===40?e+1:e)))}function un(e){for(;(Yt=nn())&&Yt<33;)tn();return on(e)>2||on(Yt)>3?``:` `}function dn(e,t){for(;--t&&tn()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return an(e,rn()+(t<6&&nn()==32&&tn()==32))}function fn(e){for(;tn();)switch(Yt){case e:return Jt;case 34:case 39:e!==34&&e!==39&&fn(Yt);break;case 40:e===41&&fn(e);break;case 92:tn();break}return Jt}function pn(e,t){for(;tn()&&e+Yt!==57&&!(e+Yt===84&&nn()===47););return`/*`+an(t,Jt-1)+`*`+Mt(e===47?e:tn())}function mn(e){for(;!on(nn());)tn();return an(e,Jt)}function hn(e){return cn(gn(``,null,null,null,[``],e=sn(e),0,[0],e))}function gn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=tn()){case 40:if(m!=108&&zt(C,d-1)==58){Rt(C+=Lt(ln(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ln(v);break;case 9:case 10:case 13:case 32:C+=un(m);break;case 92:C+=dn(rn()-1,7);continue;case 47:switch(nn()){case 42:case 47:Ut(vn(pn(tn(),rn()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Vt(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Lt(C,/\f/g,``)),p>0&&Vt(C)-d&&Ut(p>32?yn(C+`;`,r,n,d-1):yn(Lt(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Ut(S=_n(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)gn(C,t,S,S,b,a,d,s,x);else switch(f===99&&zt(C,3)===110?100:f){case 100:case 108:case 109:case 115:gn(e,S,S,r&&Ut(_n(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:gn(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Vt(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&en()==125)continue}switch(C+=Mt(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Vt(C)-1)*_,_=1;break;case 64:nn()===45&&(C+=ln(tn())),f=nn(),u=d=Vt(y=C+=mn(rn())),v++;break;case 45:m===45&&Vt(C)==2&&(h=0)}}return a}function _n(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Ht(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Bt(e,d+1,d=jt(h=o[m])),y=e;_<p;++_)(y=Ft(h>0?f[_]+` `+v:Lt(v,/&\f/g,f[_])))&&(c[g++]=y);return Zt(e,t,n,i===0?Et:s,c,l,u)}function vn(e,t,n){return Zt(e,t,n,Tt,Mt($t()),Bt(e,2,-2),0)}function yn(e,t,n,r){return Zt(e,t,n,Dt,Bt(e,0,r),Bt(e,r+1,-1),r)}function bn(e,t){for(var n=``,r=Ht(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function xn(e,t,n,r){switch(e.type){case At:if(e.children.length)break;case Ot:case Dt:return e.return=e.return||e.value;case Tt:return``;case kt:return e.return=e.value+`{`+bn(e.children,r)+`}`;case Et:e.value=e.props.join(`,`)}return Vt(n=bn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Sn(e){var t=Ht(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Cn(e){return function(t){t.root||(t=t.return)&&e(t)}}function wn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Tn=function(e,t,n){for(var r=0,i=0;r=i,i=nn(),r===38&&i===12&&(t[n]=1),!on(i);)tn();return an(e,Jt)},En=function(e,t){var n=-1,r=44;do switch(on(r)){case 0:r===38&&nn()===12&&(t[n]=1),e[n]+=Tn(Jt-1,t,n);break;case 2:e[n]+=ln(r);break;case 4:if(r===44){e[++n]=nn()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=Mt(r)}while(r=tn());return e},Dn=function(e,t){return cn(En(sn(e),t))},On=new WeakMap,kn=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!On.get(n))&&!r){On.set(e,!0);for(var i=[],a=Dn(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},An=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function jn(e,t){switch(Pt(e,t)){case 5103:return wt+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wt+e+Ct+e+St+e+e;case 6828:case 4268:return wt+e+St+e+e;case 6165:return wt+e+St+`flex-`+e+e;case 5187:return wt+e+Lt(e,/(\w+).+(:[^]+)/,wt+`box-$1$2`+St+`flex-$1$2`)+e;case 5443:return wt+e+St+`flex-item-`+Lt(e,/flex-|-self/,``)+e;case 4675:return wt+e+St+`flex-line-pack`+Lt(e,/align-content|flex-|-self/,``)+e;case 5548:return wt+e+St+Lt(e,`shrink`,`negative`)+e;case 5292:return wt+e+St+Lt(e,`basis`,`preferred-size`)+e;case 6060:return wt+`box-`+Lt(e,`-grow`,``)+wt+e+St+Lt(e,`grow`,`positive`)+e;case 4554:return wt+Lt(e,/([^-])(transform)/g,`$1`+wt+`$2`)+e;case 6187:return Lt(Lt(Lt(e,/(zoom-|grab)/,wt+`$1`),/(image-set)/,wt+`$1`),e,``)+e;case 5495:case 3959:return Lt(e,/(image-set\([^]*)/,wt+"$1$`$1");case 4968:return Lt(Lt(e,/(.+:)(flex-)?(.*)/,wt+`box-pack:$3`+St+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+wt+e+e;case 4095:case 3583:case 4068:case 2532:return Lt(e,/(.+)-inline(.+)/,wt+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vt(e)-1-t>6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return Lt(e,/(.+:)(.+)-([^]+)/,`$1`+wt+`$2-$3$1`+Ct+(zt(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Rt(e,`stretch`)?jn(Lt(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,Vt(e)-3-(~Rt(e,`!important`)&&10))){case 107:return Lt(e,`:`,`:`+wt)+e;case 101:return Lt(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+wt+(zt(e,14)===45?`inline-`:``)+`box$3$1`+wt+`$2$3$1`+St+`$2box$3`)+e}break;case 5936:switch(zt(e,t+11)){case 114:return wt+e+St+Lt(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return wt+e+St+Lt(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return wt+e+St+Lt(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return wt+e+St+e+e}return e}var Mn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dt:e.return=jn(e.value,e.length);break;case kt:return bn([Qt(e,{value:Lt(e.value,`@`,`@`+wt)})],r);case Et:if(e.length)return Wt(e.props,function(t){switch(It(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return bn([Qt(e,{props:[Lt(t,/:(read-\w+)/,`:`+Ct+`$1`)]})],r);case`::placeholder`:return bn([Qt(e,{props:[Lt(t,/:(plac\w+)/,`:`+wt+`input-$1`)]}),Qt(e,{props:[Lt(t,/:(plac\w+)/,`:`+Ct+`$1`)]}),Qt(e,{props:[Lt(t,/:(plac\w+)/,St+`input-$1`)]})],r)}return``})}}],Nn=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Mn,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[kn,An],l,u=[xn,Cn(function(e){l.insert(e)})],d=Sn(c.concat(r,u)),f=function(e){return bn(hn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new xt({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Pn=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Fn=s(((e,t)=>{t.exports=Pn()})),In=s(((e,t)=>{var n=Fn(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function Ln(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Rn=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},zn=function(e,t,n){Rn(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Bn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Vn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hn=/[A-Z]|^ms/g,Un=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wn=function(e){return e.charCodeAt(1)===45},Gn=function(e){return e!=null&&typeof e!=`boolean`},Kn=wn(function(e){return Wn(e)?e:e.replace(Hn,`-$&`).toLowerCase()}),qn=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Un,function(e,t,n){return Zn={name:t,styles:n,next:Zn},t})}return Vn[e]!==1&&!Wn(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Jn(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Zn={name:i.name,styles:i.styles,next:Zn},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zn={name:o.name,styles:o.styles,next:Zn},o=o.next;return a.styles+`;`}return Yn(e,t,n);case`function`:if(e!==void 0){var s=Zn,c=n(e);return Zn=s,Jn(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Yn(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jn(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Gn(s)&&(r+=Kn(a)+`:`+qn(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Gn(o[c])&&(r+=Kn(a)+`:`+qn(a,o[c])+`;`);else{var l=Jn(e,t,o);switch(a){case`animation`:case`animationName`:r+=Kn(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Xn=/label:\s*([^\s;{]+)\s*(;|$)/g,Zn;function Qn(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Zn=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Jn(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Jn(n,t,e[o]),r&&(i+=a[o]);Xn.lastIndex=0;for(var s=``,c;(c=Xn.exec(i))!==null;)s+=`-`+c[1];return{name:Bn(i)+s,styles:i,next:Zn}}var $n=function(e){return e()},er=z.useInsertionEffect?z.useInsertionEffect:!1,tr=er||$n,nr=er||z.useLayoutEffect,rr=z.createContext(typeof HTMLElement<`u`?Nn({key:`css`}):null),ir=rr.Provider,ar=function(e){return(0,z.forwardRef)(function(t,n){return e(t,(0,z.useContext)(rr),n)})},or=z.createContext({}),sr={}.hasOwnProperty,cr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,lr=function(e,t){var n={};for(var r in t)sr.call(t,r)&&(n[r]=t[r]);return n[cr]=e,n},ur=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Rn(t,n,r),tr(function(){return zn(t,n,r)}),null},dr=ar(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[cr],a=[r],o=``;typeof e.className==`string`?o=Ln(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Qn(a,void 0,z.useContext(or));o+=t.key+`-`+s.name;var c={};for(var l in e)sr.call(e,l)&&l!==`css`&&l!==cr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),z.createElement(z.Fragment,null,z.createElement(ur,{cache:t,serialized:s,isStringTag:typeof i==`string`}),z.createElement(i,c))});In();var fr=function(e,t){var n=arguments;if(t==null||!sr.call(t,`css`))return z.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=dr,i[1]=lr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return z.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(fr||={});var pr=ar(function(e,t){var n=e.styles,r=Qn([n],void 0,z.useContext(or)),i=z.useRef();return nr(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),nr(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&zn(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function mr(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qn(t)}function hr(){var e=mr.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var gr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_r=wn(function(e){return gr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vr=function(e){return e!==`theme`},yr=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?_r:vr},br=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},xr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Rn(t,n,r),tr(function(){return zn(t,n,r)}),null},Sr=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=br(t,n,r),c=s||yr(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=ar(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=z.useContext(or)}typeof e.className==`string`?a=Ln(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Qn(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?yr(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),z.createElement(z.Fragment,null,z.createElement(xr,{cache:t,serialized:m,isStringTag:typeof r==`string`}),z.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,vt({},n,r,{shouldForwardProp:br(h,r,!0)})).apply(void 0,d)},h}},Cr=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),wr=Sr.bind(null);Cr.forEach(function(e){wr[e]=wr(e)}),R();var Tr=new Map,Er={insert:void 0},Dr=(e,t)=>{let n=Nn(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},Or;if(typeof document==`object`&&(Or=document.querySelector(`[name="emotion-insertion-point"]`),!Or)){Or=document.createElement(`meta`),Or.setAttribute(`name`,`emotion-insertion-point`),Or.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(Or)}function kr(e,t){if(e||t){class n extends xt{insert(e,t){return Er.insert?Er.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=Or),super.insert(e,t))}}let r=Dr({key:`css`,insertionPoint:e?Or:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function Ar(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=z.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&Tr.has(e))return Tr.get(e);let r=kr(t,n);return Tr.set(e,r),r},[t,n]);return i?(0,B.jsx)(ir,{value:i,children:r}):r}R();function jr(e){return e==null||Object.keys(e).length===0}function Mr(e){let{styles:t,defaultTheme:n={}}=e;return(0,B.jsx)(pr,{styles:typeof t==`function`?e=>t(jr(e)?n:e):t})}function Nr(e,t){return wr(e,t)}function Pr(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Fr=[];function Ir(e){return Fr[0]=e,Qn(Fr)}var Lr=s((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Rr=s(((e,t)=>{t.exports=Lr()}))();function zr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Br(e){if(z.isValidElement(e)||(0,Rr.isValidElementType)(e)||!zr(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Br(e[n])}),t}function Vr(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return zr(e)&&zr(t)&&Object.keys(t).forEach(i=>{z.isValidElement(t[i])||(0,Rr.isValidElementType)(t[i])?r[i]=t[i]:zr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&zr(e[i])?r[i]=Vr(e[i],t[i],n):n.clone?r[i]=zr(t[i])?Br(t[i]):t[i]:r[i]=t[i]}),r}var Hr=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Ur(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Hr(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function Wr(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function Gr(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Kr(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function qr(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Jr={borderRadius:4};function Yr(e,t){return t?Vr(e,t,{clone:!1}):e}R();var Xr={xs:0,sm:600,md:900,lg:1200,xl:1536},Zr={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${Xr[e]}px)`},Qr={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Xr[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $r(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Zr;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Zr;return Object.keys(t).reduce((i,a)=>{if(Gr(e.keys,a)){let e=Kr(r.containerQueries?r:Qr,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||Xr).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function ei(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function ti(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function ni(e){if(typeof e!=`string`)throw Error(gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ri(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function ii(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:ri(e,n)||r,t&&(i=t(i,r,e)),i}function ai(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=ri(o,r)||{};return $r(e,a,e=>{let r=ii(s,i,e);return e===r&&typeof e==`string`&&(r=ii(s,i,`${t}${e==="default"?``:ni(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function oi(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var si={m:`margin`,p:`padding`},ci={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},li={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},ui=oi(e=>{if(e.length>2)if(li[e])e=li[e];else return[e];let[t,n]=e.split(``),r=si[t],i=ci[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),di=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],fi=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],pi=[...di,...fi];function mi(e,t,n,r){let i=ri(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function hi(e){return mi(e,`spacing`,8,`spacing`)}function gi(e,t){return typeof t==`string`||t==null?t:e(t)}function _i(e,t){return n=>e.reduce((e,r)=>(e[r]=gi(t,n),e),{})}function vi(e,t,n,r){if(!t.includes(n))return null;let i=_i(ui(n),r),a=e[n];return $r(e,a,i)}function yi(e,t){let n=hi(e.theme);return Object.keys(e).map(r=>vi(e,t,r,n)).reduce(Yr,{})}function bi(e){return yi(e,di)}bi.propTypes={},bi.filterProps=di;function xi(e){return yi(e,fi)}xi.propTypes={},xi.filterProps=fi;function Si(e){return yi(e,pi)}Si.propTypes={},Si.filterProps=pi;function Ci(e=8,t=hi({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function wi(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Yr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ti(e){return typeof e==`number`?`${e}px solid`:e}function Ei(e,t){return ai({prop:e,themeKey:`borders`,transform:t})}var Di=Ei(`border`,Ti),Oi=Ei(`borderTop`,Ti),ki=Ei(`borderRight`,Ti),Ai=Ei(`borderBottom`,Ti),ji=Ei(`borderLeft`,Ti),Mi=Ei(`borderColor`),Ni=Ei(`borderTopColor`),Pi=Ei(`borderRightColor`),Fi=Ei(`borderBottomColor`),Ii=Ei(`borderLeftColor`),Li=Ei(`outline`,Ti),Ri=Ei(`outlineColor`),zi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=mi(e.theme,`shape.borderRadius`,4,`borderRadius`);return $r(e,e.borderRadius,e=>({borderRadius:gi(t,e)}))}return null};zi.propTypes={},zi.filterProps=[`borderRadius`],wi(Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,zi,Li,Ri);var Bi=e=>{if(e.gap!==void 0&&e.gap!==null){let t=mi(e.theme,`spacing`,8,`gap`);return $r(e,e.gap,e=>({gap:gi(t,e)}))}return null};Bi.propTypes={},Bi.filterProps=[`gap`];var Vi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=mi(e.theme,`spacing`,8,`columnGap`);return $r(e,e.columnGap,e=>({columnGap:gi(t,e)}))}return null};Vi.propTypes={},Vi.filterProps=[`columnGap`];var Hi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=mi(e.theme,`spacing`,8,`rowGap`);return $r(e,e.rowGap,e=>({rowGap:gi(t,e)}))}return null};Hi.propTypes={},Hi.filterProps=[`rowGap`],wi(Bi,Vi,Hi,ai({prop:`gridColumn`}),ai({prop:`gridRow`}),ai({prop:`gridAutoFlow`}),ai({prop:`gridAutoColumns`}),ai({prop:`gridAutoRows`}),ai({prop:`gridTemplateColumns`}),ai({prop:`gridTemplateRows`}),ai({prop:`gridTemplateAreas`}),ai({prop:`gridArea`}));function Ui(e,t){return t===`grey`?t:e}wi(ai({prop:`color`,themeKey:`palette`,transform:Ui}),ai({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Ui}),ai({prop:`backgroundColor`,themeKey:`palette`,transform:Ui}));function Wi(e){return e<=1&&e!==0?`${e*100}%`:e}var Gi=ai({prop:`width`,transform:Wi}),Ki=e=>e.maxWidth!==void 0&&e.maxWidth!==null?$r(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Xr[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Wi(t)}}):null;Ki.filterProps=[`maxWidth`];var qi=ai({prop:`minWidth`,transform:Wi}),Ji=ai({prop:`height`,transform:Wi}),Yi=ai({prop:`maxHeight`,transform:Wi}),Xi=ai({prop:`minHeight`,transform:Wi});ai({prop:`size`,cssProperty:`width`,transform:Wi}),ai({prop:`size`,cssProperty:`height`,transform:Wi}),wi(Gi,Ki,qi,Ji,Yi,Xi,ai({prop:`boxSizing`}));var Zi={border:{themeKey:`borders`,transform:Ti},borderTop:{themeKey:`borders`,transform:Ti},borderRight:{themeKey:`borders`,transform:Ti},borderBottom:{themeKey:`borders`,transform:Ti},borderLeft:{themeKey:`borders`,transform:Ti},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Ti},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:zi},color:{themeKey:`palette`,transform:Ui},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Ui},backgroundColor:{themeKey:`palette`,transform:Ui},p:{style:xi},pt:{style:xi},pr:{style:xi},pb:{style:xi},pl:{style:xi},px:{style:xi},py:{style:xi},padding:{style:xi},paddingTop:{style:xi},paddingRight:{style:xi},paddingBottom:{style:xi},paddingLeft:{style:xi},paddingX:{style:xi},paddingY:{style:xi},paddingInline:{style:xi},paddingInlineStart:{style:xi},paddingInlineEnd:{style:xi},paddingBlock:{style:xi},paddingBlockStart:{style:xi},paddingBlockEnd:{style:xi},m:{style:bi},mt:{style:bi},mr:{style:bi},mb:{style:bi},ml:{style:bi},mx:{style:bi},my:{style:bi},margin:{style:bi},marginTop:{style:bi},marginRight:{style:bi},marginBottom:{style:bi},marginLeft:{style:bi},marginX:{style:bi},marginY:{style:bi},marginInline:{style:bi},marginInlineStart:{style:bi},marginInlineEnd:{style:bi},marginBlock:{style:bi},marginBlockStart:{style:bi},marginBlockEnd:{style:bi},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Bi},rowGap:{style:Hi},columnGap:{style:Vi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Wi},maxWidth:{style:Ki},minWidth:{transform:Wi},height:{transform:Wi},maxHeight:{transform:Wi},minHeight:{transform:Wi},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Qi(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function $i(e,t){return typeof e==`function`?e(t):e}function ea(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=ri(n,s)||{};return l?l(i):$r(i,t,t=>{let n=ii(u,c,t);return t===n&&typeof t==`string`&&(n=ii(u,c,`${e}${t==="default"?``:ni(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??Zi;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=ei(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=$i(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=Yr(l,e(n,a,i,o));else{let e=$r({theme:i},a,e=>({[n]:e}));Qi(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=Yr(l,e)}else l=Yr(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Wr(i,ti(c,l))}:Wr(i,ti(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var ta=ea();ta.filterProps=[`sx`];function na(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ra(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Ur(n),c=Ci(i),l=Vr({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Jr,...a}},o);return l=qr(l),l.applyStyles=na,l=t.reduce((e,t)=>Vr(e,t),l),l.unstable_sxConfig={...Zi,...o?.unstable_sxConfig},l.unstable_sx=function(e){return ta({sx:e,theme:this})},l}function ia(e){return Object.keys(e).length===0}function aa(e=null){let t=z.useContext(or);return!t||ia(t)?e:t}var oa=ra();function sa(e=oa){return aa(e)}R();function ca(e){let t=Ir(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function la({styles:e,themeId:t,defaultTheme:n={}}){let r=sa(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>ca(typeof e==`function`?e(i):e)):ca(a)),(0,B.jsx)(Mr,{styles:a})}var ua=e=>e,da=(()=>{let e=ua;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ua}}})();function fa(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function pa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=` `),r+=t);return r}var ma={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function ha(e,t,n=`Mui`){let r=ma[t];return r?`${n}-${r}`:`${da.generate(e)}-${t}`}function ga(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=ha(e,t,n)}),r}function _a(e){let{variants:t,...n}=e,r={variants:t,style:Ir(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Ir(e.style))}),r}var va=ra();function ya(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function ba(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function xa(e){return e?(t,n)=>n[e]:null}function Sa(e,t,n){e.theme=Ea(e.theme)?n:e.theme[t]||e.theme}function Ca(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Ca(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?ba(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?ba(Ir(i),n):i}return wa(e,r.variants,[t],n)}return r?.isProcessed?n?ba(Ir(r.style),n):r.style:n?ba(Ir(r),n):r}function wa(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ba(Ir(o.style(i)),r):o.style(i))):n.push(r?ba(Ir(o.style),r):o.style)}return n}function Ta(e={}){let{themeId:t,defaultTheme:n=va,rootShouldForwardProp:r=ya,slotShouldForwardProp:i=ya}=e;function a(e){Sa(e,t,n)}return(e,t={})=>{Pr(e,e=>e.filter(e=>e!==ta));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=xa(Oa(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=ya;o===`Root`||o===`root`?m=r:o?m=i:Da(e)&&(m=void 0);let h=Nr(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Ca(t,e,t.theme.modularCssLayers?d:void 0)};if(zr(e)){let t=_a(e);return function(e){return t.variants?Ca(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?ba(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Ca(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?wa(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(ta),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Ea(e){for(let t in e)return!1;return!0}function Da(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Oa(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ka(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=ka(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=pa(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var Aa=typeof window<`u`?z.useLayoutEffect:z.useEffect;function ja(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ma(e,t=0,n=1){return ja(e,t,n)}function Na(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function Pa(e){if(e.type)return e;if(e.charAt(0)===`#`)return Pa(Na(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(gt(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(gt(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Fa=e=>{let t=Pa(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Ia=(e,t)=>{try{return Fa(e)}catch{return e}};function V(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function La(e){e=Pa(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),V({type:s,values:c})}function Ra(e){e=Pa(e);let t=e.type===`hsl`||e.type===`hsla`?Pa(La(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function za(e,t){let n=Ra(e),r=Ra(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ba(e,t){return e=Pa(e),t=Ma(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,V(e)}function Va(e,t,n){try{return Ba(e,t)}catch{return e}}function Ha(e,t){if(e=Pa(e),t=Ma(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return V(e)}function Ua(e,t,n){try{return Ha(e,t)}catch{return e}}function Wa(e,t){if(e=Pa(e),t=Ma(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return V(e)}function Ga(e,t,n){try{return Wa(e,t)}catch{return e}}function Ka(e,t=.15){return Ra(e)>.5?Ha(e,t):Wa(e,t)}function qa(e,t,n){try{return Ka(e,t)}catch{return e}}var Ja=z.createContext(null);function Ya(){return z.useContext(Ja)}var Xa=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;R();function Za(e,t){return typeof t==`function`?t(e):{...e,...t}}function Qa(e){let{children:t,theme:n}=e,r=Ya(),i=z.useMemo(()=>{let e=r===null?{...n}:Za(r,n);return e!=null&&(e[Xa]=r!==null),e},[n,r]);return(0,B.jsx)(Ja.Provider,{value:i,children:t})}R();var $a=z.createContext();function eo({value:e,...t}){return(0,B.jsx)($a.Provider,{value:e??!0,...t})}var to=()=>z.useContext($a)??!1;R();var no=z.createContext(void 0);function ro({value:e,children:t}){return(0,B.jsx)(no.Provider,{value:e,children:t})}function io(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?ka(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ka(i,r,t.components.mergeClassNameAndStyle):r}function ao({props:e,name:t}){return io({props:e,name:t,theme:{components:z.useContext(no)}})}var oo=0;function so(e){let[t,n]=z.useState(e),r=e||t;return z.useEffect(()=>{t??(oo+=1,n(`mui-${oo}`))},[t]),r}var co={...z}.useId;function lo(e){if(co!==void 0){let t=co();return e??t}return so(e)}function uo(e){let t=aa(),n=lo()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Aa(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,B.jsx)(la,{styles:i}):null}R();var fo={};function po(e,t,n,r=!1){return z.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function mo(e){let{children:t,theme:n,themeId:r}=e,i=aa(fo),a=Ya()||fo,o=po(r,i,n),s=po(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=uo(o);return(0,B.jsx)(Qa,{theme:s,children:(0,B.jsx)(or.Provider,{value:o,children:(0,B.jsx)(eo,{value:c,children:(0,B.jsxs)(ro,{value:r?o[r].components:o.components,children:[l,t]})})})})}var ho={theme:void 0};function go(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(ho.theme=r.theme,i=_a(e(ho)),t=i,n=r.theme),i}}var _o=`mode`,vo=`color-scheme`,yo=`data-color-scheme`;function bo(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=_o,colorSchemeStorageKey:a=vo,attribute:o=yo,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
|
|
8
|
+
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=oo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ul||(ul=!0,dl=r),Ns(e,t)},n}function Is(e,t,n){n=oo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ns(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ns(e,t),typeof r!=`function`&&(fl===null?fl=new Set([this]):fl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function U(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ps;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ql.bind(null,e,t,n),t.then(e,e))}function Ls(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Rs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=oo(-1,1),t.tag=2,so(n,t,1))),n.lanes|=1),e)}var zs=C.ReactCurrentOwner,Bs=!1;function Vs(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function Hs(e,t,n,r,i){n=n.render;var a=t.ref;return Za(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Bs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sc(e,t,i)):(Da&&n&&Ca(t),t.flags|=1,Vs(e,t,r,i),t.child)}function Us(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!tu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ws(e,t,a,r,i)):(e=iu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?jr:n,n(o,r)&&e.ref===t.ref)return sc(e,t,i)}return t.flags|=1,e=ru(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jr(a,r)&&e.ref===t.ref)if(Bs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Bs=!0);else return t.lanes=e.lanes,sc(e,t,i)}return qs(e,t,n,r,i)}function Gs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yi($c,Qc),Qc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Yi($c,Qc),Qc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Yi($c,Qc),Qc|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Yi($c,Qc),Qc|=r;return Vs(e,t,i,n),t.child}function Ks(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qs(e,t,n,r,i){var a=ta(n)?$i:Zi.current;return a=ea(t,a),Za(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Bs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sc(e,t,i)):(Da&&r&&Ca(t),t.flags|=1,Vs(e,t,n,i),t.child)}function Js(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if(Za(t,i),t.stateNode===null)oc(e,t),Os(t,n,r),As(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Qa(l):(l=ta(n)?$i:Zi.current,l=ea(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&ks(t,o,r,l),ro=!1;var f=t.memoizedState;o.state=f,uo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Qi.current||ro?(typeof u==`function`&&(Ts(t,n,u,r),c=t.memoizedState),(s=ro||Ds(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ao(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ws(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Qa(c):(c=ta(n)?$i:Zi.current,c=ea(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&ks(t,o,r,c),ro=!1,f=t.memoizedState,o.state=f,uo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Qi.current||ro?(typeof p==`function`&&(Ts(t,n,p,r),m=t.memoizedState),(l=ro||Ds(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ys(e,t,n,r,a,i)}function Ys(e,t,n,r,i,a){Ks(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&oa(t,n,!1),sc(e,t,a);r=t.stateNode,zs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ha(t,e.child,null,a),t.child=Ha(t,null,s,a)):Vs(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function W(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),vo(e,t.containerInfo)}function Xs(e,t,n,r,i){return H(),Ia(i),t.flags|=256,Vs(e,t,n,r),t.child}var Zs={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r=t.pendingProps,i=So.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Yi(So,i&1),e===null)return Ma(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=ou(o,r,0,null),e=au(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Qs(n),t.memoizedState=Zs,e):ec(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ru(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=au(a,o,n,null),a.flags|=2):a=ru(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Qs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Zs,r}return a=e.child,e=a.sibling,r=ru(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ec(e,t){return t=ou({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function tc(e,t,n,r){return r!==null&&Ia(r),Ha(t,e.child,null,n),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ms(Error(r(422))),tc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=ou({mode:`visible`,children:i.children},a,0,null),o=au(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ha(t,e.child,null,s),t.child.memoizedState=Qs(s),t.memoizedState=Zs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return tc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ms(o,i,void 0),tc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Bs||c){if(i=Yc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,no(e,a),Sl(i,e,a,-1))}return Il(),i=Ms(Error(r(421))),tc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Yl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ea=Mi(a.nextSibling),Ta=t,Da=!0,Oa=null,e!==null&&(ga[_a++]=ya,ga[_a++]=ba,ga[_a++]=va,ya=e.id,ba=e.overflow,va=t),t=ec(t,i.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xa(e.return,t,n)}function ic(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Vs(e,t,r.children,n),r=So.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Yi(So,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ic(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ic(t,!0,n,null,a);break;case`together`:ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=ru(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ru(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cc(e,t,n){switch(t.tag){case 3:W(t),H();break;case 5:bo(t);break;case 1:ta(t.type)&&aa(t);break;case 4:vo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yi(Wa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Yi(So,So.current&1),e=sc(e,t,n),e===null?null:e.sibling):$s(e,t,n):(Yi(So,So.current&1),t.flags|=128,null);Yi(So,So.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yi(So,So.current),r)break;return null;case 22:case 23:return t.lanes=0,Gs(e,t,n)}return sc(e,t,n)}var lc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},uc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,_o(mo.current);var o=null;switch(n){case`input`:i=_e(e,i),r=_e(e,r),o=[];break;case`select`:i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case`textarea`:i=Te(e,i),r=Te(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Si)}ze(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&ci(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},dc=function(e,t,n,r){n!==r&&(t.flags|=4)};function fc(e,t){if(!Da)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mc(e,t,n){var i=t.pendingProps;switch(wa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pc(t),null;case 1:return ta(t.type)&&na(),pc(t),null;case 3:return i=t.stateNode,yo(),Ji(Qi),Ji(Zi),To(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Pa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oa!==null&&(El(Oa),Oa=null))),pc(t),null;case 5:xo(t);var o=_o(go.current);if(n=t.type,e!==null&&t.stateNode!=null)uc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return pc(t),null}if(e=_o(mo.current),Pa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Fi]=t,i[Ii]=s,e=(t.mode&1)!=0,n){case`dialog`:ci(`cancel`,i),ci(`close`,i);break;case`iframe`:case`object`:case`embed`:ci(`load`,i);break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],i);break;case`source`:ci(`error`,i);break;case`img`:case`image`:case`link`:ci(`error`,i),ci(`load`,i);break;case`details`:ci(`toggle`,i);break;case`input`:ve(i,s),ci(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ci(`invalid`,i);break;case`textarea`:Ee(i,s),ci(`invalid`,i)}for(var c in ze(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ci(`scroll`,i)}switch(n){case`input`:me(i),xe(i,s,!0);break;case`textarea`:me(i),Oe(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Si)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=ke(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Fi]=t,e[Ii]=i,lc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Be(n,i),n){case`dialog`:ci(`cancel`,e),ci(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ci(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ii.length;o++)ci(ii[o],e);o=i;break;case`source`:ci(`error`,e),o=i;break;case`img`:case`image`:case`link`:ci(`error`,e),ci(`load`,e),o=i;break;case`details`:ci(`toggle`,e),o=i;break;case`input`:ve(e,i),o=_e(e,i),ci(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=F({},i,{value:void 0}),ci(`invalid`,e);break;case`textarea`:Ee(e,i),o=Te(e,i),ci(`invalid`,e);break;default:o=i}for(s in ze(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Le(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Me(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ne(e,u):typeof u==`number`&&Ne(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ci(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:me(e),xe(e,i,!1);break;case`textarea`:me(e),Oe(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+de(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&we(e,!!i.multiple,i.defaultValue,!0):we(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Si)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pc(t),null;case 6:if(e&&t.stateNode!=null)dc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=_o(go.current),_o(mo.current),Pa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Fi]=t,(s=i.nodeValue!==n)&&(e=Ta,e!==null))switch(e.tag){case 3:xi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Fi]=t,t.stateNode=i}return pc(t),null;case 13:if(Ji(So),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Da&&Ea!==null&&t.mode&1&&!(t.flags&128))Fa(),H(),t.flags|=98560,s=!1;else if(s=Pa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Fi]=t}else H(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pc(t),s=!1}else Oa!==null&&(El(Oa),Oa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||So.current&1?el===0&&(el=3):Il())),t.updateQueue!==null&&(t.flags|=4),pc(t),null);case 4:return yo(),e===null&&di(t.stateNode.containerInfo),pc(t),null;case 10:return Ya(t.type._context),pc(t),null;case 17:return ta(t.type)&&na(),pc(t),null;case 19:if(Ji(So),s=t.memoizedState,s===null)return pc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)fc(s,!1);else{if(el!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Co(e),c!==null){for(t.flags|=128,fc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yi(So,So.current&1|2),t.child}e=e.sibling}s.tail!==null&>()>cl&&(t.flags|=128,i=!0,fc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Da)return pc(t),null}else 2*gt()-s.renderingStartTime>cl&&n!==1073741824&&(t.flags|=128,i=!0,fc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(pc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=gt(),t.sibling=null,n=So.current,Yi(So,i?n&1|2:n&1),t);case 22:case 23:return Ml(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Qc&1073741824&&(pc(t),t.subtreeFlags&6&&(t.flags|=8192)):pc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function hc(e,t){switch(wa(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),Ji(Qi),Ji(Zi),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xo(t),null;case 13:if(Ji(So),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));H()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ji(So),null;case 4:return yo(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return Ml(),null;case 24:return null;default:return null}}var gc=!1,_c=!1,vc=typeof WeakSet==`function`?WeakSet:Set,G=null;function yc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Kl(e,t,n)}else n.current=null}function bc(e,t,n){try{n()}catch(n){Kl(e,t,n)}}var xc=!1;function Sc(e,t){if(Ci=mn,e=Fr(),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(wi={focusedElem:e,selectionRange:n},mn=!1,G=t;G!==null;)if(t=G,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ws(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Kl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return h=xc,xc=!1,h}function Cc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&bc(t,n,a)}i=i.next}while(i!==r)}}function wc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==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 Tc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),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 Dc(e){return e.tag===5||e.tag===3||e.tag===4}function Oc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Dc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Si));else if(r!==4&&(e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}var jc=null,Mc=!1;function Nc(e,t,n){for(n=n.child;n!==null;)Pc(e,t,n),n=n.sibling}function Pc(e,t,n){if(B&&typeof B.onCommitFiberUnmount==`function`)try{B.onCommitFiberUnmount(Ct,n)}catch{}switch(n.tag){case 5:_c||yc(n,t);case 6:var r=jc,i=Mc;jc=null,Nc(e,t,n),jc=r,Mc=i,jc!==null&&(Mc?(e=jc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jc.removeChild(n.stateNode));break;case 18:jc!==null&&(Mc?(e=jc,n=n.stateNode,e.nodeType===8?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),fn(e)):ji(jc,n.stateNode));break;case 4:r=jc,i=Mc,jc=n.stateNode.containerInfo,Mc=!0,Nc(e,t,n),jc=r,Mc=i;break;case 0:case 11:case 14:case 15:if(!_c&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&bc(n,t,o),i=i.next}while(i!==r)}Nc(e,t,n);break;case 1:if(!_c&&(yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Kl(n,t,e)}Nc(e,t,n);break;case 21:Nc(e,t,n);break;case 22:n.mode&1?(_c=(r=_c)||n.memoizedState!==null,Nc(e,t,n),_c=r):Nc(e,t,n);break;default:Nc(e,t,n)}}function Fc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vc),t.forEach(function(t){var r=Xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ic(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:jc=c.stateNode,Mc=!1;break a;case 3:jc=c.stateNode.containerInfo,Mc=!0;break a;case 4:jc=c.stateNode.containerInfo,Mc=!0;break a}c=c.return}if(jc===null)throw Error(r(160));Pc(o,s,a),jc=null,Mc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Kl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lc(t,e),t=t.sibling}function Lc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ic(t,e),Rc(e),i&4){try{Cc(3,e,e.return),wc(3,e)}catch(t){Kl(e,e.return,t)}try{Cc(5,e,e.return)}catch(t){Kl(e,e.return,t)}}break;case 1:Ic(t,e),Rc(e),i&512&&n!==null&&yc(n,n.return);break;case 5:if(Ic(t,e),Rc(e),i&512&&n!==null&&yc(n,n.return),e.flags&32){var a=e.stateNode;try{Ne(a,``)}catch(t){Kl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&ye(a,o),Be(c,s);var u=Be(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Le(a,f):d===`dangerouslySetInnerHTML`?Me(a,f):d===`children`?Ne(a,f):S(a,d,f,u)}switch(c){case`input`:be(a,o);break;case`textarea`:De(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?we(a,!!o.multiple,o.multiple?[]:``,!1):we(a,!!o.multiple,o.defaultValue,!0)):we(a,!!o.multiple,m,!1)}a[Ii]=o}catch(t){Kl(e,e.return,t)}}break;case 6:if(Ic(t,e),Rc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Kl(e,e.return,t)}}break;case 3:if(Ic(t,e),Rc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{fn(t.containerInfo)}catch(t){Kl(e,e.return,t)}break;case 4:Ic(t,e),Rc(e);break;case 13:Ic(t,e),Rc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(sl=gt())),i&4&&Fc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(_c=(u=_c)||d,Ic(t,e),_c=u):Ic(t,e),Rc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(G=e,d=e.child;d!==null;){for(f=G=d;G!==null;){switch(p=G,m=p.child,p.tag){case 0:case 11:case 14:case 15:Cc(4,p,p.return);break;case 1:yc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Kl(i,n,e)}}break;case 5:yc(p,p.return);break;case 22:if(p.memoizedState!==null){Hc(f);continue}}m===null?Hc(f):(m.return=p,G=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Ie(`display`,s))}catch(t){Kl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Kl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ic(t,e),Rc(e),i&4&&Fc(e);break;case 21:break;default:Ic(t,e),Rc(e)}}function Rc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Dc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ne(a,``),i.flags&=-33),Ac(e,Oc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;kc(e,Oc(e),o);break;default:throw Error(r(161))}}catch(t){Kl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zc(e,t,n){G=e,Bc(e,t,n)}function Bc(e,t,n){for(var r=(e.mode&1)!=0;G!==null;){var i=G,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||gc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||_c;s=gc;var l=_c;if(gc=o,(_c=c)&&!l)for(G=i;G!==null;)o=G,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Uc(i):(c.return=o,G=c);for(;a!==null;)G=a,Bc(a,t,n),a=a.sibling;G=i,gc=s,_c=l}Vc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,G=a):Vc(e,t,n)}}function Vc(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_c||wc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!_c)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ws(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&fo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}_c||t.flags&512&&Tc(t)}catch(e){Kl(t,t.return,e)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Hc(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Uc(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wc(4,t)}catch(e){Kl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Kl(t,i,e)}}var a=t.return;try{Tc(t)}catch(e){Kl(t,a,e)}break;case 5:var o=t.return;try{Tc(t)}catch(e){Kl(t,o,e)}}}catch(e){Kl(t,t.return,e)}if(t===e){G=null;break}var s=t.sibling;if(s!==null){s.return=t.return,G=s;break}G=t.return}}var Wc=Math.ceil,Gc=C.ReactCurrentDispatcher,Kc=C.ReactCurrentOwner,qc=C.ReactCurrentBatchConfig,Jc=0,Yc=null,Xc=null,Zc=0,Qc=0,$c=qi(0),el=0,tl=null,nl=0,rl=0,il=0,al=null,ol=null,sl=0,cl=1/0,ll=null,ul=!1,dl=null,fl=null,pl=!1,ml=null,hl=0,gl=0,_l=null,vl=-1,yl=0;function bl(){return Jc&6?gt():vl===-1?vl=gt():vl}function xl(e){return e.mode&1?Jc&2&&Zc!==0?Zc&-Zc:La.transition===null?(e=Vt,e===0?(e=window.event,e=e===void 0?16:bn(e.type),e):e):(yl===0&&(yl=It()),yl):1}function Sl(e,t,n,i){if(50<gl)throw gl=0,_l=null,Error(r(185));Rt(e,n,i),(!(Jc&2)||e!==Yc)&&(e===Yc&&(!(Jc&2)&&(rl|=n),el===4&&Ol(e,Zc)),Cl(e,i),n===1&&Jc===0&&!(t.mode&1)&&(cl=gt()+500,ca&&V()))}function Cl(e,t){var n=e.callbackNode;Pt(e,t);var r=Mt(e,e===Yc?Zc:0);if(r===0)n!==null&&pt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pt(n),t===1)e.tag===0?da(kl.bind(null,e)):ua(kl.bind(null,e)),ki(function(){!(Jc&6)&&V()}),n=null;else{switch(Ht(r)){case 1:n=vt;break;case 4:n=yt;break;case 16:n=bt;break;case 536870912:n=St;break;default:n=bt}n=Ql(n,wl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wl(e,t){if(vl=-1,yl=0,Jc&6)throw Error(r(327));var n=e.callbackNode;if(Wl()&&e.callbackNode!==n)return null;var i=Mt(e,e===Yc?Zc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Ll(e,i);else{t=i;var a=Jc;Jc|=2;var o=Fl();(Yc!==e||Zc!==t)&&(ll=null,cl=gt()+500,Nl(e,t));do try{zl();break}catch(t){Pl(e,t)}while(1);Ja(),Gc.current=o,Jc=a,Xc===null?(Yc=null,Zc=0,t=el):t=0}if(t!==0){if(t===2&&(a=Ft(e),a!==0&&(i=a,t=Tl(e,a))),t===1)throw n=tl,Nl(e,0),Ol(e,i),Cl(e,gt()),n;if(t===6)Ol(e,i);else{if(a=e.current.alternate,!(i&30)&&!Dl(a)&&(t=Ll(e,i),t===2&&(o=Ft(e),o!==0&&(i=o,t=Tl(e,o))),t===1))throw n=tl,Nl(e,0),Ol(e,i),Cl(e,gt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Hl(e,ol,ll);break;case 3:if(Ol(e,i),(i&130023424)===i&&(t=sl+500-gt(),10<t)){if(Mt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){bl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ei(Hl.bind(null,e,ol,ll),t);break}Hl(e,ol,ll);break;case 4:if(Ol(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Tt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=gt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wc(i/1960))-i,10<i){e.timeoutHandle=Ei(Hl.bind(null,e,ol,ll),i);break}Hl(e,ol,ll);break;case 5:Hl(e,ol,ll);break;default:throw Error(r(329))}}}return Cl(e,gt()),e.callbackNode===n?wl.bind(null,e):null}function Tl(e,t){var n=al;return e.current.memoizedState.isDehydrated&&(Nl(e,t).flags|=256),e=Ll(e,t),e!==2&&(t=ol,ol=n,t!==null&&El(t)),e}function El(e){ol===null?ol=e:ol.push.apply(ol,e)}function Dl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ar(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t){for(t&=~il,t&=~rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tt(t),r=1<<n;e[n]=-1,t&=~r}}function kl(e){if(Jc&6)throw Error(r(327));Wl();var t=Mt(e,0);if(!(t&1))return Cl(e,gt()),null;var n=Ll(e,t);if(e.tag!==0&&n===2){var i=Ft(e);i!==0&&(t=i,n=Tl(e,i))}if(n===1)throw n=tl,Nl(e,0),Ol(e,t),Cl(e,gt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hl(e,ol,ll),Cl(e,gt()),null}function Al(e,t){var n=Jc;Jc|=1;try{return e(t)}finally{Jc=n,Jc===0&&(cl=gt()+500,ca&&V())}}function jl(e){ml!==null&&ml.tag===0&&!(Jc&6)&&Wl();var t=Jc;Jc|=1;var n=qc.transition,r=Vt;try{if(qc.transition=null,Vt=1,e)return e()}finally{Vt=r,qc.transition=n,Jc=t,!(Jc&6)&&V()}}function Ml(){Qc=$c.current,Ji($c)}function Nl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Di(n)),Xc!==null)for(n=Xc.return;n!==null;){var r=n;switch(wa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&na();break;case 3:yo(),Ji(Qi),Ji(Zi),To();break;case 5:xo(r);break;case 4:yo();break;case 13:Ji(So);break;case 19:Ji(So);break;case 10:Ya(r.type._context);break;case 22:case 23:Ml()}n=n.return}if(Yc=e,Xc=e=ru(e.current,null),Zc=Qc=t,el=0,tl=null,il=rl=nl=0,ol=al=null,$a!==null){for(t=0;t<$a.length;t++)if(n=$a[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}$a=null}return e}function Pl(e,t){do{var n=Xc;try{if(Ja(),Eo.current=bs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=0,Kc.current=null,n===null||n.return===null){el=1,tl=t,Xc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Zc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ls(s);if(m!==null){m.flags&=-257,Rs(m,s,c,o,t),m.mode&1&&U(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){U(o,u,t),Il();break a}l=Error(r(426))}}else if(Da&&c.mode&1){var _=Ls(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Rs(_,s,c,o,t),Ia(js(l,c));break a}}o=l=js(l,c),el!==4&&(el=2),al===null?al=[o]:al.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Fs(o,l,t);lo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(fl===null||!fl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Is(o,c,t);lo(o,x);break a}}o=o.return}while(o!==null)}Vl(n)}catch(e){t=e,Xc===n&&n!==null&&(Xc=n=n.return);continue}break}while(1)}function Fl(){var e=Gc.current;return Gc.current=bs,e===null?bs:e}function Il(){(el===0||el===3||el===2)&&(el=4),Yc===null||!(nl&268435455)&&!(rl&268435455)||Ol(Yc,Zc)}function Ll(e,t){var n=Jc;Jc|=2;var i=Fl();(Yc!==e||Zc!==t)&&(ll=null,Nl(e,t));do try{Rl();break}catch(t){Pl(e,t)}while(1);if(Ja(),Jc=n,Gc.current=i,Xc!==null)throw Error(r(261));return Yc=null,Zc=0,el}function Rl(){for(;Xc!==null;)Bl(Xc)}function zl(){for(;Xc!==null&&!mt();)Bl(Xc)}function Bl(e){var t=Zl(e.alternate,e,Qc);e.memoizedProps=e.pendingProps,t===null?Vl(e):Xc=t,Kc.current=null}function Vl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hc(n,t),n!==null){n.flags&=32767,Xc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{el=6,Xc=null;return}}else if(n=mc(n,t,Qc),n!==null){Xc=n;return}if(t=t.sibling,t!==null){Xc=t;return}Xc=t=e}while(t!==null);el===0&&(el=5)}function Hl(e,t,n){var r=Vt,i=qc.transition;try{qc.transition=null,Vt=1,Ul(e,t,n,r)}finally{qc.transition=i,Vt=r}return null}function Ul(e,t,n,i){do Wl();while(ml!==null);if(Jc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(zt(e,o),e===Yc&&(Xc=Yc=null,Zc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pl||(pl=!0,Ql(bt,function(){return Wl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=qc.transition,qc.transition=null;var s=Vt;Vt=1;var c=Jc;Jc|=4,Kc.current=null,Sc(e,n),Lc(n,e),Lr(wi),mn=!!Ci,wi=Ci=null,e.current=n,zc(n,e,a),ht(),Jc=c,Vt=s,qc.transition=o}else e.current=n;if(pl&&(pl=!1,ml=e,hl=a),o=e.pendingLanes,o===0&&(fl=null),wt(n.stateNode,i),Cl(e,gt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(ul)throw ul=!1,e=dl,dl=null,e;return hl&1&&e.tag!==0&&Wl(),o=e.pendingLanes,o&1?e===_l?gl++:(gl=0,_l=e):gl=0,V(),null}function Wl(){if(ml!==null){var e=Ht(hl),t=qc.transition,n=Vt;try{if(qc.transition=null,Vt=16>e?16:e,ml===null)var i=!1;else{if(e=ml,ml=null,hl=0,Jc&6)throw Error(r(331));var a=Jc;for(Jc|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(G=u;G!==null;){var d=G;switch(d.tag){case 0:case 11:case 15:Cc(8,d,o)}var f=d.child;if(f!==null)f.return=d,G=f;else for(;G!==null;){d=G;var p=d.sibling,m=d.return;if(Ec(d),d===u){G=null;break}if(p!==null){p.return=m,G=p;break}G=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}G=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,G=s;else b:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Cc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,G=v;break b}G=o.return}}var y=e.current;for(G=y;G!==null;){s=G;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,G=b;else b:for(s=y;G!==null;){if(c=G,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:wc(9,c)}}catch(e){Kl(c,c.return,e)}if(c===s){G=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,G=x;break b}G=c.return}}if(Jc=a,V(),B&&typeof B.onPostCommitFiberRoot==`function`)try{B.onPostCommitFiberRoot(Ct,e)}catch{}i=!0}return i}finally{Vt=n,qc.transition=t}}return!1}function Gl(e,t,n){t=js(n,t),t=Fs(e,t,1),e=so(e,t,1),t=bl(),e!==null&&(Rt(e,1,t),Cl(e,t))}function Kl(e,t,n){if(e.tag===3)Gl(e,e,n);else for(;t!==null;){if(t.tag===3){Gl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(fl===null||!fl.has(r))){e=js(n,e),e=Is(t,e,1),t=so(t,e,1),e=bl(),t!==null&&(Rt(t,1,e),Cl(t,e));break}}t=t.return}}function ql(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=bl(),e.pingedLanes|=e.suspendedLanes&n,Yc===e&&(Zc&n)===n&&(el===4||el===3&&(Zc&130023424)===Zc&&500>gt()-sl?Nl(e,0):il|=n),Cl(e,t)}function Jl(e,t){t===0&&(e.mode&1?(t=At,At<<=1,!(At&130023424)&&(At=4194304)):t=1);var n=bl();e=no(e,t),e!==null&&(Rt(e,t,n),Cl(e,n))}function Yl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jl(e,n)}function Xl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Jl(e,n)}var Zl=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qi.current)Bs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Bs=!1,cc(e,t,n);Bs=!!(e.flags&131072)}else Bs=!1,Da&&t.flags&1048576&&Sa(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;oc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);Za(t,n),a=Ro(null,t,i,e,a,n);var o=zo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ta(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,io(t),a.updater=Es,t.stateNode=a,a._reactInternals=t,As(t,i,e,n),t=Ys(null,t,i,!0,o,n)):(t.tag=0,Da&&o&&Ca(t),Vs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(oc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=nu(i),e=ws(i,e),a){case 0:t=qs(null,t,i,e,n);break a;case 1:t=Js(null,t,i,e,n);break a;case 11:t=Hs(null,t,i,e,n);break a;case 14:t=Us(null,t,i,ws(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),qs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Js(e,t,i,a,n);case 3:a:{if(W(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,ao(e,t),uo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=js(Error(r(423)),t),t=Xs(e,t,i,n,a);break a}else if(i!==a){a=js(Error(r(424)),t),t=Xs(e,t,i,n,a);break a}else for(Ea=Mi(t.stateNode.containerInfo.firstChild),Ta=t,Da=!0,Oa=null,n=Ua(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(H(),i===a){t=sc(e,t,n);break a}Vs(e,t,i,n)}t=t.child}return t;case 5:return bo(t),e===null&&Ma(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),Ks(e,t),Vs(e,t,s,n),t.child;case 6:return e===null&&Ma(t),null;case 13:return $s(e,t,n);case 4:return vo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ha(t,null,i,n):Vs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Hs(e,t,i,a,n);case 7:return Vs(e,t,t.pendingProps,n),t.child;case 8:return Vs(e,t,t.pendingProps.children,n),t.child;case 12:return Vs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Yi(Wa,i._currentValue),i._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===a.children&&!Qi.current){t=sc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=oo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Xa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Xa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Vs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Za(t,n),a=Qa(a),i=i(a),t.flags|=1,Vs(e,t,i,n),t.child;case 14:return i=t.type,a=ws(i,t.pendingProps),a=ws(i.type,a),Us(e,t,i,a,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),oc(e,t),t.tag=1,ta(i)?(e=!0,aa(t)):e=!1,Za(t,n),Os(t,i,a),As(t,i,a,n),Ys(null,t,i,!0,e,n);case 19:return ac(e,t,n);case 22:return Gs(e,t,n)}throw Error(r(156,t.tag))};function Ql(e,t){return ft(e,t)}function $l(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 eu(e,t,n,r){return new $l(e,t,n,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nu(e){if(typeof e==`function`)return+!!tu(e);if(e!=null){if(e=e.$$typeof,e===A)return 11;if(e===M)return 14}return 2}function ru(e,t){var n=e.alternate;return n===null?(n=eu(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)tu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return au(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=eu(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case j:return e=eu(13,n,t,a),e.elementType=j,e.lanes=o,e;case te:return e=eu(19,n,t,a),e.elementType=te,e.lanes=o,e;case N:return ou(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case k:s=9;break a;case A:s=11;break a;case M:s=14;break a;case ne:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=eu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function au(e,t,n,r){return e=eu(7,e,r,t),e.lanes=n,e}function ou(e,t,n,r){return e=eu(22,e,r,t),e.elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=eu(6,e,null,t),e.lanes=n,e}function cu(e,t,n){return t=eu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lu(e,t,n,r,i){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=Lt(0),this.expirationTimes=Lt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,i,a,o,s,c){return e=new lu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=eu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},io(a),e}function du(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function fu(e){if(!e)return Xi;e=e._reactInternals;a:{if(ot(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ta(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ta(n))return ia(e,n,t)}return t}function pu(e,t,n,r,i,a,o,s,c){return e=uu(n,r,!0,e,i,a,o,s,c),e.context=fu(null),n=e.current,r=bl(),i=xl(n),a=oo(r,i),a.callback=t??null,so(n,a,i),e.current.lanes=i,Rt(e,i,r),Cl(e,r),e}function mu(e,t,n,r){var i=t.current,a=bl(),o=xl(i);return n=fu(n),t.context===null?t.context=n:t.pendingContext=n,t=oo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=so(i,t,o),e!==null&&(Sl(e,i,o,a),co(e,i,o)),o}function hu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _u(e,t){gu(e,t),(e=e.alternate)&&gu(e,t)}function vu(){return null}var yu=typeof reportError==`function`?reportError:function(e){console.error(e)};function bu(e){this._internalRoot=e}xu.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));mu(e,t,null,null)},xu.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jl(function(){mu(null,e,null,null)}),t[Li]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tn.length&&t!==0&&t<tn[n].priority;n++);tn.splice(n,0,e),n===0&&sn(e)}};function Su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function wu(){}function Tu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=hu(o);a.call(e)}}var o=pu(t,r,e,0,null,!1,!1,``,wu);return e._reactRootContainer=o,e[Li]=o.current,di(e.nodeType===8?e.parentNode:e),jl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=hu(c);s.call(e)}}var c=uu(e,0,!1,null,null,!1,!1,``,wu);return e._reactRootContainer=c,e[Li]=c.current,di(e.nodeType===8?e.parentNode:e),jl(function(){mu(t,c,n,r)}),c}function Eu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=hu(o);s.call(e)}}mu(t,o,e,i)}else o=Tu(n,t,e,i,r);return hu(o)}Ut=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jt(t.pendingLanes);n!==0&&(Bt(t,n|1),Cl(t,gt()),!(Jc&6)&&(cl=gt()+500,V()))}break;case 13:jl(function(){var t=no(e,1);t!==null&&Sl(t,e,1,bl())}),_u(e,1)}},Wt=function(e){if(e.tag===13){var t=no(e,134217728);t!==null&&Sl(t,e,134217728,bl()),_u(e,134217728)}},Gt=function(e){if(e.tag===13){var t=xl(e),n=no(e,t);n!==null&&Sl(n,e,t,bl()),_u(e,t)}},Kt=function(){return Vt},qt=function(e,t){var n=Vt;try{return Vt=e,t()}finally{Vt=n}},Ue=function(e,t,n){switch(t){case`input`:if(be(e,n),t=n.name,n.type===`radio`&&t!=null){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 i=n[t];if(i!==e&&i.form===e.form){var a=Wi(i);if(!a)throw Error(r(90));he(i),be(i,a)}}}break;case`textarea`:De(e,n);break;case`select`:t=n.value,t!=null&&we(e,!!n.multiple,t,!1)}},Ye=Al,Xe=jl;var Du={usingClientEntryPoint:!1,Events:[Hi,Ui,Wi,qe,Je,Al]},Ou={findFiberByHostInstance:Vi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ku={bundleType:Ou.bundleType,version:Ou.version,rendererPackageName:Ou.rendererPackageName,rendererConfig:Ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ut(e),e===null?null:e.stateNode},findFiberByHostInstance:Ou.findFiberByHostInstance||vu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{Ct=Au.inject(ku),B=Au}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Du,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Su(t))throw Error(r(200));return du(e,t,null,n)},e.createRoot=function(e,t){if(!Su(e))throw Error(r(299));var n=!1,i=``,a=yu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uu(e,1,!1,null,null,n,!1,i,a),e[Li]=t.current,di(e.nodeType===8?e.parentNode:e),new bu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ut(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return jl(e)},e.hydrate=function(e,t,n){if(!Cu(t))throw Error(r(200));return Eu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Su(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=yu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=pu(t,null,e,1,n??null,a,!1,o,s),e[Li]=t.current,di(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new xu(t)},e.render=function(e,t,n){if(!Cu(t))throw Error(r(200));return Eu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Cu(e))throw Error(r(40));return e._reactRootContainer?(jl(function(){Eu(null,null,e,!1,function(){e._reactRootContainer=null,e[Li]=null})}),!0):!1},e.unstable_batchedUpdates=Al,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Cu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Eu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=_();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),y=Object.prototype;function b(e){return typeof e==`object`&&!!e}function x(e){if(!b(e))return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(e=>x(e));let t={};for(let[n,r]of Object.entries(e))t[n]=x(r);return t}function S(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:!b(e)||Object.keys(e).length===0}function C(e,t,n){let r=n?.(e,t);if(r!==void 0)return!!r;if(Object.is(e,t))return!0;if(!b(e)||!b(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>C(e,t[r],n));let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(r=>y.hasOwnProperty.call(t,r)&&C(e[r],t[r],n))}function w(e,t){return C(e,t)}function T(e,t){let n={...e??{}};for(let e of Array.isArray(t)?t:[t])delete n[e];return n}var E=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,D=`pie-mathjax-version-conflict`,O=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function ee(e,t){if(typeof window>`u`)return;let n=globalThis;n[O]??={logged:!1,conditions:[]};let r=n[O];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${E}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(D,{detail:{condition:e,message:i,docsUrl:E}}))}function k(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var A=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,j={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},te=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,M=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,ne=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,N=/\\embed\{newLine\}\[\]/g,P=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],re=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),F=`PIE-MJX-CHTML-styles`,ie=`MJX-CHTML-styles`,ae=[ie,`MJX-SVG-styles`],oe=201;function se(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function ce(){return window.MathJax}function le(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of P)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function ue(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${le(e)}\\)`.replace(N,`\\newline `),t.dataset.mathHandled=`true`)}}function de(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?ne:M).test(e.textContent??``)}function fe(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=ce(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&pe(e),r?.defaultReady?.(),i&&me(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...j}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(te),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||A,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function pe(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=F)}function me(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(se(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,oe,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&se(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===ie&&(r.id=F),_e()}function he(e){return e instanceof HTMLStyleElement&&ae.includes(e.id)}function ge(e){ee(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function _e(){let e=document.head,t=[...e.children].find(he);if(t){ge(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(he);if(e){ge(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function ve(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=ce()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function ye(e){let t=ce();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():ve(t):fe(e)}function be(e){return ye(e).then(()=>{typeof ce()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function xe(e){let t=globalThis,n=t[re];return n||(n=be(e),t[re]=n),n}function Se(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=k();r&&ee(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),ue(n);let i=xe(e);if(!de(n,t)){i.catch(()=>{});return}await i;let a=ce();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),se(n))}}var Ce=`@pie-lib/math-rendering`,we=`@pie-lib/math-rendering@2`,Te=null;function Ee(){return!!window[we]?.opts?.useSingleDollar}function De(){return Te||=Se({useSingleDollar:Ee()}),Te}function Oe(){if(typeof window>`u`)return null;let e=window[Ce];return typeof e?.renderMath==`function`?e:null}var ke=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Oe();return r?await r.renderMath?.(n):await De()(n),t?n.innerHTML:void 0},Ae=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},je=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},Me=c({PropTypes:()=>I,any:()=>Ue,array:()=>Fe,arrayOf:()=>qe,bigint:()=>Ie,bool:()=>Le,checkPropTypes:()=>et,default:()=>I,element:()=>We,elementType:()=>Ge,exact:()=>$e,func:()=>Re,instanceOf:()=>Je,node:()=>Ke,number:()=>ze,object:()=>Be,objectOf:()=>Ye,oneOf:()=>Xe,oneOfType:()=>Ze,resetWarningCache:()=>tt,shape:()=>Qe,string:()=>Ve,symbol:()=>He}),Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,I,L=o((()=>{Ne=function(){return null},Ne.isRequired=Ne,Pe=()=>Ne,Fe=Ne,Ie=Ne,Le=Ne,Re=Ne,ze=Ne,Be=Ne,Ve=Ne,He=Ne,Ue=Ne,We=Ne,Ge=Ne,Ke=Ne,qe=Pe,Je=Pe,Ye=Pe,Xe=Pe,Ze=Pe,Qe=Pe,$e=Pe,et=()=>{},tt=()=>{},I={array:Fe,bigint:Ie,bool:Le,func:Re,number:ze,object:Be,string:Ve,symbol:He,any:Ue,element:We,elementType:Ge,node:Ke,arrayOf:qe,instanceOf:Je,objectOf:Ye,oneOf:Xe,oneOfType:Ze,shape:Qe,exact:$e,checkPropTypes:et,resetWarningCache:tt},I.PropTypes=I})),nt=s((e=>{var t=p(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),rt=s(((e,t)=>{t.exports=nt()})),R=u(p(),1);L();var z=rt(),it=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,at=({size:e,children:t})=>(e=it(e),(0,z.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));at.propTypes={size:I.number,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired},L();var ot=({size:e,children:t,sx:n})=>(0,z.jsx)(at,{size:e,children:(0,z.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});ot.propTypes={size:I.oneOfType([I.string,I.number]),children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired,sx:I.object};var st=({fill:e})=>(0,z.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});st.propTypes={fill:I.string.isRequired};var ct=({fill:e})=>(0,z.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});ct.propTypes={fill:I.string.isRequired};var lt=({fill:e})=>(0,z.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});lt.propTypes={fill:I.string.isRequired};var ut=({fill:e})=>(0,z.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});ut.propTypes={fill:I.string.isRequired};var dt=({fill:e})=>(0,z.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});dt.propTypes={fill:I.string.isRequired},L();var ft=(e,t)=>{class n extends R.Component{static propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,size:I.oneOfType([I.number,I.string]),fg:I.string,bg:I.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,z.jsx)(e,{fill:s}):(0,z.jsx)(t,{fill:s}),u=n===`check`?(0,z.jsx)(e,{fill:c}):(0,z.jsx)(t,{fill:c});return a?(0,z.jsx)(ot,{size:o,children:u}):(0,z.jsxs)(ot,{size:o,children:[i===`feedback`?r===`round`?(0,z.jsx)(lt,{fill:c}):(0,z.jsx)(ct,{fill:c}):r===`round`?(0,z.jsx)(ut,{fill:c}):(0,z.jsx)(dt,{fill:c}),l]})}}return n};L();var pt=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,z.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
|
|
9
|
+
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,z.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});pt.propTypes={fill:I.string.isRequired};var mt=({fill:e,x:t=0,y:n=0})=>(0,z.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});mt.propTypes={fill:I.string.isRequired,x:I.number,y:I.number};var ht=ft(mt,pt);ht.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},ht.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};function gt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var _t=`$$material`;function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vt.apply(null,arguments)}function yt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bt(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var xt=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(bt(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=yt(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),St=`-ms-`,Ct=`-moz-`,B=`-webkit-`,wt=`comm`,Tt=`rule`,Et=`decl`,Dt=`@import`,Ot=`@keyframes`,kt=`@layer`,At=Math.abs,jt=String.fromCharCode,Mt=Object.assign;function Nt(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Pt(e){return e.trim()}function Ft(e,t){return(e=t.exec(e))?e[0]:e}function It(e,t,n){return e.replace(t,n)}function Lt(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function zt(e,t,n){return e.slice(t,n)}function Bt(e){return e.length}function Vt(e){return e.length}function Ht(e,t){return t.push(e),e}function Ut(e,t){return e.map(t).join(``)}var Wt=1,Gt=1,Kt=0,qt=0,Jt=0,Yt=``;function Xt(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Wt,column:Gt,length:o,return:``}}function Zt(e,t){return Mt(Xt(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Qt(){return Jt}function $t(){return Jt=qt>0?Rt(Yt,--qt):0,Gt--,Jt===10&&(Gt=1,Wt--),Jt}function en(){return Jt=qt<Kt?Rt(Yt,qt++):0,Gt++,Jt===10&&(Gt=1,Wt++),Jt}function tn(){return Rt(Yt,qt)}function nn(){return qt}function rn(e,t){return zt(Yt,e,t)}function an(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function on(e){return Wt=Gt=1,Kt=Bt(Yt=e),qt=0,[]}function sn(e){return Yt=``,e}function cn(e){return Pt(rn(qt-1,dn(e===91?e+2:e===40?e+1:e)))}function ln(e){for(;(Jt=tn())&&Jt<33;)en();return an(e)>2||an(Jt)>3?``:` `}function un(e,t){for(;--t&&en()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return rn(e,nn()+(t<6&&tn()==32&&en()==32))}function dn(e){for(;en();)switch(Jt){case e:return qt;case 34:case 39:e!==34&&e!==39&&dn(Jt);break;case 40:e===41&&dn(e);break;case 92:en();break}return qt}function fn(e,t){for(;en()&&e+Jt!==57&&!(e+Jt===84&&tn()===47););return`/*`+rn(t,qt-1)+`*`+jt(e===47?e:en())}function pn(e){for(;!an(tn());)en();return rn(e,qt)}function mn(e){return sn(hn(``,null,null,null,[``],e=on(e),0,[0],e))}function hn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=en()){case 40:if(m!=108&&Rt(C,d-1)==58){Lt(C+=It(cn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=cn(v);break;case 9:case 10:case 13:case 32:C+=ln(m);break;case 92:C+=un(nn()-1,7);continue;case 47:switch(tn()){case 42:case 47:Ht(_n(fn(en(),nn()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Bt(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=It(C,/\f/g,``)),p>0&&Bt(C)-d&&Ht(p>32?vn(C+`;`,r,n,d-1):vn(It(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Ht(S=gn(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)hn(C,t,S,S,b,a,d,s,x);else switch(f===99&&Rt(C,3)===110?100:f){case 100:case 108:case 109:case 115:hn(e,S,S,r&&Ht(gn(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:hn(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Bt(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&$t()==125)continue}switch(C+=jt(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Bt(C)-1)*_,_=1;break;case 64:tn()===45&&(C+=cn(en())),f=tn(),u=d=Bt(y=C+=pn(nn())),v++;break;case 45:m===45&&Bt(C)==2&&(h=0)}}return a}function gn(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Vt(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=zt(e,d+1,d=At(h=o[m])),y=e;_<p;++_)(y=Pt(h>0?f[_]+` `+v:It(v,/&\f/g,f[_])))&&(c[g++]=y);return Xt(e,t,n,i===0?Tt:s,c,l,u)}function _n(e,t,n){return Xt(e,t,n,wt,jt(Qt()),zt(e,2,-2),0)}function vn(e,t,n,r){return Xt(e,t,n,Et,zt(e,0,r),zt(e,r+1,-1),r)}function yn(e,t){for(var n=``,r=Vt(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function bn(e,t,n,r){switch(e.type){case kt:if(e.children.length)break;case Dt:case Et:return e.return=e.return||e.value;case wt:return``;case Ot:return e.return=e.value+`{`+yn(e.children,r)+`}`;case Tt:e.value=e.props.join(`,`)}return Bt(n=yn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function xn(e){var t=Vt(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Sn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wn=function(e,t,n){for(var r=0,i=0;r=i,i=tn(),r===38&&i===12&&(t[n]=1),!an(i);)en();return rn(e,qt)},Tn=function(e,t){var n=-1,r=44;do switch(an(r)){case 0:r===38&&tn()===12&&(t[n]=1),e[n]+=wn(qt-1,t,n);break;case 2:e[n]+=cn(r);break;case 4:if(r===44){e[++n]=tn()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=jt(r)}while(r=en());return e},En=function(e,t){return sn(Tn(on(e),t))},Dn=new WeakMap,On=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Dn.get(n))&&!r){Dn.set(e,!0);for(var i=[],a=En(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},kn=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function An(e,t){switch(Nt(e,t)){case 5103:return B+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+Ct+e+St+e+e;case 6828:case 4268:return B+e+St+e+e;case 6165:return B+e+St+`flex-`+e+e;case 5187:return B+e+It(e,/(\w+).+(:[^]+)/,B+`box-$1$2`+St+`flex-$1$2`)+e;case 5443:return B+e+St+`flex-item-`+It(e,/flex-|-self/,``)+e;case 4675:return B+e+St+`flex-line-pack`+It(e,/align-content|flex-|-self/,``)+e;case 5548:return B+e+St+It(e,`shrink`,`negative`)+e;case 5292:return B+e+St+It(e,`basis`,`preferred-size`)+e;case 6060:return B+`box-`+It(e,`-grow`,``)+B+e+St+It(e,`grow`,`positive`)+e;case 4554:return B+It(e,/([^-])(transform)/g,`$1`+B+`$2`)+e;case 6187:return It(It(It(e,/(zoom-|grab)/,B+`$1`),/(image-set)/,B+`$1`),e,``)+e;case 5495:case 3959:return It(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return It(It(e,/(.+:)(flex-)?(.*)/,B+`box-pack:$3`+St+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+B+e+e;case 4095:case 3583:case 4068:case 2532:return It(e,/(.+)-inline(.+)/,B+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bt(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return It(e,/(.+:)(.+)-([^]+)/,`$1`+B+`$2-$3$1`+Ct+(Rt(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Lt(e,`stretch`)?An(It(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,Bt(e)-3-(~Lt(e,`!important`)&&10))){case 107:return It(e,`:`,`:`+B)+e;case 101:return It(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+B+(Rt(e,14)===45?`inline-`:``)+`box$3$1`+B+`$2$3$1`+St+`$2box$3`)+e}break;case 5936:switch(Rt(e,t+11)){case 114:return B+e+St+It(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return B+e+St+It(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return B+e+St+It(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return B+e+St+e+e}return e}var jn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Et:e.return=An(e.value,e.length);break;case Ot:return yn([Zt(e,{value:It(e.value,`@`,`@`+B)})],r);case Tt:if(e.length)return Ut(e.props,function(t){switch(Ft(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return yn([Zt(e,{props:[It(t,/:(read-\w+)/,`:`+Ct+`$1`)]})],r);case`::placeholder`:return yn([Zt(e,{props:[It(t,/:(plac\w+)/,`:`+B+`input-$1`)]}),Zt(e,{props:[It(t,/:(plac\w+)/,`:`+Ct+`$1`)]}),Zt(e,{props:[It(t,/:(plac\w+)/,St+`input-$1`)]})],r)}return``})}}],Mn=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||jn,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[On,kn],l,u=[bn,Sn(function(e){l.insert(e)})],d=xn(c.concat(r,u)),f=function(e){return yn(mn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new xt({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Nn=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Pn=s(((e,t)=>{t.exports=Nn()})),Fn=s(((e,t)=>{var n=Pn(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function In(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Ln=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Rn=function(e,t,n){Ln(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function zn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vn=/[A-Z]|^ms/g,Hn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Un=function(e){return e.charCodeAt(1)===45},Wn=function(e){return e!=null&&typeof e!=`boolean`},Gn=Cn(function(e){return Un(e)?e:e.replace(Vn,`-$&`).toLowerCase()}),Kn=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Hn,function(e,t,n){return Xn={name:t,styles:n,next:Xn},t})}return Bn[e]!==1&&!Un(e)&&typeof t==`number`&&t!==0?t+`px`:t};function qn(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Xn={name:i.name,styles:i.styles,next:Xn},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Xn={name:o.name,styles:o.styles,next:Xn},o=o.next;return a.styles+`;`}return Jn(e,t,n);case`function`:if(e!==void 0){var s=Xn,c=n(e);return Xn=s,qn(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Jn(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=qn(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Wn(s)&&(r+=Gn(a)+`:`+Kn(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Wn(o[c])&&(r+=Gn(a)+`:`+Kn(a,o[c])+`;`);else{var l=qn(e,t,o);switch(a){case`animation`:case`animationName`:r+=Gn(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Yn=/label:\s*([^\s;{]+)\s*(;|$)/g,Xn;function Zn(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Xn=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=qn(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=qn(n,t,e[o]),r&&(i+=a[o]);Yn.lastIndex=0;for(var s=``,c;(c=Yn.exec(i))!==null;)s+=`-`+c[1];return{name:zn(i)+s,styles:i,next:Xn}}var Qn=function(e){return e()},$n=R.useInsertionEffect?R.useInsertionEffect:!1,er=$n||Qn,tr=$n||R.useLayoutEffect,nr=R.createContext(typeof HTMLElement<`u`?Mn({key:`css`}):null),rr=nr.Provider,ir=function(e){return(0,R.forwardRef)(function(t,n){return e(t,(0,R.useContext)(nr),n)})},ar=R.createContext({}),or={}.hasOwnProperty,sr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,cr=function(e,t){var n={};for(var r in t)or.call(t,r)&&(n[r]=t[r]);return n[sr]=e,n},lr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ln(t,n,r),er(function(){return Rn(t,n,r)}),null},ur=ir(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[sr],a=[r],o=``;typeof e.className==`string`?o=In(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Zn(a,void 0,R.useContext(ar));o+=t.key+`-`+s.name;var c={};for(var l in e)or.call(e,l)&&l!==`css`&&l!==sr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),R.createElement(R.Fragment,null,R.createElement(lr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),R.createElement(i,c))});Fn();var dr=function(e,t){var n=arguments;if(t==null||!or.call(t,`css`))return R.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=ur,i[1]=cr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return R.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(dr||={});var fr=ir(function(e,t){var n=e.styles,r=Zn([n],void 0,R.useContext(ar)),i=R.useRef();return tr(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),tr(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Rn(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function pr(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zn(t)}function mr(){var e=pr.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var hr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gr=Cn(function(e){return hr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_r=function(e){return e!==`theme`},vr=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?gr:_r},yr=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},br=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ln(t,n,r),er(function(){return Rn(t,n,r)}),null},xr=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=yr(t,n,r),c=s||vr(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=ir(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=R.useContext(ar)}typeof e.className==`string`?a=In(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Zn(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?vr(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),R.createElement(R.Fragment,null,R.createElement(br,{cache:t,serialized:m,isStringTag:typeof r==`string`}),R.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,vt({},n,r,{shouldForwardProp:yr(h,r,!0)})).apply(void 0,d)},h}},Sr=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),Cr=xr.bind(null);Sr.forEach(function(e){Cr[e]=Cr(e)}),L();var wr=new Map,Tr={insert:void 0},Er=(e,t)=>{let n=Mn(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},Dr;if(typeof document==`object`&&(Dr=document.querySelector(`[name="emotion-insertion-point"]`),!Dr)){Dr=document.createElement(`meta`),Dr.setAttribute(`name`,`emotion-insertion-point`),Dr.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(Dr)}function Or(e,t){if(e||t){class n extends xt{insert(e,t){return Tr.insert?Tr.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=Dr),super.insert(e,t))}}let r=Er({key:`css`,insertionPoint:e?Dr:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function kr(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=R.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&wr.has(e))return wr.get(e);let r=Or(t,n);return wr.set(e,r),r},[t,n]);return i?(0,z.jsx)(rr,{value:i,children:r}):r}L();function Ar(e){return e==null||Object.keys(e).length===0}function jr(e){let{styles:t,defaultTheme:n={}}=e;return(0,z.jsx)(fr,{styles:typeof t==`function`?e=>t(Ar(e)?n:e):t})}function Mr(e,t){return Cr(e,t)}function Nr(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Pr=[];function Fr(e){return Pr[0]=e,Zn(Pr)}var Ir=s((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Lr=s(((e,t)=>{t.exports=Ir()}))();function Rr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zr(e){if(R.isValidElement(e)||(0,Lr.isValidElementType)(e)||!Rr(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=zr(e[n])}),t}function Br(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Rr(e)&&Rr(t)&&Object.keys(t).forEach(i=>{R.isValidElement(t[i])||(0,Lr.isValidElementType)(t[i])?r[i]=t[i]:Rr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Rr(e[i])?r[i]=Br(e[i],t[i],n):n.clone?r[i]=Rr(t[i])?zr(t[i]):t[i]:r[i]=t[i]}),r}var Vr=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Hr(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Vr(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function Ur(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function Wr(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Gr(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Kr(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var qr={borderRadius:4};function Jr(e,t){return t?Br(e,t,{clone:!1}):e}L();var Yr={xs:0,sm:600,md:900,lg:1200,xl:1536},Xr={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${Yr[e]}px)`},Zr={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Yr[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Qr(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Xr;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Xr;return Object.keys(t).reduce((i,a)=>{if(Wr(e.keys,a)){let e=Gr(r.containerQueries?r:Zr,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||Yr).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function $r(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function ei(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function ti(e){if(typeof e!=`string`)throw Error(gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ni(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function ri(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:ni(e,n)||r,t&&(i=t(i,r,e)),i}function ii(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=ni(o,r)||{};return Qr(e,a,e=>{let r=ri(s,i,e);return e===r&&typeof e==`string`&&(r=ri(s,i,`${t}${e==="default"?``:ti(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function ai(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var oi={m:`margin`,p:`padding`},si={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},ci={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},li=ai(e=>{if(e.length>2)if(ci[e])e=ci[e];else return[e];let[t,n]=e.split(``),r=oi[t],i=si[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),ui=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],di=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],fi=[...ui,...di];function pi(e,t,n,r){let i=ni(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function mi(e){return pi(e,`spacing`,8,`spacing`)}function hi(e,t){return typeof t==`string`||t==null?t:e(t)}function gi(e,t){return n=>e.reduce((e,r)=>(e[r]=hi(t,n),e),{})}function _i(e,t,n,r){if(!t.includes(n))return null;let i=gi(li(n),r),a=e[n];return Qr(e,a,i)}function vi(e,t){let n=mi(e.theme);return Object.keys(e).map(r=>_i(e,t,r,n)).reduce(Jr,{})}function yi(e){return vi(e,ui)}yi.propTypes={},yi.filterProps=ui;function bi(e){return vi(e,di)}bi.propTypes={},bi.filterProps=di;function xi(e){return vi(e,fi)}xi.propTypes={},xi.filterProps=fi;function Si(e=8,t=mi({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Ci(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Jr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function wi(e){return typeof e==`number`?`${e}px solid`:e}function Ti(e,t){return ii({prop:e,themeKey:`borders`,transform:t})}var Ei=Ti(`border`,wi),Di=Ti(`borderTop`,wi),Oi=Ti(`borderRight`,wi),ki=Ti(`borderBottom`,wi),Ai=Ti(`borderLeft`,wi),ji=Ti(`borderColor`),Mi=Ti(`borderTopColor`),Ni=Ti(`borderRightColor`),Pi=Ti(`borderBottomColor`),Fi=Ti(`borderLeftColor`),Ii=Ti(`outline`,wi),Li=Ti(`outlineColor`),Ri=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=pi(e.theme,`shape.borderRadius`,4,`borderRadius`);return Qr(e,e.borderRadius,e=>({borderRadius:hi(t,e)}))}return null};Ri.propTypes={},Ri.filterProps=[`borderRadius`],Ci(Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ri,Ii,Li);var zi=e=>{if(e.gap!==void 0&&e.gap!==null){let t=pi(e.theme,`spacing`,8,`gap`);return Qr(e,e.gap,e=>({gap:hi(t,e)}))}return null};zi.propTypes={},zi.filterProps=[`gap`];var Bi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=pi(e.theme,`spacing`,8,`columnGap`);return Qr(e,e.columnGap,e=>({columnGap:hi(t,e)}))}return null};Bi.propTypes={},Bi.filterProps=[`columnGap`];var Vi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=pi(e.theme,`spacing`,8,`rowGap`);return Qr(e,e.rowGap,e=>({rowGap:hi(t,e)}))}return null};Vi.propTypes={},Vi.filterProps=[`rowGap`],Ci(zi,Bi,Vi,ii({prop:`gridColumn`}),ii({prop:`gridRow`}),ii({prop:`gridAutoFlow`}),ii({prop:`gridAutoColumns`}),ii({prop:`gridAutoRows`}),ii({prop:`gridTemplateColumns`}),ii({prop:`gridTemplateRows`}),ii({prop:`gridTemplateAreas`}),ii({prop:`gridArea`}));function Hi(e,t){return t===`grey`?t:e}Ci(ii({prop:`color`,themeKey:`palette`,transform:Hi}),ii({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Hi}),ii({prop:`backgroundColor`,themeKey:`palette`,transform:Hi}));function Ui(e){return e<=1&&e!==0?`${e*100}%`:e}var Wi=ii({prop:`width`,transform:Ui}),Gi=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Qr(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Yr[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Ui(t)}}):null;Gi.filterProps=[`maxWidth`];var Ki=ii({prop:`minWidth`,transform:Ui}),qi=ii({prop:`height`,transform:Ui}),Ji=ii({prop:`maxHeight`,transform:Ui}),Yi=ii({prop:`minHeight`,transform:Ui});ii({prop:`size`,cssProperty:`width`,transform:Ui}),ii({prop:`size`,cssProperty:`height`,transform:Ui}),Ci(Wi,Gi,Ki,qi,Ji,Yi,ii({prop:`boxSizing`}));var Xi={border:{themeKey:`borders`,transform:wi},borderTop:{themeKey:`borders`,transform:wi},borderRight:{themeKey:`borders`,transform:wi},borderBottom:{themeKey:`borders`,transform:wi},borderLeft:{themeKey:`borders`,transform:wi},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:wi},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Ri},color:{themeKey:`palette`,transform:Hi},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Hi},backgroundColor:{themeKey:`palette`,transform:Hi},p:{style:bi},pt:{style:bi},pr:{style:bi},pb:{style:bi},pl:{style:bi},px:{style:bi},py:{style:bi},padding:{style:bi},paddingTop:{style:bi},paddingRight:{style:bi},paddingBottom:{style:bi},paddingLeft:{style:bi},paddingX:{style:bi},paddingY:{style:bi},paddingInline:{style:bi},paddingInlineStart:{style:bi},paddingInlineEnd:{style:bi},paddingBlock:{style:bi},paddingBlockStart:{style:bi},paddingBlockEnd:{style:bi},m:{style:yi},mt:{style:yi},mr:{style:yi},mb:{style:yi},ml:{style:yi},mx:{style:yi},my:{style:yi},margin:{style:yi},marginTop:{style:yi},marginRight:{style:yi},marginBottom:{style:yi},marginLeft:{style:yi},marginX:{style:yi},marginY:{style:yi},marginInline:{style:yi},marginInlineStart:{style:yi},marginInlineEnd:{style:yi},marginBlock:{style:yi},marginBlockStart:{style:yi},marginBlockEnd:{style:yi},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:zi},rowGap:{style:Vi},columnGap:{style:Bi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Ui},maxWidth:{style:Gi},minWidth:{transform:Ui},height:{transform:Ui},maxHeight:{transform:Ui},minHeight:{transform:Ui},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Zi(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function Qi(e,t){return typeof e==`function`?e(t):e}function $i(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=ni(n,s)||{};return l?l(i):Qr(i,t,t=>{let n=ri(u,c,t);return t===n&&typeof t==`string`&&(n=ri(u,c,`${e}${t==="default"?``:ti(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??Xi;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=$r(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Qi(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=Jr(l,e(n,a,i,o));else{let e=Qr({theme:i},a,e=>({[n]:e}));Zi(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=Jr(l,e)}else l=Jr(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Ur(i,ei(c,l))}:Ur(i,ei(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var ea=$i();ea.filterProps=[`sx`];function ta(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function na(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Hr(n),c=Si(i),l=Br({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...qr,...a}},o);return l=Kr(l),l.applyStyles=ta,l=t.reduce((e,t)=>Br(e,t),l),l.unstable_sxConfig={...Xi,...o?.unstable_sxConfig},l.unstable_sx=function(e){return ea({sx:e,theme:this})},l}function ra(e){return Object.keys(e).length===0}function ia(e=null){let t=R.useContext(ar);return!t||ra(t)?e:t}var aa=na();function oa(e=aa){return ia(e)}L();function sa(e){let t=Fr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ca({styles:e,themeId:t,defaultTheme:n={}}){let r=oa(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>sa(typeof e==`function`?e(i):e)):sa(a)),(0,z.jsx)(jr,{styles:a})}var la=e=>e,ua=(()=>{let e=la;return{configure(t){e=t},generate(t){return e(t)},reset(){e=la}}})();function da(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=da(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function V(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=da(e))&&(r&&(r+=` `),r+=t);return r}var fa={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function pa(e,t,n=`Mui`){let r=fa[t];return r?`${n}-${r}`:`${ua.generate(e)}-${t}`}function ma(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=pa(e,t,n)}),r}function ha(e){let{variants:t,...n}=e,r={variants:t,style:Fr(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Fr(e.style))}),r}var ga=na();function _a(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function va(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ya(e){return e?(t,n)=>n[e]:null}function ba(e,t,n){e.theme=wa(e.theme)?n:e.theme[t]||e.theme}function xa(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>xa(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?va(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?va(Fr(i),n):i}return Sa(e,r.variants,[t],n)}return r?.isProcessed?n?va(Fr(r.style),n):r.style:n?va(Fr(r),n):r}function Sa(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?va(Fr(o.style(i)),r):o.style(i))):n.push(r?va(Fr(o.style),r):o.style)}return n}function Ca(e={}){let{themeId:t,defaultTheme:n=ga,rootShouldForwardProp:r=_a,slotShouldForwardProp:i=_a}=e;function a(e){ba(e,t,n)}return(e,t={})=>{Nr(e,e=>e.filter(e=>e!==ea));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=ya(Ea(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=_a;o===`Root`||o===`root`?m=r:o?m=i:Ta(e)&&(m=void 0);let h=Mr(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return xa(t,e,t.theme.modularCssLayers?d:void 0)};if(Rr(e)){let t=ha(e);return function(e){return t.variants?xa(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?va(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=xa(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Sa(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(ea),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function wa(e){for(let t in e)return!1;return!0}function Ta(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Ea(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Da(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=Da(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=V(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var Oa=typeof window<`u`?R.useLayoutEffect:R.useEffect;function ka(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Aa(e,t=0,n=1){return ka(e,t,n)}function ja(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function Ma(e){if(e.type)return e;if(e.charAt(0)===`#`)return Ma(ja(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(gt(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(gt(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Na=e=>{let t=Ma(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Pa=(e,t)=>{try{return Na(e)}catch{return e}};function Fa(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function H(e){e=Ma(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Fa({type:s,values:c})}function Ia(e){e=Ma(e);let t=e.type===`hsl`||e.type===`hsla`?Ma(H(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function La(e,t){let n=Ia(e),r=Ia(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ra(e,t){return e=Ma(e),t=Aa(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Fa(e)}function za(e,t,n){try{return Ra(e,t)}catch{return e}}function Ba(e,t){if(e=Ma(e),t=Aa(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Fa(e)}function Va(e,t,n){try{return Ba(e,t)}catch{return e}}function Ha(e,t){if(e=Ma(e),t=Aa(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fa(e)}function Ua(e,t,n){try{return Ha(e,t)}catch{return e}}function Wa(e,t=.15){return Ia(e)>.5?Ba(e,t):Ha(e,t)}function Ga(e,t,n){try{return Wa(e,t)}catch{return e}}var Ka=R.createContext(null);function qa(){return R.useContext(Ka)}var Ja=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;L();function Ya(e,t){return typeof t==`function`?t(e):{...e,...t}}function Xa(e){let{children:t,theme:n}=e,r=qa(),i=R.useMemo(()=>{let e=r===null?{...n}:Ya(r,n);return e!=null&&(e[Ja]=r!==null),e},[n,r]);return(0,z.jsx)(Ka.Provider,{value:i,children:t})}L();var Za=R.createContext();function Qa({value:e,...t}){return(0,z.jsx)(Za.Provider,{value:e??!0,...t})}var $a=()=>R.useContext(Za)??!1;L();var eo=R.createContext(void 0);function to({value:e,children:t}){return(0,z.jsx)(eo.Provider,{value:e,children:t})}function no(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Da(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Da(i,r,t.components.mergeClassNameAndStyle):r}function ro({props:e,name:t}){return no({props:e,name:t,theme:{components:R.useContext(eo)}})}var io=0;function ao(e){let[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t??(io+=1,n(`mui-${io}`))},[t]),r}var oo={...R}.useId;function so(e){if(oo!==void 0){let t=oo();return e??t}return ao(e)}function co(e){let t=ia(),n=so()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Oa(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,z.jsx)(ca,{styles:i}):null}L();var lo={};function uo(e,t,n,r=!1){return R.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function fo(e){let{children:t,theme:n,themeId:r}=e,i=ia(lo),a=qa()||lo,o=uo(r,i,n),s=uo(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=co(o);return(0,z.jsx)(Xa,{theme:s,children:(0,z.jsx)(ar.Provider,{value:o,children:(0,z.jsx)(Qa,{value:c,children:(0,z.jsxs)(to,{value:r?o[r].components:o.components,children:[l,t]})})})})}var po={theme:void 0};function mo(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(po.theme=r.theme,i=ha(e(po)),t=i,n=r.theme),i}}var ho=`mode`,go=`color-scheme`,_o=`data-color-scheme`;function vo(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=ho,colorSchemeStorageKey:a=go,attribute:o=_o,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
|
|
10
10
|
${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
|
|
11
11
|
${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
|
|
12
|
-
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,
|
|
12
|
+
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,z.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
|
|
13
13
|
try {
|
|
14
14
|
let colorScheme = '';
|
|
15
15
|
const mode = localStorage.getItem('${i}') || '${t}';
|
|
@@ -33,16 +33,16 @@ try {
|
|
|
33
33
|
if (colorScheme) {
|
|
34
34
|
${l}
|
|
35
35
|
}
|
|
36
|
-
} catch(e){}})();`}},`mui-color-scheme-init`)}function xo(){}var So=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return xo;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function H(){}function Co(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function wo(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function To(e){return wo(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Eo(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=_o,colorSchemeStorageKey:o=vo,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=So,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=z.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=z.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=z.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=z.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Co(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=z.useState(l||!d);z.useEffect(()=>{v(!0)},[]);let y=To(h),b=z.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Co(r)}})},[f,t]),x=z.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return wo(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=z.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=z.useRef(S);return C.current=S,z.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),z.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||H,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||H,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||H;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}R();var Do=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Oo(e){let{themeId:t,theme:n={},modeStorageKey:r=_o,colorSchemeStorageKey:i=vo,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=z.createContext(void 0),u=()=>z.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=z.useRef(!1),E=Ya(),D=z.useContext(l),O=!!D&&!b,k=z.useMemo(()=>u||(typeof n==`function`?n():n),[u]),A=k[t],j=A||k,{colorSchemes:M=d,components:ee=f,cssVarPrefix:N}=j,te=Object.keys(M).filter(e=>!!M[e]).join(`,`),P=z.useMemo(()=>te.split(`,`),[te]),F=typeof o==`string`?o:o.light,ne=typeof o==`string`?o:o.dark,{mode:I,setMode:re,systemMode:ie,lightColorScheme:ae,darkColorScheme:oe,colorScheme:se,setColorScheme:ce}=Eo({supportedColorSchemes:P,defaultLightColorScheme:F,defaultDarkColorScheme:ne,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:M[F]&&M[ne]?S:M[j.defaultColorScheme]?.palette?.mode||j.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),le=I,ue=se;O&&(le=D.mode,ue=D.colorScheme);let de=ue||j.defaultColorScheme;j.vars&&!C&&(de=j.defaultColorScheme);let fe=z.useMemo(()=>{let e=j.generateThemeVars?.()||j.vars,t={...j,components:ee,colorSchemes:M,cssVarPrefix:N,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),de){let e=M[de];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[j,de,ee,M,N]),pe=j.colorSchemeSelector;Aa(()=>{if(ue&&y&&pe&&pe!==`media`){let e=pe,t=pe;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...P.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,ue));else{let e=t.replace(`%s`,ue).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||P.forEach(e=>{y.removeAttribute(t.replace(ue,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,ue)}}},[ue,pe,y,P]),z.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Do)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ue,h,v]),z.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let me=z.useMemo(()=>({allColorSchemes:P,colorScheme:ue,darkColorScheme:oe,lightColorScheme:ae,mode:le,setColorScheme:ce,setMode:re,systemMode:ie}),[P,ue,oe,ae,le,ce,re,ie,fe.colorSchemeSelector]),he=!0;(x||j.cssVariables===!1||O&&E?.cssVarPrefix===N)&&(he=!1);let ge=(0,B.jsxs)(z.Fragment,{children:[(0,B.jsx)(mo,{themeId:A?t:void 0,theme:fe,children:c}),he&&(0,B.jsx)(Mr,{styles:fe.generateStyleSheets?.()||[]})]});return O?ge:(0,B.jsx)(l.Provider,{value:me,children:ge})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>bo({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function ko(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Ao=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},jo=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Mo=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function No(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return jo(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Mo(e,t);Object.assign(i,{[r]:c}),Ao(a,e,`var(${r})`,s),Ao(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Po(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=No(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=No(n,t);p=Vr(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=No(h,t);p=Vr(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Vr(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Fo(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Io(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Lo(e,t){return z.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Ro={black:`#000`,white:`#fff`},zo={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},Bo={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Vo={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Ho={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Uo={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Wo={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Go={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function Ko(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:Ro.white,default:Ro.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var qo=Ko();function Jo(){return{text:{primary:Ro.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:Ro.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var Yo=Jo();function Xo(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Wa(e.main,i):t===`dark`&&(e.dark=Ha(e.main,a)))}function Zo(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Qo(e=`light`){return e===`dark`?{main:Uo[200],light:Uo[50],dark:Uo[400]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function $o(e=`light`){return e===`dark`?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[500],light:Bo[300],dark:Bo[700]}}function es(e=`light`){return e===`dark`?{main:Vo[500],light:Vo[300],dark:Vo[700]}:{main:Vo[700],light:Vo[400],dark:Vo[800]}}function ts(e=`light`){return e===`dark`?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[500],dark:Wo[900]}}function ns(e=`light`){return e===`dark`?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[800],light:Go[500],dark:Go[900]}}function rs(e=`light`){return e===`dark`?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:`#ed6c02`,light:Ho[500],dark:Ho[900]}}function is(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function as(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Qo(t),s=e.secondary||$o(t),c=e.error||es(t),l=e.info||ts(t),u=e.success||ns(t),d=e.warning||rs(t);function f(e){return i?is(e):za(e,Yo.text.primary)>=n?Yo.text.primary:qo.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(gt(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(gt(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Zo(i,e,`light`,a,r),Zo(i,e,`dark`,o,r)):(Xo(e,`light`,a,r),Xo(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=Ko():t===`dark`&&(m=Jo()),Vr({common:{...Ro},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:zo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function os(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function ss(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function cs(e){return Math.round(e*1e5)/1e5}var ls={textTransform:`uppercase`},us=`"Roboto", "Helvetica", "Arial", sans-serif`;function ds(e,t){let{fontFamily:n=us,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===us?{letterSpacing:`${cs(i/t)}em`}:{},...a,...l});return Vr({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,ls),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ls),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var fs=.2,ps=.14,ms=.12;function hs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ps})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ms})`].join(`,`)}var gs=[`none`,hs(0,2,1,-1,0,1,1,0,0,1,3,0),hs(0,3,1,-2,0,2,2,0,0,1,5,0),hs(0,3,3,-2,0,3,4,0,0,1,8,0),hs(0,2,4,-1,0,4,5,0,0,1,10,0),hs(0,3,5,-1,0,5,8,0,0,1,14,0),hs(0,3,5,-1,0,6,10,0,0,1,18,0),hs(0,4,5,-2,0,7,10,1,0,2,16,1),hs(0,5,5,-3,0,8,10,1,0,3,14,2),hs(0,5,6,-3,0,9,12,1,0,3,16,2),hs(0,6,6,-3,0,10,14,1,0,4,18,3),hs(0,6,7,-4,0,11,15,1,0,4,20,3),hs(0,7,8,-4,0,12,17,2,0,5,22,4),hs(0,7,8,-4,0,13,19,2,0,5,24,4),hs(0,7,9,-4,0,14,21,2,0,5,26,4),hs(0,8,9,-5,0,15,22,2,0,6,28,5),hs(0,8,10,-5,0,16,24,2,0,6,30,5),hs(0,8,11,-5,0,17,26,2,0,6,32,5),hs(0,9,11,-5,0,18,28,2,0,7,34,6),hs(0,9,12,-6,0,19,29,2,0,7,36,6),hs(0,10,13,-6,0,20,31,3,0,8,38,7),hs(0,10,13,-6,0,21,33,3,0,8,40,7),hs(0,10,14,-6,0,22,35,3,0,8,42,7),hs(0,11,14,-7,0,23,36,3,0,9,44,8),hs(0,11,15,-7,0,24,38,3,0,9,46,8)],_s={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},vs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ys(e){return`${Math.round(e)}ms`}function bs(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function xs(e){let t={..._s,...e.easing},n={...vs,...e.duration};return{getAutoHeightDuration:bs,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:ys(i)} ${a} ${typeof o==`string`?o:ys(o)}`).join(`,`)},...e,easing:t,duration:n}}var Ss={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Cs(e){return zr(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function ws(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Cs(a)||i.startsWith(`unstable_`)?delete e[i]:zr(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
36
|
+
} catch(e){}})();`}},`mui-color-scheme-init`)}function yo(){}var bo=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return yo;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function xo(){}function So(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Co(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function wo(e){return Co(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function To(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=ho,colorSchemeStorageKey:o=go,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=bo,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=R.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=R.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=R.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=R.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:So(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=R.useState(l||!d);R.useEffect(()=>{v(!0)},[]);let y=wo(h),b=R.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:So(r)}})},[f,t]),x=R.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Co(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=R.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=R.useRef(S);return C.current=S,R.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),R.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||xo,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||xo,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||xo;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}L();var Eo=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Do(e){let{themeId:t,theme:n={},modeStorageKey:r=ho,colorSchemeStorageKey:i=go,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=R.createContext(void 0),u=()=>R.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=R.useRef(!1),E=qa(),D=R.useContext(l),O=!!D&&!b,ee=R.useMemo(()=>u||(typeof n==`function`?n():n),[u]),k=ee[t],A=k||ee,{colorSchemes:j=d,components:te=f,cssVarPrefix:M}=A,ne=Object.keys(j).filter(e=>!!j[e]).join(`,`),N=R.useMemo(()=>ne.split(`,`),[ne]),P=typeof o==`string`?o:o.light,re=typeof o==`string`?o:o.dark,{mode:F,setMode:ie,systemMode:ae,lightColorScheme:oe,darkColorScheme:se,colorScheme:ce,setColorScheme:le}=To({supportedColorSchemes:N,defaultLightColorScheme:P,defaultDarkColorScheme:re,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[P]&&j[re]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),ue=F,de=ce;O&&(ue=D.mode,de=D.colorScheme);let fe=de||A.defaultColorScheme;A.vars&&!C&&(fe=A.defaultColorScheme);let pe=R.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:te,colorSchemes:j,cssVarPrefix:M,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),fe){let e=j[fe];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[A,fe,te,j,M]),me=A.colorSchemeSelector;Oa(()=>{if(de&&y&&me&&me!==`media`){let e=me,t=me;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...N.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,de));else{let e=t.replace(`%s`,de).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||N.forEach(e=>{y.removeAttribute(t.replace(de,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,de)}}},[de,me,y,N]),R.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Eo)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[de,h,v]),R.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let he=R.useMemo(()=>({allColorSchemes:N,colorScheme:de,darkColorScheme:se,lightColorScheme:oe,mode:ue,setColorScheme:le,setMode:ie,systemMode:ae}),[N,de,se,oe,ue,le,ie,ae,pe.colorSchemeSelector]),ge=!0;(x||A.cssVariables===!1||O&&E?.cssVarPrefix===M)&&(ge=!1);let _e=(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(fo,{themeId:k?t:void 0,theme:pe,children:c}),ge&&(0,z.jsx)(jr,{styles:pe.generateStyleSheets?.()||[]})]});return O?_e:(0,z.jsx)(l.Provider,{value:he,children:_e})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>vo({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function Oo(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var ko=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Ao=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},jo=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Mo(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Ao(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=jo(e,t);Object.assign(i,{[r]:c}),ko(a,e,`var(${r})`,s),ko(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function No(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Mo(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Mo(n,t);p=Br(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Mo(h,t);p=Br(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Br(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Po(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Fo(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Io(e,t){return R.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Lo={black:`#000`,white:`#fff`},Ro={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},zo={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Bo={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Vo={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Ho={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Uo={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Wo={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function Go(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:Lo.white,default:Lo.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var Ko=Go();function qo(){return{text:{primary:Lo.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:Lo.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var Jo=qo();function Yo(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Ha(e.main,i):t===`dark`&&(e.dark=Ba(e.main,a)))}function Xo(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Zo(e=`light`){return e===`dark`?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}function Qo(e=`light`){return e===`dark`?{main:zo[200],light:zo[50],dark:zo[400]}:{main:zo[500],light:zo[300],dark:zo[700]}}function $o(e=`light`){return e===`dark`?{main:Bo[500],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}function es(e=`light`){return e===`dark`?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[500],dark:Uo[900]}}function ts(e=`light`){return e===`dark`?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[800],light:Wo[500],dark:Wo[900]}}function ns(e=`light`){return e===`dark`?{main:Vo[400],light:Vo[300],dark:Vo[700]}:{main:`#ed6c02`,light:Vo[500],dark:Vo[900]}}function rs(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function is(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Zo(t),s=e.secondary||Qo(t),c=e.error||$o(t),l=e.info||es(t),u=e.success||ts(t),d=e.warning||ns(t);function f(e){return i?rs(e):La(e,Jo.text.primary)>=n?Jo.text.primary:Ko.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(gt(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(gt(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Xo(i,e,`light`,a,r),Xo(i,e,`dark`,o,r)):(Yo(e,`light`,a,r),Yo(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=Go():t===`dark`&&(m=qo()),Br({common:{...Lo},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Ro,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function as(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function os(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function ss(e){return Math.round(e*1e5)/1e5}var cs={textTransform:`uppercase`},ls=`"Roboto", "Helvetica", "Arial", sans-serif`;function us(e,t){let{fontFamily:n=ls,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===ls?{letterSpacing:`${ss(i/t)}em`}:{},...a,...l});return Br({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,cs),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,cs),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var ds=.2,fs=.14,ps=.12;function ms(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ds})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fs})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ps})`].join(`,`)}var hs=[`none`,ms(0,2,1,-1,0,1,1,0,0,1,3,0),ms(0,3,1,-2,0,2,2,0,0,1,5,0),ms(0,3,3,-2,0,3,4,0,0,1,8,0),ms(0,2,4,-1,0,4,5,0,0,1,10,0),ms(0,3,5,-1,0,5,8,0,0,1,14,0),ms(0,3,5,-1,0,6,10,0,0,1,18,0),ms(0,4,5,-2,0,7,10,1,0,2,16,1),ms(0,5,5,-3,0,8,10,1,0,3,14,2),ms(0,5,6,-3,0,9,12,1,0,3,16,2),ms(0,6,6,-3,0,10,14,1,0,4,18,3),ms(0,6,7,-4,0,11,15,1,0,4,20,3),ms(0,7,8,-4,0,12,17,2,0,5,22,4),ms(0,7,8,-4,0,13,19,2,0,5,24,4),ms(0,7,9,-4,0,14,21,2,0,5,26,4),ms(0,8,9,-5,0,15,22,2,0,6,28,5),ms(0,8,10,-5,0,16,24,2,0,6,30,5),ms(0,8,11,-5,0,17,26,2,0,6,32,5),ms(0,9,11,-5,0,18,28,2,0,7,34,6),ms(0,9,12,-6,0,19,29,2,0,7,36,6),ms(0,10,13,-6,0,20,31,3,0,8,38,7),ms(0,10,13,-6,0,21,33,3,0,8,40,7),ms(0,10,14,-6,0,22,35,3,0,8,42,7),ms(0,11,14,-7,0,23,36,3,0,9,44,8),ms(0,11,15,-7,0,24,38,3,0,9,46,8)],gs={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},_s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vs(e){return`${Math.round(e)}ms`}function ys(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function bs(e){let t={...gs,...e.easing},n={..._s,...e.duration};return{getAutoHeightDuration:ys,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:vs(i)} ${a} ${typeof o==`string`?o:vs(o)}`).join(`,`)},...e,easing:t,duration:n}}var xs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ss(e){return Rr(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Cs(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Ss(a)||i.startsWith(`unstable_`)?delete e[i]:Rr(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
37
37
|
|
|
38
38
|
const theme = ${JSON.stringify(t,null,2)};
|
|
39
39
|
|
|
40
40
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
41
41
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
42
42
|
|
|
43
|
-
export default theme;`}function
|
|
44
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Bs(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Vs=e=>{try{return e()}catch{}},Hs=(e=`mui`)=>ko(e);function Us(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Ns({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Os({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...js(a),...n?.opacity},overlays:n?.overlays||Ms(a)},s}function Ws(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Ps,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Hs(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(gt(21,f));let b;o&&(b=`oklch`);let x=Us(b,v,y,u,f);h&&!v.light&&Us(b,v,h,void 0,`light`),g&&!v.dark&&Us(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...os(x.typography),...x.font},spacing:Bs(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(U(t.common,`background`,`#fff`),U(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(U(t.common,`background`,`#000`),U(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===Va&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Ua&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Ga&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Ls(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){U(t.Alert,`errorColor`,r(Ua,o?p(`palette-error-light`):t.error.light,.6)),U(t.Alert,`infoColor`,r(Ua,o?p(`palette-info-light`):t.info.light,.6)),U(t.Alert,`successColor`,r(Ua,o?p(`palette-success-light`):t.success.light,.6)),U(t.Alert,`warningColor`,r(Ua,o?p(`palette-warning-light`):t.warning.light,.6)),U(t.Alert,`errorFilledBg`,n(`palette-error-main`)),U(t.Alert,`infoFilledBg`,n(`palette-info-main`)),U(t.Alert,`successFilledBg`,n(`palette-success-main`)),U(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),U(t.Alert,`errorFilledColor`,Vs(()=>t.getContrastText(t.error.main))),U(t.Alert,`infoFilledColor`,Vs(()=>t.getContrastText(t.info.main))),U(t.Alert,`successFilledColor`,Vs(()=>t.getContrastText(t.success.main))),U(t.Alert,`warningFilledColor`,Vs(()=>t.getContrastText(t.warning.main))),U(t.Alert,`errorStandardBg`,r(Ga,o?p(`palette-error-light`):t.error.light,.9)),U(t.Alert,`infoStandardBg`,r(Ga,o?p(`palette-info-light`):t.info.light,.9)),U(t.Alert,`successStandardBg`,r(Ga,o?p(`palette-success-light`):t.success.light,.9)),U(t.Alert,`warningStandardBg`,r(Ga,o?p(`palette-warning-light`):t.warning.light,.9)),U(t.Alert,`errorIconColor`,n(`palette-error-main`)),U(t.Alert,`infoIconColor`,n(`palette-info-main`)),U(t.Alert,`successIconColor`,n(`palette-success-main`)),U(t.Alert,`warningIconColor`,n(`palette-warning-main`)),U(t.AppBar,`defaultBg`,n(`palette-grey-100`)),U(t.Avatar,`defaultBg`,n(`palette-grey-400`)),U(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),U(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),U(t.Chip,`defaultBorder`,n(`palette-grey-400`)),U(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),U(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),U(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),U(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),U(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),U(t.LinearProgress,`primaryBg`,r(Ga,o?p(`palette-primary-main`):t.primary.main,.62)),U(t.LinearProgress,`secondaryBg`,r(Ga,o?p(`palette-secondary-main`):t.secondary.main,.62)),U(t.LinearProgress,`errorBg`,r(Ga,o?p(`palette-error-main`):t.error.main,.62)),U(t.LinearProgress,`infoBg`,r(Ga,o?p(`palette-info-main`):t.info.main,.62)),U(t.LinearProgress,`successBg`,r(Ga,o?p(`palette-success-main`):t.success.main,.62)),U(t.LinearProgress,`warningBg`,r(Ga,o?p(`palette-warning-light`):t.warning.main,.62)),U(t.Skeleton,`bg`,b?r(Va,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),U(t.Slider,`primaryTrack`,r(Ga,o?p(`palette-primary-main`):t.primary.main,.62)),U(t.Slider,`secondaryTrack`,r(Ga,o?p(`palette-secondary-main`):t.secondary.main,.62)),U(t.Slider,`errorTrack`,r(Ga,o?p(`palette-error-main`):t.error.main,.62)),U(t.Slider,`infoTrack`,r(Ga,o?p(`palette-info-main`):t.info.main,.62)),U(t.Slider,`successTrack`,r(Ga,o?p(`palette-success-main`):t.success.main,.62)),U(t.Slider,`warningTrack`,r(Ga,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Ua,o?p(`palette-background-default`):t.background.default,.6825):qa(t.background.default,.8);U(t.SnackbarContent,`bg`,e),U(t.SnackbarContent,`color`,Vs(()=>b?Yo.text.primary:t.getContrastText(e))),U(t.SpeedDialAction,`fabHoverBg`,qa(t.background.paper,.15)),U(t.StepConnector,`border`,n(`palette-grey-400`)),U(t.StepContent,`border`,n(`palette-grey-400`)),U(t.Switch,`defaultColor`,n(`palette-common-white`)),U(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),U(t.Switch,`primaryDisabledColor`,r(Ga,o?p(`palette-primary-main`):t.primary.main,.62)),U(t.Switch,`secondaryDisabledColor`,r(Ga,o?p(`palette-secondary-main`):t.secondary.main,.62)),U(t.Switch,`errorDisabledColor`,r(Ga,o?p(`palette-error-main`):t.error.main,.62)),U(t.Switch,`infoDisabledColor`,r(Ga,o?p(`palette-info-main`):t.info.main,.62)),U(t.Switch,`successDisabledColor`,r(Ga,o?p(`palette-success-main`):t.success.main,.62)),U(t.Switch,`warningDisabledColor`,r(Ga,o?p(`palette-warning-main`):t.warning.main,.62)),U(t.TableCell,`border`,r(Ga,Va(o?p(`palette-divider`):t.divider,1),.88)),U(t.Tooltip,`bg`,r(Va,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){U(t.Alert,`errorColor`,r(Ga,o?p(`palette-error-light`):t.error.light,.6)),U(t.Alert,`infoColor`,r(Ga,o?p(`palette-info-light`):t.info.light,.6)),U(t.Alert,`successColor`,r(Ga,o?p(`palette-success-light`):t.success.light,.6)),U(t.Alert,`warningColor`,r(Ga,o?p(`palette-warning-light`):t.warning.light,.6)),U(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),U(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),U(t.Alert,`successFilledBg`,n(`palette-success-dark`)),U(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),U(t.Alert,`errorFilledColor`,Vs(()=>t.getContrastText(t.error.dark))),U(t.Alert,`infoFilledColor`,Vs(()=>t.getContrastText(t.info.dark))),U(t.Alert,`successFilledColor`,Vs(()=>t.getContrastText(t.success.dark))),U(t.Alert,`warningFilledColor`,Vs(()=>t.getContrastText(t.warning.dark))),U(t.Alert,`errorStandardBg`,r(Ua,o?p(`palette-error-light`):t.error.light,.9)),U(t.Alert,`infoStandardBg`,r(Ua,o?p(`palette-info-light`):t.info.light,.9)),U(t.Alert,`successStandardBg`,r(Ua,o?p(`palette-success-light`):t.success.light,.9)),U(t.Alert,`warningStandardBg`,r(Ua,o?p(`palette-warning-light`):t.warning.light,.9)),U(t.Alert,`errorIconColor`,n(`palette-error-main`)),U(t.Alert,`infoIconColor`,n(`palette-info-main`)),U(t.Alert,`successIconColor`,n(`palette-success-main`)),U(t.Alert,`warningIconColor`,n(`palette-warning-main`)),U(t.AppBar,`defaultBg`,n(`palette-grey-900`)),U(t.AppBar,`darkBg`,n(`palette-background-paper`)),U(t.AppBar,`darkColor`,n(`palette-text-primary`)),U(t.Avatar,`defaultBg`,n(`palette-grey-600`)),U(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),U(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),U(t.Chip,`defaultBorder`,n(`palette-grey-700`)),U(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),U(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),U(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),U(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),U(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),U(t.LinearProgress,`primaryBg`,r(Ua,o?p(`palette-primary-main`):t.primary.main,.5)),U(t.LinearProgress,`secondaryBg`,r(Ua,o?p(`palette-secondary-main`):t.secondary.main,.5)),U(t.LinearProgress,`errorBg`,r(Ua,o?p(`palette-error-main`):t.error.main,.5)),U(t.LinearProgress,`infoBg`,r(Ua,o?p(`palette-info-main`):t.info.main,.5)),U(t.LinearProgress,`successBg`,r(Ua,o?p(`palette-success-main`):t.success.main,.5)),U(t.LinearProgress,`warningBg`,r(Ua,o?p(`palette-warning-main`):t.warning.main,.5)),U(t.Skeleton,`bg`,b?r(Va,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),U(t.Slider,`primaryTrack`,r(Ua,o?p(`palette-primary-main`):t.primary.main,.5)),U(t.Slider,`secondaryTrack`,r(Ua,o?p(`palette-secondary-main`):t.secondary.main,.5)),U(t.Slider,`errorTrack`,r(Ua,o?p(`palette-error-main`):t.error.main,.5)),U(t.Slider,`infoTrack`,r(Ua,o?p(`palette-info-main`):t.info.main,.5)),U(t.Slider,`successTrack`,r(Ua,o?p(`palette-success-main`):t.success.main,.5)),U(t.Slider,`warningTrack`,r(Ua,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Ga,o?p(`palette-background-default`):t.background.default,.985):qa(t.background.default,.98);U(t.SnackbarContent,`bg`,e),U(t.SnackbarContent,`color`,Vs(()=>b?qo.text.primary:t.getContrastText(e))),U(t.SpeedDialAction,`fabHoverBg`,qa(t.background.paper,.15)),U(t.StepConnector,`border`,n(`palette-grey-600`)),U(t.StepContent,`border`,n(`palette-grey-600`)),U(t.Switch,`defaultColor`,n(`palette-grey-300`)),U(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),U(t.Switch,`primaryDisabledColor`,r(Ua,o?p(`palette-primary-main`):t.primary.main,.55)),U(t.Switch,`secondaryDisabledColor`,r(Ua,o?p(`palette-secondary-main`):t.secondary.main,.55)),U(t.Switch,`errorDisabledColor`,r(Ua,o?p(`palette-error-main`):t.error.main,.55)),U(t.Switch,`infoDisabledColor`,r(Ua,o?p(`palette-info-main`):t.info.main,.55)),U(t.Switch,`successDisabledColor`,r(Ua,o?p(`palette-success-main`):t.success.main,.55)),U(t.Switch,`warningDisabledColor`,r(Ua,o?p(`palette-warning-light`):t.warning.main,.55)),U(t.TableCell,`border`,r(Ua,Va(o?p(`palette-divider`):t.divider,1),.68)),U(t.Tooltip,`bg`,r(Va,o?p(`palette-grey-700`):t.grey[700],.92))}o||(zs(t.background,`default`),zs(t.background,`paper`),zs(t.common,`background`),zs(t.common,`onBackground`),zs(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&U(t[e],`mainChannel`,Ia(Rs(n.main))),n.light&&U(t[e],`lightChannel`,Ia(Rs(n.light))),n.dark&&U(t[e],`darkChannel`,Ia(Rs(n.dark))),n.contrastText&&U(t[e],`contrastTextChannel`,Ia(Rs(n.contrastText))),e===`text`&&(zs(t[e],`primary`),zs(t[e],`secondary`)),e===`action`&&(n.active&&zs(t[e],`active`),n.selected&&zs(t[e],`selected`)))})}),S=t.reduce((e,t)=>Vr(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Is(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=Po(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return Ci(u.spacing,hi(this))},S.getColorSchemeSelector=Fo(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Zi,...u?.unstable_sxConfig},S.unstable_sx=function(e){return ta({sx:e,theme:this})},S.toRuntimeSource=ws,S}function Gs(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:as({...n===!0?{}:n.palette,mode:t})})}function Ks(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Os(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Os({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Gs(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Gs(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Ws({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var qs=Ks();function Js(){let e=sa(qs);return e.$$material||e}function Ys(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Xs=e=>Ys(e)&&e!==`classes`,W=Ta({themeId:_t,defaultTheme:qs,rootShouldForwardProp:Xs});function Zs({theme:e,...t}){let n=`$$material`in e?e[_t]:void 0;return(0,B.jsx)(mo,{...t,themeId:n?_t:void 0,theme:n||e})}R();var Qs={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:$s,useColorScheme:ec,getInitColorSchemeScript:tc}=Oo({themeId:_t,theme:()=>Ks({cssVariables:!0}),colorSchemeStorageKey:Qs.colorSchemeStorageKey,modeStorageKey:Qs.modeStorageKey,defaultColorScheme:{light:Qs.defaultLightColorScheme,dark:Qs.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:ds(e.palette,e.typography)};return t.unstable_sx=function(e){return ta({sx:e,theme:this})},t}}),nc=$s;function rc({theme:e,...t}){let n=z.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[_t]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,B.jsx)(Zs,{theme:n,...t}):(0,B.jsx)(nc,{theme:e,...t})}R();var ic=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,B.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,B.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});ic.propTypes={fill:L.string.isRequired};var ac=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,B.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,B.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,B.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});ac.propTypes={fill:L.string.isRequired};var oc=ft(ic,ac);oc.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},oc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30},R();var sc=({fill:e})=>(0,B.jsxs)(`g`,{children:[(0,B.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,B.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});sc.propTypes={fill:L.string.isRequired};var cc=({fill:e})=>(0,B.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});cc.propTypes={fill:L.string.isRequired};var lc=({fill:e})=>(0,B.jsxs)(`g`,{children:[(0,B.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,B.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,B.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
|
|
45
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});lc.propTypes={fill:L.string.isRequired};var uc=class extends z.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,B.jsxs)(ot,{children:[(0,B.jsx)(cc,{fill:n}),(0,B.jsx)(sc,{fill:t})]}),emoji:(0,B.jsxs)(ot,{children:[(0,B.jsx)(cc,{fill:n}),(0,B.jsx)(lc,{fill:t})]}),feedback:{check:(0,B.jsxs)(ot,{children:[(0,B.jsx)(cc,{fill:n}),(0,B.jsx)(lc,{fill:t})]}),emoji:(0,B.jsxs)(ot,{children:[(0,B.jsx)(cc,{fill:n}),(0,B.jsx)(lc,{fill:t})]}),square:{check:(0,B.jsxs)(ot,{children:[(0,B.jsx)(cc,{fill:n}),(0,B.jsx)(sc,{fill:t})]}),emoji:(0,B.jsxs)(ot,{children:[(0,B.jsx)(cc,{fill:n}),(0,B.jsx)(lc,{fill:t})]}),open:{check:(0,B.jsx)(ot,{children:(0,B.jsx)(sc,{fill:n})}),emoji:(0,B.jsx)(ot,{children:(0,B.jsx)(lc,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};uc.propTypes={iconSet:L.oneOf([`emoji`,`check`,void 0]),shape:L.oneOf([`square`,void 0]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string},uc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`},R();var dc=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,B.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,B.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});dc.propTypes={fill:L.string.isRequired};var fc=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,B.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,B.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,B.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});fc.propTypes={fill:L.string.isRequired};var pc=ft(dc,fc);pc.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},pc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function mc(e){return typeof e==`string`}R();function hc(e){return(0,B.jsx)(la,{...e,defaultTheme:qs,themeId:_t})}function gc(e){return function(t){return(0,B.jsx)(hc,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}R();function _c(e){return ao(e)}function vc(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var G=vc;function yc(e){return e&&e.ownerDocument||document}var bc=yc;function xc(e){return yc(e).defaultView||window}var Sc=xc,Cc={};function wc(e,t){let n=z.useRef(Cc);return n.current===Cc&&(n.current=e(t)),n}var Tc=[];function Ec(e){z.useEffect(e,Tc)}var Dc=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Oc(){let e=wc(Dc.create).current;return Ec(e.disposeEffect),e}function kc(e){return e?.ref||null}function Ac(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jc(e,t)}function Mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jc(e,t)}function Nc(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Pc(e,t){e.classList?e.classList.add(t):Nc(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Fc(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Ic(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Fc(e.className,t):e.setAttribute(`class`,Fc(e.className&&e.className.baseVal||``,t))}var Lc={disabled:!1},Rc=z.createContext(null),zc=function(e){return e.scrollTop};R();var Bc=u(_()),Vc=`unmounted`,Hc=`exited`,Uc=`entering`,Wc=`entered`,Gc=`exiting`,Kc=function(e){Mc(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Hc,r.appearStatus=Uc):o=Wc:o=t.unmountOnExit||t.mountOnEnter?Vc:Hc,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Hc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Uc):(n===`entering`||n===`entered`)&&(t=Gc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Bc.findDOMNode(this);n&&zc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Vc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Bc.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Lc.disabled){this.safeSetState({status:Wc},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Uc},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Wc},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Bc.findDOMNode(this);if(!t||Lc.disabled){this.safeSetState({status:Hc},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Gc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Hc},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Bc.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ac(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return z.createElement(Rc.Provider,{value:null},typeof n==`function`?n(e,r):z.cloneElement(z.Children.only(n),r))},t}(z.Component);Kc.contextType=Rc,Kc.propTypes={};function qc(){}Kc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qc,onEntering:qc,onEntered:qc,onExit:qc,onExiting:qc,onExited:qc},Kc.UNMOUNTED=Vc,Kc.EXITED=Hc,Kc.ENTERING=Uc,Kc.ENTERED=Wc,Kc.EXITING=Gc,R();var Jc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Pc(e,t)})},Yc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Ic(e,t)})},Xc=function(e){Mc(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&zc(e),r&&(this.appliedClasses[t][n]=r,Jc(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Yc(e,r),i&&Yc(e,i),a&&Yc(e,a)},n.render=function(){var e=this.props;e.classNames;var t=Ac(e,[`classNames`]);return z.createElement(Kc,vt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(z.Component);Xc.defaultProps={classNames:``},Xc.propTypes={};function Zc(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Qc(e,t){var n=function(e){return t&&(0,z.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&z.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function $c(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function el(e,t,n){return n[t]==null?e.props[t]:n[t]}function tl(e,t){return Qc(e.children,function(n){return(0,z.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:el(n,`appear`,e),enter:el(n,`enter`,e),exit:el(n,`exit`,e)})})}function nl(e,t,n){var r=Qc(e.children),i=$c(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,z.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,z.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,z.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:el(o,`exit`,e),enter:el(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,z.cloneElement)(o,{in:!1}):c&&s&&(0,z.isValidElement)(l)&&(i[a]=(0,z.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:el(o,`exit`,e),enter:el(o,`enter`,e)}))}}),i}R();var rl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},il={component:`div`,childFactory:function(e){return e}},al=function(e){Mc(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Zc(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?tl(e,r):nl(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Qc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=vt({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ac(e,[`component`,`childFactory`]),i=this.state.contextValue,a=rl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?z.createElement(Rc.Provider,{value:i},a):z.createElement(Rc.Provider,{value:i},z.createElement(t,r,a))},t}(z.Component);al.propTypes={},al.defaultProps=il;var ol=e=>e.scrollTop;function sl(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function cl(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function ll(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function ul(...e){let t=z.useRef(void 0),n=z.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return z.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var dl=ul;R();function fl(e){return`scale(${e}, ${e**2})`}var pl={entering:{opacity:1,transform:fl(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:fl(.75)},exited:{opacity:0,transform:fl(.75)}},ml={opacity:0,transform:fl(.75),visibility:`hidden`},hl=z.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Oc(),_=z.useRef(),v=Js(),y=z.useRef(null),b=dl(y,kc(i),t),x=sl(y,l),S=sl(y,(e,t)=>{ol(e);let{duration:n,delay:r,easing:i}=ll({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=sl(y,c),w=sl(y,f),T=sl(y,e=>{let{duration:t,delay:n,easing:r}=ll({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=fl(.75),u&&u(e)}),E=sl(y,e=>{e.style.transition=``,d&&d(e)});return(0,B.jsx)(Kc,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=cl(e,o,pl,ml,p,i.props.style);return z.cloneElement(i,{style:r,ref:b,...n})}})});hl&&(hl.muiSupportAuto=!0);function gl(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _l(e){let t=yc(e);return t.body===e?xc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vl(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function yl(e){return parseFloat(xc(e).getComputedStyle(e).paddingRight)||0}function bl(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function xl(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!bl(e);t&&n&&vl(e,i)})}function Sl(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Cl(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(_l(r)){let e=gl(xc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${yl(r)+e}px`;let t=yc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${yl(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=yc(r).body;else{let t=r.parentElement,n=xc(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function wl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Tl=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&vl(e.modalRef,!1);let r=wl(t);xl(t,e.mount,e.modalRef,r,!0);let i=Sl(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Sl(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Cl(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Sl(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&vl(e.modalRef,t),xl(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&vl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function El(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Dl=El;function Ol(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var kl=Ol,Al=`data-mui-focusable`;function jl(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Al}]`):null}R();var Ml=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Nl(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function Pl(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Fl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Pl(e))}function Il(e){let t=[],n=[];return Array.from(e.querySelectorAll(Ml)).forEach((e,r)=>{let i=Nl(e);i===-1||!Fl(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Ll(){return!0}function Rl(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Il,isEnabled:o=Ll,open:s}=e,c=z.useRef(!1),l=z.useRef(null),u=z.useRef(null),d=z.useRef(null),f=z.useRef(null),p=z.useRef(!1),m=z.useRef(null),h=ul(kc(t),m),g=z.useRef(null);z.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),z.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=kl(yc(m.current)),t=jl(m.current)??m.current;return Dl(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),z.useEffect(()=>{if(!s||!m.current)return;let e=yc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&kl(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=kl(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Dl(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=kl(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,B.jsxs)(z.Fragment,{children:[(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),z.cloneElement(t,{ref:h,onFocus:_}),(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function zl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}R();function Bl(e){return typeof e==`function`?e():e}var Vl=z.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=z.useState(null),s=ul(z.isValidElement(n)?kc(n):null,t);if(Aa(()=>{i||o(Bl(r)||document.body)},[r,i]),Aa(()=>{if(a&&!i)return zl(t,a),()=>{zl(t,null)}},[t,a,i]),i){if(z.isValidElement(n)){let e={ref:s};return z.cloneElement(n,e)}return n}return a&&Bc.createPortal(n,a)}),Hl=go;function Ul(e,t,n){return e===void 0||mc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Wl(e,t,n){return typeof e==`function`?e(t,n):e}function Gl(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Kl(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function ql(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=pa(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Gl({...i,...r}),s=Kl(r),c=Kl(i),l=t(o),u=pa(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Jl(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Wl(d[e],i),{props:{component:h,...g},internalRef:_}=ql({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ul(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Ul(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}R();var Yl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Xl={opacity:0,visibility:`hidden`},Zl=z.forwardRef(function(e,t){let n=Js(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=z.useRef(null),y=dl(v,kc(o),t),b=sl(v,d),x=sl(v,(e,t)=>{ol(e);let r=ll({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=sl(v,u),C=sl(v,m),w=sl(v,e=>{let t=ll({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=sl(v,e=>{e.style.transition=``,p&&p(e)});return(0,B.jsx)(Kc,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=cl(e,c,Yl,Xl,h,o.props.style);return z.cloneElement(o,{style:r,ref:y,...n})}})});function Ql(e){return ha(`MuiBackdrop`,e)}ga(`MuiBackdrop`,[`root`,`invisible`]),R();var $l=e=>{let{classes:t,invisible:n}=e;return Io({root:[`root`,n&&`invisible`]},Ql,t)},eu=W(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),tu=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=$l(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Jl(`root`,{elementType:eu,externalForwardedProps:_,className:pa(g.root,i),ownerState:h}),[b,x]=Jl(`transition`,{elementType:Zl,externalForwardedProps:_,ownerState:h});return(0,B.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,B.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function nu(e){let t=z.useRef(e);return Aa(()=>{t.current=e}),z.useRef((...e)=>(0,t.current)(...e)).current}function ru(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function iu(e){return typeof e==`function`?e():e}function au(e){return e?e.props.hasOwnProperty(`in`):!1}var ou=()=>{},su=new Tl;function cu(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=z.useRef({}),f=z.useRef(null),p=z.useRef(null),m=ul(p,u),[h,g]=z.useState(!l),_=au(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>yc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{su.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=nu(()=>{let e=iu(t)||y().body;su.add(b(),e),p.current&&x()}),C=()=>su.isTopModal(b()),w=nu(e=>{f.current=e,e&&(l&&C()?x():p.current&&vl(p.current,v))}),T=z.useCallback(()=>{su.remove(b(),v)},[v]);z.useEffect(()=>()=>{T()},[T]),z.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Gl(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:ru(()=>{g(!1),a&&a()},s?.props.onEnter??ou),onExited:ru(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??ou)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function lu(e){return ha(`MuiModal`,e)}ga(`MuiModal`,[`root`,`hidden`,`backdrop`]),R();var uu=e=>{let{open:t,exited:n,classes:r}=e;return Io({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},lu,r)},du=W(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Hl(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),fu=W(tu,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),pu=z.forwardRef(function(e,t){let n=_c({name:`MuiModal`,props:e}),{BackdropComponent:r=fu,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:A,getBackdropProps:j,getTransitionProps:M,portalRef:ee,isTopModal:N,exited:te,hasTransition:P}=cu({...k,rootRef:t}),F={...k,exited:te},ne=uu(F),I={};if(c.props.tabIndex===void 0&&(I.tabIndex=`-1`),P){let{onEnter:e,onExited:t}=M();I.onEnter=e,I.onExited=t}let re={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ie,ae]=Jl(`root`,{ref:t,elementType:du,externalForwardedProps:{...re,...O,component:u},getSlotProps:A,ownerState:F,className:pa(o,ne?.root,!F.open&&F.exited&&ne?.hidden)}),[oe,se]=Jl(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:pa(i?.className,ne?.backdrop),ownerState:F});return!b&&!w&&(!P||te)?null:(0,B.jsx)(Vl,{ref:ee,container:l,disablePortal:g,children:(0,B.jsxs)(ie,{...ae,children:[!y&&r?(0,B.jsx)(oe,{...se}):null,(0,B.jsx)(Rl,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:N,open:w,children:z.cloneElement(c,I)})]})})});function mu(e){return ha(`MuiPaper`,e)}ga(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`)),R();var hu=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Io({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},mu,i)},gu=W(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Hl(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),_u=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiPaper`}),r=Js(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=hu(u);return(0,B.jsx)(gu,{as:a,ownerState:u,className:pa(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${Ba(`#fff`,ks(o))}, ${Ba(`#fff`,ks(o))})`}},...l.style}})});function vu(e){return ha(`MuiPopover`,e)}ga(`MuiPopover`,[`root`,`paper`]);var yu=ni;function bu(e){return ha(`MuiSvgIcon`,e)}ga(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]),R();var xu=e=>{let{color:t,fontSize:n,classes:r}=e;return Io({root:[`root`,t!==`inherit`&&`color${yu(t)}`,`fontSize${yu(n)}`]},bu,r)},Su=W(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${yu(n.color)}`],t[`fontSize${yu(n.fontSize)}`]]}})(Hl(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Cu=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=z.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=xu(m);return(0,B.jsxs)(Su,{as:o,className:pa(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,B.jsx)(`title`,{children:u}):null]})});Cu.muiName=`SvgIcon`;function wu(e,t){function n(t,n){return(0,B.jsx)(Cu,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Cu.muiName,z.memo(z.forwardRef(n))}var Tu=Lo,Eu=Aa,Du=lo;function Ou(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=z.useRef(t!==void 0),[o,s]=z.useState(n);return[a?t:o,z.useCallback(e=>{a||s(e)},[])]}var ku=Ou,Au=nu;function ju(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Mu(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{ju(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=pa(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=pa(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}R();function Nu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Pu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Fu(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Iu(e){return typeof e==`function`?e():e}var Lu=e=>{let{classes:t}=e;return Io({root:[`root`],paper:[`paper`]},vu,t)},Ru=W(pu,{name:`MuiPopover`,slot:`Root`})({}),zu=W(_u,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Bu=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=z.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Lu(w),E=z.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Iu(i),t=(e&&e.nodeType===1?e:bc(C.current).body).getBoundingClientRect();return{top:t.top+Nu(t,a.vertical),left:t.left+Pu(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=z.useCallback(e=>({vertical:Nu(e,_.vertical),horizontal:Pu(e,_.horizontal)}),[_.horizontal,_.vertical]),O=z.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Fu(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Sc(Iu(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:Fu(n)}},[i,s,E,D,f]),[k,A]=z.useState(p),j=z.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[O]);z.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},ee=()=>{A(!1)};z.useEffect(()=>{p&&j()}),z.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),z.useEffect(()=>{if(!p)return;let e=G(()=>{j()}),t=Sc(Iu(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let N=y,te={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[P,F]=Jl(`transition`,{elementType:hl,externalForwardedProps:te,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),ee()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!P.muiSupportAuto&&(N=void 0);let ne=u||(i?bc(Iu(i)).body:void 0),[I,{slots:re,slotProps:ie,...ae}]=Jl(`root`,{ref:t,elementType:Ru,externalForwardedProps:{...te,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Mu(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ne,open:p},ownerState:w,className:pa(T.root,l)}),[oe,se]=Jl(`paper`,{ref:C,className:T.paper,elementType:zu,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,B.jsx)(I,{...ae,...!mc(I)&&{slots:re,slotProps:ie,disableScrollLock:x},children:(0,B.jsx)(P,{...F,timeout:N,children:(0,B.jsx)(oe,{...se,children:c})})})}),Vu={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},Hu={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},Uu=c({background:()=>pd,backgroundDark:()=>md,black:()=>Dd,blueGrey100:()=>Fd,blueGrey300:()=>Id,blueGrey600:()=>Ld,blueGrey900:()=>Rd,border:()=>bd,borderDark:()=>Sd,borderGray:()=>Cd,borderLight:()=>xd,buttonBorder:()=>Gd,buttonFocusOutline:()=>Pd,buttonHoverBg:()=>Kd,correct:()=>Yu,correctSecondary:()=>Xu,correctTertiary:()=>Zu,correctWithIcon:()=>Qu,defaults:()=>K,disabled:()=>Ku,disabledSecondary:()=>qu,disabledText:()=>Ju,dropdownBackground:()=>gd,fadedPrimary:()=>cd,focusChecked:()=>Ad,focusCheckedBorder:()=>jd,focusUnchecked:()=>Md,focusUncheckedBorder:()=>Nd,incorrect:()=>$u,incorrectSecondary:()=>td,incorrectWithIcon:()=>ed,keyBoardFocusIndicator:()=>Wd,keypadButton:()=>zd,keypadButtonHover:()=>Hd,keypadButtonOperator:()=>Bd,keypadButtonOperatorHover:()=>Ud,keypadEmptyPlaceholder:()=>Vd,missing:()=>nd,missingWithIcon:()=>rd,primary:()=>id,primaryDark:()=>od,primaryLight:()=>ad,primaryText:()=>sd,secondary:()=>ld,secondaryBackground:()=>hd,secondaryDark:()=>dd,secondaryLight:()=>ud,secondaryText:()=>fd,surface:()=>_d,tableGrid:()=>wd,tableGridLight:()=>Td,tableStripe:()=>Ed,tertiary:()=>vd,tertiaryLight:()=>yd,text:()=>Gu,transparent:()=>kd,v:()=>Wu,visualElementsColors:()=>qd,white:()=>Od}),K={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Go[500],CORRECT_SECONDARY:Go[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Ho[500],INCORRECT_SECONDARY:Vo[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Vo[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Hu[500],PRIMARY_LIGHT:Hu[200],PRIMARY_DARK:Hu[800],SECONDARY:Vu.A400,SECONDARY_LIGHT:Vu[200],SECONDARY_DARK:Vu[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(K);var Wu=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},q=Wu(`pie`),Gu=()=>q(`text`,K.TEXT),Ku=()=>q(`disabled`,K.DISABLED),qu=()=>q(`disabled-secondary`,K.DISABLED_SECONDARY),Ju=()=>q(`disabled-text`,`text`,K.DISABLED_TEXT),Yu=()=>q(`correct`,K.CORRECT),Xu=()=>q(`correct-secondary`,K.CORRECT_SECONDARY),Zu=()=>q(`correct-tertiary`,K.CORRECT_TERTIARY),Qu=()=>q(`correct-icon`,K.CORRECT_WITH_ICON),$u=()=>q(`incorrect`,K.INCORRECT),ed=()=>q(`incorrect-icon`,K.INCORRECT_WITH_ICON),td=()=>q(`incorrect-secondary`,K.INCORRECT_SECONDARY),nd=()=>q(`missing`,K.MISSING),rd=()=>q(`missing-icon`,K.MISSING_WITH_ICON),id=()=>q(`primary`,K.PRIMARY),ad=()=>q(`primary-light`,K.PRIMARY_LIGHT),od=()=>q(`primary-dark`,K.PRIMARY_DARK),sd=()=>q(`primary-text`,`text`,K.TEXT),cd=()=>q(`faded-primary`,K.FADED_PRIMARY),ld=()=>q(`secondary`,K.SECONDARY),ud=()=>q(`secondary-light`,K.SECONDARY_LIGHT),dd=()=>q(`secondary-dark`,K.SECONDARY_DARK),fd=()=>q(`secondary-text`,`text`,K.TEXT),pd=()=>q(`background`,K.BACKGROUND),md=()=>q(`background-dark`,K.BACKGROUND_DARK),hd=()=>q(`secondary-background`,K.SECONDARY_BACKGROUND),gd=()=>q(`dropdown-background`,K.DROPDOWN_BACKGROUND),_d=()=>q(`surface`,K.SURFACE),vd=()=>q(`tertiary`,K.TERTIARY),yd=()=>q(`tertiary-light`,K.TERTIARY_LIGHT),bd=()=>q(`border`,K.BORDER),xd=()=>q(`border-light`,K.BORDER_LIGHT),Sd=()=>q(`border-dark`,K.BORDER_DARK),Cd=()=>q(`border-gray`,K.BORDER_GRAY),wd=()=>q(`table-grid`,`text`,K.TABLE_GRID),Td=()=>q(`table-grid-light`,`border-light`,K.TABLE_GRID_LIGHT),Ed=()=>q(`table-stripe`,`background-dark`,K.TABLE_STRIPE),Dd=()=>q(`black`,K.BLACK),Od=()=>q(`white`,K.WHITE),kd=()=>K.TRANSPARENT,Ad=()=>q(`focus-checked`,K.FOCUS_CHECKED),jd=()=>q(`focus-checked-border`,K.FOCUS_CHECKED_BORDER),Md=()=>q(`focus-unchecked`,K.FOCUS_UNCHECKED),Nd=()=>q(`focus-unchecked-border`,K.FOCUS_UNCHECKED_BORDER),Pd=()=>q(`button-focus-outline`,K.BUTTON_FOCUS_OUTLINE),Fd=()=>q(`blue-grey-100`,K.BLUE_GREY100),Id=()=>q(`blue-grey-300`,K.BLUE_GREY300),Ld=()=>q(`blue-grey-600`,K.BLUE_GREY600),Rd=()=>q(`blue-grey-900`,K.BLUE_GREY900),zd=()=>q(`keypad-button`,K.KEYPAD_BUTTON),Bd=()=>q(`keypad-button-operator`,K.KEYPAD_BUTTON_OPERATOR),Vd=()=>q(`keypad-empty-placeholder`,K.KEYPAD_EMPTY_PLACEHOLDER),Hd=()=>q(`keypad-button-hover`,K.KEYPAD_BUTTON_HOVER),Ud=()=>q(`keypad-button-operator-hover`,K.KEYPAD_BUTTON_OPERATOR_HOVER),Wd=()=>q(`keyboard-focus-indicator`,K.KEY_BOARD_FOCUS_INDICATOR),Gd=()=>q(`button-border`,K.BUTTON_BORDER),Kd=()=>q(`button-hover-bg`,K.BUTTON_HOVER_BG),qd={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`};R();var Jd=W(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Yd=W(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Ku()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Yu()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${$u()})`}}),Xd=W(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Zd=class extends z.Component{static propTypes={correctness:L.string,feedback:L.string};nodeRef=z.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,B.jsx)(Xc,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,B.jsx)(Xd,{ref:this.nodeRef,children:(0,B.jsx)(Jd,{children:(0,B.jsx)(Yd,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,B.jsx)(`div`,{children:(0,B.jsx)(al,{children:this.renderFeedback()})})}},Qd=()=>{};function $d(){let e=function(){};return e.enabled=!1,e.log=Qd,e.extend=()=>e,e.destroy=Qd,e}$d.log=Qd,$d.enable=Qd,$d.disable=()=>``,$d.enabled=()=>!1;var ef=c({Correct:()=>sf,Incorrect:()=>cf,NothingSubmitted:()=>uf,PartiallyCorrect:()=>lf});R();var tf=$d(`pie-libs:render-ui:response-indicators`),nf=W(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),rf=W(Bu)({cursor:`pointer`}),af=W(`div`)({padding:`0`,borderRadius:`4px`}),of=(e,t)=>{class n extends z.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{tf(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,B.jsxs)(nf,{hasFeedback:!!n,children:[(0,B.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,B.jsx)(e,{})}),n&&(0,B.jsx)(rf,{PaperComponent:af,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,B.jsx)(Zd,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:L.string},n},sf=of(ht,`correct`),cf=of(oc,`incorrect`),lf=of(pc,`partially-correct`),uf=of(uc,`nothing-submitted`);function df(e){return ha(`MuiCollapse`,e)}ga(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]),R();var ff=e=>{let{orientation:t,classes:n}=e;return Io({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},df,n)},pf=W(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Hl(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),mf=W(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),hf=W(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),gf=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=vs.standard,TransitionComponent:x=Kc,...S}=n,C={...n,orientation:g,collapsedSize:o},w=ff(C),T=Js(),E=Oc(),D=z.useRef(null),O=z.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=z.useRef(null),ee=dl(t,M),N=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,te=sl(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),P=sl(M,(e,t)=>{let n=N();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=ll({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),F=sl(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),ne=sl(M,e=>{e.style[j]=`${N()}px`,p&&p(e)}),I=sl(M,m),re=sl(M,e=>{let t=N(),{duration:n,easing:r}=ll({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ae={slots:_,slotProps:v,component:s},[oe,se]=Jl(`root`,{ref:ee,className:pa(w.root,a),elementType:pf,externalForwardedProps:ae,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[ce,le]=Jl(`wrapper`,{ref:D,className:w.wrapper,elementType:mf,externalForwardedProps:ae,ownerState:C}),[ue,de]=Jl(`wrapperInner`,{className:w.wrapperInner,elementType:hf,externalForwardedProps:ae,ownerState:C});return(0,B.jsx)(x,{in:l,onEnter:te,onEntered:F,onEntering:P,onExit:ne,onExited:I,onExiting:re,addEndListener:ie,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,B.jsx)(oe,{...se,className:pa(se.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,B.jsx)(ce,{...le,ownerState:r,children:(0,B.jsx)(ue,{...de,ownerState:r,children:i})})})}})});gf&&(gf.muiSupportAuto=!0),R();var _f=W(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),vf=W(gf)(({theme:e})=>({paddingTop:e.spacing(2)})),yf=class extends z.Component{static propTypes={className:L.string,children:L.object,labels:L.shape({visible:L.string,hidden:L.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){ke(this.root)}componentDidUpdate(){ke(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,B.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,B.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,B.jsx)(_f,{children:r})}),(0,B.jsx)(vf,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function bf(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var xf=class e{static create(){return new e}static use(){let t=wc(e.create).current,[n,r]=z.useState(!1);return t.shouldMount=n,t.setShouldMount=r,z.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Cf(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function Sf(){return xf.use()}function Cf(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}R();function wf(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=z.useState(!1),f=pa(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=pa(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),z.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,B.jsx)(`span`,{className:f,style:p,children:(0,B.jsx)(`span`,{className:m})})}var Tf=ga(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]);R();var Ef=550,Df=hr`
|
|
43
|
+
export default theme;`}function ws(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Ts=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function Es(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:Ra(t,Ts(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ws(n)})`:Ha(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ws(n)})`:Ba(t,n)}})}function Ds(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(gt(20));let d=is({...a,colorSpace:l}),f=na(e),p=Br(f,{mixins:os(f.breakpoints,r),palette:d,shadows:hs.slice(),typography:us(d,s),transitions:bs(o),zIndex:{...xs}});return p=Br(p,u),p=t.reduce((e,t)=>Br(e,t),p),p.unstable_sxConfig={...Xi,...u?.unstable_sxConfig},p.unstable_sx=function(e){return ea({sx:e,theme:this})},p.toRuntimeSource=Cs,Es(p),p}function Os(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var ks=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Os(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function As(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function js(e){return e===`dark`?ks:[]}function Ms(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=is({...t,colorSpace:i});return{palette:o,opacity:{...As(o.mode),...n},overlays:r||js(o.mode),...a}}function Ns(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Ps=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Fs=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Ps(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Is(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function U(e,t,n){!e[t]&&n&&(e[t]=n)}function Ls(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:H(e)}function Rs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pa(Ls(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
44
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function zs(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Bs=e=>{try{return e()}catch{}},Vs=(e=`mui`)=>Oo(e);function Hs(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Ms({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Ds({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...As(a),...n?.opacity},overlays:n?.overlays||js(a)},s}function Us(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Ns,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Vs(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(gt(21,f));let b;o&&(b=`oklch`);let x=Hs(b,v,y,u,f);h&&!v.light&&Hs(b,v,h,void 0,`light`),g&&!v.dark&&Hs(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...as(x.typography),...x.font},spacing:zs(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(U(t.common,`background`,`#fff`),U(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(U(t.common,`background`,`#000`),U(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===za&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Va&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Ua&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Is(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){U(t.Alert,`errorColor`,r(Va,o?p(`palette-error-light`):t.error.light,.6)),U(t.Alert,`infoColor`,r(Va,o?p(`palette-info-light`):t.info.light,.6)),U(t.Alert,`successColor`,r(Va,o?p(`palette-success-light`):t.success.light,.6)),U(t.Alert,`warningColor`,r(Va,o?p(`palette-warning-light`):t.warning.light,.6)),U(t.Alert,`errorFilledBg`,n(`palette-error-main`)),U(t.Alert,`infoFilledBg`,n(`palette-info-main`)),U(t.Alert,`successFilledBg`,n(`palette-success-main`)),U(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),U(t.Alert,`errorFilledColor`,Bs(()=>t.getContrastText(t.error.main))),U(t.Alert,`infoFilledColor`,Bs(()=>t.getContrastText(t.info.main))),U(t.Alert,`successFilledColor`,Bs(()=>t.getContrastText(t.success.main))),U(t.Alert,`warningFilledColor`,Bs(()=>t.getContrastText(t.warning.main))),U(t.Alert,`errorStandardBg`,r(Ua,o?p(`palette-error-light`):t.error.light,.9)),U(t.Alert,`infoStandardBg`,r(Ua,o?p(`palette-info-light`):t.info.light,.9)),U(t.Alert,`successStandardBg`,r(Ua,o?p(`palette-success-light`):t.success.light,.9)),U(t.Alert,`warningStandardBg`,r(Ua,o?p(`palette-warning-light`):t.warning.light,.9)),U(t.Alert,`errorIconColor`,n(`palette-error-main`)),U(t.Alert,`infoIconColor`,n(`palette-info-main`)),U(t.Alert,`successIconColor`,n(`palette-success-main`)),U(t.Alert,`warningIconColor`,n(`palette-warning-main`)),U(t.AppBar,`defaultBg`,n(`palette-grey-100`)),U(t.Avatar,`defaultBg`,n(`palette-grey-400`)),U(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),U(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),U(t.Chip,`defaultBorder`,n(`palette-grey-400`)),U(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),U(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),U(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),U(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),U(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),U(t.LinearProgress,`primaryBg`,r(Ua,o?p(`palette-primary-main`):t.primary.main,.62)),U(t.LinearProgress,`secondaryBg`,r(Ua,o?p(`palette-secondary-main`):t.secondary.main,.62)),U(t.LinearProgress,`errorBg`,r(Ua,o?p(`palette-error-main`):t.error.main,.62)),U(t.LinearProgress,`infoBg`,r(Ua,o?p(`palette-info-main`):t.info.main,.62)),U(t.LinearProgress,`successBg`,r(Ua,o?p(`palette-success-main`):t.success.main,.62)),U(t.LinearProgress,`warningBg`,r(Ua,o?p(`palette-warning-light`):t.warning.main,.62)),U(t.Skeleton,`bg`,b?r(za,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),U(t.Slider,`primaryTrack`,r(Ua,o?p(`palette-primary-main`):t.primary.main,.62)),U(t.Slider,`secondaryTrack`,r(Ua,o?p(`palette-secondary-main`):t.secondary.main,.62)),U(t.Slider,`errorTrack`,r(Ua,o?p(`palette-error-main`):t.error.main,.62)),U(t.Slider,`infoTrack`,r(Ua,o?p(`palette-info-main`):t.info.main,.62)),U(t.Slider,`successTrack`,r(Ua,o?p(`palette-success-main`):t.success.main,.62)),U(t.Slider,`warningTrack`,r(Ua,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Va,o?p(`palette-background-default`):t.background.default,.6825):Ga(t.background.default,.8);U(t.SnackbarContent,`bg`,e),U(t.SnackbarContent,`color`,Bs(()=>b?Jo.text.primary:t.getContrastText(e))),U(t.SpeedDialAction,`fabHoverBg`,Ga(t.background.paper,.15)),U(t.StepConnector,`border`,n(`palette-grey-400`)),U(t.StepContent,`border`,n(`palette-grey-400`)),U(t.Switch,`defaultColor`,n(`palette-common-white`)),U(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),U(t.Switch,`primaryDisabledColor`,r(Ua,o?p(`palette-primary-main`):t.primary.main,.62)),U(t.Switch,`secondaryDisabledColor`,r(Ua,o?p(`palette-secondary-main`):t.secondary.main,.62)),U(t.Switch,`errorDisabledColor`,r(Ua,o?p(`palette-error-main`):t.error.main,.62)),U(t.Switch,`infoDisabledColor`,r(Ua,o?p(`palette-info-main`):t.info.main,.62)),U(t.Switch,`successDisabledColor`,r(Ua,o?p(`palette-success-main`):t.success.main,.62)),U(t.Switch,`warningDisabledColor`,r(Ua,o?p(`palette-warning-main`):t.warning.main,.62)),U(t.TableCell,`border`,r(Ua,za(o?p(`palette-divider`):t.divider,1),.88)),U(t.Tooltip,`bg`,r(za,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){U(t.Alert,`errorColor`,r(Ua,o?p(`palette-error-light`):t.error.light,.6)),U(t.Alert,`infoColor`,r(Ua,o?p(`palette-info-light`):t.info.light,.6)),U(t.Alert,`successColor`,r(Ua,o?p(`palette-success-light`):t.success.light,.6)),U(t.Alert,`warningColor`,r(Ua,o?p(`palette-warning-light`):t.warning.light,.6)),U(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),U(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),U(t.Alert,`successFilledBg`,n(`palette-success-dark`)),U(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),U(t.Alert,`errorFilledColor`,Bs(()=>t.getContrastText(t.error.dark))),U(t.Alert,`infoFilledColor`,Bs(()=>t.getContrastText(t.info.dark))),U(t.Alert,`successFilledColor`,Bs(()=>t.getContrastText(t.success.dark))),U(t.Alert,`warningFilledColor`,Bs(()=>t.getContrastText(t.warning.dark))),U(t.Alert,`errorStandardBg`,r(Va,o?p(`palette-error-light`):t.error.light,.9)),U(t.Alert,`infoStandardBg`,r(Va,o?p(`palette-info-light`):t.info.light,.9)),U(t.Alert,`successStandardBg`,r(Va,o?p(`palette-success-light`):t.success.light,.9)),U(t.Alert,`warningStandardBg`,r(Va,o?p(`palette-warning-light`):t.warning.light,.9)),U(t.Alert,`errorIconColor`,n(`palette-error-main`)),U(t.Alert,`infoIconColor`,n(`palette-info-main`)),U(t.Alert,`successIconColor`,n(`palette-success-main`)),U(t.Alert,`warningIconColor`,n(`palette-warning-main`)),U(t.AppBar,`defaultBg`,n(`palette-grey-900`)),U(t.AppBar,`darkBg`,n(`palette-background-paper`)),U(t.AppBar,`darkColor`,n(`palette-text-primary`)),U(t.Avatar,`defaultBg`,n(`palette-grey-600`)),U(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),U(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),U(t.Chip,`defaultBorder`,n(`palette-grey-700`)),U(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),U(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),U(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),U(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),U(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),U(t.LinearProgress,`primaryBg`,r(Va,o?p(`palette-primary-main`):t.primary.main,.5)),U(t.LinearProgress,`secondaryBg`,r(Va,o?p(`palette-secondary-main`):t.secondary.main,.5)),U(t.LinearProgress,`errorBg`,r(Va,o?p(`palette-error-main`):t.error.main,.5)),U(t.LinearProgress,`infoBg`,r(Va,o?p(`palette-info-main`):t.info.main,.5)),U(t.LinearProgress,`successBg`,r(Va,o?p(`palette-success-main`):t.success.main,.5)),U(t.LinearProgress,`warningBg`,r(Va,o?p(`palette-warning-main`):t.warning.main,.5)),U(t.Skeleton,`bg`,b?r(za,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),U(t.Slider,`primaryTrack`,r(Va,o?p(`palette-primary-main`):t.primary.main,.5)),U(t.Slider,`secondaryTrack`,r(Va,o?p(`palette-secondary-main`):t.secondary.main,.5)),U(t.Slider,`errorTrack`,r(Va,o?p(`palette-error-main`):t.error.main,.5)),U(t.Slider,`infoTrack`,r(Va,o?p(`palette-info-main`):t.info.main,.5)),U(t.Slider,`successTrack`,r(Va,o?p(`palette-success-main`):t.success.main,.5)),U(t.Slider,`warningTrack`,r(Va,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Ua,o?p(`palette-background-default`):t.background.default,.985):Ga(t.background.default,.98);U(t.SnackbarContent,`bg`,e),U(t.SnackbarContent,`color`,Bs(()=>b?Ko.text.primary:t.getContrastText(e))),U(t.SpeedDialAction,`fabHoverBg`,Ga(t.background.paper,.15)),U(t.StepConnector,`border`,n(`palette-grey-600`)),U(t.StepContent,`border`,n(`palette-grey-600`)),U(t.Switch,`defaultColor`,n(`palette-grey-300`)),U(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),U(t.Switch,`primaryDisabledColor`,r(Va,o?p(`palette-primary-main`):t.primary.main,.55)),U(t.Switch,`secondaryDisabledColor`,r(Va,o?p(`palette-secondary-main`):t.secondary.main,.55)),U(t.Switch,`errorDisabledColor`,r(Va,o?p(`palette-error-main`):t.error.main,.55)),U(t.Switch,`infoDisabledColor`,r(Va,o?p(`palette-info-main`):t.info.main,.55)),U(t.Switch,`successDisabledColor`,r(Va,o?p(`palette-success-main`):t.success.main,.55)),U(t.Switch,`warningDisabledColor`,r(Va,o?p(`palette-warning-light`):t.warning.main,.55)),U(t.TableCell,`border`,r(Va,za(o?p(`palette-divider`):t.divider,1),.68)),U(t.Tooltip,`bg`,r(za,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Rs(t.background,`default`),Rs(t.background,`paper`),Rs(t.common,`background`),Rs(t.common,`onBackground`),Rs(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&U(t[e],`mainChannel`,Pa(Ls(n.main))),n.light&&U(t[e],`lightChannel`,Pa(Ls(n.light))),n.dark&&U(t[e],`darkChannel`,Pa(Ls(n.dark))),n.contrastText&&U(t[e],`contrastTextChannel`,Pa(Ls(n.contrastText))),e===`text`&&(Rs(t[e],`primary`),Rs(t[e],`secondary`)),e===`action`&&(n.active&&Rs(t[e],`active`),n.selected&&Rs(t[e],`selected`)))})}),S=t.reduce((e,t)=>Br(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Fs(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=No(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return Si(u.spacing,mi(this))},S.getColorSchemeSelector=Po(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Xi,...u?.unstable_sxConfig},S.unstable_sx=function(e){return ea({sx:e,theme:this})},S.toRuntimeSource=Cs,S}function Ws(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:is({...n===!0?{}:n.palette,mode:t})})}function Gs(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Ds(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Ds({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Ws(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Ws(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Us({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var Ks=Gs();function qs(){let e=oa(Ks);return e.$$material||e}function Js(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Ys=e=>Js(e)&&e!==`classes`,W=Ca({themeId:_t,defaultTheme:Ks,rootShouldForwardProp:Ys});function Xs({theme:e,...t}){let n=`$$material`in e?e[_t]:void 0;return(0,z.jsx)(fo,{...t,themeId:n?_t:void 0,theme:n||e})}L();var Zs={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Qs,useColorScheme:$s,getInitColorSchemeScript:ec}=Do({themeId:_t,theme:()=>Gs({cssVariables:!0}),colorSchemeStorageKey:Zs.colorSchemeStorageKey,modeStorageKey:Zs.modeStorageKey,defaultColorScheme:{light:Zs.defaultLightColorScheme,dark:Zs.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:us(e.palette,e.typography)};return t.unstable_sx=function(e){return ea({sx:e,theme:this})},t}}),tc=Qs;function nc({theme:e,...t}){let n=R.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[_t]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,z.jsx)(Xs,{theme:n,...t}):(0,z.jsx)(tc,{theme:e,...t})}L();var rc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,z.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,z.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});rc.propTypes={fill:I.string.isRequired};var ic=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,z.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,z.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});ic.propTypes={fill:I.string.isRequired};var ac=ft(rc,ic);ac.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},ac.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30},L();var oc=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,z.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});oc.propTypes={fill:I.string.isRequired};var sc=({fill:e})=>(0,z.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});sc.propTypes={fill:I.string.isRequired};var cc=({fill:e})=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,z.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,z.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
|
|
45
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});cc.propTypes={fill:I.string.isRequired};var lc=class extends R.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,z.jsxs)(ot,{children:[(0,z.jsx)(sc,{fill:n}),(0,z.jsx)(oc,{fill:t})]}),emoji:(0,z.jsxs)(ot,{children:[(0,z.jsx)(sc,{fill:n}),(0,z.jsx)(cc,{fill:t})]}),feedback:{check:(0,z.jsxs)(ot,{children:[(0,z.jsx)(sc,{fill:n}),(0,z.jsx)(cc,{fill:t})]}),emoji:(0,z.jsxs)(ot,{children:[(0,z.jsx)(sc,{fill:n}),(0,z.jsx)(cc,{fill:t})]}),square:{check:(0,z.jsxs)(ot,{children:[(0,z.jsx)(sc,{fill:n}),(0,z.jsx)(oc,{fill:t})]}),emoji:(0,z.jsxs)(ot,{children:[(0,z.jsx)(sc,{fill:n}),(0,z.jsx)(cc,{fill:t})]}),open:{check:(0,z.jsx)(ot,{children:(0,z.jsx)(oc,{fill:n})}),emoji:(0,z.jsx)(ot,{children:(0,z.jsx)(cc,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};lc.propTypes={iconSet:I.oneOf([`emoji`,`check`,void 0]),shape:I.oneOf([`square`,void 0]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string},lc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`},L();var uc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,z.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,z.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});uc.propTypes={fill:I.string.isRequired};var dc=({fill:e})=>(0,z.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,z.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,z.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,z.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});dc.propTypes={fill:I.string.isRequired};var fc=ft(uc,dc);fc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},fc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function pc(e){return typeof e==`string`}L();function mc(e){return(0,z.jsx)(ca,{...e,defaultTheme:Ks,themeId:_t})}function hc(e){return function(t){return(0,z.jsx)(mc,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}L();function gc(e){return ro(e)}function _c(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var vc=_c;function G(e){return e&&e.ownerDocument||document}var yc=G;function bc(e){return G(e).defaultView||window}var xc=bc,Sc={};function Cc(e,t){let n=R.useRef(Sc);return n.current===Sc&&(n.current=e(t)),n}var wc=[];function Tc(e){R.useEffect(e,wc)}var Ec=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Dc(){let e=Cc(Ec.create).current;return Tc(e.disposeEffect),e}function Oc(e){return e?.ref||null}function kc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ac(e,t){return Ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ac(e,t)}function jc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ac(e,t)}function Mc(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Nc(e,t){e.classList?e.classList.add(t):Mc(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Pc(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Fc(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Pc(e.className,t):e.setAttribute(`class`,Pc(e.className&&e.className.baseVal||``,t))}var Ic={disabled:!1},Lc=R.createContext(null),Rc=function(e){return e.scrollTop};L();var zc=u(_()),Bc=`unmounted`,Vc=`exited`,Hc=`entering`,Uc=`entered`,Wc=`exiting`,Gc=function(e){jc(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Vc,r.appearStatus=Hc):o=Uc:o=t.unmountOnExit||t.mountOnEnter?Bc:Vc,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Vc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Hc):(n===`entering`||n===`entered`)&&(t=Wc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:zc.findDOMNode(this);n&&Rc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Bc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[zc.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Ic.disabled){this.safeSetState({status:Uc},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Hc},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Uc},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:zc.findDOMNode(this);if(!t||Ic.disabled){this.safeSetState({status:Vc},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Wc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Vc},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:zc.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=kc(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return R.createElement(Lc.Provider,{value:null},typeof n==`function`?n(e,r):R.cloneElement(R.Children.only(n),r))},t}(R.Component);Gc.contextType=Lc,Gc.propTypes={};function Kc(){}Gc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kc,onEntering:Kc,onEntered:Kc,onExit:Kc,onExiting:Kc,onExited:Kc},Gc.UNMOUNTED=Bc,Gc.EXITED=Vc,Gc.ENTERING=Hc,Gc.ENTERED=Uc,Gc.EXITING=Wc,L();var qc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Nc(e,t)})},Jc=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Fc(e,t)})},Yc=function(e){jc(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Rc(e),r&&(this.appliedClasses[t][n]=r,qc(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Jc(e,r),i&&Jc(e,i),a&&Jc(e,a)},n.render=function(){var e=this.props;e.classNames;var t=kc(e,[`classNames`]);return R.createElement(Gc,vt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(R.Component);Yc.defaultProps={classNames:``},Yc.propTypes={};function Xc(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Zc(e,t){var n=function(e){return t&&(0,R.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&R.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Qc(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function $c(e,t,n){return n[t]==null?e.props[t]:n[t]}function el(e,t){return Zc(e.children,function(n){return(0,R.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:$c(n,`appear`,e),enter:$c(n,`enter`,e),exit:$c(n,`exit`,e)})})}function tl(e,t,n){var r=Zc(e.children),i=Qc(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,R.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,R.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:$c(o,`exit`,e),enter:$c(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,R.cloneElement)(o,{in:!1}):c&&s&&(0,R.isValidElement)(l)&&(i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:$c(o,`exit`,e),enter:$c(o,`enter`,e)}))}}),i}L();var nl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rl={component:`div`,childFactory:function(e){return e}},il=function(e){jc(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Xc(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?el(e,r):tl(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Zc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=vt({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=kc(e,[`component`,`childFactory`]),i=this.state.contextValue,a=nl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?R.createElement(Lc.Provider,{value:i},a):R.createElement(Lc.Provider,{value:i},R.createElement(t,r,a))},t}(R.Component);il.propTypes={},il.defaultProps=rl;var al=e=>e.scrollTop;function ol(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function sl(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function cl(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function ll(...e){let t=R.useRef(void 0),n=R.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return R.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ul=ll;L();function dl(e){return`scale(${e}, ${e**2})`}var fl={entering:{opacity:1,transform:dl(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:dl(.75)},exited:{opacity:0,transform:dl(.75)}},pl={opacity:0,transform:dl(.75),visibility:`hidden`},ml=R.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Dc(),_=R.useRef(),v=qs(),y=R.useRef(null),b=ul(y,Oc(i),t),x=ol(y,l),S=ol(y,(e,t)=>{al(e);let{duration:n,delay:r,easing:i}=cl({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=ol(y,c),w=ol(y,f),T=ol(y,e=>{let{duration:t,delay:n,easing:r}=cl({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=dl(.75),u&&u(e)}),E=ol(y,e=>{e.style.transition=``,d&&d(e)});return(0,z.jsx)(Gc,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=sl(e,o,fl,pl,p,i.props.style);return R.cloneElement(i,{style:r,ref:b,...n})}})});ml&&(ml.muiSupportAuto=!0);function hl(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function gl(e){let t=G(e);return t.body===e?bc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _l(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function vl(e){return parseFloat(bc(e).getComputedStyle(e).paddingRight)||0}function yl(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function bl(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!yl(e);t&&n&&_l(e,i)})}function xl(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Sl(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(gl(r)){let e=hl(bc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${vl(r)+e}px`;let t=G(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${vl(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=G(r).body;else{let t=r.parentElement,n=bc(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Cl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var wl=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_l(e.modalRef,!1);let r=Cl(t);bl(t,e.mount,e.modalRef,r,!0);let i=xl(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=xl(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Sl(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=xl(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&_l(e.modalRef,t),bl(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&_l(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Tl(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var El=Tl;function Dl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ol=Dl,kl=`data-mui-focusable`;function Al(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${kl}]`):null}L();var jl=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Ml(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function Nl(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Pl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Nl(e))}function Fl(e){let t=[],n=[];return Array.from(e.querySelectorAll(jl)).forEach((e,r)=>{let i=Ml(e);i===-1||!Pl(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Il(){return!0}function Ll(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Fl,isEnabled:o=Il,open:s}=e,c=R.useRef(!1),l=R.useRef(null),u=R.useRef(null),d=R.useRef(null),f=R.useRef(null),p=R.useRef(!1),m=R.useRef(null),h=ll(Oc(t),m),g=R.useRef(null);R.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),R.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ol(G(m.current)),t=Al(m.current)??m.current;return El(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),R.useEffect(()=>{if(!s||!m.current)return;let e=G(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Ol(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Ol(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(El(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Ol(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),R.cloneElement(t,{ref:h,onFocus:_}),(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Rl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}L();function zl(e){return typeof e==`function`?e():e}var Bl=R.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=R.useState(null),s=ll(R.isValidElement(n)?Oc(n):null,t);if(Oa(()=>{i||o(zl(r)||document.body)},[r,i]),Oa(()=>{if(a&&!i)return Rl(t,a),()=>{Rl(t,null)}},[t,a,i]),i){if(R.isValidElement(n)){let e={ref:s};return R.cloneElement(n,e)}return n}return a&&zc.createPortal(n,a)}),Vl=mo;function Hl(e,t,n){return e===void 0||pc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ul(e,t,n){return typeof e==`function`?e(t,n):e}function Wl(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Gl(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Kl(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=V(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Wl({...i,...r}),s=Gl(r),c=Gl(i),l=t(o),u=V(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function ql(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Ul(d[e],i),{props:{component:h,...g},internalRef:_}=Kl({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ll(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Hl(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}L();var Jl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Yl={opacity:0,visibility:`hidden`},Xl=R.forwardRef(function(e,t){let n=qs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=R.useRef(null),y=ul(v,Oc(o),t),b=ol(v,d),x=ol(v,(e,t)=>{al(e);let r=cl({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=ol(v,u),C=ol(v,m),w=ol(v,e=>{let t=cl({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=ol(v,e=>{e.style.transition=``,p&&p(e)});return(0,z.jsx)(Gc,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=sl(e,c,Jl,Yl,h,o.props.style);return R.cloneElement(o,{style:r,ref:y,...n})}})});function Zl(e){return pa(`MuiBackdrop`,e)}ma(`MuiBackdrop`,[`root`,`invisible`]),L();var Ql=e=>{let{classes:t,invisible:n}=e;return Fo({root:[`root`,n&&`invisible`]},Zl,t)},$l=W(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),eu=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Ql(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=ql(`root`,{elementType:$l,externalForwardedProps:_,className:V(g.root,i),ownerState:h}),[b,x]=ql(`transition`,{elementType:Xl,externalForwardedProps:_,ownerState:h});return(0,z.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,z.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function tu(e){let t=R.useRef(e);return Oa(()=>{t.current=e}),R.useRef((...e)=>(0,t.current)(...e)).current}function nu(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ru(e){return typeof e==`function`?e():e}function iu(e){return e?e.props.hasOwnProperty(`in`):!1}var au=()=>{},ou=new wl;function su(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=R.useRef({}),f=R.useRef(null),p=R.useRef(null),m=ll(p,u),[h,g]=R.useState(!l),_=iu(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>G(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{ou.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=tu(()=>{let e=ru(t)||y().body;ou.add(b(),e),p.current&&x()}),C=()=>ou.isTopModal(b()),w=tu(e=>{f.current=e,e&&(l&&C()?x():p.current&&_l(p.current,v))}),T=R.useCallback(()=>{ou.remove(b(),v)},[v]);R.useEffect(()=>()=>{T()},[T]),R.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Wl(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:nu(()=>{g(!1),a&&a()},s?.props.onEnter??au),onExited:nu(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??au)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function cu(e){return pa(`MuiModal`,e)}ma(`MuiModal`,[`root`,`hidden`,`backdrop`]),L();var lu=e=>{let{open:t,exited:n,classes:r}=e;return Fo({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},cu,r)},uu=W(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Vl(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),du=W(eu,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),fu=R.forwardRef(function(e,t){let n=gc({name:`MuiModal`,props:e}),{BackdropComponent:r=du,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:k,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:N}=su({...ee,rootRef:t}),P={...ee,exited:ne},re=lu(P),F={};if(c.props.tabIndex===void 0&&(F.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=j();F.onEnter=e,F.onExited=t}let ie={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ae,oe]=ql(`root`,{ref:t,elementType:uu,externalForwardedProps:{...ie,...O,component:u},getSlotProps:k,ownerState:P,className:V(o,re?.root,!P.open&&P.exited&&re?.hidden)}),[se,ce]=ql(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:V(i?.className,re?.backdrop),ownerState:P});return!b&&!w&&(!N||ne)?null:(0,z.jsx)(Bl,{ref:te,container:l,disablePortal:g,children:(0,z.jsxs)(ae,{...oe,children:[!y&&r?(0,z.jsx)(se,{...ce}):null,(0,z.jsx)(Ll,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:R.cloneElement(c,F)})]})})});function pu(e){return pa(`MuiPaper`,e)}ma(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`)),L();var mu=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Fo({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},pu,i)},hu=W(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Vl(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),gu=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiPaper`}),r=qs(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=mu(u);return(0,z.jsx)(hu,{as:a,ownerState:u,className:V(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${Ra(`#fff`,Os(o))}, ${Ra(`#fff`,Os(o))})`}},...l.style}})});function _u(e){return pa(`MuiPopover`,e)}ma(`MuiPopover`,[`root`,`paper`]);var vu=ti;function yu(e){return pa(`MuiSvgIcon`,e)}ma(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]),L();var bu=e=>{let{color:t,fontSize:n,classes:r}=e;return Fo({root:[`root`,t!==`inherit`&&`color${vu(t)}`,`fontSize${vu(n)}`]},yu,r)},xu=W(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${vu(n.color)}`],t[`fontSize${vu(n.fontSize)}`]]}})(Vl(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Su=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=R.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=bu(m);return(0,z.jsxs)(xu,{as:o,className:V(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,z.jsx)(`title`,{children:u}):null]})});Su.muiName=`SvgIcon`;function Cu(e,t){function n(t,n){return(0,z.jsx)(Su,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Su.muiName,R.memo(R.forwardRef(n))}var wu=Io,Tu=Oa,Eu=so;function Du(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=R.useRef(t!==void 0),[o,s]=R.useState(n);return[a?t:o,R.useCallback(e=>{a||s(e)},[])]}var Ou=Du,ku=tu;function Au(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function ju(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Au(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=V(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=V(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}L();function Mu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Nu(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Pu(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Fu(e){return typeof e==`function`?e():e}var Iu=e=>{let{classes:t}=e;return Fo({root:[`root`],paper:[`paper`]},_u,t)},Lu=W(fu,{name:`MuiPopover`,slot:`Root`})({}),Ru=W(gu,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),zu=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=R.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Iu(w),E=R.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Fu(i),t=(e&&e.nodeType===1?e:yc(C.current).body).getBoundingClientRect();return{top:t.top+Mu(t,a.vertical),left:t.left+Nu(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=R.useCallback(e=>({vertical:Mu(e,_.vertical),horizontal:Nu(e,_.horizontal)}),[_.horizontal,_.vertical]),O=R.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Pu(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=xc(Fu(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:Pu(n)}},[i,s,E,D,f]),[ee,k]=R.useState(p),A=R.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,k(!0)},[O]);R.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{k(!1)};R.useEffect(()=>{p&&A()}),R.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),R.useEffect(()=>{if(!p)return;let e=vc(()=>{A()}),t=xc(Fu(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,A]);let M=y,ne={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[N,P]=ql(`transition`,{elementType:ml,externalForwardedProps:ne,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!N.muiSupportAuto&&(M=void 0);let re=u||(i?yc(Fu(i)).body:void 0),[F,{slots:ie,slotProps:ae,...oe}]=ql(`root`,{ref:t,elementType:Lu,externalForwardedProps:{...ne,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:ju(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:re,open:p},ownerState:w,className:V(T.root,l)}),[se,ce]=ql(`paper`,{ref:C,className:T.paper,elementType:Ru,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,z.jsx)(F,{...oe,...!pc(F)&&{slots:ie,slotProps:ae,disableScrollLock:x},children:(0,z.jsx)(N,{...P,timeout:M,children:(0,z.jsx)(se,{...ce,children:c})})})}),Bu={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},Vu={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},Hu=c({background:()=>fd,backgroundDark:()=>pd,black:()=>Ed,blueGrey100:()=>Pd,blueGrey300:()=>Fd,blueGrey600:()=>Id,blueGrey900:()=>Ld,border:()=>yd,borderDark:()=>xd,borderGray:()=>Sd,borderLight:()=>bd,buttonBorder:()=>Wd,buttonFocusOutline:()=>Nd,buttonHoverBg:()=>Gd,correct:()=>Ju,correctSecondary:()=>Yu,correctTertiary:()=>Xu,correctWithIcon:()=>Zu,defaults:()=>K,disabled:()=>Gu,disabledSecondary:()=>Ku,disabledText:()=>qu,dropdownBackground:()=>hd,fadedPrimary:()=>sd,focusChecked:()=>kd,focusCheckedBorder:()=>Ad,focusUnchecked:()=>jd,focusUncheckedBorder:()=>Md,incorrect:()=>Qu,incorrectSecondary:()=>ed,incorrectWithIcon:()=>$u,keyBoardFocusIndicator:()=>Ud,keypadButton:()=>Rd,keypadButtonHover:()=>Vd,keypadButtonOperator:()=>zd,keypadButtonOperatorHover:()=>Hd,keypadEmptyPlaceholder:()=>Bd,missing:()=>td,missingWithIcon:()=>nd,primary:()=>rd,primaryDark:()=>ad,primaryLight:()=>id,primaryText:()=>od,secondary:()=>cd,secondaryBackground:()=>md,secondaryDark:()=>ud,secondaryLight:()=>ld,secondaryText:()=>dd,surface:()=>gd,tableGrid:()=>Cd,tableGridLight:()=>wd,tableStripe:()=>Td,tertiary:()=>_d,tertiaryLight:()=>vd,text:()=>Wu,transparent:()=>Od,v:()=>Uu,visualElementsColors:()=>Kd,white:()=>Dd}),K={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Wo[500],CORRECT_SECONDARY:Wo[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Vo[500],INCORRECT_SECONDARY:Bo[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Bo[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Vu[500],PRIMARY_LIGHT:Vu[200],PRIMARY_DARK:Vu[800],SECONDARY:Bu.A400,SECONDARY_LIGHT:Bu[200],SECONDARY_DARK:Bu[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(K);var Uu=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},q=Uu(`pie`),Wu=()=>q(`text`,K.TEXT),Gu=()=>q(`disabled`,K.DISABLED),Ku=()=>q(`disabled-secondary`,K.DISABLED_SECONDARY),qu=()=>q(`disabled-text`,`text`,K.DISABLED_TEXT),Ju=()=>q(`correct`,K.CORRECT),Yu=()=>q(`correct-secondary`,K.CORRECT_SECONDARY),Xu=()=>q(`correct-tertiary`,K.CORRECT_TERTIARY),Zu=()=>q(`correct-icon`,K.CORRECT_WITH_ICON),Qu=()=>q(`incorrect`,K.INCORRECT),$u=()=>q(`incorrect-icon`,K.INCORRECT_WITH_ICON),ed=()=>q(`incorrect-secondary`,K.INCORRECT_SECONDARY),td=()=>q(`missing`,K.MISSING),nd=()=>q(`missing-icon`,K.MISSING_WITH_ICON),rd=()=>q(`primary`,K.PRIMARY),id=()=>q(`primary-light`,K.PRIMARY_LIGHT),ad=()=>q(`primary-dark`,K.PRIMARY_DARK),od=()=>q(`primary-text`,`text`,K.TEXT),sd=()=>q(`faded-primary`,K.FADED_PRIMARY),cd=()=>q(`secondary`,K.SECONDARY),ld=()=>q(`secondary-light`,K.SECONDARY_LIGHT),ud=()=>q(`secondary-dark`,K.SECONDARY_DARK),dd=()=>q(`secondary-text`,`text`,K.TEXT),fd=()=>q(`background`,K.BACKGROUND),pd=()=>q(`background-dark`,K.BACKGROUND_DARK),md=()=>q(`secondary-background`,K.SECONDARY_BACKGROUND),hd=()=>q(`dropdown-background`,K.DROPDOWN_BACKGROUND),gd=()=>q(`surface`,K.SURFACE),_d=()=>q(`tertiary`,K.TERTIARY),vd=()=>q(`tertiary-light`,K.TERTIARY_LIGHT),yd=()=>q(`border`,K.BORDER),bd=()=>q(`border-light`,K.BORDER_LIGHT),xd=()=>q(`border-dark`,K.BORDER_DARK),Sd=()=>q(`border-gray`,K.BORDER_GRAY),Cd=()=>q(`table-grid`,`text`,K.TABLE_GRID),wd=()=>q(`table-grid-light`,`border-light`,K.TABLE_GRID_LIGHT),Td=()=>q(`table-stripe`,`background-dark`,K.TABLE_STRIPE),Ed=()=>q(`black`,K.BLACK),Dd=()=>q(`white`,K.WHITE),Od=()=>K.TRANSPARENT,kd=()=>q(`focus-checked`,K.FOCUS_CHECKED),Ad=()=>q(`focus-checked-border`,K.FOCUS_CHECKED_BORDER),jd=()=>q(`focus-unchecked`,K.FOCUS_UNCHECKED),Md=()=>q(`focus-unchecked-border`,K.FOCUS_UNCHECKED_BORDER),Nd=()=>q(`button-focus-outline`,K.BUTTON_FOCUS_OUTLINE),Pd=()=>q(`blue-grey-100`,K.BLUE_GREY100),Fd=()=>q(`blue-grey-300`,K.BLUE_GREY300),Id=()=>q(`blue-grey-600`,K.BLUE_GREY600),Ld=()=>q(`blue-grey-900`,K.BLUE_GREY900),Rd=()=>q(`keypad-button`,K.KEYPAD_BUTTON),zd=()=>q(`keypad-button-operator`,K.KEYPAD_BUTTON_OPERATOR),Bd=()=>q(`keypad-empty-placeholder`,K.KEYPAD_EMPTY_PLACEHOLDER),Vd=()=>q(`keypad-button-hover`,K.KEYPAD_BUTTON_HOVER),Hd=()=>q(`keypad-button-operator-hover`,K.KEYPAD_BUTTON_OPERATOR_HOVER),Ud=()=>q(`keyboard-focus-indicator`,K.KEY_BOARD_FOCUS_INDICATOR),Wd=()=>q(`button-border`,K.BUTTON_BORDER),Gd=()=>q(`button-hover-bg`,K.BUTTON_HOVER_BG),Kd={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`};L();var qd=W(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Jd=W(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Gu()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Ju()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Qu()})`}}),Yd=W(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Xd=class extends R.Component{static propTypes={correctness:I.string,feedback:I.string};nodeRef=R.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,z.jsx)(Yc,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,z.jsx)(Yd,{ref:this.nodeRef,children:(0,z.jsx)(qd,{children:(0,z.jsx)(Jd,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,z.jsx)(`div`,{children:(0,z.jsx)(il,{children:this.renderFeedback()})})}},Zd=()=>{};function Qd(){let e=function(){};return e.enabled=!1,e.log=Zd,e.extend=()=>e,e.destroy=Zd,e}Qd.log=Zd,Qd.enable=Zd,Qd.disable=()=>``,Qd.enabled=()=>!1;var $d=c({Correct:()=>of,Incorrect:()=>sf,NothingSubmitted:()=>lf,PartiallyCorrect:()=>cf});L();var ef=Qd(`pie-libs:render-ui:response-indicators`),tf=W(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),nf=W(zu)({cursor:`pointer`}),rf=W(`div`)({padding:`0`,borderRadius:`4px`}),af=(e,t)=>{class n extends R.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{ef(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,z.jsxs)(tf,{hasFeedback:!!n,children:[(0,z.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,z.jsx)(e,{})}),n&&(0,z.jsx)(nf,{PaperComponent:rf,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,z.jsx)(Xd,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:I.string},n},of=af(ht,`correct`),sf=af(ac,`incorrect`),cf=af(fc,`partially-correct`),lf=af(lc,`nothing-submitted`);function uf(e){return pa(`MuiCollapse`,e)}ma(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]),L();var df=e=>{let{orientation:t,classes:n}=e;return Fo({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},uf,n)},ff=W(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Vl(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),pf=W(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),mf=W(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),hf=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=_s.standard,TransitionComponent:x=Gc,...S}=n,C={...n,orientation:g,collapsedSize:o},w=df(C),T=qs(),E=Dc(),D=R.useRef(null),O=R.useRef(),ee=typeof o==`number`?`${o}px`:o,k=g===`horizontal`,A=k?`width`:`height`,j=R.useRef(null),te=ul(t,j),M=()=>D.current?D.current[k?`clientWidth`:`clientHeight`]:0,ne=ol(j,(e,t)=>{D.current&&k&&(D.current.style.position=`absolute`),e.style[A]=ee,u&&u(e,t)}),N=ol(j,(e,t)=>{let n=M();D.current&&k&&(D.current.style.position=``);let{duration:r,easing:i}=cl({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[A]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),P=ol(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),re=ol(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),F=ol(j,m),ie=ol(j,e=>{let t=M(),{duration:n,easing:r}=cl({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[A]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ae=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},oe={slots:_,slotProps:v,component:s},[se,ce]=ql(`root`,{ref:te,className:V(w.root,a),elementType:ff,externalForwardedProps:oe,ownerState:C,additionalProps:{style:{[k?`minWidth`:`minHeight`]:ee,...y}}}),[le,ue]=ql(`wrapper`,{ref:D,className:w.wrapper,elementType:pf,externalForwardedProps:oe,ownerState:C}),[de,fe]=ql(`wrapperInner`,{className:w.wrapperInner,elementType:mf,externalForwardedProps:oe,ownerState:C});return(0,z.jsx)(x,{in:l,onEnter:ne,onEntered:P,onEntering:N,onExit:re,onExited:F,onExiting:ie,addEndListener:ae,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,z.jsx)(se,{...ce,className:V(ce.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,z.jsx)(le,{...ue,ownerState:r,children:(0,z.jsx)(de,{...fe,ownerState:r,children:i})})})}})});hf&&(hf.muiSupportAuto=!0),L();var gf=W(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),_f=W(hf)(({theme:e})=>({paddingTop:e.spacing(2)})),vf=class extends R.Component{static propTypes={className:I.string,children:I.object,labels:I.shape({visible:I.string,hidden:I.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){ke(this.root)}componentDidUpdate(){ke(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,z.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,z.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,z.jsx)(gf,{children:r})}),(0,z.jsx)(_f,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function yf(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var bf=class e{static create(){return new e}static use(){let t=Cc(e.create).current,[n,r]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=r,R.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Sf(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function xf(){return bf.use()}function Sf(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}L();function Cf(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=R.useState(!1),f=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=V(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),R.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,z.jsx)(`span`,{className:f,style:p,children:(0,z.jsx)(`span`,{className:m})})}var wf=ma(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]);L();var Tf=550,Ef=mr`
|
|
46
46
|
0% {
|
|
47
47
|
transform: scale(0);
|
|
48
48
|
opacity: 0.1;
|
|
@@ -52,7 +52,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
52
52
|
transform: scale(1);
|
|
53
53
|
opacity: 0.3;
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`,Df=mr`
|
|
56
56
|
0% {
|
|
57
57
|
opacity: 1;
|
|
58
58
|
}
|
|
@@ -60,7 +60,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
60
60
|
100% {
|
|
61
61
|
opacity: 0;
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
63
|
+
`,Of=mr`
|
|
64
64
|
0% {
|
|
65
65
|
transform: scale(1);
|
|
66
66
|
}
|
|
@@ -72,23 +72,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
72
72
|
100% {
|
|
73
73
|
transform: scale(1);
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,kf=W(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Af=W(Cf,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
76
76
|
opacity: 0;
|
|
77
77
|
position: absolute;
|
|
78
78
|
|
|
79
|
-
&.${
|
|
79
|
+
&.${wf.rippleVisible} {
|
|
80
80
|
opacity: 0.3;
|
|
81
81
|
transform: scale(1);
|
|
82
|
-
animation-name: ${
|
|
83
|
-
animation-duration: ${
|
|
82
|
+
animation-name: ${Ef};
|
|
83
|
+
animation-duration: ${Tf}ms;
|
|
84
84
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
&.${
|
|
87
|
+
&.${wf.ripplePulsate} {
|
|
88
88
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
& .${
|
|
91
|
+
& .${wf.child} {
|
|
92
92
|
opacity: 1;
|
|
93
93
|
display: block;
|
|
94
94
|
width: 100%;
|
|
@@ -97,25 +97,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
97
97
|
background-color: currentColor;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
& .${
|
|
100
|
+
& .${wf.childLeaving} {
|
|
101
101
|
opacity: 0;
|
|
102
|
-
animation-name: ${
|
|
103
|
-
animation-duration: ${
|
|
102
|
+
animation-name: ${Df};
|
|
103
|
+
animation-duration: ${Tf}ms;
|
|
104
104
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
& .${
|
|
107
|
+
& .${wf.childPulsate} {
|
|
108
108
|
position: absolute;
|
|
109
109
|
/* @noflip */
|
|
110
110
|
left: 0px;
|
|
111
111
|
top: 0;
|
|
112
|
-
animation-name: ${
|
|
112
|
+
animation-name: ${Of};
|
|
113
113
|
animation-duration: 2500ms;
|
|
114
114
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
115
115
|
animation-iteration-count: infinite;
|
|
116
116
|
animation-delay: 200ms;
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,jf=R.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=gc({props:e,name:`MuiTouchRipple`}),[o,s]=R.useState([]),c=R.useRef(0),l=R.useRef(null);R.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=R.useRef(!1),d=Dc(),f=R.useRef(null),p=R.useRef(null),m=R.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,z.jsx)(Af,{classes:{ripple:V(r.ripple,wf.ripple),rippleVisible:V(r.rippleVisible,wf.rippleVisible),ripplePulsate:V(r.ripplePulsate,wf.ripplePulsate),child:V(r.child,wf.child),childLeaving:V(r.childLeaving,wf.childLeaving),childPulsate:V(r.childPulsate,wf.childPulsate)},timeout:Tf,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=R.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=R.useCallback(()=>{h({},{pulsate:!0})},[h]),_=R.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return R.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,z.jsx)(kf,{className:V(wf.root,r.root,i),ref:p,...a,children:(0,z.jsx)(il,{component:null,exit:!0,children:o})})});function Mf(e){return pa(`MuiButtonBase`,e)}var Nf=ma(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]);L();var Pf=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Fo({root:[`root`,t&&`disabled`,n&&`focusVisible`]},Mf,i);return n&&r&&(a.root+=` ${r}`),a},Ff=W(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${Nf.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),If=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:ee,touchRippleRef:k,type:A,...j}=n,te=R.useRef(null),M=xf(),ne=ul(M.ref,k),[N,P]=R.useState(!1);c&&N&&P(!1),R.useImperativeHandle(r,()=>({focusVisible:()=>{P(!0),te.current.focus()}}),[]);let re=M.shouldMount&&!l&&!c;R.useEffect(()=>{N&&d&&!l&&M.pulsate()},[l,d,N,M]);let F=Lf(M,`start`,S,u),ie=Lf(M,`stop`,g,u),ae=Lf(M,`stop`,_,u),oe=Lf(M,`stop`,w,u),se=Lf(M,`stop`,e=>{N&&e.preventDefault(),C&&C(e)},u),ce=Lf(M,`start`,D,u),le=Lf(M,`stop`,T,u),ue=Lf(M,`stop`,E,u),de=Lf(M,`stop`,e=>{yf(e.target)||P(!1),m&&m(e)},!1),fe=ku(e=>{te.current||=e.currentTarget,yf(e.target)&&(P(!0),y&&y(e)),v&&v(e)}),pe=()=>{let e=te.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},me=ku(e=>{d&&!e.repeat&&N&&e.key===` `&&M.stop(e,()=>{M.start(e)}),e.target===e.currentTarget&&pe()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&pe()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),he=ku(e=>{d&&e.key===` `&&N&&!e.defaultPrevented&&M.stop(e,()=>{M.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&pe()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),ge=s;ge===`button`&&(j.href||j.to)&&(ge=p);let _e={};if(ge===`button`){let e=!!j.formAction;_e.type=A===void 0&&!e?`button`:A,_e.disabled=c}else!j.href&&!j.to&&(_e.role=`button`),c&&(_e[`aria-disabled`]=c);let ve=ul(t,te),ye={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:N},be=Pf(ye);return(0,z.jsxs)(Ff,{as:ge,className:V(be.root,o),ownerState:ye,onBlur:de,onClick:h,onContextMenu:ie,onFocus:fe,onKeyDown:me,onKeyUp:he,onMouseDown:F,onMouseLeave:se,onMouseUp:oe,onDragLeave:ae,onTouchEnd:le,onTouchMove:ue,onTouchStart:ce,ref:ve,tabIndex:c?-1:O,type:A,..._e,...j,children:[a,re?(0,z.jsx)(jf,{ref:ne,center:i,...ee}):null]})});function Lf(e,t,n,r=!1){return ku(i=>(n&&n(i),r||e[t](i),!0))}function Rf(e){return typeof e.main==`string`}function zf(e,t=[]){if(!Rf(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Bf(e=[]){return([,t])=>t&&zf(t,e)}function Vf(e){return pa(`MuiCircularProgress`,e)}ma(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]),L();var Hf=44,Uf=mr`
|
|
119
119
|
0% {
|
|
120
120
|
transform: rotate(0deg);
|
|
121
121
|
}
|
|
@@ -123,7 +123,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
123
123
|
100% {
|
|
124
124
|
transform: rotate(360deg);
|
|
125
125
|
}
|
|
126
|
-
`,
|
|
126
|
+
`,Wf=mr`
|
|
127
127
|
0% {
|
|
128
128
|
stroke-dasharray: 1px, 200px;
|
|
129
129
|
stroke-dashoffset: 0;
|
|
@@ -138,28 +138,28 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
138
138
|
stroke-dasharray: 1px, 200px;
|
|
139
139
|
stroke-dashoffset: -126px;
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
142
|
-
animation: ${
|
|
143
|
-
`,
|
|
144
|
-
animation: ${
|
|
145
|
-
`,Jf=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return Io({root:[`root`,n,`color${yu(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${yu(n)}`,i&&`circleDisableShrink`]},Hf,t)},Yf=W(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${yu(n.color)}`]]}})(Hl(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Kf||{animation:`${Wf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Xf=W(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Zf=W(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${yu(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Hl(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:qf||{animation:`${Gf} 1.4s ease-in-out infinite`}}]}))),Qf=W(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Hl(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),$f=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=Jf(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((Uf-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,B.jsx)(Yf,{className:pa(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,B.jsxs)(Xf,{className:m.svg,ownerState:p,viewBox:`${Uf/2} ${Uf/2} ${Uf} ${Uf}`,children:[o?(0,B.jsx)(Qf,{className:m.track,ownerState:p,cx:Uf,cy:Uf,r:(Uf-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,B.jsx)(Zf,{className:m.circle,style:h,ownerState:p,cx:Uf,cy:Uf,r:(Uf-l)/2,fill:`none`,strokeWidth:l})]})})});function ep(e){return ha(`MuiButton`,e)}var tp=ga(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),np=z.createContext({}),rp=z.createContext(void 0);R();var ip=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=Io({root:[`root`,o&&`loading`,a,`${a}${yu(t)}`,`size${yu(i)}`,`${a}Size${yu(i)}`,`color${yu(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${yu(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${yu(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${yu(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},ep,c);return{...c,...l}},ap=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],op=W(Lf,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${yu(n.color)}`],t[`size${yu(n.size)}`],t[`${n.variant}Size${yu(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${tp.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${tp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${tp.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${tp.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${tp.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${tp.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${tp.loading}`]:{color:`transparent`}}}]}})),sp=W(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${yu(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...ap]})),cp=W(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${yu(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ap]})),lp=W(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),up=W(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),dp=z.forwardRef(function(e,t){let n=z.useContext(np),r=z.useContext(rp),i=_c({props:ka(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Du(h),T=_??(0,B.jsx)($f,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=ip(E),O=(b||g&&v===`start`)&&(0,B.jsx)(sp,{className:D.startIcon,ownerState:E,children:b||(0,B.jsx)(up,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,B.jsx)(cp,{className:D.endIcon,ownerState:E,children:f||(0,B.jsx)(up,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,B.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,B.jsx)(lp,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...ee}=D;return(0,B.jsxs)(op,{ownerState:E,className:pa(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:pa(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ee,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),fp=wu((0,B.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),pp=wu((0,B.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`);R();var mp=W(`div`)({display:`flex`,flexDirection:`column`}),hp=W(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),gp=W(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),_p=W(dp)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),vp=e=>{class t extends z.Component{static propTypes={session:L.object,onSessionChange:L.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,B.jsxs)(mp,{children:[(0,B.jsxs)(hp,{children:[(0,B.jsxs)(_p,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,B.jsx)(gp,{children:(0,B.jsx)(pp,{})}),`Undo`]}),(0,B.jsxs)(_p,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,B.jsx)(gp,{children:(0,B.jsx)(fp,{})}),`Start Over`]})]}),(0,B.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t};R();var yp=Ks({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),bp=W(`div`)({"& table, th, td":{fontSize:`inherit`}}),xp=class extends z.Component{static propTypes={className:L.string,children:L.array,extraCSSRules:L.shape({names:L.arrayOf(L.string),rules:L.string}),fontSizeFactor:L.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,B.jsx)(Ar,{injectFirst:!0,children:(0,B.jsxs)(rc,{theme:yp,children:[i?.rules?(0,B.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,B.jsx)(bp,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}};R();var Sp=W(xp)({display:`flex`,flexDirection:`column`,position:`relative`}),Cp=class extends z.Component{static propTypes={ariaLabel:L.string,children:L.oneOfType([L.arrayOf(L.node),L.node]).isRequired,role:L.string,extraCSSRules:L.shape({names:L.arrayOf(L.string),rules:L.string}),fontSizeFactor:L.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,B.jsx)(Sp,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}};R();var wp=class extends z.Component{static propTypes={tag:L.string,className:L.string,html:L.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,B.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function Tp({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Ep=z.createContext(void 0);function Dp(){return z.useContext(Ep)}function Op(e){return ha(`MuiFormLabel`,e)}var kp=ga(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);R();var Ap=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Io({root:[`root`,`color${yu(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Op,t)},jp=W(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Hl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{[`&.${kp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${kp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Mp=W(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Hl(({theme:e})=>({[`&.${kp.error}`]:{color:(e.vars||e).palette.error.main}}))),Np=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=Tp({props:n,muiFormControl:Dp(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Ap(m);return(0,B.jsxs)(jp,{as:o,ownerState:m,className:pa(h.root,i),ref:t,...f,children:[r,p.required&&(0,B.jsxs)(Mp,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Pp(e){return ha(`MuiInputLabel`,e)}ga(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),R();var Fp=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Io({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${yu(r)}`,o],asterisk:[s&&`asterisk`]},Pp,t);return{...t,...c}},Ip=W(Np,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${kp.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Hl(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Lp=z.forwardRef(function(e,t){let n=_c({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=Dp(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=Tp({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Fp(f);return(0,B.jsx)(Ip,{"data-shrink":u,ref:t,className:pa(p.root,s),...c,ownerState:f,classes:p})});function Rp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function zp(e,t=!1){return e&&(Rp(e.value)&&e.value!==``||t&&Rp(e.defaultValue)&&e.defaultValue!==``)}function Bp(e){return e.startAdornment}function Vp(e){return ha(`MuiFormControl`,e)}ga(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]),R();var Hp=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Io({root:[`root`,n!==`none`&&`margin${yu(n)}`,r&&`fullWidth`]},Vp,t)},Up=W(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${yu(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Wp=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=Hp(_),[y,b]=z.useState(()=>{let e=!1;return r&&z.Children.forEach(r,t=>{if(!Tu(t,[`Input`,`Select`]))return;let n=Tu(t,[`Select`])?t.props.input:t;n&&Bp(n.props)&&(e=!0)}),e}),[x,S]=z.useState(()=>{let e=!1;return r&&z.Children.forEach(r,t=>{Tu(t,[`Input`,`Select`])&&(zp(t.props,!0)||zp(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=z.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;z.useRef(!1);let E=z.useCallback(()=>{S(!0)},[]),D=z.useCallback(()=>{S(!1)},[]),O=z.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,B.jsx)(Ep.Provider,{value:O,children:(0,B.jsx)(Up,{as:o,ownerState:_,className:pa(v.root,i),ref:t,...g,children:r})})});R();var Gp=W(Wp)(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Kp=W(Lp)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),qp=({label:e,className:t,children:n})=>(0,B.jsxs)(Gp,{className:t,children:[(0,B.jsx)(Kp,{shrink:!0,children:e}),n]});qp.propTypes={label:L.oneOfType([L.string,L.object]).isRequired,className:L.string,children:L.oneOfType([L.arrayOf(L.node),L.node]).isRequired},R();var Jp=W(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:wd()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:Ed()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:Ed()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Gu()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Gu()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Yp=/\\embed\{newLine\}\[\]/g,Xp=`\\newline `,Zp=`preview-prompt`,Qp=class extends z.Component{static propTypes={prompt:L.string,tagName:L.string,className:L.string,onClick:L.func,defaultClassName:L.string,autoplayAudioEnabled:L.bool,customAudioButton:L.shape({playImage:L.string,pauseImage:L.string})};static defaultProps={onClick:()=>{}};promptRef=z.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof ke==`function`&&ke(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${Zp}`.trim();return(0,B.jsx)(Jp,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Yp,Xp)}})}};R();var $p=e=>(0,B.jsx)(B.Fragment,{children:z.Children.map(e.children,t=>z.cloneElement(t,{"data-pie-readable":e.false===void 0}))});$p.propTypes={children:L.node,false:L.bool},R();var em=e=>(0,B.jsx)(B.Fragment,{children:z.Children.map(e.children,t=>z.cloneElement(t,{"data-pie-purpose":e.purpose}))});em.propTypes={children:L.node,purpose:L.string};var tm;typeof window<`u`&&(tm=new DOMParser);var nm=e=>tm.parseFromString(e,`text/html`).body.textContent,rm=e=>{if(!e)return!1;let t=nm(e);return!!(t&&t.trim())},im;typeof window<`u`&&(im=new DOMParser);var am=e=>{if(!e)return!1;let t=im.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},om=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARtJNt2S4sDaljMNB2dZfNr9gGn49hfzv1WA+PYX879VgPj2F/O/VYD49hrNqpeyvaz1A0d8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaBY5hSm7QpVZPsUb/rA+mLbV3Fx8zAoAAAAAAAAAAAAAAAAAAAAPhxOYqDcaNtOM3w+YD8bF5u296cnLsb4epAfnV887lrvvV6eLoB88topvSNRJW5xfsA0d/Z/nv8AaAd/Z/nv9oCPPpxTbrcFf+EBtvaZX0rafpe8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veBu0to4VZ7inLXn3TggP0cJnNOpLuae+km27q6XbxA/UoVac1GruKcZLg219nMD9qjUhOKUFO1r+Mn9rA3AAAAAAAAAAAAAAAAAAB8mPxLoU92ErSlxfYgOF7W7S5XszlmMzzNsfTw2AwNKVatVqLxVGK8Z29F7c3pZan6WbNeIuRatRrVM6RD8716jD25u3Z0piNZl5+9MPWv2828zPEYLZHM8Zs7kEZtUYYafcsVXjfSdWpHxot+RF2SdnvWuVbY+VMLgaIrxNMV3OXXfEdERxT1z7tEn2xmvF46uaMLVNu3yabqp6Znjjqj36ukMXjMZj68sVjsVWxNaesqlao5yl6W9WdTRbotxwaI0joctXcruVcKudZ6WyengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN7CYzGYCvHFYHFVsNWhrGpRqOEo+hrVHmu3Rcjg1xrHS90XK7dXConSeh3Z0Q9avbvYTMKGB2rzLGbQZFKa7rDEVO6YqgnxnTqy8aVvIk2tLLd4nLbXyphcdRNeGpi3c6N0T0THF749+rqdj5rxeBrijE1Tct9O+Y6Ynjnqn3aM+NltqMBtDluDzvKMXTxeExtOOIw9ZSsqkJap6cHZ8LKz4olN6zXh7lVq5GlUTpMKxZvUYi3TdtTrTMaxLmuX42U4NxqzaUVeMo726r2110t6voPzfo/To1FVhvqpGevFKwG4AAAAAAAAAAAAAAAAAfgZpWko1au/KSi7KV9fmt6AMQOvHthiMDsVlWy2FxDpxzvMJVa8Y/wAOlQSk4S7V3SdKX+qrcztckYWLuMrxFUfgjd0TV+0THvcTnjFTawdGHpn8c7+mKf3mJ9zCcqCWgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGaXUi2wr4zYvNdl8Ripz7y46NahF6qnSrpy3UuzfhVl/rMl+d8LFrGUYiI/HG/rj9piFSyPipu4OvD1T+Cd3RFX7xM+9ltlGKi9y8U3JqTk22mr+p+g4p2zkuFxNOreEIRppO0VdXfzAfSAAAAAAAAAAAAAAAA0VZUowfdpRjFqzcnZAcUziruUG4ylGcVfzNfe+ugGD/Xnqznidj4Saaj3xtbz/ABf7+ooeQ+cdjxJ3n7m/b8LFcoSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGUXUeqyp4va1Ra8Z5do158R+q5Pc+c37fhUTIPOOx4mbWVTiqcJVpWcZWi6fBevzXJ4ojmeGgpRjiJL9knHV66/N8yA3wAAAAAAAAAAAAAAAG1ilF4epv8N1+vl9IHDtoXGGH3VFq8XqtF6G+foAwg67zi8Tsju8P2/bstu4bk9fuih5D5x2PEnefub9vwsXihJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZOdSj/H7Xf8A0H2YknufOb9vwqJkHnHY8TNjZ7WV5VHBRfJ2TRPFEcwy9zUof4zudvFtfd+wD9IAAAAAAAAAAAAAAABs4tTeHnuSs0m351zA4ftG2sNpNqSacUn62Bg5124OOO2UdrJ/H0r6P/N+XzlDyHzjseJO8/c37fhYxFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAya6lN/je1iva8cDr/8AkE9z5zft+FRMg847HiZrbPb1NqO+oNvTRa8bpXehPFEczy9y7pG1Va6um5NfqswP0wAAAAAAAAAAAAAAAGxjJ7mHmrtNq11G4HDtpFL4uqt/F4JJJPXz8fmsBg912t14zZLdem7jrLs/J/P6Sh5D5x2PEnefub9vwsYihJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZNdSn8s2s/RwP94J7nzm/b8KiZB5x2PEzd2fhGcVGSun7yeKI5fgYVEoN4eMocp6byA/QAAAAAAAAAAAAAAAAbOLipYeeidk2r8gOG7RNzp9zcYqKW85pXkvMBg/12oRhidkk14/7fu9eFsNb9ZQ8h847HiTvP3N+34WMJQk7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMm+pSv23tY+xYH+8E9z5zft+FRMg847HiZubOS8ZRat2efiTxRHNcBUh3CFPeSkr6XV3qB9QAAAAAAAAAAAAAAADYxkHKhJqUk4pvR8V5wOGZ81GlKDbV1rfmla33uBg/wBdhp4rZK1tFj+bul+1/m+7KHkPnHY8Sd5+5v2/CxjKEnYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk11Kfyzaz9HA/3gnufOb9vwqJkHnHY8TN7Zzl9+0niiObYH8lh8/2sD6AAAAAAAAAAAAAAAAGxjYKeHld23dUBw3aNN0UpNJdrtfj6L2Awd67Di8bso4xaVsdpe/+jlDyHzjseJO8/c37fhYyFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyb6lLfxvaxaarAvh/wCIJ7nzm/b8KiZB5x2PEzb2fjvKLV7p3XjNdvYTxRHNsFTi8PCd5X1/hO3HsA+oAAAAAAAAAAAAAAAB8+Oq9yw8v2Ock1bxeQHEdoG6mC8Vt3krR+/vAwa666ti9kteMcd/uCh5D5x2PEnefub9vwsZChJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA+rLMqzPO8fRyrJsuxWPxuJluUcNhaMqtWrLjaMIpuT05I8XLlFqma7kxERyzuh7t2671UUW4mZnkjfLlP4FumP8A+U22X/6HFf8A8GH/ABXAf89H91P6s3+E4/8A4K/7av0PwLdMf/ym2y//AEOK/wD4H8VwH/PR/dT+p/Ccf/wV/wBtX6Nut0O9LmHg6lfos2vpwXGU8jxSS+dwPsbUwNW6L1H90fq+TsvHUxrNmv8Atn9HGsxyvM8oxLwWbZdicFiI6uliKMqc1/qySZl0XKLscKiYmOjew7luu1PBriYnp3PlPbwAZe7A/B/+HGw+QbZ/ha+Jd/Mtw2Y/Fu8PdO491pxnub/xhb1t617K/YjhsbnT7JibmH8hrwZmNeFprpOn5Xd4LJX2zDW8R5fThRE6cHXTWNfzOmOsX0FPoB2uy/ZXwp7+rH5bHMPjHxL4ruXq1Ibm73Sd/wDF3vdceGmu/wBh7Y/jViq9wODpOmmuvJE+qPW5/buxv4Lfps8Ph6xrrppyzHrn1OqTdNIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ/wC2HUh2G6Rdgsi2g2Eq09mNoauUYSpNJOWCxc3Ri26kFd05N8Zw87cZN3Jlhc24nA4mu1ifv0cKeuN/JPL1T8YU/FZRw2Ow1F3Dfcr4MdU7uWOTrj4Swt6R+inb3onzp5Ht1s/Xy+rJvuNa2/QxEV/CpVF4s1w4O6vqk9Dv8DtLDbSt+Uw1evfHXCfY/ZuK2bc8niaNOnknqlxIzmCAAAAAAAAAAAABk11KbfGtrUvxt3A2fL/OCe585v2/ComQecdjxM3tnL3j2a/rJ4ojmmCVX4vBqcd3XTd149twPqAAAAAAAAAAAAAAAAfPjZ7tFxUrOSfNa+bX9QHD9oKtB4ZQ34RndOytvWf2rUDBzrrxaxeybemmOVuf+b8ih5D5x2PEnefub9vwsZChJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA7W6q374XYf+Uv93M0uY/Rd7q+sN3lz0rZ6/pL1gIotr8qttXsth6tTD19pcqp1aUnCcJ4ympRknZppvRp6WP2jDXpjWKJ+EvxnE2YnSa4+MN3BbQ5BmVb4vl2eZfiqtr7lHEwnK3oTufK7F23GtVMxHU+037Vc6U1RM9bZ2l2T2Y2yyypk21mQZfm+BqJ71DGYeNWF+1KSdn2NWa4o9WMTewtflLFU0z64nR5xGGs4qjyd+mKo9UxqwQ61vU/w3Rzl9fpH6Mqdeps/TnfMMtnJ1J4BSaSqU5PxpUruzTvKN07tX3aRlzM9WOrjCYz8fJPr6J6e9NsyZXpwNE4vB/g5Y9XTHR3MTjtnDvXnoD/yH7Afzay7+zwIZtn0jf8Abq75XXYvo6x7FPdDDL4Rb/K5s9/Nyn/acQd9kbzK57f0hwGevPbfsfWWKZ2riQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2W6Pf3A7NfyPg/6mBBMb51c9qe+V+wXmtv2Y7ofVtTsns1ttktfZ3a3JMJmuW4lfsmHxNNTjflJc4yXKSs1yaPGHxN7CXIu2Kppqjlh7xGGs4u3Nq/TFVM8ksJenDqDZtlTxG0PQviamZYNXnPJcXUXxmmuL7jUdlUXZGVpacZtlC2RnOi5pa2hGk/mji98cnXG7qTza+S67et3Z86x+WeP3Ty9U7+tiFmGXZhlGOr5ZmuBxGCxmGm6dbD4ilKnUpyXGMoySafmZ3VFdN2mK6J1ieWHCV26rVU0VxpMck8b5j08AAAAAAAAAABk31Kt1V9rpO+8lgLdlrYi9/oJ7nzm/b8KiZB5x2PEzbyCU4qLjuLXVydrcSeKI5tl874eMGpXV9d12evID6gAAAAAAAAAAAAAAAGxjP8RJb8Yqz4q9/MgOHbQ1GqKS3XNK6klrxs0Bg512JXxuynDhjuSX+jlDyHzjseJO8/c37fhYyFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAB2t1V2l1hNh7v/ANpf7uZpcxei73V9YbvLnpWz1/SXrARRbXjv0wf5Wttv5x5l2/6TU7S77L8xs+xT3Qgu1PPr3t1d8uJRlKElOEnGUXdNOzTM6Y13SwYnTfDMHqS9Yva6W2uD6I9sM5xea5XmdKcMrqYmfdKmErU4Snub8vGdOUYyVm3ZqCjZXRwmbNh2Ps846xTFNVP4tOWJ3a9ffv1d7lLbt/7RGBxFU1U1fh15Jjfp1ftozpzbK8DneV4zJczoRr4PH4ephcRSlwqUpxcZRfmabROLdyq1XFyidJidY9ykXLdN2ibdcaxMaT1S8bNscgeym12ebLOt3Z5PmOJy91PLdKrKG98+7cveFvfabFF780RPxjVAsVY+zX67P5ZmPhOj1h6A/wDIfsB/NrLv7PAie2fSN/26u+Vt2L6OsexT3Qwx+EWv+F3Z/s8G6X9qxB32RvMrnt/SHAZ68+t+x9ZYqHauJc+6NugrpU6WnKpsPslicZhKc9ypjarjRw0HzXdJtRk1zUbtdhrcftjBbN3YiuIn1cc/CGzwGx8btPfhqJmPXxR8Z+jujBfB3dMleCnjdp9kMM2r7ixWJnJPsdqNvU2c/XnjAROlNFc+6P1dDRkbH1RrVXRHvn9HFNt+pJ09bGYSpj6GR4LaOhSW9N5JiJV6iXmpTjCpJ+aMWzNwmbdmYqrgzVNE/wBUafOJmPjLBxeUdp4WnhRTFcf0zr8piJ+EOhqtKpRqTo1qcqdSnJxnCSs4tcU1yZ0sTExrDmpiYnSXbXRt1W+lvpX2Xp7X7G5fltfLqtapQUquYU6c1ODtJOL1Xz8mnzNHj8w4HZt7yGImYq4+KeVvMBl3HbSsxfw8RNPFxxyNvpN6sPS30R7NLazbHKcHTy74zDCyqYbGQrOE5qTi2o8F4tr9rXaetn5gwO073kMPVPC013xo87Qy9jtmWfL4imODrpunV1ObppHLejLov2v6XNpJbK7FYOjiMfDDTxc1WrKlCNKLjFtyei1nFelowtobQsbMteWxE6U66eveztn7Ov7TveQw8a1aa+rc7Xl1E+sHFOUsmydJK7bzSlojSf8A2Gy/zT/bLd//AB21Pyx/dDH2pDudSVPfjLdk1vRd07c15jqInWNXLzGk6NIfAAAAAAAAAAAAAAAAAAAAAAAB7LdHv7gdmv5Hwf8AUwIJjfOrntT3yv2C81t+zHdDkBisoA616YOr50a9NWAdPavJ1SzKEN3D5thEqeLo9i3rePFeTNNcbWepttmbaxeyatbFX3eWmeKf064ajamxMJtanS/T97kqjjj9eqWAXTf1SukrocliM2p4aW0GzVNuSzTBUnejDtr0tXS9N3Dh419Cm7IzLhNqaUTPAuflnl6p5e/oTHa+WcXsvWuI4dv80cnXHJ3dLpA6JzgAAAAAAAAAyb6lNvjO1r4ySwNlfjpiPdzJ7nzm/b8KiZB5x2PEzd2dbSTSb8y+cniiOZYGFZ0ac1WtDXxHFdvaB9gAAAAAAAAAAAAAAAD58bZUJPzNfj7v/P0AcM2jpuUISjFSdrfjtvj2X/UBhB12Zb2N2T0X4uO4K1/ycoeQ+cdjxJ3n7m/b8LGMoSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAO1uqt++F2H/lL/dzNLmP0Xe6vrDd5c9K2ev6S9YCKLa8d+l+fdOlnbae7u720WZO172/bNQu+zI0wNmP6Ke6EF2pOuOvT/XV3y4iZzBd59TLYnNtrunjIsfg8JUngNn3PMcfXV1ClFQlGmm+2VRxSjzW9yTOczVi6MNs2umqfvV7o+O/4Q6TKmErxO06KqY+7Rvmfdu+MvUMjqyPHTpZzjC7Q9Ke2OfYGanhsxz/MMVQkuEqc8ROUX6mi8bNtTYwVm3VxxTTHwiEF2ndi/jb12nimqqfnL1O6A/8AIfsB/NrLv7PAjO2fSN/26u+Vn2L6OsexT3Qwy+EWa/C5s8r6+DlP+1Yg77I3mVz2/pDgM9ee2/Y+suvOqf0K4Ppp6ToZfn1OU9n8moPH5nGM3B1knu06Ka1W9J6213Yzs07M2uZNq1bKwfCtfjqnSOj1z7o+ejVZa2TTtbGcG7+CmNZ6fVHvn5avTyUsi2SyKdRxwmVZRlWGc3uxjSo4ejCN3otIxSRH/wCZibnLVVVPXMzKxfy8Nb13U00x1REQxuzr4Qroby7N54HLcj2lzXB0puLx1DDUqcKi8qnCpUjNr9JQfmOstZJx9dHCrqppn1TM/PSJj4auSu532fbucGimqqPXER8tZifjo746NekzY/pZ2Xo7XbFZi8Vgas5UpxnBwq0Ksbb1OpF8JK67U0002mmc3j8Bf2bemxiI0n5THrh0uA2hY2lZi/h51j5xPqlip1++hHKKGV4fpn2dwEMPi/jMMJncaUbRrRmrUq8raKSklBv+Fvw7Ne0yZta5Nc7PuzrGmtPRpxx9eje4rOmyLcURtC1Gk66VdOvFP06dz8v4OrpBjhc12k6MsZiIwjjYQzjBRlpepC1OtFPtcXRaXZCR+2eMFwqLeMpji+7PfH1+L8cjY3g13MHVPH96O6fp8GV3TpsL+Enoj2o2OhSdTEY3ATnhIpXbxNJqpRS9NSEV85xWyMZ9gx1q/wAkTv6p3T8pdttjB/b8Ddw/LMbuuN8fOHkJwLmhLOf4OfYfuOU7UdIuJpNSxNenlOFk428SEe6VbPmm50/nh5ic55xety1hI5I4U+/dHdPxUjIuD0t3cXPLPBj3b574+DvDrX9IL6Oug3aHMsPiHSx+aU1lGCcePda94yafJxpqpJPtic5lzBfbto26JjdH3p6o/fSHR5kxv2HZtyuJ31fdjrn9tZeVBaUUAAAAAAAAAAAAAAAAAAAAAAAAD2W6Pf3A7NfyPg/6mBBMb51c9qe+V+wXmtv2Y7ocgMVlAACSjGcXCcVKMlZpq6aHEcbGfpw6j+wnSG6+f7ASobK59O85U4U/2hiZ8fHpx1pN+VDTm4t6nXbIzdicDpaxP8yj/tHv5ff8XIbXyjhsdrdwv8uv/rPu5Pd8GB/SN0VbedFGcvI9udnsRl9VuXcazW9QxEU/xqVReLNejVX1SehSsDtHDbSt+Uw1evfHXCaY/ZuJ2bc8niaNO6eqXEjNYIAAAAAADJnqVq+K2telt3A8r8sRy5k9z5zft+FRMg847HiZv7Ocvv2k8URzPAStSjHk78IPjft4AfWAAAAAAAAAAAAAAAA28Rf4vUsv4L+wDhe0tRfF1Sas/wAZPt1QGDfXW/LNk/0cd/dyh5D5x2PEnefub9vwsZShJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA7W6q374XYf+Uv93M0uY/Rd7q+sN3lz0rZ6/pL1gIotrH/aLqQ9CO0+0GZ7S5nDPljM2xlbHYjueYKMO6VZuct1bjsrydlc6exm3aOHtU2aODpTERG7kiNPW5i/lHZ2Iu1Xq+FrVMzO/lmdfU+bB9Qzq/YWuq1fLs7xkFxpVszkov8AoKMvpPdecdqVRpE0x7v11eKcm7LpnWYqn3/po7n2H6PdiujbJoZBsNs5g8owUdXCjFudR6+NUqSbnUlq9ZNs5/F43EY655XEVzVPT9I4o9zoMJgsPgLfksNRFMdH1njn3unetb1lck6Jtlcbsrs7mVHEbZZpQlQo0aUt55fCas8RUt+LJJ3hF6uVnZxTN9lzYNzaV6m9djS1TOs/1ackfXo6WgzJt+3syzNi1Ot2qNI/p15Z+nT0PM0rqQPXnoD/AMh+wH82su/s8CGbZ9I3/bq75XXYvo6x7FPdDDL4RZr8Lmzyvr4OU/7ViDvsjeZXPb+kOAz157b9j6y6M6LumrpD6G62Y4jYDN6GAqZrGlDFSqYOlXclTcnFLukXu/jy4WvpfgjpNo7Jwu1IpjFU68HXTfMcfU5vZ21sVsqapwtWnC013RPF1uyKvTb1renrIMw2JwFPMdoMux8Y0cZHLskppKKlGdpVadNbibSveSunbmamNk7E2NdpxFUxRVG+Nap6uKZ3tvO19t7ZtVYemJrpndOlMdfHEbn5eB6mHWRx0I1F0duhCSunXzTBwfzx7rvL50ftXmrZNG7yuvVTV+j8KMqbXr3+S066qf1ZWdSrob6Veh6ltbgekLKKeX4TMpYKtgoRxlGupVIKsqrSpye67SpXb42Vji817VwW1JtVYWrWaddd0x6tOP3u2ynsrG7Li7TiqdIq003xPr14vc5p1yqFKv1btse6w3u5wwdSOvCSxlGzNdleqadrWdOn/GWwzTTFWyb2vR/lDzo6Ftvq/Rh0pbObbUqjjSy/GRWKXlYaonTrL/7cpW89irbWwUbQwVzDzyxu643x80o2TjZ2fjbeIjknf1Tun5PX6nUp1qca1GpGdOcVKMou6knwafNELmJidJXaJiY1h5M9ZXYV9HnTbtVkEKThhauNlj8Joku4V/2WKjblHfcP9Rlt2DjPt2zrV2ePTSeuN37oht/B/Ydo3bUcWusdU7/lxPR/q5bD/g86FNk9m6kHHErARxmKTVmq9dutOL/Rc93/AFUSfbmL+3bQu3o4tdI6o3R3aq1sLB/Ydn2rPLprPXO+e/Ril8Ij0hvMtq8h6NMHVfccmw8sxxqTVpYitpTi/PGnFv0VjtckYHydivF1cdU6R1Rx/Ge5xOecd5S/bwdPFTGs9c8XwjvYfndODAAAAAAAAAAAAAAAAAAAAAAAAD2W6Pf3A7NfyPg/6mBBMb51c9qe+V+wXmtv2Y7ocgMVlAAAAA/I2p2S2a23yWvs7tbkmEzXLcR/jMPiaanG/KS5xkuUlZrk0fvh8TewlyLtiqaao5YfhicNZxdubV+mKqZ5JYS9OXUIzTJ1idpOhrFzzHBQTqVMmxlVLEUktX3Gq7Kol5MrS04zbKFsjOVF3Szj40n80cXvjk927qTvbGTK7Wt7Z86x+WeP3Ty+/f1sO5RlCThOLjKLs0+KZ3kTrvhwUxpOkoAAAAAGTXUpt8b2s7d3A/3gnufOb9vwqJkHnHY8TN7Zzl9+0niiObYH8lh8/wBrA+gAAAAAAAAAAAAAAABtYm/xepu+SwOE7RNzW40o2jpJq/PzMDB/rr7vxvZK177uOv2f5uUPIfOOx4k7z9zft+FjIUJOwAAAAAAAAAAAAAAAAAAAAAAAAAAAHa3VW/fC7D/yl/u5mlzH6LvdX1hu8uelbPX9JesBFFtYH7d9ffpX2W232h2YweyuydXD5RmuLwFKdXD4lzlClWlCLlauldqKvbS5SMHkzB4nD271VyrWqmJ5OWNfUm2MzpjcNiLlmm3TpTVMcvJOnrcfq/CJ9M0lajsrsZB2d28JipP5v2wZVOR8BHHXX8Y//LEqzzj54qKPhV/+nCtseuf1gNr6FXCLa6GR4aqrSp5Ph44aS/Rq61Y/NNGxwuVdl4WYq4HCn+qdflxfJrsVmvamKiafKcGP6Y0+fH83SWIxFfF16mKxVepWrVpupUqVJOUpybu5NvVtvmdDTTFMcGmNIc7VVNU8KqdZbZ9fHrz0Ba9B+wFv/hvLv7PAhm2fSN/26u+V12L6OsexT3Qwy+EWa/C5s8r6+DlP+1Yg77I3mVz2/pDgM9ee2/Y+suDdUzoFwvTft1Xe0DqR2dyCnTxOPjC6eJnKVqeH3lZxUlGbbWqUWlZtNbLMu2atk4aItf6le6Oj1z+jXZZ2NTtbEz5b/To3z0zyR+r0oUNkejnZapOnSy/IMgybDyqSVOEaNDD0oq7dlovtb7WSX+fjr0RvrrqnrmZVv+RgbMzuoopjqiIY47S/CG9FOV4ythNndmc/zuFJ2jid2nhqVXzx3252/Sgn5jq8PkjG3KYqu1009G+Z+W75uTxGeMDbqmm1RVV07oj57/k7C6vXWVyzrBVs8o5Zsrisn7xxw0qjr4mNXuird0tbdirW7l9PmNXtvYNexYomuuKuFrxRpxafq2mxNv0bbmuKKJp4OnHOvHr+i9cT97dtn/3OE/tlE+ZY9LWeuf8AGX3NHom91R/lDyvLOiz1P6ofSC+kLoKyHEYmv3THZJF5Li25b0t6gkqbb43dJ0m782yM5mwX2LaVcRG6r70e/j+eq0ZYxv27ZtuZn71P3Z93F8tHX/Wq6D6nSH0x9FudUcAq2DzDG96M2aV70KO9ilG3DWlHFK77EbTLu14wOAxNuZ0mI4VPXP3e/gtXmPZE47H4W5EaxM8Grqj73dwmUeIxFDCYeri8VVhSo0YSqVKk3aMIpXbb5JJHG00zVMUxxy7OqqKYmqeKHj10sbdYjpL6SNoducQ52zbHVKtGM/xoUF4tGD/RpxhH5i77NwcYDCW8NH+2Pny/PVBtp4ycfi7mJn/dO7q5PhGjiRmsEAAAAAAAAAAAAAAAAAAAAAAAAPZbo9/cDs1/I+D/AKmBBMb51c9qe+V+wXmtv2Y7ocgMVlAAAAA626YOsF0a9CuAdXavOI1cynHew+U4Rqpi62mj3L+JF+XNpdl3obbZmxcXtarSxT93lqnij9eqGo2ptvCbJo1v1fe5KY45/TrlgF03dbbpL6Yp4jKaWJls9s3UvFZXgqrvWg+Vero6v6NlD+LfUpuyctYTZelcxw7n5p5OqOTv6Ux2vmbGbUmaIngW/wAscvXPL3dDo86JzgAAAAAGTXUp/K9rLcd3A2X/AOQT3PnN+34VEyDzjseJm9s5y+/aTxRHNME6vxeCUI7uuu9rx7LAfUAAAAAAAAAAAAAAAA2MXNwoSShJ7yaule3pA4TtJNOMVKlPVaPSy19oGEXXZSWN2TsreLjv4Sf+jlDyHzjseJO8/c37fhYxlCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAB2t1Vv3wuw/8AKX+7maXMfou91fWG7y56Vs9f0l6wEUW1489Ml/wvbcXd34SZnfS3+dVC77L8xs+xT3Qg21fP7/t1f5S4eZzAAAAD156A/wDIfsB/NrLv7PAhm2fSN/26u+V12L6OsexT3Qwy+EWX/pd2fdl+5ylr/wDVYg77I3mVz2/pDgM9ee2/Y+su0Pg43hfwfbWRhKPxlZzTdRc1DuEdz6d/1M0+etftVr1cH6//AMbjImn2W76+F9HZfXJ2U2o2w6CM3y3ZTCVsXiKGIw+Mr4WhFyqV6FOd5KMUm5NPdlZeQanK2Js4XaVFd6dImJiJ9Uz/AO0bjNOGvYrZldFiNZiYmY9cR/7V5eQoV6leOFp0ak605qnGnGLcnJuyilxvfSxYpqiI4UzuRqKZmeDEb3oX1EehvbTo42dz7anbHL6mWT2leGjhsBiIOGIp0qPdP2SpF6w3nVdotJpRu+KJdnDamHx12izh54XA11mOLWdN0dWip5O2ViMBauXsRHB4emkTx6Rrvnr14nYfXBhKfVv20jCLb7hhXZdixdFs1WWPS1nrn/GW2zPv2Te6o/yh5WlnRVlt8Hl0hd6Nu856OcZXaobQYVYzCRfD4zQTckvPKlKbf/dI4jO+C8rhqMXTx0TpPVP797ucj47yWJrwlU7q41jrj9u5n9KnTnKEp04ydOW9BtXcXZq67HZtehsmUTMKdMRPG6T64+362D6Cc7WHxPcsfn+7k2Fs7N91v3Xhr/iY1de1o6DK+C+2bSo1jdR96fdxfPRz2acb9i2bXpO+v7se/j+Wry3LIjIAAAAAAAAAAAAAAAAAAAAAAAAAPZbo9/cDs1/I+D/qYEExvnVz2p75X7Bea2/ZjuhyAxWUAAPydqdrNmticlr7RbW53hMqy3DL9kxGJqKMU3wiucpPlFXb5Jn74fDXsXci1YpmqqeSH4YjE2cJbm7fqimmOWWEvTh1+c2zV4jZ7oXw1TLcG7wnnWLpr4zUXB9xpu6prslK8teEGihbIyZRb0u7QnWfyxxe+eXqjd1p5tfOldzW1s+NI/NPH7o5Oud/UxCzDMcwzfHV8zzXHYjG4zEzdStiMRVlUqVJPjKUpNtvzs7qiim1TFFEaRHJDhK7lV2qa651meWeN8x6eAAAAAAAGTXUpTeL2stdeLgVfs/KCe585v2/ComQecdjxM3dnJw3VPeW72305k8URzfA/ksPn+1gfQAAAAAAAAAAAAAAAA2sVFSw87xTtFtX5acQOFbS1KkaailHdtdJ63d/QBg711rfG9k+22O05W/a9ih5D5x2PEnefub9vwsZShJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA7W6q374XYf8AlL/dzNLmP0Xe6vrDd5c9K2ev6S9YCKLa8eemNNdLu3CfFbSZnzv/AJ1U58y77L8xs+xT3Qg21fP7/t1f5S4eZzAAAAD156A7/gP2Av8A/DWW/wBngQzbPpG/7dXfK67G9HWPYp7oYY/CK2/C9s+9L+DdLn//AKsQd9kbzK57f0hwGevPrfsfWXXfVd6fZ9BG21XF5lQq4nZ7O4Qw+a0qSvOCi26daC/hShvS05xlJcbG2zDsb+MYeKaJ0rp30/WPe1OXdtfwbETVXGtFW6r6T7npnshtvslt/k9PP9jNoMFm+AqpNVcNU3t1tX3Zx/GhLtjJJrmiQ4nCX8Fc8liKZpnp/wDb1fwuLsY235XD1xVHR/7c+zvPkGExc87eV5fRxUVKc8X3CEaiTT3m52v231PHlbtVPk+FMx6tfo/TyVqmrynBiJ9en1cP2b6d+jLbDpDxXRlsvtDTzPNsFgqmNr1MPaWGShUjCVNVL2nUW+naN1ZPW6aM6/sfGYXCxjL1PBpmdI1498a66ckdbAsbYweKxU4OzXwqojWdOLdOmmvr6m9057K1ttuh/a/ZnC64jGZTXeHXlVoR7pTj5ryhFX5XPOyMTGEx9q9VxRVGvVO6fk9bYw04vAXbMcc0zp1xvj5vIMuiEuR9HW2OM6Ptusi21wLn3XJ8dSxTjC16lNS/ZIa+VByj85i47C043DV4er/dEx+k+6d7LwOKqwOJoxFP+2Yn9Y98bnsXl+OwuaYDDZngqndMPi6MK9Gdrb0JxUov1NEGrom3VNFXHG5e6K4uUxXTxTvYAfCE9IMc86Rcp6P8FiFPD7NYN18SoyWmKxFpbrXmpRpNfpv56dknBeRwteKqjfXOkdUfvr8EwzvjvLYqjC0zuojWeuf20+LFA7VxAAAAAAAAAAAAAAAAAAAAAAAAAAPZbo9/cDs1/I+D/qYEExvnVz2p75X7Bea2/ZjuhyAxWUkpRhFznJRjFXbbskhxnExn6cOvBsJ0eOvkGwEaG1WfQvCVSFT9oYafDx6kdarXkw05OSeh12yMo4nHaXcT/Lo/7T7uT3/ByG183YbA62sL/Mr/AOse/l93xYH9I/Stt70sZ088262gr5hVi33GjfcoYeL/AINKmvFguHBXdtW3qUnA7Nw2zbfk8NRp3z1ymmP2litpXPKYmvXo5I6ocSM5ggAAAAAAAADJrqUt/HNrFfTdwP8AeCe585v2/ComQecdjxM3dnFJRVnHefO2nMniiOb4C/xSnfjr9rA+gAAAAAAAAAAAAAAABsYxruEouputp2W9a/mA4RtHPeShvR4X4q7+js7AMJOu1u/HtlN2DirY7RvX/oCh5D5x2PEnefub9vwsYihJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6suzTM8nxKxuU5jisFiIqyq4atKnNLs3otPkjxct0XY4NcRMdO97t3K7U8K3MxPRufoZrtttlntD4tnm1udZjRtbueLx9WtG3ZaUmj8reEw9mdbdumJ6IiH63MXiL0cG5cqmOmZl+KZDHAAHZvQD0L590z7fZdk2GyvFTyOhiIVM4xsIuNOhhk05x7pwVSS8WK43d7WTa1G2tq2tlYaq5NUcOY+7Hrnq9UcrcbF2Td2riqbcUzwIn708kR1+ueR6uY3GZZs5kuIzDF1KeEy7K8LOtVk9IUaNODbfmSjF+oitFNd+5FNO+qqfjMrZXVRYtzVVuppj4RDx36Qdr8b0gbcZ5tnj3N1s5x1XFbsndwjKXiQ9EY7sV5oou+CwtOCw1GHp4qYiP39/GguOxVWNxNeIq46pmf293E48ZTFAAAAAAAAAAAAAAAAAAAAAAAAAB7LdHv7gdmv5Hwf9TAgmN86ue1PfK/YLzW37Md0OK9MHWD6NehXAOptXnCq5lOG9h8pwlqmLrdj3b2hF+VNpcbXehmbM2Li9rVaWKfu8tU8Ufr1Qwtqbbwmyadb9X3uSmOOf065YBdOHW06SumSVfKaeJls/s1OTSyvBVWnWjqrYiqrOrx/FsocHu3SZTtkZawmy9K5jh3PzTydUcnXx9KY7XzLi9q60RPAt/ljl655eri6HSB0LnAAAAAAAAAAAAZN9Sl2xW1t2krYFu682I5k9z5zft+FRMg847HiZu7NpRUUr8+Lv2k8URzbAK2Fh57/AGgfQAAAAAAAAAAAAAAAA2Mar4ad76di9wHDNok40nJX1Wrtf0a8uHqAwf67CisZsmle6WPTurf6OUPIfOOx4k7z9zft+FjGUJOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkB1G8uwOZ9PmCw+Y4Ghi6Ky3GS3K1JVIp7lr2aa5/Scxm6uq3syZonSdYdRk+im5tOIrjWNJemNKjhsFQVKhSpUKNNO0YRUYxXF6LREimZrnWd8q/ERRGkboYYddHrQbPY7Z/E9EHR5mlDM6mPtHOsww1RTo0acZp/F6c07TnJxW+1oo+Lq21Hv8q5eu0XYx2Kp4MR+GJ456Z6PV/wC1n+a8w2qrU4DC1cKZ/FMcUdEdPr+HVg6UVOAAAAAAAAAAAAAAAAAAAAAAAAAAAMrtvOvZtC9kMp2M6J8vqZMsJluGwuKzbGQhPEucaUYzVGn40IK6fjtyb4pRepxWDyfa8vXiMbPC1mZimOLj5Z456t3vdtjc43fIUYfAxwdIiJqnj4uSOKOvf7mLWY5jmGb46vmebY/EY3GYmbqV8RiKsqlSrN8ZSlJtt+dnZ0W6LVMUURpEcURxOMuXK7tU11zrM8czxvmPTwAAAAAAAAAAAABk11KVfF7WXs1u4Ff2gnufOb9vwqJkHnHY8TN7Zzl9+0niiObYH8lh8/2sD6AAAAAAAAAAAAAAAAGzjHFYWq5vxd1p6X08/mPsa67nydNN7hu0zn8XUd17mjvra9+HYfH1g311vyzZP9HHf3coeQ+cdjxJ3n7m/b8LGUoSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADfwWPx2W4iOLy7G18LXimo1aNRwmr8bNanmuim5HBrjWOl6orqtzwqJ0nofs5p0hbfZ3gll2dbcbQY/CKO6qGKzOtVpqPZuyk1bV+s/C3gcLZq4du3TE+uIiPoyLmOxV6ngXLlUx6pmZ+rj5ksUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZNdSn8s2s/RwP94J7nzm/b8KiZB5x2PEze2c5fftJ4ojm2B/JYfP9rA+gAAAAAAAAAAAAAAABtYpSlhqqjPde69bXPsdL5PQ4VtNu9zirPetxvpa/YfH1g711vyzZP8ARx393KHkPnHY8Sd5+5v2/CxlKEnYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk11Kfyzaz9HA/wB4J7nzm/b8KiZB5x2PEze2c5fftJ4ojm2B/JYfP9rA+gAAAAAAAAAAAAAAABtYqEamGqxnG63W/n5H2J03w+TGu6XCtppPucY6Wtfhrx7T4+sHeut+WbJ/o47+7lDyHzjseJO8/c37fhYylCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAya6lP5ZtZ+jgf7wT3PnN+34VEyDzjseJm9s5y+/aTxRHNsD+Sw+f7WB9AAAAAAAAAAAAAAAAD58d+SVeP4vJtNff1duh9p43yricP2mj+11PdXJXs78fV+s+PrBvrrflmyf6OO/u5Q8h847HiTvP3N+34WMpQk7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMmupT+WbWfo4H+8E9z5zft+FRMg847HiZvbOcvv2k8URzbA/ksPn+1gfQAAAAAAAAAAAAAAAA2cXf4rVUW03Bq64rz8GIJcN2jVOWGctd6Nlqrc/pAwc666axmyd014uO+zDlDyHzjseJO8/c37fhYyFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8vPNqdndmqcaufZzhMEpK8VVqJSku1R4v5kYmL2hhcDETibkU6+ud/ujjZmE2fisdMxhrc1aeqN0dc8T8nK+lTo9zmssPgNq8E6spKMY1XKi5N8lvpX+YwcPmHZmKq4Fu9GvTrHfEM7EZd2nhaeHcszp0aT3TLlSaklKLTT1TRueNpeIAAAAAAAAAAAAAAAAAAADJvqUp/G9rJcksCv7QT3PnN+34VEyDzjseJm3s/UjTUXNtJu17Pzk8URzjA/ksPn+1gfQAAAAAAAAAAAAAAAA28RGpKjKNJJuSa1YHC9oIVJwVo9t227fMub9AGEXXeX7a2Rldu6x/F66fF1+ooeQ+cdjxJ3n7m/b8LF4oSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4t0k7ZQ2I2VxObxcXipfsOFi7O9Rp2dnxSSb+a3M1G3NpxsrB1Xo/FO6nrn9ONuNhbLna2MpsT+GN9XVH68TFC+0+3e0MIUaGPzfNcwquNChRpzxFatU5QhBJuT/ipehciL38RdxVybt6qaqp5ZWqxh7WFtxas0xTTHJD6dtOjrpA6OsZSwW32wef7MV8ZDutChnGW1sJOcL8YqrGLa86Pxfs7Q6BOknHPNo7D5tinXwleM+99SbcpwnFX7nfjuOKbV+FrI7zKG27kXo2fenWmfw9GkcXVpHucFnDYluqzO0LMaVR+LpiZ4+vWfe7/ACkpoAAAAAAAAAAAAAAAAAADJzqTxcsVtYkld/EEvViCe585v2/ComQecdjxM28hjKO4tWnxSTX0/OTxRHNMA5woxo1IS4XjLimn9nzsD6wAAAAAAAJfWzT42QBNPVO4FAj3tWrPTRecA3w0vf6AF9bAE07pPhxAjTcHF2bas9NPUBxfPsPKVp8UpSjJcX4urd1btAw566uyuIxmyuV7S0aNSp3oxkqdZ20p0qyScm+zukIR+dfN2uSMVFrGV4eqfxxu6Zp/aZn3OJzxhZu4OjEUx+Cd/RFX7xEe9hyVBLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdLdZ2vOGRZNh0lu1cTUcu3SKt9pwee5nyNnrnuh3uQ4jy96eiO+WQXwLezuTZl0+7V59jsBTrY7KNnl8SqzV3RdWqozcextRSvxtdc2TZS2XHwwuSZTmHVPp5tjMBRq4zLdo8G8JXlHx6O/CqpqL4pSSV1wdl2IDxu6HmvwlZEr8cQ+X8V+o22wqpo2jZmn80NTt2mK9m3oq/LLMAt6GgAAAAAAAAAAAAAAAAAAzC6mOy2IweyeabSV6E4d9sZGNF2/wAZSoXSmu1d0lONvMyX53xUXcZRh6Z/BG/omr9oifeqWR8LNrB14iqPxzu6Yp/eZj3Muslw8rQXjOEHHjZtNJ8fUvn7OJxTtnM8JFRo3i7p6J9qSsn89r/OBvgAAGinJzhGTdna0kuF+YGsABJJuLUZWbWjtwAoEcU7taNq11xA03cUlbRXvz0+24GpNO6T4cQKAAjSejVwDV7atWd9APyc4w0KkKkXFN7rmknx4X9Gm8/PZAdZ7Z7L4LaXKsTlGa4ONbB4ym8NWpyjdShK6dufPlrfW97H62b1eHuU3bU6VUzrEvyvWaMRbqtXY1pqjSYYF9J/Vt202Jx1bEZBg6+e5S3vQlhoOpiKMW9I1IJJy5+PBOOjvuvxVV9lZqwmOoinETFuvp3RPVPJ1TOvXxpNtbKmLwNc1YeJuUdG+Y645euI06uJ1LicLicHVlh8Xh6tCrHjCpBxkvSmdPRXTcjhUTrDl66Krc8GuNJbR6eQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0j1oP8A1TkP/ia3+zE4PPf+jZ657od9kP8A1r3VHfLJj4E1L8M23r/7P0f68mylMtfhef3n+J1/94sv/wBmqB4w9DkN7pJyOV7bmIv6fFa/WbTYvpCz7UNXtv0de9mWX5cULAAAAAAAAAAAAAAAAG7hsLicZVjh8Jh6terLhCnByk/Qkea66bccKudIeqKKrk8GiNZdt9F3Vt2z24x1LE7Q4TEZDk8HvVamIp7mIqxT1jTpy1Tdrb0lZXulK1jmNrZrwmBomnDzFy5yacUdcx3Rv5N3G6nZGU8Xj64qxETbt8uu6qeqJ753cu/iZ2bGbL5dkOXYHKMtwtLD4LB0o0qMYrSEY2SjfW78/N9r1JRevV4i5VduzrVVOsyrFmzRh7dNq1GlNMaRDsbJsNOn3Kaptyb33Faacfm+ftt2M/J+rkUI7sVG97JK/wDzA1AAI72dnZ8gNELS1taUW0+fHW1+zh9AG4AAAAAADTKF5RknZrS/m7PoQCM7u1rXV1fi/mA1AAAG3Vpd0XHk/N9PLVIDjecZSoqbtuvWSnG61tdWSv61wb9AHDMyyOClKo8NepBtKnKO7a997TlwWi83YB+LidnI1tZ4fWbkpX5PxbSfLjJffiH5ktloKyWH3ZOVlePN8rc1r7uAG3PZTDWk6bbUXbm9Eld34cftQGl7JUl/CW62kpWlbW/Hs4fdagHsnBLW0bK7clJLzL0v9TAPZKCvpZKN25KSALZGMnFRWjtq1Li/t94EWycJRvBbzSd7KX23Ar2Spp7t05P8WylrrYAtkVa8o217JXta9wItkoys4RvFvR2l22Ar2ThGydruTS0lZ6ff1gFsje/iWt5pagR7Jwcmoq/pUr8E72v5wKtkYpKU1Za30loBFsmm2lFXXFeNdekCvZKMY70lZbt9IydvMwJ4JLelDdV4uzS3tGBfBGKV5Rf4t7KMnr2ATwTW9u2Tdr2W9wA1LZFaOUbXveyk2gNL2TirXilfhfe9X0oCrZG9/EtbzS1AS2Sir2jp51JcrvmBFsmpJOMU03xW8BqeyK4KN3fslawGnwTjdLdV3wXjagVbIp6uNtbcJX9IDwR10hxdlpK/GwGlbKKSbhFSt2bwGt7IRV1a7ukrKVmBpeyaSbcUrK7vvAWOySk14qs+dpWAeCKsrRd7XekgI9k4xV5RSS7d778mBVsjd23LaX4S9QB7IrlF8Fe6kgI9k4xV5RSS7d778mBVsjd23LaX4S9QB7IrlF8Fe6kgI9k0k24pWV3feAsdklJrxVZ87SsA8EVZWi72u9JAPBHlucXbhIDStlFJNwipW7N4DW9kIq6td3SVlKzAngj/ABPokBPBON0t1XfBeNqBVsinq421twlf0gHsj2Q05aSAj2Stxh9EgC2TUknGKab4reA1PZFcFG7v2StYCeCP8T6JAR7JxVrxSu7L8bj92gKtkb38S1vNLUA9kVd7sW1e2qkgHgj/ABPokBgl8K5lEcr2D2Ge6t6pmWK7b27nTfP0oD874E3/ACzber/s/R/rwMtfhef3n+J/nFl/+zVA8bugDbHI+j/pl2T2y2lq1KWV5VmMK+KnTpd0nGmk02o83qgPQfLfhLerzi83jgMVs7thhMDKpuPMK+EouEVr40oQrOVrJ2STfDTjYMqujvaHYbpY2cwu13R3n+FzzKcX+LXw0pb0HzjODtKE1zjKzWt7Acl8Fry3Y0JPS/O9u3iBfBSX+jT+n2gPBSX+jT+n2ga4bJJqTnBwtG+qlr9IE8E024qKvF2a8bQC+CP8T6JAPBH+J9EgHgjHccpKzXK0gJ4JptxUVeLs142gF8Ef4n0SAeCP8T6JAVbIrdvu62TtaXPl/wAgNK2Ti3uqKva9vG4Afbl2y8YTlCorRcXJOzdnbjr+rUDk2W5LGnGbkoxlzUb3aVr6vz7y5PTzaBy7L8qjRmpyUXaN47qb3eF35+DYHI8FhHh/Hl+NKKVnq49uvq9QH1gAAGipLdTlyinJ9nz/AH5AWEdyKiuC0Xo5AagAAAAAAANurayTfF2VuOumn37QNavZXVnzAoAABtYml3WnupXfov5u1doH5VTJ6uJklUgocbtu6V+xJ6WbbA+Cts9OUtYR5vxJa7rs+GnZbhx83APnxGzfi+JhIQTlGylDhK+9or+d9vNAaIbPw3k3RhaUIySUXuu/B69u8/naXJAIbPJ71Pua7o7Jvdbu2uGvmjf1+dgI7PwlLdjTjreySbT9/i+rXmwIsgp79+5xaVkkldat2XDzvX0eYBPZ2Mp7ihFyuoxitNeHzcX90BZZDSnuzUYxi/Git211yeqAkdn4dzUVTUUtHLdcnbhr5tF6XfncCLIKMHvunCVk278EtHfh5vt7WBZbOwUpRqpKSdmrW1562+kC+D8JLdhSildybSvdLVvhyu/oXYBpWz9BpNqLuteXFei4Fns+mu6OEYxXHxb2vqlw8/Ds8yAd4KMdVGLas1yaa1+1ASWzsYWcoxUUmvxddNOzV3t9IFeQUYp7sYt9vB8nbs5AHs7GNm4xUeGsezjy46ev0gO8FBwsoxvJPXg1dW7OwCS2eju77hFJcfF5vW2i7H9gFWQUEpLdjvLS/Cz52aX0gFs7F33YR5vhfS93y8/2eYCQyCimt+MHrbh6+Xo+6APZ+k5b27HS78yWj7OGn29rAPZxRk4yjBS4JNW9enoA1d4aEorcjFJO/C17cLpoDStnI7nixilFcWr6cE728328wKshoRd5QhJcOHN+hen7sCS2dpSlolJt/O+K7PP97ICvZ6F1KSglJby8W1128ACyGhbd3Ypu+qXFefS3H9TAkdnae94sU/p52XL+N9nYgHg7CLamoXXmt+oCvIaEtN2MbK9ktNfSuz2ASOzkG3GEE29FpfW3o/i/b5wC2fpLioPXs9wFeQ0ZPhFWSsktF6192BI7OQbcYQTb0Wl9bej+L9vnALZ+kuKg9ez3AV5DRk9VFaOySukvV23+0CR2dp73ixT+nnZcv432diAeDsItqahdea36gLLIaL/gQSXJa6v5vN9gEeztJu0YqV3ZW4812ef72QFez0LqUlBKS3l4trrt4AO8FLd3Ywp3el72v6dAIsgoNKUbcecbfqALZyO54sYpRXFq+nBO9vN9vMCxyCindwpy9P8AyAneCi5eNbV8bX9PL0fSA8HqSd1GLtdvhZLR9nm+3tYFezkYScZximuTVn9gCWQ0d227BJcbc/oAng9RacXu3Wj/AF2dvpAq2di77sI83wvpe75ef7PMAjs/SVnKNOXb2fYAeQUm7tR9i9XYBHs9QlHlqvRx+YDzt+GWy74j0b9HslT3VPN8ZyXHuVN8vT9gHXfwJt/wzbe/zfo/14GWvwvP7z/Ffziy/wD2aoHh7s/kecbTZ5gNndn8BiMdmWZ4iGEwuGw9Nzq1qk3uxjGK1bbfADvzpZ6gfWj6F9gqfSZtx0erDZRCEKmNeDxlLE1MBvJNOtCm3uK7s2rxT4tAcD6CusV0odXfNc0znozzmhhK2bYKWDxVLE0FWoyWu5U3HpKpCUm4tp2u07ptAfs1uuZ1pq+ZyzmfTftR3dtXUcVajfjbuSXc7acN22nCwGbHUs+EnzHbDanL+inrAfEPjGa1aeGyzaGjRhh4zrtWjTxME9xOUtFOCSvJXiuIHpjLIaS1tSilJR4N8b25cfxvo7EBVs/SavuxXq9gDwfpdkPo9gFWQUbreUWly+6ALZ6m34lNPe8VRjG+qXC7XYk/6XnAng/S7IfR7AHg/S7IfR7AKsgpXvKMJen/AJATwdhxjBO6eijfglfW36Ovp7WA8H6XZD6PYBVs/STut1NffsA3KeT7jj+yWUWmrPhx5fOB+tgsos9+U5PegnJtr8a6a7eCf/ID9WjhaVBWUU3zk+LA3gAAABtpuorxdotKz7U/pQGtJJJJWS4ICgAAAAAAAaZw3ra8NUnwvyYByau3HRc/YgLdXtfV8gKAAAAJZXvbVcwJKEZXUldPinqvUBVFK1layskuAEUIq9la7u7aXYBwg5Kbit5cHbUA4RlFxkt5Pk9QEYwS3Yx3VF8ErL76gSVOlvd0lCG9deM0r35Aat1NNNXUuKeoGmNKlB3hTjF9qVgK6cJRUZxUkvK1+0CRpU4pqEFG/HdVvsAs6dOdt+EZW4XVwJGlTimoQUb8d1W+wCzp05234RlbhdXAkaVKDvCnGL7UrAV04SiozipJeVr9oGnuNCLUlRgmmrWiBr3U001dS4p6gaPi9D8zT/ooDVGMEkoJJRbso6ICSo0pPelSg2+bigEaNKL3o0oJrmooCuEZRcZLeT5PUDT8Xofmaf8ARQGqNOEVuwioq9/F0AkqVKbvOnGT7WrgT4vQ/M0/6KA1qKVrK1lZJcANDo0JSd6MG+LbiA+L0PzNP+igNdtbgaHQw6snRp68PFQD4vQ/M0/6KA121uBo+L0PzNP+igHxeh+Zp/0UBrUUrWVrKyS4AaHQottujBt8XuoB8Xofmaf9FAao04RW7CKir38XQCSp0qj3p04yfDxogT4vQ/M0/wCigLGjSi96NKCa5qKArhGUXGS3k+T1A0qhh3dKjT04+KgHxeh+Zp/0UBqUIxSUVupcEtEBJUaUnvSpQbfNxQE+L0PzNP8AooAqFFNNUYJrg91Aa91NNNXUuKeoGj4vQ/M0/wCigCoYdpNUIa/xEBY0qUHeFOMX2pWA2sbicBgcHUxmZYihQwuHjv1KuImowhFcZSlLRLzsDojOOvT1PMizSpk+YdOeyaxVKbpzVKv3WMZLk5wTitdOIHcOyO12xe32SYfaPYvPcqzrLMVFTpYrA16danNeaUW0B53/AA3FOnDo16NtyEY3zjHXsrf9FSA6h+BNv+Gbb3+b9H+vAy1+F5/ef4r+cWX/AOzVA8vvg5oQqddbosU1FpZnXklJX1WErtfOnr8wHuN1pqFPE9W3pPo1aMasJbKZnvQlHeTXxeb1QH82GX4WpjcfhsHScVOvWhSjvcLykkr6PTXsYHt9lnwSPVb/AAVQ2WxmW5rX2lqYFp7Rd8KsasMY46VY079z3FLhBxaavze8B4qbU5Didjds822YljFLE5HmdfAPEQbinUo1XBzT4rWN0wMmMR8KH1yFh8Ll+C6RMNgqGCw9LDRjSyyjvT7nFR35ympSc5WvLW13wAyN6rfwum0GI2iwOyfWWy3AVsux1eOHhtLgKTpTwk5KyliaPjRlC7fjQS3Ul4rs2g9XcvqZZmOCoZjl1ShicLiqca1CtTanCcJRTjKL5pqzv5wPo+L0PzNP+igNcYxit2MUkuSQGiVKjOTcqUW+bcf1gT4vh42Xcaer0ukBfi9D8zT/AKKA1RhCCtCKiuxKwElSpTd504yfa1cCLD4df9DD+igHxeh+Zp/0UBqhTpwvuQjG/GysBqAAAAG3Z7705pq+qXn/AFAbgEur2vq+QFAAAIrNuSd+XHsAoAAAAAAAACWV721XMCgRq/OwB30s/SAd+SAJWAJ3SbVvMATvfzAG0rJvjwAoAAAAjSdm1w4AUAAAiXHW9/oAO/JgErJJcgGt+GgFAl9bW+cCgRO9/MBQJ4sk4uz5NAUAAAARq6aTt5wKBErJJcgCvZXd3zAoE1vw0AoEbsm0r+YCgRJK7S48QF9bAUABE00mndPgwKBGuGtrfSASsBQJrfjoBQAE1vw0ANJ6NXAoEvra3zgUDyV+GH6zm08NrsF1btmMyrYLKcPgqOZZ53GdvjdSpd0qUmn+LGKu4u920+QHnVlXRZ0kZ3sziNtMn2GzrHZFhLqtmFDBznQh6ZRVtL/Q+xgc06vHWe6VOrRtpR2q6Os9qLD1aqnmOVV5ftTHwvrGpDhF2taUdVZa20Ay4+ET60mwXWq6uPRhtrsfP4rjMPnONo5pldWadbA1+40rxklxi+MZcGrAb/wJv+Wbb1f9n6P9eBnn8Il0LbY9O3VizrY7YHBvG53hcZh80w2Cj+Pi+5b29Shf+E1NtegDzq+Dj6ofT5lvWl2a292u6Oc42cyLZGWJxmMxWZ4V0VOboVKcKVNSacpOU1qrpJO/ID1e60Kb6uHSbZf+6mZ/2eYH83Gzn7ocr/8AG0P9tAf1IYKSlhaf42kVx56cfQB/Mp00X/DVt3ZpPwpzTVuyX7bqcwPQ7qf/AAVXRl0v9A+S9KPSttPn1LMtrMNPF4PDZXWp04YLDOUo0m3KD36rUVJ3W6t61m9QMDus50JYnq6dNu03RBWzbvnSyWtD4vi3FRdWjUhGpCTXKW7JJ8NU+QHs58Fhthmu2PUx2RhnOIqV6uQ4vHZPRqSlq6FKvJ0o6cownGCXZBAZcgANFSTi4JO15WfaBqSsBQAEaT0auBQAAAAAAAAAABLa3uwHjW5N39GgC+trfOAsr3tquYC1kkm9PnuA8a3Ju/o0AX0V01fl2AE07pPhxAoAAAAAAAAAAAAAAEsr3tquYC2twDXDW1vpAO+ln6QDvyQC+trfOAbtbzgG0tW7AUAAAAAAAAAAARpOza4cAKBErAGr87AUCK+t36ADvZ2V3yAoETvysAbsBQJdXtfVcgKAAAAAACNJppq6fFAUCNXTT5gUABErJJu/nAoEV7K7u+YFAivzQBuybSv5gKB4f/DBbCYzZzrRx2tdKSwO0+UYatSm27d1oxVOpFf0Yv8A1gMsfgb9v8k2o6As96MMVTozxezuaV6lXD1Ypqth8Ruy3t21mt68Xf6bgdM/Cb/B+5XsJg8X1hehbJ3h8ndVPaHJ8PTXc8G5f5zTX8GDdlKPJyVuIHmcpyUHHedr33eK4cfSB6N/Amu/TLt7aTivB+h4i4P9n4vz+1gexTV7eYCgfFneTZbtHkuYbPZxho4nAZphauDxVGXCpRqQcJxfmcZNfOBhRsT8Ef1cdiulPC9IMc52kzTB4DGxx+DyPGVaUsPTnGalFTnu79SCaWj111fADOKK3YqPZotb6elgfzm9YzoG6WdnOsbtvspitg86xGMxe0uNq4P4vgqk44ulXryqUp0pbtpKUJxd1e19QPdzqo7C5/0ZdW/o62C2poRoZtkuz+Fw+MpJ37nV3FKUL87OTXzAeL3wo379Tbj/ALvAf2WmB6QfBBXfU9wzaSb2jzHnrwpJX+b6LelhmyAA26qbimlqne64r2+y4GtNNJp3T4MCgAAAAAAAAAAAAAAAAAAAAAAI0mmmrp8UAtxs2ru4Bb2u9bjpbsAm8rXl4tld35AagAAAAAAAAAAAAAAAAAAAARpNNNXT4oA1e3mAW1vf5gHja8Hrpy0AN2TaV/MAbtbzgLq9r6vkBQAAAAAAAAAAAAAAAAABEkkklZLggCVgFtb3+YBrfjoA1vw0AN2TaV/MBQIndJrmATTuk+HECgAAAAAAAAMIPhZugqp0pdXZ7c5PglVzjYTErMFuxvUqYSfiVYJ2bst5TtpfdQHmd8Ht1gaXV+6x2R5vnGKrU9n8+fejNFCWkY1WlCo1z3ZW7NGwPf8AzPLMj2tyHFZPm+Dw2ZZTm2FlQxOHqpTpV6FSFpRkuDTjL6QP56Ou/wBWzHdWTp1zjZCkt/IMxnLMcjrXu5YSbdoS0spRd4210SfmQZO/AouUumfbpxa12fpOd76Lu9oxXn+iy43A9inxWr48kBQAGinpdNJNvetftA1Li1d9vADTKjRnUhWnShKpTvuScU3G/Gz5XA1geAnwof79Pbn9DA82/wDNqfaB6R/BB73+B1g22t17RZlursV6d/pv99EGbAACO9nZ2fIDRTtFula1tY35rzejh6gNwAAAAAAAAAAAAAAAAAAAAAAAAAAI1dNPmBN3xt5Pjo9PT7QG81+NG3DhrqBU09U7gUAAAAAAAAAAAAAAAAAAAAAAAAARRSbklq+ICztpLnzQDW/DQAnx0tb6QG8rKTdk7cdAKAAAAAAAAAAAAAAAAAAAAAAAjim02tVzAoESskm7+cAr2V3d8wCvzQBPjpa30gL62AXV7X1fID4s8ybLtosmx2QZvho4jBZjh6mFxFKSTU6c4uMlr5mB/OR1seg3OOrx06bRbB46h3PDUsXPFZbUUWozws5OVK1+LUXG4HsH8GV1lodPHQLg8gzzMe7bU7GRhlmPhLWdSjFfsNbhqnGyfJNWAx7+G52VzDE5T0b7X4fK9/C4SpjcHiMXGDbg5dzlGEmvxU9Wr2u78bAcH+BJyjMqnSV0iZ9DBVXgKGUYTCzxG74iqzqyahe1r2i3a/C3agPX4AAA0JS3lvK9lx7H939+Yala7tfjrcCgAP53/hCtocPtP1y+lHM8JUhUpU82hgoyjzeHoUqMr+fepsD1Z+CYy14DqX7PYpRtDMc3zXE03e90sTKlf10n7uCDMcABt1fxqS7Z/qYG4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASyve2q5gLaOzavz7AJvWbu7LRaq2v3sBqAivZXVnzAoEvra3zgUAAAAAAAAAAAAAAAAAAAAAAAAlle9tVzANXt5gDXDW1vpAa346AN5Wcm7JXvfQBrfhoBQAETuk2reYCgAAAAAAAAAAAAAAAAAAAAARpOza4cAMD/hYOrDU6WuiOl0rbJ5Q8RtLsWpVMQqME6mIy+zc1prLc4pekDzU6h3WRn1Z+n3LNo82xk6GzWcLvXn0dbRoSfi1WrXvCWt+ScgPfvN8i2K6Udk4YLP8py3aDIc1owrxpYinGtRqwlG8ZK/mejWuoGjYno42D6N8qlkmwWyeW5DgpzdSdLA0FSU5PnJrVv0sDkgGlXUnGUk76rtArduVwCik20rXAoEbsm3yA+XN80wWR5Tjc7zKsqWEy/D1MViKj/gU6cXKT+ZJgfzDdJe089tekXafbGrJynnmb4vMZt8XKrWlNv1yA/oK6iew9Xo+6o3Rhs5iMJLB4pZJDHYmk0lJVcTOeImn571Xfz3A76AARuzWj9KAkVFNqL0VlbkvZyArvyYFAjvZ2V3yAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQ1JXklvNcOT466/fgBqjJSV0/cBQAEtrcCgAAAAAAAAAAAAAAAAAAAAAAAAAAAARpNNNXT4oAk1bxr2Wt1qwJvNfjR7XpqBbq9r6rkBQIlYCgAAAAAAAAAAAAAAAAAAAA2cZhMNj8JXwGNoQrYfE05UatOavGcJK0otdjTaA/n7+EE6sGP6tvTnmNHA4KpHZXaWpUzHJa1vEjCUvHo38qMr8lo1xAzu+CU62lLbbYqfV+26z+M8/2ejKpkksTUXdMVgEl+xptpydN3VrN7ttdAPRwABpkrq64rVAIyu2nxT7Laff7ANQAABj/wBfTpFh0X9UrpFz9VJwr4vKZ5Nh3Fre7pi/2unrxsqkn81/OB/P30b7KYvb3pB2d2NwmGqYqvnma4XARpw3t6bq1ow5Jv8AhAf085TluHyfKsHlGEio0MDh6eGpJKyUIRUUrctEgPrAAbcW3VlroklZ/avvy8wG4AAAAIkkkkrJcEBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEaTs2uHADTFSjZPxr8X7gNUZKS3ou6YFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpcU4OC8VWsraW9AF8aztZ9i4AE+OlrfSAjJSW9F6AUAAAAAAAAAAAAAAAAAAAOgeuv1YMq60/Qtj9jXuUM/y6XfHI8W1rTxUIv8AY2/Jmm4v0p8gPAvLcx6Rerz0s0swwscVkW1uxuZtqNanKEqdanKzjKLs3GSumucZPtA9/Op91ptkutV0V4Xa/J6tHDZ3gYww+eZUqu9UwWItzvq4Ss3GVldehgd7AANEotu8dHwf6vT6POwNSaaTTunwYBPjpa30gUDzd+Gt6S5ZL0V7DdF2ExTjV2kzavmeJhHnQwlOMUpeZzxCa88AMNvgrejSPSD1vtncwxdCrPBbJYTFZ7VcYXj3SEVTpKT4Jd0rRf8Aq2A96wAADbp+Om34yk96LfZyA3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACJJXaXHiBpjvRspXbk3qtUvv9+QGpNPVO4FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjSdm1w4AGrgRKS0bvx1+fRAVPWzTXEAmndJ8OIFAAAAAAAAAAAAAAAAefPwoPUbh0v7OVunjo0wShtfs/hpTzfB04aZpgoRbc0lr3amlx/hRuuKTA8t+rJ1jdu+rB0pYDpB2MrznTVSFDNstlJ9yzHB76dShNcna+7LjGVnw3osP6HuiTpQ2W6aejvIek/YzFqvk+fYSOKoKS8elJ6Spz7JRd4tcboDmAACJWvq3d315ARaybfFaLT0AV35IDxO+GV2uxWddZ7K9l3Ubwuz2zWGhCO7bdqVqlSpPXzp0/o8wHcfwIOxtBYbpO6QZqcqzngcnptrxYRtOrNJ9re5f9GIHqeAAkrqL3eNtANKs1Bz/GWiv28/1gawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0yhvJ68Vaz1T+YA52fjKys22+VgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaVFR4fP5/SAbko8N6XqAt9bAE00mndPgwKAAAAAAAAAAANM4QqQlTqQUoSTjKMldNPimgPCr4Uvqz5d0EdOVPazZbDLD7ObeqtmGGw8IJU8LiYOPd6UbKyi5SUknr4z5LQO/vgV+mjHfGNs+g3NMQ5YGlQhn+XOrV0oy3+514RvwUt6nLdXNSemtw9U/juDtf43Rtpr3RcwJ8dwf+l0f/ALiAksXgZRcZYui01Z/si9oCOOwk3piqStrbfXZ9+AGt4nDJpPEU7vgt9agfz4fCObQ4jaLrm9JNWriJVaOCzClgcPrdRhSw9OLS828pAel/wPWzeDynqo1c8oUYxrZ5tFjatWcYpb/ctyjG9uOkPPx48kGcoADbrWcHFrSV4u3G1uXaBrV9bv0AUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEaTTTV0+KAjUknuPWzsnwuAlJRaT58+SA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAm6tdLXd3bQBbW9/mAR3reNb0rmBN5Levoo63fCwGoAAAAAAAAB51fDVbI5tm3QjsZtbgMtqV8LkOe1aWNrwjvfF4YiklFy7IudKKvwu4rmgPHTBY3F4GpOrgsTXoVZRcd6jUcHu8Xqnw0WgH1LaLaF2tn+YXbtb41NfrAstos/co2z3Mop83iqmvK/H28wC2jz+y389zG2uqxc73tpz4X/AFgSO0W0V1J57mG6mk28VUt89mAe0W0G6nHPsy0/Gvi58deGvYB8NarUrVXWxU51KspN1HKTc5O+rbfP2Ae/vwZWyeb7H9TTYbA5zg6+GrY143MYwrx3Z9zrYmc4Pd5Jxaa7VZ8wMpwAG3VtaN3rvK1uN/N9+FwNavzQFAAAAAAAAAAAAAAAAAAAAAAiad0nw4gLa3v8wFAAAAACK/NAUAAAAAAACN2Tb5AUAAAjSaaaunxQBKwFAAAJrfjoBQAAAAAAAIndJtW8wFAAAAAAAAAAJonrLjokBQAAAAAjvpZekCgAAAAAAAAAETuk1zAoE3Vrpa7u7aAUAAAAR35MCgAPkzXKcqz3LsRk+d5bhcwwGLpuliMLiqMatGtB8YzhJOMk+xoDrV9U/qsyblLq1dFbb1bexuXf8EA+qf1WZNyl1auitt6tvY3Lv+CA/wAE7qsf9Wnoq/8AJuXf8EB/gndVj/q09FX/AJNy7/ggR9U/qspNrq0dFT83gbl3/BAv+Cd1WP8Aq09FX/k3Lv8Agga8P1VurBhK9PFYXq4dF1GtRmqlOpT2Py6MoSTupJqjdNPVNAdoU6dOlTjSpQjCEEoxjFWSS4JLkBqAARpOza4cAKAAAS2t7/MBQImnqncCgAAACK+t16AKAAAAAAAAAltb3+YCgAAACN2TaV/MBQAAAAAAAAEtrcCgAAEV7K6s+YFAAAAAAAAARtLVuwBpPRq4FAjvpZ+kCgAAAAAAARu1vOBQAAABGr87AUAAAAAAETuk2reYCgAAAAAAltbgUAAAjvZ2V3yAoAAAAAAAAABLK97armAur2vq+QFAivrd+gCgAAAAAAAAIncCgAAEStzuBQAAAAAARPjpa30gUAAAAAAAAAAAS6va+r5AUCW1uBQAAABE7gUAAAASyve2r5gUCJ8dLW+kCgAAAAAAjvZ2V3yAoAAAAAAAACK9ld3fMCgAAAAAAARrhra30gUAAAAAAAABHZvdvqrPRgUAAAAAI3YCgAAEsr3tq+YFAARvhpe/0AUAAAAAAACK9ldWfMCgAAAAAAjvZ2dnyAoAAAAAAAACJcdb3+gCgAAAAAAAAIlYBZXvbV8wKAAAAAAAAAAAAAAAAAAAAABLq9r6rkBQI3YCgAI3w0vf6AKAAARXsrqz5gUABHezs7PkBQAAABEuOt7/AEAUAAAARKwFAAAAEsr3tquYFAAAAAAAAAAAAAAAAAAAAAAAAJdXtfVcgKBL62AoACJ35WAoACK+t16AKAAjvZ2dnyAoAAAAiVkk3fzgUAAAjV7eYCgAAACNJ6NXAoAAAAAAAAAAAAAAAAAAAAAACO9nZ2fICLeVrq7fHsWgF0iufH08QFle9tVzAXV7X1XICgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEd7Ozs+QESem8724O/HTmBdJLxo8+YC+tgKBLq9r6rkBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEsr3tquYFAARKwFAARLjre/0AUABHezs7PkBQAAABFeyurPmBQAACN8NL3+gCgAAACN2AoAAAAAS6va+q5AUAAAAAAAAAAAAAAAAAAAAAAAAjSejVwKAAjV7eYCgAAESskm7+cCgAI72dnZ8gKAAAAIr63XoAoAAAAid+VgKAAAAJfWwFAAAAACPdT3nZXsr/AGAUAAAAAI1cCgAAAAAAjXDW1vpAoAAAAAAAEV7K7u+YFAAAAAABHezsrvkBQAAAAAAAAET46Wt9IFAAAAAAAAARO4FAAAAAABLK97armBQJdXtfV8gKAAAAIlYCgAAAAAAiXHW9/oAoAAAAAAI72dnZ8gKAAAAAAAAAivZXVnzAoAAAAAAAEb4aXv8AQBQAAAAAARXsrqz5gUAAAAAAAAAAARuybSv5gFle9tXzAoAAAAAAAAABLa3AoETvfzAUAAAAAAAABErc7gUAAAiaeqdwKAAAAAACK+t36AKAAAAAAAAAAAI72dld8gKAAAAAAAAAAAAEsr3tq+YBO6Tat5gKAAAAAAAAAjVwKAAjdrecCgAAAAAAARrhra30gUAAAARtLVuwFAAAAAAAAAAAAAAAltbgUCJ3SbVvMBQAAAAAAAAAAAAltb3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function sm(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}function cm(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Wl(n,r),{props:s,internalRef:c}=ql({...a,externalSlotProps:o}),l=ul(c,o?.ref,e.additionalProps?.ref);return Ul(t,{...s,ref:l},r)}var lm=z.createContext({});function um(e){return ha(`MuiList`,e)}ga(`MuiList`,[`root`,`padding`,`dense`,`subheader`]),R();var dm=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Io({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},um,t)},fm=W(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),pm=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=z.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=dm(d);return(0,B.jsx)(lm.Provider,{value:u,children:(0,B.jsxs)(fm,{as:a,className:pa(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),mm=gl;R();function hm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _m(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function vm(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!_m(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var ym=z.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=z.useRef(null),p=z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eu(()=>{r&&f.current.focus()},[r]),z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${mm(Sc(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=kl(bc(t));if(n===`ArrowDown`)e.preventDefault(),vm(t,r,c,s,hm);else if(n===`ArrowUp`)e.preventDefault(),vm(t,r,c,s,gm);else if(n===`Home`)e.preventDefault(),vm(t,null,c,s,hm);else if(n===`End`)e.preventDefault(),vm(t,null,c,s,gm);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&_m(r,i);i.previousKeyMatched&&(c||vm(t,r,!1,s,hm,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=dl(f,t),g=-1;z.Children.forEach(a,(e,t)=>{if(!z.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=z.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),z.cloneElement(e,t)}return e});return(0,B.jsx)(pm,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function bm(e){return ha(`MuiMenu`,e)}ga(`MuiMenu`,[`root`,`paper`,`list`]),R();var xm={vertical:`top`,horizontal:`right`},Sm={vertical:`top`,horizontal:`left`},Cm=e=>{let{classes:t}=e;return Io({root:[`root`],paper:[`paper`],list:[`list`]},bm,t)},wm=W(Bu,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),Tm=W(zu,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Em=W(ym,{name:`MuiMenu`,slot:`List`})({outline:0}),Dm=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=to(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=Cm(b),S=r&&!o&&l,C=z.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;z.Children.map(i,(e,t)=>{z.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=cm({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=Jl(`paper`,{className:x.paper,elementType:Tm,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=Jl(`list`,{className:pa(x.list,s.className),elementType:Em,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ee=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,B.jsx)(wm,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?xm:Sm,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ee,onEntering:(...e)=>{w(...e),ee?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,B.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})}),Om=({slotProps:e,...t})=>(0,B.jsx)(Dm,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),km=c({Collapsible:()=>yf,EnableAudioAutoplayImage:()=>om,Feedback:()=>Zd,HtmlAndMath:()=>wp,InlineMenu:()=>Om,InputContainer:()=>qp,PreviewLayout:()=>Cp,PreviewPrompt:()=>Qp,Purpose:()=>em,Readable:()=>$p,UiLayout:()=>xp,color:()=>Uu,hasMedia:()=>am,hasText:()=>rm,indicators:()=>ef,transformDataHeadings:()=>sm,withUndoReset:()=>vp}),Am={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.`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},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`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,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`}},jm={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.`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},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`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,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`}},Mm=e=>typeof e==`string`,Nm=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Pm=e=>e==null?``:``+e,Fm=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Im=/###/g,Lm=e=>e&&e.indexOf(`###`)>-1?e.replace(Im,`.`):e,Rm=e=>!e||Mm(e),zm=(e,t,n)=>{let r=Mm(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Rm(e))return{};let t=Lm(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Rm(e)?{}:{obj:e,k:Lm(r[i])}},Bm=(e,t,n)=>{let{obj:r,k:i}=zm(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=zm(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=zm(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Vm=(e,t,n,r)=>{let{obj:i,k:a}=zm(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Hm=(e,t)=>{let{obj:n,k:r}=zm(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Um=(e,t,n)=>{let r=Hm(e,n);return r===void 0?Hm(t,n):r},Wm=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?Mm(e[r])||e[r]instanceof String||Mm(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Wm(e[r],t[r],n):e[r]=t[r]);return e},Gm=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Km={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},qm=e=>Mm(e)?e.replace(/[&<>"'\/]/g,e=>Km[e]):e,Jm=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let 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}},Ym=[` `,`,`,`?`,`!`,`;`],Xm=new Jm(20),Zm=(e,t,n)=>{t||=``,n||=``;let r=Ym.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Xm.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Qm=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},$m=e=>e?.replace(/_/g,`-`),eh={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},th=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||eh,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:(Mm(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},nh=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},rh=class extends nh{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):Mm(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Hm(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!Mm(n)?s:Qm(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Bm(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(Mm(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,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Hm(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Wm(s,n,i):s={...s,...n},Bm(this.data,o,s),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 this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},ih={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},ah=Symbol(`i18next/PATH_KEY`);function oh(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===ah?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function sh(e,t){let{[ah]:n}=e(oh()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var ch={},lh=e=>!Mm(e)&&typeof e!=`boolean`&&typeof e!=`number`,uh=class e extends nh{constructor(e,t={}){super(),Fm([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=th.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=lh(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Zm(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Mm(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Mm(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=sh(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?sh(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!Mm(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=lh(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(Mm(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:lh(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&Mm(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,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=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.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}});let a=Mm(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!Mm(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=Mm(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ih.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return Mm(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?sh(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!Mm(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Mm(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ch[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(ch[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" 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;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!Mm(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},dh=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=th.create(`languageUtils`)}getScriptPartFromCode(e){if(e=$m(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=$m(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Mm(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}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(this.options.load===`languageOnly`||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;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),Mm(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Mm(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):Mm(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},fh={zero:0,one:1,two:2,few:3,many:4,other:5},ph={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},mh=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=th.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=$m(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),ph;if(!e.match(/-|_/))return ph;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.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||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>fh[e]-fh[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let 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))}},hh=(e,t,n,r=`.`,i=!0)=>{let a=Um(e,t,n);return!a&&i&&Mm(n)&&(a=Qm(e,n,r),a===void 0&&(a=Qm(t,n,r))),a},gh=e=>e.replace(/\$/g,`$$$$`),_h=class{constructor(e={}){this.logger=th.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?qm:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Gm(i):a||`{{`,this.suffix=o?Gm(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Gm(d):f||Gm(`$t(`),this.nestingSuffix=p?Gm(p):m||Gm(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>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 i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=hh(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(hh(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>gh(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?gh(this.escape(e)):gh(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=Mm(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!Mm(a)&&!this.useRawValueToEscape&&(a=Pm(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${Gm(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!Mm(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Mm(i))return i;Mm(i)||(i=Pm(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},vh=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},yh=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e($m(r),i),t[o]=s),s(n)}},bh=e=>(t,n,r)=>e($m(n),r)(t),xh=class{constructor(e={}){this.logger=th.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?yh:bh;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let 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()]=yh(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=vh(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Sh=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Ch=class extends nh{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=th.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=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Vm(n.loaded,[i],a),Sh(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}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();Mm(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Mm(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.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=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){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!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},wh=()=>({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(typeof e[1]==`object`&&(t=e[1]),Mm(e[1])&&(t.defaultValue=e[1]),Mm(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let 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}),Th=e=>(Mm(e.ns)&&(e.ns=[e.ns]),Mm(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Mm(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),Eh=()=>{},Dh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Oh=`__i18next_supportNoticeShown`,kh=()=>!!(typeof globalThis<`u`&&globalThis[Oh]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),Ah=()=>{typeof globalThis<`u`&&(globalThis[Oh]=!0)},jh=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),Mh=class e extends nh{constructor(e={},t){if(super(),this.options=Th(e),this.services={},this.logger=th,this.modules={external:[]},Dh(this),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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Mm(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=wh();this.options={...n,...this.options,...Th(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!jh(this)&&!kh()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),Ah());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?th.init(r(this.modules.logger),this.options):th.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:xh;let t=new dh(this.options);this.store=new rh(this.options.resources,this.options);let i=this.services;i.logger=th,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new mh(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)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new _h(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ch(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new uh(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||=Eh,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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)});let i=Nm(),a=()=>{let 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),i.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?a():setTimeout(a,0),i}loadResources(e,t=Eh){let n=t,r=Mm(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(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){let r=Nm();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Eh,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&ih.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&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++){let 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;let n=Nm();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,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(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=Mm(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Mm(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),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);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=sh(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=sh(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=sh(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return Mm(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...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;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Nm();return this.options.ns?(Mm(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){let n=Nm();Mm(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`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`.split(`.`),n=this.services?.languageUtils||new dh(wh());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Eh){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new rh(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),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...wh().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new _h(n)}return a.translator=new uh(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Mh.createInstance,Mh.dir,Mh.init,Mh.loadResources,Mh.reloadResources,Mh.use,Mh.changeLanguage,Mh.getFixedT,Mh.t,Mh.exists,Mh.setDefaultNamespace,Mh.hasLoadedNamespace,Mh.loadNamespaces,Mh.loadLanguages,Mh.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:Am,es:jm}});var Nh={translator:{...Mh,t:(e,t)=>{let{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`;break;default:break}return Mh.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Ph={tools:[{type:`Select`,label:`Select`,icon:`mdiCursorDefault`},{type:`FreePathDrawable`,label:`Free Draw`,icon:`mdiPencil`},{type:`LineDrawable`,label:`Line`,icon:`mdiMinus`},{type:`RectangleDrawable`,label:`Rectangle`,icon:`mdiRectangle`},{type:`CircleDrawable`,label:`Circle`,icon:`mdiCircle`},{type:`Text`,label:`Text Entry`,icon:`mdiFormatColorText`},{type:`EraserDrawable`,label:`Eraser`,icon:`mdiEraser`}]};R();var Fh=W(dp)({fontSize:`0.9em`,marginLeft:8,minWidth:32,height:32,"& span":{"& svg":{width:`1.3em !important`,height:`1.3em !important`}}}),Ih=({label:e,onClick:t,disabled:n,title:r})=>(0,B.jsx)(Fh,{title:r,onClick:t,disabled:n,size:`small`,variant:`contained`,children:e});Ih.propTypes={disabled:L.bool,label:L.oneOfType([L.string,L.object]),onClick:L.func,title:L.string},Ih.defaultProps={disabled:!1,label:`Add`,onClick:()=>{},title:``};function Lh(e){return ha(`MuiNativeSelect`,e)}var Rh=ga(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);R();var zh=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return Io({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${yu(n)}`,a&&`iconOpen`,r&&`disabled`]},Lh,t)},Bh=W(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${Rh.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Vh=W(Bh,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Xs,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Rh.multiple}`]:t.multiple}]}})({}),Hh=W(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${Rh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),Uh=W(Hh,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${yu(n.variant)}`],n.open&&t.iconOpen]}})({}),Wh=z.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=zh(l);return(0,B.jsxs)(z.Fragment,{children:[(0,B.jsx)(Vh,{ownerState:l,className:pa(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,B.jsx)(Uh,{as:a,ownerState:l,className:u.icon})]})});function Gh(e){return ha(`MuiSelect`,e)}var Kh=ga(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function qh(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function Jh(e){return e==null||typeof e==`string`&&!e.trim()}function Yh(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var Xh=z.createContext(null);function Zh(){return z.useContext(Xh)}var Qh=Xh.Provider;R();var $h,eg=W(Bh,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Kh.select}`]:t.select},{[`&.${Kh.select}`]:t[n.variant]},{[`&.${Kh.error}`]:t.error},{[`&.${Kh.multiple}`]:t.multiple}]}})({[`&.${Kh.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),tg=W(Hh,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${yu(n.variant)}`],n.open&&t.iconOpen]}})({}),ng=W(`input`,{shouldForwardProp:e=>Ys(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),rg=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return Io({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${yu(n)}`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Gh,t)},ig=z.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:k,SelectDisplayProps:A={},tabIndex:j,type:M,value:ee,variant:N=`standard`,...te}=e,[P,F]=ku({controlled:ee,default:l,name:`Select`}),[ne,I]=ku({controlled:E,default:c,name:`Select`}),re=z.useRef(null),ie=z.useRef(null),[ae,oe]=z.useState(null),{current:se}=z.useRef(E!=null),[ce,le]=z.useState(),[ue,de]=z.useState(null),fe=dl(t,m),pe=z.useCallback(e=>{ie.current=e,e&&oe(e)},[]),me=ae?.parentNode;z.useImperativeHandle(fe,()=>({focus:()=>{ie.current.focus()},node:re.current,value:P}),[P]);let he=ae!==null&≠z.useEffect(()=>{if(!he||!me||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{le(me.clientWidth)});return e.observe(me),()=>{e.disconnect()}},[he,me,a]),z.useEffect(()=>{c&&ne&&ae&&!se&&(le(a?null:me.clientWidth),ie.current.focus())},[ae,a]),z.useEffect(()=>{i&&ie.current.focus()},[i]),z.useEffect(()=>{if(!h)return;let e=bc(ie.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let ge=(e,t)=>{e?(de(qh(t)),T&&T(t)):(de(null),x&&x(t)),se||(le(a?null:me.clientWidth),I(e))},_e=e=>{w?.(e),e.button===0&&(e.preventDefault(),ie.current.focus(),ge(!0,e))},ve=e=>{ge(!1,e)},ye=z.Children.toArray(o),be=e=>{let t=ye.find(t=>t.props.value===e.target.value);t!==void 0&&(F(t.props.value),b&&b(e,t))},xe=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(P)?P.slice():[];let t=P.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),P!==n&&(F(n),b)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,e)}_||ge(!1,t)}},Se=e=>{D||([` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),ge(!0,e)),C?.(e))},Ce=e=>{!he&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:v}}),y(e))};delete te[`aria-invalid`];let we,Te,Ee=[],De=!1;(zp({value:P})||d)&&(O?we=O(P):De=!0);let Oe=ye.map(e=>{if(!z.isValidElement(e))return null;let t;if(_){if(!Array.isArray(P))throw Error(gt(2));t=P.some(t=>Yh(t,e.props.value)),t&&De&&Ee.push(e.props.children)}else t=Yh(P,e.props.value),t&&De&&(Te=e.props.children);return z.cloneElement(e,{"aria-selected":t?`true`:`false`,onClick:xe(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});De&&(we=_?Ee.length===0?null:Ee.reduce((e,t,n)=>(e.push(t),n<Ee.length-1&&e.push(`, `),e),[]):Te);let ke=ce;!a&&se&&ae&&(ke=me.clientWidth);let Ae;Ae=j===void 0?u?null:0:j;let je=A.id||(v?`mui-component-select-${v}`:void 0),Me={...e,variant:N,value:P,open:he,error:f},Ne=rg(Me),Pe={...g.PaperProps,...typeof g.slotProps?.paper==`function`?g.slotProps.paper(Me):g.slotProps?.paper},Fe={...g.MenuListProps,...typeof g.slotProps?.list==`function`?g.slotProps.list(Me):g.slotProps?.list},Ie=lo();return(0,B.jsxs)(z.Fragment,{children:[(0,B.jsx)(eg,{as:`div`,ref:pe,tabIndex:Ae,role:`combobox`,"aria-controls":he?Ie:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":he?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":[h,je].filter(Boolean).join(` `)||void 0,"aria-describedby":n,"aria-required":k?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Se,onMouseDown:u||D?null:_e,onBlur:Ce,onFocus:S,...A,ownerState:Me,className:pa(A.className,Ne.select,s),id:je,children:Jh(we)?$h||=(0,B.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):we}),(0,B.jsx)(ng,{"aria-invalid":f,value:Array.isArray(P)?P.join(`,`):P,name:v,ref:re,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:u,className:Ne.nativeInput,autoFocus:i,required:k,...te,ownerState:Me}),(0,B.jsx)(tg,{as:p,className:Ne.icon,ownerState:Me}),(0,B.jsx)(Qh,{value:ue,children:(0,B.jsx)(Dm,{id:`menu-${v||``}`,anchorEl:me,open:he,onClose:ve,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:Ie,...Fe},paper:{...Pe,style:{minWidth:ke,...Pe==null?null:Pe.style}}},children:Oe})})]})}),ag=wu((0,B.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);R();function og(e){return parseInt(e,10)||0}var sg={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function cg(e){for(let t in e)return!1;return!0}function lg(e){return cg(e)||e.outerHeightStyle===0&&!e.overflowing}var ug=z.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=z.useRef(o!=null),l=z.useRef(null),u=ul(t,l),d=z.useRef(null),f=z.useRef(null),p=z.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=xc(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
146
|
-
`&&(n.value+=` `);let o=a.boxSizing,s=
|
|
147
|
-
`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,B.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...sg.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function dg(e){return ha(`MuiInputBase`,e)}var fg=ga(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]);R();var pg,mg=`mui-auto-fill`,hg=`mui-auto-fill-cancel`,gg=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${yu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_g=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size===`small`&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type===`search`&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},vg=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return Io({root:[`root`,`color${yu(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${yu(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},dg,t)},yg=W(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:gg})(Hl(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${fg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),bg=W(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:_g})(Hl(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${fg.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${fg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:hg,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:mg}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),xg=gc({[`@keyframes ${mg}`]:{from:{animationName:mg}},[`@keyframes ${hg}`]:{from:{animationName:hg}}}),Sg=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,error:m,fullWidth:h=!1,id:g,inputComponent:_=`input`,inputProps:v={},inputRef:y,margin:b,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:k,onKeyUp:A,placeholder:j,readOnly:M,renderSuffix:ee,rows:N,size:te,slotProps:P={},slots:F={},startAdornment:ne,type:I=`text`,value:re,...ie}=n,ae=v.value==null?re:v.value,{current:oe}=z.useRef(ae!=null),se=z.useRef(),ce=z.useCallback(e=>{},[]),le=dl(se,y,v.ref,ce),[ue,de]=z.useState(!1),fe=Dp(),pe=Tp({props:n,muiFormControl:fe,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});pe.focused=fe?fe.focused:ue,z.useEffect(()=>{!fe&&d&&ue&&(de(!1),T&&T())},[fe,d,ue,T]);let me=fe&&fe.onFilled,he=fe&&fe.onEmpty,ge=z.useCallback(e=>{zp(e)?me&&me():he&&he()},[me,he]);Eu(()=>{oe&&ge({value:ae})},[ae,ge,oe]),Eu(()=>{if(!a)return;let e=se.current;if(!e)return;let t=bc(e),n=kl(t),r=n==null||n===t.body||n===t.documentElement;e===n?fe&&fe.onFocus?fe.onFocus():de(!0):r&&e.focus()},[a]);let _e=e=>{O&&O(e),v.onFocus&&v.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):de(!0)},ve=e=>{T&&T(e),v.onBlur&&v.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):de(!1)},ye=(e,...t)=>{if(!oe){let t=e.target||se.current;if(t==null)throw Error(gt(1));ge({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)};z.useEffect(()=>{ge(se.current)},[]);let be=e=>{se.current&&e.currentTarget===e.target&&se.current.focus(),D&&D(e)},xe=_,Se=v;C&&xe===`input`&&(Se=N?{type:void 0,minRows:N,maxRows:N,...Se}:{type:void 0,maxRows:x,minRows:S,...Se},xe=ug);let Ce=e=>{ge(e.animationName===hg?se.current:{value:`x`})};z.useEffect(()=>{fe&&fe.setAdornedStart(!!ne)},[fe,ne]);let we={...n,color:pe.color||`primary`,disabled:pe.disabled,endAdornment:p,error:pe.error,focused:pe.focused,formControl:fe,fullWidth:h,hiddenLabel:pe.hiddenLabel,multiline:C,size:pe.size,startAdornment:ne,type:I},Te=vg(we),Ee=F.root||c.Root||yg,De=P.root||l.root||{},Oe=F.input||c.Input||bg;return Se={...Se,...P.input??l.input},(0,B.jsxs)(z.Fragment,{children:[!f&&typeof xg==`function`&&(pg||=(0,B.jsx)(xg,{})),(0,B.jsxs)(Ee,{...De,ref:t,onClick:be,...ie,...!mc(Ee)&&{ownerState:{...we,...De.ownerState}},className:pa(Te.root,De.className,o,M&&`MuiInputBase-readOnly`),children:[ne,(0,B.jsx)(Ep.Provider,{value:null,children:(0,B.jsx)(Oe,{"aria-invalid":pe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:u,disabled:pe.disabled,id:g,onAnimationStart:Ce,name:w,placeholder:j,readOnly:M,required:pe.required,rows:N,value:ae,onKeyDown:k,onKeyUp:A,type:I,...Se,...!mc(Oe)&&{as:xe,ownerState:{...we,...Se.ownerState}},ref:le,className:pa(Te.input,Se.className,M&&`MuiInputBase-readOnly`),onBlur:ve,onChange:ye,onFocus:_e})}),p,ee?ee({...pe,startAdornment:ne}):null]})]})});function Cg(e){return ha(`MuiInput`,e)}var wg={...fg,...ga(`MuiInput`,[`root`,`underline`,`input`])};R();var Tg=e=>{let{classes:t,disableUnderline:n}=e,r=Io({root:[`root`,!n&&`underline`],input:[`input`]},Cg,t);return{...t,...r}},Eg=W(yg,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...gg(e,t),!n.disableUnderline&&t.underline]}})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${wg.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${wg.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${wg.disabled}, .${wg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${wg.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Dg=W(bg,{name:`MuiInput`,slot:`Input`,overridesResolver:_g})({}),Og=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p=Tg(n),m={root:{ownerState:{disableUnderline:r}}},h=l??a?Vr(l??a,m):m;return(0,B.jsx)(Sg,{slots:{root:u.root??i.Root??Eg,input:u.input??i.Input??Dg},slotProps:h,fullWidth:o,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:p})});Og.muiName=`Input`;function kg(e){return ha(`MuiFilledInput`,e)}var Ag={...fg,...ga(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};R();var jg=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=Io({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${yu(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},kg,t);return{...t,...c}},Mg=W(yg,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...gg(e,t),!n.disableUnderline&&t.underline]}})(Hl(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ag.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ag.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Ag.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Ag.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Ag.disabled}, .${Ag.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ag.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),Ng=W(bg,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:_g})(Hl(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Pg=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,hiddenLabel:s,inputComponent:c=`input`,multiline:l=!1,slotProps:u,slots:d={},type:f=`text`,...p}=n,m={...n,disableUnderline:r,fullWidth:o,inputComponent:c,multiline:l,type:f},h=jg(n),g={root:{ownerState:m},input:{ownerState:m}},_=u??a?Vr(g,u??a):g;return(0,B.jsx)(Sg,{slots:{root:d.root??i.Root??Mg,input:d.input??i.Input??Ng},slotProps:_,fullWidth:o,inputComponent:c,multiline:l,ref:t,type:f,...p,classes:h})});Pg.muiName=`Input`,R();var Fg,Ig=W(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Xs})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),Lg=W(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Xs})(Hl(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Rg(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,B.jsx)(Ig,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,B.jsx)(Lg,{ownerState:c,children:s?(0,B.jsx)(`span`,{children:i}):Fg||=(0,B.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}function zg(e){return ha(`MuiOutlinedInput`,e)}var Bg={...fg,...ga(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};R();var Vg=e=>{let{classes:t}=e,n=Io({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},zg,t);return{...t,...n}},Hg=W(yg,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:gg})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bg.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bg.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Bg.focused} .${Bg.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Vf()).map(([t])=>({props:{color:t},style:{[`&.${Bg.focused} .${Bg.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Bg.error} .${Bg.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bg.disabled} .${Bg.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),Ug=W(Rg,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(Hl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Wg=W(bg,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:_g})(Hl(({theme:e})=>({padding:`16.5px 14px`,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Gg=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiOutlinedInput`}),{components:r={},fullWidth:i=!1,inputComponent:a=`input`,label:o,multiline:s=!1,notched:c,slots:l={},slotProps:u={},type:d=`text`,...f}=n,p=Vg(n),m=Dp(),h=Tp({props:n,muiFormControl:m,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),g={...n,color:h.color||`primary`,disabled:h.disabled,error:h.error,focused:h.focused,formControl:m,fullWidth:i,hiddenLabel:h.hiddenLabel,multiline:s,size:h.size,type:d},_=l.root??r.Root??Hg,v=l.input??r.Input??Wg,[y,b]=Jl(`notchedOutline`,{elementType:Ug,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:l,slotProps:u},additionalProps:{label:o!=null&&o!==``&&h.required?(0,B.jsxs)(z.Fragment,{children:[o,` `,`*`]}):o}});return(0,B.jsx)(Sg,{slots:{root:_,input:v},slotProps:u,renderSuffix:e=>(0,B.jsx)(y,{...b,notched:c===void 0?!!(e.startAdornment||e.filled||e.focused):c}),fullWidth:i,inputComponent:a,multiline:s,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});Gg.muiName=`Input`,R();var Kg=e=>{let{classes:t}=e,n=Io({root:[`root`]},Gh,t);return{...t,...n}},qg={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Xs(e)&&e!==`variant`},Jg=W(Og,qg)(``),Yg=W(Gg,qg)(``),Xg=W(Pg,qg)(``),Zg=z.forwardRef(function(e,t){let n=_c({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=ag,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?Wh:ig,E=Tp({props:n,muiFormControl:Dp(),states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},k=Kg(O),{root:A,...j}=k,M=d||{standard:(0,B.jsx)(Jg,{ownerState:O}),outlined:(0,B.jsx)(Yg,{label:p,ownerState:O}),filled:(0,B.jsx)(Xg,{ownerState:O})}[D],ee=dl(t,kc(M));return(0,B.jsx)(z.Fragment,{children:z.cloneElement(M,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?Vr(j,f.classes):j,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:ee,className:pa(M.props.className,o,k.root),...!d&&{variant:D},...w})})});Zg.muiName=`Select`;var Qg=ga(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),$g=ga(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),e_=ga(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]);function t_(e){return ha(`MuiMenuItem`,e)}var n_=ga(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);R();function r_(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}var i_=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},a_=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=Io({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},t_,o);return{...o,...s}},o_=W(Lf,{shouldForwardProp:e=>Xs(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:i_})(Hl(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${n_.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${n_.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${n_.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${n_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${n_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qg.inset}`]:{marginLeft:52},[`& .${e_.root}`]:{marginTop:0,marginBottom:0},[`& .${e_.inset}`]:{paddingLeft:36},[`& .${$g.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${$g.root} svg`]:{fontSize:`1.25rem`}}}]}))),s_=z.forwardRef(function(e,t){let n=_c({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=Zh(),m=z.useContext(lm),h=z.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=z.useRef(null);Eu(()=>{r&&g.current&&r_(g.current,p)},[r]);let _={...n,dense:h.dense,divider:o,disableGutters:s},v=a_(n),y=dl(g,t),{root:b,...x}=v,S;return n.disabled||(S=u===void 0?-1:u),(0,B.jsx)(lm.Provider,{value:h,children:(0,B.jsx)(o_,{ref:y,role:l,tabIndex:S,component:i,focusVisibleClassName:pa(v.focusVisible,c),className:pa(v.root,d),...f,ownerState:_,classes:x})})});R();function c_(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function l_(e,t){return!e||c_(e)?e:c_(e.default)?e.default:t&&c_(e[t])?e[t]:t&&c_(e[t]?.default)?e[t].default:e}var u_=l_(qp,`InputContainer`)||l_(p_.InputContainer,`InputContainer`),d_=km,f_=d_.default,p_=f_&&typeof f_==`object`?f_:d_,{translator:m_}=Nh,h_=W(`div`)(({theme:e})=>({marginTop:e.spacing(2),display:`flex`})),g_=W(u_)({flex:1,fontSize:`inherit`,width:`90%`}),__=W(s_)(({theme:e,isBlackColor:t})=>({borderRadius:`2px`,fontSize:`inherit`,height:`22px`,marginLeft:e.spacing(2),marginRight:e.spacing(2),marginTop:e.spacing(2),...t&&{color:e.palette.background.paper}})),v_=W(Zg)({fontSize:`inherit`,transform:`translate(0%, 40%)`}),y_=class extends z.Component{onChange=e=>t=>{let{value:n}=t.target,{onFillColorChange:r,onOutlineColorChange:i,onPaintColorChange:a}=this.props;e===`fill`?r(n):e===`outline`?i(n):a(n)};render(){let{fillColor:e,outlineColor:t,fillList:n,outlineList:r,language:i}=this.props;return(0,B.jsxs)(h_,{children:[(0,B.jsx)(g_,{label:m_.t(`drawingResponse.fillColor`,{lng:i}),children:(0,B.jsx)(v_,{onChange:this.onChange(`fill`),value:e,variant:`standard`,MenuProps:{transitionDuration:{enter:225,exit:195}},children:n.map(({value:e,label:t})=>(0,B.jsx)(__,{value:e,isBlackColor:e===`black`,style:{backgroundColor:e},children:t},e))})}),(0,B.jsx)(g_,{label:m_.t(`drawingResponse.outlineColor`,{lng:i}),children:(0,B.jsx)(v_,{onChange:this.onChange(`outline`),value:t,variant:`standard`,MenuProps:{transitionDuration:{enter:225,exit:195}},children:r.map(({value:e,label:t})=>(0,B.jsx)(__,{value:e,style:{border:`2px solid ${e}`},children:t},e))})})]})}};y_.propTypes={fillColor:L.string.isRequired,fillList:L.array.isRequired,onFillColorChange:L.func.isRequired,onOutlineColorChange:L.func.isRequired,onPaintColorChange:L.func.isRequired,outlineColor:L.string.isRequired,outlineList:L.array.isRequired,language:L.string};var b_=Math.PI/180;function x_(){return typeof window<`u`&&({}.toString.call(window)===`[object Window]`||{}.toString.call(window)===`[object global]`)}var S_=typeof global<`u`?global:typeof window<`u`?window:typeof WorkerGlobalScope<`u`?self:{},J={_global:S_,version:`8.3.0`,isBrowser:x_(),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle(e){return J.angleDeg?e*b_:e},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<`u`&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return J.DD.isDragging},isDragReady(){return!!J.DD.node},document:S_.document,_injectGlobal(e){S_.Konva=e}},C_=e=>{J[e.prototype.getClassName()]=e};J._injectGlobal(J);var w_=class e{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new e(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){var t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){var t=Math.cos(e),n=Math.sin(e),r=this.m[0]*t+this.m[2]*n,i=this.m[1]*t+this.m[3]*n,a=this.m[0]*-n+this.m[2]*t,o=this.m[1]*-n+this.m[3]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=a,this.m[3]=o,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){var n=this.m[0]+this.m[2]*t,r=this.m[1]+this.m[3]*t,i=this.m[2]+this.m[0]*e,a=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=a,this}multiply(e){var t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],r=this.m[0]*e.m[2]+this.m[2]*e.m[3],i=this.m[1]*e.m[2]+this.m[3]*e.m[3],a=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],o=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this}invert(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,r=-this.m[2]*e,i=this.m[0]*e,a=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this}getMatrix(){return this.m}setAbsolutePosition(e,t){var n=this.m[0],r=this.m[1],i=this.m[2],a=this.m[3],o=this.m[4],s=(n*(t-this.m[5])-r*(e-o))/(n*a-r*i),c=(e-o-i*s)/n;return this.translate(c,s)}decompose(){var e=this.m[0],t=this.m[1],n=this.m[2],r=this.m[3],i=this.m[4],a=this.m[5],o=e*r-t*n;let s={x:i,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!=0||t!=0){var c=Math.sqrt(e*e+t*t);s.rotation=t>0?Math.acos(e/c):-Math.acos(e/c),s.scaleX=c,s.scaleY=o/c,s.skewX=(e*n+t*r)/o,s.skewY=0}else if(n!=0||r!=0){var l=Math.sqrt(n*n+r*r);s.rotation=Math.PI/2-(r>0?Math.acos(-n/l):-Math.acos(n/l)),s.scaleX=o/l,s.scaleY=l,s.skewX=0,s.skewY=(e*n+t*r)/o}return s.rotation=Y._getRotation(s.rotation),s}},T_=`[object Array]`,E_=`[object Number]`,D_=`[object String]`,O_=`[object Boolean]`,k_=Math.PI/180,A_=180/Math.PI,j_=`#`,M_=``,N_=`0`,P_=`Konva warning: `,F_=`Konva error: `,I_=`rgb(`,L_={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},R_=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,z_=[],B_=typeof requestAnimationFrame<`u`&&requestAnimationFrame||function(e){setTimeout(e,60)},Y={_isElement(e){return!!(e&&e.nodeType==1)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===T_},_isNumber(e){return Object.prototype.toString.call(e)===E_&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===D_},_isBoolean(e){return Object.prototype.toString.call(e)===O_},isObject(e){return e instanceof Object},isValidSelector(e){if(typeof e!=`string`)return!1;var t=e[0];return t===`#`||t===`.`||t===t.toUpperCase()},_sign(e){return e===0||e>0?1:-1},requestAnimFrame(e){z_.push(e),z_.length===1&&B_(function(){let e=z_;z_=[],e.forEach(function(e){e()})})},createCanvasElement(){var e=document.createElement(`canvas`);try{e.style=e.style||{}}catch{}return e},createImageElement(){return document.createElement(`img`)},_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,t){var n=Y.createImageElement();n.onload=function(){t(n)},n.src=e},_rgbToHex(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb(e){e=e.replace(j_,M_);var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){for(var e=(Math.random()*16777215<<0).toString(16);e.length<6;)e=N_+e;return j_+e},getRGB(e){var t;return e in L_?(t=L_[e],{r:t[0],g:t[1],b:t[2]}):e[0]===j_?this._hexToRgb(e.substring(1)):e.substr(0,4)===I_?(t=R_.exec(e.replace(/ /g,``)),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e||=`black`,Y._namedColorToRBA(e)||Y._hex3ColorToRGBA(e)||Y._hex6ColorToRGBA(e)||Y._rgbColorToRGBA(e)||Y._rgbaColorToRGBA(e)||Y._hslColorToRGBA(e)},_namedColorToRBA(e){var t=L_[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(e.indexOf(`rgb(`)===0){e=e.match(/rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(e.indexOf(`rgba(`)===0){e=e.match(/rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex6ColorToRGBA(e){if(e[0]===`#`&&e.length===7)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex3ColorToRGBA(e){if(e[0]===`#`&&e.length===4)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){let[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),r=Number(n[0])/360,i=Number(n[1])/100,a=Number(n[2])/100,o,s,c;if(i===0)return c=a*255,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};o=a<.5?a*(1+i):a+i-a*i;let l=2*a-o,u=[0,0,0];for(let e=0;e<3;e++)s=r+1/3*-(e-1),s<0&&s++,s>1&&s--,c=6*s<1?l+(o-l)*6*s:2*s<1?o:3*s<2?l+(o-l)*(2/3-s)*6:l,u[e]=c*255;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject(e){var t={};for(var n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray(e){return e.slice(0)},degToRad(e){return e*k_},radToDeg(e){return e*A_},_degToRad(e){return Y.warn(`Util._degToRad is removed. Please use public Util.degToRad instead.`),Y.degToRad(e)},_radToDeg(e){return Y.warn(`Util._radToDeg is removed. Please use public Util.radToDeg instead.`),Y.radToDeg(e)},_getRotation(e){return J.angleDeg?Y.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw Error(F_+e)},error(e){console.error(F_+e)},warn(e){J.showWarnings&&console.warn(P_+e)},each(e,t){for(var n in e)t(n,e[n])},_inRange(e,t,n){return t<=e&&e<n},_getProjectionToSegment(e,t,n,r,i,a){var o,s,c,l=(e-n)*(e-n)+(t-r)*(t-r);if(l==0)o=e,s=t,c=(i-n)*(i-n)+(a-r)*(a-r);else{var u=((i-e)*(n-e)+(a-t)*(r-t))/l;u<0?(o=e,s=t,c=(e-i)*(e-i)+(t-a)*(t-a)):u>1?(o=n,s=r,c=(n-i)*(n-i)+(r-a)*(r-a)):(o=e+u*(n-e),s=t+u*(r-t),c=(o-i)*(o-i)+(s-a)*(s-a))}return[o,s,c]},_getProjectionToLine(e,t,n){var r=Y.cloneObject(e),i=Number.MAX_VALUE;return t.forEach(function(a,o){if(!(!n&&o===t.length-1)){var s=t[(o+1)%t.length],c=Y._getProjectionToSegment(a.x,a.y,s.x,s.y,e.x,e.y),l=c[0],u=c[1],d=c[2];d<i&&(r.x=l,r.y=u,i=d)}}),r},_prepareArrayForTween(e,t,n){var r,i=[],a=[];if(e.length>t.length){var o=t;t=e,e=o}for(r=0;r<e.length;r+=2)i.push({x:e[r],y:e[r+1]});for(r=0;r<t.length;r+=2)a.push({x:t[r],y:t[r+1]});var s=[];return a.forEach(function(e){var t=Y._getProjectionToLine(e,i,n);s.push(t.x),s.push(t.y)}),s},_prepareToStringify(e){var t;for(var n in e.visitedByCircularReferenceRemoval=!0,e)if(e.hasOwnProperty(n)&&e[n]&&typeof e[n]==`object`){if(t=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||Y._isElement(e[n]))if(t.configurable)delete e[n];else return null;else if(Y._prepareToStringify(e[n])===null)if(t.configurable)delete e[n];else return null}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(var n in t)e[n]=t[n];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999}};function V_(e){return Y._isString(e)?`"`+e+`"`:Object.prototype.toString.call(e)===`[object Number]`||Y._isBoolean(e)?e:Object.prototype.toString.call(e)}function H_(e){return e>255?255:e<0?0:Math.round(e)}function X(){if(J.isUnminified)return function(e,t){return Y._isNumber(e)||Y.warn(V_(e)+` is a not valid value for "`+t+`" attribute. The value should be a number.`),e}}function U_(e){if(J.isUnminified)return function(t,n){let r=Y._isNumber(t),i=Y._isArray(t)&&t.length==e;return!r&&!i&&Y.warn(V_(t)+` is a not valid value for "`+n+`" attribute. The value should be a number or Array<number>(`+e+`)`),t}}function W_(){if(J.isUnminified)return function(e,t){return Y._isNumber(e)||e===`auto`||Y.warn(V_(e)+` is a not valid value for "`+t+`" attribute. The value should be a number or "auto".`),e}}function G_(){if(J.isUnminified)return function(e,t){return Y._isString(e)||Y.warn(V_(e)+` is a not valid value for "`+t+`" attribute. The value should be a string.`),e}}function K_(){if(J.isUnminified)return function(e,t){let n=Y._isString(e),r=Object.prototype.toString.call(e)===`[object CanvasGradient]`||e&&e.addColorStop;return n||r||Y.warn(V_(e)+` is a not valid value for "`+t+`" attribute. The value should be a string or a native gradient.`),e}}function q_(){if(J.isUnminified)return function(e,t){return Y._isArray(e)?e.forEach(function(e){Y._isNumber(e)||Y.warn(`"`+t+`" attribute has non numeric element `+e+`. Make sure that all elements are numbers.`)}):Y.warn(V_(e)+` is a not valid value for "`+t+`" attribute. The value should be a array of numbers.`),e}}function J_(){if(J.isUnminified)return function(e,t){return e===!0||e===!1||Y.warn(V_(e)+` is a not valid value for "`+t+`" attribute. The value should be a boolean.`),e}}function Y_(e){if(J.isUnminified)return function(t,n){return Y.isObject(t)||Y.warn(V_(t)+` is a not valid value for "`+n+`" attribute. The value should be an object with properties `+e),t}}var X_=`get`,Z_=`set`,Z={addGetterSetter(e,t,n,r,i){Z.addGetter(e,t,n),Z.addSetter(e,t,r,i),Z.addOverloadedGetterSetter(e,t)},addGetter(e,t,n){var r=X_+Y._capitalize(t);e.prototype[r]=e.prototype[r]||function(){var e=this.attrs[t];return e===void 0?n:e}},addSetter(e,t,n,r){var i=Z_+Y._capitalize(t);e.prototype[i]||Z.overWriteSetter(e,t,n,r)},overWriteSetter(e,t,n,r){var i=Z_+Y._capitalize(t);e.prototype[i]=function(e){return n&&e!=null&&(e=n.call(this,e,t)),this._setAttr(t,e),r&&r.call(this),this}},addComponentsGetterSetter(e,t,n,r,i){var a=n.length,o=Y._capitalize,s=X_+o(t),c=Z_+o(t),l,u;e.prototype[s]=function(){var e={};for(l=0;l<a;l++)u=n[l],e[u]=this.getAttr(t+o(u));return e};var d=Y_(n);e.prototype[c]=function(e){var n=this.attrs[t],a;for(a in r&&(e=r.call(this,e)),d&&d.call(this,e,t),e)e.hasOwnProperty(a)&&this._setAttr(t+o(a),e[a]);return this._fireChangeEvent(t,n,e),i&&i.call(this),this},Z.addOverloadedGetterSetter(e,t)},addOverloadedGetterSetter(e,t){var n=Y._capitalize(t),r=Z_+n,i=X_+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(e,t,n,r){Y.error(`Adding deprecated `+t);var i=X_+Y._capitalize(t),a=t+` property is deprecated and will be removed soon. Look at Konva change log for more information.`;e.prototype[i]=function(){Y.error(a);var e=this.attrs[t];return e===void 0?n:e},Z.addSetter(e,t,r,function(){Y.error(a)}),Z.addOverloadedGetterSetter(e,t)},backCompat(e,t){Y.each(t,function(t,n){var r=e.prototype[n],i=X_+Y._capitalize(t),a=Z_+Y._capitalize(t);function o(){r.apply(this,arguments),Y.error(`"`+t+`" method is deprecated and will be removed soon. Use ""`+n+`" instead.`)}e.prototype[t]=o,e.prototype[i]=o,e.prototype[a]=o})},afterSetFilter(){this._filterUpToDate=!1}};function Q_(e){var t=[],n=e.length,r=Y,i,a;for(i=0;i<n;i++)a=e[i],r._isNumber(a)?a=Math.round(a*1e3)/1e3:r._isString(a)||(a+=``),t.push(a);return t}var $_=`,`,ev=`(`,tv=`)`,nv=`([`,rv=`])`,iv=`;`,av=`()`,ov=`=`,sv=`arc.arcTo.beginPath.bezierCurveTo.clearRect.clip.closePath.createLinearGradient.createPattern.createRadialGradient.drawImage.ellipse.fill.fillText.getImageData.createImageData.lineTo.moveTo.putImageData.quadraticCurveTo.rect.restore.rotate.save.scale.setLineDash.setTransform.stroke.strokeText.transform.translate`.split(`.`),cv=[`fillStyle`,`strokeStyle`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`,`lineCap`,`lineDashOffset`,`lineJoin`,`lineWidth`,`miterLimit`,`font`,`textAlign`,`textBaseline`,`globalAlpha`,`globalCompositeOperation`,`imageSmoothingEnabled`],lv=100,uv=class{constructor(e){this.canvas=e,this._context=e._canvas.getContext(`2d`),J.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,t){var n=this.traceArr,r=n.length,i=``,a,o,s,c;for(a=0;a<r;a++)o=n[a],s=o.method,s?(c=o.args,i+=s,e?i+=av:Y._isArray(c[0])?i+=nv+c.join($_)+rv:(t&&(c=c.map(e=>typeof e==`number`?Math.floor(e):e)),i+=ev+c.join($_)+tv)):(i+=o.property,e||(i+=ov+o.val)),i+=iv;return i}clearTrace(){this.traceArr=[]}_trace(e){var t=this.traceArr,n;t.push(e),n=t.length,n>=lv&&t.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)}_applyLineCap(e){var t=e.getLineCap();t&&this.setAttr(`lineCap`,t)}_applyOpacity(e){var t=e.getAbsoluteOpacity();t!==1&&this.setAttr(`globalAlpha`,t)}_applyLineJoin(e){var t=e.attrs.lineJoin;t&&this.setAttr(`lineJoin`,t)}setAttr(e,t){this._context[e]=t}arc(e,t,n,r,i,a){this._context.arc(e,t,n,r,i,a)}arcTo(e,t,n,r,i){this._context.arcTo(e,t,n,r,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,t,n,r,i,a){this._context.bezierCurveTo(e,t,n,r,i,a)}clearRect(e,t,n,r){this._context.clearRect(e,t,n,r)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(e,t){var n=arguments;if(n.length===2)return this._context.createImageData(e,t);if(n.length===1)return this._context.createImageData(e)}createLinearGradient(e,t,n,r){return this._context.createLinearGradient(e,t,n,r)}createPattern(e,t){return this._context.createPattern(e,t)}createRadialGradient(e,t,n,r,i,a){return this._context.createRadialGradient(e,t,n,r,i,a)}drawImage(e,t,n,r,i,a,o,s,c){var l=arguments,u=this._context;l.length===3?u.drawImage(e,t,n):l.length===5?u.drawImage(e,t,n,r,i):l.length===9&&u.drawImage(e,t,n,r,i,a,o,s,c)}ellipse(e,t,n,r,i,a,o,s){this._context.ellipse(e,t,n,r,i,a,o,s)}isPointInPath(e,t){return this._context.isPointInPath(e,t)}fill(e){e?this._context.fill(e):this._context.fill()}fillRect(e,t,n,r){this._context.fillRect(e,t,n,r)}strokeRect(e,t,n,r){this._context.strokeRect(e,t,n,r)}fillText(e,t,n,r){r?this._context.fillText(e,t,n,r):this._context.fillText(e,t,n)}measureText(e){return this._context.measureText(e)}getImageData(e,t,n,r){return this._context.getImageData(e,t,n,r)}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}rect(e,t,n,r){this._context.rect(e,t,n,r)}putImageData(e,t,n){this._context.putImageData(e,t,n)}quadraticCurveTo(e,t,n,r){this._context.quadraticCurveTo(e,t,n,r)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,t){this._context.scale(e,t)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):`mozDash`in this._context?this._context.mozDash=e:`webkitLineDash`in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,t,n,r,i,a){this._context.setTransform(e,t,n,r,i,a)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,t,n,r){this._context.strokeText(e,t,n,r)}transform(e,t,n,r,i,a){this._context.transform(e,t,n,r,i,a)}translate(e,t){this._context.translate(e,t)}_enableTrace(){var e=this,t=sv.length,n=this.setAttr,r,i,a=function(t){var n=e[t],r;e[t]=function(){return i=Q_(Array.prototype.slice.call(arguments,0)),r=n.apply(e,arguments),e._trace({method:t,args:i}),r}};for(r=0;r<t;r++)a(sv[r]);e.setAttr=function(){n.apply(e,arguments);var t=arguments[0],r=arguments[1];(t===`shadowOffsetX`||t===`shadowOffsetY`||t===`shadowBlur`)&&(r/=this.canvas.getPixelRatio()),e._trace({property:t,val:r})}}_applyGlobalCompositeOperation(e){let t=e.attrs.globalCompositeOperation;!t||t===`source-over`||this.setAttr(`globalCompositeOperation`,t)}};cv.forEach(function(e){Object.defineProperty(uv.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});var dv=class extends uv{_fillColor(e){var t=e.fill();this.setAttr(`fillStyle`,t),e._fillFunc(this)}_fillPattern(e){this.setAttr(`fillStyle`,e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){var t=e._getLinearGradient();t&&(this.setAttr(`fillStyle`,t),e._fillFunc(this))}_fillRadialGradient(e){var t=e._getRadialGradient();t&&(this.setAttr(`fillStyle`,t),e._fillFunc(this))}_fill(e){var t=e.fill(),n=e.getFillPriority();if(t&&n===`color`){this._fillColor(e);return}var r=e.getFillPatternImage();if(r&&n===`pattern`){this._fillPattern(e);return}var i=e.getFillLinearGradientColorStops();if(i&&n===`linear-gradient`){this._fillLinearGradient(e);return}var a=e.getFillRadialGradientColorStops();if(a&&n===`radial-gradient`){this._fillRadialGradient(e);return}t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):a&&this._fillRadialGradient(e)}_strokeLinearGradient(e){var t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var a=0;a<r.length;a+=2)i.addColorStop(r[a],r[a+1]);this.setAttr(`strokeStyle`,i)}}_stroke(e){var t=e.dash(),n=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr(`lineDashOffset`,e.dashOffset())),this.setAttr(`lineWidth`,e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr(`shadowColor`,`rgba(0,0,0,0)`),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr(`strokeStyle`,e.stroke()),e._strokeFunc(this),n||this.restore()}}_applyShadow(e){var t=e.getShadowRGBA()??`black`,n=e.getShadowBlur()??5,r=e.getShadowOffset()??{x:0,y:0},i=e.getAbsoluteScale(),a=this.canvas.getPixelRatio(),o=i.x*a,s=i.y*a;this.setAttr(`shadowColor`,t),this.setAttr(`shadowBlur`,n*Math.min(Math.abs(o),Math.abs(s))),this.setAttr(`shadowOffsetX`,r.x*o),this.setAttr(`shadowOffsetY`,r.y*s)}},fv=class extends uv{_fill(e){this.save(),this.setAttr(`fillStyle`,e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){var t=e.getStrokeScaleEnabled();if(!t){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(e);var r=e.hitStrokeWidth(),i=r===`auto`?e.strokeWidth():r;this.setAttr(`lineWidth`,i),this.setAttr(`strokeStyle`,e.colorKey),e._strokeFuncHit(this),t||this.restore()}}},pv;function mv(){if(pv)return pv;var e=Y.createCanvasElement().getContext(`2d`);return pv=(function(){return(J._global.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)})(),pv}var hv=class{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var t=(e||{}).pixelRatio||J.pixelRatio||mv();this.pixelRatio=t,this._canvas=Y.createCanvasElement(),this._canvas.style.padding=`0`,this._canvas.style.margin=`0`,this._canvas.style.border=`0`,this._canvas.style.background=`transparent`,this._canvas.style.position=`absolute`,this._canvas.style.top=`0`,this._canvas.style.left=`0`}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){var t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+`px`;var t=this.pixelRatio;this.getContext()._context.scale(t,t)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+`px`;var t=this.pixelRatio;this.getContext()._context.scale(t,t)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,t){this.setWidth(e||0),this.setHeight(t||0)}toDataURL(e,t){try{return this._canvas.toDataURL(e,t)}catch{try{return this._canvas.toDataURL()}catch(e){return Y.error(`Unable to get data URL. `+e.message+` For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html.`),``}}}};Z.addGetterSetter(hv,`pixelRatio`,void 0,X());var gv=class extends hv{constructor(e={width:0,height:0}){super(e),this.context=new dv(this),this.setSize(e.width,e.height)}},_v=class extends hv{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new fv(this),this.setSize(e.width,e.height)}},vv={get isDragging(){var e=!1;return vv._dragElements.forEach(t=>{t.dragStatus===`dragging`&&(e=!0)}),e},justDragged:!1,get node(){var e;return vv._dragElements.forEach(t=>{e=t.node}),e},_dragElements:new Map,_drag(e){let t=[];vv._dragElements.forEach((n,r)=>{let{node:i}=n,a=i.getStage();a.setPointersPositions(e),n.pointerId===void 0&&(n.pointerId=Y._getFirstPointerId(e));let o=a._changedPointerPositions.find(e=>e.id===n.pointerId);if(o){if(n.dragStatus!==`dragging`){var s=i.dragDistance();if(Math.max(Math.abs(o.x-n.startPointerPos.x),Math.abs(o.y-n.startPointerPos.y))<s||(i.startDrag({evt:e}),!i.isDragging()))return}i._setDragPosition(e,n),t.push(i)}}),t.forEach(t=>{t.fire(`dragmove`,{type:`dragmove`,target:t,evt:e},!0)})},_endDragBefore(e){vv._dragElements.forEach(t=>{let{node:n}=t,r=n.getStage();if(e&&r.setPointersPositions(e),!r._changedPointerPositions.find(e=>e.id===t.pointerId))return;(t.dragStatus===`dragging`||t.dragStatus===`stopped`)&&(vv.justDragged=!0,J._mouseListenClick=!1,J._touchListenClick=!1,J._pointerListenClick=!1,t.dragStatus=`stopped`);let i=t.node.getLayer()||t.node instanceof J.Stage&&t.node;i&&i.batchDraw()})},_endDragAfter(e){vv._dragElements.forEach((t,n)=>{t.dragStatus===`stopped`&&t.node.fire(`dragend`,{type:`dragend`,target:t.node,evt:e},!0),t.dragStatus!==`dragging`&&vv._dragElements.delete(n)})}};J.isBrowser&&(window.addEventListener(`mouseup`,vv._endDragBefore,!0),window.addEventListener(`touchend`,vv._endDragBefore,!0),window.addEventListener(`mousemove`,vv._drag),window.addEventListener(`touchmove`,vv._drag),window.addEventListener(`mouseup`,vv._endDragAfter,!1),window.addEventListener(`touchend`,vv._endDragAfter,!1));var yv=`absoluteOpacity`,bv=`allEventListeners`,xv=`absoluteTransform`,Sv=`absoluteScale`,Cv=`canvas`,wv=`Change`,Tv=`children`,Ev=`konva`,Dv=`listening`,Ov=`mouseenter`,kv=`mouseleave`,Av=`set`,jv=`Shape`,Mv=` `,Nv=`stage`,Pv=`transform`,Fv=`Stage`,Iv=`visible`,Lv=[`xChange.konva`,`yChange.konva`,`scaleXChange.konva`,`scaleYChange.konva`,`skewXChange.konva`,`skewYChange.konva`,`rotationChange.konva`,`offsetXChange.konva`,`offsetYChange.konva`,`transformsEnabledChange.konva`].join(Mv),Rv=1,Q=class e{constructor(e){this._id=Rv++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===Pv||e===xv)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,t){var n=this._cache.get(e);return(n===void 0||(e===Pv||e===xv)&&n.dirty===!0)&&(n=t.call(this),this._cache.set(e,n)),n}_calculate(e,t,n){if(!this._attachedDepsListeners.get(e)){let n=t.map(e=>e+`Change.konva`).join(Mv);this.on(n,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,n)}_getCanvasCache(){return this._cache.get(Cv)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===xv&&this.fire(`absoluteTransformChange`)}clearCache(){return this._cache.delete(Cv),this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var t=e||{},n={};(t.x===void 0||t.y===void 0||t.width===void 0||t.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var r=Math.ceil(t.width||n.width),i=Math.ceil(t.height||n.height),a=t.pixelRatio,o=t.x===void 0?n.x:t.x,s=t.y===void 0?n.y:t.y,c=t.offset||0,l=t.drawBorder||!1,u=t.hitCanvasPixelRatio||1;if(!r||!i){Y.error(`Can not cache the node. Width or height of the node equals 0. Caching is skipped.`);return}r+=c*2,i+=c*2,o-=c,s-=c;var d=new gv({pixelRatio:a,width:r,height:i}),f=new gv({pixelRatio:a,width:0,height:0}),p=new _v({pixelRatio:u,width:r,height:i}),m=d.getContext(),h=p.getContext();return p.isCache=!0,d.isCache=!0,this._cache.delete(Cv),this._filterUpToDate=!1,t.imageSmoothingEnabled===!1&&(d.getContext()._context.imageSmoothingEnabled=!1,f.getContext()._context.imageSmoothingEnabled=!1),m.save(),h.save(),m.translate(-o,-s),h.translate(-o,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(yv),this._clearSelfAndDescendantCache(Sv),this.drawScene(d,this),this.drawHit(p,this),this._isUnderCache=!1,m.restore(),h.restore(),l&&(m.save(),m.beginPath(),m.rect(0,0,r,i),m.closePath(),m.setAttr(`strokeStyle`,`red`),m.setAttr(`lineWidth`,5),m.stroke(),m.restore()),this._cache.set(Cv,{scene:d,filter:f,hit:p,x:o,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Cv)}getClientRect(e){throw Error(`abstract "getClientRect" method call`)}_transformedRect(e,t){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],r,i,a,o,s=this.getAbsoluteTransform(t);return n.forEach(function(e){var t=s.point(e);r===void 0&&(r=a=t.x,i=o=t.y),r=Math.min(r,t.x),i=Math.min(i,t.y),a=Math.max(a,t.x),o=Math.max(o,t.y)}),{x:r,y:i,width:a-r,height:o-i}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);let t=this._getCanvasCache();e.translate(t.x,t.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;e.drawImage(n._canvas,0,0,n.width/r,n.height/r),e.restore()}_drawCachedHitCanvas(e){var t=this._getCanvasCache(),n=t.hit;e.save(),e.translate(t.x,t.y),e.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e=this.filters(),t=this._getCanvasCache(),n=t.scene,r=t.filter,i=r.getContext(),a,o,s,c;if(e){if(!this._filterUpToDate){var l=n.pixelRatio;r.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=e.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/l,n.getHeight()/l),o=i.getImageData(0,0,r.getWidth(),r.getHeight()),s=0;s<a;s++){if(c=e[s],typeof c!=`function`){Y.error(`Filter should be type of function, but got `+typeof c+` instead. Please check correct filters`);continue}c.call(this,o),i.putImageData(o,0,0)}}catch(e){Y.error(`Unable to apply filter. `+e.message+` This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.`)}this._filterUpToDate=!0}return r}return n}on(e,t){if(this._cache&&this._cache.delete(bv),arguments.length===3)return this._delegate.apply(this,arguments);var n=e.split(Mv),r=n.length,i,a,o,s,c;for(i=0;i<r;i++)a=n[i],o=a.split(`.`),s=o[0],c=o[1]||``,this.eventListeners[s]||(this.eventListeners[s]=[]),this.eventListeners[s].push({name:c,handler:t});return this}off(e,t){var n=(e||``).split(Mv),r=n.length,i,a,o,s,c,l;if(this._cache&&this._cache.delete(bv),!e)for(a in this.eventListeners)this._off(a);for(i=0;i<r;i++)if(o=n[i],s=o.split(`.`),c=s[0],l=s[1],c)this.eventListeners[c]&&this._off(c,l,t);else for(a in this.eventListeners)this._off(a,l,t);return this}dispatchEvent(e){var t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this}addEventListener(e,t){return this.on(e,function(e){t.call(this,e.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,t,n){var r=this;this.on(e,function(e){for(var i=e.target.findAncestors(t,!0,r),a=0;a<i.length;a++)e=Y.cloneObject(e),e.currentTarget=i[a],n.call(i[a],e)})}remove(){return this.isDragging()&&this.stopDrag(),vv._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(xv),this._clearSelfAndDescendantCache(yv),this._clearSelfAndDescendantCache(Sv),this._clearSelfAndDescendantCache(Nv),this._clearSelfAndDescendantCache(Iv),this._clearSelfAndDescendantCache(Dv)}_remove(){this._clearCaches();var e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this}getAttr(e){var t=`get`+Y._capitalize(e);return Y._isFunction(this[t])?this[t]():this.attrs[e]}getAncestors(){for(var e=this.getParent(),t=[];e;)t.push(e),e=e.getParent();return t}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{var t,n;if(!e)return this;for(t in e)t!==Tv&&(n=Av+Y._capitalize(t),Y._isFunction(this[n])?this[n](e[t]):this._setAttr(t,e[t]))}),this}isListening(){return this._getCache(Dv,this._isListening)}_isListening(e){if(!this.listening())return!1;let t=this.getParent();return t&&t!==e&&this!==e?t._isListening(e):!0}isVisible(){return this._getCache(Iv,this._isVisible)}_isVisible(e){if(!this.visible())return!1;let t=this.getParent();return t&&t!==e&&this!==e?t._isVisible(e):!0}shouldDrawHit(e,t=!1){if(e)return this._isVisible(e)&&this._isListening(e);var n=this.getLayer(),r=!1;vv._dragElements.forEach(e=>{e.dragStatus===`dragging`&&(e.node.nodeType===`Stage`||e.node.getLayer()===n)&&(r=!0)});var i=!t&&!J.hitOnDragEnabled&&r;return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e=this.getDepth(),t=this,n=0,r,i,a,o;function s(c){for(r=[],i=c.length,a=0;a<i;a++)o=c[a],n++,o.nodeType!==jv&&(r=r.concat(o.getChildren().slice())),o._id===t._id&&(a=i);r.length>0&&r[0].getDepth()<=e&&s(r)}return t.nodeType!==Fv&&s(t.getStage().getChildren()),n}getDepth(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Pv),this._clearSelfAndDescendantCache(xv)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var e=this.getStage().getPointerPosition();if(!e)return null;var t=this.getAbsoluteTransform().copy();return t.invert(),t.point(e)}getAbsolutePosition(e){let t=!1,n=this.parent;for(;n;){if(n.isCached()){t=!0;break}n=n.parent}t&&!e&&(e=!0);var r=this.getAbsoluteTransform(e).getMatrix(),i=new w_,a=this.offset();return i.m=r.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(e){var t=this._clearTransform();this.attrs.x=t.x,this.attrs.y=t.y,delete t.x,delete t.y,this._clearCache(Pv);var n=this._getAbsoluteTransform().copy();return n.invert(),n.translate(e.x,e.y),e={x:this.attrs.x+n.getTranslation().x,y:this.attrs.y+n.getTranslation().y},this._setTransform(t),this.setPosition({x:e.x,y:e.y}),this._clearCache(Pv),this._clearSelfAndDescendantCache(xv),this}_setTransform(e){for(var t in e)this.attrs[t]=e[t]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var t=e.x,n=e.y,r=this.x(),i=this.y();return t!==void 0&&(r+=t),n!==void 0&&(i+=n),this.setPosition({x:r,y:i}),this}_eachAncestorReverse(e,t){var n=[],r=this.getParent(),i,a;if(!(t&&t._id===this._id)){for(n.unshift(this);r&&(!t||r._id!==t._id);)n.unshift(r),r=r.parent;for(i=n.length,a=0;a<i;a++)e(n[a])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return Y.warn(`Node has no parent. moveToTop function is ignored.`),!1;var e=this.index;return this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0}moveUp(){if(!this.parent)return Y.warn(`Node has no parent. moveUp function is ignored.`),!1;var e=this.index;return e<this.parent.getChildren().length-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return Y.warn(`Node has no parent. moveDown function is ignored.`),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Y.warn(`Node has no parent. moveToBottom function is ignored.`),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return Y.warn(`Node has no parent. zIndex parameter is ignored.`),this;(e<0||e>=this.parent.children.length)&&Y.warn(`Unexpected value `+e+` for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to `+(this.parent.children.length-1)+`.`);var t=this.index;return this.parent.children.splice(t,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(yv,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),t=this.getParent();return t&&!t._isUnderCache&&(e*=t.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e={},t=this.getAttrs(),n,r,i,a,o;for(n in e.attrs={},t)r=t[n],o=Y.isObject(r)&&!Y._isPlainObject(r)&&!Y._isArray(r),!o&&(i=typeof this[n]==`function`&&this[n],delete t[n],a=i?i.call(this):null,t[n]=r,a!==r&&(e.attrs[n]=r));return e.className=this.getClassName(),Y._prepareToStringify(e)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,t,n){var r=[];t&&this._isMatch(e)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(e)&&r.push(i),i=i.parent}return r}isAncestorOf(e){return!1}findAncestor(e,t,n){return this.findAncestors(e,t,n)[0]}_isMatch(e){if(!e)return!1;if(typeof e==`function`)return e(this);var t=e.replace(/ /g,``).split(`,`),n=t.length,r,i;for(r=0;r<n;r++)if(i=t[r],Y.isValidSelector(i)||(Y.warn(`Selector "`+i+`" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".`),Y.warn(`If you have a custom shape with such className, please change it to start with upper letter like "Triangle".`),Y.warn(`Konva is awesome, right?`)),i.charAt(0)===`#`){if(this.id()===i.slice(1))return!0}else if(i.charAt(0)===`.`){if(this.hasName(i.slice(1)))return!0}else if(this.className===i||this.nodeType===i)return!0;return!1}getLayer(){var e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(Nv,this._getStage)}_getStage(){var e=this.getParent();if(e)return e.getStage()}fire(e,t={},n){return t.target=t.target||this,n?this._fireAndBubble(e,t):this._fire(e,t),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(xv,this._getAbsoluteTransform)}_getAbsoluteTransform(e){var t;if(e)return t=new w_,this._eachAncestorReverse(function(e){var n=e.transformsEnabled();n===`all`?t.multiply(e.getTransform()):n===`position`&&t.translate(e.x()-e.offsetX(),e.y()-e.offsetY())},e),t;t=this._cache.get(xv)||new w_,this.parent?this.parent.getAbsoluteTransform().copyInto(t):t.reset();var n=this.transformsEnabled();if(n===`all`)t.multiply(this.getTransform());else if(n===`position`){let e=this.attrs.x||0,n=this.attrs.y||0,r=this.attrs.offsetX||0,i=this.attrs.offsetY||0;t.translate(e-r,n-i)}return t.dirty=!1,t}getAbsoluteScale(e){for(var t=this;t;)t._isUnderCache&&(e=t),t=t.getParent();let n=this.getAbsoluteTransform(e).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Pv,this._getTransform)}_getTransform(){var e=this._cache.get(Pv)||new w_;e.reset();var t=this.x(),n=this.y(),r=J.getAngle(this.rotation()),i=this.attrs.scaleX??1,a=this.attrs.scaleY??1,o=this.attrs.skewX||0,s=this.attrs.skewY||0,c=this.attrs.offsetX||0,l=this.attrs.offsetY||0;return(t!==0||n!==0)&&e.translate(t,n),r!==0&&e.rotate(r),(o!==0||s!==0)&&e.skew(o,s),(i!==1||a!==1)&&e.scale(i,a),(c!==0||l!==0)&&e.translate(-1*c,-1*l),e.dirty=!1,e}clone(e){var t=Y.cloneObject(this.attrs),n,r,i,a,o;for(n in e)t[n]=e[n];var s=new this.constructor(t);for(n in this.eventListeners)for(r=this.eventListeners[n],i=r.length,a=0;a<i;a++)o=r[a],o.name.indexOf(Ev)<0&&(s.eventListeners[n]||(s.eventListeners[n]=[]),s.eventListeners[n].push(o));return s}_toKonvaCanvas(e){e||={};var t=this.getClientRect(),n=this.getStage(),r=e.x===void 0?t.x:e.x,i=e.y===void 0?t.y:e.y,a=e.pixelRatio||1,o=new gv({width:e.width||t.width||(n?n.width():0),height:e.height||t.height||(n?n.height():0),pixelRatio:a}),s=o.getContext();return s.save(),(r||i)&&s.translate(-1*r,-1*i),this.drawScene(o),s.restore(),o}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e||={};var t=e.mimeType||null,n=e.quality||null,r=this._toKonvaCanvas(e).toDataURL(t,n);return e.callback&&e.callback(r),r}toImage(e){if(!e||!e.callback)throw`callback required for toImage method config argument`;var t=e.callback;delete e.callback,Y._urlToImage(this.toDataURL(e),function(e){t(e)})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance===void 0?this.parent?this.parent.getDragDistance():J.dragDistance:this.attrs.dragDistance}_off(e,t,n){var r=this.eventListeners[e],i,a,o;for(i=0;i<r.length;i++)if(a=r[i].name,o=r[i].handler,(a!==`konva`||t===`konva`)&&(!t||a===t)&&(!n||n===o)){if(r.splice(i,1),r.length===0){delete this.eventListeners[e];break}i--}}_fireChangeEvent(e,t,n){this._fire(e+wv,{oldVal:t,newVal:n})}addName(e){if(!this.hasName(e)){var t=this.name(),n=t?t+` `+e:e;this.name(n)}return this}hasName(e){if(!e)return!1;let t=this.name();return t?(t||``).split(/\s/g).indexOf(e)!==-1:!1}removeName(e){var t=(this.name()||``).split(/\s/g),n=t.indexOf(e);return n!==-1&&(t.splice(n,1),this.name(t.join(` `))),this}setAttr(e,t){var n=this[Av+Y._capitalize(e)];return Y._isFunction(n)?n.call(this,t):this._setAttr(e,t),this}_requestDraw(){J.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(e,t){var n=this.attrs[e];n===t&&!Y.isObject(t)||(t==null?delete this.attrs[e]:this.attrs[e]=t,this._shouldFireChangeEvents&&this._fireChangeEvent(e,n,t),this._requestDraw())}_setComponentAttr(e,t,n){var r;n!==void 0&&(r=this.attrs[e],r||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=n,this._fireChangeEvent(e,r,n))}_fireAndBubble(e,t,n){if(t&&this.nodeType===jv&&(t.target=this),!((e===Ov||e===kv)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType===`Stage`&&!n))){this._fire(e,t);var r=(e===Ov||e===kv)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(t&&!t.cancelBubble||!t)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,e,t,n):this._fireAndBubble.call(this.parent,e,t))}}_getProtoListeners(e){let t=this._cache.get(bv);if(!t){t={};let e=Object.getPrototypeOf(this);for(;e;){if(!e.eventListeners){e=Object.getPrototypeOf(e);continue}for(var n in e.eventListeners){let r=e.eventListeners[n],i=t[n]||[];t[n]=r.concat(i)}e=Object.getPrototypeOf(e)}this._cache.set(bv,t)}return t[e]}_fire(e,t){t||={},t.currentTarget=this,t.type=e;let n=this._getProtoListeners(e);if(n)for(var r=0;r<n.length;r++)n[r].handler.call(this,t);let i=this.eventListeners[e];if(i)for(var r=0;r<i.length;r++)i[r].handler.call(this,t)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){var t=e?e.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition(),i=n._getPointerById(t)||n._changedPointerPositions[0]||r;vv._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-r.x,y:i.y-r.y},dragStatus:`ready`,pointerId:t})}startDrag(e,t=!0){vv._dragElements.has(this._id)||this._createDragElement(e);let n=vv._dragElements.get(this._id);n.dragStatus=`dragging`,this.fire(`dragstart`,{type:`dragstart`,target:this,evt:e&&e.evt},t)}_setDragPosition(e,t){let n=this.getStage()._getPointerById(t.pointerId);if(n){var r={x:n.x-t.offset.x,y:n.y-t.offset.y},i=this.dragBoundFunc();if(i!==void 0){let t=i.call(this,r,e);t?r=t:Y.warn(`dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.`)}(!this._lastPos||this._lastPos.x!==r.x||this._lastPos.y!==r.y)&&(this.setAbsolutePosition(r),this._requestDraw()),this._lastPos=r}}stopDrag(e){let t=vv._dragElements.get(this._id);t&&(t.dragStatus=`stopped`),vv._endDragBefore(e),vv._endDragAfter(e)}setDraggable(e){this._setAttr(`draggable`,e),this._dragChange()}isDragging(){let e=vv._dragElements.get(this._id);return e?e.dragStatus===`dragging`:!1}_listenDrag(){this._dragCleanup(),this.on(`mousedown.konva touchstart.konva`,function(e){if((e.evt.button===void 0||J.dragButtons.indexOf(e.evt.button)>=0)&&!this.isDragging()){var t=!1;vv._dragElements.forEach(e=>{this.isAncestorOf(e.node)&&(t=!0)}),t||this._createDragElement(e)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;let e=vv._dragElements.get(this._id),t=e&&e.dragStatus===`dragging`,n=e&&e.dragStatus===`ready`;t?this.stopDrag():n&&vv._dragElements.delete(this._id)}}_dragCleanup(){this.off(`mousedown.konva`),this.off(`touchstart.konva`)}isClientRectOnScreen(e={x:0,y:0}){let t=this.getStage();if(!t)return!1;let n={x:-e.x,y:-e.y,width:t.width()+e.x,height:t.height()+e.y};return Y.haveIntersection(n,this.getClientRect())}static create(e,t){return Y._isString(e)&&(e=JSON.parse(e)),this._createNode(e,t)}static _createNode(t,n){var r=e.prototype.getClassName.call(t),i=t.children,a,o,s;n&&(t.attrs.container=n),J[r]||(Y.warn(`Can not find a node with class name "`+r+`". Fallback to "Shape".`),r=`Shape`);let c=J[r];if(a=new c(t.attrs),i)for(o=i.length,s=0;s<o;s++)a.add(e._createNode(i[s]));return a}};Q.prototype.nodeType=`Node`,Q.prototype._attrsAffectingSize=[],Q.prototype.eventListeners={},Q.prototype.on.call(Q.prototype,Lv,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Pv),this._clearSelfAndDescendantCache(xv)}),Q.prototype.on.call(Q.prototype,`visibleChange.konva`,function(){this._clearSelfAndDescendantCache(Iv)}),Q.prototype.on.call(Q.prototype,`listeningChange.konva`,function(){this._clearSelfAndDescendantCache(Dv)}),Q.prototype.on.call(Q.prototype,`opacityChange.konva`,function(){this._clearSelfAndDescendantCache(yv)});var zv=Z.addGetterSetter;zv(Q,`zIndex`),zv(Q,`absolutePosition`),zv(Q,`position`),zv(Q,`x`,0,X()),zv(Q,`y`,0,X()),zv(Q,`globalCompositeOperation`,`source-over`,G_()),zv(Q,`opacity`,1,X()),zv(Q,`name`,``,G_()),zv(Q,`id`,``,G_()),zv(Q,`rotation`,0,X()),Z.addComponentsGetterSetter(Q,`scale`,[`x`,`y`]),zv(Q,`scaleX`,1,X()),zv(Q,`scaleY`,1,X()),Z.addComponentsGetterSetter(Q,`skew`,[`x`,`y`]),zv(Q,`skewX`,0,X()),zv(Q,`skewY`,0,X()),Z.addComponentsGetterSetter(Q,`offset`,[`x`,`y`]),zv(Q,`offsetX`,0,X()),zv(Q,`offsetY`,0,X()),zv(Q,`dragDistance`,null,X()),zv(Q,`width`,0,X()),zv(Q,`height`,0,X()),zv(Q,`listening`,!0,J_()),zv(Q,`preventDefault`,!0,J_()),zv(Q,`filters`,null,function(e){return this._filterUpToDate=!1,e}),zv(Q,`visible`,!0,J_()),zv(Q,`transformsEnabled`,`all`,G_()),zv(Q,`size`),zv(Q,`dragBoundFunc`),zv(Q,`draggable`,!1,J_()),Z.backCompat(Q,{rotateDeg:`rotate`,setRotationDeg:`setRotation`,getRotationDeg:`getRotation`});var Bv=class extends Q{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];let t=this.children||[];var n=[];return t.forEach(function(t){e(t)&&n.push(t)}),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}var n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire(`add`,{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){var t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){var n=[];return this._descendants(r=>{let i=r._isMatch(e);return i&&n.push(r),!!(i&&t)}),n}_descendants(e){let t=!1,n=this.getChildren();for(let r of n)if(t=e(r),t||r.hasChildren()&&(t=r._descendants(e),t))return!0;return!1}toObject(){var e=Q.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(t=>{e.children.push(t.toObject())}),e}isAncestorOf(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){var t=Q.prototype.clone.call(this,e);return this.getChildren().forEach(function(e){t.add(e.clone())}),t}getAllIntersections(e){var t=[];return this.find(`Shape`).forEach(function(n){n.isVisible()&&n.intersects(e)&&t.push(n)}),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),!this.isCached()&&((t=this.children)==null||t.forEach(function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)==null||e.forEach(function(e,t){e.index=t}),this._requestDraw()}drawScene(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas(),i=r&&r.getContext(),a=this._getCanvasCache(),o=a&&a.scene,s=r&&r.isCache;if(!this.isVisible()&&!s)return this;if(o){i.save();var c=this.getAbsoluteTransform(t).getMatrix();i.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedSceneCanvas(i),i.restore()}else this._drawChildren(`drawScene`,r,t);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;var n=this.getLayer(),r=e||n&&n.hitCanvas,i=r&&r.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();var o=this.getAbsoluteTransform(t).getMatrix();i.transform(o[0],o[1],o[2],o[3],o[4],o[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren(`drawHit`,r,t);return this}_drawChildren(e,t,n){var r,i=t&&t.getContext(),a=this.clipWidth(),o=this.clipHeight(),s=this.clipFunc(),c=a&&o||s;let l=n===this;if(c){i.save();var u=this.getAbsoluteTransform(n),d=u.getMatrix();if(i.transform(d[0],d[1],d[2],d[3],d[4],d[5]),i.beginPath(),s)s.call(this,i,this);else{var f=this.clipX(),p=this.clipY();i.rect(f,p,a,o)}i.clip(),d=u.copy().invert().getMatrix(),i.transform(d[0],d[1],d[2],d[3],d[4],d[5])}var m=!l&&this.globalCompositeOperation()!==`source-over`&&e===`drawScene`;m&&(i.save(),i._applyGlobalCompositeOperation(this)),(r=this.children)==null||r.forEach(function(r){r[e](t,n)}),m&&i.restore(),c&&i.restore()}getClientRect(e){var t;e||={};var n=e.skipTransform,r=e.relativeTo,i,a,o,s,c={x:1/0,y:1/0,width:0,height:0},l=this;(t=this.children)==null||t.forEach(function(t){if(t.visible()){var n=t.getClientRect({relativeTo:l,skipShadow:e.skipShadow,skipStroke:e.skipStroke});n.width===0&&n.height===0||(i===void 0?(i=n.x,a=n.y,o=n.x+n.width,s=n.y+n.height):(i=Math.min(i,n.x),a=Math.min(a,n.y),o=Math.max(o,n.x+n.width),s=Math.max(s,n.y+n.height)))}});for(var u=this.find(`Shape`),d=!1,f=0;f<u.length;f++)if(u[f]._isVisible(this)){d=!0;break}return c=d&&i!==void 0?{x:i,y:a,width:o-i,height:s-a}:{x:0,y:0,width:0,height:0},n?c:this._transformedRect(c,r)}};Z.addComponentsGetterSetter(Bv,`clip`,[`x`,`y`,`width`,`height`]),Z.addGetterSetter(Bv,`clipX`,void 0,X()),Z.addGetterSetter(Bv,`clipY`,void 0,X()),Z.addGetterSetter(Bv,`clipWidth`,void 0,X()),Z.addGetterSetter(Bv,`clipHeight`,void 0,X()),Z.addGetterSetter(Bv,`clipFunc`);var Vv=new Map,Hv=J._global.PointerEvent!==void 0;function Uv(e){return Vv.get(e)}function Wv(e){return{evt:e,pointerId:e.pointerId}}function Gv(e,t){return Vv.get(e)===t}function Kv(e,t){qv(e),t.getStage()&&(Vv.set(e,t),Hv&&t._fire(`gotpointercapture`,Wv(new PointerEvent(`gotpointercapture`))))}function qv(e,t){let n=Vv.get(e);if(!n)return;let r=n.getStage();r&&r.content,Vv.delete(e),Hv&&n._fire(`lostpointercapture`,Wv(new PointerEvent(`lostpointercapture`)))}var Jv=`Stage`,Yv=`string`,Xv=`px`,Zv=`mouseout`,Qv=`mouseleave`,$v=`mouseover`,ey=`mouseenter`,ty=`mousemove`,ny=`mousedown`,ry=`mouseup`,iy=`pointermove`,ay=`pointerdown`,oy=`pointerup`,sy=`pointercancel`,cy=`lostpointercapture`,ly=`pointerout`,uy=`pointerleave`,dy=`pointerover`,fy=`pointerenter`,py=`contextmenu`,my=`touchstart`,hy=`touchend`,gy=`touchmove`,_y=`touchcancel`,vy=`wheel`,yy=5,by=[[ey,`_pointerenter`],[ny,`_pointerdown`],[ty,`_pointermove`],[ry,`_pointerup`],[Qv,`_pointerleave`],[my,`_pointerdown`],[gy,`_pointermove`],[hy,`_pointerup`],[_y,`_pointercancel`],[$v,`_pointerover`],[vy,`_wheel`],[py,`_contextmenu`],[ay,`_pointerdown`],[iy,`_pointermove`],[oy,`_pointerup`],[sy,`_pointercancel`],[cy,`_lostpointercapture`]],xy={mouse:{[ly]:Zv,[uy]:Qv,[dy]:$v,[fy]:ey,[iy]:ty,[ay]:ny,[oy]:ry,[sy]:`mousecancel`,pointerclick:`click`,pointerdblclick:`dblclick`},touch:{[ly]:`touchout`,[uy]:`touchleave`,[dy]:`touchover`,[fy]:`touchenter`,[iy]:gy,[ay]:my,[oy]:hy,[sy]:_y,pointerclick:`tap`,pointerdblclick:`dbltap`},pointer:{[ly]:ly,[uy]:uy,[dy]:dy,[fy]:fy,[iy]:iy,[ay]:ay,[oy]:oy,[sy]:sy,pointerclick:`pointerclick`,pointerdblclick:`pointerdblclick`}},Sy=e=>e.indexOf(`pointer`)>=0?`pointer`:e.indexOf(`touch`)>=0?`touch`:`mouse`,Cy=e=>{let t=Sy(e);if(t===`pointer`)return J.pointerEventsEnabled&&xy.pointer;if(t===`touch`)return xy.touch;if(t===`mouse`)return xy.mouse};function wy(e={}){return(e.clipFunc||e.clipWidth||e.clipHeight)&&Y.warn(`Stage does not support clipping. Please use clip for Layers or Groups.`),e}var Ty=`Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);`,Ey=[],Dy=class extends Bv{constructor(e){super(wy(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),Ey.push(this),this.on(`widthChange.konva heightChange.konva`,this._resizeDOM),this.on(`visibleChange.konva`,this._checkVisibility),this.on(`clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva`,()=>{wy(this.attrs)}),this._checkVisibility()}_validateAdd(e){let t=e.getType()===`Layer`,n=e.getType()===`FastLayer`;t||n||Y.throw(`You may only add layers to the stage.`)}_checkVisibility(){if(!this.content)return;let e=this.visible()?``:`none`;this.content.style.display=e}setContainer(e){if(typeof e===Yv){if(e.charAt(0)===`.`){var t=e.slice(1);e=document.getElementsByClassName(t)[0]}else{var n=e.charAt(0)===`#`?e.slice(1):e;e=document.getElementById(n)}if(!e)throw`Can not find container in document with id `+n}return this._setAttr(`container`,e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var e=this.children,t=e.length,n;for(n=0;n<t;n++)e[n].clear();return this}clone(e){return e||={},e.container=typeof document<`u`&&document.createElement(`div`),Bv.prototype.clone.call(this,e)}destroy(){super.destroy();var e=this.content;e&&Y._isInDocument(e)&&this.container().removeChild(e);var t=Ey.indexOf(this);return t>-1&&Ey.splice(t,1),this}getPointerPosition(){let e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(Y.warn(Ty),null)}_getPointerById(e){return this._pointerPositions.find(t=>t.id===e)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){e||={},e.x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();var t=new gv({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),n=t.getContext()._context,r=this.children;return(e.x||e.y)&&n.translate(-1*e.x,-1*e.y),r.forEach(function(t){if(t.isVisible()){var r=t._toKonvaCanvas(e);n.drawImage(r._canvas,e.x,e.y,r.getWidth()/r.getPixelRatio(),r.getHeight()/r.getPixelRatio())}}),t}getIntersection(e){if(!e)return null;var t=this.children,n=t.length-1,r;for(r=n;r>=0;r--){let n=t[r].getIntersection(e);if(n)return n}return null}_resizeDOM(){var e=this.width(),t=this.height();this.content&&(this.content.style.width=e+Xv,this.content.style.height=t+Xv),this.bufferCanvas.setSize(e,t),this.bufferHitCanvas.setSize(e,t),this.children.forEach(n=>{n.setSize({width:e,height:t}),n.draw()})}add(e,...t){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}super.add(e);var r=this.children.length;return r>yy&&Y.warn(`The stage has `+r+` layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group.`),e.setSize({width:this.width(),height:this.height()}),e.draw(),J.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return Gv(e,this)}setPointerCapture(e){Kv(e,this)}releaseCapture(e){qv(e,this)}getLayers(){return this.children}_bindContentEvents(){J.isBrowser&&by.forEach(([e,t])=>{this.content.addEventListener(e,e=>{this[t](e)})})}_pointerenter(e){this.setPointersPositions(e);let t=Cy(e.type);this._fire(t.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);let t=Cy(e.type);this._fire(t.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let t=this[e+`targetShape`];return t&&!t.getStage()&&(t=null),t}_pointerleave(e){let t=Cy(e.type),n=Sy(e.type);if(t){this.setPointersPositions(e);var r=this._getTargetShape(n),i=!vv.isDragging||J.hitOnDragEnabled;r&&i?(r._fireAndBubble(t.pointerout,{evt:e}),r._fireAndBubble(t.pointerleave,{evt:e}),this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this[n+`targetShape`]=null):i&&(this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(t.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(e){let t=Cy(e.type),n=Sy(e.type);if(t){this.setPointersPositions(e);var r=!1;this._changedPointerPositions.forEach(i=>{var a=this.getIntersection(i);if(vv.justDragged=!1,J[`_`+n+`ListenClick`]=!0,!(a&&a.isListening()))return;J.capturePointerEventsEnabled&&a.setPointerCapture(i.id),this[n+`ClickStartShape`]=a,a._fireAndBubble(t.pointerdown,{evt:e,pointerId:i.id}),r=!0;let o=e.type.indexOf(`touch`)>=0;a.preventDefault()&&e.cancelable&&o&&e.preventDefault()}),r||this._fire(t.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(e){let t=Cy(e.type),n=Sy(e.type);if(!t||(vv.isDragging&&vv.node.preventDefault()&&e.cancelable&&e.preventDefault(),this.setPointersPositions(e),!(!vv.isDragging||J.hitOnDragEnabled)))return;var r={};let i=!1;var a=this._getTargetShape(n);this._changedPointerPositions.forEach(o=>{let s=Uv(o.id)||this.getIntersection(o),c=o.id,l={evt:e,pointerId:c};var u=a!==s;if(u&&a&&(a._fireAndBubble(t.pointerout,Object.assign({},l),s),a._fireAndBubble(t.pointerleave,Object.assign({},l),s)),s){if(r[s._id])return;r[s._id]=!0}s&&s.isListening()?(i=!0,u&&(s._fireAndBubble(t.pointerover,Object.assign({},l),a),s._fireAndBubble(t.pointerenter,Object.assign({},l),a),this[n+`targetShape`]=s),s._fireAndBubble(t.pointermove,Object.assign({},l))):a&&(this._fire(t.pointerover,{evt:e,target:this,currentTarget:this,pointerId:c}),this[n+`targetShape`]=null)}),i||this._fire(t.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){let t=Cy(e.type),n=Sy(e.type);if(!t)return;this.setPointersPositions(e);let r=this[n+`ClickStartShape`],i=this[n+`ClickEndShape`];var a={};let o=!1;this._changedPointerPositions.forEach(s=>{let c=Uv(s.id)||this.getIntersection(s);if(c){if(c.releaseCapture(s.id),a[c._id])return;a[c._id]=!0}let l=s.id,u={evt:e,pointerId:l},d=!1;J[`_`+n+`InDblClickWindow`]&&J[`_`+n+`InDblClickWindowId`]===l?(d=!0,clearTimeout(this[n+`DblTimeout`])):vv.justDragged||(J[`_`+n+`InDblClickWindow`]=!0,J[`_`+n+`InDblClickWindowId`]=l,clearTimeout(this[n+`DblTimeout`])),this[n+`DblTimeout`]=setTimeout(function(){J[`_`+n+`InDblClickWindow`]=!1},J.dblClickWindow),c&&c.isListening()?(o=!0,this[n+`ClickEndShape`]=c,c._fireAndBubble(t.pointerup,Object.assign({},u)),J[`_`+n+`ListenClick`]&&r&&r===c&&(c._fireAndBubble(t.pointerclick,Object.assign({},u)),d&&i&&i===c&&c._fireAndBubble(t.pointerdblclick,Object.assign({},u)))):(this[n+`ClickEndShape`]=null,J[`_`+n+`ListenClick`]&&this._fire(t.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:l}),d&&this._fire(t.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:l}))}),o||this._fire(t.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),J[`_`+n+`ListenClick`]=!1,e.cancelable&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(py,{evt:e}):this._fire(py,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(vy,{evt:e}):this._fire(vy,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);let t=Uv(e.pointerId)||this.getIntersection(this.getPointerPosition());t&&t._fireAndBubble(oy,Wv(e)),qv(e.pointerId)}_lostpointercapture(e){qv(e.pointerId)}setPointersPositions(e){var t=this._getContentPosition(),n=null,r=null;e||=window.event,e.touches===void 0?(n=(e.clientX-t.left)/t.scaleX,r=(e.clientY-t.top)/t.scaleY,this.pointerPos={x:n,y:r},this._pointerPositions=[{x:n,y:r,id:Y._getFirstPointerId(e)}],this._changedPointerPositions=[{x:n,y:r,id:Y._getFirstPointerId(e)}]):(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,e=>{this._pointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}),Array.prototype.forEach.call(e.changedTouches||e.touches,e=>{this._changedPointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}))}_setPointerPosition(e){Y.warn(`Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.`),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new gv({width:this.width(),height:this.height()}),this.bufferHitCanvas=new _v({pixelRatio:1,width:this.width(),height:this.height()}),J.isBrowser){var e=this.container();if(!e)throw`Stage has no container. A container is required.`;e.innerHTML=``,this.content=document.createElement(`div`),this.content.style.position=`relative`,this.content.style.userSelect=`none`,this.content.className=`konvajs-content`,this.content.setAttribute(`role`,`presentation`),e.appendChild(this.content),this._resizeDOM()}}cache(){return Y.warn(`Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.`),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(e){e.batchDraw()}),this}};Dy.prototype.nodeType=Jv,C_(Dy),Z.addGetterSetter(Dy,`container`);var Oy=`hasShadow`,ky=`shadowRGBA`,Ay=`patternImage`,jy=`linearGradient`,My=`radialGradient`,Ny;function Py(){return Ny||(Ny=Y.createCanvasElement().getContext(`2d`),Ny)}var Fy={};function Iy(e){e.fill()}function Ly(e){e.stroke()}function Ry(e){e.fill()}function zy(e){e.stroke()}function By(){this._clearCache(Oy)}function Vy(){this._clearCache(ky)}function Hy(){this._clearCache(Ay)}function Uy(){this._clearCache(jy)}function Wy(){this._clearCache(My)}var $=class extends Q{constructor(e){super(e);let t;for(;t=Y.getRandomColor(),!(t&&!(t in Fy)););this.colorKey=t,Fy[t]=this}getContext(){return Y.warn(`shape.getContext() method is deprecated. Please do not use it.`),this.getLayer().getContext()}getCanvas(){return Y.warn(`shape.getCanvas() method is deprecated. Please do not use it.`),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(Oy,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(Ay,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){let e=Py().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||`repeat`);if(e&&e.setTransform){let t=new w_;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(J.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());let n=t.getMatrix();e.setTransform({a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]})}return e}}_getLinearGradient(){return this._getCache(jy,this.__getLinearGradient)}__getLinearGradient(){var e=this.fillLinearGradientColorStops();if(e){for(var t=Py(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=t.createLinearGradient(n.x,n.y,r.x,r.y),a=0;a<e.length;a+=2)i.addColorStop(e[a],e[a+1]);return i}}_getRadialGradient(){return this._getCache(My,this.__getRadialGradient)}__getRadialGradient(){var e=this.fillRadialGradientColorStops();if(e){for(var t=Py(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=t.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),a=0;a<e.length;a+=2)i.addColorStop(e[a],e[a+1]);return i}}getShadowRGBA(){return this._getCache(ky,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var e=Y.colorToRGBA(this.shadowColor());return`rgba(`+e.r+`,`+e.g+`,`+e.b+`,`+e.a*(this.shadowOpacity()||1)+`)`}}hasFill(){return this._calculate(`hasFill`,[`fillEnabled`,`fill`,`fillPatternImage`,`fillLinearGradientColorStops`,`fillRadialGradientColorStops`],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate(`hasStroke`,[`strokeEnabled`,`strokeWidth`,`stroke`,`strokeLinearGradientColorStops`],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){let e=this.hitStrokeWidth();return e===`auto`?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){var t=this.getStage().bufferHitCanvas,n;return t.getContext().clear(),this.drawHit(t,null,!0),n=t.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data,n[3]>0}destroy(){return Q.prototype.destroy.call(this),delete Fy[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){if(!this.getStage()||!(this.attrs.perfectDrawEnabled??!0))return!1;let t=e||this.hasFill(),n=this.hasStroke(),r=this.getAbsoluteOpacity()!==1;if(t&&n&&r)return!0;let i=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(t&&n&&i&&a)}setStrokeHitEnabled(e){Y.warn(`strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead.`),e?this.hitStrokeWidth(`auto`):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let t=e.skipTransform,n=e.relativeTo,r=this.getSelfRect(),i=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,a=r.width+i,o=r.height+i,s=!e.skipShadow&&this.hasShadow(),c=s?this.shadowOffsetX():0,l=s?this.shadowOffsetY():0,u=a+Math.abs(c),d=o+Math.abs(l),f=s&&this.shadowBlur()||0,p=u+f*2,m=d+f*2,h=0;Math.round(i/2)!==i/2&&(h=1);let g={width:p+h,height:m+h,x:-Math.round(i/2+f)+Math.min(c,0)+r.x,y:-Math.round(i/2+f)+Math.min(l,0)+r.y};return t?g:this._transformedRect(g,n)}drawScene(e,t){var n=this.getLayer(),r=e||n.getCanvas(),i=r.getContext(),a=this._getCanvasCache(),o=this.getSceneFunc(),s=this.hasShadow(),c,l,u,d=r.isCache,f=t===this;if(!this.isVisible()&&!f)return this;if(a){i.save();var p=this.getAbsoluteTransform(t).getMatrix();return i.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedSceneCanvas(i),i.restore(),this}if(!o)return this;if(i.save(),this._useBufferCanvas()&&!d){c=this.getStage(),l=c.bufferCanvas,u=l.getContext(),u.clear(),u.save(),u._applyLineJoin(this);var m=this.getAbsoluteTransform(t).getMatrix();u.transform(m[0],m[1],m[2],m[3],m[4],m[5]),o.call(this,u,this),u.restore();var h=l.pixelRatio;s&&i._applyShadow(this),i._applyOpacity(this),i._applyGlobalCompositeOperation(this),i.drawImage(l._canvas,0,0,l.width/h,l.height/h)}else{if(i._applyLineJoin(this),!f){var m=this.getAbsoluteTransform(t).getMatrix();i.transform(m[0],m[1],m[2],m[3],m[4],m[5]),i._applyOpacity(this),i._applyGlobalCompositeOperation(this)}s&&i._applyShadow(this),o.call(this,i,this)}return i.restore(),this}drawHit(e,t,n=!1){if(!this.shouldDrawHit(t,n))return this;var r=this.getLayer(),i=e||r.hitCanvas,a=i&&i.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._getCanvasCache(),c=s&&s.hit;if(this.colorKey||Y.warn(`Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()`),c){a.save();var l=this.getAbsoluteTransform(t).getMatrix();return a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!o)return this;if(a.save(),a._applyLineJoin(this),this!==t){var u=this.getAbsoluteTransform(t).getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return o.call(this,a,this),a.restore(),this}drawHitFromCache(e=0){var t=this._getCanvasCache(),n=this._getCachedSceneCanvas(),r=t.hit,i=r.getContext(),a=r.getWidth(),o=r.getHeight(),s,c,l,u,d,f;i.clear(),i.drawImage(n._canvas,0,0,a,o);try{for(s=i.getImageData(0,0,a,o),c=s.data,l=c.length,u=Y._hexToRgb(this.colorKey),d=0;d<l;d+=4)f=c[d+3],f>e?(c[d]=u.r,c[d+1]=u.g,c[d+2]=u.b,c[d+3]=255):c[d+3]=0;i.putImageData(s,0,0)}catch(e){Y.error(`Unable to draw hit graph from cached scene canvas. `+e.message)}return this}hasPointerCapture(e){return Gv(e,this)}setPointerCapture(e){Kv(e,this)}releaseCapture(e){qv(e,this)}};$.prototype._fillFunc=Iy,$.prototype._strokeFunc=Ly,$.prototype._fillFuncHit=Ry,$.prototype._strokeFuncHit=zy,$.prototype._centroid=!1,$.prototype.nodeType=`Shape`,C_($),$.prototype.eventListeners={},$.prototype.on.call($.prototype,`shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva`,By),$.prototype.on.call($.prototype,`shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva`,Vy),$.prototype.on.call($.prototype,`fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva`,Hy),$.prototype.on.call($.prototype,`fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva`,Uy),$.prototype.on.call($.prototype,`fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva`,Wy),Z.addGetterSetter($,`stroke`,void 0,K_()),Z.addGetterSetter($,`strokeWidth`,2,X()),Z.addGetterSetter($,`fillAfterStrokeEnabled`,!1),Z.addGetterSetter($,`hitStrokeWidth`,`auto`,W_()),Z.addGetterSetter($,`strokeHitEnabled`,!0,J_()),Z.addGetterSetter($,`perfectDrawEnabled`,!0,J_()),Z.addGetterSetter($,`shadowForStrokeEnabled`,!0,J_()),Z.addGetterSetter($,`lineJoin`),Z.addGetterSetter($,`lineCap`),Z.addGetterSetter($,`sceneFunc`),Z.addGetterSetter($,`hitFunc`),Z.addGetterSetter($,`dash`),Z.addGetterSetter($,`dashOffset`,0,X()),Z.addGetterSetter($,`shadowColor`,void 0,G_()),Z.addGetterSetter($,`shadowBlur`,0,X()),Z.addGetterSetter($,`shadowOpacity`,1,X()),Z.addComponentsGetterSetter($,`shadowOffset`,[`x`,`y`]),Z.addGetterSetter($,`shadowOffsetX`,0,X()),Z.addGetterSetter($,`shadowOffsetY`,0,X()),Z.addGetterSetter($,`fillPatternImage`),Z.addGetterSetter($,`fill`,void 0,K_()),Z.addGetterSetter($,`fillPatternX`,0,X()),Z.addGetterSetter($,`fillPatternY`,0,X()),Z.addGetterSetter($,`fillLinearGradientColorStops`),Z.addGetterSetter($,`strokeLinearGradientColorStops`),Z.addGetterSetter($,`fillRadialGradientStartRadius`,0),Z.addGetterSetter($,`fillRadialGradientEndRadius`,0),Z.addGetterSetter($,`fillRadialGradientColorStops`),Z.addGetterSetter($,`fillPatternRepeat`,`repeat`),Z.addGetterSetter($,`fillEnabled`,!0),Z.addGetterSetter($,`strokeEnabled`,!0),Z.addGetterSetter($,`shadowEnabled`,!0),Z.addGetterSetter($,`dashEnabled`,!0),Z.addGetterSetter($,`strokeScaleEnabled`,!0),Z.addGetterSetter($,`fillPriority`,`color`),Z.addComponentsGetterSetter($,`fillPatternOffset`,[`x`,`y`]),Z.addGetterSetter($,`fillPatternOffsetX`,0,X()),Z.addGetterSetter($,`fillPatternOffsetY`,0,X()),Z.addComponentsGetterSetter($,`fillPatternScale`,[`x`,`y`]),Z.addGetterSetter($,`fillPatternScaleX`,1,X()),Z.addGetterSetter($,`fillPatternScaleY`,1,X()),Z.addComponentsGetterSetter($,`fillLinearGradientStartPoint`,[`x`,`y`]),Z.addComponentsGetterSetter($,`strokeLinearGradientStartPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillLinearGradientStartPointX`,0),Z.addGetterSetter($,`strokeLinearGradientStartPointX`,0),Z.addGetterSetter($,`fillLinearGradientStartPointY`,0),Z.addGetterSetter($,`strokeLinearGradientStartPointY`,0),Z.addComponentsGetterSetter($,`fillLinearGradientEndPoint`,[`x`,`y`]),Z.addComponentsGetterSetter($,`strokeLinearGradientEndPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillLinearGradientEndPointX`,0),Z.addGetterSetter($,`strokeLinearGradientEndPointX`,0),Z.addGetterSetter($,`fillLinearGradientEndPointY`,0),Z.addGetterSetter($,`strokeLinearGradientEndPointY`,0),Z.addComponentsGetterSetter($,`fillRadialGradientStartPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillRadialGradientStartPointX`,0),Z.addGetterSetter($,`fillRadialGradientStartPointY`,0),Z.addComponentsGetterSetter($,`fillRadialGradientEndPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillRadialGradientEndPointX`,0),Z.addGetterSetter($,`fillRadialGradientEndPointY`,0),Z.addGetterSetter($,`fillPatternRotation`,0),Z.backCompat($,{dashArray:`dash`,getDashArray:`getDash`,setDashArray:`getDash`,drawFunc:`sceneFunc`,getDrawFunc:`getSceneFunc`,setDrawFunc:`setSceneFunc`,drawHitFunc:`hitFunc`,getDrawHitFunc:`getHitFunc`,setDrawHitFunc:`setHitFunc`});var Gy=`#`,Ky=`beforeDraw`,qy=`draw`,Jy=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Yy=Jy.length,Xy=class extends Bv{constructor(e){super(e),this.canvas=new gv,this.hitCanvas=new _v({pixelRatio:1}),this._waitingForDraw=!1,this.on(`visibleChange.konva`,this._checkVisibility),this._checkVisibility(),this.on(`imageSmoothingEnabledChange.konva`,this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),e<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[e+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Q.prototype.moveToTop.call(this);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Q.prototype.moveUp.call(this))return!1;var e=this.getStage();return!e||!e.content?!1:(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Q.prototype.moveDown.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Q.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var e=this.getNativeCanvasElement();return Q.prototype.remove.call(this),e&&e.parentNode&&Y._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:t}){return this.canvas.setSize(e,t),this.hitCanvas.setSize(e,t),this._setSmoothEnabled(),this}_validateAdd(e){var t=e.getType();t!==`Group`&&t!==`Shape`&&Y.throw(`You may only add groups and shapes to a layer.`)}_toKonvaCanvas(e){return e||={},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x===void 0?this.x():e.x,e.y=e.y===void 0?this.y():e.y,Q.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display=`block`:this.canvas._canvas.style.display=`none`}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){Y.warn(`Can not change width of layer. Use "stage.width(value)" function instead.`)}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Y.warn(`Can not change height of layer. Use "stage.height(value)" function instead.`)}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Y.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;for(var t=1,n=!1;;){for(let r=0;r<Yy;r++){let i=Jy[r],a=this._getIntersection({x:e.x+i.x*t,y:e.y+i.y*t}),o=a.shape;if(o)return o;if(n=!!a.antialiased,!a.antialiased)break}if(n)t+=1;else return null}}_getIntersection(e){let t=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(e.x*t),Math.round(e.y*t),1,1).data,r=n[3];if(r===255){let e=Fy[Gy+Y._rgbToHex(n[0],n[1],n[2])];return e?{shape:e}:{antialiased:!0}}else if(r>0)return{antialiased:!0};return{}}drawScene(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire(Ky,{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),Bv.prototype.drawScene.call(this,r,t),this._fire(qy,{node:this}),this}drawHit(e,t){var n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Bv.prototype.drawHit.call(this,r,t),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){Y.warn(`hitGraphEnabled method is deprecated. Please use layer.listening() instead.`),this.listening(e)}getHitGraphEnabled(e){return Y.warn(`hitGraphEnabled method is deprecated. Please use layer.listening() instead.`),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var e=this.parent;this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}}};Xy.prototype.nodeType=`Layer`,C_(Xy),Z.addGetterSetter(Xy,`imageSmoothingEnabled`,!0),Z.addGetterSetter(Xy,`clearBeforeDraw`,!0),Z.addGetterSetter(Xy,`hitGraphEnabled`,!0,J_());var Zy=class extends Xy{constructor(e){super(e),this.listening(!1),Y.warn(`Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.`)}};Zy.prototype.nodeType=`FastLayer`,C_(Zy);var Qy=class extends Bv{_validateAdd(e){var t=e.getType();t!==`Group`&&t!==`Shape`&&Y.throw(`You may only add groups and shapes to groups.`)}};Qy.prototype.nodeType=`Group`,C_(Qy);var $y=(function(){return S_.performance&&S_.performance.now?function(){return S_.performance.now()}:function(){return new Date().getTime()}})(),eb=class e{constructor(t,n){this.id=e.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:$y(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(e){var t=[];return t=e?e.length>0?e:[e]:[],this.layers=t,this}getLayers(){return this.layers}addLayer(e){var t=this.layers,n=t.length,r;for(r=0;r<n;r++)if(t[r]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){var t=e.animations,n=t.length,r;for(r=0;r<n;r++)if(t[r].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=$y(),e._addAnimation(this),this}stop(){return e._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){var t=e.id,n=this.animations,r=n.length,i;for(i=0;i<r;i++)if(n[i].id===t){this.animations.splice(i,1);break}}static _runFrames(){var e={},t=this.animations,n,r,i,a,o,s,c,l,u;for(a=0;a<t.length;a++)if(n=t[a],r=n.layers,i=n.func,n._updateFrameObject($y()),s=r.length,u=!i||i.call(n,n.frame)!==!1,u)for(o=0;o<s;o++)c=r[o],c._id!==void 0&&(e[c._id]=c);for(l in e)e.hasOwnProperty(l)&&e[l].batchDraw()}static _animationLoop(){var t=e;t.animations.length?(t._runFrames(),Y.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,Y.requestAnimFrame(this._animationLoop))}};eb.animations=[],eb.animIdCounter=0,eb.animRunning=!1;var tb={node:1,duration:1,easing:1,onFinish:1,yoyo:1},nb=1,rb=2,ib=3,ab=0,ob=[`fill`,`stroke`,`shadowColor`],sb=class{constructor(e,t,n,r,i,a,o){this.prop=e,this.propFunc=t,this.begin=r,this._pos=r,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}fire(e){var t=this[e];t&&t()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return e===void 0&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=rb,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire(`onPlay`)}reverse(){this.state=ib,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire(`onReverse`)}seek(e){this.pause(),this._time=e,this.update(),this.fire(`onSeek`)}reset(){this.pause(),this._time=0,this.update(),this.fire(`onReset`)}finish(){this.pause(),this._time=this.duration,this.update(),this.fire(`onFinish`)}update(){this.setPosition(this.getPosition(this._time)),this.fire(`onUpdate`)}onEnterFrame(){var e=this.getTimer()-this._startTime;this.state===rb?this.setTime(e):this.state===ib&&this.setTime(this.duration-e)}pause(){this.state=nb,this.fire(`onPause`)}getTimer(){return new Date().getTime()}},cb=class e{constructor(t){var n=this,r=t.node,i=r._id,a,o=t.easing||lb.Linear,s=!!t.yoyo,c;a=t.duration===void 0?.3:t.duration===0?.001:t.duration,this.node=r,this._id=ab++;var l=r.getLayer()||(r instanceof J.Stage?r.getLayers():null);for(c in l||Y.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new eb(function(){n.tween.onEnterFrame()},l),this.tween=new sb(c,function(e){n._tweenFunc(e)},o,0,1,a*1e3,s),this._addListeners(),e.attrs[i]||(e.attrs[i]={}),e.attrs[i][this._id]||(e.attrs[i][this._id]={}),e.tweens[i]||(e.tweens[i]={}),t)tb[c]===void 0&&this._addAttr(c,t[c]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,n){var r=this.node,i=r._id,a,o,s=e.tweens[i][t],c,l,u,d,f;if(s&&delete e.attrs[i][s][t],a=r.getAttr(t),Y._isArray(n))if(o=[],l=Math.max(n.length,a.length),t===`points`&&n.length!==a.length&&(n.length>a.length?(d=a,a=Y._prepareArrayForTween(a,n,r.closed())):(u=n,n=Y._prepareArrayForTween(n,a,r.closed()))),t.indexOf(`fill`)===0)for(c=0;c<l;c++)if(c%2==0)o.push(n[c]-a[c]);else{var p=Y.colorToRGBA(a[c]);f=Y.colorToRGBA(n[c]),a[c]=p,o.push({r:f.r-p.r,g:f.g-p.g,b:f.b-p.b,a:f.a-p.a})}else for(c=0;c<l;c++)o.push(n[c]-a[c]);else ob.indexOf(t)===-1?o=n-a:(a=Y.colorToRGBA(a),f=Y.colorToRGBA(n),o={r:f.r-a.r,g:f.g-a.g,b:f.b-a.b,a:f.a-a.a});e.attrs[i][this._id][t]={start:a,diff:o,end:n,trueEnd:u,trueStart:d},e.tweens[i][t]=this._id}_tweenFunc(t){var n=this.node,r=e.attrs[n._id][this._id],i,a,o,s,c,l,u,d;for(i in r){if(a=r[i],o=a.start,s=a.diff,d=a.end,Y._isArray(o))if(c=[],u=Math.max(o.length,d.length),i.indexOf(`fill`)===0)for(l=0;l<u;l++)l%2==0?c.push((o[l]||0)+s[l]*t):c.push(`rgba(`+Math.round(o[l].r+s[l].r*t)+`,`+Math.round(o[l].g+s[l].g*t)+`,`+Math.round(o[l].b+s[l].b*t)+`,`+(o[l].a+s[l].a*t)+`)`);else for(l=0;l<u;l++)c.push((o[l]||0)+s[l]*t);else c=ob.indexOf(i)===-1?o+s*t:`rgba(`+Math.round(o.r+s.r*t)+`,`+Math.round(o.g+s.g*t)+`,`+Math.round(o.b+s.b*t)+`,`+(o.a+s.a*t)+`)`;n.setAttr(i,c)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,n=e.attrs[t._id][this._id];n.points&&n.points.trueEnd&&t.setAttr(`points`,n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,n=e.attrs[t._id][this._id];n.points&&n.points.trueStart&&t.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(e*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t=this.node._id,n=this._id,r=e.tweens[t],i;for(i in this.pause(),r)delete e.tweens[t][i];delete e.attrs[t][n]}};cb.attrs={},cb.tweens={},Q.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new cb(e).play()};var lb={BackEaseIn(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*(((i*=1.525)+1)*e-i))+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},ElasticEaseIn(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r)===1?t+n:(a||=r*.3,!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),-(i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t)},ElasticEaseOut(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r)===1?t+n:(a||=r*.3,!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),i*2**(-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+n+t)},ElasticEaseInOut(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r/2)==2?t+n:(a||=.3*1.5*r,!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),e<1?-.5*(i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t:i*2**(-10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+n+t)},BounceEaseOut(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},BounceEaseIn(e,t,n,r){return n-lb.BounceEaseOut(r-e,0,n,r)+t},BounceEaseInOut(e,t,n,r){return e<r/2?lb.BounceEaseIn(e*2,0,n,r)*.5+t:lb.BounceEaseOut(e*2-r,0,n,r)*.5+n*.5+t},EaseIn(e,t,n,r){return n*(e/=r)*e+t},EaseOut(e,t,n,r){return-n*(e/=r)*(e-2)+t},EaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},StrongEaseIn(e,t,n,r){return n*(e/=r)*e*e*e*e+t},StrongEaseOut(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},StrongEaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},Linear(e,t,n,r){return n*e/r+t}},ub=Y._assign(J,{Util:Y,Transform:w_,Node:Q,Container:Bv,Stage:Dy,stages:Ey,Layer:Xy,FastLayer:Zy,Group:Qy,DD:vv,Shape:$,shapes:Fy,Animation:eb,Tween:cb,Easings:lb,Context:uv,Canvas:hv}),db=class extends ${_sceneFunc(e){var t=J.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};db.prototype._centroid=!0,db.prototype.className=`Arc`,db.prototype._attrsAffectingSize=[`innerRadius`,`outerRadius`],C_(db),Z.addGetterSetter(db,`innerRadius`,0,X()),Z.addGetterSetter(db,`outerRadius`,0,X()),Z.addGetterSetter(db,`angle`,0,X()),Z.addGetterSetter(db,`clockwise`,!1,J_());function fb(e,t,n,r,i,a,o){var s=Math.sqrt((n-e)**2+(r-t)**2),c=Math.sqrt((i-n)**2+(a-r)**2),l=o*s/(s+c),u=o*c/(s+c);return[n-l*(i-e),r-l*(a-t),n+u*(i-e),r+u*(a-t)]}function pb(e,t){var n=e.length,r=[],i,a;for(i=2;i<n-2;i+=2)a=fb(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(a[0])&&(r.push(a[0]),r.push(a[1]),r.push(e[i]),r.push(e[i+1]),r.push(a[2]),r.push(a[3]));return r}var mb=class extends ${constructor(e){super(e),this.on(`pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva`,function(){this._clearCache(`tensionPoints`)})}_sceneFunc(e){var t=this.points(),n=t.length,r=this.tension(),i=this.closed(),a=this.bezier(),o,s,c;if(n){if(e.beginPath(),e.moveTo(t[0],t[1]),r!==0&&n>4){for(o=this.getTensionPoints(),s=o.length,c=i?0:4,i||e.quadraticCurveTo(o[0],o[1],o[2],o[3]);c<s-2;)e.bezierCurveTo(o[c++],o[c++],o[c++],o[c++],o[c++],o[c++]);i||e.quadraticCurveTo(o[s-2],o[s-1],t[n-2],t[n-1])}else if(a)for(c=2;c<n;)e.bezierCurveTo(t[c++],t[c++],t[c++],t[c++],t[c++],t[c++]);else for(c=2;c<n;c+=2)e.lineTo(t[c],t[c+1]);i?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache(`tensionPoints`,this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():pb(this.points(),this.tension())}_getTensionPointsClosed(){var e=this.points(),t=e.length,n=this.tension(),r=fb(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),i=fb(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),a=pb(e,n);return[r[2],r[3]].concat(a,[i[0],i[1],e[t-2],e[t-1],i[2],i[3],r[0],r[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};e=this.tension()===0?this.points():[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]];for(var t=e[0],n=e[0],r=e[1],i=e[1],a,o,s=0;s<e.length/2;s++)a=e[s*2],o=e[s*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);return{x:t,y:r,width:n-t,height:i-r}}};mb.prototype.className=`Line`,mb.prototype._attrsAffectingSize=[`points`,`bezier`,`tension`],C_(mb),Z.addGetterSetter(mb,`closed`,!1),Z.addGetterSetter(mb,`bezier`,!1),Z.addGetterSetter(mb,`tension`,0,X()),Z.addGetterSetter(mb,`points`,[],q_());var hb=class e extends ${constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on(`dataChange.konva`,function(){this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength})}_sceneFunc(e){var t=this.dataArray;e.beginPath();for(var n=!1,r=0;r<t.length;r++){var i=t[r].command,a=t[r].points;switch(i){case`L`:e.lineTo(a[0],a[1]);break;case`M`:e.moveTo(a[0],a[1]);break;case`C`:e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case`Q`:e.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case`A`:var o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],f=a[6],p=a[7],m=c>l?c:l,h=c>l?1:c/l,g=c>l?l/c:1;e.translate(o,s),e.rotate(f),e.scale(h,g),e.arc(0,0,m,u,u+d,1-p),e.scale(1/h,1/g),e.rotate(-f),e.translate(-o,-s);break;case`z`:n=!0,e.closePath();break}}!n&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(n){if(n.command===`A`){var r=n.points[4],i=n.points[5],a=n.points[4]+i,o=Math.PI/180;if(Math.abs(r-a)<o&&(o=Math.abs(r-a)),i<0)for(let i=r-o;i>a;i-=o){let r=e.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],i,0);t.push(r.x,r.y)}else for(let i=r+o;i<a;i+=o){let r=e.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],i,0);t.push(r.x,r.y)}}else if(n.command===`C`)for(let r=0;r<=1;r+=.01){let i=e.getPointOnCubicBezier(r,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3],n.points[4],n.points[5]);t.push(i.x,i.y)}else t=t.concat(n.points)});for(var n=t[0],r=t[0],i=t[1],a=t[1],o,s,c=0;c<t.length/2;c++)o=t[c*2],s=t[c*2+1],isNaN(o)||(n=Math.min(n,o),r=Math.max(r,o)),isNaN(s)||(i=Math.min(i,s),a=Math.max(a,s));return{x:Math.round(n),y:Math.round(i),width:Math.round(r-n),height:Math.round(a-i)}}getLength(){return this.pathLength}getPointAtLength(t){var n,r=0,i=this.dataArray.length;if(!i)return null;for(;r<i&&t>this.dataArray[r].pathLength;)t-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var a=this.dataArray[r],o=a.points;switch(a.command){case`L`:return e.getPointOnLine(t,a.start.x,a.start.y,o[0],o[1]);case`C`:return e.getPointOnCubicBezier(t/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3],o[4],o[5]);case`Q`:return e.getPointOnQuadraticBezier(t/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3]);case`A`:var s=o[0],c=o[1],l=o[2],u=o[3],d=o[4],f=o[5],p=o[6];return d+=f*t/a.pathLength,e.getPointOnEllipticalArc(s,c,l,u,d,p)}return null}static getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}static getPointOnLine(e,t,n,r,i,a,o){a===void 0&&(a=t),o===void 0&&(o=n);var s=(i-n)/(r-t+1e-8),c=Math.sqrt(e*e/(1+s*s));r<t&&(c*=-1);var l=s*c,u;if(r===t)u={x:a,y:o+l};else if((o-n)/(a-t+1e-8)===s)u={x:a+c,y:o+l};else{var d,f,p=this.getLineLength(t,n,r,i),m=(a-t)*(r-t)+(o-n)*(i-n);m/=p*p,d=t+m*(r-t),f=n+m*(i-n);var h=this.getLineLength(a,o,d,f),g=Math.sqrt(e*e-h*h);c=Math.sqrt(g*g/(1+s*s)),r<t&&(c*=-1),l=s*c,u={x:d+c,y:f+l}}return u}static getPointOnCubicBezier(e,t,n,r,i,a,o,s,c){function l(e){return e*e*e}function u(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function f(e){return(1-e)*(1-e)*(1-e)}return{x:s*l(e)+a*u(e)+r*d(e)+t*f(e),y:c*l(e)+o*u(e)+i*d(e)+n*f(e)}}static getPointOnQuadraticBezier(e,t,n,r,i,a,o){function s(e){return e*e}function c(e){return 2*e*(1-e)}function l(e){return(1-e)*(1-e)}return{x:a*s(e)+r*c(e)+t*l(e),y:o*s(e)+i*c(e)+n*l(e)}}static getPointOnEllipticalArc(e,t,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*o-c.y*s),y:t+(c.x*s+c.y*o)}}static parsePathData(e){if(!e)return[];var t=e,n=[`m`,`M`,`l`,`L`,`v`,`V`,`h`,`H`,`z`,`Z`,`c`,`C`,`q`,`Q`,`t`,`T`,`s`,`S`,`a`,`A`];t=t.replace(RegExp(` `,`g`),`,`);for(var r=0;r<n.length;r++)t=t.replace(new RegExp(n[r],`g`),`|`+n[r]);var i=t.split(`|`),a=[],o=[],s=0,c=0,l=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,u;for(r=1;r<i.length;r++){var d=i[r],f=d.charAt(0);for(d=d.slice(1),o.length=0;u=l.exec(d);)o.push(u[0]);for(var p=[],m=0,h=o.length;m<h;m++){if(o[m]===`00`){p.push(0,0);continue}var g=parseFloat(o[m]);isNaN(g)?p.push(0):p.push(g)}for(;p.length>0&&!isNaN(p[0]);){var _=null,v=[],y=s,b=c,x,S,C,w,T,E,D,O,k,A;switch(f){case`l`:s+=p.shift(),c+=p.shift(),_=`L`,v.push(s,c);break;case`L`:s=p.shift(),c=p.shift(),v.push(s,c);break;case`m`:var j=p.shift(),M=p.shift();if(s+=j,c+=M,_=`M`,a.length>2&&a[a.length-1].command===`z`){for(var ee=a.length-2;ee>=0;ee--)if(a[ee].command===`M`){s=a[ee].points[0]+j,c=a[ee].points[1]+M;break}}v.push(s,c),f=`l`;break;case`M`:s=p.shift(),c=p.shift(),_=`M`,v.push(s,c),f=`L`;break;case`h`:s+=p.shift(),_=`L`,v.push(s,c);break;case`H`:s=p.shift(),_=`L`,v.push(s,c);break;case`v`:c+=p.shift(),_=`L`,v.push(s,c);break;case`V`:c=p.shift(),_=`L`,v.push(s,c);break;case`C`:v.push(p.shift(),p.shift(),p.shift(),p.shift()),s=p.shift(),c=p.shift(),v.push(s,c);break;case`c`:v.push(s+p.shift(),c+p.shift(),s+p.shift(),c+p.shift()),s+=p.shift(),c+=p.shift(),_=`C`,v.push(s,c);break;case`S`:S=s,C=c,x=a[a.length-1],x.command===`C`&&(S=s+(s-x.points[2]),C=c+(c-x.points[3])),v.push(S,C,p.shift(),p.shift()),s=p.shift(),c=p.shift(),_=`C`,v.push(s,c);break;case`s`:S=s,C=c,x=a[a.length-1],x.command===`C`&&(S=s+(s-x.points[2]),C=c+(c-x.points[3])),v.push(S,C,s+p.shift(),c+p.shift()),s+=p.shift(),c+=p.shift(),_=`C`,v.push(s,c);break;case`Q`:v.push(p.shift(),p.shift()),s=p.shift(),c=p.shift(),v.push(s,c);break;case`q`:v.push(s+p.shift(),c+p.shift()),s+=p.shift(),c+=p.shift(),_=`Q`,v.push(s,c);break;case`T`:S=s,C=c,x=a[a.length-1],x.command===`Q`&&(S=s+(s-x.points[0]),C=c+(c-x.points[1])),s=p.shift(),c=p.shift(),_=`Q`,v.push(S,C,s,c);break;case`t`:S=s,C=c,x=a[a.length-1],x.command===`Q`&&(S=s+(s-x.points[0]),C=c+(c-x.points[1])),s+=p.shift(),c+=p.shift(),_=`Q`,v.push(S,C,s,c);break;case`A`:w=p.shift(),T=p.shift(),E=p.shift(),D=p.shift(),O=p.shift(),k=s,A=c,s=p.shift(),c=p.shift(),_=`A`,v=this.convertEndpointToCenterParameterization(k,A,s,c,D,O,w,T,E);break;case`a`:w=p.shift(),T=p.shift(),E=p.shift(),D=p.shift(),O=p.shift(),k=s,A=c,s+=p.shift(),c+=p.shift(),_=`A`,v=this.convertEndpointToCenterParameterization(k,A,s,c,D,O,w,T,E);break}a.push({command:_||f,points:v,start:{x:y,y:b},pathLength:this.calcLength(y,b,_||f,v)})}(f===`z`||f===`Z`)&&a.push({command:`z`,points:[],start:void 0,pathLength:0})}return a}static calcLength(t,n,r,i){var a,o,s,c,l=e;switch(r){case`L`:return l.getLineLength(t,n,i[0],i[1]);case`C`:for(a=0,o=l.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),c=.01;c<=1;c+=.01)s=l.getPointOnCubicBezier(c,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case`Q`:for(a=0,o=l.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),c=.01;c<=1;c+=.01)s=l.getPointOnQuadraticBezier(c,t,n,i[0],i[1],i[2],i[3]),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case`A`:a=0;var u=i[4],d=i[5],f=i[4]+d,p=Math.PI/180;if(Math.abs(u-f)<p&&(p=Math.abs(u-f)),o=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),d<0)for(c=u-p;c>f;c-=p)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(c=u+p;c<f;c+=p)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),a+=l.getLineLength(o.x,o.y,s.x,s.y),a}return 0}static convertEndpointToCenterParameterization(e,t,n,r,i,a,o,s,c){var l=Math.PI/180*c,u=Math.cos(l)*(e-n)/2+Math.sin(l)*(t-r)/2,d=-1*Math.sin(l)*(e-n)/2+Math.cos(l)*(t-r)/2,f=u*u/(o*o)+d*d/(s*s);f>1&&(o*=Math.sqrt(f),s*=Math.sqrt(f));var p=Math.sqrt((o*o*(s*s)-o*o*(d*d)-s*s*(u*u))/(o*o*(d*d)+s*s*(u*u)));i===a&&(p*=-1),isNaN(p)&&(p=0);var m=p*o*d/s,h=p*-s*u/o,g=(e+n)/2+Math.cos(l)*m-Math.sin(l)*h,_=(t+r)/2+Math.sin(l)*m+Math.cos(l)*h,v=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},y=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))},b=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))},x=b([1,0],[(u-m)/o,(d-h)/s]),S=[(u-m)/o,(d-h)/s],C=[(-1*u-m)/o,(-1*d-h)/s],w=b(S,C);return y(S,C)<=-1&&(w=Math.PI),y(S,C)>=1&&(w=0),a===0&&w>0&&(w-=2*Math.PI),a===1&&w<0&&(w+=2*Math.PI),[g,_,o,s,x,w,l,a]}};hb.prototype.className=`Path`,hb.prototype._attrsAffectingSize=[`data`],C_(hb),Z.addGetterSetter(hb,`data`);var gb=class extends mb{_sceneFunc(e){super._sceneFunc(e);var t=Math.PI*2,n=this.points(),r=n,i=this.tension()!==0&&n.length>4;i&&(r=this.getTensionPoints());var a=this.pointerLength(),o=n.length,s,c;if(i){let e=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[o-2],n[o-1]],t=hb.calcLength(r[r.length-4],r[r.length-3],`C`,e),i=hb.getPointOnQuadraticBezier(Math.min(1,1-a/t),e[0],e[1],e[2],e[3],e[4],e[5]);s=n[o-2]-i.x,c=n[o-1]-i.y}else s=n[o-2]-n[o-4],c=n[o-1]-n[o-3];var l=(Math.atan2(c,s)+t)%t,u=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[o-2],n[o-1]),e.rotate(l),e.moveTo(0,0),e.lineTo(-a,u/2),e.lineTo(-a,-u/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(s=(r[0]+r[2])/2-n[0],c=(r[1]+r[3])/2-n[1]):(s=n[2]-n[0],c=n[3]-n[1]),e.rotate((Math.atan2(-c,-s)+t)%t),e.moveTo(0,0),e.lineTo(-a,u/2),e.lineTo(-a,-u/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){let e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}}};gb.prototype.className=`Arrow`,C_(gb),Z.addGetterSetter(gb,`pointerLength`,10,X()),Z.addGetterSetter(gb,`pointerWidth`,10,X()),Z.addGetterSetter(gb,`pointerAtBeginning`,!1),Z.addGetterSetter(gb,`pointerAtEnding`,!0);var _b=class extends ${_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}};_b.prototype._centroid=!0,_b.prototype.className=`Circle`,_b.prototype._attrsAffectingSize=[`radius`],C_(_b),Z.addGetterSetter(_b,`radius`,0,X());var vb=class extends ${_sceneFunc(e){var t=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),t!==n&&e.scale(1,n/t),e.arc(0,0,t,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};vb.prototype.className=`Ellipse`,vb.prototype._centroid=!0,vb.prototype._attrsAffectingSize=[`radiusX`,`radiusY`],C_(vb),Z.addComponentsGetterSetter(vb,`radius`,[`x`,`y`]),Z.addGetterSetter(vb,`radiusX`,0,X()),Z.addGetterSetter(vb,`radiusY`,0,X());var yb=class e extends ${constructor(e){super(e),this.on(`imageChange.konva`,()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){let e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener(`load`,()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){let t=this.getWidth(),n=this.getHeight(),r=this.attrs.image,i;if(r){let e=this.attrs.cropWidth,a=this.attrs.cropHeight;i=e&&a?[r,this.cropX(),this.cropY(),e,a,0,0,t,n]:[r,0,0,t,n]}(this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)),r&&e.drawImage.apply(e,i)}_hitFunc(e){var t=this.width(),n=this.height();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.attrs.width??this.image()?.width}getHeight(){return this.attrs.height??this.image()?.height}static fromURL(t,n){var r=Y.createImageElement();r.onload=function(){n(new e({image:r}))},r.crossOrigin=`Anonymous`,r.src=t}};yb.prototype.className=`Image`,C_(yb),Z.addGetterSetter(yb,`image`),Z.addComponentsGetterSetter(yb,`crop`,[`x`,`y`,`width`,`height`]),Z.addGetterSetter(yb,`cropX`,0,X()),Z.addGetterSetter(yb,`cropY`,0,X()),Z.addGetterSetter(yb,`cropWidth`,0,X()),Z.addGetterSetter(yb,`cropHeight`,0,X());var bb=[`fontFamily`,`fontSize`,`fontStyle`,`padding`,`lineHeight`,`text`,`width`,`height`],xb=`Change.konva`,Sb=`none`,Cb=`up`,wb=`right`,Tb=`down`,Eb=`left`,Db=bb.length,Ob=class extends Qy{constructor(e){super(e),this.on(`add.konva`,function(e){this._addListeners(e.child),this._sync()})}getText(){return this.find(`Text`)[0]}getTag(){return this.find(`Tag`)[0]}_addListeners(e){var t=this,n,r=function(){t._sync()};for(n=0;n<Db;n++)e.on(bb[n]+xb,r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var e=this.getText(),t=this.getTag(),n,r,i,a,o,s,c;if(e&&t){switch(n=e.width(),r=e.height(),i=t.pointerDirection(),a=t.pointerWidth(),c=t.pointerHeight(),o=0,s=0,i){case Cb:o=n/2,s=-1*c;break;case wb:o=n+a,s=r/2;break;case Tb:o=n/2,s=r+c;break;case Eb:o=-1*a,s=r/2;break}t.setAttrs({x:-1*o,y:-1*s,width:n,height:r}),e.setAttrs({x:-1*o,y:-1*s})}}};Ob.prototype.className=`Label`,C_(Ob);var kb=class extends ${_sceneFunc(e){var t=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),a=this.pointerHeight(),o=this.cornerRadius();let s=0,c=0,l=0,u=0;typeof o==`number`?s=c=l=u=Math.min(o,t/2,n/2):(s=Math.min(o[0]||0,t/2,n/2),c=Math.min(o[1]||0,t/2,n/2),u=Math.min(o[2]||0,t/2,n/2),l=Math.min(o[3]||0,t/2,n/2)),e.beginPath(),e.moveTo(s,0),r===Cb&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*a),e.lineTo((t+i)/2,0)),e.lineTo(t-c,0),e.arc(t-c,c,c,Math.PI*3/2,0,!1),r===wb&&(e.lineTo(t,(n-a)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+a)/2)),e.lineTo(t,n-u),e.arc(t-u,n-u,u,0,Math.PI/2,!1),r===Tb&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+a),e.lineTo((t-i)/2,n)),e.lineTo(l,n),e.arc(l,n-l,l,Math.PI/2,Math.PI,!1),r===Eb&&(e.lineTo(0,(n+a)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-a)/2)),e.lineTo(0,s),e.arc(s,s,s,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){var e=0,t=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),a=this.width(),o=this.height();return i===Cb?(t-=r,o+=r):i===Tb?o+=r:i===Eb?(e-=n*1.5,a+=n):i===wb&&(a+=n*1.5),{x:e,y:t,width:a,height:o}}};kb.prototype.className=`Tag`,C_(kb),Z.addGetterSetter(kb,`pointerDirection`,Sb),Z.addGetterSetter(kb,`pointerWidth`,0,X()),Z.addGetterSetter(kb,`pointerHeight`,0,X()),Z.addGetterSetter(kb,`cornerRadius`,0,U_(4));var Ab=class extends ${_sceneFunc(e){var t=this.cornerRadius(),n=this.width(),r=this.height();if(e.beginPath(),!t)e.rect(0,0,n,r);else{let i=0,a=0,o=0,s=0;typeof t==`number`?i=a=o=s=Math.min(t,n/2,r/2):(i=Math.min(t[0]||0,n/2,r/2),a=Math.min(t[1]||0,n/2,r/2),s=Math.min(t[2]||0,n/2,r/2),o=Math.min(t[3]||0,n/2,r/2)),e.moveTo(i,0),e.lineTo(n-a,0),e.arc(n-a,a,a,Math.PI*3/2,0,!1),e.lineTo(n,r-s),e.arc(n-s,r-s,s,0,Math.PI/2,!1),e.lineTo(o,r),e.arc(o,r-o,o,Math.PI/2,Math.PI,!1),e.lineTo(0,i),e.arc(i,i,i,Math.PI,Math.PI*3/2,!1)}e.closePath(),e.fillStrokeShape(this)}};Ab.prototype.className=`Rect`,C_(Ab),Z.addGetterSetter(Ab,`cornerRadius`,0,U_(4));var jb=class extends ${_sceneFunc(e){let t=this._getPoints();e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var n=1;n<t.length;n++)e.lineTo(t[n].x,t[n].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){let e=this.attrs.sides,t=this.attrs.radius||0,n=[];for(var r=0;r<e;r++)n.push({x:t*Math.sin(r*2*Math.PI/e),y:-1*t*Math.cos(r*2*Math.PI/e)});return n}getSelfRect(){let e=this._getPoints();var t=e[0].x,n=e[0].y,r=e[0].x,i=e[0].y;return e.forEach(e=>{t=Math.min(t,e.x),n=Math.max(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.y)}),{x:t,y:r,width:n-t,height:i-r}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};jb.prototype.className=`RegularPolygon`,jb.prototype._centroid=!0,jb.prototype._attrsAffectingSize=[`radius`],C_(jb),Z.addGetterSetter(jb,`radius`,0,X()),Z.addGetterSetter(jb,`sides`,0,X());var Mb=Math.PI*2,Nb=class extends ${_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,Mb,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),Mb,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};Nb.prototype.className=`Ring`,Nb.prototype._centroid=!0,Nb.prototype._attrsAffectingSize=[`innerRadius`,`outerRadius`],C_(Nb),Z.addGetterSetter(Nb,`innerRadius`,0,X()),Z.addGetterSetter(Nb,`outerRadius`,0,X());var Pb=class extends ${constructor(e){super(e),this._updated=!0,this.anim=new eb(()=>{var e=this._updated;return this._updated=!1,e}),this.on(`animationChange.konva`,function(){this.frameIndex(0)}),this.on(`frameIndexChange.konva`,function(){this._updated=!0}),this.on(`frameRateChange.konva`,function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){var t=this.animation(),n=this.frameIndex(),r=n*4,i=this.animations()[t],a=this.frameOffsets(),o=i[r+0],s=i[r+1],c=i[r+2],l=i[r+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,c,l),e.closePath(),e.fillStrokeShape(this)),u)if(a){var d=a[t],f=n*2;e.drawImage(u,o,s,c,l,d[f+0],d[f+1],c,l)}else e.drawImage(u,o,s,c,l,0,0,c,l)}_hitFunc(e){var t=this.animation(),n=this.frameIndex(),r=n*4,i=this.animations()[t],a=this.frameOffsets(),o=i[r+2],s=i[r+3];if(e.beginPath(),a){var c=a[t],l=n*2;e.rect(c[l+0],c[l+1],o,s)}else e.rect(0,0,o,s);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),t=this.animation();e<this.animations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}};Pb.prototype.className=`Sprite`,C_(Pb),Z.addGetterSetter(Pb,`animation`),Z.addGetterSetter(Pb,`animations`),Z.addGetterSetter(Pb,`frameOffsets`),Z.addGetterSetter(Pb,`image`),Z.addGetterSetter(Pb,`frameIndex`,0,X()),Z.addGetterSetter(Pb,`frameRate`,17,X()),Z.backCompat(Pb,{index:`frameIndex`,getIndex:`getFrameIndex`,setIndex:`setFrameIndex`});var Fb=class extends ${_sceneFunc(e){var t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(var i=1;i<r*2;i++){var a=i%2==0?n:t,o=a*Math.sin(i*Math.PI/r),s=-1*a*Math.cos(i*Math.PI/r);e.lineTo(o,s)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};Fb.prototype.className=`Star`,Fb.prototype._centroid=!0,Fb.prototype._attrsAffectingSize=[`innerRadius`,`outerRadius`],C_(Fb),Z.addGetterSetter(Fb,`numPoints`,5,X()),Z.addGetterSetter(Fb,`innerRadius`,0,X()),Z.addGetterSetter(Fb,`outerRadius`,0,X());function Ib(e){return Array.from(e)}var Lb=`auto`,Rb=`center`,zb=`justify`,Bb=`Change.konva`,Vb=`2d`,Hb=`-`,Ub=`left`,Wb=`text`,Gb=`Text`,Kb=`top`,qb=`bottom`,Jb=`middle`,Yb=`normal`,Xb=`px `,Zb=` `,Qb=`right`,$b=`word`,ex=`char`,tx=`none`,nx=`…`,rx=[`fontFamily`,`fontSize`,`fontStyle`,`fontVariant`,`padding`,`align`,`verticalAlign`,`lineHeight`,`text`,`width`,`height`,`wrap`,`ellipsis`,`letterSpacing`],ix=rx.length;function ax(e){return e.split(`,`).map(e=>{e=e.trim();let t=e.indexOf(` `)>=0,n=e.indexOf(`"`)>=0||e.indexOf(`'`)>=0;return t&&!n&&(e=`"${e}"`),e}).join(`, `)}var ox;function sx(){return ox||(ox=Y.createCanvasElement().getContext(Vb),ox)}function cx(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function lx(e){e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function ux(e){return e||={},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||`black`),e}var dx=class extends ${constructor(e){super(ux(e)),this._partialTextX=0,this._partialTextY=0;for(var t=0;t<ix;t++)this.on(rx[t]+Bb,this._setTextData);this._setTextData()}_sceneFunc(e){var t=this.textArr,n=t.length;if(this.text()){var r=this.padding(),i=this.fontSize(),a=this.lineHeight()*i,o=this.verticalAlign(),s=0,c=this.align(),l=this.getWidth(),u=this.letterSpacing(),d=this.fill(),f=this.textDecoration(),p=f.indexOf(`underline`)!==-1,m=f.indexOf(`line-through`)!==-1,h,g=0,g=a/2,_=0,v=0;for(e.setAttr(`font`,this._getContextFont()),e.setAttr(`textBaseline`,Jb),e.setAttr(`textAlign`,Ub),o===Jb?s=(this.getHeight()-n*a-r*2)/2:o===qb&&(s=this.getHeight()-n*a-r*2),e.translate(r,s+r),h=0;h<n;h++){var _=0,v=0,y=t[h],b=y.text,x=y.width,S=h!==n-1,C,w,T;if(e.save(),c===Qb?_+=l-x-r*2:c===Rb&&(_+=(l-x-r*2)/2),p&&(e.save(),e.beginPath(),e.moveTo(_,g+v+Math.round(i/2)),C=b.split(` `).length-1,w=C===0,T=c===zb&&S&&!w?l-r*2:x,e.lineTo(_+Math.round(T),g+v+Math.round(i/2)),e.lineWidth=i/15,e.strokeStyle=d,e.stroke(),e.restore()),m&&(e.save(),e.beginPath(),e.moveTo(_,g+v),C=b.split(` `).length-1,w=C===0,T=c===zb&&S&&!w?l-r*2:x,e.lineTo(_+Math.round(T),g+v),e.lineWidth=i/15,e.strokeStyle=d,e.stroke(),e.restore()),u!==0||c===zb){C=b.split(` `).length-1;for(var E=Ib(b),D=0;D<E.length;D++){var O=E[D];O===` `&&h!==n-1&&c===zb&&(_+=(l-r*2-x)/C),this._partialTextX=_,this._partialTextY=g+v,this._partialText=O,e.fillStrokeShape(this),_+=this.measureSize(O).width+u}}else this._partialTextX=_,this._partialTextY=g+v,this._partialText=b,e.fillStrokeShape(this);e.restore(),n>1&&(g+=a)}}}_hitFunc(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var t=Y._isString(e)?e:e==null?``:e+``;return this._setAttr(Wb,t),this}getWidth(){return this.attrs.width===Lb||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Lb||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Y.warn(`text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height.`),this.textHeight}measureSize(e){var t=sx(),n=this.fontSize(),r;return t.save(),t.font=this._getContextFont(),r=t.measureText(e),t.restore(),{width:r.width,height:n}}_getContextFont(){return this.fontStyle()+Zb+this.fontVariant()+Zb+(this.fontSize()+Xb)+ax(this.fontFamily())}_addTextLine(e){this.align()===zb&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t})}_getTextWidth(e){var t=this.letterSpacing(),n=e.length;return sx().measureText(e).width+(n?t*(n-1):0)}_setTextData(){var e=this.text().split(`
|
|
148
|
-
`),t=+this.fontSize(),n=0,r=this.lineHeight()*t,i=this.attrs.width,a=this.attrs.height,o=i!==Lb&&i!==void 0,s=a!==Lb&&a!==void 0,c=this.padding(),l=i-c*2,u=a-c*2,d=0,f=this.wrap(),p=f!==tx,m=f!==ex&&p,h=this.ellipsis();this.textArr=[],sx().font=this._getContextFont();for(var g=h?this._getTextWidth(nx):0,_=0,v=e.length;_<v;++_){var y=e[_],b=this._getTextWidth(y);if(o&&b>l)for(;y.length>0;){for(var x=0,S=y.length,C=``,w=0;x<S;){var T=x+S>>>1,E=y.slice(0,T+1),D=this._getTextWidth(E)+g;D<=l?(x=T+1,C=E,w=D):S=T}if(C){if(m){var O,k=y[C.length];O=(k===Zb||k===Hb)&&w<=l?C.length:Math.max(C.lastIndexOf(Zb),C.lastIndexOf(Hb))+1,O>0&&(x=O,C=C.slice(0,x),w=this._getTextWidth(C))}if(C=C.trimRight(),this._addTextLine(C),n=Math.max(n,w),d+=r,!p||s&&d+r>u){var A=this.textArr[this.textArr.length-1];A&&h&&(this._getTextWidth(A.text+nx)<l||(A.text=A.text.slice(0,A.text.length-3)),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(A.text+nx));break}if(y=y.slice(x),y=y.trimLeft(),y.length>0&&(b=this._getTextWidth(y),b<=l)){this._addTextLine(y),d+=r,n=Math.max(n,b);break}}else break}else this._addTextLine(y),d+=r,n=Math.max(n,b);if(s&&d+r>u)break}this.textHeight=t,this.textWidth=n}getStrokeScaleEnabled(){return!0}};dx.prototype._fillFunc=cx,dx.prototype._strokeFunc=lx,dx.prototype.className=Gb,dx.prototype._attrsAffectingSize=[`text`,`fontSize`,`padding`,`wrap`,`lineHeight`,`letterSpacing`],C_(dx),Z.overWriteSetter(dx,`width`,W_()),Z.overWriteSetter(dx,`height`,W_()),Z.addGetterSetter(dx,`fontFamily`,`Arial`),Z.addGetterSetter(dx,`fontSize`,12,X()),Z.addGetterSetter(dx,`fontStyle`,Yb),Z.addGetterSetter(dx,`fontVariant`,Yb),Z.addGetterSetter(dx,`padding`,0,X()),Z.addGetterSetter(dx,`align`,Ub),Z.addGetterSetter(dx,`verticalAlign`,Kb),Z.addGetterSetter(dx,`lineHeight`,1,X()),Z.addGetterSetter(dx,`wrap`,$b),Z.addGetterSetter(dx,`ellipsis`,!1,J_()),Z.addGetterSetter(dx,`letterSpacing`,0,X()),Z.addGetterSetter(dx,`text`,``,G_()),Z.addGetterSetter(dx,`textDecoration`,``);var fx=``,px=`normal`;function mx(e){e.fillText(this.partialText,0,0)}function hx(e){e.strokeText(this.partialText,0,0)}var gx=class extends ${constructor(e){super(e),this.dummyCanvas=Y.createCanvasElement(),this.dataArray=[],this.dataArray=hb.parsePathData(this.attrs.data),this.on(`dataChange.konva`,function(){this.dataArray=hb.parsePathData(this.attrs.data),this._setTextData()}),this.on(`textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva`,this._setTextData),this._setTextData()}_sceneFunc(e){e.setAttr(`font`,this._getContextFont()),e.setAttr(`textBaseline`,this.textBaseline()),e.setAttr(`textAlign`,`left`),e.save();var t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;t===`underline`&&e.beginPath();for(var a=0;a<i.length;a++){e.save();var o=i[a].p0;e.translate(o.x,o.y),e.rotate(i[a].rotation),this.partialText=i[a].text,e.fillStrokeShape(this),t===`underline`&&(a===0&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}t===`underline`&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var t=this.glyphInfo;if(t.length>=1){var n=t[0].p0;e.moveTo(n.x,n.y)}for(var r=0;r<t.length;r++){var i=t[r].p1;e.lineTo(i.x,i.y)}e.setAttr(`lineWidth`,this.fontSize()),e.setAttr(`strokeStyle`,this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return Y.warn(`text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height.`),this.textHeight}setText(e){return dx.prototype.setText.call(this,e)}_getContextFont(){return dx.prototype._getContextFont.call(this)}_getTextSize(e){var t=this.dummyCanvas.getContext(`2d`);t.save(),t.font=this._getContextFont();var n=t.measureText(e);return t.restore(),{width:n.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var e=this,t=this._getTextSize(this.attrs.text),n=this.letterSpacing(),r=this.align(),i=this.kerningFunc();this.textWidth=t.width,this.textHeight=t.height;var a=Math.max(this.textWidth+((this.attrs.text||``).length-1)*n,0);this.glyphInfo=[];for(var o=0,s=0;s<e.dataArray.length;s++)e.dataArray[s].pathLength>0&&(o+=e.dataArray[s].pathLength);var c=0;r===`center`&&(c=Math.max(0,o/2-a/2)),r===`right`&&(c=Math.max(0,o-a));for(var l=Ib(this.text()),u=this.text().split(` `).length-1,d,f,p,m=-1,h=0,g=function(){h=0;for(var t=e.dataArray,n=m+1;n<t.length;n++)if(t[n].pathLength>0)return m=n,t[n];else t[n].command===`M`&&(d={x:t[n].points[0],y:t[n].points[1]});return{}},_=function(t){var i=e._getTextSize(t).width+n;t===` `&&r===`justify`&&(i+=(o-a)/u);var s=0,c=0;for(f=void 0;Math.abs(i-s)/i>.01&&c<20;){c++;for(var l=s;p===void 0;)p=g(),p&&l+p.pathLength<i&&(l+=p.pathLength,p=void 0);if(p==={}||d===void 0)return;var m=!1;switch(p.command){case`L`:hb.getLineLength(d.x,d.y,p.points[0],p.points[1])>i?f=hb.getPointOnLine(i,d.x,d.y,p.points[0],p.points[1],d.x,d.y):p=void 0;break;case`A`:var _=p.points[4],v=p.points[5],y=p.points[4]+v;h===0?h=_+1e-8:i>s?h+=Math.PI/180*v/Math.abs(v):h-=Math.PI/360*v/Math.abs(v),(v<0&&h<y||v>=0&&h>y)&&(h=y,m=!0),f=hb.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],h,p.points[6]);break;case`C`:h===0?h=i>p.pathLength?1e-8:i/p.pathLength:i>s?h+=(i-s)/p.pathLength/2:h=Math.max(h-(s-i)/p.pathLength/2,0),h>1&&(h=1,m=!0),f=hb.getPointOnCubicBezier(h,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case`Q`:h===0?h=i/p.pathLength:i>s?h+=(i-s)/p.pathLength:h-=(s-i)/p.pathLength,h>1&&(h=1,m=!0),f=hb.getPointOnQuadraticBezier(h,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}f!==void 0&&(s=hb.getLineLength(d.x,d.y,f.x,f.y)),m&&(m=!1,p=void 0)}},v=`C`,y=e._getTextSize(v).width+n,b=c/y-1,x=0;x<b&&(_(v),!(d===void 0||f===void 0));x++)d=f;for(var S=0;S<l.length&&(_(l[S]),!(d===void 0||f===void 0));S++){var C=hb.getLineLength(d.x,d.y,f.x,f.y),w=0;if(i)try{w=i(l[S-1],l[S])*this.fontSize()}catch{w=0}d.x+=w,f.x+=w,this.textWidth+=w;var T=hb.getPointOnLine(w+C/2,d.x,d.y,f.x,f.y),E=Math.atan2(f.y-d.y,f.x-d.x);this.glyphInfo.push({transposeX:T.x,transposeY:T.y,text:l[S],rotation:E,p0:d,p1:f}),d=f}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var e=[];this.glyphInfo.forEach(function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)});for(var t=e[0]||0,n=e[0]||0,r=e[1]||0,i=e[1]||0,a,o,s=0;s<e.length/2;s++)a=e[s*2],o=e[s*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);var c=this.fontSize();return{x:t-c/2,y:r-c/2,width:n-t+c,height:i-r+c}}};gx.prototype._fillFunc=mx,gx.prototype._strokeFunc=hx,gx.prototype._fillFuncHit=mx,gx.prototype._strokeFuncHit=hx,gx.prototype.className=`TextPath`,gx.prototype._attrsAffectingSize=[`text`,`fontSize`,`data`],C_(gx),Z.addGetterSetter(gx,`data`),Z.addGetterSetter(gx,`fontFamily`,`Arial`),Z.addGetterSetter(gx,`fontSize`,12,X()),Z.addGetterSetter(gx,`fontStyle`,px),Z.addGetterSetter(gx,`align`,`left`),Z.addGetterSetter(gx,`letterSpacing`,0,X()),Z.addGetterSetter(gx,`textBaseline`,`middle`),Z.addGetterSetter(gx,`fontVariant`,px),Z.addGetterSetter(gx,`text`,fx),Z.addGetterSetter(gx,`textDecoration`,null),Z.addGetterSetter(gx,`kerningFunc`,null);var _x=`tr-konva`,vx=[`resizeEnabledChange`,`rotateAnchorOffsetChange`,`rotateEnabledChange`,`enabledAnchorsChange`,`anchorSizeChange`,`borderEnabledChange`,`borderStrokeChange`,`borderStrokeWidthChange`,`borderDashChange`,`anchorStrokeChange`,`anchorStrokeWidthChange`,`anchorFillChange`,`anchorCornerRadiusChange`,`ignoreStrokeChange`].map(e=>e+`.${_x}`).join(` `),yx=`nodesRect`,bx=[`widthChange`,`heightChange`,`scaleXChange`,`scaleYChange`,`skewXChange`,`skewYChange`,`rotationChange`,`offsetXChange`,`offsetYChange`,`transformsEnabledChange`,`strokeWidthChange`],xx={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Sx=`ontouchstart`in J._global;function Cx(e,t){if(e===`rotater`)return`crosshair`;t+=Y.degToRad(xx[e]||0);var n=(Y.radToDeg(t)%360+360)%360;return Y._inRange(n,337.5,360)||Y._inRange(n,0,22.5)?`ns-resize`:Y._inRange(n,22.5,67.5)?`nesw-resize`:Y._inRange(n,67.5,112.5)?`ew-resize`:Y._inRange(n,112.5,157.5)?`nwse-resize`:Y._inRange(n,157.5,202.5)?`ns-resize`:Y._inRange(n,202.5,247.5)?`nesw-resize`:Y._inRange(n,247.5,292.5)?`ew-resize`:Y._inRange(n,292.5,337.5)?`nwse-resize`:(Y.error(`Transformer has unknown angle for cursor detection: `+n),`pointer`)}var wx=[`top-left`,`top-center`,`top-right`,`middle-right`,`middle-left`,`bottom-left`,`bottom-center`,`bottom-right`],Tx=1e8;function Ex(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Dx(e,t,n){let r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return Object.assign(Object.assign({},e),{rotation:e.rotation+t,x:r,y:i})}function Ox(e,t){return Dx(e,t,Ex(e))}function kx(e,t,n){let r=t;for(let i=0;i<e.length;i++){let a=J.getAngle(e[i]),o=Math.abs(a-t)%(Math.PI*2);Math.min(o,Math.PI*2-o)<n&&(r=a)}return r}var Ax=class extends Qy{constructor(e){super(e),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(vx,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return Y.warn(`tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead.`),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return _x+this._id}setNodes(e=[]){return this._nodes&&this._nodes.length&&this.detach(),this._nodes=e,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(e=>{let t=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},n=e._attrsAffectingSize.map(e=>e+`Change.`+this._getEventNamespace()).join(` `);e.on(n,t),e.on(bx.map(e=>e+`.${this._getEventNamespace()}`).join(` `),t),e.on(`absoluteTransformChange.${this._getEventNamespace()}`,t),this._proxyDrag(e)}),this._resetTransformCache(),this.findOne(`.top-left`)&&this.update(),this}_proxyDrag(e){let t;e.on(`dragstart.${this._getEventNamespace()}`,n=>{t=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(`.back`)&&this.startDrag(n,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!t)return;let r=e.getAbsolutePosition(),i=r.x-t.x,a=r.y-t.y;this.nodes().forEach(t=>{if(t===e||t.isDragging())return;let r=t.getAbsolutePosition();t.setAbsolutePosition({x:r.x+i,y:r.y+a}),t.startDrag(n)}),t=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off(`.`+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(yx),this._clearCache(`transform`),this._clearSelfAndDescendantCache(`absoluteTransform`)}_getNodeRect(){return this._getCache(yx,this.__getNodeRect)}__getNodeShape(e,t=this.rotation(),n){var r=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=e.getAbsoluteScale(n),a=e.getAbsolutePosition(n),o=r.x*i.x-e.offsetX()*i.x,s=r.y*i.y-e.offsetY()*i.y;let c=(J.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2);return Dx({x:a.x+o*Math.cos(c)+s*Math.sin(-c),y:a.y+s*Math.cos(c)+o*Math.sin(c),width:r.width*i.x,height:r.height*i.y,rotation:c},-J.getAngle(t),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-Tx,y:-Tx,width:0,height:0,rotation:0};let e=[];this.nodes().map(t=>{let n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var r=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],i=t.getAbsoluteTransform();r.forEach(function(t){var n=i.point(t);e.push(n)})});let t=new w_;t.rotate(-J.getAngle(this.rotation()));var n,r,i,a;e.forEach(function(e){var o=t.point(e);n===void 0&&(n=i=o.x,r=a=o.y),n=Math.min(n,o.x),r=Math.min(r,o.y),i=Math.max(i,o.x),a=Math.max(a,o.y)}),t.invert();let o=t.point({x:n,y:r});return{x:o.x,y:o.y,width:i-n,height:a-r,rotation:J.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),wx.forEach(function(e){this._createAnchor(e)}.bind(this)),this._createAnchor(`rotater`)}_createAnchor(e){var t=new Ab({stroke:`rgb(0, 161, 255)`,fill:`white`,strokeWidth:1,name:e+` _anchor`,dragDistance:0,draggable:!0,hitStrokeWidth:Sx?10:`auto`}),n=this;t.on(`mousedown touchstart`,function(e){n._handleMouseDown(e)}),t.on(`dragstart`,e=>{t.stopDrag(),e.cancelBubble=!0}),t.on(`dragend`,e=>{e.cancelBubble=!0}),t.on(`mouseenter`,()=>{var n=Cx(e,J.getAngle(this.rotation()));t.getStage().content&&(t.getStage().content.style.cursor=n),this._cursorChange=!0}),t.on(`mouseout`,()=>{t.getStage().content&&(t.getStage().content.style.cursor=``),this._cursorChange=!1}),this.add(t)}_createBack(){var e=new $({name:`back`,width:0,height:0,draggable:!0,sceneFunc(e){var t=this.getParent(),n=t.padding();e.beginPath(),e.rect(-n,-n,this.width()+n*2,this.height()+n*2),e.moveTo(this.width()/2,-n),t.rotateEnabled()&&e.lineTo(this.width()/2,-t.rotateAnchorOffset()*Y._sign(this.height())-n),e.fillStrokeShape(this)},hitFunc:(e,t)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,t.width()+n*2,t.height()+n*2),e.fillStrokeShape(t)}}});this.add(e),this._proxyDrag(e),e.on(`dragstart`,e=>{e.cancelBubble=!0}),e.on(`dragmove`,e=>{e.cancelBubble=!0}),e.on(`dragend`,e=>{e.cancelBubble=!0}),this.on(`dragmove`,e=>{this.update()})}_handleMouseDown(e){this._movingAnchorName=e.target.name().split(` `)[0];var t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(n**2+r**2);this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),typeof window<`u`&&(window.addEventListener(`mousemove`,this._handleMouseMove),window.addEventListener(`touchmove`,this._handleMouseMove),window.addEventListener(`mouseup`,this._handleMouseUp,!0),window.addEventListener(`touchend`,this._handleMouseUp,!0)),this._transforming=!0;var a=e.target.getAbsolutePosition(),o=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-a.x,y:o.y-a.y},this._fire(`transformstart`,{evt:e,target:this.getNode()}),this._nodes.forEach(t=>{t._fire(`transformstart`,{evt:e,target:t})})}_handleMouseMove(e){var t,n,r,i=this.findOne(`.`+this._movingAnchorName),a=i.getStage();a.setPointersPositions(e);let o=a.getPointerPosition(),s={x:o.x-this._anchorDragOffset.x,y:o.y-this._anchorDragOffset.y},c=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(c,s,e)),i.setAbsolutePosition(s);let l=i.getAbsolutePosition();if(!(c.x===l.x&&c.y===l.y)){if(this._movingAnchorName===`rotater`){var u=this._getNodeRect();t=i.x()-u.width/2,n=-i.y()+u.height/2;let r=Math.atan2(-n,t)+Math.PI/2;u.height<0&&(r-=Math.PI);let a=J.getAngle(this.rotation())+r,o=J.getAngle(this.rotationSnapTolerance()),s=Ox(u,kx(this.rotationSnaps(),a,o)-u.rotation);this._fitNodesInto(s,e);return}var d=this.keepRatio()||e.shiftKey,f=this.centeredScaling()||e.altKey;if(this._movingAnchorName===`top-left`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.bottom-right`).x(),y:this.findOne(`.bottom-right`).y()};r=Math.sqrt((p.x-i.x())**2+(p.y-i.y())**2);var m=this.findOne(`.top-left`).x()>p.x?-1:1,h=this.findOne(`.top-left`).y()>p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,this.findOne(`.top-left`).x(p.x-t),this.findOne(`.top-left`).y(p.y-n)}}else if(this._movingAnchorName===`top-center`)this.findOne(`.top-left`).y(i.y());else if(this._movingAnchorName===`top-right`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.bottom-left`).x(),y:this.findOne(`.bottom-left`).y()};r=Math.sqrt((i.x()-p.x)**2+(p.y-i.y())**2);var m=this.findOne(`.top-right`).x()<p.x?-1:1,h=this.findOne(`.top-right`).y()>p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,this.findOne(`.top-right`).x(p.x+t),this.findOne(`.top-right`).y(p.y-n)}var g=i.position();this.findOne(`.top-left`).y(g.y),this.findOne(`.bottom-right`).x(g.x)}else if(this._movingAnchorName===`middle-left`)this.findOne(`.top-left`).x(i.x());else if(this._movingAnchorName===`middle-right`)this.findOne(`.bottom-right`).x(i.x());else if(this._movingAnchorName===`bottom-left`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.top-right`).x(),y:this.findOne(`.top-right`).y()};r=Math.sqrt((p.x-i.x())**2+(i.y()-p.y)**2);var m=p.x<i.x()?-1:1,h=i.y()<p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,i.x(p.x-t),i.y(p.y+n)}g=i.position(),this.findOne(`.top-left`).x(g.x),this.findOne(`.bottom-right`).y(g.y)}else if(this._movingAnchorName===`bottom-center`)this.findOne(`.bottom-right`).y(i.y());else if(this._movingAnchorName===`bottom-right`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.top-left`).x(),y:this.findOne(`.top-left`).y()};r=Math.sqrt((i.x()-p.x)**2+(i.y()-p.y)**2);var m=this.findOne(`.bottom-right`).x()<p.x?-1:1,h=this.findOne(`.bottom-right`).y()<p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,this.findOne(`.bottom-right`).x(p.x+t),this.findOne(`.bottom-right`).y(p.y+n)}}else console.error(Error(`Wrong position argument of selection resizer: `+this._movingAnchorName));var f=this.centeredScaling()||e.altKey;if(f){var _=this.findOne(`.top-left`),v=this.findOne(`.bottom-right`),y=_.x(),b=_.y(),x=this.getWidth()-v.x(),S=this.getHeight()-v.y();v.move({x:-y,y:-b}),_.move({x,y:S})}var C=this.findOne(`.top-left`).getAbsolutePosition();t=C.x,n=C.y;var w=this.findOne(`.bottom-right`).x()-this.findOne(`.top-left`).x(),T=this.findOne(`.bottom-right`).y()-this.findOne(`.top-left`).y();this._fitNodesInto({x:t,y:n,width:w,height:T,rotation:J.getAngle(this.rotation())},e)}}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){if(this._transforming){this._transforming=!1,typeof window<`u`&&(window.removeEventListener(`mousemove`,this._handleMouseMove),window.removeEventListener(`touchmove`,this._handleMouseMove),window.removeEventListener(`mouseup`,this._handleMouseUp,!0),window.removeEventListener(`touchend`,this._handleMouseUp,!0));var t=this.getNode();this._fire(`transformend`,{evt:e,target:t}),t&&this._nodes.forEach(t=>{t._fire(`transformend`,{evt:e,target:t})}),this._movingAnchorName=null}}_fitNodesInto(e,t){var n=this._getNodeRect();if(Y._inRange(e.width,-this.padding()*2-1,1)){this.update();return}if(Y._inRange(e.height,-this.padding()*2-1,1)){this.update();return}let r=this.flipEnabled();var i=new w_;if(i.rotate(J.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf(`left`)>=0){let t=i.point({x:-this.padding()*2,y:0});if(e.x+=t.x,e.y+=t.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace(`left`,`right`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,!r){this.update();return}}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf(`right`)>=0){let t=i.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace(`right`,`left`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=this.padding()*2,!r){this.update();return}}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf(`top`)>=0){let t=i.point({x:0,y:-this.padding()*2});if(e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace(`top`,`bottom`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=this.padding()*2,!r){this.update();return}}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf(`bottom`)>=0){let t=i.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace(`bottom`,`top`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=this.padding()*2,!r){this.update();return}}if(this.boundBoxFunc()){let t=this.boundBoxFunc()(n,e);t?e=t:Y.warn(`boundBoxFunc returned falsy. You should return new bound rect from it!`)}let a=1e7,o=new w_;o.translate(n.x,n.y),o.rotate(n.rotation),o.scale(n.width/a,n.height/a);let s=new w_;s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(e.width/a,e.height/a);let c=s.multiply(o.invert());this._nodes.forEach(e=>{var n;let r=e.getParent().getAbsoluteTransform(),i=e.getTransform().copy();i.translate(e.offsetX(),e.offsetY());let a=new w_;a.multiply(r.copy().invert()).multiply(c).multiply(r).multiply(i);let o=a.decompose();e.setAttrs(o),this._fire(`transform`,{evt:t,target:e}),e._fire(`transform`,{evt:t,target:e}),(n=e.getLayer())==null||n.batchDraw()}),this.rotation(Y._getRotation(e.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){this.findOne(e).setAttrs(t)}update(){var e,t=this._getNodeRect();this.rotation(Y._getRotation(t.rotation));var n=t.width,r=t.height,i=this.enabledAnchors(),a=this.resizeEnabled(),o=this.padding(),s=this.anchorSize();this.find(`._anchor`).forEach(e=>{e.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(`.top-left`,{x:0,y:0,offsetX:s/2+o,offsetY:s/2+o,visible:a&&i.indexOf(`top-left`)>=0}),this._batchChangeChild(`.top-center`,{x:n/2,y:0,offsetY:s/2+o,visible:a&&i.indexOf(`top-center`)>=0}),this._batchChangeChild(`.top-right`,{x:n,y:0,offsetX:s/2-o,offsetY:s/2+o,visible:a&&i.indexOf(`top-right`)>=0}),this._batchChangeChild(`.middle-left`,{x:0,y:r/2,offsetX:s/2+o,visible:a&&i.indexOf(`middle-left`)>=0}),this._batchChangeChild(`.middle-right`,{x:n,y:r/2,offsetX:s/2-o,visible:a&&i.indexOf(`middle-right`)>=0}),this._batchChangeChild(`.bottom-left`,{x:0,y:r,offsetX:s/2+o,offsetY:s/2-o,visible:a&&i.indexOf(`bottom-left`)>=0}),this._batchChangeChild(`.bottom-center`,{x:n/2,y:r,offsetY:s/2-o,visible:a&&i.indexOf(`bottom-center`)>=0}),this._batchChangeChild(`.bottom-right`,{x:n,y:r,offsetX:s/2-o,offsetY:s/2-o,visible:a&&i.indexOf(`bottom-right`)>=0}),this._batchChangeChild(`.rotater`,{x:n/2,y:-this.rotateAnchorOffset()*Y._sign(r)-o,visible:this.rotateEnabled()}),this._batchChangeChild(`.back`,{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(e=this.getLayer())==null||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var e=this.findOne(`.`+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=``),Qy.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Q.prototype.toObject.call(this)}};function jx(e){return e instanceof Array||Y.warn(`enabledAnchors value should be an array`),e instanceof Array&&e.forEach(function(e){wx.indexOf(e)===-1&&Y.warn(`Unknown anchor name: `+e+`. Available names are: `+wx.join(`, `))}),e||[]}Ax.prototype.className=`Transformer`,C_(Ax),Z.addGetterSetter(Ax,`enabledAnchors`,wx,jx),Z.addGetterSetter(Ax,`flipEnabled`,!0,J_()),Z.addGetterSetter(Ax,`resizeEnabled`,!0),Z.addGetterSetter(Ax,`anchorSize`,10,X()),Z.addGetterSetter(Ax,`rotateEnabled`,!0),Z.addGetterSetter(Ax,`rotationSnaps`,[]),Z.addGetterSetter(Ax,`rotateAnchorOffset`,50,X()),Z.addGetterSetter(Ax,`rotationSnapTolerance`,5,X()),Z.addGetterSetter(Ax,`borderEnabled`,!0),Z.addGetterSetter(Ax,`anchorStroke`,`rgb(0, 161, 255)`),Z.addGetterSetter(Ax,`anchorStrokeWidth`,1,X()),Z.addGetterSetter(Ax,`anchorFill`,`white`),Z.addGetterSetter(Ax,`anchorCornerRadius`,0,X()),Z.addGetterSetter(Ax,`borderStroke`,`rgb(0, 161, 255)`),Z.addGetterSetter(Ax,`borderStrokeWidth`,1,X()),Z.addGetterSetter(Ax,`borderDash`),Z.addGetterSetter(Ax,`keepRatio`,!0),Z.addGetterSetter(Ax,`centeredScaling`,!1),Z.addGetterSetter(Ax,`ignoreStroke`,!1),Z.addGetterSetter(Ax,`padding`,0,X()),Z.addGetterSetter(Ax,`node`),Z.addGetterSetter(Ax,`nodes`),Z.addGetterSetter(Ax,`boundBoxFunc`),Z.addGetterSetter(Ax,`anchorDragBoundFunc`),Z.addGetterSetter(Ax,`shouldOverdrawWholeArea`,!1),Z.addGetterSetter(Ax,`useSingleNodeRotation`,!0),Z.backCompat(Ax,{lineEnabled:`borderEnabled`,rotateHandlerOffset:`rotateAnchorOffset`,enabledHandlers:`enabledAnchors`});var Mx=class extends ${_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,J.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};Mx.prototype.className=`Wedge`,Mx.prototype._centroid=!0,Mx.prototype._attrsAffectingSize=[`radius`],C_(Mx),Z.addGetterSetter(Mx,`radius`,0,X()),Z.addGetterSetter(Mx,`angle`,0,X()),Z.addGetterSetter(Mx,`clockwise`,!1),Z.backCompat(Mx,{angleDeg:`angle`,getAngleDeg:`getAngle`,setAngleDeg:`setAngle`});function Nx(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var Px=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Fx=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Ix(e,t){var n=e.data,r=e.width,i=e.height,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k=t+t+1,A=r-1,j=i-1,M=t+1,ee=M*(M+1)/2,N=new Nx,te=null,P=N,F=null,ne=null,I=Px[t],re=Fx[t];for(s=1;s<k;s++)P=P.next=new Nx,s===M&&(te=P);for(P.next=N,d=u=0,o=0;o<i;o++){for(b=x=S=C=f=p=m=h=0,g=M*(w=n[u]),_=M*(T=n[u+1]),v=M*(E=n[u+2]),y=M*(D=n[u+3]),f+=ee*w,p+=ee*T,m+=ee*E,h+=ee*D,P=N,s=0;s<M;s++)P.r=w,P.g=T,P.b=E,P.a=D,P=P.next;for(s=1;s<M;s++)c=u+((A<s?A:s)<<2),f+=(P.r=w=n[c])*(O=M-s),p+=(P.g=T=n[c+1])*O,m+=(P.b=E=n[c+2])*O,h+=(P.a=D=n[c+3])*O,b+=w,x+=T,S+=E,C+=D,P=P.next;for(F=N,ne=te,a=0;a<r;a++)n[u+3]=D=h*I>>re,D===0?n[u]=n[u+1]=n[u+2]=0:(D=255/D,n[u]=(f*I>>re)*D,n[u+1]=(p*I>>re)*D,n[u+2]=(m*I>>re)*D),f-=g,p-=_,m-=v,h-=y,g-=F.r,_-=F.g,v-=F.b,y-=F.a,c=d+((c=a+t+1)<A?c:A)<<2,b+=F.r=n[c],x+=F.g=n[c+1],S+=F.b=n[c+2],C+=F.a=n[c+3],f+=b,p+=x,m+=S,h+=C,F=F.next,g+=w=ne.r,_+=T=ne.g,v+=E=ne.b,y+=D=ne.a,b-=w,x-=T,S-=E,C-=D,ne=ne.next,u+=4;d+=r}for(a=0;a<r;a++){for(x=S=C=b=p=m=h=f=0,u=a<<2,g=M*(w=n[u]),_=M*(T=n[u+1]),v=M*(E=n[u+2]),y=M*(D=n[u+3]),f+=ee*w,p+=ee*T,m+=ee*E,h+=ee*D,P=N,s=0;s<M;s++)P.r=w,P.g=T,P.b=E,P.a=D,P=P.next;for(l=r,s=1;s<=t;s++)u=l+a<<2,f+=(P.r=w=n[u])*(O=M-s),p+=(P.g=T=n[u+1])*O,m+=(P.b=E=n[u+2])*O,h+=(P.a=D=n[u+3])*O,b+=w,x+=T,S+=E,C+=D,P=P.next,s<j&&(l+=r);for(u=a,F=N,ne=te,o=0;o<i;o++)c=u<<2,n[c+3]=D=h*I>>re,D>0?(D=255/D,n[c]=(f*I>>re)*D,n[c+1]=(p*I>>re)*D,n[c+2]=(m*I>>re)*D):n[c]=n[c+1]=n[c+2]=0,f-=g,p-=_,m-=v,h-=y,g-=F.r,_-=F.g,v-=F.b,y-=F.a,c=a+((c=o+M)<j?c:j)*r<<2,f+=b+=F.r=n[c],p+=x+=F.g=n[c+1],m+=S+=F.b=n[c+2],h+=C+=F.a=n[c+3],F=F.next,g+=w=ne.r,_+=T=ne.g,v+=E=ne.b,y+=D=ne.a,b-=w,x-=T,S-=E,C-=D,ne=ne.next,u+=r}}var Lx=function(e){var t=Math.round(this.blurRadius());t>0&&Ix(e,t)};Z.addGetterSetter(Q,`blurRadius`,0,X(),Z.afterSetFilter);var Rx=function(e){var t=this.brightness()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=t,n[i+1]+=t,n[i+2]+=t};Z.addGetterSetter(Q,`brightness`,0,X(),Z.afterSetFilter);var zx=function(e){var t=((this.contrast()+100)/100)**2,n=e.data,r=n.length,i=150,a=150,o=150,s;for(s=0;s<r;s+=4)i=n[s],a=n[s+1],o=n[s+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,n[s]=i,n[s+1]=a,n[s+2]=o};Z.addGetterSetter(Q,`contrast`,0,X(),Z.afterSetFilter);var Bx=function(e){var t=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),a=0,o=0,s=e.data,c=e.width,l=e.height,u=c*4,d=l;switch(r){case`top-left`:a=-1,o=-1;break;case`top`:a=-1,o=0;break;case`top-right`:a=-1,o=1;break;case`right`:a=0,o=1;break;case`bottom-right`:a=1,o=1;break;case`bottom`:a=1,o=0;break;case`bottom-left`:a=1,o=-1;break;case`left`:a=0,o=-1;break;default:Y.error(`Unknown emboss direction: `+r)}do{var f=(d-1)*u,p=a;d+p<1&&(p=0),d+p>l&&(p=0);var m=(d-1+p)*c*4,h=c;do{var g=f+(h-1)*4,_=o;h+_<1&&(_=0),h+_>c&&(_=0);var v=m+(h-1+_)*4,y=s[g]-s[v],b=s[g+1]-s[v+1],x=s[g+2]-s[v+2],S=y,C=S>0?S:-S,w=b>0?b:-b,T=x>0?x:-x;if(w>C&&(S=b),T>C&&(S=x),S*=t,i){var E=s[g]+S,D=s[g+1]+S,O=s[g+2]+S;s[g]=E>255?255:E<0?0:E,s[g+1]=D>255?255:D<0?0:D,s[g+2]=O>255?255:O<0?0:O}else{var k=n-S;k<0?k=0:k>255&&(k=255),s[g]=s[g+1]=s[g+2]=k}}while(--h)}while(--d)};Z.addGetterSetter(Q,`embossStrength`,.5,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`embossWhiteLevel`,.5,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`embossDirection`,`top-left`,null,Z.afterSetFilter),Z.addGetterSetter(Q,`embossBlend`,!1,null,Z.afterSetFilter);function Vx(e,t,n,r,i){var a=n-t,o=i-r,s;return a===0?r+o/2:o===0?r:(s=(e-t)/a,s=o*s+r,s)}var Hx=function(e){var t=e.data,n=t.length,r=t[0],i=r,a,o=t[1],s=o,c,l=t[2],u=l,d,f,p=this.enhance();if(p!==0){for(f=0;f<n;f+=4)a=t[f+0],a<r?r=a:a>i&&(i=a),c=t[f+1],c<o?o=c:c>s&&(s=c),d=t[f+2],d<l?l=d:d>u&&(u=d);i===r&&(i=255,r=0),s===o&&(s=255,o=0),u===l&&(u=255,l=0);var m,h,g,_,v,y,b,x,S;for(p>0?(h=i+p*(255-i),g=r-p*(r-0),v=s+p*(255-s),y=o-p*(o-0),x=u+p*(255-u),S=l-p*(l-0)):(m=(i+r)*.5,h=i+p*(i-m),g=r+p*(r-m),_=(s+o)*.5,v=s+p*(s-_),y=o+p*(o-_),b=(u+l)*.5,x=u+p*(u-b),S=l+p*(l-b)),f=0;f<n;f+=4)t[f+0]=Vx(t[f+0],r,i,g,h),t[f+1]=Vx(t[f+1],o,s,y,v),t[f+2]=Vx(t[f+2],l,u,S,x)}};Z.addGetterSetter(Q,`enhance`,0,X(),Z.afterSetFilter);var Ux=function(e){var t=e.data,n=t.length,r,i;for(r=0;r<n;r+=4)i=.34*t[r]+.5*t[r+1]+.16*t[r+2],t[r]=i,t[r+1]=i,t[r+2]=i};Z.addGetterSetter(Q,`hue`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`saturation`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`luminance`,0,X(),Z.afterSetFilter);var Wx=function(e){var t=e.data,n=t.length,r=1,i=2**this.saturation(),a=Math.abs(this.hue()+360)%360,o=this.luminance()*127,s,c=r*i*Math.cos(a*Math.PI/180),l=r*i*Math.sin(a*Math.PI/180),u=.299*r+.701*c+.167*l,d=.587*r-.587*c+.33*l,f=.114*r-.114*c-.497*l,p=.299*r-.299*c-.328*l,m=.587*r+.413*c+.035*l,h=.114*r-.114*c+.293*l,g=.299*r-.3*c+1.25*l,_=.587*r-.586*c-1.05*l,v=.114*r+.886*c-.2*l,y,b,x,S;for(s=0;s<n;s+=4)y=t[s+0],b=t[s+1],x=t[s+2],S=t[s+3],t[s+0]=u*y+d*b+f*x+o,t[s+1]=p*y+m*b+h*x+o,t[s+2]=g*y+_*b+v*x+o,t[s+3]=S},Gx=function(e){var t=e.data,n=t.length,r=2**this.value(),i=2**this.saturation(),a=Math.abs(this.hue()+360)%360,o,s=r*i*Math.cos(a*Math.PI/180),c=r*i*Math.sin(a*Math.PI/180),l=.299*r+.701*s+.167*c,u=.587*r-.587*s+.33*c,d=.114*r-.114*s-.497*c,f=.299*r-.299*s-.328*c,p=.587*r+.413*s+.035*c,m=.114*r-.114*s+.293*c,h=.299*r-.3*s+1.25*c,g=.587*r-.586*s-1.05*c,_=.114*r+.886*s-.2*c,v,y,b,x;for(o=0;o<n;o+=4)v=t[o+0],y=t[o+1],b=t[o+2],x=t[o+3],t[o+0]=l*v+u*y+d*b,t[o+1]=f*v+p*y+m*b,t[o+2]=h*v+g*y+_*b,t[o+3]=x};Z.addGetterSetter(Q,`hue`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`saturation`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`value`,0,X(),Z.afterSetFilter);var Kx=function(e){var t=e.data,n=t.length,r;for(r=0;r<n;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},qx=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2,l,u,d,f=0,p=0,m=0,h=0,g,_=Math.sqrt(s*s+c*c);u=a-s,d=o-c,g=Math.sqrt(u*u+d*d),_=g>_?g:_;var v=o,y=a,b,x,S=360/y*Math.PI/180,C,w;for(x=0;x<y;x+=1)for(C=Math.sin(x*S),w=Math.cos(x*S),b=0;b<v;b+=1)u=Math.floor(s+_*b/v*w),d=Math.floor(c+_*b/v*C),l=(d*a+u)*4,f=r[l+0],p=r[l+1],m=r[l+2],h=r[l+3],l=(x+b*a)*4,i[l+0]=f,i[l+1]=p,i[l+2]=m,i[l+3]=h},Jx=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2,l,u,d,f,p,m=0,h=0,g=0,_=0,v,y=Math.sqrt(s*s+c*c);u=a-s,d=o-c,v=Math.sqrt(u*u+d*d),y=v>y?v:y;var b=o,x=a,S,C,w=n.polarRotation||0,T,E;for(u=0;u<a;u+=1)for(d=0;d<o;d+=1)f=u-s,p=d-c,S=Math.sqrt(f*f+p*p)*b/y,C=(Math.atan2(p,f)*180/Math.PI+360+w)%360,C=C*x/360,T=Math.floor(C),E=Math.floor(S),l=(E*a+T)*4,m=r[l+0],h=r[l+1],g=r[l+2],_=r[l+3],l=(d*a+u)*4,i[l+0]=m,i[l+1]=h,i[l+2]=g,i[l+3]=_},Yx=function(e){var t=e.width,n=e.height,r,i,a,o,s,c,l,u,d,f,p=Math.round(this.kaleidoscopePower()),m=Math.round(this.kaleidoscopeAngle()),h=Math.floor(m%360*t/360);if(!(p<1)){var g=Y.createCanvasElement();g.width=t,g.height=n;var _=g.getContext(`2d`).getImageData(0,0,t,n);qx(e,_,{polarCenterX:t/2,polarCenterY:n/2});for(var v=t/2**p;v<=8;)v*=2,--p;v=Math.ceil(v);var y=v,b=0,x=y,S=1;for(h+v>t&&(b=y,x=0,S=-1),i=0;i<n;i+=1)for(r=b;r!==x;r+=S)a=Math.round(r+h)%t,d=(t*i+a)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+r)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;for(i=0;i<n;i+=1)for(y=Math.floor(v),o=0;o<p;o+=1){for(r=0;r<y+1;r+=1)d=(t*i+r)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+y*2-r-1)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;y*=2}Jx(_,e,{polarRotation:0})}};Z.addGetterSetter(Q,`kaleidoscopePower`,2,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`kaleidoscopeAngle`,0,X(),Z.afterSetFilter);function Xx(e,t,n){var r=(n*e.width+t)*4,i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function Zx(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2)}function Qx(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function $x(e,t){var n=Xx(e,0,0),r=Xx(e,e.width-1,0),i=Xx(e,0,e.height-1),a=Xx(e,e.width-1,e.height-1),o=t||10;if(Zx(n,r)<o&&Zx(r,a)<o&&Zx(a,i)<o&&Zx(i,n)<o){for(var s=Qx([r,n,a,i]),c=[],l=0;l<e.width*e.height;l++)c[l]=Zx(s,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]])<o?0:255;return c}}function eS(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function tS(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var p=s+d-a,m=c+f-a;if(p>=0&&p<n&&m>=0&&m<t){var h=p*t+m,g=r[d*i+f];u+=e[h]*g}}o[l]=u===2040?255:0}return o}function nS(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var p=s+d-a,m=c+f-a;if(p>=0&&p<n&&m>=0&&m<t){var h=p*t+m,g=r[d*i+f];u+=e[h]*g}}o[l]=u>=1020?255:0}return o}function rS(e,t,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var p=s+d-a,m=c+f-a;if(p>=0&&p<n&&m>=0&&m<t){var h=p*t+m,g=r[d*i+f];u+=e[h]*g}}o[l]=u}return o}Z.addGetterSetter(Q,`threshold`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`noise`,.2,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`pixelSize`,8,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`levels`,.5,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`red`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`green`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`blue`,0,H_,Z.afterSetFilter),Z.addGetterSetter(Q,`red`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`green`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`blue`,0,H_,Z.afterSetFilter),Z.addGetterSetter(Q,`alpha`,1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}),Z.addGetterSetter(Q,`threshold`,.5,X(),Z.afterSetFilter),ub.Util._assign(ub,{Arc:db,Arrow:gb,Circle:_b,Ellipse:vb,Image:yb,Label:Ob,Tag:kb,Line:mb,Path:hb,Rect:Ab,RegularPolygon:jb,Ring:Nb,Sprite:Pb,Star:Fb,Text:dx,TextPath:gx,Transformer:Ax,Wedge:Mx,Filters:{Blur:Lx,Brighten:Rx,Contrast:zx,Emboss:Bx,Enhance:Hx,Grayscale:Ux,HSL:Wx,HSV:Gx,Invert:Kx,Kaleidoscope:Yx,Mask:function(e){var t=$x(e,this.threshold());return t&&(t=tS(t,e.width,e.height),t=nS(t,e.width,e.height),t=rS(t,e.width,e.height),eS(e,t)),e},Noise:function(e){var t=this.noise()*255,n=e.data,r=n.length,i=t/2,a;for(a=0;a<r;a+=4)n[a+0]+=i-2*i*Math.random(),n[a+1]+=i-2*i*Math.random(),n[a+2]+=i-2*i*Math.random()},Pixelate:function(e){var t=Math.ceil(this.pixelSize()),n=e.width,r=e.height,i,a,o,s,c,l,u,d=Math.ceil(n/t),f=Math.ceil(r/t),p,m,h,g,_,v,y,b=e.data;if(t<=0){Y.error(`pixelSize value can not be <= 0`);return}for(_=0;_<d;_+=1)for(v=0;v<f;v+=1){for(s=0,c=0,l=0,u=0,p=_*t,m=p+t,h=v*t,g=h+t,y=0,i=p;i<m;i+=1)if(!(i>=n))for(a=h;a<g;a+=1)a>=r||(o=(n*a+i)*4,s+=b[o+0],c+=b[o+1],l+=b[o+2],u+=b[o+3],y+=1);for(s/=y,c/=y,l/=y,u/=y,i=p;i<m;i+=1)if(!(i>=n))for(a=h;a<g;a+=1)a>=r||(o=(n*a+i)*4,b[o+0]=s,b[o+1]=c,b[o+2]=l,b[o+3]=u)}},Posterize:function(e){var t=Math.round(this.levels()*254)+1,n=e.data,r=n.length,i=255/t,a;for(a=0;a<r;a+=1)n[a]=Math.floor(n[a]/i)*i},RGB:function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o,s;for(o=0;o<n;o+=4)s=(.34*t[o]+.5*t[o+1]+.16*t[o+2])/255,t[o]=s*r,t[o+1]=s*i,t[o+2]=s*a,t[o+3]=t[o+3]},RGBA:function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o=this.alpha(),s,c;for(s=0;s<n;s+=4)c=1-o,t[s]=r*o+t[s]*c,t[s+1]=i*o+t[s+1]*c,t[s+2]=a*o+t[s+2]*c},Sepia:function(e){var t=e.data,n=t.length,r,i,a,o;for(r=0;r<n;r+=4)i=t[r+0],a=t[r+1],o=t[r+2],t[r+0]=Math.min(255,i*.393+a*.769+o*.189),t[r+1]=Math.min(255,i*.349+a*.686+o*.168),t[r+2]=Math.min(255,i*.272+a*.534+o*.131)},Solarize:function(e){var t=e.data,n=e.width,r=e.height,i=n*4,a=r;do{var o=(a-1)*i,s=n;do{var c=o+(s-1)*4,l=t[c],u=t[c+1],d=t[c+2];l>127&&(l=255-l),u>127&&(u=255-u),d>127&&(d=255-d),t[c]=l,t[c+1]=u,t[c+2]=d}while(--s)}while(--a)},Threshold:function(e){var t=this.threshold()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=1)n[i]=n[i]<t?0:255}}});var iS=ub,aS=s(((e,t)=>{t.exports=function(e){var t={},n=p(),r=h(),i=Object.assign;function a(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s=Symbol.for(`react.element`),c=Symbol.for(`react.portal`),l=Symbol.for(`react.fragment`),u=Symbol.for(`react.strict_mode`),d=Symbol.for(`react.profiler`),f=Symbol.for(`react.provider`),m=Symbol.for(`react.context`),g=Symbol.for(`react.forward_ref`),_=Symbol.for(`react.suspense`),v=Symbol.for(`react.suspense_list`),y=Symbol.for(`react.memo`),b=Symbol.for(`react.lazy`),x=Symbol.for(`react.offscreen`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}function w(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case l:return`Fragment`;case c:return`Portal`;case d:return`Profiler`;case u:return`StrictMode`;case _:return`Suspense`;case v:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case m:return(e.displayName||`Context`)+`.Consumer`;case f:return(e._context.displayName||`Context`)+`.Provider`;case g:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case y:return t=e.displayName||null,t===null?w(e.type)||`Memo`:t;case b:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}function T(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=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return w(t);case 8:return t===u?`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(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function E(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function D(e){if(E(e)!==e)throw Error(a(188))}function O(e){var t=e.alternate;if(!t){if(t=E(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return D(i),e;if(o===r)return D(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function k(e){return e=O(e),e===null?null:A(e)}function A(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=A(e);if(t!==null)return t;e=e.sibling}return null}function j(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){if(e.tag!==4){var t=j(e);if(t!==null)return t}e=e.sibling}return null}var M=Array.isArray,ee=e.getPublicInstance,N=e.getRootHostContext,te=e.getChildHostContext,P=e.prepareForCommit,F=e.resetAfterCommit,ne=e.createInstance,I=e.appendInitialChild,re=e.finalizeInitialChildren,ie=e.prepareUpdate,ae=e.shouldSetTextContent,oe=e.createTextInstance,se=e.scheduleTimeout,ce=e.cancelTimeout,le=e.noTimeout,ue=e.isPrimaryRenderer,de=e.supportsMutation,fe=e.supportsPersistence,pe=e.supportsHydration,me=e.getInstanceFromNode,he=e.preparePortalMount,ge=e.getCurrentEventPriority,_e=e.detachDeletedInstance,ve=e.supportsMicrotasks,ye=e.scheduleMicrotask,be=e.supportsTestSelectors,xe=e.findFiberRoot,Se=e.getBoundingRect,Ce=e.getTextContent,we=e.isHiddenSubtree,Te=e.matchAccessibilityRole,Ee=e.setFocusIfFocusable,De=e.setupIntersectionObserver,Oe=e.appendChild,ke=e.appendChildToContainer,Ae=e.commitTextUpdate,je=e.commitMount,Me=e.commitUpdate,Ne=e.insertBefore,Pe=e.insertInContainerBefore,Fe=e.removeChild,Ie=e.removeChildFromContainer,Le=e.resetTextContent,Re=e.hideInstance,ze=e.hideTextInstance,Be=e.unhideInstance,Ve=e.unhideTextInstance,He=e.clearContainer,Ue=e.cloneInstance,We=e.createContainerChildSet,Ge=e.appendChildToContainerChildSet,Ke=e.finalizeContainerChildren,qe=e.replaceContainerChildren,Je=e.cloneHiddenInstance,Ye=e.cloneHiddenTextInstance,Xe=e.canHydrateInstance,Ze=e.canHydrateTextInstance,Qe=e.canHydrateSuspenseInstance,$e=e.isSuspenseInstancePending,et=e.isSuspenseInstanceFallback,tt=e.getSuspenseInstanceFallbackErrorDetails,L=e.registerSuspenseInstanceRetry,R=e.getNextHydratableSibling,nt=e.getFirstHydratableChild,rt=e.getFirstHydratableChildWithinContainer,z=e.getFirstHydratableChildWithinSuspenseInstance,B=e.hydrateInstance,it=e.hydrateTextInstance,at=e.hydrateSuspenseInstance,ot=e.getNextHydratableInstanceAfterSuspenseInstance,st=e.commitHydratedContainer,ct=e.commitHydratedSuspenseInstance,lt=e.clearSuspenseBoundary,ut=e.clearSuspenseBoundaryFromContainer,dt=e.shouldDeleteUnhydratedTailInstances,ft=e.didNotMatchHydratedContainerTextInstance,pt=e.didNotMatchHydratedTextInstance,mt;function ht(e){if(mt===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);mt=t&&t[1]||``}return`
|
|
149
|
-
`+
|
|
141
|
+
`,Gf=typeof Uf==`string`?null:pr`
|
|
142
|
+
animation: ${Uf} 1.4s linear infinite;
|
|
143
|
+
`,Kf=typeof Wf==`string`?null:pr`
|
|
144
|
+
animation: ${Wf} 1.4s ease-in-out infinite;
|
|
145
|
+
`,qf=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return Fo({root:[`root`,n,`color${vu(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${vu(n)}`,i&&`circleDisableShrink`]},Vf,t)},Jf=W(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${vu(n.color)}`]]}})(Vl(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Gf||{animation:`${Uf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Bf()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Yf=W(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Xf=W(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${vu(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Vl(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Kf||{animation:`${Wf} 1.4s ease-in-out infinite`}}]}))),Zf=W(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Vl(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Qf=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=qf(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((Hf-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,z.jsx)(Jf,{className:V(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,z.jsxs)(Yf,{className:m.svg,ownerState:p,viewBox:`${Hf/2} ${Hf/2} ${Hf} ${Hf}`,children:[o?(0,z.jsx)(Zf,{className:m.track,ownerState:p,cx:Hf,cy:Hf,r:(Hf-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,z.jsx)(Xf,{className:m.circle,style:h,ownerState:p,cx:Hf,cy:Hf,r:(Hf-l)/2,fill:`none`,strokeWidth:l})]})})});function $f(e){return pa(`MuiButton`,e)}var ep=ma(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),tp=R.createContext({}),np=R.createContext(void 0);L();var rp=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=Fo({root:[`root`,o&&`loading`,a,`${a}${vu(t)}`,`size${vu(i)}`,`${a}Size${vu(i)}`,`color${vu(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${vu(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${vu(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${vu(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},$f,c);return{...c,...l}},ip=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ap=W(If,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${vu(n.color)}`],t[`size${vu(n.size)}`],t[`${n.variant}Size${vu(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${ep.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ep.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ep.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${ep.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Bf()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${ep.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${ep.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${ep.loading}`]:{color:`transparent`}}}]}})),op=W(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${vu(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...ip]})),sp=W(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${vu(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ip]})),cp=W(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),lp=W(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),up=R.forwardRef(function(e,t){let n=R.useContext(tp),r=R.useContext(np),i=gc({props:Da(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Eu(h),T=_??(0,z.jsx)(Qf,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=rp(E),O=(b||g&&v===`start`)&&(0,z.jsx)(op,{className:D.startIcon,ownerState:E,children:b||(0,z.jsx)(lp,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,z.jsx)(sp,{className:D.endIcon,ownerState:E,children:f||(0,z.jsx)(lp,{className:D.loadingIconPlaceholder,ownerState:E})}),k=r||``,A=typeof g==`boolean`?(0,z.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,z.jsx)(cp,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:j,...te}=D;return(0,z.jsxs)(ap,{ownerState:E,className:V(n.className,D.root,c,k),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:V(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:te,children:[O,v!==`end`&&A,a,v===`end`&&A,ee]})}),dp=Cu((0,z.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),fp=Cu((0,z.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`);L();var pp=W(`div`)({display:`flex`,flexDirection:`column`}),mp=W(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),hp=W(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),gp=W(up)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),_p=e=>{class t extends R.Component{static propTypes={session:I.object,onSessionChange:I.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,z.jsxs)(pp,{children:[(0,z.jsxs)(mp,{children:[(0,z.jsxs)(gp,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,z.jsx)(hp,{children:(0,z.jsx)(fp,{})}),`Undo`]}),(0,z.jsxs)(gp,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,z.jsx)(hp,{children:(0,z.jsx)(dp,{})}),`Start Over`]})]}),(0,z.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t};L();var vp=Gs({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),yp=W(`div`)({"& table, th, td":{fontSize:`inherit`}}),bp=class extends R.Component{static propTypes={className:I.string,children:I.array,extraCSSRules:I.shape({names:I.arrayOf(I.string),rules:I.string}),fontSizeFactor:I.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,z.jsx)(kr,{injectFirst:!0,children:(0,z.jsxs)(nc,{theme:vp,children:[i?.rules?(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,z.jsx)(yp,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}};L();var xp=W(bp)({display:`flex`,flexDirection:`column`,position:`relative`}),Sp=class extends R.Component{static propTypes={ariaLabel:I.string,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired,role:I.string,extraCSSRules:I.shape({names:I.arrayOf(I.string),rules:I.string}),fontSizeFactor:I.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,z.jsx)(xp,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}};L();var Cp=class extends R.Component{static propTypes={tag:I.string,className:I.string,html:I.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,z.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function wp({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Tp=R.createContext(void 0);function Ep(){return R.useContext(Tp)}function Dp(e){return pa(`MuiFormLabel`,e)}var Op=ma(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);L();var kp=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Fo({root:[`root`,`color${vu(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Dp,t)},Ap=W(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Vl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Bf()).map(([t])=>({props:{color:t},style:{[`&.${Op.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Op.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),jp=W(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Vl(({theme:e})=>({[`&.${Op.error}`]:{color:(e.vars||e).palette.error.main}}))),Mp=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=wp({props:n,muiFormControl:Ep(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=kp(m);return(0,z.jsxs)(Ap,{as:o,ownerState:m,className:V(h.root,i),ref:t,...f,children:[r,p.required&&(0,z.jsxs)(jp,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Np(e){return pa(`MuiInputLabel`,e)}ma(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),L();var Pp=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Fo({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${vu(r)}`,o],asterisk:[s&&`asterisk`]},Np,t);return{...t,...c}},Fp=W(Mp,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Op.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Vl(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Ip=R.forwardRef(function(e,t){let n=gc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=Ep(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=wp({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Pp(f);return(0,z.jsx)(Fp,{"data-shrink":u,ref:t,className:V(p.root,s),...c,ownerState:f,classes:p})});function Lp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Rp(e,t=!1){return e&&(Lp(e.value)&&e.value!==``||t&&Lp(e.defaultValue)&&e.defaultValue!==``)}function zp(e){return e.startAdornment}function Bp(e){return pa(`MuiFormControl`,e)}ma(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]),L();var Vp=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Fo({root:[`root`,n!==`none`&&`margin${vu(n)}`,r&&`fullWidth`]},Bp,t)},Hp=W(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${vu(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Up=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=Vp(_),[y,b]=R.useState(()=>{let e=!1;return r&&R.Children.forEach(r,t=>{if(!wu(t,[`Input`,`Select`]))return;let n=wu(t,[`Select`])?t.props.input:t;n&&zp(n.props)&&(e=!0)}),e}),[x,S]=R.useState(()=>{let e=!1;return r&&R.Children.forEach(r,t=>{wu(t,[`Input`,`Select`])&&(Rp(t.props,!0)||Rp(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=R.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;R.useRef(!1);let E=R.useCallback(()=>{S(!0)},[]),D=R.useCallback(()=>{S(!1)},[]),O=R.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,z.jsx)(Tp.Provider,{value:O,children:(0,z.jsx)(Hp,{as:o,ownerState:_,className:V(v.root,i),ref:t,...g,children:r})})});L();var Wp=W(Up)(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Gp=W(Ip)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),Kp=({label:e,className:t,children:n})=>(0,z.jsxs)(Wp,{className:t,children:[(0,z.jsx)(Gp,{shrink:!0,children:e}),n]});Kp.propTypes={label:I.oneOfType([I.string,I.object]).isRequired,className:I.string,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired},L();var qp=W(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:Cd()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:Td()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:Td()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Wu()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Wu()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Jp=/\\embed\{newLine\}\[\]/g,Yp=`\\newline `,Xp=`preview-prompt`,Zp=class extends R.Component{static propTypes={prompt:I.string,tagName:I.string,className:I.string,onClick:I.func,defaultClassName:I.string,autoplayAudioEnabled:I.bool,customAudioButton:I.shape({playImage:I.string,pauseImage:I.string})};static defaultProps={onClick:()=>{}};promptRef=R.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof ke==`function`&&ke(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${Xp}`.trim();return(0,z.jsx)(qp,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Jp,Yp)}})}};L();var Qp=e=>(0,z.jsx)(z.Fragment,{children:R.Children.map(e.children,t=>R.cloneElement(t,{"data-pie-readable":e.false===void 0}))});Qp.propTypes={children:I.node,false:I.bool},L();var $p=e=>(0,z.jsx)(z.Fragment,{children:R.Children.map(e.children,t=>R.cloneElement(t,{"data-pie-purpose":e.purpose}))});$p.propTypes={children:I.node,purpose:I.string};var em;typeof window<`u`&&(em=new DOMParser);var tm=e=>em.parseFromString(e,`text/html`).body.textContent,nm=e=>{if(!e)return!1;let t=tm(e);return!!(t&&t.trim())},rm;typeof window<`u`&&(rm=new DOMParser);var im=e=>{if(!e)return!1;let t=rm.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},am=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function om(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}function sm(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Ul(n,r),{props:s,internalRef:c}=Kl({...a,externalSlotProps:o}),l=ll(c,o?.ref,e.additionalProps?.ref);return Hl(t,{...s,ref:l},r)}var cm=R.createContext({});function lm(e){return pa(`MuiList`,e)}ma(`MuiList`,[`root`,`padding`,`dense`,`subheader`]),L();var um=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Fo({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},lm,t)},dm=W(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fm=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=R.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=um(d);return(0,z.jsx)(cm.Provider,{value:u,children:(0,z.jsxs)(dm,{as:a,className:V(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),pm=hl;L();function mm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function hm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function _m(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!gm(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var vm=R.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=R.useRef(null),p=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Tu(()=>{r&&f.current.focus()},[r]),R.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${pm(xc(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Ol(yc(t));if(n===`ArrowDown`)e.preventDefault(),_m(t,r,c,s,mm);else if(n===`ArrowUp`)e.preventDefault(),_m(t,r,c,s,hm);else if(n===`Home`)e.preventDefault(),_m(t,null,c,s,mm);else if(n===`End`)e.preventDefault(),_m(t,null,c,s,hm);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&gm(r,i);i.previousKeyMatched&&(c||_m(t,r,!1,s,mm,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=ul(f,t),g=-1;R.Children.forEach(a,(e,t)=>{if(!R.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=R.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),R.cloneElement(e,t)}return e});return(0,z.jsx)(fm,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function ym(e){return pa(`MuiMenu`,e)}ma(`MuiMenu`,[`root`,`paper`,`list`]),L();var bm={vertical:`top`,horizontal:`right`},xm={vertical:`top`,horizontal:`left`},Sm=e=>{let{classes:t}=e;return Fo({root:[`root`],paper:[`paper`],list:[`list`]},ym,t)},Cm=W(zu,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),wm=W(Ru,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Tm=W(vm,{name:`MuiMenu`,slot:`List`})({outline:0}),Em=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=$a(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=Sm(b),S=r&&!o&&l,C=R.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;R.Children.map(i,(e,t)=>{R.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=sm({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,k]=ql(`paper`,{className:x.paper,elementType:wm,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[A,j]=ql(`list`,{className:V(x.list,s.className),elementType:Tm,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),te=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,z.jsx)(Cm,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?bm:xm,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:k,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...te,onEntering:(...e)=>{w(...e),te?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,z.jsx)(A,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...j,children:i})})}),Dm=({slotProps:e,...t})=>(0,z.jsx)(Em,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),Om=c({Collapsible:()=>vf,EnableAudioAutoplayImage:()=>am,Feedback:()=>Xd,HtmlAndMath:()=>Cp,InlineMenu:()=>Dm,InputContainer:()=>Kp,PreviewLayout:()=>Sp,PreviewPrompt:()=>Zp,Purpose:()=>$p,Readable:()=>Qp,UiLayout:()=>bp,color:()=>Hu,hasMedia:()=>im,hasText:()=>nm,indicators:()=>$d,transformDataHeadings:()=>om,withUndoReset:()=>_p}),km={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.`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},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`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,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`}},Am={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.`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},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`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,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`}},jm=e=>typeof e==`string`,Mm=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Nm=e=>e==null?``:``+e,Pm=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Fm=/###/g,Im=e=>e&&e.indexOf(`###`)>-1?e.replace(Fm,`.`):e,Lm=e=>!e||jm(e),Rm=(e,t,n)=>{let r=jm(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Lm(e))return{};let t=Im(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Lm(e)?{}:{obj:e,k:Im(r[i])}},zm=(e,t,n)=>{let{obj:r,k:i}=Rm(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Rm(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Rm(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Bm=(e,t,n,r)=>{let{obj:i,k:a}=Rm(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Vm=(e,t)=>{let{obj:n,k:r}=Rm(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Hm=(e,t,n)=>{let r=Vm(e,n);return r===void 0?Vm(t,n):r},Um=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?jm(e[r])||e[r]instanceof String||jm(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Um(e[r],t[r],n):e[r]=t[r]);return e},Wm=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Gm={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Km=e=>jm(e)?e.replace(/[&<>"'\/]/g,e=>Gm[e]):e,qm=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let 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}},Jm=[` `,`,`,`?`,`!`,`;`],Ym=new qm(20),Xm=(e,t,n)=>{t||=``,n||=``;let r=Jm.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Ym.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Zm=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Qm=e=>e?.replace(/_/g,`-`),$m={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},eh=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||$m,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:(jm(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},th=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},nh=class extends th{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):jm(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Vm(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!jm(n)?s:Zm(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),zm(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(jm(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,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Vm(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Um(s,n,i):s={...s,...n},zm(this.data,o,s),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 this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},rh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},ih=Symbol(`i18next/PATH_KEY`);function ah(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===ih?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function oh(e,t){let{[ih]:n}=e(ah()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var sh={},ch=e=>!jm(e)&&typeof e!=`boolean`&&typeof e!=`number`,lh=class e extends th{constructor(e,t={}){super(),Pm([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=eh.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=ch(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Xm(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:jm(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:jm(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=oh(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?oh(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!jm(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=ch(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(jm(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:ch(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&jm(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,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=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.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}});let a=jm(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!jm(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=jm(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=rh.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return jm(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?oh(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!jm(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(jm(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!sh[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(sh[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" 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;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!jm(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},uh=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eh.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Qm(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Qm(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(jm(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}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(this.options.load===`languageOnly`||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;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),jm(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return jm(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):jm(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},dh={zero:0,one:1,two:2,few:3,many:4,other:5},fh={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},ph=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=eh.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Qm(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),fh;if(!e.match(/-|_/))return fh;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.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||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>dh[e]-dh[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let 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))}},mh=(e,t,n,r=`.`,i=!0)=>{let a=Hm(e,t,n);return!a&&i&&jm(n)&&(a=Zm(e,n,r),a===void 0&&(a=Zm(t,n,r))),a},hh=e=>e.replace(/\$/g,`$$$$`),gh=class{constructor(e={}){this.logger=eh.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Km:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Wm(i):a||`{{`,this.suffix=o?Wm(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Wm(d):f||Wm(`$t(`),this.nestingSuffix=p?Wm(p):m||Wm(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>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 i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=mh(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(mh(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>hh(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?hh(this.escape(e)):hh(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=jm(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!jm(a)&&!this.useRawValueToEscape&&(a=Nm(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${Wm(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!jm(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!jm(i))return i;jm(i)||(i=Nm(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},_h=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},vh=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Qm(r),i),t[o]=s),s(n)}},yh=e=>(t,n,r)=>e(Qm(n),r)(t),bh=class{constructor(e={}){this.logger=eh.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?vh:yh;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let 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()]=vh(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=_h(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},xh=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Sh=class extends th{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=eh.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=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Bm(n.loaded,[i],a),xh(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}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();jm(e)&&(e=this.languageUtils.toResolveHierarchy(e)),jm(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.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=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){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!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Ch=()=>({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(typeof e[1]==`object`&&(t=e[1]),jm(e[1])&&(t.defaultValue=e[1]),jm(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let 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}),wh=e=>(jm(e.ns)&&(e.ns=[e.ns]),jm(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),jm(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),Th=()=>{},Eh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Dh=`__i18next_supportNoticeShown`,Oh=()=>!!(typeof globalThis<`u`&&globalThis[Dh]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),kh=()=>{typeof globalThis<`u`&&(globalThis[Dh]=!0)},Ah=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),jh=class e extends th{constructor(e={},t){if(super(),this.options=wh(e),this.services={},this.logger=eh,this.modules={external:[]},Eh(this),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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(jm(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Ch();this.options={...n,...this.options,...wh(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Ah(this)&&!Oh()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),kh());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?eh.init(r(this.modules.logger),this.options):eh.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:bh;let t=new uh(this.options);this.store=new nh(this.options.resources,this.options);let i=this.services;i.logger=eh,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new ph(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)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new gh(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Sh(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new lh(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||=Th,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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)});let i=Mm(),a=()=>{let 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),i.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?a():setTimeout(a,0),i}loadResources(e,t=Th){let n=t,r=jm(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(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){let r=Mm();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Th,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&rh.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&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++){let 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;let n=Mm();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,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(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=jm(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(jm(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),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);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=oh(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=oh(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=oh(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return jm(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...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;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Mm();return this.options.ns?(jm(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){let n=Mm();jm(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`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`.split(`.`),n=this.services?.languageUtils||new uh(Ch());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Th){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new nh(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),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Ch().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new gh(n)}return a.translator=new lh(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();jh.createInstance,jh.dir,jh.init,jh.loadResources,jh.reloadResources,jh.use,jh.changeLanguage,jh.getFixedT,jh.t,jh.exists,jh.setDefaultNamespace,jh.hasLoadedNamespace,jh.loadNamespaces,jh.loadLanguages,jh.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:km,es:Am}});var Mh={translator:{...jh,t:(e,t)=>{let{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`;break;default:break}return jh.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},Nh={tools:[{type:`Select`,label:`Select`,icon:`mdiCursorDefault`},{type:`FreePathDrawable`,label:`Free Draw`,icon:`mdiPencil`},{type:`LineDrawable`,label:`Line`,icon:`mdiMinus`},{type:`RectangleDrawable`,label:`Rectangle`,icon:`mdiRectangle`},{type:`CircleDrawable`,label:`Circle`,icon:`mdiCircle`},{type:`Text`,label:`Text Entry`,icon:`mdiFormatColorText`},{type:`EraserDrawable`,label:`Eraser`,icon:`mdiEraser`}]};L();var Ph=W(up)({fontSize:`0.9em`,marginLeft:8,minWidth:32,height:32,"& span":{"& svg":{width:`1.3em !important`,height:`1.3em !important`}}}),Fh=({label:e,onClick:t,disabled:n,title:r})=>(0,z.jsx)(Ph,{title:r,onClick:t,disabled:n,size:`small`,variant:`contained`,children:e});Fh.propTypes={disabled:I.bool,label:I.oneOfType([I.string,I.object]),onClick:I.func,title:I.string},Fh.defaultProps={disabled:!1,label:`Add`,onClick:()=>{},title:``};function Ih(e){return pa(`MuiNativeSelect`,e)}var Lh=ma(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);L();var Rh=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return Fo({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${vu(n)}`,a&&`iconOpen`,r&&`disabled`]},Ih,t)},zh=W(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${Lh.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Bh=W(zh,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Ys,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Lh.multiple}`]:t.multiple}]}})({}),Vh=W(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),Hh=W(Vh,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${vu(n.variant)}`],n.open&&t.iconOpen]}})({}),Uh=R.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=Rh(l);return(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(Bh,{ownerState:l,className:V(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,z.jsx)(Hh,{as:a,ownerState:l,className:u.icon})]})});function Wh(e){return pa(`MuiSelect`,e)}var Gh=ma(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function Kh(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function qh(e){return e==null||typeof e==`string`&&!e.trim()}function Jh(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var Yh=R.createContext(null);function Xh(){return R.useContext(Yh)}var Zh=Yh.Provider;L();var Qh,$h=W(zh,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Gh.select}`]:t.select},{[`&.${Gh.select}`]:t[n.variant]},{[`&.${Gh.error}`]:t.error},{[`&.${Gh.multiple}`]:t.multiple}]}})({[`&.${Gh.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),eg=W(Vh,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${vu(n.variant)}`],n.open&&t.iconOpen]}})({}),tg=W(`input`,{shouldForwardProp:e=>Js(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),ng=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return Fo({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${vu(n)}`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Wh,t)},rg=R.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:ee,SelectDisplayProps:k={},tabIndex:A,type:j,value:te,variant:M=`standard`,...ne}=e,[N,P]=Ou({controlled:te,default:l,name:`Select`}),[re,F]=Ou({controlled:E,default:c,name:`Select`}),ie=R.useRef(null),ae=R.useRef(null),[oe,se]=R.useState(null),{current:ce}=R.useRef(E!=null),[le,ue]=R.useState(),[de,fe]=R.useState(null),pe=ul(t,m),me=R.useCallback(e=>{ae.current=e,e&&se(e)},[]),he=oe?.parentNode;R.useImperativeHandle(pe,()=>({focus:()=>{ae.current.focus()},node:ie.current,value:N}),[N]);let ge=oe!==null&&re;R.useEffect(()=>{if(!ge||!he||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{ue(he.clientWidth)});return e.observe(he),()=>{e.disconnect()}},[ge,he,a]),R.useEffect(()=>{c&&re&&oe&&!ce&&(ue(a?null:he.clientWidth),ae.current.focus())},[oe,a]),R.useEffect(()=>{i&&ae.current.focus()},[i]),R.useEffect(()=>{if(!h)return;let e=yc(ae.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let _e=(e,t)=>{e?(fe(Kh(t)),T&&T(t)):(fe(null),x&&x(t)),ce||(ue(a?null:he.clientWidth),F(e))},ve=e=>{w?.(e),e.button===0&&(e.preventDefault(),ae.current.focus(),_e(!0,e))},ye=e=>{_e(!1,e)},be=R.Children.toArray(o),xe=e=>{let t=be.find(t=>t.props.value===e.target.value);t!==void 0&&(P(t.props.value),b&&b(e,t))},Se=e=>t=>{let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(N)?N.slice():[];let t=N.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),N!==n&&(P(n),b)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,e)}_||_e(!1,t)}},Ce=e=>{D||([` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),_e(!0,e)),C?.(e))},we=e=>{!ge&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:v}}),y(e))};delete ne[`aria-invalid`];let Te,Ee,De=[],Oe=!1;(Rp({value:N})||d)&&(O?Te=O(N):Oe=!0);let ke=be.map(e=>{if(!R.isValidElement(e))return null;let t;if(_){if(!Array.isArray(N))throw Error(gt(2));t=N.some(t=>Jh(t,e.props.value)),t&&Oe&&De.push(e.props.children)}else t=Jh(N,e.props.value),t&&Oe&&(Ee=e.props.children);return R.cloneElement(e,{"aria-selected":t?`true`:`false`,onClick:Se(e),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Oe&&(Te=_?De.length===0?null:De.reduce((e,t,n)=>(e.push(t),n<De.length-1&&e.push(`, `),e),[]):Ee);let Ae=le;!a&&ce&&oe&&(Ae=he.clientWidth);let je;je=A===void 0?u?null:0:A;let Me=k.id||(v?`mui-component-select-${v}`:void 0),Ne={...e,variant:M,value:N,open:ge,error:f},Pe=ng(Ne),Fe={...g.PaperProps,...typeof g.slotProps?.paper==`function`?g.slotProps.paper(Ne):g.slotProps?.paper},Ie={...g.MenuListProps,...typeof g.slotProps?.list==`function`?g.slotProps.list(Ne):g.slotProps?.list},Le=so();return(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)($h,{as:`div`,ref:me,tabIndex:je,role:`combobox`,"aria-controls":ge?Le:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":ge?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":[h,Me].filter(Boolean).join(` `)||void 0,"aria-describedby":n,"aria-required":ee?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Ce,onMouseDown:u||D?null:ve,onBlur:we,onFocus:S,...k,ownerState:Ne,className:V(k.className,Pe.select,s),id:Me,children:qh(Te)?Qh||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):Te}),(0,z.jsx)(tg,{"aria-invalid":f,value:Array.isArray(N)?N.join(`,`):N,name:v,ref:ie,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:u,className:Pe.nativeInput,autoFocus:i,required:ee,...ne,ownerState:Ne}),(0,z.jsx)(eg,{as:p,className:Pe.icon,ownerState:Ne}),(0,z.jsx)(Zh,{value:de,children:(0,z.jsx)(Em,{id:`menu-${v||``}`,anchorEl:he,open:ge,onClose:ye,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:Le,...Ie},paper:{...Fe,style:{minWidth:Ae,...Fe==null?null:Fe.style}}},children:ke})})]})}),ig=Cu((0,z.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);L();function ag(e){return parseInt(e,10)||0}var og={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function sg(e){for(let t in e)return!1;return!0}function cg(e){return sg(e)||e.outerHeightStyle===0&&!e.overflowing}var lg=R.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=R.useRef(o!=null),l=R.useRef(null),u=ll(t,l),d=R.useRef(null),f=R.useRef(null),p=R.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=bc(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
146
|
+
`&&(n.value+=` `);let o=a.boxSizing,s=ag(a.paddingBottom)+ag(a.paddingTop),c=ag(a.borderBottomWidth)+ag(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=tu(()=>{let e=l.current,t=p();if(!e||!t||cg(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=R.useCallback(()=>{let e=l.current,t=p();if(!e||!t||cg(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=R.useRef(-1);return Oa(()=>{let e=_c(h),t=l?.current;if(!t)return;let n=bc(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),Oa(()=>{h()}),(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
|
|
147
|
+
`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,z.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...og.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function ug(e){return pa(`MuiInputBase`,e)}var dg=ma(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]);L();var fg,pg=`mui-auto-fill`,mg=`mui-auto-fill-cancel`,hg=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${vu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},gg=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size===`small`&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type===`search`&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},_g=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return Fo({root:[`root`,`color${vu(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${vu(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},ug,t)},vg=W(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:hg})(Vl(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${dg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),yg=W(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:gg})(Vl(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${dg.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${dg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:mg,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:pg}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),bg=hc({[`@keyframes ${pg}`]:{from:{animationName:pg}},[`@keyframes ${mg}`]:{from:{animationName:mg}}}),xg=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,error:m,fullWidth:h=!1,id:g,inputComponent:_=`input`,inputProps:v={},inputRef:y,margin:b,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:ee,onKeyUp:k,placeholder:A,readOnly:j,renderSuffix:te,rows:M,size:ne,slotProps:N={},slots:P={},startAdornment:re,type:F=`text`,value:ie,...ae}=n,oe=v.value==null?ie:v.value,{current:se}=R.useRef(oe!=null),ce=R.useRef(),le=R.useCallback(e=>{},[]),ue=ul(ce,y,v.ref,le),[de,fe]=R.useState(!1),pe=Ep(),me=wp({props:n,muiFormControl:pe,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});me.focused=pe?pe.focused:de,R.useEffect(()=>{!pe&&d&&de&&(fe(!1),T&&T())},[pe,d,de,T]);let he=pe&&pe.onFilled,ge=pe&&pe.onEmpty,_e=R.useCallback(e=>{Rp(e)?he&&he():ge&&ge()},[he,ge]);Tu(()=>{se&&_e({value:oe})},[oe,_e,se]),Tu(()=>{if(!a)return;let e=ce.current;if(!e)return;let t=yc(e),n=Ol(t),r=n==null||n===t.body||n===t.documentElement;e===n?pe&&pe.onFocus?pe.onFocus():fe(!0):r&&e.focus()},[a]);let ve=e=>{O&&O(e),v.onFocus&&v.onFocus(e),pe&&pe.onFocus?pe.onFocus(e):fe(!0)},ye=e=>{T&&T(e),v.onBlur&&v.onBlur(e),pe&&pe.onBlur?pe.onBlur(e):fe(!1)},be=(e,...t)=>{if(!se){let t=e.target||ce.current;if(t==null)throw Error(gt(1));_e({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)};R.useEffect(()=>{_e(ce.current)},[]);let xe=e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),D&&D(e)},Se=_,Ce=v;C&&Se===`input`&&(Ce=M?{type:void 0,minRows:M,maxRows:M,...Ce}:{type:void 0,maxRows:x,minRows:S,...Ce},Se=lg);let we=e=>{_e(e.animationName===mg?ce.current:{value:`x`})};R.useEffect(()=>{pe&&pe.setAdornedStart(!!re)},[pe,re]);let Te={...n,color:me.color||`primary`,disabled:me.disabled,endAdornment:p,error:me.error,focused:me.focused,formControl:pe,fullWidth:h,hiddenLabel:me.hiddenLabel,multiline:C,size:me.size,startAdornment:re,type:F},Ee=_g(Te),De=P.root||c.Root||vg,Oe=N.root||l.root||{},ke=P.input||c.Input||yg;return Ce={...Ce,...N.input??l.input},(0,z.jsxs)(R.Fragment,{children:[!f&&typeof bg==`function`&&(fg||=(0,z.jsx)(bg,{})),(0,z.jsxs)(De,{...Oe,ref:t,onClick:xe,...ae,...!pc(De)&&{ownerState:{...Te,...Oe.ownerState}},className:V(Ee.root,Oe.className,o,j&&`MuiInputBase-readOnly`),children:[re,(0,z.jsx)(Tp.Provider,{value:null,children:(0,z.jsx)(ke,{"aria-invalid":me.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:u,disabled:me.disabled,id:g,onAnimationStart:we,name:w,placeholder:A,readOnly:j,required:me.required,rows:M,value:oe,onKeyDown:ee,onKeyUp:k,type:F,...Ce,...!pc(ke)&&{as:Se,ownerState:{...Te,...Ce.ownerState}},ref:ue,className:V(Ee.input,Ce.className,j&&`MuiInputBase-readOnly`),onBlur:ye,onChange:be,onFocus:ve})}),p,te?te({...me,startAdornment:re}):null]})]})});function Sg(e){return pa(`MuiInput`,e)}var Cg={...dg,...ma(`MuiInput`,[`root`,`underline`,`input`])};L();var wg=e=>{let{classes:t,disableUnderline:n}=e,r=Fo({root:[`root`,!n&&`underline`],input:[`input`]},Sg,t);return{...t,...r}},Tg=W(vg,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...hg(e,t),!n.disableUnderline&&t.underline]}})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Cg.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Cg.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Cg.disabled}, .${Cg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Cg.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Bf()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Eg=W(yg,{name:`MuiInput`,slot:`Input`,overridesResolver:gg})({}),Dg=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p=wg(n),m={root:{ownerState:{disableUnderline:r}}},h=l??a?Br(l??a,m):m;return(0,z.jsx)(xg,{slots:{root:u.root??i.Root??Tg,input:u.input??i.Input??Eg},slotProps:h,fullWidth:o,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:p})});Dg.muiName=`Input`;function Og(e){return pa(`MuiFilledInput`,e)}var kg={...dg,...ma(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};L();var Ag=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=Fo({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${vu(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},Og,t);return{...t,...c}},jg=W(vg,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...hg(e,t),!n.disableUnderline&&t.underline]}})(Vl(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${kg.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${kg.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${kg.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${kg.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${kg.disabled}, .${kg.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kg.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Bf()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),Mg=W(yg,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:gg})(Vl(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ng=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:o=!1,hiddenLabel:s,inputComponent:c=`input`,multiline:l=!1,slotProps:u,slots:d={},type:f=`text`,...p}=n,m={...n,disableUnderline:r,fullWidth:o,inputComponent:c,multiline:l,type:f},h=Ag(n),g={root:{ownerState:m},input:{ownerState:m}},_=u??a?Br(g,u??a):g;return(0,z.jsx)(xg,{slots:{root:d.root??i.Root??jg,input:d.input??i.Input??Mg},slotProps:_,fullWidth:o,inputComponent:c,multiline:l,ref:t,type:f,...p,classes:h})});Ng.muiName=`Input`,L();var Pg,Fg=W(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Ys})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),Ig=W(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Ys})(Vl(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,transition:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Lg(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,z.jsx)(Fg,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,z.jsx)(Ig,{ownerState:c,children:s?(0,z.jsx)(`span`,{children:i}):Pg||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}function Rg(e){return pa(`MuiOutlinedInput`,e)}var zg={...dg,...ma(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};L();var Bg=e=>{let{classes:t}=e,n=Fo({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},Rg,t);return{...t,...n}},Vg=W(vg,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:hg})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zg.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${zg.focused} .${zg.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Bf()).map(([t])=>({props:{color:t},style:{[`&.${zg.focused} .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${zg.error} .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zg.disabled} .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),Hg=W(Lg,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(Vl(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Ug=W(yg,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:gg})(Vl(({theme:e})=>({padding:`16.5px 14px`,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Wg=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiOutlinedInput`}),{components:r={},fullWidth:i=!1,inputComponent:a=`input`,label:o,multiline:s=!1,notched:c,slots:l={},slotProps:u={},type:d=`text`,...f}=n,p=Bg(n),m=Ep(),h=wp({props:n,muiFormControl:m,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),g={...n,color:h.color||`primary`,disabled:h.disabled,error:h.error,focused:h.focused,formControl:m,fullWidth:i,hiddenLabel:h.hiddenLabel,multiline:s,size:h.size,type:d},_=l.root??r.Root??Vg,v=l.input??r.Input??Ug,[y,b]=ql(`notchedOutline`,{elementType:Hg,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:l,slotProps:u},additionalProps:{label:o!=null&&o!==``&&h.required?(0,z.jsxs)(R.Fragment,{children:[o,` `,`*`]}):o}});return(0,z.jsx)(xg,{slots:{root:_,input:v},slotProps:u,renderSuffix:e=>(0,z.jsx)(y,{...b,notched:c===void 0?!!(e.startAdornment||e.filled||e.focused):c}),fullWidth:i,inputComponent:a,multiline:s,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});Wg.muiName=`Input`,L();var Gg=e=>{let{classes:t}=e,n=Fo({root:[`root`]},Wh,t);return{...t,...n}},Kg={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Ys(e)&&e!==`variant`},qg=W(Dg,Kg)(``),Jg=W(Wg,Kg)(``),Yg=W(Ng,Kg)(``),Xg=R.forwardRef(function(e,t){let n=gc({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=ig,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?Uh:rg,E=wp({props:n,muiFormControl:Ep(),states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},ee=Gg(O),{root:k,...A}=ee,j=d||{standard:(0,z.jsx)(qg,{ownerState:O}),outlined:(0,z.jsx)(Jg,{label:p,ownerState:O}),filled:(0,z.jsx)(Yg,{ownerState:O})}[D],te=ul(t,Oc(j));return(0,z.jsx)(R.Fragment,{children:R.cloneElement(j,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?Br(A,f.classes):A,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:te,className:V(j.props.className,o,ee.root),...!d&&{variant:D},...w})})});Xg.muiName=`Select`;var Zg=ma(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),Qg=ma(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),$g=ma(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]);function e_(e){return pa(`MuiMenuItem`,e)}var t_=ma(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);L();function n_(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}var r_=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},i_=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=Fo({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},e_,o);return{...o,...s}},a_=W(If,{shouldForwardProp:e=>Ys(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:r_})(Vl(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${t_.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${t_.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${t_.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${t_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${t_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Zg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Zg.inset}`]:{marginLeft:52},[`& .${$g.root}`]:{marginTop:0,marginBottom:0},[`& .${$g.inset}`]:{paddingLeft:36},[`& .${Qg.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Qg.root} svg`]:{fontSize:`1.25rem`}}}]}))),o_=R.forwardRef(function(e,t){let n=gc({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=Xh(),m=R.useContext(cm),h=R.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=R.useRef(null);Tu(()=>{r&&g.current&&n_(g.current,p)},[r]);let _={...n,dense:h.dense,divider:o,disableGutters:s},v=i_(n),y=ul(g,t),{root:b,...x}=v,S;return n.disabled||(S=u===void 0?-1:u),(0,z.jsx)(cm.Provider,{value:h,children:(0,z.jsx)(a_,{ref:y,role:l,tabIndex:S,component:i,focusVisibleClassName:V(v.focusVisible,c),className:V(v.root,d),...f,ownerState:_,classes:x})})});L();function s_(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function c_(e,t){return!e||s_(e)?e:s_(e.default)?e.default:t&&s_(e[t])?e[t]:t&&s_(e[t]?.default)?e[t].default:e}var l_=c_(Kp,`InputContainer`)||c_(f_.InputContainer,`InputContainer`),u_=Om,d_=u_.default,f_=d_&&typeof d_==`object`?d_:u_,{translator:p_}=Mh,m_=W(`div`)(({theme:e})=>({marginTop:e.spacing(2),display:`flex`})),h_=W(l_)({flex:1,fontSize:`inherit`,width:`90%`}),g_=W(o_)(({theme:e,isBlackColor:t})=>({borderRadius:`2px`,fontSize:`inherit`,height:`22px`,marginLeft:e.spacing(2),marginRight:e.spacing(2),marginTop:e.spacing(2),...t&&{color:e.palette.background.paper}})),__=W(Xg)({fontSize:`inherit`,transform:`translate(0%, 40%)`}),v_=class extends R.Component{onChange=e=>t=>{let{value:n}=t.target,{onFillColorChange:r,onOutlineColorChange:i,onPaintColorChange:a}=this.props;e===`fill`?r(n):e===`outline`?i(n):a(n)};render(){let{fillColor:e,outlineColor:t,fillList:n,outlineList:r,language:i}=this.props;return(0,z.jsxs)(m_,{children:[(0,z.jsx)(h_,{label:p_.t(`drawingResponse.fillColor`,{lng:i}),children:(0,z.jsx)(__,{onChange:this.onChange(`fill`),value:e,variant:`standard`,MenuProps:{transitionDuration:{enter:225,exit:195}},children:n.map(({value:e,label:t})=>(0,z.jsx)(g_,{value:e,isBlackColor:e===`black`,style:{backgroundColor:e},children:t},e))})}),(0,z.jsx)(h_,{label:p_.t(`drawingResponse.outlineColor`,{lng:i}),children:(0,z.jsx)(__,{onChange:this.onChange(`outline`),value:t,variant:`standard`,MenuProps:{transitionDuration:{enter:225,exit:195}},children:r.map(({value:e,label:t})=>(0,z.jsx)(g_,{value:e,style:{border:`2px solid ${e}`},children:t},e))})})]})}};v_.propTypes={fillColor:I.string.isRequired,fillList:I.array.isRequired,onFillColorChange:I.func.isRequired,onOutlineColorChange:I.func.isRequired,onPaintColorChange:I.func.isRequired,outlineColor:I.string.isRequired,outlineList:I.array.isRequired,language:I.string};var y_=Math.PI/180;function b_(){return typeof window<`u`&&({}.toString.call(window)===`[object Window]`||{}.toString.call(window)===`[object global]`)}var x_=typeof global<`u`?global:typeof window<`u`?window:typeof WorkerGlobalScope<`u`?self:{},J={_global:x_,version:`8.3.0`,isBrowser:b_(),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle(e){return J.angleDeg?e*y_:e},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<`u`&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return J.DD.isDragging},isDragReady(){return!!J.DD.node},document:x_.document,_injectGlobal(e){x_.Konva=e}},S_=e=>{J[e.prototype.getClassName()]=e};J._injectGlobal(J);var C_=class e{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new e(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){var t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){var t=Math.cos(e),n=Math.sin(e),r=this.m[0]*t+this.m[2]*n,i=this.m[1]*t+this.m[3]*n,a=this.m[0]*-n+this.m[2]*t,o=this.m[1]*-n+this.m[3]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=a,this.m[3]=o,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){var n=this.m[0]+this.m[2]*t,r=this.m[1]+this.m[3]*t,i=this.m[2]+this.m[0]*e,a=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=a,this}multiply(e){var t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],r=this.m[0]*e.m[2]+this.m[2]*e.m[3],i=this.m[1]*e.m[2]+this.m[3]*e.m[3],a=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],o=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this}invert(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,r=-this.m[2]*e,i=this.m[0]*e,a=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this}getMatrix(){return this.m}setAbsolutePosition(e,t){var n=this.m[0],r=this.m[1],i=this.m[2],a=this.m[3],o=this.m[4],s=(n*(t-this.m[5])-r*(e-o))/(n*a-r*i),c=(e-o-i*s)/n;return this.translate(c,s)}decompose(){var e=this.m[0],t=this.m[1],n=this.m[2],r=this.m[3],i=this.m[4],a=this.m[5],o=e*r-t*n;let s={x:i,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!=0||t!=0){var c=Math.sqrt(e*e+t*t);s.rotation=t>0?Math.acos(e/c):-Math.acos(e/c),s.scaleX=c,s.scaleY=o/c,s.skewX=(e*n+t*r)/o,s.skewY=0}else if(n!=0||r!=0){var l=Math.sqrt(n*n+r*r);s.rotation=Math.PI/2-(r>0?Math.acos(-n/l):-Math.acos(n/l)),s.scaleX=o/l,s.scaleY=l,s.skewX=0,s.skewY=(e*n+t*r)/o}return s.rotation=Y._getRotation(s.rotation),s}},w_=`[object Array]`,T_=`[object Number]`,E_=`[object String]`,D_=`[object Boolean]`,O_=Math.PI/180,k_=180/Math.PI,A_=`#`,j_=``,M_=`0`,N_=`Konva warning: `,P_=`Konva error: `,F_=`rgb(`,I_={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},L_=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,R_=[],z_=typeof requestAnimationFrame<`u`&&requestAnimationFrame||function(e){setTimeout(e,60)},Y={_isElement(e){return!!(e&&e.nodeType==1)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===w_},_isNumber(e){return Object.prototype.toString.call(e)===T_&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===E_},_isBoolean(e){return Object.prototype.toString.call(e)===D_},isObject(e){return e instanceof Object},isValidSelector(e){if(typeof e!=`string`)return!1;var t=e[0];return t===`#`||t===`.`||t===t.toUpperCase()},_sign(e){return e===0||e>0?1:-1},requestAnimFrame(e){R_.push(e),R_.length===1&&z_(function(){let e=R_;R_=[],e.forEach(function(e){e()})})},createCanvasElement(){var e=document.createElement(`canvas`);try{e.style=e.style||{}}catch{}return e},createImageElement(){return document.createElement(`img`)},_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,t){var n=Y.createImageElement();n.onload=function(){t(n)},n.src=e},_rgbToHex(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb(e){e=e.replace(A_,j_);var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){for(var e=(Math.random()*16777215<<0).toString(16);e.length<6;)e=M_+e;return A_+e},getRGB(e){var t;return e in I_?(t=I_[e],{r:t[0],g:t[1],b:t[2]}):e[0]===A_?this._hexToRgb(e.substring(1)):e.substr(0,4)===F_?(t=L_.exec(e.replace(/ /g,``)),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e||=`black`,Y._namedColorToRBA(e)||Y._hex3ColorToRGBA(e)||Y._hex6ColorToRGBA(e)||Y._rgbColorToRGBA(e)||Y._rgbaColorToRGBA(e)||Y._hslColorToRGBA(e)},_namedColorToRBA(e){var t=I_[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(e.indexOf(`rgb(`)===0){e=e.match(/rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(e.indexOf(`rgba(`)===0){e=e.match(/rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex6ColorToRGBA(e){if(e[0]===`#`&&e.length===7)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex3ColorToRGBA(e){if(e[0]===`#`&&e.length===4)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){let[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),r=Number(n[0])/360,i=Number(n[1])/100,a=Number(n[2])/100,o,s,c;if(i===0)return c=a*255,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};o=a<.5?a*(1+i):a+i-a*i;let l=2*a-o,u=[0,0,0];for(let e=0;e<3;e++)s=r+1/3*-(e-1),s<0&&s++,s>1&&s--,c=6*s<1?l+(o-l)*6*s:2*s<1?o:3*s<2?l+(o-l)*(2/3-s)*6:l,u[e]=c*255;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject(e){var t={};for(var n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray(e){return e.slice(0)},degToRad(e){return e*O_},radToDeg(e){return e*k_},_degToRad(e){return Y.warn(`Util._degToRad is removed. Please use public Util.degToRad instead.`),Y.degToRad(e)},_radToDeg(e){return Y.warn(`Util._radToDeg is removed. Please use public Util.radToDeg instead.`),Y.radToDeg(e)},_getRotation(e){return J.angleDeg?Y.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw Error(P_+e)},error(e){console.error(P_+e)},warn(e){J.showWarnings&&console.warn(N_+e)},each(e,t){for(var n in e)t(n,e[n])},_inRange(e,t,n){return t<=e&&e<n},_getProjectionToSegment(e,t,n,r,i,a){var o,s,c,l=(e-n)*(e-n)+(t-r)*(t-r);if(l==0)o=e,s=t,c=(i-n)*(i-n)+(a-r)*(a-r);else{var u=((i-e)*(n-e)+(a-t)*(r-t))/l;u<0?(o=e,s=t,c=(e-i)*(e-i)+(t-a)*(t-a)):u>1?(o=n,s=r,c=(n-i)*(n-i)+(r-a)*(r-a)):(o=e+u*(n-e),s=t+u*(r-t),c=(o-i)*(o-i)+(s-a)*(s-a))}return[o,s,c]},_getProjectionToLine(e,t,n){var r=Y.cloneObject(e),i=Number.MAX_VALUE;return t.forEach(function(a,o){if(!(!n&&o===t.length-1)){var s=t[(o+1)%t.length],c=Y._getProjectionToSegment(a.x,a.y,s.x,s.y,e.x,e.y),l=c[0],u=c[1],d=c[2];d<i&&(r.x=l,r.y=u,i=d)}}),r},_prepareArrayForTween(e,t,n){var r,i=[],a=[];if(e.length>t.length){var o=t;t=e,e=o}for(r=0;r<e.length;r+=2)i.push({x:e[r],y:e[r+1]});for(r=0;r<t.length;r+=2)a.push({x:t[r],y:t[r+1]});var s=[];return a.forEach(function(e){var t=Y._getProjectionToLine(e,i,n);s.push(t.x),s.push(t.y)}),s},_prepareToStringify(e){var t;for(var n in e.visitedByCircularReferenceRemoval=!0,e)if(e.hasOwnProperty(n)&&e[n]&&typeof e[n]==`object`){if(t=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||Y._isElement(e[n]))if(t.configurable)delete e[n];else return null;else if(Y._prepareToStringify(e[n])===null)if(t.configurable)delete e[n];else return null}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(var n in t)e[n]=t[n];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999}};function B_(e){return Y._isString(e)?`"`+e+`"`:Object.prototype.toString.call(e)===`[object Number]`||Y._isBoolean(e)?e:Object.prototype.toString.call(e)}function V_(e){return e>255?255:e<0?0:Math.round(e)}function X(){if(J.isUnminified)return function(e,t){return Y._isNumber(e)||Y.warn(B_(e)+` is a not valid value for "`+t+`" attribute. The value should be a number.`),e}}function H_(e){if(J.isUnminified)return function(t,n){let r=Y._isNumber(t),i=Y._isArray(t)&&t.length==e;return!r&&!i&&Y.warn(B_(t)+` is a not valid value for "`+n+`" attribute. The value should be a number or Array<number>(`+e+`)`),t}}function U_(){if(J.isUnminified)return function(e,t){return Y._isNumber(e)||e===`auto`||Y.warn(B_(e)+` is a not valid value for "`+t+`" attribute. The value should be a number or "auto".`),e}}function W_(){if(J.isUnminified)return function(e,t){return Y._isString(e)||Y.warn(B_(e)+` is a not valid value for "`+t+`" attribute. The value should be a string.`),e}}function G_(){if(J.isUnminified)return function(e,t){let n=Y._isString(e),r=Object.prototype.toString.call(e)===`[object CanvasGradient]`||e&&e.addColorStop;return n||r||Y.warn(B_(e)+` is a not valid value for "`+t+`" attribute. The value should be a string or a native gradient.`),e}}function K_(){if(J.isUnminified)return function(e,t){return Y._isArray(e)?e.forEach(function(e){Y._isNumber(e)||Y.warn(`"`+t+`" attribute has non numeric element `+e+`. Make sure that all elements are numbers.`)}):Y.warn(B_(e)+` is a not valid value for "`+t+`" attribute. The value should be a array of numbers.`),e}}function q_(){if(J.isUnminified)return function(e,t){return e===!0||e===!1||Y.warn(B_(e)+` is a not valid value for "`+t+`" attribute. The value should be a boolean.`),e}}function J_(e){if(J.isUnminified)return function(t,n){return Y.isObject(t)||Y.warn(B_(t)+` is a not valid value for "`+n+`" attribute. The value should be an object with properties `+e),t}}var Y_=`get`,X_=`set`,Z={addGetterSetter(e,t,n,r,i){Z.addGetter(e,t,n),Z.addSetter(e,t,r,i),Z.addOverloadedGetterSetter(e,t)},addGetter(e,t,n){var r=Y_+Y._capitalize(t);e.prototype[r]=e.prototype[r]||function(){var e=this.attrs[t];return e===void 0?n:e}},addSetter(e,t,n,r){var i=X_+Y._capitalize(t);e.prototype[i]||Z.overWriteSetter(e,t,n,r)},overWriteSetter(e,t,n,r){var i=X_+Y._capitalize(t);e.prototype[i]=function(e){return n&&e!=null&&(e=n.call(this,e,t)),this._setAttr(t,e),r&&r.call(this),this}},addComponentsGetterSetter(e,t,n,r,i){var a=n.length,o=Y._capitalize,s=Y_+o(t),c=X_+o(t),l,u;e.prototype[s]=function(){var e={};for(l=0;l<a;l++)u=n[l],e[u]=this.getAttr(t+o(u));return e};var d=J_(n);e.prototype[c]=function(e){var n=this.attrs[t],a;for(a in r&&(e=r.call(this,e)),d&&d.call(this,e,t),e)e.hasOwnProperty(a)&&this._setAttr(t+o(a),e[a]);return this._fireChangeEvent(t,n,e),i&&i.call(this),this},Z.addOverloadedGetterSetter(e,t)},addOverloadedGetterSetter(e,t){var n=Y._capitalize(t),r=X_+n,i=Y_+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(e,t,n,r){Y.error(`Adding deprecated `+t);var i=Y_+Y._capitalize(t),a=t+` property is deprecated and will be removed soon. Look at Konva change log for more information.`;e.prototype[i]=function(){Y.error(a);var e=this.attrs[t];return e===void 0?n:e},Z.addSetter(e,t,r,function(){Y.error(a)}),Z.addOverloadedGetterSetter(e,t)},backCompat(e,t){Y.each(t,function(t,n){var r=e.prototype[n],i=Y_+Y._capitalize(t),a=X_+Y._capitalize(t);function o(){r.apply(this,arguments),Y.error(`"`+t+`" method is deprecated and will be removed soon. Use ""`+n+`" instead.`)}e.prototype[t]=o,e.prototype[i]=o,e.prototype[a]=o})},afterSetFilter(){this._filterUpToDate=!1}};function Z_(e){var t=[],n=e.length,r=Y,i,a;for(i=0;i<n;i++)a=e[i],r._isNumber(a)?a=Math.round(a*1e3)/1e3:r._isString(a)||(a+=``),t.push(a);return t}var Q_=`,`,$_=`(`,ev=`)`,tv=`([`,nv=`])`,rv=`;`,iv=`()`,av=`=`,ov=`arc.arcTo.beginPath.bezierCurveTo.clearRect.clip.closePath.createLinearGradient.createPattern.createRadialGradient.drawImage.ellipse.fill.fillText.getImageData.createImageData.lineTo.moveTo.putImageData.quadraticCurveTo.rect.restore.rotate.save.scale.setLineDash.setTransform.stroke.strokeText.transform.translate`.split(`.`),sv=[`fillStyle`,`strokeStyle`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`,`lineCap`,`lineDashOffset`,`lineJoin`,`lineWidth`,`miterLimit`,`font`,`textAlign`,`textBaseline`,`globalAlpha`,`globalCompositeOperation`,`imageSmoothingEnabled`],cv=100,lv=class{constructor(e){this.canvas=e,this._context=e._canvas.getContext(`2d`),J.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,t){var n=this.traceArr,r=n.length,i=``,a,o,s,c;for(a=0;a<r;a++)o=n[a],s=o.method,s?(c=o.args,i+=s,e?i+=iv:Y._isArray(c[0])?i+=tv+c.join(Q_)+nv:(t&&(c=c.map(e=>typeof e==`number`?Math.floor(e):e)),i+=$_+c.join(Q_)+ev)):(i+=o.property,e||(i+=av+o.val)),i+=rv;return i}clearTrace(){this.traceArr=[]}_trace(e){var t=this.traceArr,n;t.push(e),n=t.length,n>=cv&&t.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)}_applyLineCap(e){var t=e.getLineCap();t&&this.setAttr(`lineCap`,t)}_applyOpacity(e){var t=e.getAbsoluteOpacity();t!==1&&this.setAttr(`globalAlpha`,t)}_applyLineJoin(e){var t=e.attrs.lineJoin;t&&this.setAttr(`lineJoin`,t)}setAttr(e,t){this._context[e]=t}arc(e,t,n,r,i,a){this._context.arc(e,t,n,r,i,a)}arcTo(e,t,n,r,i){this._context.arcTo(e,t,n,r,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,t,n,r,i,a){this._context.bezierCurveTo(e,t,n,r,i,a)}clearRect(e,t,n,r){this._context.clearRect(e,t,n,r)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(e,t){var n=arguments;if(n.length===2)return this._context.createImageData(e,t);if(n.length===1)return this._context.createImageData(e)}createLinearGradient(e,t,n,r){return this._context.createLinearGradient(e,t,n,r)}createPattern(e,t){return this._context.createPattern(e,t)}createRadialGradient(e,t,n,r,i,a){return this._context.createRadialGradient(e,t,n,r,i,a)}drawImage(e,t,n,r,i,a,o,s,c){var l=arguments,u=this._context;l.length===3?u.drawImage(e,t,n):l.length===5?u.drawImage(e,t,n,r,i):l.length===9&&u.drawImage(e,t,n,r,i,a,o,s,c)}ellipse(e,t,n,r,i,a,o,s){this._context.ellipse(e,t,n,r,i,a,o,s)}isPointInPath(e,t){return this._context.isPointInPath(e,t)}fill(e){e?this._context.fill(e):this._context.fill()}fillRect(e,t,n,r){this._context.fillRect(e,t,n,r)}strokeRect(e,t,n,r){this._context.strokeRect(e,t,n,r)}fillText(e,t,n,r){r?this._context.fillText(e,t,n,r):this._context.fillText(e,t,n)}measureText(e){return this._context.measureText(e)}getImageData(e,t,n,r){return this._context.getImageData(e,t,n,r)}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}rect(e,t,n,r){this._context.rect(e,t,n,r)}putImageData(e,t,n){this._context.putImageData(e,t,n)}quadraticCurveTo(e,t,n,r){this._context.quadraticCurveTo(e,t,n,r)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,t){this._context.scale(e,t)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):`mozDash`in this._context?this._context.mozDash=e:`webkitLineDash`in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,t,n,r,i,a){this._context.setTransform(e,t,n,r,i,a)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,t,n,r){this._context.strokeText(e,t,n,r)}transform(e,t,n,r,i,a){this._context.transform(e,t,n,r,i,a)}translate(e,t){this._context.translate(e,t)}_enableTrace(){var e=this,t=ov.length,n=this.setAttr,r,i,a=function(t){var n=e[t],r;e[t]=function(){return i=Z_(Array.prototype.slice.call(arguments,0)),r=n.apply(e,arguments),e._trace({method:t,args:i}),r}};for(r=0;r<t;r++)a(ov[r]);e.setAttr=function(){n.apply(e,arguments);var t=arguments[0],r=arguments[1];(t===`shadowOffsetX`||t===`shadowOffsetY`||t===`shadowBlur`)&&(r/=this.canvas.getPixelRatio()),e._trace({property:t,val:r})}}_applyGlobalCompositeOperation(e){let t=e.attrs.globalCompositeOperation;!t||t===`source-over`||this.setAttr(`globalCompositeOperation`,t)}};sv.forEach(function(e){Object.defineProperty(lv.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});var uv=class extends lv{_fillColor(e){var t=e.fill();this.setAttr(`fillStyle`,t),e._fillFunc(this)}_fillPattern(e){this.setAttr(`fillStyle`,e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){var t=e._getLinearGradient();t&&(this.setAttr(`fillStyle`,t),e._fillFunc(this))}_fillRadialGradient(e){var t=e._getRadialGradient();t&&(this.setAttr(`fillStyle`,t),e._fillFunc(this))}_fill(e){var t=e.fill(),n=e.getFillPriority();if(t&&n===`color`){this._fillColor(e);return}var r=e.getFillPatternImage();if(r&&n===`pattern`){this._fillPattern(e);return}var i=e.getFillLinearGradientColorStops();if(i&&n===`linear-gradient`){this._fillLinearGradient(e);return}var a=e.getFillRadialGradientColorStops();if(a&&n===`radial-gradient`){this._fillRadialGradient(e);return}t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):a&&this._fillRadialGradient(e)}_strokeLinearGradient(e){var t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var a=0;a<r.length;a+=2)i.addColorStop(r[a],r[a+1]);this.setAttr(`strokeStyle`,i)}}_stroke(e){var t=e.dash(),n=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr(`lineDashOffset`,e.dashOffset())),this.setAttr(`lineWidth`,e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr(`shadowColor`,`rgba(0,0,0,0)`),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr(`strokeStyle`,e.stroke()),e._strokeFunc(this),n||this.restore()}}_applyShadow(e){var t=e.getShadowRGBA()??`black`,n=e.getShadowBlur()??5,r=e.getShadowOffset()??{x:0,y:0},i=e.getAbsoluteScale(),a=this.canvas.getPixelRatio(),o=i.x*a,s=i.y*a;this.setAttr(`shadowColor`,t),this.setAttr(`shadowBlur`,n*Math.min(Math.abs(o),Math.abs(s))),this.setAttr(`shadowOffsetX`,r.x*o),this.setAttr(`shadowOffsetY`,r.y*s)}},dv=class extends lv{_fill(e){this.save(),this.setAttr(`fillStyle`,e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){var t=e.getStrokeScaleEnabled();if(!t){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(e);var r=e.hitStrokeWidth(),i=r===`auto`?e.strokeWidth():r;this.setAttr(`lineWidth`,i),this.setAttr(`strokeStyle`,e.colorKey),e._strokeFuncHit(this),t||this.restore()}}},fv;function pv(){if(fv)return fv;var e=Y.createCanvasElement().getContext(`2d`);return fv=(function(){return(J._global.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)})(),fv}var mv=class{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var t=(e||{}).pixelRatio||J.pixelRatio||pv();this.pixelRatio=t,this._canvas=Y.createCanvasElement(),this._canvas.style.padding=`0`,this._canvas.style.margin=`0`,this._canvas.style.border=`0`,this._canvas.style.background=`transparent`,this._canvas.style.position=`absolute`,this._canvas.style.top=`0`,this._canvas.style.left=`0`}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){var t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+`px`;var t=this.pixelRatio;this.getContext()._context.scale(t,t)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+`px`;var t=this.pixelRatio;this.getContext()._context.scale(t,t)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,t){this.setWidth(e||0),this.setHeight(t||0)}toDataURL(e,t){try{return this._canvas.toDataURL(e,t)}catch{try{return this._canvas.toDataURL()}catch(e){return Y.error(`Unable to get data URL. `+e.message+` For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html.`),``}}}};Z.addGetterSetter(mv,`pixelRatio`,void 0,X());var hv=class extends mv{constructor(e={width:0,height:0}){super(e),this.context=new uv(this),this.setSize(e.width,e.height)}},gv=class extends mv{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new dv(this),this.setSize(e.width,e.height)}},_v={get isDragging(){var e=!1;return _v._dragElements.forEach(t=>{t.dragStatus===`dragging`&&(e=!0)}),e},justDragged:!1,get node(){var e;return _v._dragElements.forEach(t=>{e=t.node}),e},_dragElements:new Map,_drag(e){let t=[];_v._dragElements.forEach((n,r)=>{let{node:i}=n,a=i.getStage();a.setPointersPositions(e),n.pointerId===void 0&&(n.pointerId=Y._getFirstPointerId(e));let o=a._changedPointerPositions.find(e=>e.id===n.pointerId);if(o){if(n.dragStatus!==`dragging`){var s=i.dragDistance();if(Math.max(Math.abs(o.x-n.startPointerPos.x),Math.abs(o.y-n.startPointerPos.y))<s||(i.startDrag({evt:e}),!i.isDragging()))return}i._setDragPosition(e,n),t.push(i)}}),t.forEach(t=>{t.fire(`dragmove`,{type:`dragmove`,target:t,evt:e},!0)})},_endDragBefore(e){_v._dragElements.forEach(t=>{let{node:n}=t,r=n.getStage();if(e&&r.setPointersPositions(e),!r._changedPointerPositions.find(e=>e.id===t.pointerId))return;(t.dragStatus===`dragging`||t.dragStatus===`stopped`)&&(_v.justDragged=!0,J._mouseListenClick=!1,J._touchListenClick=!1,J._pointerListenClick=!1,t.dragStatus=`stopped`);let i=t.node.getLayer()||t.node instanceof J.Stage&&t.node;i&&i.batchDraw()})},_endDragAfter(e){_v._dragElements.forEach((t,n)=>{t.dragStatus===`stopped`&&t.node.fire(`dragend`,{type:`dragend`,target:t.node,evt:e},!0),t.dragStatus!==`dragging`&&_v._dragElements.delete(n)})}};J.isBrowser&&(window.addEventListener(`mouseup`,_v._endDragBefore,!0),window.addEventListener(`touchend`,_v._endDragBefore,!0),window.addEventListener(`mousemove`,_v._drag),window.addEventListener(`touchmove`,_v._drag),window.addEventListener(`mouseup`,_v._endDragAfter,!1),window.addEventListener(`touchend`,_v._endDragAfter,!1));var vv=`absoluteOpacity`,yv=`allEventListeners`,bv=`absoluteTransform`,xv=`absoluteScale`,Sv=`canvas`,Cv=`Change`,wv=`children`,Tv=`konva`,Ev=`listening`,Dv=`mouseenter`,Ov=`mouseleave`,kv=`set`,Av=`Shape`,jv=` `,Mv=`stage`,Nv=`transform`,Pv=`Stage`,Fv=`visible`,Iv=[`xChange.konva`,`yChange.konva`,`scaleXChange.konva`,`scaleYChange.konva`,`skewXChange.konva`,`skewYChange.konva`,`rotationChange.konva`,`offsetXChange.konva`,`offsetYChange.konva`,`transformsEnabledChange.konva`].join(jv),Lv=1,Q=class e{constructor(e){this._id=Lv++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===Nv||e===bv)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,t){var n=this._cache.get(e);return(n===void 0||(e===Nv||e===bv)&&n.dirty===!0)&&(n=t.call(this),this._cache.set(e,n)),n}_calculate(e,t,n){if(!this._attachedDepsListeners.get(e)){let n=t.map(e=>e+`Change.konva`).join(jv);this.on(n,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,n)}_getCanvasCache(){return this._cache.get(Sv)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===bv&&this.fire(`absoluteTransformChange`)}clearCache(){return this._cache.delete(Sv),this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var t=e||{},n={};(t.x===void 0||t.y===void 0||t.width===void 0||t.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var r=Math.ceil(t.width||n.width),i=Math.ceil(t.height||n.height),a=t.pixelRatio,o=t.x===void 0?n.x:t.x,s=t.y===void 0?n.y:t.y,c=t.offset||0,l=t.drawBorder||!1,u=t.hitCanvasPixelRatio||1;if(!r||!i){Y.error(`Can not cache the node. Width or height of the node equals 0. Caching is skipped.`);return}r+=c*2,i+=c*2,o-=c,s-=c;var d=new hv({pixelRatio:a,width:r,height:i}),f=new hv({pixelRatio:a,width:0,height:0}),p=new gv({pixelRatio:u,width:r,height:i}),m=d.getContext(),h=p.getContext();return p.isCache=!0,d.isCache=!0,this._cache.delete(Sv),this._filterUpToDate=!1,t.imageSmoothingEnabled===!1&&(d.getContext()._context.imageSmoothingEnabled=!1,f.getContext()._context.imageSmoothingEnabled=!1),m.save(),h.save(),m.translate(-o,-s),h.translate(-o,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(vv),this._clearSelfAndDescendantCache(xv),this.drawScene(d,this),this.drawHit(p,this),this._isUnderCache=!1,m.restore(),h.restore(),l&&(m.save(),m.beginPath(),m.rect(0,0,r,i),m.closePath(),m.setAttr(`strokeStyle`,`red`),m.setAttr(`lineWidth`,5),m.stroke(),m.restore()),this._cache.set(Sv,{scene:d,filter:f,hit:p,x:o,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Sv)}getClientRect(e){throw Error(`abstract "getClientRect" method call`)}_transformedRect(e,t){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],r,i,a,o,s=this.getAbsoluteTransform(t);return n.forEach(function(e){var t=s.point(e);r===void 0&&(r=a=t.x,i=o=t.y),r=Math.min(r,t.x),i=Math.min(i,t.y),a=Math.max(a,t.x),o=Math.max(o,t.y)}),{x:r,y:i,width:a-r,height:o-i}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);let t=this._getCanvasCache();e.translate(t.x,t.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;e.drawImage(n._canvas,0,0,n.width/r,n.height/r),e.restore()}_drawCachedHitCanvas(e){var t=this._getCanvasCache(),n=t.hit;e.save(),e.translate(t.x,t.y),e.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e=this.filters(),t=this._getCanvasCache(),n=t.scene,r=t.filter,i=r.getContext(),a,o,s,c;if(e){if(!this._filterUpToDate){var l=n.pixelRatio;r.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=e.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/l,n.getHeight()/l),o=i.getImageData(0,0,r.getWidth(),r.getHeight()),s=0;s<a;s++){if(c=e[s],typeof c!=`function`){Y.error(`Filter should be type of function, but got `+typeof c+` instead. Please check correct filters`);continue}c.call(this,o),i.putImageData(o,0,0)}}catch(e){Y.error(`Unable to apply filter. `+e.message+` This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.`)}this._filterUpToDate=!0}return r}return n}on(e,t){if(this._cache&&this._cache.delete(yv),arguments.length===3)return this._delegate.apply(this,arguments);var n=e.split(jv),r=n.length,i,a,o,s,c;for(i=0;i<r;i++)a=n[i],o=a.split(`.`),s=o[0],c=o[1]||``,this.eventListeners[s]||(this.eventListeners[s]=[]),this.eventListeners[s].push({name:c,handler:t});return this}off(e,t){var n=(e||``).split(jv),r=n.length,i,a,o,s,c,l;if(this._cache&&this._cache.delete(yv),!e)for(a in this.eventListeners)this._off(a);for(i=0;i<r;i++)if(o=n[i],s=o.split(`.`),c=s[0],l=s[1],c)this.eventListeners[c]&&this._off(c,l,t);else for(a in this.eventListeners)this._off(a,l,t);return this}dispatchEvent(e){var t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this}addEventListener(e,t){return this.on(e,function(e){t.call(this,e.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,t,n){var r=this;this.on(e,function(e){for(var i=e.target.findAncestors(t,!0,r),a=0;a<i.length;a++)e=Y.cloneObject(e),e.currentTarget=i[a],n.call(i[a],e)})}remove(){return this.isDragging()&&this.stopDrag(),_v._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(bv),this._clearSelfAndDescendantCache(vv),this._clearSelfAndDescendantCache(xv),this._clearSelfAndDescendantCache(Mv),this._clearSelfAndDescendantCache(Fv),this._clearSelfAndDescendantCache(Ev)}_remove(){this._clearCaches();var e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this}getAttr(e){var t=`get`+Y._capitalize(e);return Y._isFunction(this[t])?this[t]():this.attrs[e]}getAncestors(){for(var e=this.getParent(),t=[];e;)t.push(e),e=e.getParent();return t}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{var t,n;if(!e)return this;for(t in e)t!==wv&&(n=kv+Y._capitalize(t),Y._isFunction(this[n])?this[n](e[t]):this._setAttr(t,e[t]))}),this}isListening(){return this._getCache(Ev,this._isListening)}_isListening(e){if(!this.listening())return!1;let t=this.getParent();return t&&t!==e&&this!==e?t._isListening(e):!0}isVisible(){return this._getCache(Fv,this._isVisible)}_isVisible(e){if(!this.visible())return!1;let t=this.getParent();return t&&t!==e&&this!==e?t._isVisible(e):!0}shouldDrawHit(e,t=!1){if(e)return this._isVisible(e)&&this._isListening(e);var n=this.getLayer(),r=!1;_v._dragElements.forEach(e=>{e.dragStatus===`dragging`&&(e.node.nodeType===`Stage`||e.node.getLayer()===n)&&(r=!0)});var i=!t&&!J.hitOnDragEnabled&&r;return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e=this.getDepth(),t=this,n=0,r,i,a,o;function s(c){for(r=[],i=c.length,a=0;a<i;a++)o=c[a],n++,o.nodeType!==Av&&(r=r.concat(o.getChildren().slice())),o._id===t._id&&(a=i);r.length>0&&r[0].getDepth()<=e&&s(r)}return t.nodeType!==Pv&&s(t.getStage().getChildren()),n}getDepth(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Nv),this._clearSelfAndDescendantCache(bv)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var e=this.getStage().getPointerPosition();if(!e)return null;var t=this.getAbsoluteTransform().copy();return t.invert(),t.point(e)}getAbsolutePosition(e){let t=!1,n=this.parent;for(;n;){if(n.isCached()){t=!0;break}n=n.parent}t&&!e&&(e=!0);var r=this.getAbsoluteTransform(e).getMatrix(),i=new C_,a=this.offset();return i.m=r.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(e){var t=this._clearTransform();this.attrs.x=t.x,this.attrs.y=t.y,delete t.x,delete t.y,this._clearCache(Nv);var n=this._getAbsoluteTransform().copy();return n.invert(),n.translate(e.x,e.y),e={x:this.attrs.x+n.getTranslation().x,y:this.attrs.y+n.getTranslation().y},this._setTransform(t),this.setPosition({x:e.x,y:e.y}),this._clearCache(Nv),this._clearSelfAndDescendantCache(bv),this}_setTransform(e){for(var t in e)this.attrs[t]=e[t]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var t=e.x,n=e.y,r=this.x(),i=this.y();return t!==void 0&&(r+=t),n!==void 0&&(i+=n),this.setPosition({x:r,y:i}),this}_eachAncestorReverse(e,t){var n=[],r=this.getParent(),i,a;if(!(t&&t._id===this._id)){for(n.unshift(this);r&&(!t||r._id!==t._id);)n.unshift(r),r=r.parent;for(i=n.length,a=0;a<i;a++)e(n[a])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return Y.warn(`Node has no parent. moveToTop function is ignored.`),!1;var e=this.index;return this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0}moveUp(){if(!this.parent)return Y.warn(`Node has no parent. moveUp function is ignored.`),!1;var e=this.index;return e<this.parent.getChildren().length-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return Y.warn(`Node has no parent. moveDown function is ignored.`),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Y.warn(`Node has no parent. moveToBottom function is ignored.`),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return Y.warn(`Node has no parent. zIndex parameter is ignored.`),this;(e<0||e>=this.parent.children.length)&&Y.warn(`Unexpected value `+e+` for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to `+(this.parent.children.length-1)+`.`);var t=this.index;return this.parent.children.splice(t,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(vv,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),t=this.getParent();return t&&!t._isUnderCache&&(e*=t.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e={},t=this.getAttrs(),n,r,i,a,o;for(n in e.attrs={},t)r=t[n],o=Y.isObject(r)&&!Y._isPlainObject(r)&&!Y._isArray(r),!o&&(i=typeof this[n]==`function`&&this[n],delete t[n],a=i?i.call(this):null,t[n]=r,a!==r&&(e.attrs[n]=r));return e.className=this.getClassName(),Y._prepareToStringify(e)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,t,n){var r=[];t&&this._isMatch(e)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(e)&&r.push(i),i=i.parent}return r}isAncestorOf(e){return!1}findAncestor(e,t,n){return this.findAncestors(e,t,n)[0]}_isMatch(e){if(!e)return!1;if(typeof e==`function`)return e(this);var t=e.replace(/ /g,``).split(`,`),n=t.length,r,i;for(r=0;r<n;r++)if(i=t[r],Y.isValidSelector(i)||(Y.warn(`Selector "`+i+`" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".`),Y.warn(`If you have a custom shape with such className, please change it to start with upper letter like "Triangle".`),Y.warn(`Konva is awesome, right?`)),i.charAt(0)===`#`){if(this.id()===i.slice(1))return!0}else if(i.charAt(0)===`.`){if(this.hasName(i.slice(1)))return!0}else if(this.className===i||this.nodeType===i)return!0;return!1}getLayer(){var e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(Mv,this._getStage)}_getStage(){var e=this.getParent();if(e)return e.getStage()}fire(e,t={},n){return t.target=t.target||this,n?this._fireAndBubble(e,t):this._fire(e,t),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(bv,this._getAbsoluteTransform)}_getAbsoluteTransform(e){var t;if(e)return t=new C_,this._eachAncestorReverse(function(e){var n=e.transformsEnabled();n===`all`?t.multiply(e.getTransform()):n===`position`&&t.translate(e.x()-e.offsetX(),e.y()-e.offsetY())},e),t;t=this._cache.get(bv)||new C_,this.parent?this.parent.getAbsoluteTransform().copyInto(t):t.reset();var n=this.transformsEnabled();if(n===`all`)t.multiply(this.getTransform());else if(n===`position`){let e=this.attrs.x||0,n=this.attrs.y||0,r=this.attrs.offsetX||0,i=this.attrs.offsetY||0;t.translate(e-r,n-i)}return t.dirty=!1,t}getAbsoluteScale(e){for(var t=this;t;)t._isUnderCache&&(e=t),t=t.getParent();let n=this.getAbsoluteTransform(e).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Nv,this._getTransform)}_getTransform(){var e=this._cache.get(Nv)||new C_;e.reset();var t=this.x(),n=this.y(),r=J.getAngle(this.rotation()),i=this.attrs.scaleX??1,a=this.attrs.scaleY??1,o=this.attrs.skewX||0,s=this.attrs.skewY||0,c=this.attrs.offsetX||0,l=this.attrs.offsetY||0;return(t!==0||n!==0)&&e.translate(t,n),r!==0&&e.rotate(r),(o!==0||s!==0)&&e.skew(o,s),(i!==1||a!==1)&&e.scale(i,a),(c!==0||l!==0)&&e.translate(-1*c,-1*l),e.dirty=!1,e}clone(e){var t=Y.cloneObject(this.attrs),n,r,i,a,o;for(n in e)t[n]=e[n];var s=new this.constructor(t);for(n in this.eventListeners)for(r=this.eventListeners[n],i=r.length,a=0;a<i;a++)o=r[a],o.name.indexOf(Tv)<0&&(s.eventListeners[n]||(s.eventListeners[n]=[]),s.eventListeners[n].push(o));return s}_toKonvaCanvas(e){e||={};var t=this.getClientRect(),n=this.getStage(),r=e.x===void 0?t.x:e.x,i=e.y===void 0?t.y:e.y,a=e.pixelRatio||1,o=new hv({width:e.width||t.width||(n?n.width():0),height:e.height||t.height||(n?n.height():0),pixelRatio:a}),s=o.getContext();return s.save(),(r||i)&&s.translate(-1*r,-1*i),this.drawScene(o),s.restore(),o}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e||={};var t=e.mimeType||null,n=e.quality||null,r=this._toKonvaCanvas(e).toDataURL(t,n);return e.callback&&e.callback(r),r}toImage(e){if(!e||!e.callback)throw`callback required for toImage method config argument`;var t=e.callback;delete e.callback,Y._urlToImage(this.toDataURL(e),function(e){t(e)})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance===void 0?this.parent?this.parent.getDragDistance():J.dragDistance:this.attrs.dragDistance}_off(e,t,n){var r=this.eventListeners[e],i,a,o;for(i=0;i<r.length;i++)if(a=r[i].name,o=r[i].handler,(a!==`konva`||t===`konva`)&&(!t||a===t)&&(!n||n===o)){if(r.splice(i,1),r.length===0){delete this.eventListeners[e];break}i--}}_fireChangeEvent(e,t,n){this._fire(e+Cv,{oldVal:t,newVal:n})}addName(e){if(!this.hasName(e)){var t=this.name(),n=t?t+` `+e:e;this.name(n)}return this}hasName(e){if(!e)return!1;let t=this.name();return t?(t||``).split(/\s/g).indexOf(e)!==-1:!1}removeName(e){var t=(this.name()||``).split(/\s/g),n=t.indexOf(e);return n!==-1&&(t.splice(n,1),this.name(t.join(` `))),this}setAttr(e,t){var n=this[kv+Y._capitalize(e)];return Y._isFunction(n)?n.call(this,t):this._setAttr(e,t),this}_requestDraw(){J.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(e,t){var n=this.attrs[e];n===t&&!Y.isObject(t)||(t==null?delete this.attrs[e]:this.attrs[e]=t,this._shouldFireChangeEvents&&this._fireChangeEvent(e,n,t),this._requestDraw())}_setComponentAttr(e,t,n){var r;n!==void 0&&(r=this.attrs[e],r||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=n,this._fireChangeEvent(e,r,n))}_fireAndBubble(e,t,n){if(t&&this.nodeType===Av&&(t.target=this),!((e===Dv||e===Ov)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType===`Stage`&&!n))){this._fire(e,t);var r=(e===Dv||e===Ov)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(t&&!t.cancelBubble||!t)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,e,t,n):this._fireAndBubble.call(this.parent,e,t))}}_getProtoListeners(e){let t=this._cache.get(yv);if(!t){t={};let e=Object.getPrototypeOf(this);for(;e;){if(!e.eventListeners){e=Object.getPrototypeOf(e);continue}for(var n in e.eventListeners){let r=e.eventListeners[n],i=t[n]||[];t[n]=r.concat(i)}e=Object.getPrototypeOf(e)}this._cache.set(yv,t)}return t[e]}_fire(e,t){t||={},t.currentTarget=this,t.type=e;let n=this._getProtoListeners(e);if(n)for(var r=0;r<n.length;r++)n[r].handler.call(this,t);let i=this.eventListeners[e];if(i)for(var r=0;r<i.length;r++)i[r].handler.call(this,t)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){var t=e?e.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition(),i=n._getPointerById(t)||n._changedPointerPositions[0]||r;_v._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-r.x,y:i.y-r.y},dragStatus:`ready`,pointerId:t})}startDrag(e,t=!0){_v._dragElements.has(this._id)||this._createDragElement(e);let n=_v._dragElements.get(this._id);n.dragStatus=`dragging`,this.fire(`dragstart`,{type:`dragstart`,target:this,evt:e&&e.evt},t)}_setDragPosition(e,t){let n=this.getStage()._getPointerById(t.pointerId);if(n){var r={x:n.x-t.offset.x,y:n.y-t.offset.y},i=this.dragBoundFunc();if(i!==void 0){let t=i.call(this,r,e);t?r=t:Y.warn(`dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.`)}(!this._lastPos||this._lastPos.x!==r.x||this._lastPos.y!==r.y)&&(this.setAbsolutePosition(r),this._requestDraw()),this._lastPos=r}}stopDrag(e){let t=_v._dragElements.get(this._id);t&&(t.dragStatus=`stopped`),_v._endDragBefore(e),_v._endDragAfter(e)}setDraggable(e){this._setAttr(`draggable`,e),this._dragChange()}isDragging(){let e=_v._dragElements.get(this._id);return e?e.dragStatus===`dragging`:!1}_listenDrag(){this._dragCleanup(),this.on(`mousedown.konva touchstart.konva`,function(e){if((e.evt.button===void 0||J.dragButtons.indexOf(e.evt.button)>=0)&&!this.isDragging()){var t=!1;_v._dragElements.forEach(e=>{this.isAncestorOf(e.node)&&(t=!0)}),t||this._createDragElement(e)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;let e=_v._dragElements.get(this._id),t=e&&e.dragStatus===`dragging`,n=e&&e.dragStatus===`ready`;t?this.stopDrag():n&&_v._dragElements.delete(this._id)}}_dragCleanup(){this.off(`mousedown.konva`),this.off(`touchstart.konva`)}isClientRectOnScreen(e={x:0,y:0}){let t=this.getStage();if(!t)return!1;let n={x:-e.x,y:-e.y,width:t.width()+e.x,height:t.height()+e.y};return Y.haveIntersection(n,this.getClientRect())}static create(e,t){return Y._isString(e)&&(e=JSON.parse(e)),this._createNode(e,t)}static _createNode(t,n){var r=e.prototype.getClassName.call(t),i=t.children,a,o,s;n&&(t.attrs.container=n),J[r]||(Y.warn(`Can not find a node with class name "`+r+`". Fallback to "Shape".`),r=`Shape`);let c=J[r];if(a=new c(t.attrs),i)for(o=i.length,s=0;s<o;s++)a.add(e._createNode(i[s]));return a}};Q.prototype.nodeType=`Node`,Q.prototype._attrsAffectingSize=[],Q.prototype.eventListeners={},Q.prototype.on.call(Q.prototype,Iv,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Nv),this._clearSelfAndDescendantCache(bv)}),Q.prototype.on.call(Q.prototype,`visibleChange.konva`,function(){this._clearSelfAndDescendantCache(Fv)}),Q.prototype.on.call(Q.prototype,`listeningChange.konva`,function(){this._clearSelfAndDescendantCache(Ev)}),Q.prototype.on.call(Q.prototype,`opacityChange.konva`,function(){this._clearSelfAndDescendantCache(vv)});var Rv=Z.addGetterSetter;Rv(Q,`zIndex`),Rv(Q,`absolutePosition`),Rv(Q,`position`),Rv(Q,`x`,0,X()),Rv(Q,`y`,0,X()),Rv(Q,`globalCompositeOperation`,`source-over`,W_()),Rv(Q,`opacity`,1,X()),Rv(Q,`name`,``,W_()),Rv(Q,`id`,``,W_()),Rv(Q,`rotation`,0,X()),Z.addComponentsGetterSetter(Q,`scale`,[`x`,`y`]),Rv(Q,`scaleX`,1,X()),Rv(Q,`scaleY`,1,X()),Z.addComponentsGetterSetter(Q,`skew`,[`x`,`y`]),Rv(Q,`skewX`,0,X()),Rv(Q,`skewY`,0,X()),Z.addComponentsGetterSetter(Q,`offset`,[`x`,`y`]),Rv(Q,`offsetX`,0,X()),Rv(Q,`offsetY`,0,X()),Rv(Q,`dragDistance`,null,X()),Rv(Q,`width`,0,X()),Rv(Q,`height`,0,X()),Rv(Q,`listening`,!0,q_()),Rv(Q,`preventDefault`,!0,q_()),Rv(Q,`filters`,null,function(e){return this._filterUpToDate=!1,e}),Rv(Q,`visible`,!0,q_()),Rv(Q,`transformsEnabled`,`all`,W_()),Rv(Q,`size`),Rv(Q,`dragBoundFunc`),Rv(Q,`draggable`,!1,q_()),Z.backCompat(Q,{rotateDeg:`rotate`,setRotationDeg:`setRotation`,getRotationDeg:`getRotation`});var zv=class extends Q{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];let t=this.children||[];var n=[];return t.forEach(function(t){e(t)&&n.push(t)}),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}var n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire(`add`,{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){var t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){var n=[];return this._descendants(r=>{let i=r._isMatch(e);return i&&n.push(r),!!(i&&t)}),n}_descendants(e){let t=!1,n=this.getChildren();for(let r of n)if(t=e(r),t||r.hasChildren()&&(t=r._descendants(e),t))return!0;return!1}toObject(){var e=Q.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(t=>{e.children.push(t.toObject())}),e}isAncestorOf(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){var t=Q.prototype.clone.call(this,e);return this.getChildren().forEach(function(e){t.add(e.clone())}),t}getAllIntersections(e){var t=[];return this.find(`Shape`).forEach(function(n){n.isVisible()&&n.intersects(e)&&t.push(n)}),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),!this.isCached()&&((t=this.children)==null||t.forEach(function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)==null||e.forEach(function(e,t){e.index=t}),this._requestDraw()}drawScene(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas(),i=r&&r.getContext(),a=this._getCanvasCache(),o=a&&a.scene,s=r&&r.isCache;if(!this.isVisible()&&!s)return this;if(o){i.save();var c=this.getAbsoluteTransform(t).getMatrix();i.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedSceneCanvas(i),i.restore()}else this._drawChildren(`drawScene`,r,t);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;var n=this.getLayer(),r=e||n&&n.hitCanvas,i=r&&r.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();var o=this.getAbsoluteTransform(t).getMatrix();i.transform(o[0],o[1],o[2],o[3],o[4],o[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren(`drawHit`,r,t);return this}_drawChildren(e,t,n){var r,i=t&&t.getContext(),a=this.clipWidth(),o=this.clipHeight(),s=this.clipFunc(),c=a&&o||s;let l=n===this;if(c){i.save();var u=this.getAbsoluteTransform(n),d=u.getMatrix();if(i.transform(d[0],d[1],d[2],d[3],d[4],d[5]),i.beginPath(),s)s.call(this,i,this);else{var f=this.clipX(),p=this.clipY();i.rect(f,p,a,o)}i.clip(),d=u.copy().invert().getMatrix(),i.transform(d[0],d[1],d[2],d[3],d[4],d[5])}var m=!l&&this.globalCompositeOperation()!==`source-over`&&e===`drawScene`;m&&(i.save(),i._applyGlobalCompositeOperation(this)),(r=this.children)==null||r.forEach(function(r){r[e](t,n)}),m&&i.restore(),c&&i.restore()}getClientRect(e){var t;e||={};var n=e.skipTransform,r=e.relativeTo,i,a,o,s,c={x:1/0,y:1/0,width:0,height:0},l=this;(t=this.children)==null||t.forEach(function(t){if(t.visible()){var n=t.getClientRect({relativeTo:l,skipShadow:e.skipShadow,skipStroke:e.skipStroke});n.width===0&&n.height===0||(i===void 0?(i=n.x,a=n.y,o=n.x+n.width,s=n.y+n.height):(i=Math.min(i,n.x),a=Math.min(a,n.y),o=Math.max(o,n.x+n.width),s=Math.max(s,n.y+n.height)))}});for(var u=this.find(`Shape`),d=!1,f=0;f<u.length;f++)if(u[f]._isVisible(this)){d=!0;break}return c=d&&i!==void 0?{x:i,y:a,width:o-i,height:s-a}:{x:0,y:0,width:0,height:0},n?c:this._transformedRect(c,r)}};Z.addComponentsGetterSetter(zv,`clip`,[`x`,`y`,`width`,`height`]),Z.addGetterSetter(zv,`clipX`,void 0,X()),Z.addGetterSetter(zv,`clipY`,void 0,X()),Z.addGetterSetter(zv,`clipWidth`,void 0,X()),Z.addGetterSetter(zv,`clipHeight`,void 0,X()),Z.addGetterSetter(zv,`clipFunc`);var Bv=new Map,Vv=J._global.PointerEvent!==void 0;function Hv(e){return Bv.get(e)}function Uv(e){return{evt:e,pointerId:e.pointerId}}function Wv(e,t){return Bv.get(e)===t}function Gv(e,t){Kv(e),t.getStage()&&(Bv.set(e,t),Vv&&t._fire(`gotpointercapture`,Uv(new PointerEvent(`gotpointercapture`))))}function Kv(e,t){let n=Bv.get(e);if(!n)return;let r=n.getStage();r&&r.content,Bv.delete(e),Vv&&n._fire(`lostpointercapture`,Uv(new PointerEvent(`lostpointercapture`)))}var qv=`Stage`,Jv=`string`,Yv=`px`,Xv=`mouseout`,Zv=`mouseleave`,Qv=`mouseover`,$v=`mouseenter`,ey=`mousemove`,ty=`mousedown`,ny=`mouseup`,ry=`pointermove`,iy=`pointerdown`,ay=`pointerup`,oy=`pointercancel`,sy=`lostpointercapture`,cy=`pointerout`,ly=`pointerleave`,uy=`pointerover`,dy=`pointerenter`,fy=`contextmenu`,py=`touchstart`,my=`touchend`,hy=`touchmove`,gy=`touchcancel`,_y=`wheel`,vy=5,yy=[[$v,`_pointerenter`],[ty,`_pointerdown`],[ey,`_pointermove`],[ny,`_pointerup`],[Zv,`_pointerleave`],[py,`_pointerdown`],[hy,`_pointermove`],[my,`_pointerup`],[gy,`_pointercancel`],[Qv,`_pointerover`],[_y,`_wheel`],[fy,`_contextmenu`],[iy,`_pointerdown`],[ry,`_pointermove`],[ay,`_pointerup`],[oy,`_pointercancel`],[sy,`_lostpointercapture`]],by={mouse:{[cy]:Xv,[ly]:Zv,[uy]:Qv,[dy]:$v,[ry]:ey,[iy]:ty,[ay]:ny,[oy]:`mousecancel`,pointerclick:`click`,pointerdblclick:`dblclick`},touch:{[cy]:`touchout`,[ly]:`touchleave`,[uy]:`touchover`,[dy]:`touchenter`,[ry]:hy,[iy]:py,[ay]:my,[oy]:gy,pointerclick:`tap`,pointerdblclick:`dbltap`},pointer:{[cy]:cy,[ly]:ly,[uy]:uy,[dy]:dy,[ry]:ry,[iy]:iy,[ay]:ay,[oy]:oy,pointerclick:`pointerclick`,pointerdblclick:`pointerdblclick`}},xy=e=>e.indexOf(`pointer`)>=0?`pointer`:e.indexOf(`touch`)>=0?`touch`:`mouse`,Sy=e=>{let t=xy(e);if(t===`pointer`)return J.pointerEventsEnabled&&by.pointer;if(t===`touch`)return by.touch;if(t===`mouse`)return by.mouse};function Cy(e={}){return(e.clipFunc||e.clipWidth||e.clipHeight)&&Y.warn(`Stage does not support clipping. Please use clip for Layers or Groups.`),e}var wy=`Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);`,Ty=[],Ey=class extends zv{constructor(e){super(Cy(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),Ty.push(this),this.on(`widthChange.konva heightChange.konva`,this._resizeDOM),this.on(`visibleChange.konva`,this._checkVisibility),this.on(`clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva`,()=>{Cy(this.attrs)}),this._checkVisibility()}_validateAdd(e){let t=e.getType()===`Layer`,n=e.getType()===`FastLayer`;t||n||Y.throw(`You may only add layers to the stage.`)}_checkVisibility(){if(!this.content)return;let e=this.visible()?``:`none`;this.content.style.display=e}setContainer(e){if(typeof e===Jv){if(e.charAt(0)===`.`){var t=e.slice(1);e=document.getElementsByClassName(t)[0]}else{var n=e.charAt(0)===`#`?e.slice(1):e;e=document.getElementById(n)}if(!e)throw`Can not find container in document with id `+n}return this._setAttr(`container`,e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var e=this.children,t=e.length,n;for(n=0;n<t;n++)e[n].clear();return this}clone(e){return e||={},e.container=typeof document<`u`&&document.createElement(`div`),zv.prototype.clone.call(this,e)}destroy(){super.destroy();var e=this.content;e&&Y._isInDocument(e)&&this.container().removeChild(e);var t=Ty.indexOf(this);return t>-1&&Ty.splice(t,1),this}getPointerPosition(){let e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(Y.warn(wy),null)}_getPointerById(e){return this._pointerPositions.find(t=>t.id===e)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){e||={},e.x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();var t=new hv({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),n=t.getContext()._context,r=this.children;return(e.x||e.y)&&n.translate(-1*e.x,-1*e.y),r.forEach(function(t){if(t.isVisible()){var r=t._toKonvaCanvas(e);n.drawImage(r._canvas,e.x,e.y,r.getWidth()/r.getPixelRatio(),r.getHeight()/r.getPixelRatio())}}),t}getIntersection(e){if(!e)return null;var t=this.children,n=t.length-1,r;for(r=n;r>=0;r--){let n=t[r].getIntersection(e);if(n)return n}return null}_resizeDOM(){var e=this.width(),t=this.height();this.content&&(this.content.style.width=e+Yv,this.content.style.height=t+Yv),this.bufferCanvas.setSize(e,t),this.bufferHitCanvas.setSize(e,t),this.children.forEach(n=>{n.setSize({width:e,height:t}),n.draw()})}add(e,...t){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}super.add(e);var r=this.children.length;return r>vy&&Y.warn(`The stage has `+r+` layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group.`),e.setSize({width:this.width(),height:this.height()}),e.draw(),J.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return Wv(e,this)}setPointerCapture(e){Gv(e,this)}releaseCapture(e){Kv(e,this)}getLayers(){return this.children}_bindContentEvents(){J.isBrowser&&yy.forEach(([e,t])=>{this.content.addEventListener(e,e=>{this[t](e)})})}_pointerenter(e){this.setPointersPositions(e);let t=Sy(e.type);this._fire(t.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);let t=Sy(e.type);this._fire(t.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let t=this[e+`targetShape`];return t&&!t.getStage()&&(t=null),t}_pointerleave(e){let t=Sy(e.type),n=xy(e.type);if(t){this.setPointersPositions(e);var r=this._getTargetShape(n),i=!_v.isDragging||J.hitOnDragEnabled;r&&i?(r._fireAndBubble(t.pointerout,{evt:e}),r._fireAndBubble(t.pointerleave,{evt:e}),this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this[n+`targetShape`]=null):i&&(this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(t.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(e){let t=Sy(e.type),n=xy(e.type);if(t){this.setPointersPositions(e);var r=!1;this._changedPointerPositions.forEach(i=>{var a=this.getIntersection(i);if(_v.justDragged=!1,J[`_`+n+`ListenClick`]=!0,!(a&&a.isListening()))return;J.capturePointerEventsEnabled&&a.setPointerCapture(i.id),this[n+`ClickStartShape`]=a,a._fireAndBubble(t.pointerdown,{evt:e,pointerId:i.id}),r=!0;let o=e.type.indexOf(`touch`)>=0;a.preventDefault()&&e.cancelable&&o&&e.preventDefault()}),r||this._fire(t.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(e){let t=Sy(e.type),n=xy(e.type);if(!t||(_v.isDragging&&_v.node.preventDefault()&&e.cancelable&&e.preventDefault(),this.setPointersPositions(e),!(!_v.isDragging||J.hitOnDragEnabled)))return;var r={};let i=!1;var a=this._getTargetShape(n);this._changedPointerPositions.forEach(o=>{let s=Hv(o.id)||this.getIntersection(o),c=o.id,l={evt:e,pointerId:c};var u=a!==s;if(u&&a&&(a._fireAndBubble(t.pointerout,Object.assign({},l),s),a._fireAndBubble(t.pointerleave,Object.assign({},l),s)),s){if(r[s._id])return;r[s._id]=!0}s&&s.isListening()?(i=!0,u&&(s._fireAndBubble(t.pointerover,Object.assign({},l),a),s._fireAndBubble(t.pointerenter,Object.assign({},l),a),this[n+`targetShape`]=s),s._fireAndBubble(t.pointermove,Object.assign({},l))):a&&(this._fire(t.pointerover,{evt:e,target:this,currentTarget:this,pointerId:c}),this[n+`targetShape`]=null)}),i||this._fire(t.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){let t=Sy(e.type),n=xy(e.type);if(!t)return;this.setPointersPositions(e);let r=this[n+`ClickStartShape`],i=this[n+`ClickEndShape`];var a={};let o=!1;this._changedPointerPositions.forEach(s=>{let c=Hv(s.id)||this.getIntersection(s);if(c){if(c.releaseCapture(s.id),a[c._id])return;a[c._id]=!0}let l=s.id,u={evt:e,pointerId:l},d=!1;J[`_`+n+`InDblClickWindow`]&&J[`_`+n+`InDblClickWindowId`]===l?(d=!0,clearTimeout(this[n+`DblTimeout`])):_v.justDragged||(J[`_`+n+`InDblClickWindow`]=!0,J[`_`+n+`InDblClickWindowId`]=l,clearTimeout(this[n+`DblTimeout`])),this[n+`DblTimeout`]=setTimeout(function(){J[`_`+n+`InDblClickWindow`]=!1},J.dblClickWindow),c&&c.isListening()?(o=!0,this[n+`ClickEndShape`]=c,c._fireAndBubble(t.pointerup,Object.assign({},u)),J[`_`+n+`ListenClick`]&&r&&r===c&&(c._fireAndBubble(t.pointerclick,Object.assign({},u)),d&&i&&i===c&&c._fireAndBubble(t.pointerdblclick,Object.assign({},u)))):(this[n+`ClickEndShape`]=null,J[`_`+n+`ListenClick`]&&this._fire(t.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:l}),d&&this._fire(t.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:l}))}),o||this._fire(t.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),J[`_`+n+`ListenClick`]=!1,e.cancelable&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(fy,{evt:e}):this._fire(fy,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(_y,{evt:e}):this._fire(_y,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);let t=Hv(e.pointerId)||this.getIntersection(this.getPointerPosition());t&&t._fireAndBubble(ay,Uv(e)),Kv(e.pointerId)}_lostpointercapture(e){Kv(e.pointerId)}setPointersPositions(e){var t=this._getContentPosition(),n=null,r=null;e||=window.event,e.touches===void 0?(n=(e.clientX-t.left)/t.scaleX,r=(e.clientY-t.top)/t.scaleY,this.pointerPos={x:n,y:r},this._pointerPositions=[{x:n,y:r,id:Y._getFirstPointerId(e)}],this._changedPointerPositions=[{x:n,y:r,id:Y._getFirstPointerId(e)}]):(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,e=>{this._pointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}),Array.prototype.forEach.call(e.changedTouches||e.touches,e=>{this._changedPointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}))}_setPointerPosition(e){Y.warn(`Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.`),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new hv({width:this.width(),height:this.height()}),this.bufferHitCanvas=new gv({pixelRatio:1,width:this.width(),height:this.height()}),J.isBrowser){var e=this.container();if(!e)throw`Stage has no container. A container is required.`;e.innerHTML=``,this.content=document.createElement(`div`),this.content.style.position=`relative`,this.content.style.userSelect=`none`,this.content.className=`konvajs-content`,this.content.setAttribute(`role`,`presentation`),e.appendChild(this.content),this._resizeDOM()}}cache(){return Y.warn(`Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.`),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(e){e.batchDraw()}),this}};Ey.prototype.nodeType=qv,S_(Ey),Z.addGetterSetter(Ey,`container`);var Dy=`hasShadow`,Oy=`shadowRGBA`,ky=`patternImage`,Ay=`linearGradient`,jy=`radialGradient`,My;function Ny(){return My||(My=Y.createCanvasElement().getContext(`2d`),My)}var Py={};function Fy(e){e.fill()}function Iy(e){e.stroke()}function Ly(e){e.fill()}function Ry(e){e.stroke()}function zy(){this._clearCache(Dy)}function By(){this._clearCache(Oy)}function Vy(){this._clearCache(ky)}function Hy(){this._clearCache(Ay)}function Uy(){this._clearCache(jy)}var $=class extends Q{constructor(e){super(e);let t;for(;t=Y.getRandomColor(),!(t&&!(t in Py)););this.colorKey=t,Py[t]=this}getContext(){return Y.warn(`shape.getContext() method is deprecated. Please do not use it.`),this.getLayer().getContext()}getCanvas(){return Y.warn(`shape.getCanvas() method is deprecated. Please do not use it.`),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(Dy,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(ky,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){let e=Ny().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||`repeat`);if(e&&e.setTransform){let t=new C_;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(J.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());let n=t.getMatrix();e.setTransform({a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]})}return e}}_getLinearGradient(){return this._getCache(Ay,this.__getLinearGradient)}__getLinearGradient(){var e=this.fillLinearGradientColorStops();if(e){for(var t=Ny(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=t.createLinearGradient(n.x,n.y,r.x,r.y),a=0;a<e.length;a+=2)i.addColorStop(e[a],e[a+1]);return i}}_getRadialGradient(){return this._getCache(jy,this.__getRadialGradient)}__getRadialGradient(){var e=this.fillRadialGradientColorStops();if(e){for(var t=Ny(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=t.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),a=0;a<e.length;a+=2)i.addColorStop(e[a],e[a+1]);return i}}getShadowRGBA(){return this._getCache(Oy,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var e=Y.colorToRGBA(this.shadowColor());return`rgba(`+e.r+`,`+e.g+`,`+e.b+`,`+e.a*(this.shadowOpacity()||1)+`)`}}hasFill(){return this._calculate(`hasFill`,[`fillEnabled`,`fill`,`fillPatternImage`,`fillLinearGradientColorStops`,`fillRadialGradientColorStops`],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate(`hasStroke`,[`strokeEnabled`,`strokeWidth`,`stroke`,`strokeLinearGradientColorStops`],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){let e=this.hitStrokeWidth();return e===`auto`?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){var t=this.getStage().bufferHitCanvas,n;return t.getContext().clear(),this.drawHit(t,null,!0),n=t.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data,n[3]>0}destroy(){return Q.prototype.destroy.call(this),delete Py[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){if(!this.getStage()||!(this.attrs.perfectDrawEnabled??!0))return!1;let t=e||this.hasFill(),n=this.hasStroke(),r=this.getAbsoluteOpacity()!==1;if(t&&n&&r)return!0;let i=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(t&&n&&i&&a)}setStrokeHitEnabled(e){Y.warn(`strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead.`),e?this.hitStrokeWidth(`auto`):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){let t=e.skipTransform,n=e.relativeTo,r=this.getSelfRect(),i=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,a=r.width+i,o=r.height+i,s=!e.skipShadow&&this.hasShadow(),c=s?this.shadowOffsetX():0,l=s?this.shadowOffsetY():0,u=a+Math.abs(c),d=o+Math.abs(l),f=s&&this.shadowBlur()||0,p=u+f*2,m=d+f*2,h=0;Math.round(i/2)!==i/2&&(h=1);let g={width:p+h,height:m+h,x:-Math.round(i/2+f)+Math.min(c,0)+r.x,y:-Math.round(i/2+f)+Math.min(l,0)+r.y};return t?g:this._transformedRect(g,n)}drawScene(e,t){var n=this.getLayer(),r=e||n.getCanvas(),i=r.getContext(),a=this._getCanvasCache(),o=this.getSceneFunc(),s=this.hasShadow(),c,l,u,d=r.isCache,f=t===this;if(!this.isVisible()&&!f)return this;if(a){i.save();var p=this.getAbsoluteTransform(t).getMatrix();return i.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedSceneCanvas(i),i.restore(),this}if(!o)return this;if(i.save(),this._useBufferCanvas()&&!d){c=this.getStage(),l=c.bufferCanvas,u=l.getContext(),u.clear(),u.save(),u._applyLineJoin(this);var m=this.getAbsoluteTransform(t).getMatrix();u.transform(m[0],m[1],m[2],m[3],m[4],m[5]),o.call(this,u,this),u.restore();var h=l.pixelRatio;s&&i._applyShadow(this),i._applyOpacity(this),i._applyGlobalCompositeOperation(this),i.drawImage(l._canvas,0,0,l.width/h,l.height/h)}else{if(i._applyLineJoin(this),!f){var m=this.getAbsoluteTransform(t).getMatrix();i.transform(m[0],m[1],m[2],m[3],m[4],m[5]),i._applyOpacity(this),i._applyGlobalCompositeOperation(this)}s&&i._applyShadow(this),o.call(this,i,this)}return i.restore(),this}drawHit(e,t,n=!1){if(!this.shouldDrawHit(t,n))return this;var r=this.getLayer(),i=e||r.hitCanvas,a=i&&i.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._getCanvasCache(),c=s&&s.hit;if(this.colorKey||Y.warn(`Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()`),c){a.save();var l=this.getAbsoluteTransform(t).getMatrix();return a.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!o)return this;if(a.save(),a._applyLineJoin(this),this!==t){var u=this.getAbsoluteTransform(t).getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return o.call(this,a,this),a.restore(),this}drawHitFromCache(e=0){var t=this._getCanvasCache(),n=this._getCachedSceneCanvas(),r=t.hit,i=r.getContext(),a=r.getWidth(),o=r.getHeight(),s,c,l,u,d,f;i.clear(),i.drawImage(n._canvas,0,0,a,o);try{for(s=i.getImageData(0,0,a,o),c=s.data,l=c.length,u=Y._hexToRgb(this.colorKey),d=0;d<l;d+=4)f=c[d+3],f>e?(c[d]=u.r,c[d+1]=u.g,c[d+2]=u.b,c[d+3]=255):c[d+3]=0;i.putImageData(s,0,0)}catch(e){Y.error(`Unable to draw hit graph from cached scene canvas. `+e.message)}return this}hasPointerCapture(e){return Wv(e,this)}setPointerCapture(e){Gv(e,this)}releaseCapture(e){Kv(e,this)}};$.prototype._fillFunc=Fy,$.prototype._strokeFunc=Iy,$.prototype._fillFuncHit=Ly,$.prototype._strokeFuncHit=Ry,$.prototype._centroid=!1,$.prototype.nodeType=`Shape`,S_($),$.prototype.eventListeners={},$.prototype.on.call($.prototype,`shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva`,zy),$.prototype.on.call($.prototype,`shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva`,By),$.prototype.on.call($.prototype,`fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva`,Vy),$.prototype.on.call($.prototype,`fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva`,Hy),$.prototype.on.call($.prototype,`fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva`,Uy),Z.addGetterSetter($,`stroke`,void 0,G_()),Z.addGetterSetter($,`strokeWidth`,2,X()),Z.addGetterSetter($,`fillAfterStrokeEnabled`,!1),Z.addGetterSetter($,`hitStrokeWidth`,`auto`,U_()),Z.addGetterSetter($,`strokeHitEnabled`,!0,q_()),Z.addGetterSetter($,`perfectDrawEnabled`,!0,q_()),Z.addGetterSetter($,`shadowForStrokeEnabled`,!0,q_()),Z.addGetterSetter($,`lineJoin`),Z.addGetterSetter($,`lineCap`),Z.addGetterSetter($,`sceneFunc`),Z.addGetterSetter($,`hitFunc`),Z.addGetterSetter($,`dash`),Z.addGetterSetter($,`dashOffset`,0,X()),Z.addGetterSetter($,`shadowColor`,void 0,W_()),Z.addGetterSetter($,`shadowBlur`,0,X()),Z.addGetterSetter($,`shadowOpacity`,1,X()),Z.addComponentsGetterSetter($,`shadowOffset`,[`x`,`y`]),Z.addGetterSetter($,`shadowOffsetX`,0,X()),Z.addGetterSetter($,`shadowOffsetY`,0,X()),Z.addGetterSetter($,`fillPatternImage`),Z.addGetterSetter($,`fill`,void 0,G_()),Z.addGetterSetter($,`fillPatternX`,0,X()),Z.addGetterSetter($,`fillPatternY`,0,X()),Z.addGetterSetter($,`fillLinearGradientColorStops`),Z.addGetterSetter($,`strokeLinearGradientColorStops`),Z.addGetterSetter($,`fillRadialGradientStartRadius`,0),Z.addGetterSetter($,`fillRadialGradientEndRadius`,0),Z.addGetterSetter($,`fillRadialGradientColorStops`),Z.addGetterSetter($,`fillPatternRepeat`,`repeat`),Z.addGetterSetter($,`fillEnabled`,!0),Z.addGetterSetter($,`strokeEnabled`,!0),Z.addGetterSetter($,`shadowEnabled`,!0),Z.addGetterSetter($,`dashEnabled`,!0),Z.addGetterSetter($,`strokeScaleEnabled`,!0),Z.addGetterSetter($,`fillPriority`,`color`),Z.addComponentsGetterSetter($,`fillPatternOffset`,[`x`,`y`]),Z.addGetterSetter($,`fillPatternOffsetX`,0,X()),Z.addGetterSetter($,`fillPatternOffsetY`,0,X()),Z.addComponentsGetterSetter($,`fillPatternScale`,[`x`,`y`]),Z.addGetterSetter($,`fillPatternScaleX`,1,X()),Z.addGetterSetter($,`fillPatternScaleY`,1,X()),Z.addComponentsGetterSetter($,`fillLinearGradientStartPoint`,[`x`,`y`]),Z.addComponentsGetterSetter($,`strokeLinearGradientStartPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillLinearGradientStartPointX`,0),Z.addGetterSetter($,`strokeLinearGradientStartPointX`,0),Z.addGetterSetter($,`fillLinearGradientStartPointY`,0),Z.addGetterSetter($,`strokeLinearGradientStartPointY`,0),Z.addComponentsGetterSetter($,`fillLinearGradientEndPoint`,[`x`,`y`]),Z.addComponentsGetterSetter($,`strokeLinearGradientEndPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillLinearGradientEndPointX`,0),Z.addGetterSetter($,`strokeLinearGradientEndPointX`,0),Z.addGetterSetter($,`fillLinearGradientEndPointY`,0),Z.addGetterSetter($,`strokeLinearGradientEndPointY`,0),Z.addComponentsGetterSetter($,`fillRadialGradientStartPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillRadialGradientStartPointX`,0),Z.addGetterSetter($,`fillRadialGradientStartPointY`,0),Z.addComponentsGetterSetter($,`fillRadialGradientEndPoint`,[`x`,`y`]),Z.addGetterSetter($,`fillRadialGradientEndPointX`,0),Z.addGetterSetter($,`fillRadialGradientEndPointY`,0),Z.addGetterSetter($,`fillPatternRotation`,0),Z.backCompat($,{dashArray:`dash`,getDashArray:`getDash`,setDashArray:`getDash`,drawFunc:`sceneFunc`,getDrawFunc:`getSceneFunc`,setDrawFunc:`setSceneFunc`,drawHitFunc:`hitFunc`,getDrawHitFunc:`getHitFunc`,setDrawHitFunc:`setHitFunc`});var Wy=`#`,Gy=`beforeDraw`,Ky=`draw`,qy=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Jy=qy.length,Yy=class extends zv{constructor(e){super(e),this.canvas=new hv,this.hitCanvas=new gv({pixelRatio:1}),this._waitingForDraw=!1,this.on(`visibleChange.konva`,this._checkVisibility),this._checkVisibility(),this.on(`imageSmoothingEnabledChange.konva`,this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),e<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[e+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Q.prototype.moveToTop.call(this);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Q.prototype.moveUp.call(this))return!1;var e=this.getStage();return!e||!e.content?!1:(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Q.prototype.moveDown.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Q.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var e=this.getNativeCanvasElement();return Q.prototype.remove.call(this),e&&e.parentNode&&Y._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:t}){return this.canvas.setSize(e,t),this.hitCanvas.setSize(e,t),this._setSmoothEnabled(),this}_validateAdd(e){var t=e.getType();t!==`Group`&&t!==`Shape`&&Y.throw(`You may only add groups and shapes to a layer.`)}_toKonvaCanvas(e){return e||={},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x===void 0?this.x():e.x,e.y=e.y===void 0?this.y():e.y,Q.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display=`block`:this.canvas._canvas.style.display=`none`}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){Y.warn(`Can not change width of layer. Use "stage.width(value)" function instead.`)}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Y.warn(`Can not change height of layer. Use "stage.height(value)" function instead.`)}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Y.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;for(var t=1,n=!1;;){for(let r=0;r<Jy;r++){let i=qy[r],a=this._getIntersection({x:e.x+i.x*t,y:e.y+i.y*t}),o=a.shape;if(o)return o;if(n=!!a.antialiased,!a.antialiased)break}if(n)t+=1;else return null}}_getIntersection(e){let t=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(e.x*t),Math.round(e.y*t),1,1).data,r=n[3];if(r===255){let e=Py[Wy+Y._rgbToHex(n[0],n[1],n[2])];return e?{shape:e}:{antialiased:!0}}else if(r>0)return{antialiased:!0};return{}}drawScene(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire(Gy,{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),zv.prototype.drawScene.call(this,r,t),this._fire(Ky,{node:this}),this}drawHit(e,t){var n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),zv.prototype.drawHit.call(this,r,t),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){Y.warn(`hitGraphEnabled method is deprecated. Please use layer.listening() instead.`),this.listening(e)}getHitGraphEnabled(e){return Y.warn(`hitGraphEnabled method is deprecated. Please use layer.listening() instead.`),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var e=this.parent;this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}}};Yy.prototype.nodeType=`Layer`,S_(Yy),Z.addGetterSetter(Yy,`imageSmoothingEnabled`,!0),Z.addGetterSetter(Yy,`clearBeforeDraw`,!0),Z.addGetterSetter(Yy,`hitGraphEnabled`,!0,q_());var Xy=class extends Yy{constructor(e){super(e),this.listening(!1),Y.warn(`Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.`)}};Xy.prototype.nodeType=`FastLayer`,S_(Xy);var Zy=class extends zv{_validateAdd(e){var t=e.getType();t!==`Group`&&t!==`Shape`&&Y.throw(`You may only add groups and shapes to groups.`)}};Zy.prototype.nodeType=`Group`,S_(Zy);var Qy=(function(){return x_.performance&&x_.performance.now?function(){return x_.performance.now()}:function(){return new Date().getTime()}})(),$y=class e{constructor(t,n){this.id=e.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Qy(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(e){var t=[];return t=e?e.length>0?e:[e]:[],this.layers=t,this}getLayers(){return this.layers}addLayer(e){var t=this.layers,n=t.length,r;for(r=0;r<n;r++)if(t[r]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){var t=e.animations,n=t.length,r;for(r=0;r<n;r++)if(t[r].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Qy(),e._addAnimation(this),this}stop(){return e._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){var t=e.id,n=this.animations,r=n.length,i;for(i=0;i<r;i++)if(n[i].id===t){this.animations.splice(i,1);break}}static _runFrames(){var e={},t=this.animations,n,r,i,a,o,s,c,l,u;for(a=0;a<t.length;a++)if(n=t[a],r=n.layers,i=n.func,n._updateFrameObject(Qy()),s=r.length,u=!i||i.call(n,n.frame)!==!1,u)for(o=0;o<s;o++)c=r[o],c._id!==void 0&&(e[c._id]=c);for(l in e)e.hasOwnProperty(l)&&e[l].batchDraw()}static _animationLoop(){var t=e;t.animations.length?(t._runFrames(),Y.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,Y.requestAnimFrame(this._animationLoop))}};$y.animations=[],$y.animIdCounter=0,$y.animRunning=!1;var eb={node:1,duration:1,easing:1,onFinish:1,yoyo:1},tb=1,nb=2,rb=3,ib=0,ab=[`fill`,`stroke`,`shadowColor`],ob=class{constructor(e,t,n,r,i,a,o){this.prop=e,this.propFunc=t,this.begin=r,this._pos=r,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}fire(e){var t=this[e];t&&t()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return e===void 0&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=nb,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire(`onPlay`)}reverse(){this.state=rb,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire(`onReverse`)}seek(e){this.pause(),this._time=e,this.update(),this.fire(`onSeek`)}reset(){this.pause(),this._time=0,this.update(),this.fire(`onReset`)}finish(){this.pause(),this._time=this.duration,this.update(),this.fire(`onFinish`)}update(){this.setPosition(this.getPosition(this._time)),this.fire(`onUpdate`)}onEnterFrame(){var e=this.getTimer()-this._startTime;this.state===nb?this.setTime(e):this.state===rb&&this.setTime(this.duration-e)}pause(){this.state=tb,this.fire(`onPause`)}getTimer(){return new Date().getTime()}},sb=class e{constructor(t){var n=this,r=t.node,i=r._id,a,o=t.easing||cb.Linear,s=!!t.yoyo,c;a=t.duration===void 0?.3:t.duration===0?.001:t.duration,this.node=r,this._id=ib++;var l=r.getLayer()||(r instanceof J.Stage?r.getLayers():null);for(c in l||Y.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new $y(function(){n.tween.onEnterFrame()},l),this.tween=new ob(c,function(e){n._tweenFunc(e)},o,0,1,a*1e3,s),this._addListeners(),e.attrs[i]||(e.attrs[i]={}),e.attrs[i][this._id]||(e.attrs[i][this._id]={}),e.tweens[i]||(e.tweens[i]={}),t)eb[c]===void 0&&this._addAttr(c,t[c]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,n){var r=this.node,i=r._id,a,o,s=e.tweens[i][t],c,l,u,d,f;if(s&&delete e.attrs[i][s][t],a=r.getAttr(t),Y._isArray(n))if(o=[],l=Math.max(n.length,a.length),t===`points`&&n.length!==a.length&&(n.length>a.length?(d=a,a=Y._prepareArrayForTween(a,n,r.closed())):(u=n,n=Y._prepareArrayForTween(n,a,r.closed()))),t.indexOf(`fill`)===0)for(c=0;c<l;c++)if(c%2==0)o.push(n[c]-a[c]);else{var p=Y.colorToRGBA(a[c]);f=Y.colorToRGBA(n[c]),a[c]=p,o.push({r:f.r-p.r,g:f.g-p.g,b:f.b-p.b,a:f.a-p.a})}else for(c=0;c<l;c++)o.push(n[c]-a[c]);else ab.indexOf(t)===-1?o=n-a:(a=Y.colorToRGBA(a),f=Y.colorToRGBA(n),o={r:f.r-a.r,g:f.g-a.g,b:f.b-a.b,a:f.a-a.a});e.attrs[i][this._id][t]={start:a,diff:o,end:n,trueEnd:u,trueStart:d},e.tweens[i][t]=this._id}_tweenFunc(t){var n=this.node,r=e.attrs[n._id][this._id],i,a,o,s,c,l,u,d;for(i in r){if(a=r[i],o=a.start,s=a.diff,d=a.end,Y._isArray(o))if(c=[],u=Math.max(o.length,d.length),i.indexOf(`fill`)===0)for(l=0;l<u;l++)l%2==0?c.push((o[l]||0)+s[l]*t):c.push(`rgba(`+Math.round(o[l].r+s[l].r*t)+`,`+Math.round(o[l].g+s[l].g*t)+`,`+Math.round(o[l].b+s[l].b*t)+`,`+(o[l].a+s[l].a*t)+`)`);else for(l=0;l<u;l++)c.push((o[l]||0)+s[l]*t);else c=ab.indexOf(i)===-1?o+s*t:`rgba(`+Math.round(o.r+s.r*t)+`,`+Math.round(o.g+s.g*t)+`,`+Math.round(o.b+s.b*t)+`,`+(o.a+s.a*t)+`)`;n.setAttr(i,c)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,n=e.attrs[t._id][this._id];n.points&&n.points.trueEnd&&t.setAttr(`points`,n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,n=e.attrs[t._id][this._id];n.points&&n.points.trueStart&&t.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(e*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t=this.node._id,n=this._id,r=e.tweens[t],i;for(i in this.pause(),r)delete e.tweens[t][i];delete e.attrs[t][n]}};sb.attrs={},sb.tweens={},Q.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new sb(e).play()};var cb={BackEaseIn(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*(((i*=1.525)+1)*e-i))+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},ElasticEaseIn(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r)===1?t+n:(a||=r*.3,!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),-(i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t)},ElasticEaseOut(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r)===1?t+n:(a||=r*.3,!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),i*2**(-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+n+t)},ElasticEaseInOut(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r/2)==2?t+n:(a||=.3*1.5*r,!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),e<1?-.5*(i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t:i*2**(-10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+n+t)},BounceEaseOut(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},BounceEaseIn(e,t,n,r){return n-cb.BounceEaseOut(r-e,0,n,r)+t},BounceEaseInOut(e,t,n,r){return e<r/2?cb.BounceEaseIn(e*2,0,n,r)*.5+t:cb.BounceEaseOut(e*2-r,0,n,r)*.5+n*.5+t},EaseIn(e,t,n,r){return n*(e/=r)*e+t},EaseOut(e,t,n,r){return-n*(e/=r)*(e-2)+t},EaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},StrongEaseIn(e,t,n,r){return n*(e/=r)*e*e*e*e+t},StrongEaseOut(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},StrongEaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},Linear(e,t,n,r){return n*e/r+t}},lb=Y._assign(J,{Util:Y,Transform:C_,Node:Q,Container:zv,Stage:Ey,stages:Ty,Layer:Yy,FastLayer:Xy,Group:Zy,DD:_v,Shape:$,shapes:Py,Animation:$y,Tween:sb,Easings:cb,Context:lv,Canvas:mv}),ub=class extends ${_sceneFunc(e){var t=J.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};ub.prototype._centroid=!0,ub.prototype.className=`Arc`,ub.prototype._attrsAffectingSize=[`innerRadius`,`outerRadius`],S_(ub),Z.addGetterSetter(ub,`innerRadius`,0,X()),Z.addGetterSetter(ub,`outerRadius`,0,X()),Z.addGetterSetter(ub,`angle`,0,X()),Z.addGetterSetter(ub,`clockwise`,!1,q_());function db(e,t,n,r,i,a,o){var s=Math.sqrt((n-e)**2+(r-t)**2),c=Math.sqrt((i-n)**2+(a-r)**2),l=o*s/(s+c),u=o*c/(s+c);return[n-l*(i-e),r-l*(a-t),n+u*(i-e),r+u*(a-t)]}function fb(e,t){var n=e.length,r=[],i,a;for(i=2;i<n-2;i+=2)a=db(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(a[0])&&(r.push(a[0]),r.push(a[1]),r.push(e[i]),r.push(e[i+1]),r.push(a[2]),r.push(a[3]));return r}var pb=class extends ${constructor(e){super(e),this.on(`pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva`,function(){this._clearCache(`tensionPoints`)})}_sceneFunc(e){var t=this.points(),n=t.length,r=this.tension(),i=this.closed(),a=this.bezier(),o,s,c;if(n){if(e.beginPath(),e.moveTo(t[0],t[1]),r!==0&&n>4){for(o=this.getTensionPoints(),s=o.length,c=i?0:4,i||e.quadraticCurveTo(o[0],o[1],o[2],o[3]);c<s-2;)e.bezierCurveTo(o[c++],o[c++],o[c++],o[c++],o[c++],o[c++]);i||e.quadraticCurveTo(o[s-2],o[s-1],t[n-2],t[n-1])}else if(a)for(c=2;c<n;)e.bezierCurveTo(t[c++],t[c++],t[c++],t[c++],t[c++],t[c++]);else for(c=2;c<n;c+=2)e.lineTo(t[c],t[c+1]);i?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache(`tensionPoints`,this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():fb(this.points(),this.tension())}_getTensionPointsClosed(){var e=this.points(),t=e.length,n=this.tension(),r=db(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),i=db(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),a=fb(e,n);return[r[2],r[3]].concat(a,[i[0],i[1],e[t-2],e[t-1],i[2],i[3],r[0],r[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};e=this.tension()===0?this.points():[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]];for(var t=e[0],n=e[0],r=e[1],i=e[1],a,o,s=0;s<e.length/2;s++)a=e[s*2],o=e[s*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);return{x:t,y:r,width:n-t,height:i-r}}};pb.prototype.className=`Line`,pb.prototype._attrsAffectingSize=[`points`,`bezier`,`tension`],S_(pb),Z.addGetterSetter(pb,`closed`,!1),Z.addGetterSetter(pb,`bezier`,!1),Z.addGetterSetter(pb,`tension`,0,X()),Z.addGetterSetter(pb,`points`,[],K_());var mb=class e extends ${constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on(`dataChange.konva`,function(){this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength})}_sceneFunc(e){var t=this.dataArray;e.beginPath();for(var n=!1,r=0;r<t.length;r++){var i=t[r].command,a=t[r].points;switch(i){case`L`:e.lineTo(a[0],a[1]);break;case`M`:e.moveTo(a[0],a[1]);break;case`C`:e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case`Q`:e.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case`A`:var o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],f=a[6],p=a[7],m=c>l?c:l,h=c>l?1:c/l,g=c>l?l/c:1;e.translate(o,s),e.rotate(f),e.scale(h,g),e.arc(0,0,m,u,u+d,1-p),e.scale(1/h,1/g),e.rotate(-f),e.translate(-o,-s);break;case`z`:n=!0,e.closePath();break}}!n&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(n){if(n.command===`A`){var r=n.points[4],i=n.points[5],a=n.points[4]+i,o=Math.PI/180;if(Math.abs(r-a)<o&&(o=Math.abs(r-a)),i<0)for(let i=r-o;i>a;i-=o){let r=e.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],i,0);t.push(r.x,r.y)}else for(let i=r+o;i<a;i+=o){let r=e.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],i,0);t.push(r.x,r.y)}}else if(n.command===`C`)for(let r=0;r<=1;r+=.01){let i=e.getPointOnCubicBezier(r,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3],n.points[4],n.points[5]);t.push(i.x,i.y)}else t=t.concat(n.points)});for(var n=t[0],r=t[0],i=t[1],a=t[1],o,s,c=0;c<t.length/2;c++)o=t[c*2],s=t[c*2+1],isNaN(o)||(n=Math.min(n,o),r=Math.max(r,o)),isNaN(s)||(i=Math.min(i,s),a=Math.max(a,s));return{x:Math.round(n),y:Math.round(i),width:Math.round(r-n),height:Math.round(a-i)}}getLength(){return this.pathLength}getPointAtLength(t){var n,r=0,i=this.dataArray.length;if(!i)return null;for(;r<i&&t>this.dataArray[r].pathLength;)t-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var a=this.dataArray[r],o=a.points;switch(a.command){case`L`:return e.getPointOnLine(t,a.start.x,a.start.y,o[0],o[1]);case`C`:return e.getPointOnCubicBezier(t/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3],o[4],o[5]);case`Q`:return e.getPointOnQuadraticBezier(t/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3]);case`A`:var s=o[0],c=o[1],l=o[2],u=o[3],d=o[4],f=o[5],p=o[6];return d+=f*t/a.pathLength,e.getPointOnEllipticalArc(s,c,l,u,d,p)}return null}static getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}static getPointOnLine(e,t,n,r,i,a,o){a===void 0&&(a=t),o===void 0&&(o=n);var s=(i-n)/(r-t+1e-8),c=Math.sqrt(e*e/(1+s*s));r<t&&(c*=-1);var l=s*c,u;if(r===t)u={x:a,y:o+l};else if((o-n)/(a-t+1e-8)===s)u={x:a+c,y:o+l};else{var d,f,p=this.getLineLength(t,n,r,i),m=(a-t)*(r-t)+(o-n)*(i-n);m/=p*p,d=t+m*(r-t),f=n+m*(i-n);var h=this.getLineLength(a,o,d,f),g=Math.sqrt(e*e-h*h);c=Math.sqrt(g*g/(1+s*s)),r<t&&(c*=-1),l=s*c,u={x:d+c,y:f+l}}return u}static getPointOnCubicBezier(e,t,n,r,i,a,o,s,c){function l(e){return e*e*e}function u(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function f(e){return(1-e)*(1-e)*(1-e)}return{x:s*l(e)+a*u(e)+r*d(e)+t*f(e),y:c*l(e)+o*u(e)+i*d(e)+n*f(e)}}static getPointOnQuadraticBezier(e,t,n,r,i,a,o){function s(e){return e*e}function c(e){return 2*e*(1-e)}function l(e){return(1-e)*(1-e)}return{x:a*s(e)+r*c(e)+t*l(e),y:o*s(e)+i*c(e)+n*l(e)}}static getPointOnEllipticalArc(e,t,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*o-c.y*s),y:t+(c.x*s+c.y*o)}}static parsePathData(e){if(!e)return[];var t=e,n=[`m`,`M`,`l`,`L`,`v`,`V`,`h`,`H`,`z`,`Z`,`c`,`C`,`q`,`Q`,`t`,`T`,`s`,`S`,`a`,`A`];t=t.replace(RegExp(` `,`g`),`,`);for(var r=0;r<n.length;r++)t=t.replace(new RegExp(n[r],`g`),`|`+n[r]);var i=t.split(`|`),a=[],o=[],s=0,c=0,l=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,u;for(r=1;r<i.length;r++){var d=i[r],f=d.charAt(0);for(d=d.slice(1),o.length=0;u=l.exec(d);)o.push(u[0]);for(var p=[],m=0,h=o.length;m<h;m++){if(o[m]===`00`){p.push(0,0);continue}var g=parseFloat(o[m]);isNaN(g)?p.push(0):p.push(g)}for(;p.length>0&&!isNaN(p[0]);){var _=null,v=[],y=s,b=c,x,S,C,w,T,E,D,O,ee,k;switch(f){case`l`:s+=p.shift(),c+=p.shift(),_=`L`,v.push(s,c);break;case`L`:s=p.shift(),c=p.shift(),v.push(s,c);break;case`m`:var A=p.shift(),j=p.shift();if(s+=A,c+=j,_=`M`,a.length>2&&a[a.length-1].command===`z`){for(var te=a.length-2;te>=0;te--)if(a[te].command===`M`){s=a[te].points[0]+A,c=a[te].points[1]+j;break}}v.push(s,c),f=`l`;break;case`M`:s=p.shift(),c=p.shift(),_=`M`,v.push(s,c),f=`L`;break;case`h`:s+=p.shift(),_=`L`,v.push(s,c);break;case`H`:s=p.shift(),_=`L`,v.push(s,c);break;case`v`:c+=p.shift(),_=`L`,v.push(s,c);break;case`V`:c=p.shift(),_=`L`,v.push(s,c);break;case`C`:v.push(p.shift(),p.shift(),p.shift(),p.shift()),s=p.shift(),c=p.shift(),v.push(s,c);break;case`c`:v.push(s+p.shift(),c+p.shift(),s+p.shift(),c+p.shift()),s+=p.shift(),c+=p.shift(),_=`C`,v.push(s,c);break;case`S`:S=s,C=c,x=a[a.length-1],x.command===`C`&&(S=s+(s-x.points[2]),C=c+(c-x.points[3])),v.push(S,C,p.shift(),p.shift()),s=p.shift(),c=p.shift(),_=`C`,v.push(s,c);break;case`s`:S=s,C=c,x=a[a.length-1],x.command===`C`&&(S=s+(s-x.points[2]),C=c+(c-x.points[3])),v.push(S,C,s+p.shift(),c+p.shift()),s+=p.shift(),c+=p.shift(),_=`C`,v.push(s,c);break;case`Q`:v.push(p.shift(),p.shift()),s=p.shift(),c=p.shift(),v.push(s,c);break;case`q`:v.push(s+p.shift(),c+p.shift()),s+=p.shift(),c+=p.shift(),_=`Q`,v.push(s,c);break;case`T`:S=s,C=c,x=a[a.length-1],x.command===`Q`&&(S=s+(s-x.points[0]),C=c+(c-x.points[1])),s=p.shift(),c=p.shift(),_=`Q`,v.push(S,C,s,c);break;case`t`:S=s,C=c,x=a[a.length-1],x.command===`Q`&&(S=s+(s-x.points[0]),C=c+(c-x.points[1])),s+=p.shift(),c+=p.shift(),_=`Q`,v.push(S,C,s,c);break;case`A`:w=p.shift(),T=p.shift(),E=p.shift(),D=p.shift(),O=p.shift(),ee=s,k=c,s=p.shift(),c=p.shift(),_=`A`,v=this.convertEndpointToCenterParameterization(ee,k,s,c,D,O,w,T,E);break;case`a`:w=p.shift(),T=p.shift(),E=p.shift(),D=p.shift(),O=p.shift(),ee=s,k=c,s+=p.shift(),c+=p.shift(),_=`A`,v=this.convertEndpointToCenterParameterization(ee,k,s,c,D,O,w,T,E);break}a.push({command:_||f,points:v,start:{x:y,y:b},pathLength:this.calcLength(y,b,_||f,v)})}(f===`z`||f===`Z`)&&a.push({command:`z`,points:[],start:void 0,pathLength:0})}return a}static calcLength(t,n,r,i){var a,o,s,c,l=e;switch(r){case`L`:return l.getLineLength(t,n,i[0],i[1]);case`C`:for(a=0,o=l.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),c=.01;c<=1;c+=.01)s=l.getPointOnCubicBezier(c,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case`Q`:for(a=0,o=l.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),c=.01;c<=1;c+=.01)s=l.getPointOnQuadraticBezier(c,t,n,i[0],i[1],i[2],i[3]),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case`A`:a=0;var u=i[4],d=i[5],f=i[4]+d,p=Math.PI/180;if(Math.abs(u-f)<p&&(p=Math.abs(u-f)),o=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),d<0)for(c=u-p;c>f;c-=p)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(c=u+p;c<f;c+=p)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=l.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),a+=l.getLineLength(o.x,o.y,s.x,s.y),a}return 0}static convertEndpointToCenterParameterization(e,t,n,r,i,a,o,s,c){var l=Math.PI/180*c,u=Math.cos(l)*(e-n)/2+Math.sin(l)*(t-r)/2,d=-1*Math.sin(l)*(e-n)/2+Math.cos(l)*(t-r)/2,f=u*u/(o*o)+d*d/(s*s);f>1&&(o*=Math.sqrt(f),s*=Math.sqrt(f));var p=Math.sqrt((o*o*(s*s)-o*o*(d*d)-s*s*(u*u))/(o*o*(d*d)+s*s*(u*u)));i===a&&(p*=-1),isNaN(p)&&(p=0);var m=p*o*d/s,h=p*-s*u/o,g=(e+n)/2+Math.cos(l)*m-Math.sin(l)*h,_=(t+r)/2+Math.sin(l)*m+Math.cos(l)*h,v=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},y=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))},b=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))},x=b([1,0],[(u-m)/o,(d-h)/s]),S=[(u-m)/o,(d-h)/s],C=[(-1*u-m)/o,(-1*d-h)/s],w=b(S,C);return y(S,C)<=-1&&(w=Math.PI),y(S,C)>=1&&(w=0),a===0&&w>0&&(w-=2*Math.PI),a===1&&w<0&&(w+=2*Math.PI),[g,_,o,s,x,w,l,a]}};mb.prototype.className=`Path`,mb.prototype._attrsAffectingSize=[`data`],S_(mb),Z.addGetterSetter(mb,`data`);var hb=class extends pb{_sceneFunc(e){super._sceneFunc(e);var t=Math.PI*2,n=this.points(),r=n,i=this.tension()!==0&&n.length>4;i&&(r=this.getTensionPoints());var a=this.pointerLength(),o=n.length,s,c;if(i){let e=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[o-2],n[o-1]],t=mb.calcLength(r[r.length-4],r[r.length-3],`C`,e),i=mb.getPointOnQuadraticBezier(Math.min(1,1-a/t),e[0],e[1],e[2],e[3],e[4],e[5]);s=n[o-2]-i.x,c=n[o-1]-i.y}else s=n[o-2]-n[o-4],c=n[o-1]-n[o-3];var l=(Math.atan2(c,s)+t)%t,u=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[o-2],n[o-1]),e.rotate(l),e.moveTo(0,0),e.lineTo(-a,u/2),e.lineTo(-a,-u/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(s=(r[0]+r[2])/2-n[0],c=(r[1]+r[3])/2-n[1]):(s=n[2]-n[0],c=n[3]-n[1]),e.rotate((Math.atan2(-c,-s)+t)%t),e.moveTo(0,0),e.lineTo(-a,u/2),e.lineTo(-a,-u/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){let e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}}};hb.prototype.className=`Arrow`,S_(hb),Z.addGetterSetter(hb,`pointerLength`,10,X()),Z.addGetterSetter(hb,`pointerWidth`,10,X()),Z.addGetterSetter(hb,`pointerAtBeginning`,!1),Z.addGetterSetter(hb,`pointerAtEnding`,!0);var gb=class extends ${_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}};gb.prototype._centroid=!0,gb.prototype.className=`Circle`,gb.prototype._attrsAffectingSize=[`radius`],S_(gb),Z.addGetterSetter(gb,`radius`,0,X());var _b=class extends ${_sceneFunc(e){var t=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),t!==n&&e.scale(1,n/t),e.arc(0,0,t,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};_b.prototype.className=`Ellipse`,_b.prototype._centroid=!0,_b.prototype._attrsAffectingSize=[`radiusX`,`radiusY`],S_(_b),Z.addComponentsGetterSetter(_b,`radius`,[`x`,`y`]),Z.addGetterSetter(_b,`radiusX`,0,X()),Z.addGetterSetter(_b,`radiusY`,0,X());var vb=class e extends ${constructor(e){super(e),this.on(`imageChange.konva`,()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){let e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener(`load`,()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){let t=this.getWidth(),n=this.getHeight(),r=this.attrs.image,i;if(r){let e=this.attrs.cropWidth,a=this.attrs.cropHeight;i=e&&a?[r,this.cropX(),this.cropY(),e,a,0,0,t,n]:[r,0,0,t,n]}(this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)),r&&e.drawImage.apply(e,i)}_hitFunc(e){var t=this.width(),n=this.height();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.attrs.width??this.image()?.width}getHeight(){return this.attrs.height??this.image()?.height}static fromURL(t,n){var r=Y.createImageElement();r.onload=function(){n(new e({image:r}))},r.crossOrigin=`Anonymous`,r.src=t}};vb.prototype.className=`Image`,S_(vb),Z.addGetterSetter(vb,`image`),Z.addComponentsGetterSetter(vb,`crop`,[`x`,`y`,`width`,`height`]),Z.addGetterSetter(vb,`cropX`,0,X()),Z.addGetterSetter(vb,`cropY`,0,X()),Z.addGetterSetter(vb,`cropWidth`,0,X()),Z.addGetterSetter(vb,`cropHeight`,0,X());var yb=[`fontFamily`,`fontSize`,`fontStyle`,`padding`,`lineHeight`,`text`,`width`,`height`],bb=`Change.konva`,xb=`none`,Sb=`up`,Cb=`right`,wb=`down`,Tb=`left`,Eb=yb.length,Db=class extends Zy{constructor(e){super(e),this.on(`add.konva`,function(e){this._addListeners(e.child),this._sync()})}getText(){return this.find(`Text`)[0]}getTag(){return this.find(`Tag`)[0]}_addListeners(e){var t=this,n,r=function(){t._sync()};for(n=0;n<Eb;n++)e.on(yb[n]+bb,r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var e=this.getText(),t=this.getTag(),n,r,i,a,o,s,c;if(e&&t){switch(n=e.width(),r=e.height(),i=t.pointerDirection(),a=t.pointerWidth(),c=t.pointerHeight(),o=0,s=0,i){case Sb:o=n/2,s=-1*c;break;case Cb:o=n+a,s=r/2;break;case wb:o=n/2,s=r+c;break;case Tb:o=-1*a,s=r/2;break}t.setAttrs({x:-1*o,y:-1*s,width:n,height:r}),e.setAttrs({x:-1*o,y:-1*s})}}};Db.prototype.className=`Label`,S_(Db);var Ob=class extends ${_sceneFunc(e){var t=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),a=this.pointerHeight(),o=this.cornerRadius();let s=0,c=0,l=0,u=0;typeof o==`number`?s=c=l=u=Math.min(o,t/2,n/2):(s=Math.min(o[0]||0,t/2,n/2),c=Math.min(o[1]||0,t/2,n/2),u=Math.min(o[2]||0,t/2,n/2),l=Math.min(o[3]||0,t/2,n/2)),e.beginPath(),e.moveTo(s,0),r===Sb&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*a),e.lineTo((t+i)/2,0)),e.lineTo(t-c,0),e.arc(t-c,c,c,Math.PI*3/2,0,!1),r===Cb&&(e.lineTo(t,(n-a)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+a)/2)),e.lineTo(t,n-u),e.arc(t-u,n-u,u,0,Math.PI/2,!1),r===wb&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+a),e.lineTo((t-i)/2,n)),e.lineTo(l,n),e.arc(l,n-l,l,Math.PI/2,Math.PI,!1),r===Tb&&(e.lineTo(0,(n+a)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-a)/2)),e.lineTo(0,s),e.arc(s,s,s,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){var e=0,t=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),a=this.width(),o=this.height();return i===Sb?(t-=r,o+=r):i===wb?o+=r:i===Tb?(e-=n*1.5,a+=n):i===Cb&&(a+=n*1.5),{x:e,y:t,width:a,height:o}}};Ob.prototype.className=`Tag`,S_(Ob),Z.addGetterSetter(Ob,`pointerDirection`,xb),Z.addGetterSetter(Ob,`pointerWidth`,0,X()),Z.addGetterSetter(Ob,`pointerHeight`,0,X()),Z.addGetterSetter(Ob,`cornerRadius`,0,H_(4));var kb=class extends ${_sceneFunc(e){var t=this.cornerRadius(),n=this.width(),r=this.height();if(e.beginPath(),!t)e.rect(0,0,n,r);else{let i=0,a=0,o=0,s=0;typeof t==`number`?i=a=o=s=Math.min(t,n/2,r/2):(i=Math.min(t[0]||0,n/2,r/2),a=Math.min(t[1]||0,n/2,r/2),s=Math.min(t[2]||0,n/2,r/2),o=Math.min(t[3]||0,n/2,r/2)),e.moveTo(i,0),e.lineTo(n-a,0),e.arc(n-a,a,a,Math.PI*3/2,0,!1),e.lineTo(n,r-s),e.arc(n-s,r-s,s,0,Math.PI/2,!1),e.lineTo(o,r),e.arc(o,r-o,o,Math.PI/2,Math.PI,!1),e.lineTo(0,i),e.arc(i,i,i,Math.PI,Math.PI*3/2,!1)}e.closePath(),e.fillStrokeShape(this)}};kb.prototype.className=`Rect`,S_(kb),Z.addGetterSetter(kb,`cornerRadius`,0,H_(4));var Ab=class extends ${_sceneFunc(e){let t=this._getPoints();e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var n=1;n<t.length;n++)e.lineTo(t[n].x,t[n].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){let e=this.attrs.sides,t=this.attrs.radius||0,n=[];for(var r=0;r<e;r++)n.push({x:t*Math.sin(r*2*Math.PI/e),y:-1*t*Math.cos(r*2*Math.PI/e)});return n}getSelfRect(){let e=this._getPoints();var t=e[0].x,n=e[0].y,r=e[0].x,i=e[0].y;return e.forEach(e=>{t=Math.min(t,e.x),n=Math.max(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.y)}),{x:t,y:r,width:n-t,height:i-r}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};Ab.prototype.className=`RegularPolygon`,Ab.prototype._centroid=!0,Ab.prototype._attrsAffectingSize=[`radius`],S_(Ab),Z.addGetterSetter(Ab,`radius`,0,X()),Z.addGetterSetter(Ab,`sides`,0,X());var jb=Math.PI*2,Mb=class extends ${_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,jb,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),jb,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};Mb.prototype.className=`Ring`,Mb.prototype._centroid=!0,Mb.prototype._attrsAffectingSize=[`innerRadius`,`outerRadius`],S_(Mb),Z.addGetterSetter(Mb,`innerRadius`,0,X()),Z.addGetterSetter(Mb,`outerRadius`,0,X());var Nb=class extends ${constructor(e){super(e),this._updated=!0,this.anim=new $y(()=>{var e=this._updated;return this._updated=!1,e}),this.on(`animationChange.konva`,function(){this.frameIndex(0)}),this.on(`frameIndexChange.konva`,function(){this._updated=!0}),this.on(`frameRateChange.konva`,function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){var t=this.animation(),n=this.frameIndex(),r=n*4,i=this.animations()[t],a=this.frameOffsets(),o=i[r+0],s=i[r+1],c=i[r+2],l=i[r+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,c,l),e.closePath(),e.fillStrokeShape(this)),u)if(a){var d=a[t],f=n*2;e.drawImage(u,o,s,c,l,d[f+0],d[f+1],c,l)}else e.drawImage(u,o,s,c,l,0,0,c,l)}_hitFunc(e){var t=this.animation(),n=this.frameIndex(),r=n*4,i=this.animations()[t],a=this.frameOffsets(),o=i[r+2],s=i[r+3];if(e.beginPath(),a){var c=a[t],l=n*2;e.rect(c[l+0],c[l+1],o,s)}else e.rect(0,0,o,s);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),t=this.animation();e<this.animations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}};Nb.prototype.className=`Sprite`,S_(Nb),Z.addGetterSetter(Nb,`animation`),Z.addGetterSetter(Nb,`animations`),Z.addGetterSetter(Nb,`frameOffsets`),Z.addGetterSetter(Nb,`image`),Z.addGetterSetter(Nb,`frameIndex`,0,X()),Z.addGetterSetter(Nb,`frameRate`,17,X()),Z.backCompat(Nb,{index:`frameIndex`,getIndex:`getFrameIndex`,setIndex:`setFrameIndex`});var Pb=class extends ${_sceneFunc(e){var t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(var i=1;i<r*2;i++){var a=i%2==0?n:t,o=a*Math.sin(i*Math.PI/r),s=-1*a*Math.cos(i*Math.PI/r);e.lineTo(o,s)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};Pb.prototype.className=`Star`,Pb.prototype._centroid=!0,Pb.prototype._attrsAffectingSize=[`innerRadius`,`outerRadius`],S_(Pb),Z.addGetterSetter(Pb,`numPoints`,5,X()),Z.addGetterSetter(Pb,`innerRadius`,0,X()),Z.addGetterSetter(Pb,`outerRadius`,0,X());function Fb(e){return Array.from(e)}var Ib=`auto`,Lb=`center`,Rb=`justify`,zb=`Change.konva`,Bb=`2d`,Vb=`-`,Hb=`left`,Ub=`text`,Wb=`Text`,Gb=`top`,Kb=`bottom`,qb=`middle`,Jb=`normal`,Yb=`px `,Xb=` `,Zb=`right`,Qb=`word`,$b=`char`,ex=`none`,tx=`…`,nx=[`fontFamily`,`fontSize`,`fontStyle`,`fontVariant`,`padding`,`align`,`verticalAlign`,`lineHeight`,`text`,`width`,`height`,`wrap`,`ellipsis`,`letterSpacing`],rx=nx.length;function ix(e){return e.split(`,`).map(e=>{e=e.trim();let t=e.indexOf(` `)>=0,n=e.indexOf(`"`)>=0||e.indexOf(`'`)>=0;return t&&!n&&(e=`"${e}"`),e}).join(`, `)}var ax;function ox(){return ax||(ax=Y.createCanvasElement().getContext(Bb),ax)}function sx(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function cx(e){e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function lx(e){return e||={},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||`black`),e}var ux=class extends ${constructor(e){super(lx(e)),this._partialTextX=0,this._partialTextY=0;for(var t=0;t<rx;t++)this.on(nx[t]+zb,this._setTextData);this._setTextData()}_sceneFunc(e){var t=this.textArr,n=t.length;if(this.text()){var r=this.padding(),i=this.fontSize(),a=this.lineHeight()*i,o=this.verticalAlign(),s=0,c=this.align(),l=this.getWidth(),u=this.letterSpacing(),d=this.fill(),f=this.textDecoration(),p=f.indexOf(`underline`)!==-1,m=f.indexOf(`line-through`)!==-1,h,g=0,g=a/2,_=0,v=0;for(e.setAttr(`font`,this._getContextFont()),e.setAttr(`textBaseline`,qb),e.setAttr(`textAlign`,Hb),o===qb?s=(this.getHeight()-n*a-r*2)/2:o===Kb&&(s=this.getHeight()-n*a-r*2),e.translate(r,s+r),h=0;h<n;h++){var _=0,v=0,y=t[h],b=y.text,x=y.width,S=h!==n-1,C,w,T;if(e.save(),c===Zb?_+=l-x-r*2:c===Lb&&(_+=(l-x-r*2)/2),p&&(e.save(),e.beginPath(),e.moveTo(_,g+v+Math.round(i/2)),C=b.split(` `).length-1,w=C===0,T=c===Rb&&S&&!w?l-r*2:x,e.lineTo(_+Math.round(T),g+v+Math.round(i/2)),e.lineWidth=i/15,e.strokeStyle=d,e.stroke(),e.restore()),m&&(e.save(),e.beginPath(),e.moveTo(_,g+v),C=b.split(` `).length-1,w=C===0,T=c===Rb&&S&&!w?l-r*2:x,e.lineTo(_+Math.round(T),g+v),e.lineWidth=i/15,e.strokeStyle=d,e.stroke(),e.restore()),u!==0||c===Rb){C=b.split(` `).length-1;for(var E=Fb(b),D=0;D<E.length;D++){var O=E[D];O===` `&&h!==n-1&&c===Rb&&(_+=(l-r*2-x)/C),this._partialTextX=_,this._partialTextY=g+v,this._partialText=O,e.fillStrokeShape(this),_+=this.measureSize(O).width+u}}else this._partialTextX=_,this._partialTextY=g+v,this._partialText=b,e.fillStrokeShape(this);e.restore(),n>1&&(g+=a)}}}_hitFunc(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var t=Y._isString(e)?e:e==null?``:e+``;return this._setAttr(Ub,t),this}getWidth(){return this.attrs.width===Ib||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Ib||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Y.warn(`text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height.`),this.textHeight}measureSize(e){var t=ox(),n=this.fontSize(),r;return t.save(),t.font=this._getContextFont(),r=t.measureText(e),t.restore(),{width:r.width,height:n}}_getContextFont(){return this.fontStyle()+Xb+this.fontVariant()+Xb+(this.fontSize()+Yb)+ix(this.fontFamily())}_addTextLine(e){this.align()===Rb&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t})}_getTextWidth(e){var t=this.letterSpacing(),n=e.length;return ox().measureText(e).width+(n?t*(n-1):0)}_setTextData(){var e=this.text().split(`
|
|
148
|
+
`),t=+this.fontSize(),n=0,r=this.lineHeight()*t,i=this.attrs.width,a=this.attrs.height,o=i!==Ib&&i!==void 0,s=a!==Ib&&a!==void 0,c=this.padding(),l=i-c*2,u=a-c*2,d=0,f=this.wrap(),p=f!==ex,m=f!==$b&&p,h=this.ellipsis();this.textArr=[],ox().font=this._getContextFont();for(var g=h?this._getTextWidth(tx):0,_=0,v=e.length;_<v;++_){var y=e[_],b=this._getTextWidth(y);if(o&&b>l)for(;y.length>0;){for(var x=0,S=y.length,C=``,w=0;x<S;){var T=x+S>>>1,E=y.slice(0,T+1),D=this._getTextWidth(E)+g;D<=l?(x=T+1,C=E,w=D):S=T}if(C){if(m){var O,ee=y[C.length];O=(ee===Xb||ee===Vb)&&w<=l?C.length:Math.max(C.lastIndexOf(Xb),C.lastIndexOf(Vb))+1,O>0&&(x=O,C=C.slice(0,x),w=this._getTextWidth(C))}if(C=C.trimRight(),this._addTextLine(C),n=Math.max(n,w),d+=r,!p||s&&d+r>u){var k=this.textArr[this.textArr.length-1];k&&h&&(this._getTextWidth(k.text+tx)<l||(k.text=k.text.slice(0,k.text.length-3)),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(k.text+tx));break}if(y=y.slice(x),y=y.trimLeft(),y.length>0&&(b=this._getTextWidth(y),b<=l)){this._addTextLine(y),d+=r,n=Math.max(n,b);break}}else break}else this._addTextLine(y),d+=r,n=Math.max(n,b);if(s&&d+r>u)break}this.textHeight=t,this.textWidth=n}getStrokeScaleEnabled(){return!0}};ux.prototype._fillFunc=sx,ux.prototype._strokeFunc=cx,ux.prototype.className=Wb,ux.prototype._attrsAffectingSize=[`text`,`fontSize`,`padding`,`wrap`,`lineHeight`,`letterSpacing`],S_(ux),Z.overWriteSetter(ux,`width`,U_()),Z.overWriteSetter(ux,`height`,U_()),Z.addGetterSetter(ux,`fontFamily`,`Arial`),Z.addGetterSetter(ux,`fontSize`,12,X()),Z.addGetterSetter(ux,`fontStyle`,Jb),Z.addGetterSetter(ux,`fontVariant`,Jb),Z.addGetterSetter(ux,`padding`,0,X()),Z.addGetterSetter(ux,`align`,Hb),Z.addGetterSetter(ux,`verticalAlign`,Gb),Z.addGetterSetter(ux,`lineHeight`,1,X()),Z.addGetterSetter(ux,`wrap`,Qb),Z.addGetterSetter(ux,`ellipsis`,!1,q_()),Z.addGetterSetter(ux,`letterSpacing`,0,X()),Z.addGetterSetter(ux,`text`,``,W_()),Z.addGetterSetter(ux,`textDecoration`,``);var dx=``,fx=`normal`;function px(e){e.fillText(this.partialText,0,0)}function mx(e){e.strokeText(this.partialText,0,0)}var hx=class extends ${constructor(e){super(e),this.dummyCanvas=Y.createCanvasElement(),this.dataArray=[],this.dataArray=mb.parsePathData(this.attrs.data),this.on(`dataChange.konva`,function(){this.dataArray=mb.parsePathData(this.attrs.data),this._setTextData()}),this.on(`textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva`,this._setTextData),this._setTextData()}_sceneFunc(e){e.setAttr(`font`,this._getContextFont()),e.setAttr(`textBaseline`,this.textBaseline()),e.setAttr(`textAlign`,`left`),e.save();var t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;t===`underline`&&e.beginPath();for(var a=0;a<i.length;a++){e.save();var o=i[a].p0;e.translate(o.x,o.y),e.rotate(i[a].rotation),this.partialText=i[a].text,e.fillStrokeShape(this),t===`underline`&&(a===0&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}t===`underline`&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var t=this.glyphInfo;if(t.length>=1){var n=t[0].p0;e.moveTo(n.x,n.y)}for(var r=0;r<t.length;r++){var i=t[r].p1;e.lineTo(i.x,i.y)}e.setAttr(`lineWidth`,this.fontSize()),e.setAttr(`strokeStyle`,this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return Y.warn(`text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height.`),this.textHeight}setText(e){return ux.prototype.setText.call(this,e)}_getContextFont(){return ux.prototype._getContextFont.call(this)}_getTextSize(e){var t=this.dummyCanvas.getContext(`2d`);t.save(),t.font=this._getContextFont();var n=t.measureText(e);return t.restore(),{width:n.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var e=this,t=this._getTextSize(this.attrs.text),n=this.letterSpacing(),r=this.align(),i=this.kerningFunc();this.textWidth=t.width,this.textHeight=t.height;var a=Math.max(this.textWidth+((this.attrs.text||``).length-1)*n,0);this.glyphInfo=[];for(var o=0,s=0;s<e.dataArray.length;s++)e.dataArray[s].pathLength>0&&(o+=e.dataArray[s].pathLength);var c=0;r===`center`&&(c=Math.max(0,o/2-a/2)),r===`right`&&(c=Math.max(0,o-a));for(var l=Fb(this.text()),u=this.text().split(` `).length-1,d,f,p,m=-1,h=0,g=function(){h=0;for(var t=e.dataArray,n=m+1;n<t.length;n++)if(t[n].pathLength>0)return m=n,t[n];else t[n].command===`M`&&(d={x:t[n].points[0],y:t[n].points[1]});return{}},_=function(t){var i=e._getTextSize(t).width+n;t===` `&&r===`justify`&&(i+=(o-a)/u);var s=0,c=0;for(f=void 0;Math.abs(i-s)/i>.01&&c<20;){c++;for(var l=s;p===void 0;)p=g(),p&&l+p.pathLength<i&&(l+=p.pathLength,p=void 0);if(p==={}||d===void 0)return;var m=!1;switch(p.command){case`L`:mb.getLineLength(d.x,d.y,p.points[0],p.points[1])>i?f=mb.getPointOnLine(i,d.x,d.y,p.points[0],p.points[1],d.x,d.y):p=void 0;break;case`A`:var _=p.points[4],v=p.points[5],y=p.points[4]+v;h===0?h=_+1e-8:i>s?h+=Math.PI/180*v/Math.abs(v):h-=Math.PI/360*v/Math.abs(v),(v<0&&h<y||v>=0&&h>y)&&(h=y,m=!0),f=mb.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],h,p.points[6]);break;case`C`:h===0?h=i>p.pathLength?1e-8:i/p.pathLength:i>s?h+=(i-s)/p.pathLength/2:h=Math.max(h-(s-i)/p.pathLength/2,0),h>1&&(h=1,m=!0),f=mb.getPointOnCubicBezier(h,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case`Q`:h===0?h=i/p.pathLength:i>s?h+=(i-s)/p.pathLength:h-=(s-i)/p.pathLength,h>1&&(h=1,m=!0),f=mb.getPointOnQuadraticBezier(h,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}f!==void 0&&(s=mb.getLineLength(d.x,d.y,f.x,f.y)),m&&(m=!1,p=void 0)}},v=`C`,y=e._getTextSize(v).width+n,b=c/y-1,x=0;x<b&&(_(v),!(d===void 0||f===void 0));x++)d=f;for(var S=0;S<l.length&&(_(l[S]),!(d===void 0||f===void 0));S++){var C=mb.getLineLength(d.x,d.y,f.x,f.y),w=0;if(i)try{w=i(l[S-1],l[S])*this.fontSize()}catch{w=0}d.x+=w,f.x+=w,this.textWidth+=w;var T=mb.getPointOnLine(w+C/2,d.x,d.y,f.x,f.y),E=Math.atan2(f.y-d.y,f.x-d.x);this.glyphInfo.push({transposeX:T.x,transposeY:T.y,text:l[S],rotation:E,p0:d,p1:f}),d=f}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var e=[];this.glyphInfo.forEach(function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)});for(var t=e[0]||0,n=e[0]||0,r=e[1]||0,i=e[1]||0,a,o,s=0;s<e.length/2;s++)a=e[s*2],o=e[s*2+1],t=Math.min(t,a),n=Math.max(n,a),r=Math.min(r,o),i=Math.max(i,o);var c=this.fontSize();return{x:t-c/2,y:r-c/2,width:n-t+c,height:i-r+c}}};hx.prototype._fillFunc=px,hx.prototype._strokeFunc=mx,hx.prototype._fillFuncHit=px,hx.prototype._strokeFuncHit=mx,hx.prototype.className=`TextPath`,hx.prototype._attrsAffectingSize=[`text`,`fontSize`,`data`],S_(hx),Z.addGetterSetter(hx,`data`),Z.addGetterSetter(hx,`fontFamily`,`Arial`),Z.addGetterSetter(hx,`fontSize`,12,X()),Z.addGetterSetter(hx,`fontStyle`,fx),Z.addGetterSetter(hx,`align`,`left`),Z.addGetterSetter(hx,`letterSpacing`,0,X()),Z.addGetterSetter(hx,`textBaseline`,`middle`),Z.addGetterSetter(hx,`fontVariant`,fx),Z.addGetterSetter(hx,`text`,dx),Z.addGetterSetter(hx,`textDecoration`,null),Z.addGetterSetter(hx,`kerningFunc`,null);var gx=`tr-konva`,_x=[`resizeEnabledChange`,`rotateAnchorOffsetChange`,`rotateEnabledChange`,`enabledAnchorsChange`,`anchorSizeChange`,`borderEnabledChange`,`borderStrokeChange`,`borderStrokeWidthChange`,`borderDashChange`,`anchorStrokeChange`,`anchorStrokeWidthChange`,`anchorFillChange`,`anchorCornerRadiusChange`,`ignoreStrokeChange`].map(e=>e+`.${gx}`).join(` `),vx=`nodesRect`,yx=[`widthChange`,`heightChange`,`scaleXChange`,`scaleYChange`,`skewXChange`,`skewYChange`,`rotationChange`,`offsetXChange`,`offsetYChange`,`transformsEnabledChange`,`strokeWidthChange`],bx={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},xx=`ontouchstart`in J._global;function Sx(e,t){if(e===`rotater`)return`crosshair`;t+=Y.degToRad(bx[e]||0);var n=(Y.radToDeg(t)%360+360)%360;return Y._inRange(n,337.5,360)||Y._inRange(n,0,22.5)?`ns-resize`:Y._inRange(n,22.5,67.5)?`nesw-resize`:Y._inRange(n,67.5,112.5)?`ew-resize`:Y._inRange(n,112.5,157.5)?`nwse-resize`:Y._inRange(n,157.5,202.5)?`ns-resize`:Y._inRange(n,202.5,247.5)?`nesw-resize`:Y._inRange(n,247.5,292.5)?`ew-resize`:Y._inRange(n,292.5,337.5)?`nwse-resize`:(Y.error(`Transformer has unknown angle for cursor detection: `+n),`pointer`)}var Cx=[`top-left`,`top-center`,`top-right`,`middle-right`,`middle-left`,`bottom-left`,`bottom-center`,`bottom-right`],wx=1e8;function Tx(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Ex(e,t,n){let r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return Object.assign(Object.assign({},e),{rotation:e.rotation+t,x:r,y:i})}function Dx(e,t){return Ex(e,t,Tx(e))}function Ox(e,t,n){let r=t;for(let i=0;i<e.length;i++){let a=J.getAngle(e[i]),o=Math.abs(a-t)%(Math.PI*2);Math.min(o,Math.PI*2-o)<n&&(r=a)}return r}var kx=class extends Zy{constructor(e){super(e),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(_x,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return Y.warn(`tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead.`),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return gx+this._id}setNodes(e=[]){return this._nodes&&this._nodes.length&&this.detach(),this._nodes=e,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(e=>{let t=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},n=e._attrsAffectingSize.map(e=>e+`Change.`+this._getEventNamespace()).join(` `);e.on(n,t),e.on(yx.map(e=>e+`.${this._getEventNamespace()}`).join(` `),t),e.on(`absoluteTransformChange.${this._getEventNamespace()}`,t),this._proxyDrag(e)}),this._resetTransformCache(),this.findOne(`.top-left`)&&this.update(),this}_proxyDrag(e){let t;e.on(`dragstart.${this._getEventNamespace()}`,n=>{t=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(`.back`)&&this.startDrag(n,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!t)return;let r=e.getAbsolutePosition(),i=r.x-t.x,a=r.y-t.y;this.nodes().forEach(t=>{if(t===e||t.isDragging())return;let r=t.getAbsolutePosition();t.setAbsolutePosition({x:r.x+i,y:r.y+a}),t.startDrag(n)}),t=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off(`.`+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(vx),this._clearCache(`transform`),this._clearSelfAndDescendantCache(`absoluteTransform`)}_getNodeRect(){return this._getCache(vx,this.__getNodeRect)}__getNodeShape(e,t=this.rotation(),n){var r=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=e.getAbsoluteScale(n),a=e.getAbsolutePosition(n),o=r.x*i.x-e.offsetX()*i.x,s=r.y*i.y-e.offsetY()*i.y;let c=(J.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2);return Ex({x:a.x+o*Math.cos(c)+s*Math.sin(-c),y:a.y+s*Math.cos(c)+o*Math.sin(c),width:r.width*i.x,height:r.height*i.y,rotation:c},-J.getAngle(t),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-wx,y:-wx,width:0,height:0,rotation:0};let e=[];this.nodes().map(t=>{let n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var r=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],i=t.getAbsoluteTransform();r.forEach(function(t){var n=i.point(t);e.push(n)})});let t=new C_;t.rotate(-J.getAngle(this.rotation()));var n,r,i,a;e.forEach(function(e){var o=t.point(e);n===void 0&&(n=i=o.x,r=a=o.y),n=Math.min(n,o.x),r=Math.min(r,o.y),i=Math.max(i,o.x),a=Math.max(a,o.y)}),t.invert();let o=t.point({x:n,y:r});return{x:o.x,y:o.y,width:i-n,height:a-r,rotation:J.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),Cx.forEach(function(e){this._createAnchor(e)}.bind(this)),this._createAnchor(`rotater`)}_createAnchor(e){var t=new kb({stroke:`rgb(0, 161, 255)`,fill:`white`,strokeWidth:1,name:e+` _anchor`,dragDistance:0,draggable:!0,hitStrokeWidth:xx?10:`auto`}),n=this;t.on(`mousedown touchstart`,function(e){n._handleMouseDown(e)}),t.on(`dragstart`,e=>{t.stopDrag(),e.cancelBubble=!0}),t.on(`dragend`,e=>{e.cancelBubble=!0}),t.on(`mouseenter`,()=>{var n=Sx(e,J.getAngle(this.rotation()));t.getStage().content&&(t.getStage().content.style.cursor=n),this._cursorChange=!0}),t.on(`mouseout`,()=>{t.getStage().content&&(t.getStage().content.style.cursor=``),this._cursorChange=!1}),this.add(t)}_createBack(){var e=new $({name:`back`,width:0,height:0,draggable:!0,sceneFunc(e){var t=this.getParent(),n=t.padding();e.beginPath(),e.rect(-n,-n,this.width()+n*2,this.height()+n*2),e.moveTo(this.width()/2,-n),t.rotateEnabled()&&e.lineTo(this.width()/2,-t.rotateAnchorOffset()*Y._sign(this.height())-n),e.fillStrokeShape(this)},hitFunc:(e,t)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,t.width()+n*2,t.height()+n*2),e.fillStrokeShape(t)}}});this.add(e),this._proxyDrag(e),e.on(`dragstart`,e=>{e.cancelBubble=!0}),e.on(`dragmove`,e=>{e.cancelBubble=!0}),e.on(`dragend`,e=>{e.cancelBubble=!0}),this.on(`dragmove`,e=>{this.update()})}_handleMouseDown(e){this._movingAnchorName=e.target.name().split(` `)[0];var t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(n**2+r**2);this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),typeof window<`u`&&(window.addEventListener(`mousemove`,this._handleMouseMove),window.addEventListener(`touchmove`,this._handleMouseMove),window.addEventListener(`mouseup`,this._handleMouseUp,!0),window.addEventListener(`touchend`,this._handleMouseUp,!0)),this._transforming=!0;var a=e.target.getAbsolutePosition(),o=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-a.x,y:o.y-a.y},this._fire(`transformstart`,{evt:e,target:this.getNode()}),this._nodes.forEach(t=>{t._fire(`transformstart`,{evt:e,target:t})})}_handleMouseMove(e){var t,n,r,i=this.findOne(`.`+this._movingAnchorName),a=i.getStage();a.setPointersPositions(e);let o=a.getPointerPosition(),s={x:o.x-this._anchorDragOffset.x,y:o.y-this._anchorDragOffset.y},c=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(c,s,e)),i.setAbsolutePosition(s);let l=i.getAbsolutePosition();if(!(c.x===l.x&&c.y===l.y)){if(this._movingAnchorName===`rotater`){var u=this._getNodeRect();t=i.x()-u.width/2,n=-i.y()+u.height/2;let r=Math.atan2(-n,t)+Math.PI/2;u.height<0&&(r-=Math.PI);let a=J.getAngle(this.rotation())+r,o=J.getAngle(this.rotationSnapTolerance()),s=Dx(u,Ox(this.rotationSnaps(),a,o)-u.rotation);this._fitNodesInto(s,e);return}var d=this.keepRatio()||e.shiftKey,f=this.centeredScaling()||e.altKey;if(this._movingAnchorName===`top-left`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.bottom-right`).x(),y:this.findOne(`.bottom-right`).y()};r=Math.sqrt((p.x-i.x())**2+(p.y-i.y())**2);var m=this.findOne(`.top-left`).x()>p.x?-1:1,h=this.findOne(`.top-left`).y()>p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,this.findOne(`.top-left`).x(p.x-t),this.findOne(`.top-left`).y(p.y-n)}}else if(this._movingAnchorName===`top-center`)this.findOne(`.top-left`).y(i.y());else if(this._movingAnchorName===`top-right`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.bottom-left`).x(),y:this.findOne(`.bottom-left`).y()};r=Math.sqrt((i.x()-p.x)**2+(p.y-i.y())**2);var m=this.findOne(`.top-right`).x()<p.x?-1:1,h=this.findOne(`.top-right`).y()>p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,this.findOne(`.top-right`).x(p.x+t),this.findOne(`.top-right`).y(p.y-n)}var g=i.position();this.findOne(`.top-left`).y(g.y),this.findOne(`.bottom-right`).x(g.x)}else if(this._movingAnchorName===`middle-left`)this.findOne(`.top-left`).x(i.x());else if(this._movingAnchorName===`middle-right`)this.findOne(`.bottom-right`).x(i.x());else if(this._movingAnchorName===`bottom-left`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.top-right`).x(),y:this.findOne(`.top-right`).y()};r=Math.sqrt((p.x-i.x())**2+(i.y()-p.y)**2);var m=p.x<i.x()?-1:1,h=i.y()<p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,i.x(p.x-t),i.y(p.y+n)}g=i.position(),this.findOne(`.top-left`).x(g.x),this.findOne(`.bottom-right`).y(g.y)}else if(this._movingAnchorName===`bottom-center`)this.findOne(`.bottom-right`).y(i.y());else if(this._movingAnchorName===`bottom-right`){if(d){var p=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(`.top-left`).x(),y:this.findOne(`.top-left`).y()};r=Math.sqrt((i.x()-p.x)**2+(i.y()-p.y)**2);var m=this.findOne(`.bottom-right`).x()<p.x?-1:1,h=this.findOne(`.bottom-right`).y()<p.y?-1:1;t=r*this.cos*m,n=r*this.sin*h,this.findOne(`.bottom-right`).x(p.x+t),this.findOne(`.bottom-right`).y(p.y+n)}}else console.error(Error(`Wrong position argument of selection resizer: `+this._movingAnchorName));var f=this.centeredScaling()||e.altKey;if(f){var _=this.findOne(`.top-left`),v=this.findOne(`.bottom-right`),y=_.x(),b=_.y(),x=this.getWidth()-v.x(),S=this.getHeight()-v.y();v.move({x:-y,y:-b}),_.move({x,y:S})}var C=this.findOne(`.top-left`).getAbsolutePosition();t=C.x,n=C.y;var w=this.findOne(`.bottom-right`).x()-this.findOne(`.top-left`).x(),T=this.findOne(`.bottom-right`).y()-this.findOne(`.top-left`).y();this._fitNodesInto({x:t,y:n,width:w,height:T,rotation:J.getAngle(this.rotation())},e)}}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){if(this._transforming){this._transforming=!1,typeof window<`u`&&(window.removeEventListener(`mousemove`,this._handleMouseMove),window.removeEventListener(`touchmove`,this._handleMouseMove),window.removeEventListener(`mouseup`,this._handleMouseUp,!0),window.removeEventListener(`touchend`,this._handleMouseUp,!0));var t=this.getNode();this._fire(`transformend`,{evt:e,target:t}),t&&this._nodes.forEach(t=>{t._fire(`transformend`,{evt:e,target:t})}),this._movingAnchorName=null}}_fitNodesInto(e,t){var n=this._getNodeRect();if(Y._inRange(e.width,-this.padding()*2-1,1)){this.update();return}if(Y._inRange(e.height,-this.padding()*2-1,1)){this.update();return}let r=this.flipEnabled();var i=new C_;if(i.rotate(J.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf(`left`)>=0){let t=i.point({x:-this.padding()*2,y:0});if(e.x+=t.x,e.y+=t.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace(`left`,`right`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,!r){this.update();return}}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf(`right`)>=0){let t=i.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace(`right`,`left`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=this.padding()*2,!r){this.update();return}}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf(`top`)>=0){let t=i.point({x:0,y:-this.padding()*2});if(e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace(`top`,`bottom`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=this.padding()*2,!r){this.update();return}}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf(`bottom`)>=0){let t=i.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace(`bottom`,`top`),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=this.padding()*2,!r){this.update();return}}if(this.boundBoxFunc()){let t=this.boundBoxFunc()(n,e);t?e=t:Y.warn(`boundBoxFunc returned falsy. You should return new bound rect from it!`)}let a=1e7,o=new C_;o.translate(n.x,n.y),o.rotate(n.rotation),o.scale(n.width/a,n.height/a);let s=new C_;s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(e.width/a,e.height/a);let c=s.multiply(o.invert());this._nodes.forEach(e=>{var n;let r=e.getParent().getAbsoluteTransform(),i=e.getTransform().copy();i.translate(e.offsetX(),e.offsetY());let a=new C_;a.multiply(r.copy().invert()).multiply(c).multiply(r).multiply(i);let o=a.decompose();e.setAttrs(o),this._fire(`transform`,{evt:t,target:e}),e._fire(`transform`,{evt:t,target:e}),(n=e.getLayer())==null||n.batchDraw()}),this.rotation(Y._getRotation(e.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){this.findOne(e).setAttrs(t)}update(){var e,t=this._getNodeRect();this.rotation(Y._getRotation(t.rotation));var n=t.width,r=t.height,i=this.enabledAnchors(),a=this.resizeEnabled(),o=this.padding(),s=this.anchorSize();this.find(`._anchor`).forEach(e=>{e.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(`.top-left`,{x:0,y:0,offsetX:s/2+o,offsetY:s/2+o,visible:a&&i.indexOf(`top-left`)>=0}),this._batchChangeChild(`.top-center`,{x:n/2,y:0,offsetY:s/2+o,visible:a&&i.indexOf(`top-center`)>=0}),this._batchChangeChild(`.top-right`,{x:n,y:0,offsetX:s/2-o,offsetY:s/2+o,visible:a&&i.indexOf(`top-right`)>=0}),this._batchChangeChild(`.middle-left`,{x:0,y:r/2,offsetX:s/2+o,visible:a&&i.indexOf(`middle-left`)>=0}),this._batchChangeChild(`.middle-right`,{x:n,y:r/2,offsetX:s/2-o,visible:a&&i.indexOf(`middle-right`)>=0}),this._batchChangeChild(`.bottom-left`,{x:0,y:r,offsetX:s/2+o,offsetY:s/2-o,visible:a&&i.indexOf(`bottom-left`)>=0}),this._batchChangeChild(`.bottom-center`,{x:n/2,y:r,offsetY:s/2-o,visible:a&&i.indexOf(`bottom-center`)>=0}),this._batchChangeChild(`.bottom-right`,{x:n,y:r,offsetX:s/2-o,offsetY:s/2-o,visible:a&&i.indexOf(`bottom-right`)>=0}),this._batchChangeChild(`.rotater`,{x:n/2,y:-this.rotateAnchorOffset()*Y._sign(r)-o,visible:this.rotateEnabled()}),this._batchChangeChild(`.back`,{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(e=this.getLayer())==null||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var e=this.findOne(`.`+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=``),Zy.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Q.prototype.toObject.call(this)}};function Ax(e){return e instanceof Array||Y.warn(`enabledAnchors value should be an array`),e instanceof Array&&e.forEach(function(e){Cx.indexOf(e)===-1&&Y.warn(`Unknown anchor name: `+e+`. Available names are: `+Cx.join(`, `))}),e||[]}kx.prototype.className=`Transformer`,S_(kx),Z.addGetterSetter(kx,`enabledAnchors`,Cx,Ax),Z.addGetterSetter(kx,`flipEnabled`,!0,q_()),Z.addGetterSetter(kx,`resizeEnabled`,!0),Z.addGetterSetter(kx,`anchorSize`,10,X()),Z.addGetterSetter(kx,`rotateEnabled`,!0),Z.addGetterSetter(kx,`rotationSnaps`,[]),Z.addGetterSetter(kx,`rotateAnchorOffset`,50,X()),Z.addGetterSetter(kx,`rotationSnapTolerance`,5,X()),Z.addGetterSetter(kx,`borderEnabled`,!0),Z.addGetterSetter(kx,`anchorStroke`,`rgb(0, 161, 255)`),Z.addGetterSetter(kx,`anchorStrokeWidth`,1,X()),Z.addGetterSetter(kx,`anchorFill`,`white`),Z.addGetterSetter(kx,`anchorCornerRadius`,0,X()),Z.addGetterSetter(kx,`borderStroke`,`rgb(0, 161, 255)`),Z.addGetterSetter(kx,`borderStrokeWidth`,1,X()),Z.addGetterSetter(kx,`borderDash`),Z.addGetterSetter(kx,`keepRatio`,!0),Z.addGetterSetter(kx,`centeredScaling`,!1),Z.addGetterSetter(kx,`ignoreStroke`,!1),Z.addGetterSetter(kx,`padding`,0,X()),Z.addGetterSetter(kx,`node`),Z.addGetterSetter(kx,`nodes`),Z.addGetterSetter(kx,`boundBoxFunc`),Z.addGetterSetter(kx,`anchorDragBoundFunc`),Z.addGetterSetter(kx,`shouldOverdrawWholeArea`,!1),Z.addGetterSetter(kx,`useSingleNodeRotation`,!0),Z.backCompat(kx,{lineEnabled:`borderEnabled`,rotateHandlerOffset:`rotateAnchorOffset`,enabledHandlers:`enabledAnchors`});var jx=class extends ${_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,J.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};jx.prototype.className=`Wedge`,jx.prototype._centroid=!0,jx.prototype._attrsAffectingSize=[`radius`],S_(jx),Z.addGetterSetter(jx,`radius`,0,X()),Z.addGetterSetter(jx,`angle`,0,X()),Z.addGetterSetter(jx,`clockwise`,!1),Z.backCompat(jx,{angleDeg:`angle`,getAngleDeg:`getAngle`,setAngleDeg:`setAngle`});function Mx(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var Nx=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Px=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Fx(e,t){var n=e.data,r=e.width,i=e.height,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,ee=t+t+1,k=r-1,A=i-1,j=t+1,te=j*(j+1)/2,M=new Mx,ne=null,N=M,P=null,re=null,F=Nx[t],ie=Px[t];for(s=1;s<ee;s++)N=N.next=new Mx,s===j&&(ne=N);for(N.next=M,d=u=0,o=0;o<i;o++){for(b=x=S=C=f=p=m=h=0,g=j*(w=n[u]),_=j*(T=n[u+1]),v=j*(E=n[u+2]),y=j*(D=n[u+3]),f+=te*w,p+=te*T,m+=te*E,h+=te*D,N=M,s=0;s<j;s++)N.r=w,N.g=T,N.b=E,N.a=D,N=N.next;for(s=1;s<j;s++)c=u+((k<s?k:s)<<2),f+=(N.r=w=n[c])*(O=j-s),p+=(N.g=T=n[c+1])*O,m+=(N.b=E=n[c+2])*O,h+=(N.a=D=n[c+3])*O,b+=w,x+=T,S+=E,C+=D,N=N.next;for(P=M,re=ne,a=0;a<r;a++)n[u+3]=D=h*F>>ie,D===0?n[u]=n[u+1]=n[u+2]=0:(D=255/D,n[u]=(f*F>>ie)*D,n[u+1]=(p*F>>ie)*D,n[u+2]=(m*F>>ie)*D),f-=g,p-=_,m-=v,h-=y,g-=P.r,_-=P.g,v-=P.b,y-=P.a,c=d+((c=a+t+1)<k?c:k)<<2,b+=P.r=n[c],x+=P.g=n[c+1],S+=P.b=n[c+2],C+=P.a=n[c+3],f+=b,p+=x,m+=S,h+=C,P=P.next,g+=w=re.r,_+=T=re.g,v+=E=re.b,y+=D=re.a,b-=w,x-=T,S-=E,C-=D,re=re.next,u+=4;d+=r}for(a=0;a<r;a++){for(x=S=C=b=p=m=h=f=0,u=a<<2,g=j*(w=n[u]),_=j*(T=n[u+1]),v=j*(E=n[u+2]),y=j*(D=n[u+3]),f+=te*w,p+=te*T,m+=te*E,h+=te*D,N=M,s=0;s<j;s++)N.r=w,N.g=T,N.b=E,N.a=D,N=N.next;for(l=r,s=1;s<=t;s++)u=l+a<<2,f+=(N.r=w=n[u])*(O=j-s),p+=(N.g=T=n[u+1])*O,m+=(N.b=E=n[u+2])*O,h+=(N.a=D=n[u+3])*O,b+=w,x+=T,S+=E,C+=D,N=N.next,s<A&&(l+=r);for(u=a,P=M,re=ne,o=0;o<i;o++)c=u<<2,n[c+3]=D=h*F>>ie,D>0?(D=255/D,n[c]=(f*F>>ie)*D,n[c+1]=(p*F>>ie)*D,n[c+2]=(m*F>>ie)*D):n[c]=n[c+1]=n[c+2]=0,f-=g,p-=_,m-=v,h-=y,g-=P.r,_-=P.g,v-=P.b,y-=P.a,c=a+((c=o+j)<A?c:A)*r<<2,f+=b+=P.r=n[c],p+=x+=P.g=n[c+1],m+=S+=P.b=n[c+2],h+=C+=P.a=n[c+3],P=P.next,g+=w=re.r,_+=T=re.g,v+=E=re.b,y+=D=re.a,b-=w,x-=T,S-=E,C-=D,re=re.next,u+=r}}var Ix=function(e){var t=Math.round(this.blurRadius());t>0&&Fx(e,t)};Z.addGetterSetter(Q,`blurRadius`,0,X(),Z.afterSetFilter);var Lx=function(e){var t=this.brightness()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=t,n[i+1]+=t,n[i+2]+=t};Z.addGetterSetter(Q,`brightness`,0,X(),Z.afterSetFilter);var Rx=function(e){var t=((this.contrast()+100)/100)**2,n=e.data,r=n.length,i=150,a=150,o=150,s;for(s=0;s<r;s+=4)i=n[s],a=n[s+1],o=n[s+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,n[s]=i,n[s+1]=a,n[s+2]=o};Z.addGetterSetter(Q,`contrast`,0,X(),Z.afterSetFilter);var zx=function(e){var t=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),a=0,o=0,s=e.data,c=e.width,l=e.height,u=c*4,d=l;switch(r){case`top-left`:a=-1,o=-1;break;case`top`:a=-1,o=0;break;case`top-right`:a=-1,o=1;break;case`right`:a=0,o=1;break;case`bottom-right`:a=1,o=1;break;case`bottom`:a=1,o=0;break;case`bottom-left`:a=1,o=-1;break;case`left`:a=0,o=-1;break;default:Y.error(`Unknown emboss direction: `+r)}do{var f=(d-1)*u,p=a;d+p<1&&(p=0),d+p>l&&(p=0);var m=(d-1+p)*c*4,h=c;do{var g=f+(h-1)*4,_=o;h+_<1&&(_=0),h+_>c&&(_=0);var v=m+(h-1+_)*4,y=s[g]-s[v],b=s[g+1]-s[v+1],x=s[g+2]-s[v+2],S=y,C=S>0?S:-S,w=b>0?b:-b,T=x>0?x:-x;if(w>C&&(S=b),T>C&&(S=x),S*=t,i){var E=s[g]+S,D=s[g+1]+S,O=s[g+2]+S;s[g]=E>255?255:E<0?0:E,s[g+1]=D>255?255:D<0?0:D,s[g+2]=O>255?255:O<0?0:O}else{var ee=n-S;ee<0?ee=0:ee>255&&(ee=255),s[g]=s[g+1]=s[g+2]=ee}}while(--h)}while(--d)};Z.addGetterSetter(Q,`embossStrength`,.5,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`embossWhiteLevel`,.5,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`embossDirection`,`top-left`,null,Z.afterSetFilter),Z.addGetterSetter(Q,`embossBlend`,!1,null,Z.afterSetFilter);function Bx(e,t,n,r,i){var a=n-t,o=i-r,s;return a===0?r+o/2:o===0?r:(s=(e-t)/a,s=o*s+r,s)}var Vx=function(e){var t=e.data,n=t.length,r=t[0],i=r,a,o=t[1],s=o,c,l=t[2],u=l,d,f,p=this.enhance();if(p!==0){for(f=0;f<n;f+=4)a=t[f+0],a<r?r=a:a>i&&(i=a),c=t[f+1],c<o?o=c:c>s&&(s=c),d=t[f+2],d<l?l=d:d>u&&(u=d);i===r&&(i=255,r=0),s===o&&(s=255,o=0),u===l&&(u=255,l=0);var m,h,g,_,v,y,b,x,S;for(p>0?(h=i+p*(255-i),g=r-p*(r-0),v=s+p*(255-s),y=o-p*(o-0),x=u+p*(255-u),S=l-p*(l-0)):(m=(i+r)*.5,h=i+p*(i-m),g=r+p*(r-m),_=(s+o)*.5,v=s+p*(s-_),y=o+p*(o-_),b=(u+l)*.5,x=u+p*(u-b),S=l+p*(l-b)),f=0;f<n;f+=4)t[f+0]=Bx(t[f+0],r,i,g,h),t[f+1]=Bx(t[f+1],o,s,y,v),t[f+2]=Bx(t[f+2],l,u,S,x)}};Z.addGetterSetter(Q,`enhance`,0,X(),Z.afterSetFilter);var Hx=function(e){var t=e.data,n=t.length,r,i;for(r=0;r<n;r+=4)i=.34*t[r]+.5*t[r+1]+.16*t[r+2],t[r]=i,t[r+1]=i,t[r+2]=i};Z.addGetterSetter(Q,`hue`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`saturation`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`luminance`,0,X(),Z.afterSetFilter);var Ux=function(e){var t=e.data,n=t.length,r=1,i=2**this.saturation(),a=Math.abs(this.hue()+360)%360,o=this.luminance()*127,s,c=r*i*Math.cos(a*Math.PI/180),l=r*i*Math.sin(a*Math.PI/180),u=.299*r+.701*c+.167*l,d=.587*r-.587*c+.33*l,f=.114*r-.114*c-.497*l,p=.299*r-.299*c-.328*l,m=.587*r+.413*c+.035*l,h=.114*r-.114*c+.293*l,g=.299*r-.3*c+1.25*l,_=.587*r-.586*c-1.05*l,v=.114*r+.886*c-.2*l,y,b,x,S;for(s=0;s<n;s+=4)y=t[s+0],b=t[s+1],x=t[s+2],S=t[s+3],t[s+0]=u*y+d*b+f*x+o,t[s+1]=p*y+m*b+h*x+o,t[s+2]=g*y+_*b+v*x+o,t[s+3]=S},Wx=function(e){var t=e.data,n=t.length,r=2**this.value(),i=2**this.saturation(),a=Math.abs(this.hue()+360)%360,o,s=r*i*Math.cos(a*Math.PI/180),c=r*i*Math.sin(a*Math.PI/180),l=.299*r+.701*s+.167*c,u=.587*r-.587*s+.33*c,d=.114*r-.114*s-.497*c,f=.299*r-.299*s-.328*c,p=.587*r+.413*s+.035*c,m=.114*r-.114*s+.293*c,h=.299*r-.3*s+1.25*c,g=.587*r-.586*s-1.05*c,_=.114*r+.886*s-.2*c,v,y,b,x;for(o=0;o<n;o+=4)v=t[o+0],y=t[o+1],b=t[o+2],x=t[o+3],t[o+0]=l*v+u*y+d*b,t[o+1]=f*v+p*y+m*b,t[o+2]=h*v+g*y+_*b,t[o+3]=x};Z.addGetterSetter(Q,`hue`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`saturation`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`value`,0,X(),Z.afterSetFilter);var Gx=function(e){var t=e.data,n=t.length,r;for(r=0;r<n;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},Kx=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2,l,u,d,f=0,p=0,m=0,h=0,g,_=Math.sqrt(s*s+c*c);u=a-s,d=o-c,g=Math.sqrt(u*u+d*d),_=g>_?g:_;var v=o,y=a,b,x,S=360/y*Math.PI/180,C,w;for(x=0;x<y;x+=1)for(C=Math.sin(x*S),w=Math.cos(x*S),b=0;b<v;b+=1)u=Math.floor(s+_*b/v*w),d=Math.floor(c+_*b/v*C),l=(d*a+u)*4,f=r[l+0],p=r[l+1],m=r[l+2],h=r[l+3],l=(x+b*a)*4,i[l+0]=f,i[l+1]=p,i[l+2]=m,i[l+3]=h},qx=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,s=n.polarCenterX||a/2,c=n.polarCenterY||o/2,l,u,d,f,p,m=0,h=0,g=0,_=0,v,y=Math.sqrt(s*s+c*c);u=a-s,d=o-c,v=Math.sqrt(u*u+d*d),y=v>y?v:y;var b=o,x=a,S,C,w=n.polarRotation||0,T,E;for(u=0;u<a;u+=1)for(d=0;d<o;d+=1)f=u-s,p=d-c,S=Math.sqrt(f*f+p*p)*b/y,C=(Math.atan2(p,f)*180/Math.PI+360+w)%360,C=C*x/360,T=Math.floor(C),E=Math.floor(S),l=(E*a+T)*4,m=r[l+0],h=r[l+1],g=r[l+2],_=r[l+3],l=(d*a+u)*4,i[l+0]=m,i[l+1]=h,i[l+2]=g,i[l+3]=_},Jx=function(e){var t=e.width,n=e.height,r,i,a,o,s,c,l,u,d,f,p=Math.round(this.kaleidoscopePower()),m=Math.round(this.kaleidoscopeAngle()),h=Math.floor(m%360*t/360);if(!(p<1)){var g=Y.createCanvasElement();g.width=t,g.height=n;var _=g.getContext(`2d`).getImageData(0,0,t,n);Kx(e,_,{polarCenterX:t/2,polarCenterY:n/2});for(var v=t/2**p;v<=8;)v*=2,--p;v=Math.ceil(v);var y=v,b=0,x=y,S=1;for(h+v>t&&(b=y,x=0,S=-1),i=0;i<n;i+=1)for(r=b;r!==x;r+=S)a=Math.round(r+h)%t,d=(t*i+a)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+r)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;for(i=0;i<n;i+=1)for(y=Math.floor(v),o=0;o<p;o+=1){for(r=0;r<y+1;r+=1)d=(t*i+r)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+y*2-r-1)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;y*=2}qx(_,e,{polarRotation:0})}};Z.addGetterSetter(Q,`kaleidoscopePower`,2,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`kaleidoscopeAngle`,0,X(),Z.afterSetFilter);function Yx(e,t,n){var r=(n*e.width+t)*4,i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function Xx(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2)}function Zx(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function Qx(e,t){var n=Yx(e,0,0),r=Yx(e,e.width-1,0),i=Yx(e,0,e.height-1),a=Yx(e,e.width-1,e.height-1),o=t||10;if(Xx(n,r)<o&&Xx(r,a)<o&&Xx(a,i)<o&&Xx(i,n)<o){for(var s=Zx([r,n,a,i]),c=[],l=0;l<e.width*e.height;l++)c[l]=Xx(s,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]])<o?0:255;return c}}function $x(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function eS(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var p=s+d-a,m=c+f-a;if(p>=0&&p<n&&m>=0&&m<t){var h=p*t+m,g=r[d*i+f];u+=e[h]*g}}o[l]=u===2040?255:0}return o}function tS(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var p=s+d-a,m=c+f-a;if(p>=0&&p<n&&m>=0&&m<t){var h=p*t+m,g=r[d*i+f];u+=e[h]*g}}o[l]=u>=1020?255:0}return o}function nS(e,t,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var p=s+d-a,m=c+f-a;if(p>=0&&p<n&&m>=0&&m<t){var h=p*t+m,g=r[d*i+f];u+=e[h]*g}}o[l]=u}return o}Z.addGetterSetter(Q,`threshold`,0,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`noise`,.2,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`pixelSize`,8,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`levels`,.5,X(),Z.afterSetFilter),Z.addGetterSetter(Q,`red`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`green`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`blue`,0,V_,Z.afterSetFilter),Z.addGetterSetter(Q,`red`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`green`,0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Z.addGetterSetter(Q,`blue`,0,V_,Z.afterSetFilter),Z.addGetterSetter(Q,`alpha`,1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}),Z.addGetterSetter(Q,`threshold`,.5,X(),Z.afterSetFilter),lb.Util._assign(lb,{Arc:ub,Arrow:hb,Circle:gb,Ellipse:_b,Image:vb,Label:Db,Tag:Ob,Line:pb,Path:mb,Rect:kb,RegularPolygon:Ab,Ring:Mb,Sprite:Nb,Star:Pb,Text:ux,TextPath:hx,Transformer:kx,Wedge:jx,Filters:{Blur:Ix,Brighten:Lx,Contrast:Rx,Emboss:zx,Enhance:Vx,Grayscale:Hx,HSL:Ux,HSV:Wx,Invert:Gx,Kaleidoscope:Jx,Mask:function(e){var t=Qx(e,this.threshold());return t&&(t=eS(t,e.width,e.height),t=tS(t,e.width,e.height),t=nS(t,e.width,e.height),$x(e,t)),e},Noise:function(e){var t=this.noise()*255,n=e.data,r=n.length,i=t/2,a;for(a=0;a<r;a+=4)n[a+0]+=i-2*i*Math.random(),n[a+1]+=i-2*i*Math.random(),n[a+2]+=i-2*i*Math.random()},Pixelate:function(e){var t=Math.ceil(this.pixelSize()),n=e.width,r=e.height,i,a,o,s,c,l,u,d=Math.ceil(n/t),f=Math.ceil(r/t),p,m,h,g,_,v,y,b=e.data;if(t<=0){Y.error(`pixelSize value can not be <= 0`);return}for(_=0;_<d;_+=1)for(v=0;v<f;v+=1){for(s=0,c=0,l=0,u=0,p=_*t,m=p+t,h=v*t,g=h+t,y=0,i=p;i<m;i+=1)if(!(i>=n))for(a=h;a<g;a+=1)a>=r||(o=(n*a+i)*4,s+=b[o+0],c+=b[o+1],l+=b[o+2],u+=b[o+3],y+=1);for(s/=y,c/=y,l/=y,u/=y,i=p;i<m;i+=1)if(!(i>=n))for(a=h;a<g;a+=1)a>=r||(o=(n*a+i)*4,b[o+0]=s,b[o+1]=c,b[o+2]=l,b[o+3]=u)}},Posterize:function(e){var t=Math.round(this.levels()*254)+1,n=e.data,r=n.length,i=255/t,a;for(a=0;a<r;a+=1)n[a]=Math.floor(n[a]/i)*i},RGB:function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o,s;for(o=0;o<n;o+=4)s=(.34*t[o]+.5*t[o+1]+.16*t[o+2])/255,t[o]=s*r,t[o+1]=s*i,t[o+2]=s*a,t[o+3]=t[o+3]},RGBA:function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o=this.alpha(),s,c;for(s=0;s<n;s+=4)c=1-o,t[s]=r*o+t[s]*c,t[s+1]=i*o+t[s+1]*c,t[s+2]=a*o+t[s+2]*c},Sepia:function(e){var t=e.data,n=t.length,r,i,a,o;for(r=0;r<n;r+=4)i=t[r+0],a=t[r+1],o=t[r+2],t[r+0]=Math.min(255,i*.393+a*.769+o*.189),t[r+1]=Math.min(255,i*.349+a*.686+o*.168),t[r+2]=Math.min(255,i*.272+a*.534+o*.131)},Solarize:function(e){var t=e.data,n=e.width,r=e.height,i=n*4,a=r;do{var o=(a-1)*i,s=n;do{var c=o+(s-1)*4,l=t[c],u=t[c+1],d=t[c+2];l>127&&(l=255-l),u>127&&(u=255-u),d>127&&(d=255-d),t[c]=l,t[c+1]=u,t[c+2]=d}while(--s)}while(--a)},Threshold:function(e){var t=this.threshold()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=1)n[i]=n[i]<t?0:255}}});var rS=lb,iS=s(((e,t)=>{t.exports=function(e){var t={},n=p(),r=h(),i=Object.assign;function a(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s=Symbol.for(`react.element`),c=Symbol.for(`react.portal`),l=Symbol.for(`react.fragment`),u=Symbol.for(`react.strict_mode`),d=Symbol.for(`react.profiler`),f=Symbol.for(`react.provider`),m=Symbol.for(`react.context`),g=Symbol.for(`react.forward_ref`),_=Symbol.for(`react.suspense`),v=Symbol.for(`react.suspense_list`),y=Symbol.for(`react.memo`),b=Symbol.for(`react.lazy`),x=Symbol.for(`react.offscreen`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}function w(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case l:return`Fragment`;case c:return`Portal`;case d:return`Profiler`;case u:return`StrictMode`;case _:return`Suspense`;case v:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case m:return(e.displayName||`Context`)+`.Consumer`;case f:return(e._context.displayName||`Context`)+`.Provider`;case g:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case y:return t=e.displayName||null,t===null?w(e.type)||`Memo`:t;case b:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}function T(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=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return w(t);case 8:return t===u?`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(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function E(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function D(e){if(E(e)!==e)throw Error(a(188))}function O(e){var t=e.alternate;if(!t){if(t=E(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return D(i),e;if(o===r)return D(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function ee(e){return e=O(e),e===null?null:k(e)}function k(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=k(e);if(t!==null)return t;e=e.sibling}return null}function A(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){if(e.tag!==4){var t=A(e);if(t!==null)return t}e=e.sibling}return null}var j=Array.isArray,te=e.getPublicInstance,M=e.getRootHostContext,ne=e.getChildHostContext,N=e.prepareForCommit,P=e.resetAfterCommit,re=e.createInstance,F=e.appendInitialChild,ie=e.finalizeInitialChildren,ae=e.prepareUpdate,oe=e.shouldSetTextContent,se=e.createTextInstance,ce=e.scheduleTimeout,le=e.cancelTimeout,ue=e.noTimeout,de=e.isPrimaryRenderer,fe=e.supportsMutation,pe=e.supportsPersistence,me=e.supportsHydration,he=e.getInstanceFromNode,ge=e.preparePortalMount,_e=e.getCurrentEventPriority,ve=e.detachDeletedInstance,ye=e.supportsMicrotasks,be=e.scheduleMicrotask,xe=e.supportsTestSelectors,Se=e.findFiberRoot,Ce=e.getBoundingRect,we=e.getTextContent,Te=e.isHiddenSubtree,Ee=e.matchAccessibilityRole,De=e.setFocusIfFocusable,Oe=e.setupIntersectionObserver,ke=e.appendChild,Ae=e.appendChildToContainer,je=e.commitTextUpdate,Me=e.commitMount,Ne=e.commitUpdate,Pe=e.insertBefore,Fe=e.insertInContainerBefore,Ie=e.removeChild,Le=e.removeChildFromContainer,Re=e.resetTextContent,ze=e.hideInstance,Be=e.hideTextInstance,Ve=e.unhideInstance,He=e.unhideTextInstance,Ue=e.clearContainer,We=e.cloneInstance,Ge=e.createContainerChildSet,Ke=e.appendChildToContainerChildSet,qe=e.finalizeContainerChildren,Je=e.replaceContainerChildren,Ye=e.cloneHiddenInstance,Xe=e.cloneHiddenTextInstance,Ze=e.canHydrateInstance,Qe=e.canHydrateTextInstance,$e=e.canHydrateSuspenseInstance,et=e.isSuspenseInstancePending,tt=e.isSuspenseInstanceFallback,I=e.getSuspenseInstanceFallbackErrorDetails,L=e.registerSuspenseInstanceRetry,nt=e.getNextHydratableSibling,rt=e.getFirstHydratableChild,R=e.getFirstHydratableChildWithinContainer,z=e.getFirstHydratableChildWithinSuspenseInstance,it=e.hydrateInstance,at=e.hydrateTextInstance,ot=e.hydrateSuspenseInstance,st=e.getNextHydratableInstanceAfterSuspenseInstance,ct=e.commitHydratedContainer,lt=e.commitHydratedSuspenseInstance,ut=e.clearSuspenseBoundary,dt=e.clearSuspenseBoundaryFromContainer,ft=e.shouldDeleteUnhydratedTailInstances,pt=e.didNotMatchHydratedContainerTextInstance,mt=e.didNotMatchHydratedTextInstance,ht;function gt(e){if(ht===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ht=t&&t[1]||``}return`
|
|
149
|
+
`+ht+e}var _t=!1;function vt(e,t){if(!e||_t)return``;_t=!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()}}),typeof Reflect==`object`&&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&&typeof t.stack==`string`){for(var i=t.stack.split(`
|
|
150
150
|
`),a=r.stack.split(`
|
|
151
151
|
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
|
|
152
|
-
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{gt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ht(e):``}var vt=Object.prototype.hasOwnProperty,yt=[],bt=-1;function xt(e){return{current:e}}function St(e){0>bt||(e.current=yt[bt],yt[bt]=null,bt--)}function Ct(e,t){bt++,yt[bt]=e.current,e.current=t}var wt={},Tt=xt(wt),Et=xt(!1),Dt=wt;function Ot(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function kt(e){return e=e.childContextTypes,e!=null}function At(){St(Et),St(Tt)}function jt(e,t,n){if(Tt.current!==wt)throw Error(a(168));Ct(Tt,t),Ct(Et,n)}function Mt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!=`function`)return n;for(var o in r=r.getChildContext(),r)if(!(o in t))throw Error(a(108,T(e)||`Unknown`,o));return i({},n,r)}function Nt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,Dt=Tt.current,Ct(Tt,e),Ct(Et,Et.current),!0}function Pt(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mt(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,St(Et),St(Tt),Ct(Tt,e)):St(Et),Ct(Et,n)}var Ft=Math.clz32?Math.clz32:Rt,It=Math.log,Lt=Math.LN2;function Rt(e){return e>>>=0,e===0?32:31-(It(e)/Lt|0)|0}var zt=64,Bt=4194304;function Vt(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ht(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Vt(a))):r=Vt(s)}else o=n&~i,o===0?a!==0&&(r=Vt(a)):r=Vt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),i=1<<n,r|=e[n],t&=~i;return r}function Ut(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ft(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ut(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Gt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Kt(){var e=zt;return zt<<=1,!(zt&4194240)&&(zt=64),e}function qt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Yt(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 i=31-Ft(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Xt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Zt=0;function Qt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $t=r.unstable_scheduleCallback,en=r.unstable_cancelCallback,tn=r.unstable_shouldYield,nn=r.unstable_requestPaint,rn=r.unstable_now,an=r.unstable_ImmediatePriority,on=r.unstable_UserBlockingPriority,sn=r.unstable_NormalPriority,cn=r.unstable_IdlePriority,ln=null,un=null;function dn(e){if(un&&typeof un.onCommitFiberRoot==`function`)try{un.onCommitFiberRoot(ln,e,void 0,(e.current.flags&128)==128)}catch{}}function fn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var pn=typeof Object.is==`function`?Object.is:fn,mn=null,hn=!1,gn=!1;function _n(e){mn===null?mn=[e]:mn.push(e)}function vn(e){hn=!0,_n(e)}function yn(){if(!gn&&mn!==null){gn=!0;var e=0,t=Zt;try{var n=mn;for(Zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mn=null,hn=!1}catch(t){throw mn!==null&&(mn=mn.slice(e+1)),$t(an,yn),t}finally{Zt=t,gn=!1}}return null}var bn=[],xn=0,Sn=null,Cn=0,wn=[],Tn=0,En=null,Dn=1,On=``;function kn(e,t){bn[xn++]=Cn,bn[xn++]=Sn,Sn=e,Cn=t}function An(e,t,n){wn[Tn++]=Dn,wn[Tn++]=On,wn[Tn++]=En,En=e;var r=Dn;e=On;var i=32-Ft(r)-1;r&=~(1<<i),n+=1;var a=32-Ft(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Dn=1<<32-Ft(t)+i|n<<i|r,On=a+e}else Dn=1<<a|n<<i|r,On=e}function jn(e){e.return!==null&&(kn(e,1),An(e,1,0))}function Mn(e){for(;e===Sn;)Sn=bn[--xn],bn[xn]=null,Cn=bn[--xn],bn[xn]=null;for(;e===En;)En=wn[--Tn],wn[Tn]=null,On=wn[--Tn],wn[Tn]=null,Dn=wn[--Tn],wn[Tn]=null}var Nn=null,Pn=null,Fn=!1,In=!1,Ln=null;function Rn(e,t){var n=ks(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function zn(e,t){switch(e.tag){case 5:return t=Xe(t,e.type,e.pendingProps),t===null?!1:(e.stateNode=t,Nn=e,Pn=nt(t),!0);case 6:return t=Ze(t,e.pendingProps),t===null?!1:(e.stateNode=t,Nn=e,Pn=null,!0);case 13:if(t=Qe(t),t!==null){var n=En===null?null:{id:Dn,overflow:On};return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ks(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Nn=e,Pn=null,!0}return!1;default:return!1}}function Bn(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Vn(e){if(Fn){var t=Pn;if(t){var n=t;if(!zn(e,t)){if(Bn(e))throw Error(a(418));t=R(n);var r=Nn;t&&zn(e,t)?Rn(r,n):(e.flags=e.flags&-4097|2,Fn=!1,Nn=e)}}else{if(Bn(e))throw Error(a(418));e.flags=e.flags&-4097|2,Fn=!1,Nn=e}}}function Hn(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nn=e}function Un(e){if(!pe||e!==Nn)return!1;if(!Fn)return Hn(e),Fn=!0,!1;if(e.tag!==3&&(e.tag!==5||dt(e.type)&&!ae(e.type,e.memoizedProps))){var t=Pn;if(t){if(Bn(e))throw Wn(),Error(a(418));for(;t;)Rn(e,t),t=R(t)}}if(Hn(e),e.tag===13){if(!pe)throw Error(a(316));if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Pn=ot(e)}else Pn=Nn?R(e.stateNode):null;return!0}function Wn(){for(var e=Pn;e;)e=R(e)}function Gn(){pe&&(Pn=Nn=null,In=Fn=!1)}function Kn(e){Ln===null?Ln=[e]:Ln.push(e)}var qn=o.ReactCurrentBatchConfig;function Jn(e,t){if(pn(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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 i=n[r];if(!vt.call(t,i)||!pn(e[i],t[i]))return!1}return!0}function Yn(e){switch(e.tag){case 5:return ht(e.type);case 16:return ht(`Lazy`);case 13:return ht(`Suspense`);case 19:return ht(`SuspenseList`);case 0:case 2:case 15:return e=_t(e.type,!1),e;case 11:return e=_t(e.type.render,!1),e;case 1:return e=_t(e.type,!0),e;default:return``}}function Xn(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Zn(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Qn(e){var t=e._init;return t(e._payload)}function $n(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function i(e,t){return e=Ms(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function u(t){return e&&t.alternate===null&&(t.flags|=2),t}function d(e,t,n,r){return t===null||t.tag!==6?(t=Is(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n,r){var a=n.type;return a===l?m(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===b&&Qn(a)===t.type)?(r=i(t,n.props),r.ref=Xn(e,t,n),r.return=e,r):(r=Ns(n.type,n.key,n.props,null,e.mode,r),r.ref=Xn(e,t,n),r.return=e,r)}function p(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ls(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function m(e,t,n,r,a){return t===null||t.tag!==7?(t=Ps(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function h(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=Is(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case s:return n=Ns(t.type,t.key,t.props,null,e.mode,n),n.ref=Xn(e,null,t),n.return=e,n;case c:return t=Ls(t,e.mode,n),t.return=e,t;case b:var r=t._init;return h(e,r(t._payload),n)}if(M(t)||C(t))return t=Ps(t,e.mode,n,null),t.return=e,t;Zn(e,t)}return null}function g(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?d(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case s:return n.key===i?f(e,t,n,r):null;case c:return n.key===i?p(e,t,n,r):null;case b:return i=n._init,g(e,t,i(n._payload),r)}if(M(n)||C(n))return i===null?m(e,t,n,r,null):null;Zn(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,d(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case s:return e=e.get(r.key===null?n:r.key)||null,f(t,e,r,i);case c:return e=e.get(r.key===null?n:r.key)||null,p(t,e,r,i);case b:var a=r._init;return _(e,t,n,a(r._payload),i)}if(M(r)||C(r))return e=e.get(n)||null,m(t,e,r,i,null);Zn(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,f=a=0,p=null;d!==null&&f<s.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var m=g(i,d,s[f],c);if(m===null){d===null&&(d=p);break}e&&d&&m.alternate===null&&t(i,d),a=o(m,a,f),u===null?l=m:u.sibling=m,u=m,d=p}if(f===s.length)return n(i,d),Fn&&kn(i,f),l;if(d===null){for(;f<s.length;f++)d=h(i,s[f],c),d!==null&&(a=o(d,a,f),u===null?l=d:u.sibling=d,u=d);return Fn&&kn(i,f),l}for(d=r(i,d);f<s.length;f++)p=_(d,i,f,s[f],c),p!==null&&(e&&p.alternate!==null&&d.delete(p.key===null?f:p.key),a=o(p,a,f),u===null?l=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return t(i,e)}),Fn&&kn(i,f),l}function y(i,s,c,l){var u=C(c);if(typeof u!=`function`)throw Error(a(150));if(c=u.call(c),c==null)throw Error(a(151));for(var d=u=null,f=s,p=s=0,m=null,v=c.next();f!==null&&!v.done;p++,v=c.next()){f.index>p?(m=f,f=null):m=f.sibling;var y=g(i,f,v.value,l);if(y===null){f===null&&(f=m);break}e&&f&&y.alternate===null&&t(i,f),s=o(y,s,p),d===null?u=y:d.sibling=y,d=y,f=m}if(v.done)return n(i,f),Fn&&kn(i,p),u;if(f===null){for(;!v.done;p++,v=c.next())v=h(i,v.value,l),v!==null&&(s=o(v,s,p),d===null?u=v:d.sibling=v,d=v);return Fn&&kn(i,p),u}for(f=r(i,f);!v.done;p++,v=c.next())v=_(f,i,p,v.value,l),v!==null&&(e&&v.alternate!==null&&f.delete(v.key===null?p:v.key),s=o(v,s,p),d===null?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return t(i,e)}),Fn&&kn(i,p),u}function x(e,r,a,o){if(typeof a==`object`&&a&&a.type===l&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case s:a:{for(var d=a.key,f=r;f!==null;){if(f.key===d){if(d=a.type,d===l){if(f.tag===7){n(e,f.sibling),r=i(f,a.props.children),r.return=e,e=r;break a}}else if(f.elementType===d||typeof d==`object`&&d&&d.$$typeof===b&&Qn(d)===f.type){n(e,f.sibling),r=i(f,a.props),r.ref=Xn(e,f,a),r.return=e,e=r;break a}n(e,f);break}else t(e,f);f=f.sibling}a.type===l?(r=Ps(a.props.children,e.mode,o,a.key),r.return=e,e=r):(o=Ns(a.type,a.key,a.props,null,e.mode,o),o.ref=Xn(e,r,a),o.return=e,e=o)}return u(e);case c:a:{for(f=a.key;r!==null;){if(r.key===f)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=i(r,a.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=Ls(a,e.mode,o),r.return=e,e=r}return u(e);case b:return f=a._init,x(e,r,f(a._payload),o)}if(M(a))return v(e,r,a,o);if(C(a))return y(e,r,a,o);Zn(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),r=i(r,a),r.return=e,e=r):(n(e,r),r=Is(a,e.mode,o),r.return=e,e=r),u(e)):n(e,r)}return x}var er=$n(!0),tr=$n(!1),nr=xt(null),rr=null,ir=null,ar=null;function or(){ar=ir=rr=null}function sr(e,t,n){ue?(Ct(nr,t._currentValue),t._currentValue=n):(Ct(nr,t._currentValue2),t._currentValue2=n)}function cr(e){var t=nr.current;St(nr),ue?e._currentValue=t:e._currentValue2=t}function lr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ur(e,t){rr=e,ar=ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&($i=!0),e.firstContext=null)}function dr(e){var t=ue?e._currentValue:e._currentValue2;if(ar!==e)if(e={context:e,memoizedValue:t,next:null},ir===null){if(rr===null)throw Error(a(308));ir=e,rr.dependencies={lanes:0,firstContext:e}}else ir=ir.next=e;return t}var fr=null;function pr(e){fr===null?fr=[e]:fr.push(e)}function mr(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pr(t)):(n.next=i.next,i.next=n),t.interleaved=n,hr(e,r)}function hr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gr=!1;function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vr(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 yr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Co&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,hr(e,n)}return i=r.interleaved,i===null?(t.next=t,pr(r)):(t.next=i.next,i.next=t),r.interleaved=t,hr(e,n)}function xr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xt(e,n)}}function Sr(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cr(e,t,n,r){var a=e.updateQueue;gr=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==s&&(c===null?d.firstBaseUpdate=u:c.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=a.baseState;s=0,d=u=l=null,c=o;do{var p=c.lane,m=c.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});a:{var h=e,g=c;switch(p=t,m=n,g.tag){case 1:if(h=g.payload,typeof h==`function`){f=h.call(m,f,p);break a}f=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(m,f,p):h,p==null)break a;f=i({},f,p);break a;case 2:gr=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[c]:p.push(c))}else m={eventTime:m,lane:p,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,s|=p;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;p=c,c=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);jo|=s,e.lanes=s,e.memoizedState=f}}function wr(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!=`function`)throw Error(a(191,i));i.call(r)}}}var Tr={},Er=xt(Tr),Dr=xt(Tr),Or=xt(Tr);function kr(e){if(e===Tr)throw Error(a(174));return e}function Ar(e,t){Ct(Or,t),Ct(Dr,e),Ct(Er,Tr),e=N(t),St(Er),Ct(Er,e)}function jr(){St(Er),St(Dr),St(Or)}function Mr(e){var t=kr(Or.current),n=kr(Er.current);t=te(n,e.type,t),n!==t&&(Ct(Dr,e),Ct(Er,t))}function Nr(e){Dr.current===e&&(St(Er),St(Dr))}var Pr=xt(0);function Fr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$e(n)||et(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ir=[];function Lr(){for(var e=0;e<Ir.length;e++){var t=Ir[e];ue?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}Ir.length=0}var Rr=o.ReactCurrentDispatcher,zr=o.ReactCurrentBatchConfig,Br=0,Vr=null,Hr=null,Ur=null,Wr=!1,Gr=!1,Kr=0,qr=0;function Jr(){throw Error(a(321))}function Yr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function Xr(e,t,n,r,i,o){if(Br=o,Vr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rr.current=e===null||e.memoizedState===null?Ni:Pi,e=n(r,i),Gr){o=0;do{if(Gr=!1,Kr=0,25<=o)throw Error(a(301));o+=1,Ur=Hr=null,t.updateQueue=null,Rr.current=Fi,e=n(r,i)}while(Gr)}if(Rr.current=Mi,t=Hr!==null&&Hr.next!==null,Br=0,Ur=Hr=Vr=null,Wr=!1,t)throw Error(a(300));return e}function Zr(){var e=Kr!==0;return Kr=0,e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?Vr.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function $r(){if(Hr===null){var e=Vr.alternate;e=e===null?null:e.memoizedState}else e=Hr.next;var t=Ur===null?Vr.memoizedState:Ur.next;if(t!==null)Ur=t,Hr=e;else{if(e===null)throw Error(a(310));Hr=e,e={memoizedState:Hr.memoizedState,baseState:Hr.baseState,baseQueue:Hr.baseQueue,queue:Hr.queue,next:null},Ur===null?Vr.memoizedState=Ur=e:Ur=Ur.next=e}return Ur}function ei(e,t){return typeof t==`function`?t(e):t}function ti(e){var t=$r(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Hr,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Br&d)===d)l!==null&&(l=l.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 f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=r):l=l.next=f,Vr.lanes|=d,jo|=d}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=c,pn(r,t.memoizedState)||($i=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Vr.lanes|=o,jo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ni(e){var t=$r(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);pn(o,t.memoizedState)||($i=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ri(){}function ii(e,t){var n=Vr,r=$r(),i=t(),o=!pn(r.memoizedState,i);if(o&&(r.memoizedState=i,$i=!0),r=r.queue,gi(si.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ur!==null&&Ur.memoizedState.tag&1){if(n.flags|=2048,di(9,oi.bind(null,n,r,i,t),void 0,null),wo===null)throw Error(a(349));Br&30||ai(n,t,i)}return i}function ai(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vr.updateQueue,t===null?(t={lastEffect:null,stores:null},Vr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function oi(e,t,n,r){t.value=n,t.getSnapshot=r,ci(t)&&li(e)}function si(e,t,n){return n(function(){ci(t)&&li(e)})}function ci(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function li(e){var t=hr(e,1);t!==null&&Qo(t,e,1,-1)}function ui(e){var t=Qr();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=Oi.bind(null,Vr,e),[t.memoizedState,e]}function di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vr.updateQueue,t===null?(t={lastEffect:null,stores:null},Vr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function fi(){return $r().memoizedState}function pi(e,t,n,r){var i=Qr();Vr.flags|=e,i.memoizedState=di(1|t,n,void 0,r===void 0?null:r)}function mi(e,t,n,r){var i=$r();r=r===void 0?null:r;var a=void 0;if(Hr!==null){var o=Hr.memoizedState;if(a=o.destroy,r!==null&&Yr(r,o.deps)){i.memoizedState=di(t,n,a,r);return}}Vr.flags|=e,i.memoizedState=di(1|t,n,a,r)}function hi(e,t){return pi(8390656,8,e,t)}function gi(e,t){return mi(2048,8,e,t)}function _i(e,t){return mi(4,2,e,t)}function vi(e,t){return mi(4,4,e,t)}function yi(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bi(e,t,n){return n=n==null?null:n.concat([e]),mi(4,4,yi.bind(null,t,e),n)}function xi(){}function Si(e,t){var n=$r();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ci(e,t){var n=$r();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yr(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wi(e,t,n){return Br&21?(pn(n,t)||(n=Kt(),Vr.lanes|=n,jo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$i=!0),e.memoizedState=n)}function Ti(e,t){var n=Zt;Zt=n!==0&&4>n?n:4,e(!0);var r=zr.transition;zr.transition={};try{e(!1),t()}finally{Zt=n,zr.transition=r}}function Ei(){return $r().memoizedState}function Di(e,t,n){var r=Zo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ki(e))Ai(t,n);else if(n=mr(e,t,n,r),n!==null){var i=Xo();Qo(n,e,r,i),ji(n,t,r)}}function Oi(e,t,n){var r=Zo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Ai(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,pn(s,o)){var c=t.interleaved;c===null?(i.next=i,pr(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=mr(e,t,i,r),n!==null&&(i=Xo(),Qo(n,e,r,i),ji(n,t,r))}}function ki(e){var t=e.alternate;return e===Vr||t!==null&&t===Vr}function Ai(e,t){Gr=Wr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ji(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xt(e,n)}}var Mi={readContext:dr,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ni={readContext:dr,useCallback:function(e,t){return Qr().memoizedState=[e,t===void 0?null:t],e},useContext:dr,useEffect:hi,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),pi(4194308,4,yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=Qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qr();return t=n===void 0?t:n(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=Di.bind(null,Vr,e),[r.memoizedState,e]},useRef:function(e){var t=Qr();return e={current:e},t.memoizedState=e},useState:ui,useDebugValue:xi,useDeferredValue:function(e){return Qr().memoizedState=e},useTransition:function(){var e=ui(!1),t=e[0];return e=Ti.bind(null,e[1]),Qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vr,i=Qr();if(Fn){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),wo===null)throw Error(a(349));Br&30||ai(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,hi(si.bind(null,r,o,e),[e]),r.flags|=2048,di(9,oi.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qr(),t=wo.identifierPrefix;if(Fn){var n=On,r=Dn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Kr++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=qr++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Pi={readContext:dr,useCallback:Si,useContext:dr,useEffect:gi,useImperativeHandle:bi,useInsertionEffect:_i,useLayoutEffect:vi,useMemo:Ci,useReducer:ti,useRef:fi,useState:function(){return ti(ei)},useDebugValue:xi,useDeferredValue:function(e){return wi($r(),Hr.memoizedState,e)},useTransition:function(){return[ti(ei)[0],$r().memoizedState]},useMutableSource:ri,useSyncExternalStore:ii,useId:Ei,unstable_isNewReconciler:!1},Fi={readContext:dr,useCallback:Si,useContext:dr,useEffect:gi,useImperativeHandle:bi,useInsertionEffect:_i,useLayoutEffect:vi,useMemo:Ci,useReducer:ni,useRef:fi,useState:function(){return ni(ei)},useDebugValue:xi,useDeferredValue:function(e){var t=$r();return Hr===null?t.memoizedState=e:wi(t,Hr.memoizedState,e)},useTransition:function(){return[ni(ei)[0],$r().memoizedState]},useMutableSource:ri,useSyncExternalStore:ii,useId:Ei,unstable_isNewReconciler:!1};function Ii(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Li(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:i({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ri={isMounted:function(e){return(e=e._reactInternals)?E(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xo(),i=Zo(e),a=yr(r,i);a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(Qo(t,e,i,r),xr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xo(),i=Zo(e),a=yr(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(Qo(t,e,i,r),xr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xo(),r=Zo(e),i=yr(n,r);i.tag=2,t!=null&&(i.callback=t),t=br(e,i,r),t!==null&&(Qo(t,e,r,n),xr(t,e,r))}};function zi(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Jn(n,r)||!Jn(i,a):!0}function Bi(e,t,n){var r=!1,i=wt,a=t.contextType;return typeof a==`object`&&a?a=dr(a):(i=kt(t)?Dt:Tt.current,r=t.contextTypes,a=(r=r!=null)?Ot(e,i):wt),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ri,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Vi(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ri.enqueueReplaceState(t,t.state,null)}function Hi(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_r(e);var a=t.contextType;typeof a==`object`&&a?i.context=dr(a):(a=kt(t)?Dt:Tt.current,i.context=Ot(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Li(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ri.enqueueReplaceState(i,i.state,null),Cr(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ui(e,t){try{var n=``,r=t;do n+=Yn(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
152
|
+
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{_t=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?gt(e):``}var yt=Object.prototype.hasOwnProperty,bt=[],xt=-1;function St(e){return{current:e}}function Ct(e){0>xt||(e.current=bt[xt],bt[xt]=null,xt--)}function B(e,t){xt++,bt[xt]=e.current,e.current=t}var wt={},Tt=St(wt),Et=St(!1),Dt=wt;function Ot(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function kt(e){return e=e.childContextTypes,e!=null}function At(){Ct(Et),Ct(Tt)}function jt(e,t,n){if(Tt.current!==wt)throw Error(a(168));B(Tt,t),B(Et,n)}function Mt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!=`function`)return n;for(var o in r=r.getChildContext(),r)if(!(o in t))throw Error(a(108,T(e)||`Unknown`,o));return i({},n,r)}function Nt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,Dt=Tt.current,B(Tt,e),B(Et,Et.current),!0}function Pt(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mt(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,Ct(Et),Ct(Tt),B(Tt,e)):Ct(Et),B(Et,n)}var Ft=Math.clz32?Math.clz32:Rt,It=Math.log,Lt=Math.LN2;function Rt(e){return e>>>=0,e===0?32:31-(It(e)/Lt|0)|0}var zt=64,Bt=4194304;function Vt(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ht(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Vt(a))):r=Vt(s)}else o=n&~i,o===0?a!==0&&(r=Vt(a)):r=Vt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ft(t),i=1<<n,r|=e[n],t&=~i;return r}function Ut(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ft(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ut(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Gt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Kt(){var e=zt;return zt<<=1,!(zt&4194240)&&(zt=64),e}function qt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ft(t),e[t]=n}function Yt(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 i=31-Ft(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Xt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ft(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Zt=0;function Qt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $t=r.unstable_scheduleCallback,en=r.unstable_cancelCallback,tn=r.unstable_shouldYield,nn=r.unstable_requestPaint,rn=r.unstable_now,an=r.unstable_ImmediatePriority,on=r.unstable_UserBlockingPriority,sn=r.unstable_NormalPriority,cn=r.unstable_IdlePriority,ln=null,un=null;function dn(e){if(un&&typeof un.onCommitFiberRoot==`function`)try{un.onCommitFiberRoot(ln,e,void 0,(e.current.flags&128)==128)}catch{}}function fn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var pn=typeof Object.is==`function`?Object.is:fn,mn=null,hn=!1,gn=!1;function _n(e){mn===null?mn=[e]:mn.push(e)}function vn(e){hn=!0,_n(e)}function yn(){if(!gn&&mn!==null){gn=!0;var e=0,t=Zt;try{var n=mn;for(Zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mn=null,hn=!1}catch(t){throw mn!==null&&(mn=mn.slice(e+1)),$t(an,yn),t}finally{Zt=t,gn=!1}}return null}var bn=[],xn=0,Sn=null,Cn=0,wn=[],Tn=0,En=null,Dn=1,On=``;function kn(e,t){bn[xn++]=Cn,bn[xn++]=Sn,Sn=e,Cn=t}function An(e,t,n){wn[Tn++]=Dn,wn[Tn++]=On,wn[Tn++]=En,En=e;var r=Dn;e=On;var i=32-Ft(r)-1;r&=~(1<<i),n+=1;var a=32-Ft(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Dn=1<<32-Ft(t)+i|n<<i|r,On=a+e}else Dn=1<<a|n<<i|r,On=e}function jn(e){e.return!==null&&(kn(e,1),An(e,1,0))}function Mn(e){for(;e===Sn;)Sn=bn[--xn],bn[xn]=null,Cn=bn[--xn],bn[xn]=null;for(;e===En;)En=wn[--Tn],wn[Tn]=null,On=wn[--Tn],wn[Tn]=null,Dn=wn[--Tn],wn[Tn]=null}var Nn=null,Pn=null,Fn=!1,In=!1,Ln=null;function Rn(e,t){var n=ks(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function zn(e,t){switch(e.tag){case 5:return t=Ze(t,e.type,e.pendingProps),t===null?!1:(e.stateNode=t,Nn=e,Pn=rt(t),!0);case 6:return t=Qe(t,e.pendingProps),t===null?!1:(e.stateNode=t,Nn=e,Pn=null,!0);case 13:if(t=$e(t),t!==null){var n=En===null?null:{id:Dn,overflow:On};return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ks(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Nn=e,Pn=null,!0}return!1;default:return!1}}function Bn(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Vn(e){if(Fn){var t=Pn;if(t){var n=t;if(!zn(e,t)){if(Bn(e))throw Error(a(418));t=nt(n);var r=Nn;t&&zn(e,t)?Rn(r,n):(e.flags=e.flags&-4097|2,Fn=!1,Nn=e)}}else{if(Bn(e))throw Error(a(418));e.flags=e.flags&-4097|2,Fn=!1,Nn=e}}}function Hn(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nn=e}function Un(e){if(!me||e!==Nn)return!1;if(!Fn)return Hn(e),Fn=!0,!1;if(e.tag!==3&&(e.tag!==5||ft(e.type)&&!oe(e.type,e.memoizedProps))){var t=Pn;if(t){if(Bn(e))throw Wn(),Error(a(418));for(;t;)Rn(e,t),t=nt(t)}}if(Hn(e),e.tag===13){if(!me)throw Error(a(316));if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Pn=st(e)}else Pn=Nn?nt(e.stateNode):null;return!0}function Wn(){for(var e=Pn;e;)e=nt(e)}function Gn(){me&&(Pn=Nn=null,In=Fn=!1)}function Kn(e){Ln===null?Ln=[e]:Ln.push(e)}var qn=o.ReactCurrentBatchConfig;function Jn(e,t){if(pn(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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 i=n[r];if(!yt.call(t,i)||!pn(e[i],t[i]))return!1}return!0}function Yn(e){switch(e.tag){case 5:return gt(e.type);case 16:return gt(`Lazy`);case 13:return gt(`Suspense`);case 19:return gt(`SuspenseList`);case 0:case 2:case 15:return e=vt(e.type,!1),e;case 11:return e=vt(e.type.render,!1),e;case 1:return e=vt(e.type,!0),e;default:return``}}function Xn(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Zn(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Qn(e){var t=e._init;return t(e._payload)}function $n(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function i(e,t){return e=Ms(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function u(t){return e&&t.alternate===null&&(t.flags|=2),t}function d(e,t,n,r){return t===null||t.tag!==6?(t=Is(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n,r){var a=n.type;return a===l?m(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===b&&Qn(a)===t.type)?(r=i(t,n.props),r.ref=Xn(e,t,n),r.return=e,r):(r=Ns(n.type,n.key,n.props,null,e.mode,r),r.ref=Xn(e,t,n),r.return=e,r)}function p(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=U(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function m(e,t,n,r,a){return t===null||t.tag!==7?(t=Ps(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function h(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=Is(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case s:return n=Ns(t.type,t.key,t.props,null,e.mode,n),n.ref=Xn(e,null,t),n.return=e,n;case c:return t=U(t,e.mode,n),t.return=e,t;case b:var r=t._init;return h(e,r(t._payload),n)}if(j(t)||C(t))return t=Ps(t,e.mode,n,null),t.return=e,t;Zn(e,t)}return null}function g(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?d(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case s:return n.key===i?f(e,t,n,r):null;case c:return n.key===i?p(e,t,n,r):null;case b:return i=n._init,g(e,t,i(n._payload),r)}if(j(n)||C(n))return i===null?m(e,t,n,r,null):null;Zn(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,d(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case s:return e=e.get(r.key===null?n:r.key)||null,f(t,e,r,i);case c:return e=e.get(r.key===null?n:r.key)||null,p(t,e,r,i);case b:var a=r._init;return _(e,t,n,a(r._payload),i)}if(j(r)||C(r))return e=e.get(n)||null,m(t,e,r,i,null);Zn(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,f=a=0,p=null;d!==null&&f<s.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var m=g(i,d,s[f],c);if(m===null){d===null&&(d=p);break}e&&d&&m.alternate===null&&t(i,d),a=o(m,a,f),u===null?l=m:u.sibling=m,u=m,d=p}if(f===s.length)return n(i,d),Fn&&kn(i,f),l;if(d===null){for(;f<s.length;f++)d=h(i,s[f],c),d!==null&&(a=o(d,a,f),u===null?l=d:u.sibling=d,u=d);return Fn&&kn(i,f),l}for(d=r(i,d);f<s.length;f++)p=_(d,i,f,s[f],c),p!==null&&(e&&p.alternate!==null&&d.delete(p.key===null?f:p.key),a=o(p,a,f),u===null?l=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return t(i,e)}),Fn&&kn(i,f),l}function y(i,s,c,l){var u=C(c);if(typeof u!=`function`)throw Error(a(150));if(c=u.call(c),c==null)throw Error(a(151));for(var d=u=null,f=s,p=s=0,m=null,v=c.next();f!==null&&!v.done;p++,v=c.next()){f.index>p?(m=f,f=null):m=f.sibling;var y=g(i,f,v.value,l);if(y===null){f===null&&(f=m);break}e&&f&&y.alternate===null&&t(i,f),s=o(y,s,p),d===null?u=y:d.sibling=y,d=y,f=m}if(v.done)return n(i,f),Fn&&kn(i,p),u;if(f===null){for(;!v.done;p++,v=c.next())v=h(i,v.value,l),v!==null&&(s=o(v,s,p),d===null?u=v:d.sibling=v,d=v);return Fn&&kn(i,p),u}for(f=r(i,f);!v.done;p++,v=c.next())v=_(f,i,p,v.value,l),v!==null&&(e&&v.alternate!==null&&f.delete(v.key===null?p:v.key),s=o(v,s,p),d===null?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return t(i,e)}),Fn&&kn(i,p),u}function x(e,r,a,o){if(typeof a==`object`&&a&&a.type===l&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case s:a:{for(var d=a.key,f=r;f!==null;){if(f.key===d){if(d=a.type,d===l){if(f.tag===7){n(e,f.sibling),r=i(f,a.props.children),r.return=e,e=r;break a}}else if(f.elementType===d||typeof d==`object`&&d&&d.$$typeof===b&&Qn(d)===f.type){n(e,f.sibling),r=i(f,a.props),r.ref=Xn(e,f,a),r.return=e,e=r;break a}n(e,f);break}else t(e,f);f=f.sibling}a.type===l?(r=Ps(a.props.children,e.mode,o,a.key),r.return=e,e=r):(o=Ns(a.type,a.key,a.props,null,e.mode,o),o.ref=Xn(e,r,a),o.return=e,e=o)}return u(e);case c:a:{for(f=a.key;r!==null;){if(r.key===f)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=i(r,a.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=U(a,e.mode,o),r.return=e,e=r}return u(e);case b:return f=a._init,x(e,r,f(a._payload),o)}if(j(a))return v(e,r,a,o);if(C(a))return y(e,r,a,o);Zn(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),r=i(r,a),r.return=e,e=r):(n(e,r),r=Is(a,e.mode,o),r.return=e,e=r),u(e)):n(e,r)}return x}var er=$n(!0),tr=$n(!1),nr=St(null),rr=null,ir=null,ar=null;function or(){ar=ir=rr=null}function sr(e,t,n){de?(B(nr,t._currentValue),t._currentValue=n):(B(nr,t._currentValue2),t._currentValue2=n)}function cr(e){var t=nr.current;Ct(nr),de?e._currentValue=t:e._currentValue2=t}function lr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ur(e,t){rr=e,ar=ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&($i=!0),e.firstContext=null)}function dr(e){var t=de?e._currentValue:e._currentValue2;if(ar!==e)if(e={context:e,memoizedValue:t,next:null},ir===null){if(rr===null)throw Error(a(308));ir=e,rr.dependencies={lanes:0,firstContext:e}}else ir=ir.next=e;return t}var fr=null;function pr(e){fr===null?fr=[e]:fr.push(e)}function mr(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pr(t)):(n.next=i.next,i.next=n),t.interleaved=n,hr(e,r)}function hr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gr=!1;function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vr(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 yr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Co&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,hr(e,n)}return i=r.interleaved,i===null?(t.next=t,pr(r)):(t.next=i.next,i.next=t),r.interleaved=t,hr(e,n)}function xr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xt(e,n)}}function Sr(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cr(e,t,n,r){var a=e.updateQueue;gr=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==s&&(c===null?d.firstBaseUpdate=u:c.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=a.baseState;s=0,d=u=l=null,c=o;do{var p=c.lane,m=c.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});a:{var h=e,g=c;switch(p=t,m=n,g.tag){case 1:if(h=g.payload,typeof h==`function`){f=h.call(m,f,p);break a}f=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(m,f,p):h,p==null)break a;f=i({},f,p);break a;case 2:gr=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[c]:p.push(c))}else m={eventTime:m,lane:p,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,s|=p;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;p=c,c=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);jo|=s,e.lanes=s,e.memoizedState=f}}function wr(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!=`function`)throw Error(a(191,i));i.call(r)}}}var Tr={},Er=St(Tr),Dr=St(Tr),Or=St(Tr);function kr(e){if(e===Tr)throw Error(a(174));return e}function Ar(e,t){B(Or,t),B(Dr,e),B(Er,Tr),e=M(t),Ct(Er),B(Er,e)}function jr(){Ct(Er),Ct(Dr),Ct(Or)}function Mr(e){var t=kr(Or.current),n=kr(Er.current);t=ne(n,e.type,t),n!==t&&(B(Dr,e),B(Er,t))}function Nr(e){Dr.current===e&&(Ct(Er),Ct(Dr))}var Pr=St(0);function Fr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||et(n)||tt(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ir=[];function Lr(){for(var e=0;e<Ir.length;e++){var t=Ir[e];de?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}Ir.length=0}var Rr=o.ReactCurrentDispatcher,zr=o.ReactCurrentBatchConfig,Br=0,Vr=null,Hr=null,Ur=null,Wr=!1,Gr=!1,Kr=0,qr=0;function Jr(){throw Error(a(321))}function Yr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pn(e[n],t[n]))return!1;return!0}function Xr(e,t,n,r,i,o){if(Br=o,Vr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rr.current=e===null||e.memoizedState===null?Ni:Pi,e=n(r,i),Gr){o=0;do{if(Gr=!1,Kr=0,25<=o)throw Error(a(301));o+=1,Ur=Hr=null,t.updateQueue=null,Rr.current=Fi,e=n(r,i)}while(Gr)}if(Rr.current=Mi,t=Hr!==null&&Hr.next!==null,Br=0,Ur=Hr=Vr=null,Wr=!1,t)throw Error(a(300));return e}function Zr(){var e=Kr!==0;return Kr=0,e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?Vr.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function $r(){if(Hr===null){var e=Vr.alternate;e=e===null?null:e.memoizedState}else e=Hr.next;var t=Ur===null?Vr.memoizedState:Ur.next;if(t!==null)Ur=t,Hr=e;else{if(e===null)throw Error(a(310));Hr=e,e={memoizedState:Hr.memoizedState,baseState:Hr.baseState,baseQueue:Hr.baseQueue,queue:Hr.queue,next:null},Ur===null?Vr.memoizedState=Ur=e:Ur=Ur.next=e}return Ur}function ei(e,t){return typeof t==`function`?t(e):t}function ti(e){var t=$r(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Hr,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Br&d)===d)l!==null&&(l=l.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 f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=r):l=l.next=f,Vr.lanes|=d,jo|=d}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=c,pn(r,t.memoizedState)||($i=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Vr.lanes|=o,jo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ni(e){var t=$r(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);pn(o,t.memoizedState)||($i=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ri(){}function ii(e,t){var n=Vr,r=$r(),i=t(),o=!pn(r.memoizedState,i);if(o&&(r.memoizedState=i,$i=!0),r=r.queue,gi(si.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ur!==null&&Ur.memoizedState.tag&1){if(n.flags|=2048,di(9,oi.bind(null,n,r,i,t),void 0,null),wo===null)throw Error(a(349));Br&30||ai(n,t,i)}return i}function ai(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vr.updateQueue,t===null?(t={lastEffect:null,stores:null},Vr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function oi(e,t,n,r){t.value=n,t.getSnapshot=r,ci(t)&&li(e)}function si(e,t,n){return n(function(){ci(t)&&li(e)})}function ci(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pn(e,n)}catch{return!0}}function li(e){var t=hr(e,1);t!==null&&Qo(t,e,1,-1)}function ui(e){var t=Qr();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=Oi.bind(null,Vr,e),[t.memoizedState,e]}function di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vr.updateQueue,t===null?(t={lastEffect:null,stores:null},Vr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function fi(){return $r().memoizedState}function pi(e,t,n,r){var i=Qr();Vr.flags|=e,i.memoizedState=di(1|t,n,void 0,r===void 0?null:r)}function mi(e,t,n,r){var i=$r();r=r===void 0?null:r;var a=void 0;if(Hr!==null){var o=Hr.memoizedState;if(a=o.destroy,r!==null&&Yr(r,o.deps)){i.memoizedState=di(t,n,a,r);return}}Vr.flags|=e,i.memoizedState=di(1|t,n,a,r)}function hi(e,t){return pi(8390656,8,e,t)}function gi(e,t){return mi(2048,8,e,t)}function _i(e,t){return mi(4,2,e,t)}function vi(e,t){return mi(4,4,e,t)}function yi(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bi(e,t,n){return n=n==null?null:n.concat([e]),mi(4,4,yi.bind(null,t,e),n)}function xi(){}function Si(e,t){var n=$r();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ci(e,t){var n=$r();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yr(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wi(e,t,n){return Br&21?(pn(n,t)||(n=Kt(),Vr.lanes|=n,jo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$i=!0),e.memoizedState=n)}function Ti(e,t){var n=Zt;Zt=n!==0&&4>n?n:4,e(!0);var r=zr.transition;zr.transition={};try{e(!1),t()}finally{Zt=n,zr.transition=r}}function Ei(){return $r().memoizedState}function Di(e,t,n){var r=Zo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ki(e))Ai(t,n);else if(n=mr(e,t,n,r),n!==null){var i=Xo();Qo(n,e,r,i),ji(n,t,r)}}function Oi(e,t,n){var r=Zo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ki(e))Ai(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,pn(s,o)){var c=t.interleaved;c===null?(i.next=i,pr(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=mr(e,t,i,r),n!==null&&(i=Xo(),Qo(n,e,r,i),ji(n,t,r))}}function ki(e){var t=e.alternate;return e===Vr||t!==null&&t===Vr}function Ai(e,t){Gr=Wr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ji(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xt(e,n)}}var Mi={readContext:dr,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ni={readContext:dr,useCallback:function(e,t){return Qr().memoizedState=[e,t===void 0?null:t],e},useContext:dr,useEffect:hi,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),pi(4194308,4,yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=Qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qr();return t=n===void 0?t:n(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=Di.bind(null,Vr,e),[r.memoizedState,e]},useRef:function(e){var t=Qr();return e={current:e},t.memoizedState=e},useState:ui,useDebugValue:xi,useDeferredValue:function(e){return Qr().memoizedState=e},useTransition:function(){var e=ui(!1),t=e[0];return e=Ti.bind(null,e[1]),Qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vr,i=Qr();if(Fn){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),wo===null)throw Error(a(349));Br&30||ai(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,hi(si.bind(null,r,o,e),[e]),r.flags|=2048,di(9,oi.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qr(),t=wo.identifierPrefix;if(Fn){var n=On,r=Dn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Kr++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=qr++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Pi={readContext:dr,useCallback:Si,useContext:dr,useEffect:gi,useImperativeHandle:bi,useInsertionEffect:_i,useLayoutEffect:vi,useMemo:Ci,useReducer:ti,useRef:fi,useState:function(){return ti(ei)},useDebugValue:xi,useDeferredValue:function(e){return wi($r(),Hr.memoizedState,e)},useTransition:function(){return[ti(ei)[0],$r().memoizedState]},useMutableSource:ri,useSyncExternalStore:ii,useId:Ei,unstable_isNewReconciler:!1},Fi={readContext:dr,useCallback:Si,useContext:dr,useEffect:gi,useImperativeHandle:bi,useInsertionEffect:_i,useLayoutEffect:vi,useMemo:Ci,useReducer:ni,useRef:fi,useState:function(){return ni(ei)},useDebugValue:xi,useDeferredValue:function(e){var t=$r();return Hr===null?t.memoizedState=e:wi(t,Hr.memoizedState,e)},useTransition:function(){return[ni(ei)[0],$r().memoizedState]},useMutableSource:ri,useSyncExternalStore:ii,useId:Ei,unstable_isNewReconciler:!1};function Ii(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Li(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:i({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ri={isMounted:function(e){return(e=e._reactInternals)?E(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xo(),i=Zo(e),a=yr(r,i);a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(Qo(t,e,i,r),xr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xo(),i=Zo(e),a=yr(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(Qo(t,e,i,r),xr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xo(),r=Zo(e),i=yr(n,r);i.tag=2,t!=null&&(i.callback=t),t=br(e,i,r),t!==null&&(Qo(t,e,r,n),xr(t,e,r))}};function zi(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Jn(n,r)||!Jn(i,a):!0}function Bi(e,t,n){var r=!1,i=wt,a=t.contextType;return typeof a==`object`&&a?a=dr(a):(i=kt(t)?Dt:Tt.current,r=t.contextTypes,a=(r=r!=null)?Ot(e,i):wt),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ri,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Vi(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ri.enqueueReplaceState(t,t.state,null)}function Hi(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_r(e);var a=t.contextType;typeof a==`object`&&a?i.context=dr(a):(a=kt(t)?Dt:Tt.current,i.context=Ot(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Li(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ri.enqueueReplaceState(i,i.state,null),Cr(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ui(e,t){try{var n=``,r=t;do n+=Yn(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
153
153
|
Error generating stack: `+e.message+`
|
|
154
|
-
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Wi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gi(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ki=typeof WeakMap==`function`?WeakMap:Map;function qi(e,t,n){n=yr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bo||(Bo=!0,Vo=r),Gi(e,t)},n}function Ji(e,t,n){n=yr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Gi(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Gi(e,t),typeof r!=`function`&&(Ho===null?Ho=new Set([this]):Ho.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Yi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ki;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ss.bind(null,e,t,n),t.then(e,e))}function Xi(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Zi(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yr(-1,1),t.tag=2,br(n,t,1))),n.lanes|=1),e)}var Qi=o.ReactCurrentOwner,$i=!1;function ea(e,t,n,r){t.child=e===null?tr(t,null,n,r):er(t,e.child,n,r)}function ta(e,t,n,r,i){n=n.render;var a=t.ref;return ur(t,i),r=Xr(e,t,n,r,a,i),n=Zr(),e!==null&&!$i?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xa(e,t,i)):(Fn&&n&&jn(t),t.flags|=1,ea(e,t,r,i),t.child)}function na(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!As(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,ra(e,t,a,r,i)):(e=Ns(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Jn:n,n(o,r)&&e.ref===t.ref)return xa(e,t,i)}return t.flags|=1,e=Ms(a,r),e.ref=t.ref,e.return=t,t.child=e}function ra(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Jn(a,r)&&e.ref===t.ref)if($i=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&($i=!0);else return t.lanes=e.lanes,xa(e,t,i)}return oa(e,t,n,r,i)}function ia(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ct(Oo,Do),Do|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ct(Oo,Do),Do|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Ct(Oo,Do),Do|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Ct(Oo,Do),Do|=r;return ea(e,t,i,n),t.child}function aa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oa(e,t,n,r,i){var a=kt(n)?Dt:Tt.current;return a=Ot(t,a),ur(t,i),n=Xr(e,t,n,r,a,i),r=Zr(),e!==null&&!$i?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xa(e,t,i)):(Fn&&r&&jn(t),t.flags|=1,ea(e,t,n,i),t.child)}function sa(e,t,n,r,i){if(kt(n)){var a=!0;Nt(t)}else a=!1;if(ur(t,i),t.stateNode===null)ba(e,t),Bi(t,n,r),Hi(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=dr(l):(l=kt(n)?Dt:Tt.current,l=Ot(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Vi(t,o,r,l),gr=!1;var f=t.memoizedState;o.state=f,Cr(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Et.current||gr?(typeof u==`function`&&(Li(t,n,u,r),c=t.memoizedState),(s=gr||zi(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,vr(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ii(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=dr(c):(c=kt(n)?Dt:Tt.current,c=Ot(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Vi(t,o,r,c),gr=!1,f=t.memoizedState,o.state=f,Cr(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Et.current||gr?(typeof p==`function`&&(Li(t,n,p,r),m=t.memoizedState),(l=gr||zi(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ca(e,t,n,r,a,i)}function ca(e,t,n,r,i,a){aa(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&Pt(t,n,!1),xa(e,t,a);r=t.stateNode,Qi.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=er(t,e.child,null,a),t.child=er(t,null,s,a)):ea(e,t,s,a),t.memoizedState=r.state,i&&Pt(t,n,!0),t.child}function la(e){var t=e.stateNode;t.pendingContext?jt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jt(e,t.context,!1),Ar(e,t.containerInfo)}function ua(e,t,n,r,i){return Gn(),Kn(i),t.flags|=256,ea(e,t,n,r),t.child}var da={dehydrated:null,treeContext:null,retryLane:0};function fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function pa(e,t,n){var r=t.pendingProps,i=Pr.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ct(Pr,i&1),e===null)return Vn(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?et(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Fs(o,r,0,null),e=Ps(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=fa(n),t.memoizedState=da,e):ma(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ga(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ms(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Ps(a,o,n,null),a.flags|=2):a=Ms(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?fa(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=da,r}return a=e.child,e=a.sibling,r=Ms(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ma(e,t){return t=Fs({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ha(e,t,n,r){return r!==null&&Kn(r),er(t,e.child,null,n),e=ma(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ga(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Wi(Error(a(422))),ha(e,t,s,r)):t.memoizedState===null?(o=r.fallback,i=t.mode,r=Fs({mode:`visible`,children:r.children},i,0,null),o=Ps(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&er(t,e.child,null,s),t.child.memoizedState=fa(s),t.memoizedState=da,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return ha(e,t,s,null);if(et(i))return r=tt(i).digest,o=Error(a(419)),r=Wi(o,r,void 0),ha(e,t,s,r);if(n=(s&e.childLanes)!==0,$i||n){if(r=wo,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))===0?i:0,i!==0&&i!==o.retryLane&&(o.retryLane=i,hr(e,i),Qo(r,e,i,-1))}return ds(),r=Wi(Error(a(421))),ha(e,t,s,r)}return $e(i)?(t.flags|=128,t.child=e.child,t=ws.bind(null,e),L(i,t),null):(e=o.treeContext,pe&&(Pn=z(i),Nn=t,Fn=!0,Ln=null,In=!1,e!==null&&(wn[Tn++]=Dn,wn[Tn++]=On,wn[Tn++]=En,Dn=e.id,On=e.overflow,En=t)),t=ma(t,r.children),t.flags|=4096,t)}function _a(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lr(e.return,t,n)}function va(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ya(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ea(e,t,r.children,n),r=Pr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_a(e,n,t);else if(e.tag===19)_a(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ct(Pr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Fr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),va(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}va(t,!0,n,null,a);break;case`together`:va(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ba(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jo|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Ms(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ms(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sa(e,t,n){switch(t.tag){case 3:la(t),Gn();break;case 5:Mr(t);break;case 1:kt(t.type)&&Nt(t);break;case 4:Ar(t,t.stateNode.containerInfo);break;case 10:sr(t,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ct(Pr,Pr.current&1),e=xa(e,t,n),e===null?null:e.sibling):pa(e,t,n):(Ct(Pr,Pr.current&1),t.flags|=128,null);Ct(Pr,Pr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ya(e,t,n);t.flags|=128}var i=t.memoizedState;if(i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ct(Pr,Pr.current),r)break;return null;case 22:case 23:return t.lanes=0,ia(e,t,n)}return xa(e,t,n)}function Ca(e){e.flags|=4}function wa(e,t){if(e!==null&&e.child===t.child)return!0;if(t.flags&16)return!1;for(e=t.child;e!==null;){if(e.flags&12854||e.subtreeFlags&12854)return!1;e=e.sibling}return!0}var Ta,Ea,Da,Oa;if(de)Ta=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)I(e,n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ea=function(){},Da=function(e,t,n,r,i){if(e=e.memoizedProps,e!==r){var a=t.stateNode,o=kr(Er.current);n=ie(a,n,e,r,i,o),(t.updateQueue=n)&&Ca(t)}},Oa=function(e,t,n,r){n!==r&&Ca(t)};else if(fe){Ta=function(e,t,n,r){for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=Je(a,i.type,i.memoizedProps,i)),I(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=Ye(a,i.memoizedProps,i)),I(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),Ta(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var ka=function(e,t,n,r){for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=Je(a,i.type,i.memoizedProps,i)),Ge(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=Ye(a,i.memoizedProps,i)),Ge(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),ka(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Ea=function(e,t){var n=t.stateNode;if(!wa(e,t)){e=n.containerInfo;var r=We(e);ka(r,t,!1,!1),n.pendingChildren=r,Ca(t),Ke(e,r)}},Da=function(e,t,n,r,i){var a=e.stateNode,o=e.memoizedProps;if((e=wa(e,t))&&o===r)t.stateNode=a;else{var s=t.stateNode,c=kr(Er.current),l=null;o!==r&&(l=ie(s,n,o,r,i,c)),e&&l===null?t.stateNode=a:(a=Ue(a,l,n,o,r,t,e,s),re(a,n,r,i,c)&&Ca(t),t.stateNode=a,e?Ca(t):Ta(a,t,!1,!1))}},Oa=function(e,t,n,r){n===r?t.stateNode=e.stateNode:(e=kr(Or.current),n=kr(Er.current),t.stateNode=oe(r,e,n,t),Ca(t))}}else Ea=function(){},Da=function(){},Oa=function(){};function Aa(e,t){if(!Fn)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ja(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ma(e,t,n){var r=t.pendingProps;switch(Mn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ja(t),null;case 1:return kt(t.type)&&At(),ja(t),null;case 3:return n=t.stateNode,jr(),St(Et),St(Tt),Lr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Un(t)?Ca(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ln!==null&&(ns(Ln),Ln=null))),Ea(e,t),ja(t),null;case 5:Nr(t),n=kr(Or.current);var i=t.type;if(e!==null&&t.stateNode!=null)Da(e,t,i,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return ja(t),null}if(e=kr(Er.current),Un(t)){if(!pe)throw Error(a(175));e=B(t.stateNode,t.type,t.memoizedProps,n,e,t,!In),t.updateQueue=e,e!==null&&Ca(t)}else{var o=ne(i,r,n,e,t);Ta(o,t,!1,!1),t.stateNode=o,re(o,i,r,n,e)&&Ca(t)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ja(t),null;case 6:if(e&&t.stateNode!=null)Oa(e,t,e.memoizedProps,r);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=kr(Or.current),n=kr(Er.current),Un(t)){if(!pe)throw Error(a(176));if(e=t.stateNode,n=t.memoizedProps,(r=it(e,n,t,!In))&&(i=Nn,i!==null))switch(i.tag){case 3:ft(i.stateNode.containerInfo,e,n,(i.mode&1)!=0);break;case 5:pt(i.type,i.memoizedProps,i.stateNode,e,n,(i.mode&1)!=0)}r&&Ca(t)}else t.stateNode=oe(r,e,n,t)}return ja(t),null;case 13:if(St(Pr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fn&&Pn!==null&&t.mode&1&&!(t.flags&128))Wn(),Gn(),t.flags|=98560,i=!1;else if(i=Un(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(!pe)throw Error(a(344));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));at(i,t)}else Gn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ja(t),i=!1}else Ln!==null&&(ns(Ln),Ln=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(n=r!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Pr.current&1?ko===0&&(ko=3):ds())),t.updateQueue!==null&&(t.flags|=4),ja(t),null);case 4:return jr(),Ea(e,t),e===null&&he(t.stateNode.containerInfo),ja(t),null;case 10:return cr(t.type._context),ja(t),null;case 17:return kt(t.type)&&At(),ja(t),null;case 19:if(St(Pr),i=t.memoizedState,i===null)return ja(t),null;if(r=(t.flags&128)!=0,o=i.rendering,o===null)if(r)Aa(i,!1);else{if(ko!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fr(e),o!==null){for(t.flags|=128,Aa(i,!1),e=o.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;n!==null;)r=n,i=e,r.flags&=14680066,o=r.alternate,o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n=n.sibling;return Ct(Pr,Pr.current&1|2),t.child}e=e.sibling}i.tail!==null&&rn()>Lo&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fr(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),Aa(i,!0),i.tail===null&&i.tailMode===`hidden`&&!o.alternate&&!Fn)return ja(t),null}else 2*rn()-i.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e===null?t.child=o:e.sibling=o,i.last=o)}return i.tail===null?(ja(t),null):(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=rn(),t.sibling=null,e=Pr.current,Ct(Pr,r?e&1|2:e&1),t);case 22:case 23:return ss(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Do&1073741824&&(ja(t),de&&t.subtreeFlags&6&&(t.flags|=8192)):ja(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Na(e,t){switch(Mn(t),t.tag){case 1:return kt(t.type)&&At(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jr(),St(Et),St(Tt),Lr(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nr(t),null;case 13:if(St(Pr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return St(Pr),null;case 4:return jr(),null;case 10:return cr(t.type._context),null;case 22:case 23:return ss(),null;case 24:return null;default:return null}}var Pa=!1,Fa=!1,Ia=typeof WeakSet==`function`?WeakSet:Set,V=null;function La(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){xs(e,t,n)}else n.current=null}function Ra(e,t,n){try{n()}catch(n){xs(e,t,n)}}var za=!1;function Ba(e,t){for(P(e.containerInfo),V=t;V!==null;)if(e=V,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,V=t;else for(;V!==null;){e=V;try{var n=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(n!==null){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode;o.__reactInternalSnapshotBeforeUpdate=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:Ii(e.type,r),i)}break;case 3:de&&He(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(t){xs(e,e.return,t)}if(t=e.sibling,t!==null){t.return=e.return,V=t;break}V=e.return}return n=za,za=!1,n}function Va(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Ra(t,n,a)}i=i.next}while(i!==r)}}function Ha(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==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 Ua(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=ee(n);break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Wa(e){var t=e.alternate;t!==null&&(e.alternate=null,Wa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_e(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ga(e){return e.tag===5||e.tag===3||e.tag===4}function Ka(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ga(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Pe(n,e,t):ke(n,e);else if(r!==4&&(e=e.child,e!==null))for(qa(e,t,n),e=e.sibling;e!==null;)qa(e,t,n),e=e.sibling}function Ja(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Ne(n,e,t):Oe(n,e);else if(r!==4&&(e=e.child,e!==null))for(Ja(e,t,n),e=e.sibling;e!==null;)Ja(e,t,n),e=e.sibling}var Ya=null,Xa=!1;function Za(e,t,n){for(n=n.child;n!==null;)Qa(e,t,n),n=n.sibling}function Qa(e,t,n){if(un&&typeof un.onCommitFiberUnmount==`function`)try{un.onCommitFiberUnmount(ln,n)}catch{}switch(n.tag){case 5:Fa||La(n,t);case 6:if(de){var r=Ya,i=Xa;Ya=null,Za(e,t,n),Ya=r,Xa=i,Ya!==null&&(Xa?Ie(Ya,n.stateNode):Fe(Ya,n.stateNode))}else Za(e,t,n);break;case 18:de&&Ya!==null&&(Xa?ut(Ya,n.stateNode):lt(Ya,n.stateNode));break;case 4:de?(r=Ya,i=Xa,Ya=n.stateNode.containerInfo,Xa=!0,Za(e,t,n),Ya=r,Xa=i):(fe&&(r=n.stateNode.containerInfo,i=We(r),qe(r,i)),Za(e,t,n));break;case 0:case 11:case 14:case 15:if(!Fa&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Ra(n,t,o),i=i.next}while(i!==r)}Za(e,t,n);break;case 1:if(!Fa&&(La(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xs(n,t,e)}Za(e,t,n);break;case 21:Za(e,t,n);break;case 22:n.mode&1?(Fa=(r=Fa)||n.memoizedState!==null,Za(e,t,n),Fa=r):Za(e,t,n);break;default:Za(e,t,n)}}function $a(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ia),t.forEach(function(t){var r=Ts.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function eo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t;if(de){var c=s;a:for(;c!==null;){switch(c.tag){case 5:Ya=c.stateNode,Xa=!1;break a;case 3:Ya=c.stateNode.containerInfo,Xa=!0;break a;case 4:Ya=c.stateNode.containerInfo,Xa=!0;break a}c=c.return}if(Ya===null)throw Error(a(160));Qa(o,s,i),Ya=null,Xa=!1}else Qa(o,s,i);var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(e){xs(i,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)to(t,e),t=t.sibling}function to(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(eo(t,e),no(e),r&4){try{Va(3,e,e.return),Ha(3,e)}catch(t){xs(e,e.return,t)}try{Va(5,e,e.return)}catch(t){xs(e,e.return,t)}}break;case 1:eo(t,e),no(e),r&512&&n!==null&&La(n,n.return);break;case 5:if(eo(t,e),no(e),r&512&&n!==null&&La(n,n.return),de){if(e.flags&32){var i=e.stateNode;try{Le(i)}catch(t){xs(e,e.return,t)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps;if(n=n===null?o:n.memoizedProps,r=e.type,t=e.updateQueue,e.updateQueue=null,t!==null)try{Me(i,t,r,n,o,e)}catch(t){xs(e,e.return,t)}}}break;case 6:if(eo(t,e),no(e),r&4&&de){if(e.stateNode===null)throw Error(a(162));i=e.stateNode,o=e.memoizedProps,n=n===null?o:n.memoizedProps;try{Ae(i,n,o)}catch(t){xs(e,e.return,t)}}break;case 3:if(eo(t,e),no(e),r&4){if(de&&pe&&n!==null&&n.memoizedState.isDehydrated)try{st(t.containerInfo)}catch(t){xs(e,e.return,t)}if(fe){i=t.containerInfo,o=t.pendingChildren;try{qe(i,o)}catch(t){xs(e,e.return,t)}}}break;case 4:if(eo(t,e),no(e),r&4&&fe){o=e.stateNode,i=o.containerInfo,o=o.pendingChildren;try{qe(i,o)}catch(t){xs(e,e.return,t)}}break;case 13:eo(t,e),no(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Io=rn())),r&4&&$a(e);break;case 22:var s=n!==null&&n.memoizedState!==null;if(e.mode&1?(Fa=(n=Fa)||s,eo(t,e),Fa=n):eo(t,e),no(e),r&8192){if(n=e.memoizedState!==null,(e.stateNode.isHidden=n)&&!s&&e.mode&1)for(V=e,r=e.child;r!==null;){for(t=V=r;V!==null;){s=V;var c=s.child;switch(s.tag){case 0:case 11:case 14:case 15:Va(4,s,s.return);break;case 1:La(s,s.return);var l=s.stateNode;if(typeof l.componentWillUnmount==`function`){var u=s,d=s.return;try{var f=u;l.props=f.memoizedProps,l.state=f.memoizedState,l.componentWillUnmount()}catch(e){xs(u,d,e)}}break;case 5:La(s,s.return);break;case 22:if(s.memoizedState!==null){oo(t);continue}}c===null?oo(t):(c.return=s,V=c)}r=r.sibling}if(de){a:if(r=null,de)for(t=e;;){if(t.tag===5){if(r===null){r=t;try{i=t.stateNode,n?Re(i):Be(t.stateNode,t.memoizedProps)}catch(t){xs(e,e.return,t)}}}else if(t.tag===6){if(r===null)try{o=t.stateNode,n?ze(o):Ve(o,t.memoizedProps)}catch(t){xs(e,e.return,t)}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}}break;case 19:eo(t,e),no(e),r&4&&$a(e);break;case 21:break;default:eo(t,e),no(e)}}function no(e){var t=e.flags;if(t&2){try{if(de){b:{for(var n=e.return;n!==null;){if(Ga(n)){var r=n;break b}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Le(i),r.flags&=-33),Ja(e,Ka(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;qa(e,Ka(e),o);break;default:throw Error(a(161))}}}catch(t){xs(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ro(e,t,n){V=e,io(e,t,n)}function io(e,t,n){for(var r=(e.mode&1)!=0;V!==null;){var i=V,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Pa;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Fa;s=Pa;var l=Fa;if(Pa=o,(Fa=c)&&!l)for(V=i;V!==null;)o=V,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?so(i):(c.return=o,V=c);for(;a!==null;)V=a,io(a,t,n),a=a.sibling;V=i,Pa=s,Fa=l}ao(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,V=a):ao(e,t,n)}}function ao(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fa||Ha(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Fa)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ii(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wr(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=ee(t.child.stateNode);break;case 1:n=t.child.stateNode}wr(t,s,n)}break;case 5:var c=t.stateNode;n===null&&t.flags&4&&je(c,t.type,t.memoizedProps,t);break;case 6:break;case 4:break;case 12:break;case 13:if(pe&&t.memoizedState===null){var l=t.alternate;if(l!==null){var u=l.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&ct(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Fa||t.flags&512&&Ua(t)}catch(e){xs(t,t.return,e)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function oo(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function so(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ha(4,t)}catch(e){xs(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){xs(t,i,e)}}var a=t.return;try{Ua(t)}catch(e){xs(t,a,e)}break;case 5:var o=t.return;try{Ua(t)}catch(e){xs(t,o,e)}}}catch(e){xs(t,t.return,e)}if(t===e){V=null;break}var s=t.sibling;if(s!==null){s.return=t.return,V=s;break}V=t.return}}var co=0,lo=1,uo=2,fo=3,po=4;if(typeof Symbol==`function`&&Symbol.for){var mo=Symbol.for;co=mo(`selector.component`),lo=mo(`selector.has_pseudo_class`),uo=mo(`selector.role`),fo=mo(`selector.test_id`),po=mo(`selector.text`)}function ho(e){var t=me(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(a(364));return t}if(e=xe(e),e===null)throw Error(a(362));return e.stateNode.current}function go(e,t){switch(t.$$typeof){case co:if(e.type===t.value)return!0;break;case lo:a:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(r.tag!==5||!we(r)){for(;o!=null&&go(r,o);)i++,o=t[i];if(i===t.length){t=!0;break a}else for(r=r.child;r!==null;)e.push(r,i),r=r.sibling}}t=!1}return t;case uo:if(e.tag===5&&Te(e.stateNode,t.value))return!0;break;case po:if((e.tag===5||e.tag===6)&&(e=Ce(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case fo:if(e.tag===5&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function _o(e){switch(e.$$typeof){case co:return`<`+(w(e.value)||`Unknown`)+`>`;case lo:return`:has(`+(_o(e)||``)+`)`;case uo:return`[role="`+e.value+`"]`;case po:return`"`+e.value+`"`;case fo:return`[data-testname="`+e.value+`"]`;default:throw Error(a(365))}}function vo(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=e[r++],o=t[a];if(i.tag!==5||!we(i)){for(;o!=null&&go(i,o);)a++,o=t[a];if(a===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,a),i=i.sibling}}return n}function yo(e,t){if(!be)throw Error(a(363));e=ho(e),e=vo(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(r.tag===5)we(r)||t.push(r.stateNode);else for(r=r.child;r!==null;)e.push(r),r=r.sibling}return t}var bo=Math.ceil,xo=o.ReactCurrentDispatcher,So=o.ReactCurrentOwner,H=o.ReactCurrentBatchConfig,Co=0,wo=null,To=null,Eo=0,Do=0,Oo=xt(0),ko=0,Ao=null,jo=0,Mo=0,No=0,Po=null,Fo=null,Io=0,Lo=1/0,Ro=null;function zo(){Lo=rn()+500}var Bo=!1,Vo=null,Ho=null,Uo=!1,Wo=null,Go=0,Ko=0,qo=null,Jo=-1,Yo=0;function Xo(){return Co&6?rn():Jo===-1?Jo=rn():Jo}function Zo(e){return e.mode&1?Co&2&&Eo!==0?Eo&-Eo:qn.transition===null?(e=Zt,e===0?ge():e):(Yo===0&&(Yo=Kt()),Yo):1}function Qo(e,t,n,r){if(50<Ko)throw Ko=0,qo=null,Error(a(185));Jt(e,n,r),(!(Co&2)||e!==wo)&&(e===wo&&(!(Co&2)&&(Mo|=n),ko===4&&is(e,Eo)),$o(e,r),n===1&&Co===0&&!(t.mode&1)&&(zo(),hn&&yn()))}function $o(e,t){var n=e.callbackNode;Wt(e,t);var r=Ht(e,e===wo?Eo:0);if(r===0)n!==null&&en(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&en(n),t===1)e.tag===0?vn(as.bind(null,e)):_n(as.bind(null,e)),ve?ye(function(){!(Co&6)&&yn()}):$t(an,yn),n=null;else{switch(Qt(r)){case 1:n=an;break;case 4:n=on;break;case 16:n=sn;break;case 536870912:n=cn;break;default:n=sn}n=Ds(n,es.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function es(e,t){if(Jo=-1,Yo=0,Co&6)throw Error(a(327));var n=e.callbackNode;if(ys()&&e.callbackNode!==n)return null;var r=Ht(e,e===wo?Eo:0);if(r===0)return null;if(r&30||(r&e.expiredLanes)!==0||t)t=fs(e,r);else{t=r;var i=Co;Co|=2;var o=us();(wo!==e||Eo!==t)&&(Ro=null,zo(),cs(e,t));do try{ms();break}catch(t){ls(e,t)}while(1);or(),xo.current=o,Co=i,To===null?(wo=null,Eo=0,t=ko):t=0}if(t!==0){if(t===2&&(i=Gt(e),i!==0&&(r=i,t=ts(e,i))),t===1)throw n=Ao,cs(e,0),is(e,r),$o(e,rn()),n;if(t===6)is(e,r);else{if(i=e.current.alternate,!(r&30)&&!rs(i)&&(t=fs(e,r),t===2&&(o=Gt(e),o!==0&&(r=o,t=ts(e,o))),t===1))throw n=Ao,cs(e,0),is(e,r),$o(e,rn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:_s(e,Fo,Ro);break;case 3:if(is(e,r),(r&130023424)===r&&(t=Io+500-rn(),10<t)){if(Ht(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Xo(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=se(_s.bind(null,e,Fo,Ro),t);break}_s(e,Fo,Ro);break;case 4:if(is(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Ft(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bo(r/1960))-r,10<r){e.timeoutHandle=se(_s.bind(null,e,Fo,Ro),r);break}_s(e,Fo,Ro);break;case 5:_s(e,Fo,Ro);break;default:throw Error(a(329))}}}return $o(e,rn()),e.callbackNode===n?es.bind(null,e):null}function ts(e,t){var n=Po;return e.current.memoizedState.isDehydrated&&(cs(e,t).flags|=256),e=fs(e,t),e!==2&&(t=Fo,Fo=n,t!==null&&ns(t)),e}function ns(e){Fo===null?Fo=e:Fo.push.apply(Fo,e)}function rs(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!pn(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function is(e,t){for(t&=~No,t&=~Mo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function as(e){if(Co&6)throw Error(a(327));ys();var t=Ht(e,0);if(!(t&1))return $o(e,rn()),null;var n=fs(e,t);if(e.tag!==0&&n===2){var r=Gt(e);r!==0&&(t=r,n=ts(e,r))}if(n===1)throw n=Ao,cs(e,0),is(e,t),$o(e,rn()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_s(e,Fo,Ro),$o(e,rn()),null}function os(e){Wo!==null&&Wo.tag===0&&!(Co&6)&&ys();var t=Co;Co|=1;var n=H.transition,r=Zt;try{if(H.transition=null,Zt=1,e)return e()}finally{Zt=r,H.transition=n,Co=t,!(Co&6)&&yn()}}function ss(){Do=Oo.current,St(Oo)}function cs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==le&&(e.timeoutHandle=le,ce(n)),To!==null)for(n=To.return;n!==null;){var r=n;switch(Mn(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&At();break;case 3:jr(),St(Et),St(Tt),Lr();break;case 5:Nr(r);break;case 4:jr();break;case 13:St(Pr);break;case 19:St(Pr);break;case 10:cr(r.type._context);break;case 22:case 23:ss()}n=n.return}if(wo=e,To=e=Ms(e.current,null),Eo=Do=t,ko=0,Ao=null,No=Mo=jo=0,Fo=Po=null,fr!==null){for(t=0;t<fr.length;t++)if(n=fr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}fr=null}return e}function ls(e,t){do{var n=To;try{if(or(),Rr.current=Mi,Wr){for(var r=Vr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wr=!1}if(Br=0,Ur=Hr=Vr=null,Gr=!1,Kr=0,So.current=null,n===null||n.return===null){ko=1,Ao=t,To=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Eo,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Xi(s);if(m!==null){m.flags&=-257,Zi(m,s,c,o,t),m.mode&1&&Yi(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Yi(o,u,t),ds();break a}l=Error(a(426))}}else if(Fn&&c.mode&1){var _=Xi(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Zi(_,s,c,o,t),Kn(Ui(l,c));break a}}o=l=Ui(l,c),ko!==4&&(ko=2),Po===null?Po=[o]:Po.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=qi(o,l,t);Sr(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(Ho===null||!Ho.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Ji(o,c,t);Sr(o,x);break a}}o=o.return}while(o!==null)}gs(n)}catch(e){t=e,To===n&&n!==null&&(To=n=n.return);continue}break}while(1)}function us(){var e=xo.current;return xo.current=Mi,e===null?Mi:e}function ds(){(ko===0||ko===3||ko===2)&&(ko=4),wo===null||!(jo&268435455)&&!(Mo&268435455)||is(wo,Eo)}function fs(e,t){var n=Co;Co|=2;var r=us();(wo!==e||Eo!==t)&&(Ro=null,cs(e,t));do try{ps();break}catch(t){ls(e,t)}while(1);if(or(),Co=n,xo.current=r,To!==null)throw Error(a(261));return wo=null,Eo=0,ko}function ps(){for(;To!==null;)hs(To)}function ms(){for(;To!==null&&!tn();)hs(To)}function hs(e){var t=Es(e.alternate,e,Do);e.memoizedProps=e.pendingProps,t===null?gs(e):To=t,So.current=null}function gs(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Na(n,t),n!==null){n.flags&=32767,To=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ko=6,To=null;return}}else if(n=Ma(n,t,Do),n!==null){To=n;return}if(t=t.sibling,t!==null){To=t;return}To=t=e}while(t!==null);ko===0&&(ko=5)}function _s(e,t,n){var r=Zt,i=H.transition;try{H.transition=null,Zt=1,vs(e,t,n,r)}finally{H.transition=i,Zt=r}return null}function vs(e,t,n,r){do ys();while(Wo!==null);if(Co&6)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Yt(e,o),e===wo&&(To=wo=null,Eo=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Uo||(Uo=!0,Ds(sn,function(){return ys(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=H.transition,H.transition=null;var s=Zt;Zt=1;var c=Co;Co|=4,So.current=null,Ba(e,n),to(n,e),F(e.containerInfo),e.current=n,ro(n,e,i),nn(),Co=c,Zt=s,H.transition=o}else e.current=n;if(Uo&&(Uo=!1,Wo=e,Go=i),o=e.pendingLanes,o===0&&(Ho=null),dn(n.stateNode,r),$o(e,rn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Bo)throw Bo=!1,e=Vo,Vo=null,e;return Go&1&&e.tag!==0&&ys(),o=e.pendingLanes,o&1?e===qo?Ko++:(Ko=0,qo=e):Ko=0,yn(),null}function ys(){if(Wo!==null){var e=Qt(Go),t=H.transition,n=Zt;try{if(H.transition=null,Zt=16>e?16:e,Wo===null)var r=!1;else{if(e=Wo,Wo=null,Go=0,Co&6)throw Error(a(331));var i=Co;for(Co|=4,V=e.current;V!==null;){var o=V,s=o.child;if(V.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(V=u;V!==null;){var d=V;switch(d.tag){case 0:case 11:case 15:Va(8,d,o)}var f=d.child;if(f!==null)f.return=d,V=f;else for(;V!==null;){d=V;var p=d.sibling,m=d.return;if(Wa(d),d===u){V=null;break}if(p!==null){p.return=m,V=p;break}V=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}V=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,V=s;else b:for(;V!==null;){if(o=V,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Va(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,V=v;break b}V=o.return}}var y=e.current;for(V=y;V!==null;){s=V;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,V=b;else b:for(s=y;V!==null;){if(c=V,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ha(9,c)}}catch(e){xs(c,c.return,e)}if(c===s){V=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,V=x;break b}V=c.return}}if(Co=i,yn(),un&&typeof un.onPostCommitFiberRoot==`function`)try{un.onPostCommitFiberRoot(ln,e)}catch{}r=!0}return r}finally{Zt=n,H.transition=t}}return!1}function bs(e,t,n){t=Ui(n,t),t=qi(e,t,1),e=br(e,t,1),t=Xo(),e!==null&&(Jt(e,1,t),$o(e,t))}function xs(e,t,n){if(e.tag===3)bs(e,e,n);else for(;t!==null;){if(t.tag===3){bs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Ho===null||!Ho.has(r))){e=Ui(n,e),e=Ji(t,e,1),t=br(t,e,1),e=Xo(),t!==null&&(Jt(t,1,e),$o(t,e));break}}t=t.return}}function Ss(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xo(),e.pingedLanes|=e.suspendedLanes&n,wo===e&&(Eo&n)===n&&(ko===4||ko===3&&(Eo&130023424)===Eo&&500>rn()-Io?cs(e,0):No|=n),$o(e,t)}function Cs(e,t){t===0&&(e.mode&1?(t=Bt,Bt<<=1,!(Bt&130023424)&&(Bt=4194304)):t=1);var n=Xo();e=hr(e,t),e!==null&&(Jt(e,t,n),$o(e,n))}function ws(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cs(e,n)}function Ts(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Cs(e,n)}var Es=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)$i=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return $i=!1,Sa(e,t,n);$i=!!(e.flags&131072)}else $i=!1,Fn&&t.flags&1048576&&An(t,Cn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ba(e,t),e=t.pendingProps;var i=Ot(t,Tt.current);ur(t,n),i=Xr(null,t,r,e,i,n);var o=Zr();return t.flags|=1,typeof i==`object`&&i&&typeof i.render==`function`&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kt(r)?(o=!0,Nt(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_r(t),i.updater=Ri,t.stateNode=i,i._reactInternals=t,Hi(t,r,e,n),t=ca(null,t,r,!0,o,n)):(t.tag=0,Fn&&o&&jn(t),ea(null,t,i,n),t=t.child),t;case 16:r=t.elementType;a:{switch(ba(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=js(r),e=Ii(r,e),i){case 0:t=oa(null,t,r,e,n);break a;case 1:t=sa(null,t,r,e,n);break a;case 11:t=ta(null,t,r,e,n);break a;case 14:t=na(null,t,r,Ii(r.type,e),n);break a}throw Error(a(306,r,``))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),oa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),sa(e,t,r,i,n);case 3:a:{if(la(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,i=o.element,vr(e,t),Cr(t,r,null,n);var s=t.memoizedState;if(r=s.element,pe&&o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ui(Error(a(423)),t),t=ua(e,t,r,n,i);break a}else if(r!==i){i=Ui(Error(a(424)),t),t=ua(e,t,r,n,i);break a}else for(pe&&(Pn=rt(t.stateNode.containerInfo),Nn=t,Fn=!0,Ln=null,In=!1),n=tr(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===i){t=xa(e,t,n);break a}ea(e,t,r,n)}t=t.child}return t;case 5:return Mr(t),e===null&&Vn(t),r=t.type,i=t.pendingProps,o=e===null?null:e.memoizedProps,s=i.children,ae(r,i)?s=null:o!==null&&ae(r,o)&&(t.flags|=32),aa(e,t),ea(e,t,s,n),t.child;case 6:return e===null&&Vn(t),null;case 13:return pa(e,t,n);case 4:return Ar(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=er(t,null,r,n):ea(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),ta(e,t,r,i,n);case 7:return ea(e,t,t.pendingProps,n),t.child;case 8:return ea(e,t,t.pendingProps.children,n),t.child;case 12:return ea(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,sr(t,r,s),o!==null)if(pn(o.value,s)){if(o.children===i.children&&!Et.current){t=xa(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=yr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),lr(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(a(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),lr(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ea(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ur(t,n),i=dr(i),r=r(i),t.flags|=1,ea(e,t,r,n),t.child;case 14:return r=t.type,i=Ii(r,t.pendingProps),i=Ii(r.type,i),na(e,t,r,i,n);case 15:return ra(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),ba(e,t),t.tag=1,kt(r)?(e=!0,Nt(t)):e=!1,ur(t,n),Bi(t,r,i),Hi(t,r,i,n),ca(null,t,r,!0,e,n);case 19:return ya(e,t,n);case 22:return ia(e,t,n)}throw Error(a(156,t.tag))};function Ds(e,t){return $t(e,t)}function Os(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 ks(e,t,n,r){return new Os(e,t,n,r)}function As(e){return e=e.prototype,!(!e||!e.isReactComponent)}function js(e){if(typeof e==`function`)return+!!As(e);if(e!=null){if(e=e.$$typeof,e===g)return 11;if(e===y)return 14}return 2}function Ms(e,t){var n=e.alternate;return n===null?(n=ks(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ns(e,t,n,r,i,o){var s=2;if(r=e,typeof e==`function`)As(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case l:return Ps(n.children,i,o,t);case u:s=8,i|=8;break;case d:return e=ks(12,n,t,i|2),e.elementType=d,e.lanes=o,e;case _:return e=ks(13,n,t,i),e.elementType=_,e.lanes=o,e;case v:return e=ks(19,n,t,i),e.elementType=v,e.lanes=o,e;case x:return Fs(n,i,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case f:s=10;break a;case m:s=9;break a;case g:s=11;break a;case y:s=14;break a;case b:s=16,r=null;break a}throw Error(a(130,e==null?e:typeof e,``))}return t=ks(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ps(e,t,n,r){return e=ks(7,e,r,t),e.lanes=n,e}function Fs(e,t,n,r){return e=ks(22,e,r,t),e.elementType=x,e.lanes=n,e.stateNode={isHidden:!1},e}function Is(e,t,n){return e=ks(6,e,null,t),e.lanes=n,e}function Ls(e,t,n){return t=ks(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=le,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qt(0),this.expirationTimes=qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qt(0),this.identifierPrefix=r,this.onRecoverableError=i,pe&&(this.mutableSourceEagerHydrationData=null)}function Rs(e,t,n,r,i,a,o,s,c){return e=new U(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ks(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_r(a),e}function zs(e){if(!e)return wt;e=e._reactInternals;a:{if(E(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(kt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(kt(n))return Mt(e,n,t)}return t}function Bs(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=k(t),e===null?null:e.stateNode}function Vs(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hs(e,t){Vs(e,t),(e=e.alternate)&&Vs(e,t)}function Us(e){return e=k(e),e===null?null:e.stateNode}function Ws(){return null}return t.attemptContinuousHydration=function(e){if(e.tag===13){var t=hr(e,134217728);t!==null&&Qo(t,e,134217728,Xo()),Hs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(e.tag===13){var t=hr(e,1);t!==null&&Qo(t,e,1,Xo()),Hs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13){var t=Zo(e),n=hr(e,t);n!==null&&Qo(n,e,t,Xo()),Hs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vt(t.pendingLanes);n!==0&&(Xt(t,n|1),$o(t,rn()),!(Co&6)&&(zo(),yn()))}break;case 13:os(function(){var t=hr(e,1);t!==null&&Qo(t,e,1,Xo())}),Hs(e,1)}},t.batchedUpdates=function(e,t){var n=Co;Co|=1;try{return e(t)}finally{Co=n,Co===0&&(zo(),hn&&yn())}},t.createComponentSelector=function(e){return{$$typeof:co,value:e}},t.createContainer=function(e,t,n,r,i,a,o){return Rs(e,t,!1,null,n,r,i,a,o)},t.createHasPseudoClassSelector=function(e){return{$$typeof:lo,value:e}},t.createHydrationContainer=function(e,t,n,r,i,a,o,s,c){return e=Rs(n,r,!0,e,i,a,o,s,c),e.context=zs(null),n=e.current,r=Xo(),i=Zo(n),a=yr(r,i),a.callback=t??null,br(n,a,i),e.current.lanes=i,Jt(e,i,r),$o(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:uo,value:e}},t.createTestNameSelector=function(e){return{$$typeof:fo,value:e}},t.createTextSelector=function(e){return{$$typeof:po,value:e}},t.deferredUpdates=function(e){var t=Zt,n=H.transition;try{return H.transition=null,Zt=16,e()}finally{Zt=t,H.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var a=Zt,o=H.transition;try{return H.transition=null,Zt=1,e(t,n,r,i)}finally{Zt=a,H.transition=o,Co===0&&zo()}},t.findAllNodes=yo,t.findBoundingRects=function(e,t){if(!be)throw Error(a(363));t=yo(e,t),e=[];for(var n=0;n<t.length;n++)e.push(Se(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var r=n.x,i=r+n.width,o=n.y,s=o+n.height,c=t-1;0<=c;c--)if(t!==c){var l=e[c],u=l.x,d=u+l.width,f=l.y,p=f+l.height;if(r>=u&&o>=f&&i<=d&&s<=p){e.splice(t,1);break}else if(!(r!==u||n.width!==l.width||p<o||f>s)){f>o&&(l.height+=f-o,l.y=o),p<s&&(l.height=s-f),e.splice(t,1);break}else if(!(o!==f||n.height!==l.height||d<r||u>i)){u>r&&(l.width+=u-r,l.x=r),d<i&&(l.width=i-u),e.splice(t,1);break}}}return e},t.findHostInstance=Bs,t.findHostInstanceWithNoPortals=function(e){return e=O(e),e=e===null?null:j(e),e===null?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return Bs(e)},t.flushControlled=function(e){var t=Co;Co|=1;var n=H.transition,r=Zt;try{H.transition=null,Zt=1,e()}finally{Zt=r,H.transition=n,Co=t,Co===0&&(zo(),yn())}},t.flushPassiveEffects=ys,t.flushSync=os,t.focusWithin=function(e,t){if(!be)throw Error(a(363));for(e=ho(e),t=vo(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!we(n)){if(n.tag===5&&Ee(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return Zt},t.getFindAllNodesFailureDescription=function(e,t){if(!be)throw Error(a(363));var n=0,r=[];e=[ho(e),0];for(var i=0;i<e.length;){var o=e[i++],s=e[i++],c=t[s];if((o.tag!==5||!we(o))&&(go(o,c)&&(r.push(_o(c)),s++,s>n&&(n=s)),s<t.length))for(o=o.child;o!==null;)e.push(o,s),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(_o(t[n]));return`findAllNodes was able to match part of the selector:
|
|
154
|
+
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Wi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gi(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ki=typeof WeakMap==`function`?WeakMap:Map;function qi(e,t,n){n=yr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bo||(Bo=!0,Vo=r),Gi(e,t)},n}function Ji(e,t,n){n=yr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Gi(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Gi(e,t),typeof r!=`function`&&(Ho===null?Ho=new Set([this]):Ho.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Yi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ki;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ss.bind(null,e,t,n),t.then(e,e))}function Xi(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Zi(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yr(-1,1),t.tag=2,br(n,t,1))),n.lanes|=1),e)}var Qi=o.ReactCurrentOwner,$i=!1;function ea(e,t,n,r){t.child=e===null?tr(t,null,n,r):er(t,e.child,n,r)}function ta(e,t,n,r,i){n=n.render;var a=t.ref;return ur(t,i),r=Xr(e,t,n,r,a,i),n=Zr(),e!==null&&!$i?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ba(e,t,i)):(Fn&&n&&jn(t),t.flags|=1,ea(e,t,r,i),t.child)}function na(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!As(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,ra(e,t,a,r,i)):(e=Ns(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Jn:n,n(o,r)&&e.ref===t.ref)return ba(e,t,i)}return t.flags|=1,e=Ms(a,r),e.ref=t.ref,e.return=t,t.child=e}function ra(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Jn(a,r)&&e.ref===t.ref)if($i=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&($i=!0);else return t.lanes=e.lanes,ba(e,t,i)}return oa(e,t,n,r,i)}function ia(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(Oo,Do),Do|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(Oo,Do),Do|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,B(Oo,Do),Do|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),B(Oo,Do),Do|=r;return ea(e,t,i,n),t.child}function aa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oa(e,t,n,r,i){var a=kt(n)?Dt:Tt.current;return a=Ot(t,a),ur(t,i),n=Xr(e,t,n,r,a,i),r=Zr(),e!==null&&!$i?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ba(e,t,i)):(Fn&&r&&jn(t),t.flags|=1,ea(e,t,n,i),t.child)}function sa(e,t,n,r,i){if(kt(n)){var a=!0;Nt(t)}else a=!1;if(ur(t,i),t.stateNode===null)ya(e,t),Bi(t,n,r),Hi(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=dr(l):(l=kt(n)?Dt:Tt.current,l=Ot(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Vi(t,o,r,l),gr=!1;var f=t.memoizedState;o.state=f,Cr(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Et.current||gr?(typeof u==`function`&&(Li(t,n,u,r),c=t.memoizedState),(s=gr||zi(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,vr(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ii(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=dr(c):(c=kt(n)?Dt:Tt.current,c=Ot(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Vi(t,o,r,c),gr=!1,f=t.memoizedState,o.state=f,Cr(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Et.current||gr?(typeof p==`function`&&(Li(t,n,p,r),m=t.memoizedState),(l=gr||zi(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ca(e,t,n,r,a,i)}function ca(e,t,n,r,i,a){aa(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&Pt(t,n,!1),ba(e,t,a);r=t.stateNode,Qi.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=er(t,e.child,null,a),t.child=er(t,null,s,a)):ea(e,t,s,a),t.memoizedState=r.state,i&&Pt(t,n,!0),t.child}function la(e){var t=e.stateNode;t.pendingContext?jt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jt(e,t.context,!1),Ar(e,t.containerInfo)}function ua(e,t,n,r,i){return Gn(),Kn(i),t.flags|=256,ea(e,t,n,r),t.child}var da={dehydrated:null,treeContext:null,retryLane:0};function V(e){return{baseLanes:e,cachePool:null,transitions:null}}function fa(e,t,n){var r=t.pendingProps,i=Pr.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),B(Pr,i&1),e===null)return Vn(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?tt(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Fs(o,r,0,null),e=Ps(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=V(n),t.memoizedState=da,e):pa(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ha(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ms(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Ps(a,o,n,null),a.flags|=2):a=Ms(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?V(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=da,r}return a=e.child,e=a.sibling,r=Ms(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function pa(e,t){return t=Fs({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ma(e,t,n,r){return r!==null&&Kn(r),er(t,e.child,null,n),e=pa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ha(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Wi(Error(a(422))),ma(e,t,s,r)):t.memoizedState===null?(o=r.fallback,i=t.mode,r=Fs({mode:`visible`,children:r.children},i,0,null),o=Ps(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&er(t,e.child,null,s),t.child.memoizedState=V(s),t.memoizedState=da,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return ma(e,t,s,null);if(tt(i))return r=I(i).digest,o=Error(a(419)),r=Wi(o,r,void 0),ma(e,t,s,r);if(n=(s&e.childLanes)!==0,$i||n){if(r=wo,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))===0?i:0,i!==0&&i!==o.retryLane&&(o.retryLane=i,hr(e,i),Qo(r,e,i,-1))}return ds(),r=Wi(Error(a(421))),ma(e,t,s,r)}return et(i)?(t.flags|=128,t.child=e.child,t=ws.bind(null,e),L(i,t),null):(e=o.treeContext,me&&(Pn=z(i),Nn=t,Fn=!0,Ln=null,In=!1,e!==null&&(wn[Tn++]=Dn,wn[Tn++]=On,wn[Tn++]=En,Dn=e.id,On=e.overflow,En=t)),t=pa(t,r.children),t.flags|=4096,t)}function ga(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lr(e.return,t,n)}function _a(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function va(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ea(e,t,r.children,n),r=Pr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ga(e,n,t);else if(e.tag===19)ga(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(Pr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Fr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_a(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_a(t,!0,n,null,a);break;case`together`:_a(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ya(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ba(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jo|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Ms(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ms(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xa(e,t,n){switch(t.tag){case 3:la(t),Gn();break;case 5:Mr(t);break;case 1:kt(t.type)&&Nt(t);break;case 4:Ar(t,t.stateNode.containerInfo);break;case 10:sr(t,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(B(Pr,Pr.current&1),e=ba(e,t,n),e===null?null:e.sibling):fa(e,t,n):(B(Pr,Pr.current&1),t.flags|=128,null);B(Pr,Pr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return va(e,t,n);t.flags|=128}var i=t.memoizedState;if(i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(Pr,Pr.current),r)break;return null;case 22:case 23:return t.lanes=0,ia(e,t,n)}return ba(e,t,n)}function Sa(e){e.flags|=4}function Ca(e,t){if(e!==null&&e.child===t.child)return!0;if(t.flags&16)return!1;for(e=t.child;e!==null;){if(e.flags&12854||e.subtreeFlags&12854)return!1;e=e.sibling}return!0}var wa,Ta,Ea,Da;if(fe)wa=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)F(e,n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ta=function(){},Ea=function(e,t,n,r,i){if(e=e.memoizedProps,e!==r){var a=t.stateNode,o=kr(Er.current);n=ae(a,n,e,r,i,o),(t.updateQueue=n)&&Sa(t)}},Da=function(e,t,n,r){n!==r&&Sa(t)};else if(pe){wa=function(e,t,n,r){for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=Ye(a,i.type,i.memoizedProps,i)),F(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=Xe(a,i.memoizedProps,i)),F(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),wa(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var Oa=function(e,t,n,r){for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=Ye(a,i.type,i.memoizedProps,i)),Ke(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=Xe(a,i.memoizedProps,i)),Ke(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),Oa(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Ta=function(e,t){var n=t.stateNode;if(!Ca(e,t)){e=n.containerInfo;var r=Ge(e);Oa(r,t,!1,!1),n.pendingChildren=r,Sa(t),qe(e,r)}},Ea=function(e,t,n,r,i){var a=e.stateNode,o=e.memoizedProps;if((e=Ca(e,t))&&o===r)t.stateNode=a;else{var s=t.stateNode,c=kr(Er.current),l=null;o!==r&&(l=ae(s,n,o,r,i,c)),e&&l===null?t.stateNode=a:(a=We(a,l,n,o,r,t,e,s),ie(a,n,r,i,c)&&Sa(t),t.stateNode=a,e?Sa(t):wa(a,t,!1,!1))}},Da=function(e,t,n,r){n===r?t.stateNode=e.stateNode:(e=kr(Or.current),n=kr(Er.current),t.stateNode=se(r,e,n,t),Sa(t))}}else Ta=function(){},Ea=function(){},Da=function(){};function ka(e,t){if(!Fn)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Aa(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ja(e,t,n){var r=t.pendingProps;switch(Mn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Aa(t),null;case 1:return kt(t.type)&&At(),Aa(t),null;case 3:return n=t.stateNode,jr(),Ct(Et),Ct(Tt),Lr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Un(t)?Sa(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ln!==null&&(ns(Ln),Ln=null))),Ta(e,t),Aa(t),null;case 5:Nr(t),n=kr(Or.current);var i=t.type;if(e!==null&&t.stateNode!=null)Ea(e,t,i,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Aa(t),null}if(e=kr(Er.current),Un(t)){if(!me)throw Error(a(175));e=it(t.stateNode,t.type,t.memoizedProps,n,e,t,!In),t.updateQueue=e,e!==null&&Sa(t)}else{var o=re(i,r,n,e,t);wa(o,t,!1,!1),t.stateNode=o,ie(o,i,r,n,e)&&Sa(t)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Aa(t),null;case 6:if(e&&t.stateNode!=null)Da(e,t,e.memoizedProps,r);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=kr(Or.current),n=kr(Er.current),Un(t)){if(!me)throw Error(a(176));if(e=t.stateNode,n=t.memoizedProps,(r=at(e,n,t,!In))&&(i=Nn,i!==null))switch(i.tag){case 3:pt(i.stateNode.containerInfo,e,n,(i.mode&1)!=0);break;case 5:mt(i.type,i.memoizedProps,i.stateNode,e,n,(i.mode&1)!=0)}r&&Sa(t)}else t.stateNode=se(r,e,n,t)}return Aa(t),null;case 13:if(Ct(Pr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fn&&Pn!==null&&t.mode&1&&!(t.flags&128))Wn(),Gn(),t.flags|=98560,i=!1;else if(i=Un(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(!me)throw Error(a(344));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));ot(i,t)}else Gn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Aa(t),i=!1}else Ln!==null&&(ns(Ln),Ln=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(n=r!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Pr.current&1?ko===0&&(ko=3):ds())),t.updateQueue!==null&&(t.flags|=4),Aa(t),null);case 4:return jr(),Ta(e,t),e===null&&ge(t.stateNode.containerInfo),Aa(t),null;case 10:return cr(t.type._context),Aa(t),null;case 17:return kt(t.type)&&At(),Aa(t),null;case 19:if(Ct(Pr),i=t.memoizedState,i===null)return Aa(t),null;if(r=(t.flags&128)!=0,o=i.rendering,o===null)if(r)ka(i,!1);else{if(ko!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fr(e),o!==null){for(t.flags|=128,ka(i,!1),e=o.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;n!==null;)r=n,i=e,r.flags&=14680066,o=r.alternate,o===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n=n.sibling;return B(Pr,Pr.current&1|2),t.child}e=e.sibling}i.tail!==null&&rn()>Lo&&(t.flags|=128,r=!0,ka(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fr(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),ka(i,!0),i.tail===null&&i.tailMode===`hidden`&&!o.alternate&&!Fn)return Aa(t),null}else 2*rn()-i.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,ka(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e===null?t.child=o:e.sibling=o,i.last=o)}return i.tail===null?(Aa(t),null):(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=rn(),t.sibling=null,e=Pr.current,B(Pr,r?e&1|2:e&1),t);case 22:case 23:return ss(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Do&1073741824&&(Aa(t),fe&&t.subtreeFlags&6&&(t.flags|=8192)):Aa(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Ma(e,t){switch(Mn(t),t.tag){case 1:return kt(t.type)&&At(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jr(),Ct(Et),Ct(Tt),Lr(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nr(t),null;case 13:if(Ct(Pr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct(Pr),null;case 4:return jr(),null;case 10:return cr(t.type._context),null;case 22:case 23:return ss(),null;case 24:return null;default:return null}}var Na=!1,Pa=!1,Fa=typeof WeakSet==`function`?WeakSet:Set,H=null;function Ia(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){xs(e,t,n)}else n.current=null}function La(e,t,n){try{n()}catch(n){xs(e,t,n)}}var Ra=!1;function za(e,t){for(N(e.containerInfo),H=t;H!==null;)if(e=H,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var n=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(n!==null){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode;o.__reactInternalSnapshotBeforeUpdate=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:Ii(e.type,r),i)}break;case 3:fe&&Ue(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(t){xs(e,e.return,t)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return n=Ra,Ra=!1,n}function Ba(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&La(t,n,a)}i=i.next}while(i!==r)}}function Va(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==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 Ha(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=te(n);break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Ua(e){var t=e.alternate;t!==null&&(e.alternate=null,Ua(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ve(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wa(e){return e.tag===5||e.tag===3||e.tag===4}function Ga(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ka(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Fe(n,e,t):Ae(n,e);else if(r!==4&&(e=e.child,e!==null))for(Ka(e,t,n),e=e.sibling;e!==null;)Ka(e,t,n),e=e.sibling}function qa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Pe(n,e,t):ke(n,e);else if(r!==4&&(e=e.child,e!==null))for(qa(e,t,n),e=e.sibling;e!==null;)qa(e,t,n),e=e.sibling}var Ja=null,Ya=!1;function Xa(e,t,n){for(n=n.child;n!==null;)Za(e,t,n),n=n.sibling}function Za(e,t,n){if(un&&typeof un.onCommitFiberUnmount==`function`)try{un.onCommitFiberUnmount(ln,n)}catch{}switch(n.tag){case 5:Pa||Ia(n,t);case 6:if(fe){var r=Ja,i=Ya;Ja=null,Xa(e,t,n),Ja=r,Ya=i,Ja!==null&&(Ya?Le(Ja,n.stateNode):Ie(Ja,n.stateNode))}else Xa(e,t,n);break;case 18:fe&&Ja!==null&&(Ya?dt(Ja,n.stateNode):ut(Ja,n.stateNode));break;case 4:fe?(r=Ja,i=Ya,Ja=n.stateNode.containerInfo,Ya=!0,Xa(e,t,n),Ja=r,Ya=i):(pe&&(r=n.stateNode.containerInfo,i=Ge(r),Je(r,i)),Xa(e,t,n));break;case 0:case 11:case 14:case 15:if(!Pa&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&La(n,t,o),i=i.next}while(i!==r)}Xa(e,t,n);break;case 1:if(!Pa&&(Ia(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xs(n,t,e)}Xa(e,t,n);break;case 21:Xa(e,t,n);break;case 22:n.mode&1?(Pa=(r=Pa)||n.memoizedState!==null,Xa(e,t,n),Pa=r):Xa(e,t,n);break;default:Xa(e,t,n)}}function Qa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fa),t.forEach(function(t){var r=Ts.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function $a(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t;if(fe){var c=s;a:for(;c!==null;){switch(c.tag){case 5:Ja=c.stateNode,Ya=!1;break a;case 3:Ja=c.stateNode.containerInfo,Ya=!0;break a;case 4:Ja=c.stateNode.containerInfo,Ya=!0;break a}c=c.return}if(Ja===null)throw Error(a(160));Za(o,s,i),Ja=null,Ya=!1}else Za(o,s,i);var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(e){xs(i,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)eo(t,e),t=t.sibling}function eo(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($a(t,e),to(e),r&4){try{Ba(3,e,e.return),Va(3,e)}catch(t){xs(e,e.return,t)}try{Ba(5,e,e.return)}catch(t){xs(e,e.return,t)}}break;case 1:$a(t,e),to(e),r&512&&n!==null&&Ia(n,n.return);break;case 5:if($a(t,e),to(e),r&512&&n!==null&&Ia(n,n.return),fe){if(e.flags&32){var i=e.stateNode;try{Re(i)}catch(t){xs(e,e.return,t)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps;if(n=n===null?o:n.memoizedProps,r=e.type,t=e.updateQueue,e.updateQueue=null,t!==null)try{Ne(i,t,r,n,o,e)}catch(t){xs(e,e.return,t)}}}break;case 6:if($a(t,e),to(e),r&4&&fe){if(e.stateNode===null)throw Error(a(162));i=e.stateNode,o=e.memoizedProps,n=n===null?o:n.memoizedProps;try{je(i,n,o)}catch(t){xs(e,e.return,t)}}break;case 3:if($a(t,e),to(e),r&4){if(fe&&me&&n!==null&&n.memoizedState.isDehydrated)try{ct(t.containerInfo)}catch(t){xs(e,e.return,t)}if(pe){i=t.containerInfo,o=t.pendingChildren;try{Je(i,o)}catch(t){xs(e,e.return,t)}}}break;case 4:if($a(t,e),to(e),r&4&&pe){o=e.stateNode,i=o.containerInfo,o=o.pendingChildren;try{Je(i,o)}catch(t){xs(e,e.return,t)}}break;case 13:$a(t,e),to(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Io=rn())),r&4&&Qa(e);break;case 22:var s=n!==null&&n.memoizedState!==null;if(e.mode&1?(Pa=(n=Pa)||s,$a(t,e),Pa=n):$a(t,e),to(e),r&8192){if(n=e.memoizedState!==null,(e.stateNode.isHidden=n)&&!s&&e.mode&1)for(H=e,r=e.child;r!==null;){for(t=H=r;H!==null;){s=H;var c=s.child;switch(s.tag){case 0:case 11:case 14:case 15:Ba(4,s,s.return);break;case 1:Ia(s,s.return);var l=s.stateNode;if(typeof l.componentWillUnmount==`function`){var u=s,d=s.return;try{var f=u;l.props=f.memoizedProps,l.state=f.memoizedState,l.componentWillUnmount()}catch(e){xs(u,d,e)}}break;case 5:Ia(s,s.return);break;case 22:if(s.memoizedState!==null){ao(t);continue}}c===null?ao(t):(c.return=s,H=c)}r=r.sibling}if(fe){a:if(r=null,fe)for(t=e;;){if(t.tag===5){if(r===null){r=t;try{i=t.stateNode,n?ze(i):Ve(t.stateNode,t.memoizedProps)}catch(t){xs(e,e.return,t)}}}else if(t.tag===6){if(r===null)try{o=t.stateNode,n?Be(o):He(o,t.memoizedProps)}catch(t){xs(e,e.return,t)}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}}break;case 19:$a(t,e),to(e),r&4&&Qa(e);break;case 21:break;default:$a(t,e),to(e)}}function to(e){var t=e.flags;if(t&2){try{if(fe){b:{for(var n=e.return;n!==null;){if(Wa(n)){var r=n;break b}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Re(i),r.flags&=-33),qa(e,Ga(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Ka(e,Ga(e),o);break;default:throw Error(a(161))}}}catch(t){xs(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function no(e,t,n){H=e,ro(e,t,n)}function ro(e,t,n){for(var r=(e.mode&1)!=0;H!==null;){var i=H,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Na;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Pa;s=Na;var l=Pa;if(Na=o,(Pa=c)&&!l)for(H=i;H!==null;)o=H,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?oo(i):(c.return=o,H=c);for(;a!==null;)H=a,ro(a,t,n),a=a.sibling;H=i,Na=s,Pa=l}io(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):io(e,t,n)}}function io(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pa||Va(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pa)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ii(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wr(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=te(t.child.stateNode);break;case 1:n=t.child.stateNode}wr(t,s,n)}break;case 5:var c=t.stateNode;n===null&&t.flags&4&&Me(c,t.type,t.memoizedProps,t);break;case 6:break;case 4:break;case 12:break;case 13:if(me&&t.memoizedState===null){var l=t.alternate;if(l!==null){var u=l.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&<(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Pa||t.flags&512&&Ha(t)}catch(e){xs(t,t.return,e)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function ao(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function oo(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Va(4,t)}catch(e){xs(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){xs(t,i,e)}}var a=t.return;try{Ha(t)}catch(e){xs(t,a,e)}break;case 5:var o=t.return;try{Ha(t)}catch(e){xs(t,o,e)}}}catch(e){xs(t,t.return,e)}if(t===e){H=null;break}var s=t.sibling;if(s!==null){s.return=t.return,H=s;break}H=t.return}}var so=0,co=1,lo=2,uo=3,fo=4;if(typeof Symbol==`function`&&Symbol.for){var po=Symbol.for;so=po(`selector.component`),co=po(`selector.has_pseudo_class`),lo=po(`selector.role`),uo=po(`selector.test_id`),fo=po(`selector.text`)}function mo(e){var t=he(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(a(364));return t}if(e=Se(e),e===null)throw Error(a(362));return e.stateNode.current}function ho(e,t){switch(t.$$typeof){case so:if(e.type===t.value)return!0;break;case co:a:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(r.tag!==5||!Te(r)){for(;o!=null&&ho(r,o);)i++,o=t[i];if(i===t.length){t=!0;break a}else for(r=r.child;r!==null;)e.push(r,i),r=r.sibling}}t=!1}return t;case lo:if(e.tag===5&&Ee(e.stateNode,t.value))return!0;break;case fo:if((e.tag===5||e.tag===6)&&(e=we(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case uo:if(e.tag===5&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function go(e){switch(e.$$typeof){case so:return`<`+(w(e.value)||`Unknown`)+`>`;case co:return`:has(`+(go(e)||``)+`)`;case lo:return`[role="`+e.value+`"]`;case fo:return`"`+e.value+`"`;case uo:return`[data-testname="`+e.value+`"]`;default:throw Error(a(365))}}function _o(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=e[r++],o=t[a];if(i.tag!==5||!Te(i)){for(;o!=null&&ho(i,o);)a++,o=t[a];if(a===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,a),i=i.sibling}}return n}function vo(e,t){if(!xe)throw Error(a(363));e=mo(e),e=_o(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(r.tag===5)Te(r)||t.push(r.stateNode);else for(r=r.child;r!==null;)e.push(r),r=r.sibling}return t}var yo=Math.ceil,bo=o.ReactCurrentDispatcher,xo=o.ReactCurrentOwner,So=o.ReactCurrentBatchConfig,Co=0,wo=null,To=null,Eo=0,Do=0,Oo=St(0),ko=0,Ao=null,jo=0,Mo=0,No=0,Po=null,Fo=null,Io=0,Lo=1/0,Ro=null;function zo(){Lo=rn()+500}var Bo=!1,Vo=null,Ho=null,Uo=!1,Wo=null,Go=0,Ko=0,qo=null,Jo=-1,Yo=0;function Xo(){return Co&6?rn():Jo===-1?Jo=rn():Jo}function Zo(e){return e.mode&1?Co&2&&Eo!==0?Eo&-Eo:qn.transition===null?(e=Zt,e===0?_e():e):(Yo===0&&(Yo=Kt()),Yo):1}function Qo(e,t,n,r){if(50<Ko)throw Ko=0,qo=null,Error(a(185));Jt(e,n,r),(!(Co&2)||e!==wo)&&(e===wo&&(!(Co&2)&&(Mo|=n),ko===4&&is(e,Eo)),$o(e,r),n===1&&Co===0&&!(t.mode&1)&&(zo(),hn&&yn()))}function $o(e,t){var n=e.callbackNode;Wt(e,t);var r=Ht(e,e===wo?Eo:0);if(r===0)n!==null&&en(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&en(n),t===1)e.tag===0?vn(as.bind(null,e)):_n(as.bind(null,e)),ye?be(function(){!(Co&6)&&yn()}):$t(an,yn),n=null;else{switch(Qt(r)){case 1:n=an;break;case 4:n=on;break;case 16:n=sn;break;case 536870912:n=cn;break;default:n=sn}n=Ds(n,es.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function es(e,t){if(Jo=-1,Yo=0,Co&6)throw Error(a(327));var n=e.callbackNode;if(ys()&&e.callbackNode!==n)return null;var r=Ht(e,e===wo?Eo:0);if(r===0)return null;if(r&30||(r&e.expiredLanes)!==0||t)t=fs(e,r);else{t=r;var i=Co;Co|=2;var o=us();(wo!==e||Eo!==t)&&(Ro=null,zo(),cs(e,t));do try{ms();break}catch(t){ls(e,t)}while(1);or(),bo.current=o,Co=i,To===null?(wo=null,Eo=0,t=ko):t=0}if(t!==0){if(t===2&&(i=Gt(e),i!==0&&(r=i,t=ts(e,i))),t===1)throw n=Ao,cs(e,0),is(e,r),$o(e,rn()),n;if(t===6)is(e,r);else{if(i=e.current.alternate,!(r&30)&&!rs(i)&&(t=fs(e,r),t===2&&(o=Gt(e),o!==0&&(r=o,t=ts(e,o))),t===1))throw n=Ao,cs(e,0),is(e,r),$o(e,rn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:_s(e,Fo,Ro);break;case 3:if(is(e,r),(r&130023424)===r&&(t=Io+500-rn(),10<t)){if(Ht(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Xo(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ce(_s.bind(null,e,Fo,Ro),t);break}_s(e,Fo,Ro);break;case 4:if(is(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Ft(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yo(r/1960))-r,10<r){e.timeoutHandle=ce(_s.bind(null,e,Fo,Ro),r);break}_s(e,Fo,Ro);break;case 5:_s(e,Fo,Ro);break;default:throw Error(a(329))}}}return $o(e,rn()),e.callbackNode===n?es.bind(null,e):null}function ts(e,t){var n=Po;return e.current.memoizedState.isDehydrated&&(cs(e,t).flags|=256),e=fs(e,t),e!==2&&(t=Fo,Fo=n,t!==null&&ns(t)),e}function ns(e){Fo===null?Fo=e:Fo.push.apply(Fo,e)}function rs(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!pn(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function is(e,t){for(t&=~No,t&=~Mo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ft(t),r=1<<n;e[n]=-1,t&=~r}}function as(e){if(Co&6)throw Error(a(327));ys();var t=Ht(e,0);if(!(t&1))return $o(e,rn()),null;var n=fs(e,t);if(e.tag!==0&&n===2){var r=Gt(e);r!==0&&(t=r,n=ts(e,r))}if(n===1)throw n=Ao,cs(e,0),is(e,t),$o(e,rn()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_s(e,Fo,Ro),$o(e,rn()),null}function os(e){Wo!==null&&Wo.tag===0&&!(Co&6)&&ys();var t=Co;Co|=1;var n=So.transition,r=Zt;try{if(So.transition=null,Zt=1,e)return e()}finally{Zt=r,So.transition=n,Co=t,!(Co&6)&&yn()}}function ss(){Do=Oo.current,Ct(Oo)}function cs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==ue&&(e.timeoutHandle=ue,le(n)),To!==null)for(n=To.return;n!==null;){var r=n;switch(Mn(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&At();break;case 3:jr(),Ct(Et),Ct(Tt),Lr();break;case 5:Nr(r);break;case 4:jr();break;case 13:Ct(Pr);break;case 19:Ct(Pr);break;case 10:cr(r.type._context);break;case 22:case 23:ss()}n=n.return}if(wo=e,To=e=Ms(e.current,null),Eo=Do=t,ko=0,Ao=null,No=Mo=jo=0,Fo=Po=null,fr!==null){for(t=0;t<fr.length;t++)if(n=fr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}fr=null}return e}function ls(e,t){do{var n=To;try{if(or(),Rr.current=Mi,Wr){for(var r=Vr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wr=!1}if(Br=0,Ur=Hr=Vr=null,Gr=!1,Kr=0,xo.current=null,n===null||n.return===null){ko=1,Ao=t,To=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Eo,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Xi(s);if(m!==null){m.flags&=-257,Zi(m,s,c,o,t),m.mode&1&&Yi(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Yi(o,u,t),ds();break a}l=Error(a(426))}}else if(Fn&&c.mode&1){var _=Xi(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Zi(_,s,c,o,t),Kn(Ui(l,c));break a}}o=l=Ui(l,c),ko!==4&&(ko=2),Po===null?Po=[o]:Po.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=qi(o,l,t);Sr(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(Ho===null||!Ho.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Ji(o,c,t);Sr(o,x);break a}}o=o.return}while(o!==null)}gs(n)}catch(e){t=e,To===n&&n!==null&&(To=n=n.return);continue}break}while(1)}function us(){var e=bo.current;return bo.current=Mi,e===null?Mi:e}function ds(){(ko===0||ko===3||ko===2)&&(ko=4),wo===null||!(jo&268435455)&&!(Mo&268435455)||is(wo,Eo)}function fs(e,t){var n=Co;Co|=2;var r=us();(wo!==e||Eo!==t)&&(Ro=null,cs(e,t));do try{ps();break}catch(t){ls(e,t)}while(1);if(or(),Co=n,bo.current=r,To!==null)throw Error(a(261));return wo=null,Eo=0,ko}function ps(){for(;To!==null;)hs(To)}function ms(){for(;To!==null&&!tn();)hs(To)}function hs(e){var t=Es(e.alternate,e,Do);e.memoizedProps=e.pendingProps,t===null?gs(e):To=t,xo.current=null}function gs(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ma(n,t),n!==null){n.flags&=32767,To=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ko=6,To=null;return}}else if(n=ja(n,t,Do),n!==null){To=n;return}if(t=t.sibling,t!==null){To=t;return}To=t=e}while(t!==null);ko===0&&(ko=5)}function _s(e,t,n){var r=Zt,i=So.transition;try{So.transition=null,Zt=1,vs(e,t,n,r)}finally{So.transition=i,Zt=r}return null}function vs(e,t,n,r){do ys();while(Wo!==null);if(Co&6)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Yt(e,o),e===wo&&(To=wo=null,Eo=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Uo||(Uo=!0,Ds(sn,function(){return ys(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=So.transition,So.transition=null;var s=Zt;Zt=1;var c=Co;Co|=4,xo.current=null,za(e,n),eo(n,e),P(e.containerInfo),e.current=n,no(n,e,i),nn(),Co=c,Zt=s,So.transition=o}else e.current=n;if(Uo&&(Uo=!1,Wo=e,Go=i),o=e.pendingLanes,o===0&&(Ho=null),dn(n.stateNode,r),$o(e,rn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Bo)throw Bo=!1,e=Vo,Vo=null,e;return Go&1&&e.tag!==0&&ys(),o=e.pendingLanes,o&1?e===qo?Ko++:(Ko=0,qo=e):Ko=0,yn(),null}function ys(){if(Wo!==null){var e=Qt(Go),t=So.transition,n=Zt;try{if(So.transition=null,Zt=16>e?16:e,Wo===null)var r=!1;else{if(e=Wo,Wo=null,Go=0,Co&6)throw Error(a(331));var i=Co;for(Co|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Ba(8,d,o)}var f=d.child;if(f!==null)f.return=d,H=f;else for(;H!==null;){d=H;var p=d.sibling,m=d.return;if(Ua(d),d===u){H=null;break}if(p!==null){p.return=m,H=p;break}H=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else b:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ba(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,H=v;break b}H=o.return}}var y=e.current;for(H=y;H!==null;){s=H;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,H=b;else b:for(s=y;H!==null;){if(c=H,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Va(9,c)}}catch(e){xs(c,c.return,e)}if(c===s){H=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,H=x;break b}H=c.return}}if(Co=i,yn(),un&&typeof un.onPostCommitFiberRoot==`function`)try{un.onPostCommitFiberRoot(ln,e)}catch{}r=!0}return r}finally{Zt=n,So.transition=t}}return!1}function bs(e,t,n){t=Ui(n,t),t=qi(e,t,1),e=br(e,t,1),t=Xo(),e!==null&&(Jt(e,1,t),$o(e,t))}function xs(e,t,n){if(e.tag===3)bs(e,e,n);else for(;t!==null;){if(t.tag===3){bs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Ho===null||!Ho.has(r))){e=Ui(n,e),e=Ji(t,e,1),t=br(t,e,1),e=Xo(),t!==null&&(Jt(t,1,e),$o(t,e));break}}t=t.return}}function Ss(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xo(),e.pingedLanes|=e.suspendedLanes&n,wo===e&&(Eo&n)===n&&(ko===4||ko===3&&(Eo&130023424)===Eo&&500>rn()-Io?cs(e,0):No|=n),$o(e,t)}function Cs(e,t){t===0&&(e.mode&1?(t=Bt,Bt<<=1,!(Bt&130023424)&&(Bt=4194304)):t=1);var n=Xo();e=hr(e,t),e!==null&&(Jt(e,t,n),$o(e,n))}function ws(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cs(e,n)}function Ts(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Cs(e,n)}var Es=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)$i=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return $i=!1,xa(e,t,n);$i=!!(e.flags&131072)}else $i=!1,Fn&&t.flags&1048576&&An(t,Cn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ya(e,t),e=t.pendingProps;var i=Ot(t,Tt.current);ur(t,n),i=Xr(null,t,r,e,i,n);var o=Zr();return t.flags|=1,typeof i==`object`&&i&&typeof i.render==`function`&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kt(r)?(o=!0,Nt(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_r(t),i.updater=Ri,t.stateNode=i,i._reactInternals=t,Hi(t,r,e,n),t=ca(null,t,r,!0,o,n)):(t.tag=0,Fn&&o&&jn(t),ea(null,t,i,n),t=t.child),t;case 16:r=t.elementType;a:{switch(ya(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=js(r),e=Ii(r,e),i){case 0:t=oa(null,t,r,e,n);break a;case 1:t=sa(null,t,r,e,n);break a;case 11:t=ta(null,t,r,e,n);break a;case 14:t=na(null,t,r,Ii(r.type,e),n);break a}throw Error(a(306,r,``))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),oa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),sa(e,t,r,i,n);case 3:a:{if(la(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,i=o.element,vr(e,t),Cr(t,r,null,n);var s=t.memoizedState;if(r=s.element,me&&o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ui(Error(a(423)),t),t=ua(e,t,r,n,i);break a}else if(r!==i){i=Ui(Error(a(424)),t),t=ua(e,t,r,n,i);break a}else for(me&&(Pn=R(t.stateNode.containerInfo),Nn=t,Fn=!0,Ln=null,In=!1),n=tr(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===i){t=ba(e,t,n);break a}ea(e,t,r,n)}t=t.child}return t;case 5:return Mr(t),e===null&&Vn(t),r=t.type,i=t.pendingProps,o=e===null?null:e.memoizedProps,s=i.children,oe(r,i)?s=null:o!==null&&oe(r,o)&&(t.flags|=32),aa(e,t),ea(e,t,s,n),t.child;case 6:return e===null&&Vn(t),null;case 13:return fa(e,t,n);case 4:return Ar(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=er(t,null,r,n):ea(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),ta(e,t,r,i,n);case 7:return ea(e,t,t.pendingProps,n),t.child;case 8:return ea(e,t,t.pendingProps.children,n),t.child;case 12:return ea(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,sr(t,r,s),o!==null)if(pn(o.value,s)){if(o.children===i.children&&!Et.current){t=ba(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=yr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),lr(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(a(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),lr(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ea(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ur(t,n),i=dr(i),r=r(i),t.flags|=1,ea(e,t,r,n),t.child;case 14:return r=t.type,i=Ii(r,t.pendingProps),i=Ii(r.type,i),na(e,t,r,i,n);case 15:return ra(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),ya(e,t),t.tag=1,kt(r)?(e=!0,Nt(t)):e=!1,ur(t,n),Bi(t,r,i),Hi(t,r,i,n),ca(null,t,r,!0,e,n);case 19:return va(e,t,n);case 22:return ia(e,t,n)}throw Error(a(156,t.tag))};function Ds(e,t){return $t(e,t)}function Os(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 ks(e,t,n,r){return new Os(e,t,n,r)}function As(e){return e=e.prototype,!(!e||!e.isReactComponent)}function js(e){if(typeof e==`function`)return+!!As(e);if(e!=null){if(e=e.$$typeof,e===g)return 11;if(e===y)return 14}return 2}function Ms(e,t){var n=e.alternate;return n===null?(n=ks(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ns(e,t,n,r,i,o){var s=2;if(r=e,typeof e==`function`)As(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case l:return Ps(n.children,i,o,t);case u:s=8,i|=8;break;case d:return e=ks(12,n,t,i|2),e.elementType=d,e.lanes=o,e;case _:return e=ks(13,n,t,i),e.elementType=_,e.lanes=o,e;case v:return e=ks(19,n,t,i),e.elementType=v,e.lanes=o,e;case x:return Fs(n,i,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case f:s=10;break a;case m:s=9;break a;case g:s=11;break a;case y:s=14;break a;case b:s=16,r=null;break a}throw Error(a(130,e==null?e:typeof e,``))}return t=ks(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ps(e,t,n,r){return e=ks(7,e,r,t),e.lanes=n,e}function Fs(e,t,n,r){return e=ks(22,e,r,t),e.elementType=x,e.lanes=n,e.stateNode={isHidden:!1},e}function Is(e,t,n){return e=ks(6,e,null,t),e.lanes=n,e}function U(e,t,n){return t=ks(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ls(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qt(0),this.expirationTimes=qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qt(0),this.identifierPrefix=r,this.onRecoverableError=i,me&&(this.mutableSourceEagerHydrationData=null)}function Rs(e,t,n,r,i,a,o,s,c){return e=new Ls(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ks(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_r(a),e}function zs(e){if(!e)return wt;e=e._reactInternals;a:{if(E(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(kt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(kt(n))return Mt(e,n,t)}return t}function Bs(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=ee(t),e===null?null:e.stateNode}function Vs(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hs(e,t){Vs(e,t),(e=e.alternate)&&Vs(e,t)}function Us(e){return e=ee(e),e===null?null:e.stateNode}function Ws(){return null}return t.attemptContinuousHydration=function(e){if(e.tag===13){var t=hr(e,134217728);t!==null&&Qo(t,e,134217728,Xo()),Hs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(e.tag===13){var t=hr(e,1);t!==null&&Qo(t,e,1,Xo()),Hs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13){var t=Zo(e),n=hr(e,t);n!==null&&Qo(n,e,t,Xo()),Hs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vt(t.pendingLanes);n!==0&&(Xt(t,n|1),$o(t,rn()),!(Co&6)&&(zo(),yn()))}break;case 13:os(function(){var t=hr(e,1);t!==null&&Qo(t,e,1,Xo())}),Hs(e,1)}},t.batchedUpdates=function(e,t){var n=Co;Co|=1;try{return e(t)}finally{Co=n,Co===0&&(zo(),hn&&yn())}},t.createComponentSelector=function(e){return{$$typeof:so,value:e}},t.createContainer=function(e,t,n,r,i,a,o){return Rs(e,t,!1,null,n,r,i,a,o)},t.createHasPseudoClassSelector=function(e){return{$$typeof:co,value:e}},t.createHydrationContainer=function(e,t,n,r,i,a,o,s,c){return e=Rs(n,r,!0,e,i,a,o,s,c),e.context=zs(null),n=e.current,r=Xo(),i=Zo(n),a=yr(r,i),a.callback=t??null,br(n,a,i),e.current.lanes=i,Jt(e,i,r),$o(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:lo,value:e}},t.createTestNameSelector=function(e){return{$$typeof:uo,value:e}},t.createTextSelector=function(e){return{$$typeof:fo,value:e}},t.deferredUpdates=function(e){var t=Zt,n=So.transition;try{return So.transition=null,Zt=16,e()}finally{Zt=t,So.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var a=Zt,o=So.transition;try{return So.transition=null,Zt=1,e(t,n,r,i)}finally{Zt=a,So.transition=o,Co===0&&zo()}},t.findAllNodes=vo,t.findBoundingRects=function(e,t){if(!xe)throw Error(a(363));t=vo(e,t),e=[];for(var n=0;n<t.length;n++)e.push(Ce(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var r=n.x,i=r+n.width,o=n.y,s=o+n.height,c=t-1;0<=c;c--)if(t!==c){var l=e[c],u=l.x,d=u+l.width,f=l.y,p=f+l.height;if(r>=u&&o>=f&&i<=d&&s<=p){e.splice(t,1);break}else if(!(r!==u||n.width!==l.width||p<o||f>s)){f>o&&(l.height+=f-o,l.y=o),p<s&&(l.height=s-f),e.splice(t,1);break}else if(!(o!==f||n.height!==l.height||d<r||u>i)){u>r&&(l.width+=u-r,l.x=r),d<i&&(l.width=i-u),e.splice(t,1);break}}}return e},t.findHostInstance=Bs,t.findHostInstanceWithNoPortals=function(e){return e=O(e),e=e===null?null:A(e),e===null?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return Bs(e)},t.flushControlled=function(e){var t=Co;Co|=1;var n=So.transition,r=Zt;try{So.transition=null,Zt=1,e()}finally{Zt=r,So.transition=n,Co=t,Co===0&&(zo(),yn())}},t.flushPassiveEffects=ys,t.flushSync=os,t.focusWithin=function(e,t){if(!xe)throw Error(a(363));for(e=mo(e),t=_o(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!Te(n)){if(n.tag===5&&De(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return Zt},t.getFindAllNodesFailureDescription=function(e,t){if(!xe)throw Error(a(363));var n=0,r=[];e=[mo(e),0];for(var i=0;i<e.length;){var o=e[i++],s=e[i++],c=t[s];if((o.tag!==5||!Te(o))&&(ho(o,c)&&(r.push(go(c)),s++,s>n&&(n=s)),s<t.length))for(o=o.child;o!==null;)e.push(o,s),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(go(t[n]));return`findAllNodes was able to match part of the selector:
|
|
155
155
|
`+(r.join(` > `)+`
|
|
156
156
|
|
|
157
157
|
No matching component was found for:
|
|
158
|
-
`)+e.join(` > `)}return null},t.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return
|
|
158
|
+
`)+e.join(` > `)}return null},t.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return te(e.child.stateNode);default:return e.child.stateNode}},t.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:Us,findFiberByHostInstance:e.findFiberByHostInstance||Ws,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1`},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{ln=t.inject(e),un=t}catch{}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!xe)throw Error(a(363));e=vo(e,t);var i=Oe(e,n,r).disconnect;return{disconnect:function(){i()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=Zt;try{return Zt=e,t()}finally{Zt=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var i=t.current,a=Xo(),o=Zo(i);return n=zs(n),t.context===null?t.context=n:t.pendingContext=n,t=yr(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=br(i,t,o),e!==null&&(Qo(e,i,o,a),xr(e,i,o)),o},t}})),aS=s(((e,t)=>{t.exports=iS()})),oS=s((e=>{e.DefaultEventPriority=16,e.LegacyRoot=0})),sS=s(((e,t)=>{t.exports=oS()})),cS={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0},lS=!1,uS=!1,dS=`.react-konva-event`,fS=!1,pS=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
|
159
159
|
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
|
160
160
|
Consider to add onDragMove or onDragEnd events.
|
|
161
161
|
For more info see: https://github.com/konvajs/react-konva/issues/256
|
|
162
|
-
`,
|
|
162
|
+
`,mS=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
|
163
163
|
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
|
164
164
|
For more info see: https://github.com/konvajs/react-konva/issues/194
|
|
165
|
-
`,gS={};function _S(e,t,n=gS){if(!uS&&`zIndex`in t&&(console.warn(hS),uS=!0),!dS&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(mS),dS=!0)}for(var a in n)if(!lS[a]){var o=a.slice(0,2)===`on`,s=n[a]!==t[a];if(o&&s){var c=a.substr(2).toLowerCase();c.substr(0,7)===`content`&&(c=`content`+c.substr(7,1).toUpperCase()+c.substr(8)),e.off(c,n[a])}t.hasOwnProperty(a)||e.setAttr(a,void 0)}var l=pS||t._useStrictMode,u={},d=!1;let f={};for(var a in t)if(!lS[a]){var o=a.slice(0,2)===`on`,p=n[a]!==t[a];if(o&&p){var c=a.substr(2).toLowerCase();c.substr(0,7)===`content`&&(c=`content`+c.substr(7,1).toUpperCase()+c.substr(8)),t[a]&&(f[c]=t[a])}!o&&(t[a]!==n[a]||l&&t[a]!==e.getAttr(a))&&(d=!0,u[a]=t[a])}for(var c in d&&(e.setAttrs(u),vS(e)),f)e.on(c+fS,f[c])}function vS(e){if(!J.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}var yS=c({appendChild:()=>BS,appendChildToContainer:()=>VS,appendInitialChild:()=>wS,cancelTimeout:()=>RS,clearContainer:()=>$S,commitMount:()=>qS,commitTextUpdate:()=>KS,commitUpdate:()=>JS,createInstance:()=>TS,createTextInstance:()=>ES,detachDeletedInstance:()=>eC,finalizeInitialChildren:()=>DS,getChildHostContext:()=>IS,getCurrentEventPriority:()=>tC,getPublicInstance:()=>OS,getRootHostContext:()=>FS,hideInstance:()=>YS,hideTextInstance:()=>XS,idlePriority:()=>bS.unstable_IdlePriority,insertBefore:()=>HS,insertInContainerBefore:()=>US,isPrimaryRenderer:()=>!1,noTimeout:()=>-1,now:()=>bS.unstable_now,prepareForCommit:()=>kS,preparePortalMount:()=>AS,prepareUpdate:()=>jS,removeChild:()=>WS,removeChildFromContainer:()=>GS,resetAfterCommit:()=>MS,resetTextContent:()=>NS,run:()=>bS.unstable_runWithPriority,scheduleTimeout:()=>LS,shouldDeprioritizeSubtree:()=>PS,shouldSetTextContent:()=>zS,supportsMutation:()=>!0,unhideInstance:()=>ZS,unhideTextInstance:()=>QS,warnsIfNotActing:()=>!0}),bS=h(),xS=cS(),SS={},CS={};iS.Node.prototype._applyProps=_S;function wS(e,t){if(typeof t==`string`){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),vS(e)}function TS(e,t,n){let r=iS[e];r||=(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),iS.Group);let i={},a={};for(var o in t)o.slice(0,2)===`on`?a[o]=t[o]:i[o]=t[o];let s=new r(i);return _S(s,a),s}function ES(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function DS(e,t,n){return!1}function OS(e){return e}function kS(){return null}function AS(){return null}function jS(e,t,n,r){return CS}function MS(){}function NS(e){}function PS(e,t){return!1}function FS(){return SS}function IS(){return SS}var LS=setTimeout,RS=clearTimeout;function zS(e,t){return!1}function BS(e,t){t.parent===e?t.moveToTop():e.add(t),vS(e)}function VS(e,t){t.parent===e?t.moveToTop():e.add(t),vS(e)}function HS(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),vS(e)}function US(e,t,n){HS(e,t,n)}function WS(e,t){t.destroy(),t.off(fS),vS(e)}function GS(e,t){t.destroy(),t.off(fS),vS(e)}function KS(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function qS(e,t,n){}function JS(e,t,n,r,i){_S(e,i,r)}function YS(e){e.hide(),vS(e)}function XS(e){}function ZS(e,t){(t.visible==null||t.visible)&&e.show()}function QS(e,t){}function $S(e){}function eC(){}var tC=()=>xS.DefaultEventPriority,nC=Object.defineProperty,rC=Object.defineProperties,iC=Object.getOwnPropertyDescriptors,aC=Object.getOwnPropertySymbols,oC=Object.prototype.hasOwnProperty,sC=Object.prototype.propertyIsEnumerable,cC=(e,t,n)=>t in e?nC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lC=(e,t)=>{for(var n in t||={})oC.call(t,n)&&cC(e,n,t[n]);if(aC)for(var n of aC(t))sC.call(t,n)&&cC(e,n,t[n]);return e},uC=(e,t)=>rC(e,iC(t));typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)?z.useLayoutEffect:z.useEffect;function dC(e,t,n){if(!e)return;if(n(e)===!0)return e;let r=t?e.return:e.child;for(;r;){let e=dC(r,t,n);if(e)return e;r=t?null:r.sibling}}function fC(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}var pC=console.error;console.error=function(){let e=[...arguments].join(``);if(e?.startsWith(`Warning:`)&&e.includes(`useContext`)){console.error=pC;return}return pC.apply(this,arguments)};var mC=fC(z.createContext(null)),hC=class extends z.Component{render(){return z.createElement(mC.Provider,{value:this._reactInternals},this.props.children)}};function gC(){let e=z.useContext(mC);if(e===null)throw Error(`its-fine: useFiber must be called within a <FiberProvider />!`);let t=z.useId();return z.useMemo(()=>{for(let n of[e,e?.alternate]){if(!n)continue;let e=dC(n,!1,e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}});if(e)return e}},[e,t])}function _C(){let e=gC(),[t]=z.useState(()=>new Map);t.clear();let n=e;for(;n;){if(n.type&&typeof n.type==`object`){let e=n.type._context===void 0&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==mC&&!t.has(e)&&t.set(e,z.useContext(fC(e)))}n=n.return}return t}function vC(){let e=_C();return z.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>r=>z.createElement(t,null,z.createElement(n.Provider,uC(lC({},r),{value:e.get(n)}))),e=>z.createElement(hC,lC({},e))),[e])}var yC=u(oS());function bC(e){let t=z.useRef({});return z.useLayoutEffect(()=>{t.current=e}),z.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}var xC=e=>{let t=z.useRef(null),n=z.useRef(null),r=z.useRef(null),i=bC(e),a=vC(),o=t=>{let{forwardedRef:n}=e;n&&(typeof n==`function`?n(t):n.current=t)};return z.useLayoutEffect(()=>(n.current=new iS.Stage({width:e.width,height:e.height,container:t.current}),o(n.current),r.current=kC.createContainer(n.current,xS.LegacyRoot,!1,null),kC.updateContainer(z.createElement(a,{},e.children),r.current),()=>{iS.isBrowser&&(o(null),kC.updateContainer(null,r.current,null),n.current.destroy())}),[]),z.useLayoutEffect(()=>{o(n.current),_S(n.current,e,i),kC.updateContainer(z.createElement(a,{},e.children),r.current,null)}),z.createElement(`div`,{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},SC=`Layer`,CC=`Rect`,wC=`Circle`,TC=`Line`,EC=`Text`,DC=`Arrow`,OC=`Transformer`,kC=(0,yC.default)(yS);kC.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:`18.3.1`,rendererPackageName:`react-konva`});var AC=z.forwardRef((e,t)=>z.createElement(hC,{},z.createElement(xC,{...e,forwardedRef:t})));R();var jC=W(`div`)({position:`relative`,width:`fit-content`}),MC=W(`img`)({alignItems:`center`,display:`flex`,justifyContent:`center`}),NC=({url:e,dimensions:{height:t,width:n}})=>(0,B.jsx)(jC,{children:(0,B.jsx)(MC,{alt:`drawing-response-image`,src:e,style:{height:t,maxWidth:n,maxHeight:350,width:n}})});NC.propTypes={dimensions:L.object.isRequired,url:L.string.isRequired};var PC=class{constructor(e,t){let{startx:n,starty:r,fillColor:i,outlineColor:a,createdAt:o}=e;this.startx=n,this.starty=r,this.createdAt=o,this.fillColor=i,this.outlineColor=a,this.type=t}toJson(){return JSON.parse(JSON.stringify(this))}};function FC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function IC(e,t){return!e||FC(e)?e:FC(e.default)?e.default:t&&FC(e[t])?e[t]:t&&FC(e[t]?.default)?e[t].default:e}var LC=IC(TC,`Line`),RC=class e extends PC{static TYPE=`FreePathDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,points:i,posX:a,posY:o}=t;this.points=i||[n,r],this.posX=a||0,this.posY=o||0}registerMovement(e,t){this.points=[...this.points,e,t]}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{this.posX=t.target.getX(),this.posY=t.target.getY(),e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,B.jsx)(LC,{draggable:t,tension:0,bezier:!0,points:this.points,fill:this.paintColor||this.fillColor,onClick:()=>this.handleOnClick(e),onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,stroke:this.paintColor||this.outlineColor,x:this.posX,y:this.posY},n)}};function zC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function BC(e,t){return!e||zC(e)?e:zC(e.default)?e.default:t&&zC(e[t])?e[t]:t&&zC(e[t]?.default)?e[t].default:e}var VC=BC(DC,`Arrow`),HC=class e extends PC{static TYPE=`LineDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,x:i,y:a,posX:o,posY:s}=t;this.x=i||n,this.y=a||r,this.posX=o||0,this.posY=s||0}registerMovement(e,t){this.x=e,this.y=t}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{this.posX=t.target.getX(),this.posY=t.target.getY(),e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e,a=[this.startx,this.starty,this.x,this.y];return(0,B.jsx)(VC,{draggable:t,points:a,fill:this.paintColor||this.outlineColor,onClick:()=>this.handleOnClick(e),stroke:this.paintColor||this.outlineColor,onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,x:this.posX,y:this.posY,pointerWidth:0,pointerLength:0},n)}};function UC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function WC(e,t){return!e||UC(e)?e:UC(e.default)?e.default:t&&UC(e[t])?e[t]:t&&UC(e[t]?.default)?e[t].default:e}var GC=WC(CC,`Rect`),KC=class e extends PC{static TYPE=`RectangleDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,x:i,y:a}=t;this.startx=n,this.starty=r,this.x=i||n,this.y=a||r,this.width=i-n||0,this.height=a-r||0}registerMovement(e,t){this.x=e,this.y=t,this.width=this.x-this.startx,this.height=this.y-this.starty}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{let n=this.startx-t.target.getX(),r=this.starty-t.target.getY();this.startx=t.target.getX(),this.starty=t.target.getY(),this.x-=n,this.y-=r,e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,B.jsx)(GC,{height:this.height,width:this.width,fill:this.paintColor||this.fillColor,onClick:()=>this.handleOnClick(e),onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,stroke:this.outlineColor,draggable:t,strokeWidth:2,x:this.startx,y:this.starty},n)}};function qC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function JC(e,t){return!e||qC(e)?e:qC(e.default)?e.default:t&&qC(e[t])?e[t]:t&&qC(e[t]?.default)?e[t].default:e}var YC=JC(wC,`Circle`),XC=class e extends PC{static TYPE=`CircleDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,x:i,y:a}=t;this.startx=n,this.starty=r,this.x=i||n,this.y=a||r;let o=this.startx-this.x,s=this.starty-this.y;this.radius=Math.sqrt(o*o+s*s)}registerMovement(e,t){this.x=e,this.y=t;let n=this.startx-this.x,r=this.starty-this.y;this.radius=Math.sqrt(n*n+r*r)}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{let n=this.startx-t.target.getX(),r=this.starty-t.target.getY();this.startx=t.target.getX(),this.starty=t.target.getY(),this.x-=n,this.y-=r,e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,B.jsx)(YC,{draggable:t,radius:this.radius,x:this.startx,y:this.starty,fill:this.paintColor||this.fillColor,onClick:()=>this.handleOnClick(e),onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,stroke:this.outlineColor},n)}};function ZC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function QC(e,t){return!e||ZC(e)?e:ZC(e.default)?e.default:t&&ZC(e[t])?e[t]:t&&ZC(e[t]?.default)?e[t].default:e}var $C=QC(TC,`Line`),ew=[RC,HC,KC,XC,class e extends PC{static TYPE=`EraserDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,points:i,posX:a,posY:o}=t;this.points=i||[n,r],this.posX=a||0,this.posY=o||0}registerMovement(e,t){this.points=[...this.points,e,t]}handleDragEnd=(e,t)=>{this.posX=t.target.getX(),this.posY=t.target.getY(),e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,B.jsx)($C,{draggable:t,globalCompositeOperation:`destination-out`,tension:0,bezier:!0,points:this.points,onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,strokeStyle:`#df4b26`,lineJoin:`round`,lineWidth:`5`,fill:`white`,stroke:`white`,strokeWidth:5,x:this.posX,y:this.posY},n)}}],tw=(e,t)=>{let n=ew.find(t=>t.TYPE===e);if(n)return new n(t);throw Error(`Can't find drawable for type: ${e} and props: ${JSON.stringify(t)}`)};R();function nw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function rw(e,t){return!e||nw(e)?e:nw(e.default)?e.default:t&&nw(e[t])?e[t]:t&&nw(e[t]?.default)?e[t].default:e}var iw=rw(AC,`Stage`),aw=rw(SC,`Layer`),{translator:ow}=Nh,sw=W(`div`)({display:`flex`,flexWrap:`wrap`,justifyContent:`flex-end`}),cw=W(`div`)({position:`relative`,width:`100%`}),lw=W(`div`)({marginTop:-43,marginRight:10,position:`absolute`}),uw=class extends z.Component{constructor(e){super(e),this.state={drawables:[],newDrawable:[],textIsSelected:!1},this.stage=null,this.layer=null}componentWillUnmount(){this.stage=null,this.layer=null}UNSAFE_componentWillReceiveProps(e){if(e.session){let{TextEntry:t}=e,{drawables:n}=this.state;if(e.session.drawables){let r=x(e.session.drawables);if(JSON.stringify(n)!==JSON.stringify((r||[]).map(e=>T(e,`type`)))){let t=e.session.drawables;this.setState({drawables:t.map(e=>tw(e.type,e))})}w(t.all.map(e=>({...e,...t[`text_${e.id}`]&&t[`text_${e.id}`].attrs,value:t[`textarea_${e.id}`]&&t[`textarea_${e.id}`].value})),e.session.texts)||t.setAll(e.session.texts||[])}}else this.handleSessionChange()}handleSessionChange=()=>{let{onSessionChange:e,session:t,TextEntry:n,drawableDimensions:r}=this.props,{drawables:i}=this.state,a={width:r.width,drawables:i.map(e=>e.toJson()),texts:n.all.map(e=>({...e,...n[`text_${e.id}`]&&n[`text_${e.id}`].attrs,value:n[`textarea_${e.id}`]&&n[`textarea_${e.id}`].value}))};w(a,t)||e({...t,...a})};onMouseOverElement=()=>this.setState({isOver:!0});onMouseOutElement=()=>this.setState({isOver:!1});handleMouseDown=e=>{document.body.style.overflow=`hidden`;let{newDrawable:t,textIsSelected:n}=this.state,{toolActive:r,fillColor:i,outlineColor:a,scale:o}=this.props;if(t.length===0&&!n){let t=e.target.getStage();if(!t)return;let{x:n,y:s}=t.getPointerPosition(),c=tw(r.type,{startx:n/o,starty:s/o,fillColor:i,outlineColor:a,createdAt:new Date});this.setState({newDrawable:[c]})}};handleMouseUp=e=>{document.body.style.overflow=`initial`;let{newDrawable:t,drawables:n}=this.state,{scale:r}=this.props;if(t.length===1){let i=e.target.getStage();if(!i)return;let{x:a,y:o}=i.getPointerPosition(),s=t[0];s.registerMovement(a/r,o/r),n.push(s),this.setState({newDrawable:[],drawables:n},this.handleSessionChange.bind(this,s))}};handleMouseMove=e=>{let{newDrawable:t}=this.state,{scale:n}=this.props;if(t.length===1){let r=e.target.getStage();if(!r)return;let{x:i,y:a}=r.getPointerPosition(),o=t[0];o.registerMovement(i/n,a/n),this.setState({newDrawable:[o]})}};handleUndo=()=>{let{drawables:e}=this.state,{TextEntry:t}=this.props,n=[...e],r=[...e,...t.all];r.sort((e,t)=>new Date(e.createdAt)-new Date(t.createdAt));let i=r[r.length-1];i&&i.type===`text-entry`?(t.all.pop(),this.setState({updatedAt:new Date},this.handleSessionChange)):(n.pop(),this.setState({drawables:n},this.handleSessionChange))};handleClearAll=()=>{let{TextEntry:e}=this.props;e.all=[],this.setState({drawables:[],updatedAt:new Date},this.handleSessionChange)};toggleTextSelected=e=>this.setState({textIsSelected:e});render(){let{disabled:e,drawableDimensions:t,fillColor:n,imageDimensions:r,imageUrl:i,paintColor:a,outlineColor:o,TextEntry:s,backgroundImageEnabled:c=!0,toolActive:{type:l},scale:u,language:d}=this.props,{isOver:f,newDrawable:p}=this.state,m=l===`Select`,h=l===`PaintBucket`,g=[...this.state.drawables,...this.state.newDrawable],_={draggable:m&&!e,disabled:e,paint:h,fillColor:n,forceUpdate:()=>this.setState({updatedAt:new Date}),paintColor:a,outlineColor:o,toggleTextSelected:this.toggleTextSelected,handleSessionChange:this.handleSessionChange,stage:this.stage,onMouseOverElement:this.onMouseOverElement,onMouseOutElement:this.onMouseOutElement,scale:u},v={};e||(v={onMouseUp:this.handleMouseUp,onTouchEnd:this.handleMouseUp,onMouseMove:this.handleMouseMove,onTouchMove:this.handleMouseMove},m||(v.onMouseDown=this.handleMouseDown,v.onTouchStart=this.handleMouseDown));let y=r?.height*u,b=r?.width*u;return(0,B.jsxs)(sw,{children:[(0,B.jsxs)(lw,{children:[(0,B.jsx)(Ih,{disabled:e,onClick:this.handleUndo,label:ow.t(`common:undo`,{lng:d})}),(0,B.jsx)(Ih,{disabled:e,onClick:this.handleClearAll,label:ow.t(`common:clearAll`,{lng:d})})]}),(0,B.jsxs)(cw,{children:[c&&i&&(0,B.jsx)(NC,{dimensions:{height:y,width:b},url:i}),s.renderTextareas(),(0,B.jsx)(`div`,{style:{position:`absolute`,left:0,top:0,touchAction:`none`,cursor:m&&(f||p.length===1)?`pointer`:`default`},children:(0,B.jsx)(iw,{scaleX:u,scaleY:u,ref:e=>this.stage=e,height:t.height,width:t.width,...v,children:(0,B.jsxs)(aw,{ref:e=>this.layer=e,children:[g.map((e,t)=>e.render({..._,key:t})),s.render(_)]})},`drawing-stage`)})]})]})}};uw.propTypes={disabled:L.bool,drawableDimensions:L.object.isRequired,imageDimensions:L.object.isRequired,fillColor:L.string.isRequired,onSessionChange:L.func.isRequired,paintColor:L.string.isRequired,outlineColor:L.string.isRequired,imageUrl:L.string.isRequired,TextEntry:L.object.isRequired,toolActive:L.object.isRequired,session:L.object.isRequired,backgroundImageEnabled:L.bool.isRequired,scale:L.number.isRequired,language:L.string},R();function dw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function fw(e,t){return!e||dw(e)?e:dw(e.default)?e.default:t&&dw(e[t])?e[t]:t&&dw(e[t]?.default)?e[t].default:e}var pw=fw(OC,`Transformer`),mw=class extends z.Component{componentDidMount(){this.checkNode()}componentDidUpdate(){this.checkNode()}checkNode(){let e=this.transformer.getStage(),{selectedShapeName:t}=this.props,n=e.findOne(`.${t}`);n!==this.transformer.node()&&(n?this.transformer.attachTo(n):this.transformer.detach(),this.transformer.getLayer().batchDraw())}render(){return(0,B.jsx)(pw,{ref:e=>{this.transformer=e},enabledAnchors:[`middle-left`,`middle-right`],...this.props})}};mw.propTypes={selectedShapeName:L.string.isRequired};function hw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function gw(e,t){return!e||hw(e)?e:hw(e.default)?e.default:t&&hw(e[t])?e[t]:t&&hw(e[t]?.default)?e[t].default:e}var _w=gw(EC,`Text`),{translator:vw}=Nh,yw=()=>Math.random().toString(36).substring(2)+new Date().getTime().toString(36),bw=class e{static getTextareaNode(e){return`textarea_${e}`}static getTextNode(e){return`text_${e}`}static getTransformerNode(e){return`transformer_${e}`}constructor(e){this.all=e&&e.all||[],this.eventListenersDetachArray=[]}removeEventListeners=()=>this.eventListenersDetachArray.forEach(e=>e());setAll=e=>{this.all=e,this.props.forceUpdate()};addNewTextEntry=e=>{let t=this.all,n=yw();t.push({id:n,text:``,isDefault:!0,label:vw.t(`drawingResponse.onDoubleClick`,{lng:e}),width:200,x:(t.length+1)*5+50,y:(t.length+1)*5+50,textVisible:!0,transformerVisible:!0,textareaVisible:!1,createdAt:new Date,type:`text-entry`}),this.props.handleSessionChange()};showOnlyTextNodes(){this.all.map(e=>{e.textVisible=!0,e.transformerVisible=!1,e.textareaVisible=!1})}toggleTextarea(e,t){this.all=this.all.map(n=>n.id===e?{...n,textVisible:!t,transformerVisible:!t,textareaVisible:t}:n),this.props.forceUpdate()}initializeDefault(e,t){if(t){let t=this.all.filter(t=>t.id===e)[0];t.isDefault=!1}}saveValue(e,t){let n=t.value;this.all=this.all.map(t=>t.id===e?{...t,text:n}:t),n||(this.all=this.all.filter(t=>t.id!==e)),this.toggleTextarea(e,!1),this.props.handleSessionChange(),this.props.forceUpdate()}handleMouseDown=()=>this.props.toggleTextSelected(!0);handleMouseUp=()=>this.props.toggleTextSelected(!1);handleClick=(e,t)=>{let n=this.all.filter(e=>e.id===t)[0];n.transformerVisible=!0,this.props.forceUpdate()};handleDblClick=(t,n)=>{let{id:r,isDefault:i}=n;this.toggleTextarea(r,!0);let a=this[e.getTextNode(r)],o=this[e.getTextareaNode(r)];if(!a||!o)return;let s=a.getAbsolutePosition();o.value=n.text||``,o.style.position=`absolute`,o.style.top=s.y+`px`,o.style.left=s.x+`px`,o.style.width=a.width()-a.padding()*2+`px`,o.style.height=a.height()-a.padding()*2+5+`px`,o.style.fontSize=a.fontSize()+`px`,o.style.border=`none`,o.style.padding=`0px`,o.style.margin=`0px`,o.style.overflow=`hidden`,o.style.background=`none`,o.style.outline=`none`,o.style.resize=`none`,o.style.lineHeight=a.lineHeight(),o.style.fontFamily=a.fontFamily(),o.style.transformOrigin=`left top`,o.style.textAlign=a.align(),o.style.color=a.fill(),o.style.display=`block`;let c=a.rotation();o.style.transform=c?`rotateZ(${c}deg)`:``,o.focus();let l=e=>{e.key===`Enter`&&!e.shiftKey&&this.saveValue(r,o),e.key===`Escape`&&this.toggleTextarea(r,!1)},u=()=>{this.showOnlyTextNodes(),this.saveValue(r,o)};o.addEventListener(`keydown`,l),o.addEventListener(`blur`,u),this.eventListenersDetachArray.push(()=>{o.removeEventListener(`keydown`,l),o.removeEventListener(`blur`,u)}),this.initializeDefault(r,i),this.props.forceUpdate()};handleTransform=(e,t)=>{this[t].setAttrs({width:this[t].width()*this[t].scaleX(),scaleX:this.props.scale})};renderTextareas(){return this.all.map(e=>{let{id:t,textareaVisible:n}=e,r=`textarea_${t}`;return(0,B.jsx)(`textarea`,{ref:e=>{this[r]=e},style:{display:`${n?`block`:`none`}`}},r)})}setInitialProps(e){this.props||=e}render(e){if(this.setInitialProps(e),e.stage){let t=e.stage;if(t!==this.stage){let e=e=>{e.target===this.stage&&(this.showOnlyTextNodes(),this.props.forceUpdate())};t.on(`click`,e),this.eventListenersDetachArray.push(()=>t.off(`click`,e))}this.stage=t}return this.all.map(t=>{let{id:n,label:r,x:i,y:a,width:o,textVisible:s,rotation:c,transformerVisible:l}=t,u=`text_${n}`,d=`transformer_${n}`,f={};return e.disabled||(f={onClick:e=>this.handleClick(e,n),onTap:e=>this.handleClick(e,n),onDblClick:e=>this.handleDblClick(e,t),onDblTap:e=>this.handleDblClick(e,t),onTransform:e=>this.handleTransform(e,u),onTransformEnd:this.props.handleSessionChange,onMouseDown:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!0)},onTouchStart:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!0)},onDragStart:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!0)},onDragMove:e=>{e.cancelBubble=!0},onDragEnd:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!1),this.props.handleSessionChange()},onMouseUp:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!1)},onTouchEnd:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!1)},onMouseEnter:this.props.onMouseOverElement,onMouseLeave:this.props.onMouseOutElement}),c&&(f.rotation=c),[(0,B.jsx)(_w,{bubbles:!0,id:n,ref:e=>{this[u]=e},text:t.text||r,name:u,x:i,y:a,width:o,draggable:!e.disabled,visible:s,fontSize:16,...f},n),l&&(0,B.jsx)(mw,{ref:e=>{this[d]=e},selectedShapeName:u,onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleMouseUp},`transformer_${n}`)]})}},xw=s(((e,t)=>{t.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=2)}([function(e,t){e.exports=(R(),d(Me))},function(e,t){e.exports=p()},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(0),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},s=0,c=r.forwardRef((function(e,t){var n=e.title,i=n===void 0?null:n,c=e.description,l=c===void 0?null:c,u=e.size,d=u===void 0?null:u,f=e.color,p=f===void 0?`currentColor`:f,m=e.horizontal,h=m===void 0?null:m,g=e.vertical,_=g===void 0?null:g,v=e.rotate,y=v===void 0?null:v,b=e.spin,x=b===void 0?null:b,S=e.style,C=S===void 0?{}:S,w=e.children,T=o(e,[`title`,`description`,`size`,`color`,`horizontal`,`vertical`,`rotate`,`spin`,`style`,`children`]);s++;var E,D=x!==null&&x,O=r.Children.map(w,(function(e){var t=e;!0!==D&&(D=!0===(x===null?t.props.spin:x));var n=t.props.size;typeof d==`number`&&typeof t.props.size==`number`&&(n=t.props.size/d);var i={size:n,color:p===null?t.props.color:p,horizontal:h===null?t.props.horizontal:h,vertical:_===null?t.props.vertical:_,rotate:y===null?t.props.rotate:y,spin:x===null?t.props.spin:x,inStack:!0};return r.cloneElement(t,i)}));d!==null&&(C.width=typeof d==`string`?d:1.5*d+`rem`);var k,A=`stack_labelledby_`+s,j=`stack_describedby_`+s;if(i)E=l?A+` `+j:A;else if(k=`presentation`,l)throw Error(`title attribute required when description is set`);return r.createElement(`svg`,a({ref:t,viewBox:`0 0 24 24`,style:C,role:k,"aria-labelledby":E},T),i&&r.createElement(`title`,{id:A},i),l&&r.createElement(`desc`,{id:j},l),D&&r.createElement(`style`,null,`@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }`,`@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }`),O)}));c.displayName=`Stack`,c.propTypes={size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),children:i.oneOfType([i.arrayOf(i.node),i.node]).isRequired,className:i.string,style:i.object},c.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var l=c;n.d(t,`Icon`,(function(){return p})),n.d(t,`Stack`,(function(){return l}));var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},f=0,p=r.forwardRef((function(e,t){var n=e.path,i=e.id,a=i===void 0?++f:i,o=e.title,s=o===void 0?null:o,c=e.description,l=c===void 0?null:c,p=e.size,m=p===void 0?null:p,h=e.color,g=h===void 0?`currentColor`:h,_=e.horizontal,v=_!==void 0&&_,y=e.vertical,b=y!==void 0&&y,x=e.rotate,S=x===void 0?0:x,C=e.spin,w=C!==void 0&&C,T=e.style,E=T===void 0?{}:T,D=e.inStack,O=D!==void 0&&D,k=d(e,[`path`,`id`,`title`,`description`,`size`,`color`,`horizontal`,`vertical`,`rotate`,`spin`,`style`,`inStack`]),A={},j=[];m!==null&&(O?j.push(`scale(`+m+`)`):(E.width=typeof m==`string`?m:1.5*m+`rem`,E.height=E.width)),v&&j.push(`scaleX(-1)`),b&&j.push(`scaleY(-1)`),S!==0&&j.push(`rotate(`+S+`deg)`),g!==null&&(A.fill=g);var M=r.createElement(`path`,u({d:n,style:A},O?k:{})),ee=M;j.length>0&&(E.transform=j.join(` `),E.transformOrigin=`center`,O&&(ee=r.createElement(`g`,{style:E},M,r.createElement(`rect`,{width:`24`,height:`24`,fill:`transparent`}))));var N,te=ee,P=!0===w||typeof w!=`number`?2:w,F=!O&&(v||b);if(P<0&&(F=!F),w&&(te=r.createElement(`g`,{style:{animation:`spin`+(F?`-inverse`:``)+` linear `+Math.abs(P)+`s infinite`,transformOrigin:`center`}},ee,!(v||b||S!==0)&&r.createElement(`rect`,{width:`24`,height:`24`,fill:`transparent`}))),O)return te;var ne,I=`icon_labelledby_`+a,re=`icon_describedby_`+a;if(s)N=l?I+` `+re:I;else if(ne=`presentation`,l)throw Error(`title attribute required when description is set`);return r.createElement(`svg`,u({ref:t,viewBox:`0 0 24 24`,style:E,role:ne,"aria-labelledby":N},k),s&&r.createElement(`title`,{id:I},s),l&&r.createElement(`desc`,{id:re},l),!O&&w&&(F?r.createElement(`style`,null,`@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }`):r.createElement(`style`,null,`@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }`)),te)}));p.displayName=`Icon`,p.propTypes={path:i.string.isRequired,size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),style:i.object,inStack:i.bool,className:i.string},p.defaultProps={size:null,color:`currentColor`,horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=p}])})),Sw=`M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z`,Cw=`M13.64,21.97C13.14,22.21 12.54,22 12.31,21.5L10.13,16.76L7.62,18.78C7.45,18.92 7.24,19 7,19A1,1 0 0,1 6,18V3A1,1 0 0,1 7,2C7.24,2 7.47,2.09 7.64,2.23L7.65,2.22L19.14,11.86C19.57,12.22 19.62,12.85 19.27,13.27C19.12,13.45 18.91,13.57 18.7,13.61L15.54,14.23L17.74,18.96C18,19.46 17.76,20.05 17.26,20.28L13.64,21.97Z`,ww=`M16.24,3.56L21.19,8.5C21.97,9.29 21.97,10.55 21.19,11.34L12,20.53C10.44,22.09 7.91,22.09 6.34,20.53L2.81,17C2.03,16.21 2.03,14.95 2.81,14.16L13.41,3.56C14.2,2.78 15.46,2.78 16.24,3.56M4.22,15.58L7.76,19.11C8.54,19.9 9.8,19.9 10.59,19.11L14.12,15.58L9.17,10.63L4.22,15.58Z`,Tw=`M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z`,Ew=`M9.62,12L12,5.67L14.37,12M11,3L5.5,17H7.75L8.87,14H15.12L16.25,17H18.5L13,3H11Z`,Dw=`M19,13H5V11H19V13Z`,Ow=`M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z`,kw=`M4,6V19H20V6H4Z`;R();var Aw=u(xw(),1);function jw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function Mw(e,t){return!e||jw(e)?e:jw(e.default)?e.default:t&&jw(e[t])?e[t]:t&&jw(e[t]?.default)?e[t].default:e}var Nw=Mw(Aw.default,`Icon`),Pw=({path:e})=>{let t;switch(e){case`mdiPencil`:t=Ow;break;case`mdiMinus`:t=Dw;break;case`mdiCircle`:t=Sw;break;case`mdiRectangle`:t=kw;break;case`mdiFormatColorText`:t=Ew;break;case`mdiFormatColorFill`:t=Tw;break;case`mdiEraser`:t=ww;break;default:t=Cw;break}return(0,B.jsx)(Nw,{path:t,size:.8,rotate:180,horizontal:!0,vertical:!0,color:`#2B3963`})};Pw.propTypes={path:L.string.isRequired},R();var{tools:Fw}=Ph,{translator:Iw}=Nh,Lw=W(`div`)(({theme:e})=>({marginTop:e.spacing(2)})),Rw=W(`div`)(({theme:e})=>({border:`1px solid #E0E1E6`,borderRadius:`5px`,marginTop:e.spacing(2),backgroundColor:`#ECEDF1`})),zw=W(`div`)({minHeight:350,backgroundColor:`#fff`}),Bw=W(`div`)(({theme:e})=>({borderBottom:`1px solid #E0E1E6`,borderTopLeftRadius:`5px`,borderTopRightRadius:`5px`,padding:`12px 8px 4px`,boxSizing:`border-box`,maxWidth:`calc(100% - 163px)`,"& button":{marginBottom:e.spacing(1)}})),Vw=[`red`,`orange`,`yellow`,`violet`,`blue`,`green`,`white`,`black`].map(e=>({value:e,label:e})),Hw=class extends z.Component{static propTypes={disabled:L.bool,session:L.object.isRequired,onSessionChange:L.func.isRequired,imageDimensions:L.object.isRequired,imageUrl:L.string.isRequired,backgroundImageEnabled:L.bool.isRequired,language:L.string};constructor(e){super(e);let t=new bw;this.state={scale:1,drawableDimensions:{height:0,width:0},toolActive:Fw[0],fillColor:`white`,fillColorList:[{value:`transparent`,label:`no fill`},{value:`lightblue`,label:`light blue`},{value:`lightyellow`,label:`light yellow`},...Vw],outlineColor:`black`,outlineColorList:Vw,paintColor:`red`,paintColorList:Vw,TextEntry:t}}setTranslatedState(e){let t=Vw.map(t=>({value:t.value,label:Iw.t(`drawingResponse.${t.label}`,{lng:e})}));this.setState({fillColorList:[{value:`transparent`,label:Iw.t(`drawingResponse.noFill`,{lng:e})},{value:`lightblue`,label:Iw.t(`drawingResponse.lightblue`,{lng:e})},{value:`lightyellow`,label:Iw.t(`drawingResponse.lightyellow`,{lng:e})},...t],paintColor:Iw.t(`drawingResponse.red`,{lng:e}),outlineColorList:t,paintColorList:t})}UNSAFE_componentWillReceiveProps(e){let{language:t}=e;this.setTranslatedState(t)}setDimensions(){let e=setInterval(()=>{try{let{height:e,width:t}=this.drawable.getBoundingClientRect(),n=this.props.session.width||t;e!==0&&t!==0&&this.setState({drawableDimensions:{height:e,width:n}})}catch(e){console.warn(`setDimensions Error: `,e)}finally{clearInterval(e)}},100)}componentDidMount(){let{language:e}=this.props;this.setTranslatedState(e),this.setDimensions(),this.observer=new MutationObserver(e=>{e.forEach(()=>{let e=document.getElementById(`question-container`)?.style?.cssText,t=(e?.substring(e.indexOf(`--pie-zoom`)+11,e.lastIndexOf(`%`)))?.replace(/\s/g,``);t?parseFloat(t)/100!==this.state.scale&&this.setState({scale:parseFloat(t)/100}):!t&&this.state.scale!==1&&this.setState({scale:1})})}),this.resizeObserver=new ResizeObserver(()=>{this.setDimensions()}),this.drawable&&this.resizeObserver.observe(this.drawable);let t=document.getElementById(`question-container`);t&&this.observer.observe(t,{attributes:!0,attributeFilter:[`style`]})}componentWillUnmount(){let{TextEntry:e}=this.state;e.removeEventListeners(),this.observer?.disconnect(),this.resizeObserver?.disconnect()}handleMakeToolActive(e){let{TextEntry:t}=this.state,{type:n}=e,{language:r}=this.props;n===`Text`?(t.addNewTextEntry(r),this.setState({updatedAt:new Date})):this.setState({toolActive:e})}checkIfToolIsDisabled=e=>{if(this.props.disabled)return!0;let{toolActive:t}=this.state;return e!==`Text`&&e===t.type};handleColorChange(e,t){let n=`${e}Color`;this.setState({[n]:t})}render(){let{disabled:e,imageUrl:t,imageDimensions:n,onSessionChange:r,session:i,backgroundImageEnabled:a,language:o}=this.props,{drawableDimensions:s,toolActive:c,fillColor:l,fillColorList:u,outlineColor:d,outlineColorList:f,paintColor:p,paintColorList:m,TextEntry:h}=this.state,g=s.height*this.state.scale;return(0,B.jsxs)(Lw,{children:[!e&&(0,B.jsx)(y_,{fillColor:l,fillList:u,outlineColor:d,outlineList:f,paintColor:p,paintList:m,onFillColorChange:e=>this.handleColorChange(`fill`,e),onOutlineColorChange:e=>this.handleColorChange(`outline`,e),onPaintColorChange:e=>this.handleColorChange(`paint`,e),language:o}),(0,B.jsxs)(Rw,{children:[(0,B.jsx)(Bw,{children:Fw.map(e=>{let{type:t,label:n,icon:r}=e;return(0,B.jsx)(Ih,{title:n,disabled:this.checkIfToolIsDisabled(t),onClick:()=>this.handleMakeToolActive(e),label:(0,B.jsx)(Pw,{path:r})},t)})}),(0,B.jsx)(zw,{ref:e=>{this.drawable=e},style:{height:g,maxHeight:g,overflow:`scroll`},children:(0,B.jsx)(uw,{scale:this.state.scale,session:i,disabled:e,onSessionChange:r,fillColor:l,outlineColor:d,paintColor:p,imageUrl:t,drawableDimensions:s,imageDimensions:n,toolActive:c,TextEntry:h,backgroundImageEnabled:a,language:o})})]})]})}};R();function Uw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function Ww(e,t){return!e||Uw(e)?e:Uw(e.default)?e.default:t&&Uw(e[t])?e[t]:t&&Uw(e[t]?.default)?e[t].default:e}var Gw=Ww(xp,`UiLayout`)||Ww(Xw.UiLayout,`UiLayout`),Kw=Ww(Qp,`PreviewPrompt`)||Ww(Xw.PreviewPrompt,`PreviewPrompt`),qw=Ww(yf,`Collapsible`)||Ww(Xw.Collapsible,`Collapsible`),Jw=km,Yw=Jw.default,Xw=Yw&&typeof Yw==`object`?Yw:Jw,Zw=W(Gw)({color:Gu(),backgroundColor:pd()}),Qw=W(qw)(({theme:e})=>({marginBottom:e.spacing(2)})),$w=W(`div`)({color:Gu(),backgroundColor:pd()}),eT=class extends z.Component{constructor(e){super(e),this.state={showCorrect:!1,hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,errorMessage:e.message}}render(){let{model:{extraCSSRules:e,disabled:t,imageDimensions:n,imageUrl:r,prompt:i,mode:a,teacherInstructions:o,backgroundImageEnabled:s,language:c},session:l,onSessionChange:u}=this.props,{hasError:d,errorMessage:f}=this.state;return d?(0,B.jsxs)($w,{children:[`An error occured: `,f]}):(0,B.jsxs)(Zw,{extraCSSRules:e,children:[o&&(0,B.jsx)(Qw,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:(0,B.jsx)(Kw,{prompt:o})}),i&&(0,B.jsx)(Kw,{tagName:`span`,prompt:i}),(0,B.jsx)(Hw,{session:l,onSessionChange:u,isEvaluateMode:a===`evaluate`,imageDimensions:n,imageUrl:r,backgroundImageEnabled:s,disabled:t,language:c})]})}};eT.propTypes={model:L.object.isRequired,onSessionChange:L.func.isRequired,session:L.object.isRequired};var tT=v(),nT=class extends HTMLElement{constructor(){super(),this._root=null}set model(e){this._model=e,this.dispatchEvent(new Ae(this.tagName.toLowerCase(),this.isComplete(),!!this._model)),this._render()}isComplete(){return this._session&&(!S(this._session.drawables)||!S(this._session.texts))}sessionChanged=e=>{this._session.drawables=e.drawables,this._session.texts=e.texts,this._session.width=e.width,this.dispatchEvent(new je(this.tagName.toLowerCase(),this.isComplete())),this._render()};set session(e){this._session=e,this._render()}get session(){return this._session}connectedCallback(){this._render()}_render(){if(this._model&&this._session){let e=z.createElement(eT,{model:this._model,session:this._session,onSessionChange:this.sessionChanged});this._root||=(0,tT.createRoot)(this),this._root.render(e),queueMicrotask(()=>{ke(this)})}}disconnectedCallback(){this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`drawing-response-element`)&&customElements.define(`drawing-response-element`,nT),nT})();
|
|
165
|
+
`,hS={};function gS(e,t,n=hS){if(!lS&&`zIndex`in t&&(console.warn(mS),lS=!0),!uS&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(pS),uS=!0)}for(var a in n)if(!cS[a]){var o=a.slice(0,2)===`on`,s=n[a]!==t[a];if(o&&s){var c=a.substr(2).toLowerCase();c.substr(0,7)===`content`&&(c=`content`+c.substr(7,1).toUpperCase()+c.substr(8)),e.off(c,n[a])}t.hasOwnProperty(a)||e.setAttr(a,void 0)}var l=fS||t._useStrictMode,u={},d=!1;let f={};for(var a in t)if(!cS[a]){var o=a.slice(0,2)===`on`,p=n[a]!==t[a];if(o&&p){var c=a.substr(2).toLowerCase();c.substr(0,7)===`content`&&(c=`content`+c.substr(7,1).toUpperCase()+c.substr(8)),t[a]&&(f[c]=t[a])}!o&&(t[a]!==n[a]||l&&t[a]!==e.getAttr(a))&&(d=!0,u[a]=t[a])}for(var c in d&&(e.setAttrs(u),_S(e)),f)e.on(c+dS,f[c])}function _S(e){if(!J.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}var vS=c({appendChild:()=>zS,appendChildToContainer:()=>BS,appendInitialChild:()=>CS,cancelTimeout:()=>LS,clearContainer:()=>QS,commitMount:()=>KS,commitTextUpdate:()=>GS,commitUpdate:()=>qS,createInstance:()=>wS,createTextInstance:()=>TS,detachDeletedInstance:()=>$S,finalizeInitialChildren:()=>ES,getChildHostContext:()=>FS,getCurrentEventPriority:()=>eC,getPublicInstance:()=>DS,getRootHostContext:()=>PS,hideInstance:()=>JS,hideTextInstance:()=>YS,idlePriority:()=>yS.unstable_IdlePriority,insertBefore:()=>VS,insertInContainerBefore:()=>HS,isPrimaryRenderer:()=>!1,noTimeout:()=>-1,now:()=>yS.unstable_now,prepareForCommit:()=>OS,preparePortalMount:()=>kS,prepareUpdate:()=>AS,removeChild:()=>US,removeChildFromContainer:()=>WS,resetAfterCommit:()=>jS,resetTextContent:()=>MS,run:()=>yS.unstable_runWithPriority,scheduleTimeout:()=>IS,shouldDeprioritizeSubtree:()=>NS,shouldSetTextContent:()=>RS,supportsMutation:()=>!0,unhideInstance:()=>XS,unhideTextInstance:()=>ZS,warnsIfNotActing:()=>!0}),yS=h(),bS=sS(),xS={},SS={};rS.Node.prototype._applyProps=gS;function CS(e,t){if(typeof t==`string`){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),_S(e)}function wS(e,t,n){let r=rS[e];r||=(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),rS.Group);let i={},a={};for(var o in t)o.slice(0,2)===`on`?a[o]=t[o]:i[o]=t[o];let s=new r(i);return gS(s,a),s}function TS(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function ES(e,t,n){return!1}function DS(e){return e}function OS(){return null}function kS(){return null}function AS(e,t,n,r){return SS}function jS(){}function MS(e){}function NS(e,t){return!1}function PS(){return xS}function FS(){return xS}var IS=setTimeout,LS=clearTimeout;function RS(e,t){return!1}function zS(e,t){t.parent===e?t.moveToTop():e.add(t),_S(e)}function BS(e,t){t.parent===e?t.moveToTop():e.add(t),_S(e)}function VS(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),_S(e)}function HS(e,t,n){VS(e,t,n)}function US(e,t){t.destroy(),t.off(dS),_S(e)}function WS(e,t){t.destroy(),t.off(dS),_S(e)}function GS(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function KS(e,t,n){}function qS(e,t,n,r,i){gS(e,i,r)}function JS(e){e.hide(),_S(e)}function YS(e){}function XS(e,t){(t.visible==null||t.visible)&&e.show()}function ZS(e,t){}function QS(e){}function $S(){}var eC=()=>bS.DefaultEventPriority,tC=Object.defineProperty,nC=Object.defineProperties,rC=Object.getOwnPropertyDescriptors,iC=Object.getOwnPropertySymbols,aC=Object.prototype.hasOwnProperty,oC=Object.prototype.propertyIsEnumerable,sC=(e,t,n)=>t in e?tC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cC=(e,t)=>{for(var n in t||={})aC.call(t,n)&&sC(e,n,t[n]);if(iC)for(var n of iC(t))oC.call(t,n)&&sC(e,n,t[n]);return e},lC=(e,t)=>nC(e,rC(t));typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)?R.useLayoutEffect:R.useEffect;function uC(e,t,n){if(!e)return;if(n(e)===!0)return e;let r=t?e.return:e.child;for(;r;){let e=uC(r,t,n);if(e)return e;r=t?null:r.sibling}}function dC(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}var fC=console.error;console.error=function(){let e=[...arguments].join(``);if(e?.startsWith(`Warning:`)&&e.includes(`useContext`)){console.error=fC;return}return fC.apply(this,arguments)};var pC=dC(R.createContext(null)),mC=class extends R.Component{render(){return R.createElement(pC.Provider,{value:this._reactInternals},this.props.children)}};function hC(){let e=R.useContext(pC);if(e===null)throw Error(`its-fine: useFiber must be called within a <FiberProvider />!`);let t=R.useId();return R.useMemo(()=>{for(let n of[e,e?.alternate]){if(!n)continue;let e=uC(n,!1,e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}});if(e)return e}},[e,t])}function gC(){let e=hC(),[t]=R.useState(()=>new Map);t.clear();let n=e;for(;n;){if(n.type&&typeof n.type==`object`){let e=n.type._context===void 0&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==pC&&!t.has(e)&&t.set(e,R.useContext(dC(e)))}n=n.return}return t}function _C(){let e=gC();return R.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>r=>R.createElement(t,null,R.createElement(n.Provider,lC(cC({},r),{value:e.get(n)}))),e=>R.createElement(mC,cC({},e))),[e])}var vC=u(aS());function yC(e){let t=R.useRef({});return R.useLayoutEffect(()=>{t.current=e}),R.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}var bC=e=>{let t=R.useRef(null),n=R.useRef(null),r=R.useRef(null),i=yC(e),a=_C(),o=t=>{let{forwardedRef:n}=e;n&&(typeof n==`function`?n(t):n.current=t)};return R.useLayoutEffect(()=>(n.current=new rS.Stage({width:e.width,height:e.height,container:t.current}),o(n.current),r.current=OC.createContainer(n.current,bS.LegacyRoot,!1,null),OC.updateContainer(R.createElement(a,{},e.children),r.current),()=>{rS.isBrowser&&(o(null),OC.updateContainer(null,r.current,null),n.current.destroy())}),[]),R.useLayoutEffect(()=>{o(n.current),gS(n.current,e,i),OC.updateContainer(R.createElement(a,{},e.children),r.current,null)}),R.createElement(`div`,{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},xC=`Layer`,SC=`Rect`,CC=`Circle`,wC=`Line`,TC=`Text`,EC=`Arrow`,DC=`Transformer`,OC=(0,vC.default)(vS);OC.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:`18.3.1`,rendererPackageName:`react-konva`});var kC=R.forwardRef((e,t)=>R.createElement(mC,{},R.createElement(bC,{...e,forwardedRef:t})));L();var AC=W(`div`)({position:`relative`,width:`fit-content`}),jC=W(`img`)({alignItems:`center`,display:`flex`,justifyContent:`center`}),MC=({url:e,dimensions:{height:t,width:n}})=>(0,z.jsx)(AC,{children:(0,z.jsx)(jC,{alt:`drawing-response-image`,src:e,style:{height:t,maxWidth:n,maxHeight:350,width:n}})});MC.propTypes={dimensions:I.object.isRequired,url:I.string.isRequired};var NC=class{constructor(e,t){let{startx:n,starty:r,fillColor:i,outlineColor:a,createdAt:o}=e;this.startx=n,this.starty=r,this.createdAt=o,this.fillColor=i,this.outlineColor=a,this.type=t}toJson(){return JSON.parse(JSON.stringify(this))}};function PC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function FC(e,t){return!e||PC(e)?e:PC(e.default)?e.default:t&&PC(e[t])?e[t]:t&&PC(e[t]?.default)?e[t].default:e}var IC=FC(wC,`Line`),LC=class e extends NC{static TYPE=`FreePathDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,points:i,posX:a,posY:o}=t;this.points=i||[n,r],this.posX=a||0,this.posY=o||0}registerMovement(e,t){this.points=[...this.points,e,t]}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{this.posX=t.target.getX(),this.posY=t.target.getY(),e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,z.jsx)(IC,{draggable:t,tension:0,bezier:!0,points:this.points,fill:this.paintColor||this.fillColor,onClick:()=>this.handleOnClick(e),onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,stroke:this.paintColor||this.outlineColor,x:this.posX,y:this.posY},n)}};function RC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function zC(e,t){return!e||RC(e)?e:RC(e.default)?e.default:t&&RC(e[t])?e[t]:t&&RC(e[t]?.default)?e[t].default:e}var BC=zC(EC,`Arrow`),VC=class e extends NC{static TYPE=`LineDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,x:i,y:a,posX:o,posY:s}=t;this.x=i||n,this.y=a||r,this.posX=o||0,this.posY=s||0}registerMovement(e,t){this.x=e,this.y=t}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{this.posX=t.target.getX(),this.posY=t.target.getY(),e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e,a=[this.startx,this.starty,this.x,this.y];return(0,z.jsx)(BC,{draggable:t,points:a,fill:this.paintColor||this.outlineColor,onClick:()=>this.handleOnClick(e),stroke:this.paintColor||this.outlineColor,onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,x:this.posX,y:this.posY,pointerWidth:0,pointerLength:0},n)}};function HC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function UC(e,t){return!e||HC(e)?e:HC(e.default)?e.default:t&&HC(e[t])?e[t]:t&&HC(e[t]?.default)?e[t].default:e}var WC=UC(SC,`Rect`),GC=class e extends NC{static TYPE=`RectangleDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,x:i,y:a}=t;this.startx=n,this.starty=r,this.x=i||n,this.y=a||r,this.width=i-n||0,this.height=a-r||0}registerMovement(e,t){this.x=e,this.y=t,this.width=this.x-this.startx,this.height=this.y-this.starty}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{let n=this.startx-t.target.getX(),r=this.starty-t.target.getY();this.startx=t.target.getX(),this.starty=t.target.getY(),this.x-=n,this.y-=r,e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,z.jsx)(WC,{height:this.height,width:this.width,fill:this.paintColor||this.fillColor,onClick:()=>this.handleOnClick(e),onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,stroke:this.outlineColor,draggable:t,strokeWidth:2,x:this.startx,y:this.starty},n)}};function KC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function qC(e,t){return!e||KC(e)?e:KC(e.default)?e.default:t&&KC(e[t])?e[t]:t&&KC(e[t]?.default)?e[t].default:e}var JC=qC(CC,`Circle`),YC=class e extends NC{static TYPE=`CircleDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,x:i,y:a}=t;this.startx=n,this.starty=r,this.x=i||n,this.y=a||r;let o=this.startx-this.x,s=this.starty-this.y;this.radius=Math.sqrt(o*o+s*s)}registerMovement(e,t){this.x=e,this.y=t;let n=this.startx-this.x,r=this.starty-this.y;this.radius=Math.sqrt(n*n+r*r)}handleOnClick(e){let{paint:t,paintColor:n,forceUpdate:r}=e;t&&(this.paintColor=n,r())}handleDragEnd=(e,t)=>{let n=this.startx-t.target.getX(),r=this.starty-t.target.getY();this.startx=t.target.getX(),this.starty=t.target.getY(),this.x-=n,this.y-=r,e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,z.jsx)(JC,{draggable:t,radius:this.radius,x:this.startx,y:this.starty,fill:this.paintColor||this.fillColor,onClick:()=>this.handleOnClick(e),onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,stroke:this.outlineColor},n)}};function XC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function ZC(e,t){return!e||XC(e)?e:XC(e.default)?e.default:t&&XC(e[t])?e[t]:t&&XC(e[t]?.default)?e[t].default:e}var QC=ZC(wC,`Line`),$C=[LC,VC,GC,YC,class e extends NC{static TYPE=`EraserDrawable`;constructor(t){super(t,e.TYPE);let{startx:n,starty:r,points:i,posX:a,posY:o}=t;this.points=i||[n,r],this.posX=a||0,this.posY=o||0}registerMovement(e,t){this.points=[...this.points,e,t]}handleDragEnd=(e,t)=>{this.posX=t.target.getX(),this.posY=t.target.getY(),e.handleSessionChange()};render(e){let{draggable:t,key:n,onMouseOverElement:r,onMouseOutElement:i}=e;return(0,z.jsx)(QC,{draggable:t,globalCompositeOperation:`destination-out`,tension:0,bezier:!0,points:this.points,onDragEnd:this.handleDragEnd.bind(this,e),onMouseEnter:r,onMouseLeave:i,strokeStyle:`#df4b26`,lineJoin:`round`,lineWidth:`5`,fill:`white`,stroke:`white`,strokeWidth:5,x:this.posX,y:this.posY},n)}}],ew=(e,t)=>{let n=$C.find(t=>t.TYPE===e);if(n)return new n(t);throw Error(`Can't find drawable for type: ${e} and props: ${JSON.stringify(t)}`)};L();function tw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function nw(e,t){return!e||tw(e)?e:tw(e.default)?e.default:t&&tw(e[t])?e[t]:t&&tw(e[t]?.default)?e[t].default:e}var rw=nw(kC,`Stage`),iw=nw(xC,`Layer`),{translator:aw}=Mh,ow=W(`div`)({display:`flex`,flexWrap:`wrap`,justifyContent:`flex-end`}),sw=W(`div`)({position:`relative`,width:`100%`}),cw=W(`div`)({marginTop:-43,marginRight:10,position:`absolute`}),lw=class extends R.Component{constructor(e){super(e),this.state={drawables:[],newDrawable:[],textIsSelected:!1},this.stage=null,this.layer=null}componentWillUnmount(){this.stage=null,this.layer=null}UNSAFE_componentWillReceiveProps(e){if(e.session){let{TextEntry:t}=e,{drawables:n}=this.state;if(e.session.drawables){let r=x(e.session.drawables);if(JSON.stringify(n)!==JSON.stringify((r||[]).map(e=>T(e,`type`)))){let t=e.session.drawables;this.setState({drawables:t.map(e=>ew(e.type,e))})}w(t.all.map(e=>({...e,...t[`text_${e.id}`]&&t[`text_${e.id}`].attrs,value:t[`textarea_${e.id}`]&&t[`textarea_${e.id}`].value})),e.session.texts)||t.setAll(e.session.texts||[])}}else this.handleSessionChange()}handleSessionChange=()=>{let{onSessionChange:e,session:t,TextEntry:n,drawableDimensions:r}=this.props,{drawables:i}=this.state,a={width:r.width,drawables:i.map(e=>e.toJson()),texts:n.all.map(e=>({...e,...n[`text_${e.id}`]&&n[`text_${e.id}`].attrs,value:n[`textarea_${e.id}`]&&n[`textarea_${e.id}`].value}))};w(a,t)||e({...t,...a})};onMouseOverElement=()=>this.setState({isOver:!0});onMouseOutElement=()=>this.setState({isOver:!1});handleMouseDown=e=>{document.body.style.overflow=`hidden`;let{newDrawable:t,textIsSelected:n}=this.state,{toolActive:r,fillColor:i,outlineColor:a,scale:o}=this.props;if(t.length===0&&!n){let t=e.target.getStage();if(!t)return;let{x:n,y:s}=t.getPointerPosition(),c=ew(r.type,{startx:n/o,starty:s/o,fillColor:i,outlineColor:a,createdAt:new Date});this.setState({newDrawable:[c]})}};handleMouseUp=e=>{document.body.style.overflow=`initial`;let{newDrawable:t,drawables:n}=this.state,{scale:r}=this.props;if(t.length===1){let i=e.target.getStage();if(!i)return;let{x:a,y:o}=i.getPointerPosition(),s=t[0];s.registerMovement(a/r,o/r),n.push(s),this.setState({newDrawable:[],drawables:n},this.handleSessionChange.bind(this,s))}};handleMouseMove=e=>{let{newDrawable:t}=this.state,{scale:n}=this.props;if(t.length===1){let r=e.target.getStage();if(!r)return;let{x:i,y:a}=r.getPointerPosition(),o=t[0];o.registerMovement(i/n,a/n),this.setState({newDrawable:[o]})}};handleUndo=()=>{let{drawables:e}=this.state,{TextEntry:t}=this.props,n=[...e],r=[...e,...t.all];r.sort((e,t)=>new Date(e.createdAt)-new Date(t.createdAt));let i=r[r.length-1];i&&i.type===`text-entry`?(t.all.pop(),this.setState({updatedAt:new Date},this.handleSessionChange)):(n.pop(),this.setState({drawables:n},this.handleSessionChange))};handleClearAll=()=>{let{TextEntry:e}=this.props;e.all=[],this.setState({drawables:[],updatedAt:new Date},this.handleSessionChange)};toggleTextSelected=e=>this.setState({textIsSelected:e});render(){let{disabled:e,drawableDimensions:t,fillColor:n,imageDimensions:r,imageUrl:i,paintColor:a,outlineColor:o,TextEntry:s,backgroundImageEnabled:c=!0,toolActive:{type:l},scale:u,language:d}=this.props,{isOver:f,newDrawable:p}=this.state,m=l===`Select`,h=l===`PaintBucket`,g=[...this.state.drawables,...this.state.newDrawable],_={draggable:m&&!e,disabled:e,paint:h,fillColor:n,forceUpdate:()=>this.setState({updatedAt:new Date}),paintColor:a,outlineColor:o,toggleTextSelected:this.toggleTextSelected,handleSessionChange:this.handleSessionChange,stage:this.stage,onMouseOverElement:this.onMouseOverElement,onMouseOutElement:this.onMouseOutElement,scale:u},v={};e||(v={onMouseUp:this.handleMouseUp,onTouchEnd:this.handleMouseUp,onMouseMove:this.handleMouseMove,onTouchMove:this.handleMouseMove},m||(v.onMouseDown=this.handleMouseDown,v.onTouchStart=this.handleMouseDown));let y=r?.height*u,b=r?.width*u;return(0,z.jsxs)(ow,{children:[(0,z.jsxs)(cw,{children:[(0,z.jsx)(Fh,{disabled:e,onClick:this.handleUndo,label:aw.t(`common:undo`,{lng:d})}),(0,z.jsx)(Fh,{disabled:e,onClick:this.handleClearAll,label:aw.t(`common:clearAll`,{lng:d})})]}),(0,z.jsxs)(sw,{children:[c&&i&&(0,z.jsx)(MC,{dimensions:{height:y,width:b},url:i}),s.renderTextareas(),(0,z.jsx)(`div`,{style:{position:`absolute`,left:0,top:0,touchAction:`none`,cursor:m&&(f||p.length===1)?`pointer`:`default`},children:(0,z.jsx)(rw,{scaleX:u,scaleY:u,ref:e=>this.stage=e,height:t.height,width:t.width,...v,children:(0,z.jsxs)(iw,{ref:e=>this.layer=e,children:[g.map((e,t)=>e.render({..._,key:t})),s.render(_)]})},`drawing-stage`)})]})]})}};lw.propTypes={disabled:I.bool,drawableDimensions:I.object.isRequired,imageDimensions:I.object.isRequired,fillColor:I.string.isRequired,onSessionChange:I.func.isRequired,paintColor:I.string.isRequired,outlineColor:I.string.isRequired,imageUrl:I.string.isRequired,TextEntry:I.object.isRequired,toolActive:I.object.isRequired,session:I.object.isRequired,backgroundImageEnabled:I.bool.isRequired,scale:I.number.isRequired,language:I.string},L();function uw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function dw(e,t){return!e||uw(e)?e:uw(e.default)?e.default:t&&uw(e[t])?e[t]:t&&uw(e[t]?.default)?e[t].default:e}var fw=dw(DC,`Transformer`),pw=class extends R.Component{componentDidMount(){this.checkNode()}componentDidUpdate(){this.checkNode()}checkNode(){let e=this.transformer.getStage(),{selectedShapeName:t}=this.props,n=e.findOne(`.${t}`);n!==this.transformer.node()&&(n?this.transformer.attachTo(n):this.transformer.detach(),this.transformer.getLayer().batchDraw())}render(){return(0,z.jsx)(fw,{ref:e=>{this.transformer=e},enabledAnchors:[`middle-left`,`middle-right`],...this.props})}};pw.propTypes={selectedShapeName:I.string.isRequired};function mw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function hw(e,t){return!e||mw(e)?e:mw(e.default)?e.default:t&&mw(e[t])?e[t]:t&&mw(e[t]?.default)?e[t].default:e}var gw=hw(TC,`Text`),{translator:_w}=Mh,vw=()=>Math.random().toString(36).substring(2)+new Date().getTime().toString(36),yw=class e{static getTextareaNode(e){return`textarea_${e}`}static getTextNode(e){return`text_${e}`}static getTransformerNode(e){return`transformer_${e}`}constructor(e){this.all=e&&e.all||[],this.eventListenersDetachArray=[]}removeEventListeners=()=>this.eventListenersDetachArray.forEach(e=>e());setAll=e=>{this.all=e,this.props.forceUpdate()};addNewTextEntry=e=>{let t=this.all,n=vw();t.push({id:n,text:``,isDefault:!0,label:_w.t(`drawingResponse.onDoubleClick`,{lng:e}),width:200,x:(t.length+1)*5+50,y:(t.length+1)*5+50,textVisible:!0,transformerVisible:!0,textareaVisible:!1,createdAt:new Date,type:`text-entry`}),this.props.handleSessionChange()};showOnlyTextNodes(){this.all.map(e=>{e.textVisible=!0,e.transformerVisible=!1,e.textareaVisible=!1})}toggleTextarea(e,t){this.all=this.all.map(n=>n.id===e?{...n,textVisible:!t,transformerVisible:!t,textareaVisible:t}:n),this.props.forceUpdate()}initializeDefault(e,t){if(t){let t=this.all.filter(t=>t.id===e)[0];t.isDefault=!1}}saveValue(e,t){let n=t.value;this.all=this.all.map(t=>t.id===e?{...t,text:n}:t),n||(this.all=this.all.filter(t=>t.id!==e)),this.toggleTextarea(e,!1),this.props.handleSessionChange(),this.props.forceUpdate()}handleMouseDown=()=>this.props.toggleTextSelected(!0);handleMouseUp=()=>this.props.toggleTextSelected(!1);handleClick=(e,t)=>{let n=this.all.filter(e=>e.id===t)[0];n.transformerVisible=!0,this.props.forceUpdate()};handleDblClick=(t,n)=>{let{id:r,isDefault:i}=n;this.toggleTextarea(r,!0);let a=this[e.getTextNode(r)],o=this[e.getTextareaNode(r)];if(!a||!o)return;let s=a.getAbsolutePosition();o.value=n.text||``,o.style.position=`absolute`,o.style.top=s.y+`px`,o.style.left=s.x+`px`,o.style.width=a.width()-a.padding()*2+`px`,o.style.height=a.height()-a.padding()*2+5+`px`,o.style.fontSize=a.fontSize()+`px`,o.style.border=`none`,o.style.padding=`0px`,o.style.margin=`0px`,o.style.overflow=`hidden`,o.style.background=`none`,o.style.outline=`none`,o.style.resize=`none`,o.style.lineHeight=a.lineHeight(),o.style.fontFamily=a.fontFamily(),o.style.transformOrigin=`left top`,o.style.textAlign=a.align(),o.style.color=a.fill(),o.style.display=`block`;let c=a.rotation();o.style.transform=c?`rotateZ(${c}deg)`:``,o.focus();let l=e=>{e.key===`Enter`&&!e.shiftKey&&this.saveValue(r,o),e.key===`Escape`&&this.toggleTextarea(r,!1)},u=()=>{this.showOnlyTextNodes(),this.saveValue(r,o)};o.addEventListener(`keydown`,l),o.addEventListener(`blur`,u),this.eventListenersDetachArray.push(()=>{o.removeEventListener(`keydown`,l),o.removeEventListener(`blur`,u)}),this.initializeDefault(r,i),this.props.forceUpdate()};handleTransform=(e,t)=>{this[t].setAttrs({width:this[t].width()*this[t].scaleX(),scaleX:this.props.scale})};renderTextareas(){return this.all.map(e=>{let{id:t,textareaVisible:n}=e,r=`textarea_${t}`;return(0,z.jsx)(`textarea`,{ref:e=>{this[r]=e},style:{display:`${n?`block`:`none`}`}},r)})}setInitialProps(e){this.props||=e}render(e){if(this.setInitialProps(e),e.stage){let t=e.stage;if(t!==this.stage){let e=e=>{e.target===this.stage&&(this.showOnlyTextNodes(),this.props.forceUpdate())};t.on(`click`,e),this.eventListenersDetachArray.push(()=>t.off(`click`,e))}this.stage=t}return this.all.map(t=>{let{id:n,label:r,x:i,y:a,width:o,textVisible:s,rotation:c,transformerVisible:l}=t,u=`text_${n}`,d=`transformer_${n}`,f={};return e.disabled||(f={onClick:e=>this.handleClick(e,n),onTap:e=>this.handleClick(e,n),onDblClick:e=>this.handleDblClick(e,t),onDblTap:e=>this.handleDblClick(e,t),onTransform:e=>this.handleTransform(e,u),onTransformEnd:this.props.handleSessionChange,onMouseDown:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!0)},onTouchStart:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!0)},onDragStart:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!0)},onDragMove:e=>{e.cancelBubble=!0},onDragEnd:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!1),this.props.handleSessionChange()},onMouseUp:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!1)},onTouchEnd:e=>{e.cancelBubble=!0,this.props.toggleTextSelected(!1)},onMouseEnter:this.props.onMouseOverElement,onMouseLeave:this.props.onMouseOutElement}),c&&(f.rotation=c),[(0,z.jsx)(gw,{bubbles:!0,id:n,ref:e=>{this[u]=e},text:t.text||r,name:u,x:i,y:a,width:o,draggable:!e.disabled,visible:s,fontSize:16,...f},n),l&&(0,z.jsx)(pw,{ref:e=>{this[d]=e},selectedShapeName:u,onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchEnd:this.handleMouseUp},`transformer_${n}`)]})}},bw=s(((e,t)=>{t.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=2)}([function(e,t){e.exports=(L(),d(Me))},function(e,t){e.exports=p()},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(0),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},s=0,c=r.forwardRef((function(e,t){var n=e.title,i=n===void 0?null:n,c=e.description,l=c===void 0?null:c,u=e.size,d=u===void 0?null:u,f=e.color,p=f===void 0?`currentColor`:f,m=e.horizontal,h=m===void 0?null:m,g=e.vertical,_=g===void 0?null:g,v=e.rotate,y=v===void 0?null:v,b=e.spin,x=b===void 0?null:b,S=e.style,C=S===void 0?{}:S,w=e.children,T=o(e,[`title`,`description`,`size`,`color`,`horizontal`,`vertical`,`rotate`,`spin`,`style`,`children`]);s++;var E,D=x!==null&&x,O=r.Children.map(w,(function(e){var t=e;!0!==D&&(D=!0===(x===null?t.props.spin:x));var n=t.props.size;typeof d==`number`&&typeof t.props.size==`number`&&(n=t.props.size/d);var i={size:n,color:p===null?t.props.color:p,horizontal:h===null?t.props.horizontal:h,vertical:_===null?t.props.vertical:_,rotate:y===null?t.props.rotate:y,spin:x===null?t.props.spin:x,inStack:!0};return r.cloneElement(t,i)}));d!==null&&(C.width=typeof d==`string`?d:1.5*d+`rem`);var ee,k=`stack_labelledby_`+s,A=`stack_describedby_`+s;if(i)E=l?k+` `+A:k;else if(ee=`presentation`,l)throw Error(`title attribute required when description is set`);return r.createElement(`svg`,a({ref:t,viewBox:`0 0 24 24`,style:C,role:ee,"aria-labelledby":E},T),i&&r.createElement(`title`,{id:k},i),l&&r.createElement(`desc`,{id:A},l),D&&r.createElement(`style`,null,`@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }`,`@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }`),O)}));c.displayName=`Stack`,c.propTypes={size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),children:i.oneOfType([i.arrayOf(i.node),i.node]).isRequired,className:i.string,style:i.object},c.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var l=c;n.d(t,`Icon`,(function(){return p})),n.d(t,`Stack`,(function(){return l}));var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},f=0,p=r.forwardRef((function(e,t){var n=e.path,i=e.id,a=i===void 0?++f:i,o=e.title,s=o===void 0?null:o,c=e.description,l=c===void 0?null:c,p=e.size,m=p===void 0?null:p,h=e.color,g=h===void 0?`currentColor`:h,_=e.horizontal,v=_!==void 0&&_,y=e.vertical,b=y!==void 0&&y,x=e.rotate,S=x===void 0?0:x,C=e.spin,w=C!==void 0&&C,T=e.style,E=T===void 0?{}:T,D=e.inStack,O=D!==void 0&&D,ee=d(e,[`path`,`id`,`title`,`description`,`size`,`color`,`horizontal`,`vertical`,`rotate`,`spin`,`style`,`inStack`]),k={},A=[];m!==null&&(O?A.push(`scale(`+m+`)`):(E.width=typeof m==`string`?m:1.5*m+`rem`,E.height=E.width)),v&&A.push(`scaleX(-1)`),b&&A.push(`scaleY(-1)`),S!==0&&A.push(`rotate(`+S+`deg)`),g!==null&&(k.fill=g);var j=r.createElement(`path`,u({d:n,style:k},O?ee:{})),te=j;A.length>0&&(E.transform=A.join(` `),E.transformOrigin=`center`,O&&(te=r.createElement(`g`,{style:E},j,r.createElement(`rect`,{width:`24`,height:`24`,fill:`transparent`}))));var M,ne=te,N=!0===w||typeof w!=`number`?2:w,P=!O&&(v||b);if(N<0&&(P=!P),w&&(ne=r.createElement(`g`,{style:{animation:`spin`+(P?`-inverse`:``)+` linear `+Math.abs(N)+`s infinite`,transformOrigin:`center`}},te,!(v||b||S!==0)&&r.createElement(`rect`,{width:`24`,height:`24`,fill:`transparent`}))),O)return ne;var re,F=`icon_labelledby_`+a,ie=`icon_describedby_`+a;if(s)M=l?F+` `+ie:F;else if(re=`presentation`,l)throw Error(`title attribute required when description is set`);return r.createElement(`svg`,u({ref:t,viewBox:`0 0 24 24`,style:E,role:re,"aria-labelledby":M},ee),s&&r.createElement(`title`,{id:F},s),l&&r.createElement(`desc`,{id:ie},l),!O&&w&&(P?r.createElement(`style`,null,`@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }`):r.createElement(`style`,null,`@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }`)),ne)}));p.displayName=`Icon`,p.propTypes={path:i.string.isRequired,size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),style:i.object,inStack:i.bool,className:i.string},p.defaultProps={size:null,color:`currentColor`,horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=p}])})),xw=`M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z`,Sw=`M13.64,21.97C13.14,22.21 12.54,22 12.31,21.5L10.13,16.76L7.62,18.78C7.45,18.92 7.24,19 7,19A1,1 0 0,1 6,18V3A1,1 0 0,1 7,2C7.24,2 7.47,2.09 7.64,2.23L7.65,2.22L19.14,11.86C19.57,12.22 19.62,12.85 19.27,13.27C19.12,13.45 18.91,13.57 18.7,13.61L15.54,14.23L17.74,18.96C18,19.46 17.76,20.05 17.26,20.28L13.64,21.97Z`,Cw=`M16.24,3.56L21.19,8.5C21.97,9.29 21.97,10.55 21.19,11.34L12,20.53C10.44,22.09 7.91,22.09 6.34,20.53L2.81,17C2.03,16.21 2.03,14.95 2.81,14.16L13.41,3.56C14.2,2.78 15.46,2.78 16.24,3.56M4.22,15.58L7.76,19.11C8.54,19.9 9.8,19.9 10.59,19.11L14.12,15.58L9.17,10.63L4.22,15.58Z`,ww=`M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z`,Tw=`M9.62,12L12,5.67L14.37,12M11,3L5.5,17H7.75L8.87,14H15.12L16.25,17H18.5L13,3H11Z`,Ew=`M19,13H5V11H19V13Z`,Dw=`M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z`,Ow=`M4,6V19H20V6H4Z`;L();var kw=u(bw(),1);function Aw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function jw(e,t){return!e||Aw(e)?e:Aw(e.default)?e.default:t&&Aw(e[t])?e[t]:t&&Aw(e[t]?.default)?e[t].default:e}var Mw=jw(kw.default,`Icon`),Nw=({path:e})=>{let t;switch(e){case`mdiPencil`:t=Dw;break;case`mdiMinus`:t=Ew;break;case`mdiCircle`:t=xw;break;case`mdiRectangle`:t=Ow;break;case`mdiFormatColorText`:t=Tw;break;case`mdiFormatColorFill`:t=ww;break;case`mdiEraser`:t=Cw;break;default:t=Sw;break}return(0,z.jsx)(Mw,{path:t,size:.8,rotate:180,horizontal:!0,vertical:!0,color:`#2B3963`})};Nw.propTypes={path:I.string.isRequired},L();var{tools:Pw}=Nh,{translator:Fw}=Mh,Iw=W(`div`)(({theme:e})=>({marginTop:e.spacing(2)})),Lw=W(`div`)(({theme:e})=>({border:`1px solid #E0E1E6`,borderRadius:`5px`,marginTop:e.spacing(2),backgroundColor:`#ECEDF1`})),Rw=W(`div`)({minHeight:350,backgroundColor:`#fff`}),zw=W(`div`)(({theme:e})=>({borderBottom:`1px solid #E0E1E6`,borderTopLeftRadius:`5px`,borderTopRightRadius:`5px`,padding:`12px 8px 4px`,boxSizing:`border-box`,maxWidth:`calc(100% - 163px)`,"& button":{marginBottom:e.spacing(1)}})),Bw=[`red`,`orange`,`yellow`,`violet`,`blue`,`green`,`white`,`black`].map(e=>({value:e,label:e})),Vw=class extends R.Component{static propTypes={disabled:I.bool,session:I.object.isRequired,onSessionChange:I.func.isRequired,imageDimensions:I.object.isRequired,imageUrl:I.string.isRequired,backgroundImageEnabled:I.bool.isRequired,language:I.string};constructor(e){super(e);let t=new yw;this.state={scale:1,drawableDimensions:{height:0,width:0},toolActive:Pw[0],fillColor:`white`,fillColorList:[{value:`transparent`,label:`no fill`},{value:`lightblue`,label:`light blue`},{value:`lightyellow`,label:`light yellow`},...Bw],outlineColor:`black`,outlineColorList:Bw,paintColor:`red`,paintColorList:Bw,TextEntry:t}}setTranslatedState(e){let t=Bw.map(t=>({value:t.value,label:Fw.t(`drawingResponse.${t.label}`,{lng:e})}));this.setState({fillColorList:[{value:`transparent`,label:Fw.t(`drawingResponse.noFill`,{lng:e})},{value:`lightblue`,label:Fw.t(`drawingResponse.lightblue`,{lng:e})},{value:`lightyellow`,label:Fw.t(`drawingResponse.lightyellow`,{lng:e})},...t],paintColor:Fw.t(`drawingResponse.red`,{lng:e}),outlineColorList:t,paintColorList:t})}UNSAFE_componentWillReceiveProps(e){let{language:t}=e;this.setTranslatedState(t)}setDimensions(){let e=setInterval(()=>{try{let{height:e,width:t}=this.drawable.getBoundingClientRect(),n=this.props.session.width||t;e!==0&&t!==0&&this.setState({drawableDimensions:{height:e,width:n}})}catch(e){console.warn(`setDimensions Error: `,e)}finally{clearInterval(e)}},100)}componentDidMount(){let{language:e}=this.props;this.setTranslatedState(e),this.setDimensions(),this.observer=new MutationObserver(e=>{e.forEach(()=>{let e=document.getElementById(`question-container`)?.style?.cssText,t=(e?.substring(e.indexOf(`--pie-zoom`)+11,e.lastIndexOf(`%`)))?.replace(/\s/g,``);t?parseFloat(t)/100!==this.state.scale&&this.setState({scale:parseFloat(t)/100}):!t&&this.state.scale!==1&&this.setState({scale:1})})}),this.resizeObserver=new ResizeObserver(()=>{this.setDimensions()}),this.drawable&&this.resizeObserver.observe(this.drawable);let t=document.getElementById(`question-container`);t&&this.observer.observe(t,{attributes:!0,attributeFilter:[`style`]})}componentWillUnmount(){let{TextEntry:e}=this.state;e.removeEventListeners(),this.observer?.disconnect(),this.resizeObserver?.disconnect()}handleMakeToolActive(e){let{TextEntry:t}=this.state,{type:n}=e,{language:r}=this.props;n===`Text`?(t.addNewTextEntry(r),this.setState({updatedAt:new Date})):this.setState({toolActive:e})}checkIfToolIsDisabled=e=>{if(this.props.disabled)return!0;let{toolActive:t}=this.state;return e!==`Text`&&e===t.type};handleColorChange(e,t){let n=`${e}Color`;this.setState({[n]:t})}render(){let{disabled:e,imageUrl:t,imageDimensions:n,onSessionChange:r,session:i,backgroundImageEnabled:a,language:o}=this.props,{drawableDimensions:s,toolActive:c,fillColor:l,fillColorList:u,outlineColor:d,outlineColorList:f,paintColor:p,paintColorList:m,TextEntry:h}=this.state,g=s.height*this.state.scale;return(0,z.jsxs)(Iw,{children:[!e&&(0,z.jsx)(v_,{fillColor:l,fillList:u,outlineColor:d,outlineList:f,paintColor:p,paintList:m,onFillColorChange:e=>this.handleColorChange(`fill`,e),onOutlineColorChange:e=>this.handleColorChange(`outline`,e),onPaintColorChange:e=>this.handleColorChange(`paint`,e),language:o}),(0,z.jsxs)(Lw,{children:[(0,z.jsx)(zw,{children:Pw.map(e=>{let{type:t,label:n,icon:r}=e;return(0,z.jsx)(Fh,{title:n,disabled:this.checkIfToolIsDisabled(t),onClick:()=>this.handleMakeToolActive(e),label:(0,z.jsx)(Nw,{path:r})},t)})}),(0,z.jsx)(Rw,{ref:e=>{this.drawable=e},style:{height:g,maxHeight:g,overflow:`scroll`},children:(0,z.jsx)(lw,{scale:this.state.scale,session:i,disabled:e,onSessionChange:r,fillColor:l,outlineColor:d,paintColor:p,imageUrl:t,drawableDimensions:s,imageDimensions:n,toolActive:c,TextEntry:h,backgroundImageEnabled:a,language:o})})]})]})}};L();function Hw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function Uw(e,t){return!e||Hw(e)?e:Hw(e.default)?e.default:t&&Hw(e[t])?e[t]:t&&Hw(e[t]?.default)?e[t].default:e}var Ww=Uw(bp,`UiLayout`)||Uw(Yw.UiLayout,`UiLayout`),Gw=Uw(Zp,`PreviewPrompt`)||Uw(Yw.PreviewPrompt,`PreviewPrompt`),Kw=Uw(vf,`Collapsible`)||Uw(Yw.Collapsible,`Collapsible`),qw=Om,Jw=qw.default,Yw=Jw&&typeof Jw==`object`?Jw:qw,Xw=W(Ww)({color:Wu(),backgroundColor:fd()}),Zw=W(Kw)(({theme:e})=>({marginBottom:e.spacing(2)})),Qw=W(`div`)({color:Wu(),backgroundColor:fd()}),$w=class extends R.Component{constructor(e){super(e),this.state={showCorrect:!1,hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,errorMessage:e.message}}render(){let{model:{extraCSSRules:e,disabled:t,imageDimensions:n,imageUrl:r,prompt:i,mode:a,teacherInstructions:o,backgroundImageEnabled:s,language:c},session:l,onSessionChange:u}=this.props,{hasError:d,errorMessage:f}=this.state;return d?(0,z.jsxs)(Qw,{children:[`An error occured: `,f]}):(0,z.jsxs)(Xw,{extraCSSRules:e,children:[o&&(0,z.jsx)(Zw,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:(0,z.jsx)(Gw,{prompt:o})}),i&&(0,z.jsx)(Gw,{tagName:`span`,prompt:i}),(0,z.jsx)(Vw,{session:l,onSessionChange:u,isEvaluateMode:a===`evaluate`,imageDimensions:n,imageUrl:r,backgroundImageEnabled:s,disabled:t,language:c})]})}};$w.propTypes={model:I.object.isRequired,onSessionChange:I.func.isRequired,session:I.object.isRequired};var eT=v(),tT=class extends HTMLElement{constructor(){super(),this._root=null}set model(e){this._model=e,this.dispatchEvent(new Ae(this.tagName.toLowerCase(),this.isComplete(),!!this._model)),this._render()}isComplete(){return this._session&&(!S(this._session.drawables)||!S(this._session.texts))}sessionChanged=e=>{this._session.drawables=e.drawables,this._session.texts=e.texts,this._session.width=e.width,this.dispatchEvent(new je(this.tagName.toLowerCase(),this.isComplete())),this._render()};set session(e){this._session=e,this._render()}get session(){return this._session}connectedCallback(){this._render()}_render(){if(this._model&&this._session){let e=R.createElement($w,{model:this._model,session:this._session,onSessionChange:this.sessionChanged});this._root||=(0,eT.createRoot)(this),this._root.render(e),queueMicrotask(()=>{ke(this)})}}disconnectedCallback(){this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`drawing-response-element`)&&customElements.define(`drawing-response-element`,tT),tT})();
|