@nebula.js/sn-text 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-spec/spec.json +2 -2
- package/core/esm/index.js +11 -11
- package/dist/sn-text.js +11 -11
- package/dist/sn-text.systemjs.js +10 -10
- package/package.json +18 -16
- package/sn-text-ext/dist/sn-text.js +11 -11
- package/sn-text-ext/sn-text.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-text v1.
|
|
2
|
+
* @nebula.js/sn-text v1.7.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const p={version:"1.6.1",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=N(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=N(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function z(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=z,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=z,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,L,R={exports:{}},M={};function O(){return T||(T=1,R.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function N(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(N)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=N,w=function(){R.postMessage(null)}}else w=function(){g(N,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=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(){h||p||(h=!0,M(_))},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"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,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 r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),R.exports}
|
|
7
|
+
import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const p={version:"1.7.0",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=N(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=N(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function I(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=I,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=I,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,L,R={exports:{}},M={};function O(){return T||(T=1,R.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function N(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(N)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=N,w=function(){R.postMessage(null)}}else w=function(){g(N,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=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(){h||p||(h=!0,M(_))},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"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,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 r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),R.exports}
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-dom.production.min.js
|
|
@@ -13,14 +13,14 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/function P(){if(A)return _;A=1;var e=C(),t=O();function n(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 r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new f(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){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,m);p[t]=new f(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(h,m);p[t]=new f(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(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),z=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var D,j=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function $(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ae(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=j({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,ke=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Te(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Ne(){}var Le=!1;function Re(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ae(e,t,n)}finally{Le=!1,(null!==ke||null!==Se)&&(Ne(),Te())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Oe=!1}function ze(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,De=null,je=!1,Fe=null,Be={onError:function(e){Ie=!0,De=e}};function $e(e,t,n,r,o,i,a,s,l){Ie=!1,De=null,ze.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ue(i),e;if(a===o)return Ue(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ve=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Qe=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Nt=null,Lt=null,Rt=new Map,Mt=new Map,Ot=[],Pt="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 zt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function It(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Et=!1,null!==At&&jt(At)&&(At=null),null!==Nt&&jt(Nt)&&(Nt=null),null!==Lt&&jt(Lt)&&(Lt=null),Rt.forEach(Ft),Mt.forEach(Ft)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Nt&&$t(Nt,e),null!==Lt&&$t(Lt,e),Rt.forEach(t),Mt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Dt(n),null===n.blockedOn&&Ot.shift()}var Wt=v.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Vt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Vt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Vt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Yt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=It(At,e,t,n,r,o),!0;case"dragenter":return Nt=It(Nt,e,t,n,r,o),!0;case"mouseover":return Lt=It(Lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,It(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,It(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&_t(i),null===(i=qt(e,t,n,r))&&Ur(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function qt(e,t,n,r){if(Yt=null,null!==(e=bo(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(j({},un,{data:0})),_n={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return Sn}var En=j({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(En),An=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(Rn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var In=s&&"TextEvent"in window&&!zn,Dn=s&&(!Pn||zn&&8<zn&&11>=zn),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Vn=null;function Yn(e){jr(e,0)}function qn(e){if(Y(_o(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Xn;if(s){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Vn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Vn)){var t=[];Kn(t,Vn,e,_e(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Vn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}s&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Cr("animationend"),Tr=Cr("animationiteration"),Ar=Cr("animationstart"),Nr=Cr("transitionend"),Lr=new Map,Rr="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 Mr(e,t){Lr.set(e,t),i(t,[e])}for(var Or=0;Or<Rr.length;Or++){var Pr=Rr[Or];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Tr,"onAnimationIteration"),Mr(Ar,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Nr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Dr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(n(198));var c=De;Ie=!1,De=null,je||(je=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,r.forEach(function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Vt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=_e(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case Tr:case Ar:l=vn;break;case Nr:l=Ln;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push(Kr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,m=f;m;m=Vr(m))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Un(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=r?_o(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(v=Gr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$n(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}jr(a,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Me(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Me(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Me(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Jr,"")}function Xr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var ko=[],So=-1;function Co(e){return{current:e}}function Eo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function To(e,t){So++,ko[So]=e.current,e.current=t}var Ao={},No=Co(Ao),Lo=Co(!1),Ro=Ao;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=(e=e.childContextTypes)}function Po(){Eo(Lo),Eo(No)}function zo(e,t,r){if(No.current!==Ao)throw Error(n(168));To(No,t),To(Lo,r)}function Io(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,U(e)||"Unknown",i));return j({},r,o)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Ro=No.current,To(No,e),To(Lo,Lo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Io(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,Eo(Lo),Eo(No),To(No,e)):Eo(Lo),To(Lo,r)}var Fo=null,Bo=!1,$o=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!$o&&null!==Fo){$o=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ve(Ze,Wo),t}finally{bt=t,$o=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Jo=null,Qo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Qo,Yo[qo++]=Xo,Yo[qo++]=Jo,Jo=e;var r=Qo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Qo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Uo[--Ko],Uo[Ko]=null,Vo=Uo[--Ko],Uo[Ko]=null;for(;e===Jo;)Jo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Qo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ru(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Qo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ru(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(n(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&bi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case b:return(t=ju(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||I(t))return(t=zu(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ii&&Zo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,m),u}function g(i,s,l,u){var c=I(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ii&&Zo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ii&&Zo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ii&&Zo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&bi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=vi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=zu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Pu(a.type,a.key,a.props,null,n.mode,l)).ref=vi(n,o,a),l.return=n,n=l)}return s(n);case b:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=ju(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return m(n,o,a,l);if(I(a))return g(n,o,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Du(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var _i=xi(!0),wi=xi(!1),ki=Co(null),Si=null,Ci=null,Ei=null;function Ti(){Ei=Ci=Si=null}function Ai(e){var t=ki.current;Eo(ki),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Li(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(n(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Mi=null;function Oi(e){null===Mi?Mi=[e]:Mi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,zi(e,r)}function zi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(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 Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zi(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,zi(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Ii=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ki={},Gi=Co(Ki),Vi=Co(Ki),Yi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Ji(e,t){switch(To(Yi,t),To(Vi,e),To(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Gi),To(Gi,t)}function Qi(){Eo(Gi),Eo(Vi),Eo(Yi)}function Xi(e){qi(Yi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Vi,e),To(Gi,n))}function Zi(e){Vi.current===e&&(Eo(Gi),Eo(Vi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,sa.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Il|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Sa(e,t){var r=sa,o=ba(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,Ia(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ra(9,Ea.bind(null,r,o,i,t),void 0,null),null===Nl)throw Error(n(349));30&aa||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Na(e)}function Ta(e,t,n){return n(function(){Aa(t)&&Na(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=zi(e,1);null!==t&&nu(t,e,1,-1)}function La(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Oa(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}sa.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function za(e,t){return Oa(8390656,8,e,t)}function Ia(e,t){return Pa(2048,8,e,t)}function Da(e,t){return Pa(4,2,e,t)}function ja(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function $a(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ka(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Va(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ja(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Ya(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ja(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ja(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Ri,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ri,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Va.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:La,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Ka.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Nl)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,za(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Nl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:_a,useRef:Ma,useState:function(){return _a(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ma,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=Oo(t)?Ro:No.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=Oo(t)?Ro:No.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var ys=v.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?wi(t,null,n,r):_i(t,e.child,n,r)}function _s(e,t,n,r,o){n=n.render;var i=t.ref;return Li(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Ml),Ml|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Ml),Ml|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Ml),Ml|=r;return xs(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Oo(n)?Ro:No.current;return i=Mo(t,i),Li(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ts(e,t,n,r,o){if(Oo(n)){var i=!0;Do(t)}else i=!1;if(Li(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Mo(t,u=Oo(n)?Ro:No.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Ii=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Lo.current||Ii?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ii||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Mo(t,l=Oo(n)?Ro:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Ii=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Lo.current||Ii?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Ii||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,i,o)}function As(e,t,n,r,o,i){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&jo(t,n,!1),Us(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Ji(e,t.containerInfo)}function Ls(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Rs,Ms,Os,Ps,zs={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Iu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=zu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(r),t.memoizedState=zs,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=cs(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Iu({mode:"visible",children:o.children},i,0,null),(a=zu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&_i(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=zs,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=cs(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(o=Nl)){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}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,zi(e,i),nu(o,e,i,-1))}return mu(),Fs(e,t,s,o=cs(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Yo[qo++]=Qo,Yo[qo++]=Xo,Yo[qo++]=Jo,Qo=e.id,Xo=e.overflow,Jo=t),t=js(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Ou(o,s):(s=zu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=zs,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vs(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Oo(t.type)&&Po(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Eo(Lo),Eo(No),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ms(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Yi.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gs(t),null}if(e=qi(Gi.current),fi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[po]=t,i[ho]=s,e=!!(1&t.mode),r){case"dialog":Fr("cancel",i),Fr("close",i);break;case"iframe":case"object":case"embed":Fr("load",i);break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":Q(i,s),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",i);break;case"textarea":ie(i,s),Fr("invalid",i)}for(var l in ye(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",i)}switch(r){case"input":V(i),ee(i,s,!0);break;case"textarea":V(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Zr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=i,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),a=i;break;case"iframe":case"object":case"embed":Fr("load",e),a=i;break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],e);a=i;break;case"source":Fr("error",e),a=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=i;break;case"details":Fr("toggle",e),a=i;break;case"input":Q(e,i),a=J(e,i),Fr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fr("invalid",e)}for(s in ye(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":V(e),ee(e,i,!1);break;case"textarea":V(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+K(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Yi.current),qi(Gi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Gs(t),null;case 13:if(Eo(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,s=!1;else if(s=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),s=!1}else null!==ai&&(au(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Pl&&(Pl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Ms(e,t),null===e&&Hr(t.stateNode.containerInfo),Gs(t),null;case 10:return Ai(t.type._context),Gs(t),null;case 19:if(Eo(ea),null===(s=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ks(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ks(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(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=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Gs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ea.current,To(ea,i?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ys(e,t){switch(ni(t),t.tag){case 1:return Oo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Lo),Eo(No),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Gi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),r=oe(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Js||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Js&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fl(e,t,n),Js=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Su(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(l){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Qe())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Js=(c=Js)||d,ml(t,e),Js=c):ml(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(o,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Xs=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&o&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Js;s=qs;var u=Js;if(qs=a,(Js=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?wl(o):null!==l?(l.return=a,Xs=l):wl(o);for(;null!==i;)Xs=i,bl(i),i=i.sibling;Xs=o,qs=s,Js=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):xl(e)}}function xl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Js)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(n(163))}Js||512&t.flags&&ol(t)}catch(e){Su(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function _l(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Su(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,Cl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,Tl=v.ReactCurrentBatchConfig,Al=0,Nl=null,Ll=null,Rl=0,Ml=0,Ol=Co(0),Pl=0,zl=null,Il=0,Dl=0,jl=0,Fl=null,Bl=null,$l=0,Hl=1/0,Wl=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Jl=0,Ql=null,Xl=-1,Zl=0;function eu(){return 6&Al?Qe():-1!==Xl?Xl:Xl=Qe()}function tu(e){return 1&e.mode?2&Al&&0!==Rl?Rl&-Rl:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nu(e,t,r,o){if(50<Jl)throw Jl=0,Ql=null,Error(n(185));vt(e,r,o),2&Al&&e===Nl||(e===Nl&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Rl)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Hl=Qe()+500,Bo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Rl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),ao(function(){!(6&Al)&&Wo()}),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&Al)throw Error(n(327));var r=e.callbackNode;if(wu()&&e.callbackNode!==r)return null;var o=ft(e,e===Nl?Rl:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=gu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Nl===e&&Rl===t||(Wl=null,Hl=Qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Ll?t=0:(Nl=null,Rl=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,Wl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=$l+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),t);break}_u(e,Bl,Wl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),o);break}_u(e,Bl,Wl);break;default:throw Error(n(329))}}}return ru(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~jl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(n(327));wu();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=zl,fu(e,0),su(e,t),ru(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Qe()+500,Bo&&Wo())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Al=t))&&Wo()}}function du(){Ml=Ol.current,Eo(Ol)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Qi(),Eo(Lo),Eo(No),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Nl=e,Ll=e=Ou(e.current,null),Rl=Ml=t,Pl=0,zl=null,jl=Dl=Il=0,Bl=Fl=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(Ti(),oa.current=Xa,ca){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===r||null===r.return){Pl=1,zl=t,Ll=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Rl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function mu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Nl||!(268435455&Il)&&!(268435455&Dl)||su(Nl,Rl)}function gu(e,t){var r=Al;Al|=2;var o=hu();for(Nl===e&&Rl===t||(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Ll)throw Error(n(261));return Nl=null,Rl=0,Pl}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!qe();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xu(e):Ll=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Pl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Ml)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=bt,i=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,r,o){do{wu()}while(null!==Yl);if(6&Al)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Ll=Nl=null,Rl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Nu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,yl(r),Je(),Al=l,bt=s,Tl.transition=a}else e.current=r;if(Vl&&(Vl=!1,Yl=e,ql=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ru(e,Qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Kl,Kl=null,e;!!(1&ql)&&0!==e.tag&&wu(),a=e.pendingLanes,1&a?e===Ql?Jl++:(Jl=0,Ql=e):Jl=0,Wo()}(e,t,r,o)}finally{Tl.transition=i,bt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=null,ql=0,6&Al)throw Error(n(331));var i=Al;for(Al|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(il(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Xs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Xs=_;break e}Xs=l.return}}if(Al=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{bt=r,Tl.transition=t}}return!1}function ku(e,t,n){e=Bi(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Bi(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Rl&n)===n&&(4===Pl||3===Pl&&(130023424&Rl)===Rl&&500>Qe()-$l?fu(e,0):jl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=zi(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Eu(e,r)}function Nu(e,t){return Ve(e,t)}function Lu(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 Ru(e,t,n,r){return new Lu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Mu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return zu(r.children,i,a,t);case w:s=8,i|=8;break;case k:return(e=Ru(12,r,t,2|i)).elementType=k,e.lanes=a,e;case N:return(e=Ru(13,r,t,i)).elementType=N,e.lanes=a,e;case L:return(e=Ru(19,r,t,i)).elementType=L,e.lanes=a,e;case P:return Iu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case T:s=11;break e;case R:s=14;break e;case M:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ru(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function zu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Ru(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ru(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function $u(e){if(!e)return Ao;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Oo(r))return Io(e,r,t)}return t}function Hu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=$u(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),$i(e,o,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lo.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(To(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=Mo(t,No.current);Li(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(o)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=As(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xs(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Ts(null,t,o,e,r);break e;case 11:t=_s(null,t,o,e,r);break e;case 14:t=ws(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ts(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Ns(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ls(e,t,o,r,i=us(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Us(e,t,r);break e}xs(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_i(t,null,o,r):xs(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,_s(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,To(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Lo.current){t=Us(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Fi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ni(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ni(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Li(t,r),o=o(i=Ri(i)),t.flags|=1,xs(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),ws(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Li(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Hs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Uu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(a);i.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu(function(){Wu(t,l,n,r)}),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Wu(null,e,null,null)}),t[mo]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Dt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Al)&&(Hl=Qe()+500,Wo()))}break;case 13:cu(function(){var t=zi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Gu(e,1)}},wt=function(e){if(13===e.tag){var t=zi(e,134217728);if(null!==t)nu(t,e,134217728,eu());Gu(e,134217728)}},kt=function(e){if(13===e.tag){var t=tu(e),n=zi(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));Y(o),Z(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ae=uu,Ne=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(e){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,_.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_.createRoot=function(e,t){if(!Ju(e))throw Error(n(299));var r=!1,o="",i=Vu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},_.flushSync=function(e){return cu(e)},_.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!0,r)},_.hydrateRoot=function(e,t,r){if(!Ju(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Vu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Hr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},_.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!1,r)},_.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},_.unstable_batchedUpdates=uu,_.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function z(){if(N)return x.exports;return N=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),x.exports=P(),x.exports}var I=function(){if(L)return b;L=1;var e=z();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}();var D=C(),j=m(D),F=f({__proto__:null,default:j},[D]);const B=D.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,printingStatus:null,showMediaLibrary:void 0,interactionState:void 0});function $(e){throw new Error(e)}const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,W=H&&"documentMode"in document?document.documentMode:null,U=H&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),K=H&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),G=!(!H||!("InputEvent"in window)||W)&&"getTargetRanges"in new window.InputEvent("input"),V=H&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Y=H&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,q=H&&/Android/.test(navigator.userAgent),J=H&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Q=H&&q&&J,X=H&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&U&&!J,Z=0,ee=1,te=2,ne=1,re=2,oe=3,ie=4,ae=5,se=6,le=V||Y||X?" ":"",ue="\n\n",ce=K?" ":le,de={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},fe={directionless:1,unmergeable:2},pe={center:2,end:6,justify:4,left:1,right:3,start:5},he={[re]:"center",[se]:"end",[ie]:"justify",[ne]:"left",[oe]:"right",[ae]:"start"},me={normal:0,segmented:2,token:1},ge={[Z]:"normal",[te]:"segmented",[ee]:"token"},ve="$config";function ye(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(qo(a)&&ye(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let be=!1,xe=0;function _e(e){xe=e.timeStamp}function we(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==Hi(e,n)}function ke(e,t,n){const r=Na(wa(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&ta(t,a,o,i,!1)}function Se(e,t,n){if(Wr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Li(t)&&n.isAttached()}function Ce(e,t,n,r){for(let o=e;o&&!Ua(o);o=va(o)){const e=Hi(o,t);if(void 0!==e){const t=Bi(e,n);if(t)return Xo(t)||!Ra(o)?void 0:[o,t]}else if(o===r)return[r,Vi(n)]}}function Ee(e,t,n){be=!0;const r=performance.now()-xe>100;try{Ko(e,()=>{const o=so()||function(e){return e.getEditorState().read(()=>{const e=so();return null!==e?e.clone():null})}(e),i=new Map,a=e.getRootElement(),s=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Ce(p,e,s,a);if(!h)continue;const[m,g]=h;if("characterData"===f)r&&Or(g)&&Li(p)&&Se(o,p,g)&&ke(p,g,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=$i(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!we(r,i,e)){if(K){const e=(Ra(r)?r.innerText:null)||r.nodeValue;e&&(c+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(we(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(m,g)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||we(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Yi(o),K&&ha(e)&&o.insertRawText(c))})}finally{be=!1}}function Te(e){const t=e._observer;if(null!==t){Ee(e,t.takeRecords(),t)}}function Ae(e){!function(e){0===xe&&wa(e).addEventListener("textInput",_e,!0)}(e),e._observer=new MutationObserver((t,n)=>{Ee(e,t,n)})}function Ne(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ya(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Le{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,a=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&a!==o&&$(`NodeState: size != computedSize (${String(o)} != ${String(a)})`);for(const e of r.keys())i.has(e.key)||$(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=a}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Oe(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Le(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Oe(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function Re(e){return e.__state?e.__state.sharedNodeState:bi(Da(),e.getType()).sharedNodeState}function Me(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Re(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&function(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Le(t,Re(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Oe(e){if(e)for(const t in e)return e}function Pe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function ze(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function Ie(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function De(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,a=t.__format,s=t.__style,l=e.__state,u=t.__state;return(null===n||n===i)&&(null===r||r===a)&&(null===o||o===s)&&(null===e.__state||l===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&Pe(n,e,t)||t&&Pe(n,t,e)||e&&ze(n,e,t)||t&&ze(n,t,e))}(l,u))}function je(e,t){const n=e.mergeWithSibling(t),r=Ro()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Fe(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Or(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(De(t,r)){r=je(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Or(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(De(r,n)){r=je(r,n);break}break}n.remove()}}else r.remove()}function Be(e){return $e(e.anchor),$e(e.focus),e}function $e(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),Or(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!qo(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let He,We,Ue,Ke,Ge,Ve,Ye,qe,Je,Qe,Xe="",Ze=null,et=null,tt=!1,nt=!1;function rt(e,t){const n=Ye.get(e);if(null!==t){const n=_t(e);n.parentNode===t&&t.removeChild(n)}if(qe.has(e)||We._keyToDOMMap.delete(e),qo(n)){const e=mt(n,Ye);ot(e,0,e.length-1,null)}void 0!==n&&ca(Qe,Ue,Ke,n,"destroyed")}function ot(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&rt(t,r)}}function it(e,t){e.setProperty("text-align",t)}const at="40px";function st(e,t){const n=He.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(We._rootElement||e).getPropertyValue("--lexical-indent-base-value")||at;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function lt(e,t){const n=e.style;0===t?it(n,""):1===t?it(n,"left"):2===t?it(n,"center"):3===t?it(n,"right"):4===t?it(n,"justify"):5===t?it(n,"start"):6===t&&it(n,"end")}function ut(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ei(e))return null;const n=e.getParentOrThrow();return ei(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ct(e,t){const n=qe.get(e);void 0===n&&$("createNode: node does not exist in nodeMap");const r=n.createDOM(He,We);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,We),Or(n)?r.setAttribute("data-lexical-text","true"):Xo(n)&&r.setAttribute("data-lexical-decorator","true"),qo(n)){const e=n.__indent,t=n.__size;if(ut(r,n),0!==e&&st(r,e),0!==t){const e=t-1;dt(mt(n,qe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&<(r,o),n.isInline()||pt(null,n,r)}else{const t=n.getTextContent();if(Xo(n)){const t=n.decorate(We,He);null!==t&&vt(e,t),r.contentEditable="false"}Xe+=t}return null!==t&&t.insertChild(r),Object.freeze(n),ca(Qe,Ue,Ke,n,"created"),r}function dt(e,t,n,r,o){const i=Xe;Xe="";let a=n;for(;a<=r;++a){ct(e[a],o);const t=qe.get(e[a]);null!==t&&Or(t)?null===Ze&&(Ze=t.getFormat(),et=t.getStyle()):qo(t)&&a<r&&!t.isInline()&&(Xe+=ue)}o.element.__lexicalTextContent=Xe,Xe=i+Xe}function ft(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return mr(e)?"line-break":Xo(e)&&e.isInline()?"decorator":null}return"empty"}return null}function pt(e,t,n){const r=ft(e,Ye),o=ft(t,qe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function ht(e,t,n){var r;Ze=null,et=null,function(e,t,n){const r=Xe,o=e.__size,i=t.__size;Xe="";const a=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)gt(n,a);else{const e=_t(n),t=ct(r,null);try{a.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}rt(n,null)}const o=qe.get(r);Or(o)&&null===Ze&&(Ze=o.getFormat(),et=o.getStyle())}else{const r=mt(e,Ye),s=mt(t,qe);if(r.length!==o&&$("$reconcileChildren: prevChildren.length !== prevChildrenSize"),s.length!==i&&$("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&dt(s,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;ot(r,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(e,t,n,r,o,i){const a=r-1,s=o-1;let l,u,c=i.getFirstChild(),d=0,f=0;for(;d<=a&&f<=s;){const e=t[d],r=n[f];if(e===r)c=yt(gt(r,i.element)),d++,f++;else{if(void 0===u&&(u=bt(n,f)),void 0===l)l=bt(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=yt(_t(e)),rt(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=ga(We,r);e!==c&&i.withBefore(c).insertChild(e),c=yt(gt(r,i.element)),d++,f++}else ct(r,i.withBefore(c)),f++}const o=qe.get(r);null!==o&&Or(o)?null===Ze&&(Ze=o.getFormat(),et=o.getStyle()):qo(o)&&f<=s&&!o.isInline()&&(Xe+=ue)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:We.getElementByKey(e);dt(n,0,f,s,i.withBefore(t))}else h&&!p&&ot(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=Xe,Xe=r+Xe}(e,t,t.getDOMSlot(n)),r=t,null==Ze||Ze===r.__textFormat||nt||r.setTextFormat(Ze),function(e){null==et||et===e.__textStyle||nt||e.setTextStyle(et)}(t)}function mt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&$("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function gt(e,t){const n=Ye.get(e);let r=qe.get(e);void 0!==n&&void 0!==r||$("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=tt||Ve.has(e)||Ge.has(e),i=ga(We,e);if(n===r&&!o){let e;if(qo(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return Xe+=e,i}if(n!==r&&o&&ca(Qe,Ue,Ke,r,"updated"),r.updateDOM(n,i,He)){const n=ct(e,null);return null===t&&$("reconcileNode: parentDOM is null"),t.replaceChild(n,i),rt(e,null),n}if(qo(n)){qo(r)||$(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(tt||t!==n.__indent)&&st(i,t);const a=r.__format;if((tt||a!==n.__format)&<(i,a),o)ht(n,r,i),ei(r)||r.isInline()||pt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),Xe+=t}if((tt||r.__dir!==n.__dir)&&(ut(i,r),ei(r)&&!tt))for(const e of r.getChildren())if(qo(e)){ut(ga(We,e.getKey()),e)}}else{const t=r.getTextContent();if(Xo(r)){const t=r.decorate(We,He);null!==t&&vt(e,t)}Xe+=t}if(!nt&&ei(r)&&r.__cachedText!==Xe){const e=r.getWritable();e.__cachedText=Xe,r=e}return Object.freeze(r),i}function vt(e,t){let n=We._pendingDecorators;const r=We._decorators;if(null===n){if(r[e]===t)return;n=Ui(We)}n[e]=t}function yt(e){let t=e.nextSibling;return null!==t&&t===We._blockCursorElement&&(t=t.nextSibling),t}function bt(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function xt(e,t,n,r,o,i){Xe="",tt=2===r,We=n,He=n._config,Ue=n._nodes,Ke=We._listeners.mutation,Ge=o,Ve=i,Ye=e._nodeMap,qe=t._nodeMap,nt=t._readOnly,Je=new Map(n._keyToDOMMap);const a=new Map;return Qe=a,gt("root",null),We=void 0,Ue=void 0,Ge=void 0,Ve=void 0,Ye=void 0,qe=void 0,He=void 0,Je=void 0,Qe=void 0,a}function _t(e){const t=Je.get(e);return void 0===t&&$(`Reconciliation: could not find DOM element for node key ${e}`),t}function wt(e){return{type:e}}const kt=wt("SELECTION_CHANGE_COMMAND"),St=wt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ct=wt("CLICK_COMMAND"),Et=wt("BEFORE_INPUT_COMMAND"),Tt=wt("INPUT_COMMAND"),At=wt("COMPOSITION_START_COMMAND"),Nt=wt("COMPOSITION_END_COMMAND"),Lt=wt("DELETE_CHARACTER_COMMAND"),Rt=wt("INSERT_LINE_BREAK_COMMAND"),Mt=wt("INSERT_PARAGRAPH_COMMAND"),Ot=wt("CONTROLLED_TEXT_INSERTION_COMMAND"),Pt=wt("PASTE_COMMAND"),zt=wt("REMOVE_TEXT_COMMAND"),It=wt("DELETE_WORD_COMMAND"),Dt=wt("DELETE_LINE_COMMAND"),jt=wt("FORMAT_TEXT_COMMAND"),Ft=wt("UNDO_COMMAND"),Bt=wt("REDO_COMMAND"),$t=wt("KEYDOWN_COMMAND"),Ht=wt("KEY_ARROW_RIGHT_COMMAND"),Wt=wt("MOVE_TO_END"),Ut=wt("KEY_ARROW_LEFT_COMMAND"),Kt=wt("MOVE_TO_START"),Gt=wt("KEY_ARROW_UP_COMMAND"),Vt=wt("KEY_ARROW_DOWN_COMMAND"),Yt=wt("KEY_ENTER_COMMAND"),qt=wt("KEY_SPACE_COMMAND"),Jt=wt("KEY_BACKSPACE_COMMAND"),Qt=wt("KEY_ESCAPE_COMMAND"),Xt=wt("KEY_DELETE_COMMAND"),Zt=wt("KEY_TAB_COMMAND"),en=wt("INSERT_TAB_COMMAND"),tn=wt("INDENT_CONTENT_COMMAND"),nn=wt("OUTDENT_CONTENT_COMMAND"),rn=wt("DROP_COMMAND"),on=wt("FORMAT_ELEMENT_COMMAND"),an=wt("DRAGSTART_COMMAND"),sn=wt("DRAGOVER_COMMAND"),ln=wt("DRAGEND_COMMAND"),un=wt("COPY_COMMAND"),cn=wt("CUT_COMMAND"),dn=wt("SELECT_ALL_COMMAND"),fn=wt("CLEAR_EDITOR_COMMAND"),pn=wt("CLEAR_HISTORY_COMMAND"),hn=wt("CAN_REDO_COMMAND"),mn=wt("CAN_UNDO_COMMAND"),gn=wt("FOCUS_COMMAND"),vn=wt("BLUR_COMMAND"),yn=wt("KEY_MODIFIER_COMMAND"),bn=Object.freeze({}),xn=[["keydown",function(e,t){if(_n=e.timeStamp,wn=e.key,t.isComposing())return;ma(t,$t,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Ma(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ko(t,()=>{wi(n)||(An=!0)})}],["compositionstart",function(e,t){ma(t,At,e)}],["compositionend",function(e,t){K?Ln=!0:Y||!V&&!X?ma(t,Nt,e):(Rn=!0,Mn=e.data)}],["input",function(e,t){e.stopPropagation(),Ko(t,()=>{t.dispatchCommand(Tt,e)},{event:e}),Sn=null}],["click",function(e,t){Ko(t,()=>{const n=so(),r=Na(wa(t)),o=lo();if(r)if(Wr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ei(i)&&1===Gi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=qa(i,e=>qo(e)&&!e.isInline());qo(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Ra(n)||Li(n)){Yi(io(o,r,t,e))}}ma(t,Ct,e)})}],["cut",bn],["copy",bn],["dragstart",bn],["dragover",bn],["dragend",bn],["paste",bn],["focus",bn],["blur",bn],["drop",bn]];G&&xn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||K&&ha(t))return;if("insertCompositionText"===n)return;ma(t,Et,e)}(e,t)]);let _n=0,wn=null,kn=0,Sn=null;const Cn=new WeakMap,En=new WeakMap;let Tn=!1,An=!1,Nn=!1,Ln=!1,Rn=!1,Mn="",On=null,Pn=[0,"",0,"root",0];function zn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=Ro(),u=Na(wa(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!Or(s)||(!o&&(!G||kn<r+50)||s.isDirty()&&p<2||Ji(n))&&i.offset!==a.offset&&!s.isComposing()||Ni(s)||s.isDirty()&&p>1||(o||!G)&&null!==f&&!s.isComposing()&&c!==Mi(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!s.isComposing()&&(s.getFormat()!==e.format||s.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=Ai(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Or(t)||qo(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function In(e,t){return Li(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Dn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;Tn&&(Tn=!1,In(r,o)&&In(i,a)&&!On)||Ko(t,()=>{if(!n)return void Yi(null);if(!Si(t,r,i))return;let s=so();if(On&&Wr(s)&&s.isCollapsed()){const e=s.anchor,t=On.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=On.clone(),Yi(s))}if(On=null,Wr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=wa(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=Pn,f=Gi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)jn(s,a,l);else if("text"===n.type)Or(r)||$("Point.getNode() must return TextNode when type is text"),Fn(s,r);else if("element"===n.type&&!p){qo(r)||$("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();jn(e,n,r)}(s,e):jn(s,0,"")}}else{const e=n.key,t=s.focus.key,r=s.getNodes(),i=r.length,l=s.isBackward(),u=l?a:o,c=l?o:a,d=l?t:e,f=l?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(Or(t)&&0!==n&&!(0===e&&t.__key===d&&u===n||e===i-1&&t.__key===f&&0===c)&&(h=!0,p&=t.getFormat(),0===p))break}s.format=h?p:0}}ma(t,kt,void 0)})}function jn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fn(e,t){jn(e,t.getFormat(),t.getStyle())}function Bn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function $n(e){const t=e.inputType,n=Bn(e),r=Ro(),o=so();if("deleteContentBackward"===t){if(null===o){const e=lo();if(!Wr(e))return!0;Yi(e.clone())}if(Wr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===wn&&i<_n+30&&r.isComposing()&&t){if(ji(null),_n=0,setTimeout(()=>{Ko(r,()=>{ji(null)})},30),Wr(o)){const e=o.anchor.getNode();e.markDirty(),Or(e)||$("Anchor node must be a TextNode"),Fn(o,e)}}else{ji(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),a=n.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length;let l=Q&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Xo(pa(o.anchor,!0))),!l){ma(r,Lt,!0);const e=so();Q&&Wr(e)&&e.isCollapsed()&&(On=e,setTimeout(()=>On=null))}}return!0}}var i;if(!Wr(o))return!0;const a=e.data;null!==Sn&&ea(!1,r,Sn),o.dirty&&null===Sn||!o.isCollapsed()||ei(o.anchor.getNode())||null===n||o.applyDOMRange(n),Sn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),ma(r,Rt,!1);else if(a===ue)e.preventDefault(),ma(r,Mt,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&zn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),ma(r,Ot,a)):Sn=a;return kn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ma(r,Ot,e);break;case"insertFromComposition":ji(null),ma(r,Ot,e);break;case"insertLineBreak":ji(null),ma(r,Rt,!1);break;case"insertParagraph":ji(null),Nn&&!Y?(Nn=!1,ma(r,Rt,!1)):ma(r,Mt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ma(r,Pt,e);break;case"deleteByComposition":(function(e,t){return e!==t||qo(e)||qo(t)||!Ai(e)||!Ai(t)})(u,c)&&ma(r,zt,e);break;case"deleteByDrag":case"deleteByCut":ma(r,zt,e);break;case"deleteContent":ma(r,Lt,!1);break;case"deleteWordBackward":ma(r,It,!0);break;case"deleteWordForward":ma(r,It,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ma(r,Dt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ma(r,Dt,!1);break;case"formatStrikeThrough":ma(r,jt,"strikethrough");break;case"formatBold":ma(r,jt,"bold");break;case"formatItalic":ma(r,jt,"italic");break;case"formatUnderline":ma(r,jt,"underline");break;case"historyUndo":ma(r,Ft,void 0);break;case"historyRedo":ma(r,Bt,void 0)}return!0}function Hn(e){if(Ra(e.target)&&wi(e.target))return!0;const t=Ro(),n=so(),r=e.data,o=Bn(e);if(null!=r&&Wr(n)&&zn(n,o,r,e.timeStamp,!1)){Ln&&(Kn(t,r),Ln=!1);const o=n.anchor.getNode(),i=Na(wa(t));if(null===i)return!0;const a=n.isBackward(),s=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;G&&!n.isCollapsed()&&Or(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Zi(i.anchorNode)||ma(t,Ot,r);const u=r.length;K&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),Q&&t.isComposing()&&(_n=0,ji(null))}else{ea(!1,t,null!==r?r:void 0),Ln&&(Kn(t,r||void 0),Ln=!1)}return function(){Ao();const e=Ro();Te(e)}(),!0}function Wn(e){const t=Ro(),n=so();if(Wr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ji(r.key),ba(cr),(e.timeStamp<_n+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Or(o)&&o.getStyle()!==n.style)&&ma(t,Ot,ce)}return!0}function Un(e){return Kn(Ro(),e.data),ba(dr),!0}function Kn(e,t){const n=e._compositionKey;if(ji(null),null!==n&&null!=t){if(""===t){const t=Bi(n),r=Mi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Or(t)){const n=Na(wa(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),ta(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=so();if(Wr(t)||Kr(t)){if(Wr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void ma(e,Yt,null)}}}ea(!0,e,t)}function Gn(e){const t=Ro();if(null==e.key)return!0;if(Rn){if(sa(e))return Ko(t,()=>{Kn(t,Mn)}),Rn=!1,Mn="",!0;Rn=!1,Mn=""}if(function(e){return oa(e,"ArrowRight",{shiftKey:"any"})}(e))ma(t,Ht,e);else if(function(e){return oa(e,"ArrowRight",ia)}(e))ma(t,Wt,e);else if(function(e){return oa(e,"ArrowLeft",{shiftKey:"any"})}(e))ma(t,Ut,e);else if(function(e){return oa(e,"ArrowLeft",ia)}(e))ma(t,Kt,e);else if(function(e){return oa(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))ma(t,Gt,e);else if(function(e){return oa(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))ma(t,Vt,e);else if(function(e){return oa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Nn=!0,ma(t,Yt,e);else if(function(e){return" "===e.key}(e))ma(t,qt,e);else if(function(e){return U&&oa(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Nn=!0,ma(t,Rt,!0);else if(function(e){return oa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Nn=!1,ma(t,Yt,e);else if(function(e){return oa(e,"Backspace",{shiftKey:"any"})||U&&oa(e,"h",{ctrlKey:!0})}(e))sa(e)?ma(t,Jt,e):(e.preventDefault(),ma(t,Lt,!0));else if(function(e){return"Escape"===e.key}(e))ma(t,Qt,e);else if(function(e){return oa(e,"Delete",{})||U&&oa(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),ma(t,Lt,!1)):ma(t,Xt,e);else if(function(e){return oa(e,"Backspace",aa)}(e))e.preventDefault(),ma(t,It,!0);else if(function(e){return oa(e,"Delete",aa)}(e))e.preventDefault(),ma(t,It,!1);else if(function(e){return U&&oa(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),ma(t,Dt,!0);else if(function(e){return U&&(oa(e,"Delete",{metaKey:!0})||oa(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),ma(t,Dt,!1);else if(function(e){return oa(e,"b",ia)}(e))e.preventDefault(),ma(t,jt,"bold");else if(function(e){return oa(e,"u",ia)}(e))e.preventDefault(),ma(t,jt,"underline");else if(function(e){return oa(e,"i",ia)}(e))e.preventDefault(),ma(t,jt,"italic");else if(function(e){return oa(e,"Tab",{shiftKey:"any"})}(e))ma(t,Zt,e);else if(function(e){return oa(e,"z",ia)}(e))e.preventDefault(),ma(t,Ft,void 0);else if(function(e){if(U)return oa(e,"z",{metaKey:!0,shiftKey:!0});return oa(e,"y",{ctrlKey:!0})||oa(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),ma(t,Bt,void 0);else{const n=t._editorState._selection;null===n||Wr(n)?la(e)&&(e.preventDefault(),ma(t,dn,e)):!function(e){return oa(e,"c",ia)}(e)?!function(e){return oa(e,"x",ia)}(e)?la(e)&&(e.preventDefault(),ma(t,dn,e)):(e.preventDefault(),ma(t,cn,e)):(e.preventDefault(),ma(t,un,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(yn,e),!0}function Vn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Yn=new Map;function qn(e){const t=function(e){const t=_a(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Ei(t.anchorNode);if(null===n)return;An&&(An=!1,Ko(n,()=>{const r=lo(),o=t.anchorNode;if(Ra(o)||Li(o)){Yi(io(r,t,n,e))}}));const r=Qi(n),o=r[r.length-1],i=o._key,a=Yn.get(i),s=a||o;s!==n&&Dn(t,s,!1),Dn(t,n,!0),n!==o?Yn.set(i,n):a&&Yn.delete(i)}function Jn(e){e._lexicalHandled=!0}function Qn(e){return!0===e._lexicalHandled}const Xn=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function Zn(e){const t=Cn.get(e);if(void 0===t)return void Xn();const n=En.get(t);if(void 0===n)return void Xn();const r=n-1;r>=0||$("Root element count less than 0"),Cn.delete(e),En.set(t,r),0===r&&t.removeEventListener("selectionchange",qn);const o=Ti(e);Ci(o)?(!function(e){if(null!==e._parentEditor){const t=Qi(e),n=t[t.length-1]._key;Yn.get(n)===e&&Yn.delete(n)}else Yn.delete(e._key)}(o),e.__lexicalEditor=null):o&&$("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Vn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function er(e,t,n){Ao();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=so();if(!Wr(t)||!qo(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();xa(o,e)&&n.set(e.__key,0,"element");xa(i,e)&&r.set(e.__key,0,"element");return t}(e);let a=!1;if(Wr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(fo(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(fo(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Kr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Wr(i)&&t&&!a){const t=e.getIndexWithinParent();Ii(e),uo(i,o,t,-1)}else Ii(e);n||ka(o)||o.canBeEmpty()||!o.isEmpty()||er(o,t),t&&i&&ei(o)&&o.isEmpty()&&o.selectEnd()}const tr=Symbol.for("ephemeral");function nr(e){return e[tr]||!1}class rr{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ya(this);return void 0===e&&$(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){$(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),zi(this,e),"root"!==this.__type&&function(e,t){const n=xi(Ro(),e);void 0===n&&$(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&$(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){$(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Bi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||so();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(Or(this))return n;if(Wr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Xo(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Bi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&$(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(ka(t))return qo(e)||e===this&&Xo(e)||$("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&$(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Bi(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Bi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=qo(this)?this:this.getParent(),n=qo(e)?e:e.getParent(),r=t&&n?Es(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Es(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ks(t):("same"!==t.type&&"ancestor"!==t.type&&$("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=Es(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const a=qo(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==a){o=a;continue}const s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let u=null,c=l;do{if(null===c&&$("getNodesBetween: ancestor is null"),u=t?c.getNextSibling():c.getPreviousSibling(),c=c.getParent(),null===c)break;null!==u||r.has(c.__key)||n.push(c)}while(null===u);o=u}return t||n.reverse(),n}isDirty(){const e=Ro()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(nr(this))return this;const e=Bi(this.__key);return null===e&&$("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(nr(this))return this;Ao();const e=Lo(),t=Ro(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=so();if(null!==a&&a.setCachedNodes(null),i.has(r))return Di(o),o;const s=$a(o);return i.add(r),Di(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){$("createDOM: base method not extended")}updateDOM(e,t,n){$("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){$(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Me(this,e)}static transform(){return null}remove(e){er(this,!0,e)}replace(e,t){Ao();let n=so();null!==n&&(n=n.clone()),Ea(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;Ii(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(er(r,!1,!0),null===u)s.__first=i;else{u.getWritable().__next=i}if(a.__prev=d,null===c)s.__last=i;else{c.getWritable().__prev=i}if(a.__next=f,a.__parent=p,s.__size=l,t&&(qo(this)&&qo(a)||$("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{a.append(e)})),Wr(n)){Yi(n);const e=n.anchor,t=n.focus;e.key===o&&$r(e,a),t.key===o&&$r(t,a)}return Fi()===o&&ji(i),a}insertAfter(e,t=!0){Ao(),Ea(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=so();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(Ii(r),Wr(i)){const e=o.__key,n=i.anchor,r=i.focus;a="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===l)u.__last=c;else{l.getWritable().__prev=c}if(u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Wr(i)){const e=this.getIndexWithinParent();uo(i,u,e+1);const t=u.__key;a&&i.anchor.set(t,e+2,"element"),s&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Ao(),Ea(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Ii(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();if(null===i)a.__first=o;else{i.getWritable().__next=o}a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=so();if(t&&Wr(u)){uo(u,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return li()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Ao();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(qo(n))return n.select();if(!Or(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Ao();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(qo(n))return n.select(0,0);if(!Or(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const or="historic",ir="history-merge",ar="collaboration",sr="skip-scroll-into-view",lr="skip-dom-selection",ur="skip-selection-focus",cr="composition-start",dr="composition-end";class fr extends rr{static getType(){return"linebreak"}static clone(e){return new fr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&za(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&gr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&za(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&gr(r))return!0}return!1}(e)?null:{conversion:pr,priority:0}}}static importJSON(e){return hr().updateFromJSON(e)}}function pr(e){return{node:hr()}}function hr(){return Ca(new fr)}function mr(e){return e instanceof fr}function gr(e){return Li(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function vr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function yr(e,t){return 1&t?"strong":2&t?"em":"span"}function br(e,t,n,r,o){const i=r.classList;let a=ua(o,"base");void 0!==a&&i.add(...a),a=ua(o,"underlineStrikethrough");let s=!1;const l=8&t&&4&t;void 0!==a&&(8&n&&4&n?(s=!0,l||i.add(...a)):l&&i.remove(...a));for(const e in de){const r=de[e];if(a=ua(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...a)}else t&r&&i.remove(...a)}}function xr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?le:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||K){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function _r(e,t,n,r,o,i){xr(o,e,t);const a=i.theme.text;void 0!==a&&br(0,0,r,e,a)}function wr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class kr extends rr{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new kr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return ge[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Fi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=de[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Oi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=vr(0,n),o=yr(0,n),i=null===r?o:r,a=document.createElement(i);let s=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(o),a.appendChild(s));_r(s,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(a.style.cssText=l),a}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,a=vr(0,o),s=vr(0,i),l=yr(0,o),u=yr(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&$("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(u);return _r(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&$("updateDOM: innerDOM is null or undefined")),xr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&br(0,o,i,c,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Ar,priority:0}),b:()=>({conversion:Cr,priority:0}),code:()=>({conversion:Rr,priority:0}),em:()=>({conversion:Rr,priority:0}),i:()=>({conversion:Rr,priority:0}),mark:()=>({conversion:Rr,priority:0}),s:()=>({conversion:Rr,priority:0}),span:()=>({conversion:Sr,priority:0}),strong:()=>({conversion:Rr,priority:0}),sub:()=>({conversion:Rr,priority:0}),sup:()=>({conversion:Rr,priority:0}),u:()=>({conversion:Rr,priority:0})}}static importJSON(e){return Mr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Ra(t)||$("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=wr(t,"b")),this.hasFormat("italic")&&(t=wr(t,"i")),this.hasFormat("strikethrough")&&(t=wr(t,"s")),this.hasFormat("underline")&&(t=wr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?de[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?fe[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Oi(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=me[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Ao();let n=e,r=t;const o=so(),i=this.getTextContent(),a=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Wr(o))return no(a,n,a,r,"text","text");{const e=Fi();e!==o.anchor.key&&e!==o.focus.key||ji(a),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,a=n.length;let s=e;s<0&&(s=a+s,s<0&&(s=0));const l=so();if(r&&Wr(l)){const t=e+a;l.setTextNodeRange(o,t,o,t)}const u=i.slice(0,s)+n+i.slice(s+t);return o.__text=u,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Ao();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=Fi(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const a=[],s=e.length;for(let t=0,r=0;t<i&&r<=s;r++){const o=e[r];o>t&&(a.push(n.slice(t,o)),t=o)}const l=a.length;if(1===l)return[t];const u=a[0],c=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let m=!1,g=null,v=null;const y=so();if(Wr(y)){const[e,t]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===e.type&&e.key===r&&(g=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=Mr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Ie(t,d),m=!0):d=t.setTextContent(u);const b=[d];for(let e=1;e<l;e++){const n=Mr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Ie(t,n);const i=n.__key;o===r&&ji(i),b.push(n)}const x=g?g.offset:null,_=v?v.offset:null;let w=0;for(const e of b){if(!g&&!v)break;const t=w+e.getTextContentSize();if(null!==g&&null!==x&&x<=t&&x>=w&&(g.set(e.getKey(),x-w,"text"),x<t&&(g=null)),null!==v&&null!==_&&_<=t&&_>=w){v.set(e.getKey(),_-w,"text");break}w=t}if(null!==c){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Di(t);null!==n&&Di(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();m?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),Wr(y)&&uo(y,c,t,l-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||$("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;Fi()===r&&ji(n);const a=so();if(Wr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&po(o,t,n,e,i),null!==s&&s.key===r&&po(s,t,n,e,i)}const s=e.__text,l=t?s+o:o+s;this.setTextContent(l);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function Sr(e){return{forChild:Pr(e.style),node:null}}function Cr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Pr(t.style,n?void 0:"bold"),node:null}}const Er=new WeakMap;function Tr(e){if(!Ra(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Ar(e){const t=e;null===e.parentElement&&$("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Er.get(n))&&!Tr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Er.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(hr()):"\t"===r?t.push(Ir()):""!==r&&t.push(Mr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!0));){if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Mr(n)}}function Nr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,Ra(n)){const e=n.style.display;if(""===e&&!Pa(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Li(n))return n;if("BR"===n.nodeName)return null}}const Lr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rr(e){const t=Lr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Pr(e.style,t),node:null}}function Mr(e=""){return Ca(new kr(e))}function Or(e){return e instanceof kr}function Pr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),a="italic"===e.fontStyle,s=r.includes("underline"),l=e.verticalAlign;return e=>Or(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),a&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class zr extends kr{static getType(){return"tab"}static clone(e){return new zr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=ua(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Ir().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&$("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||$("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&$("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&$("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Ir(){return Ca(new zr)}function Dr(e){return e instanceof zr}class jr{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return ws(zs(Ts(this,"next")),zs(Ts(e,"next")))<0}getNode(){const e=Bi(this.key);return null===e&&$("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Bi(e);("text"===n?Or(t):qo(t))||$(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}To()||(Fi()===i&&ji(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function Fr(e,t,n){return new jr(e,t,n)}function Br(e,t){let n=t.__key,r=e.offset,o="element";if(Or(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!qo(t)){const e=t.getNextSibling();if(Or(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function $r(e,t){if(qo(t)){const n=t.getLastDescendant();qo(n)||Or(n)?Br(e,n):Br(e,t)}else Br(e,t)}class Hr{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Kr(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(Or(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=Bi(e);null!==t&&n.push(t)}return To()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((so()||lo())===this&&e[0]){const t=cs(e[0],"next");Ns(xs(t,t))}for(const t of e)t.remove()}}function Wr(e){return e instanceof Ur}class Ur{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Wr(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(as(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;qo(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(is(e.focus)&&qo(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=hs(e.focus.origin,"previous");as(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=ms(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!qo(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=zs(e.anchor),r=zs(e.anchor.getFlipped()),o=e=>os(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(js(Rs(this),"next"));return this.isCollapsed()&&t.length>1&&$(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),To()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,s]=Vr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(qo(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,Or(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<s?e.slice(a,s):e.slice(s,a)):e=i?e.slice(a):e.slice(s):d===n&&(e=i?e.slice(0,s):e.slice(0,a)),l+=e}else!Xo(d)&&!mr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Ro(),n=t.getEditorState()._selection,r=eo(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Be(this)}clone(){const e=this.anchor,t=this.focus;return new Ur(Fr(e.key,e.offset,e.type),Fr(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Oi(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=de[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(hr()):"\t"===r?n.push(Ir()):n.push(Mr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,a=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,a=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Mr();if(a.setFormat(n),a.setStyle(r),ui(i))i.splice(0,0,[a]);else{const e=ei(o)?li().append(a):a;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}(i,a,r,o),"element"===a.type&&As(a,zs(Ts(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];Or(d)||$("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=u[c-1];if(1===c&&"element"===a.type&&(l=f,a.set(i.key,l,"text")),this.isCollapsed()&&s===f&&(Ni(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Or(t)&&t.canInsertTextBefore()&&!Ni(t)||(t=Mr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(Ni(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Or(t)&&!Ni(t)||(t=Mr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){const e=Mr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||qo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Zr(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(Ai(d)){const t=Mr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Dr(d)){const t=Mr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Mr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===s)d.insertBefore(t,!1);else{const[e]=d.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=l-s;d=d.spliceText(s,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=qo(d)?d:d.getParentOrThrow();let r=qo(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===a.type&&(0!==l||""===h.getTextContent())||"element"===a.type&&h.getIndexWithinParent()<l)if(Or(h)&&!Ai(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Mr(h.getTextContent());h.replace(e),h=e}ei(a.getNode())||"text"!==a.type||(h=h.spliceText(0,l,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(u),m=n.is(r),g=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||qo(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Ai(d))if(s===f)d.select();else{const t=Mr(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<c;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=so()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=js(e,r),a=Os(i.anchor,n),s=Os(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(as(e))l.add(e.origin.getKey());else if(is(e)){const{origin:t}=e;qo(t)&&!l.has(t.getKey())||u.push(t)}for(const e of u)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=Ms(cs(t,r)),l=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===l&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===l){const e=t.origin,n=Mr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=ds(n,r,t.offset)}n.is(a[0].origin)&&(a[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let c,d;for(const e of a)if(Ps(e)){c=zs(e);break}for(const e of s)if(Ps(e)){d=zs(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const a=o.getParents().reverse();a.push(o);const s=Math.min(i.length,a.length);let l;for(l=0;l<s&&i[l]===a[l];l++);const u=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(ka(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,Ia),d=c&&u(a,e=>n.has(e.getKey())&&Ia(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;hs(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[c,d,...a,...s].find(Ps);if(p){return bs(Ds(zs(p),e.direction))}$(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(a.map(e=>e.origin.__key))}`)}(Rs(this));Ls(this,t),e&&so()!==this&&Yi(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void ji(null);const n=this.getNodes(),r=[];for(const e of n)Or(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(qo(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),ji(null),void o(t);const a=this.anchor,s=this.focus,l=this.isBackward(),u=l?s:a,c=l?a:s;let d=0,f=r[0],p="element"===u.type?0:u.offset;if("text"===u.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const m=i-1;let g=r[m];const v="text"===c.type?c.offset:g.getTextContentSize();if(f.is(g)){if(p===v)return;if(Ni(f)||0===p&&v===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,v),t=0===p?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ni(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const y=g.getFormatFlags(e,h);v>0&&(v===g.getTextContentSize()||Ni(g)||([g]=g.splitText(v)),g.setFormat(y));for(let t=d+1;t<m;t++){const n=r[t],o=n.getFormatFlags(e,y);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(g.__key,v,"text"),this.format=h|y}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=so();return Wr(t)||$("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=qa(t,Ia),r=e[e.length-1];if(qo(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=yo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(qo(e)||Xo(e))&&!e.isInline())){qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=yo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=li();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=mr(o);if(i||Xo(o)&&o.isInline()||qo(o)&&o.isInline()||Or(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),a=o.getChildren(),s=!qo(n)||!n.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let u=a[0];(e=>qo(e)&&Ia(e)&&!e.isEmpty()&&qo(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(u)&&(qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||$("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const c=qa(i,Ia);s&&qo(c)&&(s.canMergeWhenEmpty()||Ia(l))&&(c.append(...s.getChildren()),s.remove()),qo(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=qo(n)?n.getLastChild():null;mr(d)&&c!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=li();return Gi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=yo(this),t=qa(this.anchor.getNode(),Ia);qo(t)||$("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=hr();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Vr(this),a=this.isBackward(),[s,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=a?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Or(n)&&!this.isCollapsed()){const e=n.splitText(u,c),t=0===u?e[0]:e[1];return t?(s.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Or(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),Or(r)){const t=r.getTextContent().length;0===c?e.pop():c!==t&&([r]=r.splitText(c),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(xo(this,e,t,n))return;const r="move"===e,o=Ro(),i=Na(wa(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!qo(l)||l.isInline()||l.canBeEmpty()||Aa(a,o,s),this.dirty){let e=ga(o,this.anchor.key),t=ga(o,this.focus.key);"text"===this.anchor.type&&(e=Mi(e)),"text"===this.focus.type&&(t=Mi(t)),e&&t&&ho(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=ei(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(ka(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let a=!1;for(let e=0;e<n.length;e++){const t=n[e];xa(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];qo(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];qo(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&xo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&qo(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(qo(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=ys(Ts(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(as(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=zs(t);Ls(this,xs(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(is(t)){if(qo(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Xo(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=oo();e.add(t.origin.getKey()),Yi(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Ls(this,xs(!t.origin.isEmpty()&&n.isEmpty()?Ms(cs(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Yr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Jr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Jr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,a=e<i,s=a?e:i,l=a?i:e,u=l-1;if(s!==u){(function(e){e.length>1||$("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Ji(e)||qr(e))})(o.getTextContent().slice(s,l))&&(t?r.set(r.key,u,r.type):n.set(n.key,u,n.type))}}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&ei(e.getParent())&&null===e.getPreviousSibling()&&Yr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Kr(e){return e instanceof Hr}function Gr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Vr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Gr(n),Gr(r)]}function Yr(e,t){for(let n=t;n;n=n.getParent()){if(qo(n)){if(n.collapseAtStart(e))return!0;if(ka(n))break}if(n.getPreviousSibling())break}return!1}const qr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Jr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let a=0,s=0;for(let e=0;e<i;e++){const r=e===i-1;if(s=a,a+=o[e].length,t&&a===n||a>n||r){o.splice(e,1),r&&(s=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(s,s))}function Qr(e,t,n,r){let o,i=t;if(Ra(e)){let a=!1;const s=e.childNodes,l=s.length,u=r._blockCursorElement;i===l&&(a=!0,i=l-1);let c=s[i],d=!1;if(c===u)c=s[i+1],d=!0;else if(null!==u){const n=u.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,u)&&i--}}if(o=qi(c),Or(o))i=fs(o,a?"next":"previous");else{let s=qi(e);if(null===s)return null;if(qo(s)){const l=r.getElementByKey(s.getKey());null===l&&$("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),qo(s)||$("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(qo(c)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(c,0,n)){const e=a?c.getLastDescendant():c.getFirstDescendant();null===e?s=c:(c=e,s=qo(c)?c:c.getParentOrThrow()),i=0}Or(c)?(o=c,s=null,i=fs(c,a?"next":"previous")):c!==s&&a&&!d&&(qo(s)||$("invariant"),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Xo(s)&&qi(e)===s?n:n+1,s=s.getParentOrThrow()}if(qo(s))return Fr(s.__key,i,"element")}}else o=qi(e);return Or(o)?Fr(o.__key,fs(o,i,"clamp"),"text"):null}function Xr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&qo(i)&&i.isInline()){const t=i.getPreviousSibling();Or(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else qo(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Or(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&qo(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&qo(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Or(t)&&e.set(t.__key,0,"text")}}}function Zr(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Xr(e,n,r),Xr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function eo(e,t,n,r,o,i){if(null===e||null===n||!Si(o,e,n))return null;const a=Qr(e,t,Wr(i)?i.anchor:null,o);if(null===a)return null;const s=Qr(n,r,Wr(i)?i.focus:null,o);if(null===s)return null;if(ao("anchor",a),ao("focus",s),"element"===a.type&&"element"===s.type){const t=qi(e),r=qi(n);if(Xo(t)&&Xo(r))return null}return Zr(a,s),[a,s]}function to(e){return qo(e)&&!e.isInline()}function no(e,t,n,r,o,i){const a=Lo(),s=new Ur(Fr(e,t,o),Fr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function ro(){const e=Fr("root",0,"element"),t=Fr("root",0,"element");return new Ur(e,t,0,"")}function oo(){return new Hr(new Set)}function io(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,a=i?i.type:void 0,s="selectionchange"===a,l=!be&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Wr(e)&&!l)return e.clone();if(null===t)return null;if(u=t.anchorNode,c=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(s||void 0===a)&&Wr(e)&&!Si(n,u,c))return e.clone();const p=eo(u,d,c,f,n,e);if(null===p)return null;const[h,m]=p;let g=0,v="";if(Wr(e)){const t=e.anchor;if(h.key===t.key)g=e.format,v=e.style;else{const e=h.getNode();Or(e)?(g=e.getFormat(),v=e.getStyle()):qo(e)&&(g=e.getTextFormat(),v=e.getTextStyle())}}return new Ur(h,m,g,v)}function ao(e,t){const n=Bi(t.key);if(void 0===n&&$(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Or(n)||$(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{qo(n)||$(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function so(){return Lo()._selection}function lo(){return Ro()._editorState._selection}function uo(e,t,n,r=1){const o=e.anchor,i=e.focus,a=o.getNode(),s=i.getNode();if(!t.is(a)&&!t.is(s))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(l,n,"element"),i.set(l,n,"element"),co(e)}}else{const a=e.isBackward(),s=a?i:o,u=s.getNode(),c=a?o:i,d=c.getNode();if(t.is(u)){const e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(l,Math.max(0,e+r),"element")}}co(e)}function co(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!qo(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(qo(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(qo(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(Or(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function fo(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,Or(r)?(a=r.getTextContentSize(),s="text"):qo(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,Or(o)?s="text":qo(o)&&(s="element")),null!==i&&null!==s?e.set(i,a,s):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function po(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function ho(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function mo(e,t,n){const r=ga(e,t.getKey());if(qo(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function go(e,t,n,r,o,i,a){const s=r.anchorNode,l=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(o.has(ar)&&d!==i||null!==d&&ki(d))return;if(!Wr(t))return void(null!==e&&Si(n,s,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),m=p.getNode(),[g,v]=mo(n,h,f.offset),[y,b]=mo(n,m,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let k=g,S=y,C=!1;if("text"===f.type?(k=Mi(g),C=h.getFormat()!==x||h.getStyle()!==_):Wr(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(S=Mi(y)),null!==k&&null!==S&&(w&&(null===e||C||Wr(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){Pn=[e,t,n,r,o]}(x,_,v,f.key,performance.now()),u!==v||c!==b||s!==k||l!==S||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(ur)||i.focus({preventScroll:!0}),"element"===f.type))){if(ho(r,k,v,S,b),!K||!t.isCollapsed()||null===i||o.has(ur)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(sr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Wr(t)&&"element"===t.anchor.type?k.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=ya(n),o=_a(r);if(null===r||null===o)return;let{top:i,bottom:a}=t,s=0,l=0,u=n;for(;null!==u;){const t=u===r.body;if(t)s=0,l=wa(e).innerHeight;else{const e=u.getBoundingClientRect();s=e.top,l=e.bottom}let n=0;if(i<s?n=-(s-i):a>l&&(n=a-l),0!==n)if(t)o.scrollBy(0,n);else{const e=u.scrollTop;u.scrollTop+=n;const t=u.scrollTop-e;i-=t,a-=t}if(t)break;u=va(u)}}(n,t,i)}}Tn=!0}}function vo(e){let t=so()||lo();null===t&&(t=Gi().selectEnd()),t.insertNodes(e)}function yo(e){let t=e;e.isCollapsed()||t.removeText();const n=so();Wr(n)&&(t=n),Wr(t)||$("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Ia(o);){const e=o;if([o,i]=bo(o,i),e.is(o))break}return i}function bo(e,t){const n=e.getParent();if(!n){const e=li();return Gi().append(e),e.select(),[Gi(),0]}if(Or(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!qo(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Ur(Fr(e.__key,t,"element"),Fr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function xo(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=Ts(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!Is(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Xo(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of ys(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(as(e))e.origin.isInline()||(l=e);else{if(qo(e.origin))continue;Xo(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Xo(l.origin)&&l.origin.isKeyboardSelectable()){const e=oo();return e.add(l.origin.getKey()),Yi(e),!0}return l=zs(l),s&&As(e.anchor,l),As(e.focus,l),u||!a}let _o=null,wo=null,ko=!1,So=!1,Co=0;const Eo={characterData:!0,childList:!0,subtree:!0};function To(){return ko||null!==_o&&_o._readOnly}function Ao(){ko&&$("Cannot use method in read-only mode.")}function No(){Co>99&&$("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function Lo(){return null===_o&&$(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Mo()}`),_o}function Ro(){return null===wo&&$(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Mo()}`),wo}function Mo(){let e=0;const t=new Set,n=hi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Ti(r);if(Ci(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function Oo(){return wo}function Po(e,t,n){const r=t.__type,o=bi(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const a=i.length;for(let e=0;e<a&&(i[e](t),t.isAttached());e++);}function zo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Io(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function Do(e){return jo(e,Ro()._nodes)}function jo(e,t){const n=e.type,r=t.get(n);void 0===r&&$(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&$(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),a=e.children;if(qo(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=jo(a[e],t);i.append(n)}return i}function Fo(e,t,n){const r=_o,o=ko,i=wo;_o=t,ko=!0,wo=e;try{return n()}finally{_o=r,ko=o,wo=i}}function Bo(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function $o(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,a=i._selection,s=n._selection,l=0!==e._dirtyType,u=_o,c=ko,d=wo,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){wo=e,_o=n,ko=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=xt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),So)throw t;return di(e,null,r,n),Ae(e),e._dirtyType=2,So=!0,$o(e,i),void(So=!1)}finally{p.observe(r,Eo),e._updating=f,_o=u,ko=c,wo=d}}n._readOnly||(n._readOnly=!0,Bo(n),Wr(s)&&(Object.freeze(s.anchor),Object.freeze(s.focus)),Object.freeze(s));const m=e._dirtyLeaves,g=e._dirtyElements,v=e._normalizedNodes,y=e._updateTags,b=e._deferred;l&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=Ui(e)),delete r[i])}(e,n);const x=o?null:Na(wa(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!y.has(lr)){wo=e,_o=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&Aa(t,e,r),go(a,s,e,x,y,r)}!function(e,t,n){let r=e._blockCursorElement;if(Wr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),a=o.offset;let s=!1,l=null;if(a===i.getChildrenSize()){Ta(i.getChildAtIndex(a-1))&&(s=!0)}else{const t=i.getChildAtIndex(a);if(null!==t&&Ta(t)){const n=t.getPreviousSibling();(null===n||Ta(n))&&(s=!0,l=e.getElementByKey(t.__key))}}if(s){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=Ws(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&Aa(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,Eo),wo=d,_o=u}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),a=i.length;for(let e=0;e<a;e++){const[a,s]=i[e];for(const e of s){const i=t.get(e);void 0!==i&&a(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,y,m,i),Wr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(kt,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Ho("decorator",e,!0,_)),function(e,t,n){const r=Ki(t),o=Ki(n);r!==o&&Ho("textcontent",e,!0,o)}(e,t||i,n),Ho("update",e,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:y}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;Uo(e,t,r)}}}(e)}function Ho(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Wo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let a;void 0!==o&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&$("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),a&&e._deferred.push(a),Io(e,o.tag)),null==i?Uo(e,n,o):n()}}return r}function Uo(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,Io(e,n.tag),i=n.skipTransforms||!1,a=n.discrete||!1),o&&e._deferred.push(o);const s=e._editorState;let l=e._pendingEditorState,u=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=ti(l||s),u=!0),l._flushSync=a;const c=_o,d=ko,f=wo,p=e._updating;_o=l,ko=!1,e._updating=!0,wo=e;const h=e._headless||null===e.getRootElement();gi(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Na(wa(e));return Wr(n)||null==n?io(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Wo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Wr(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(l,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);Or(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Fe(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=Fi(),a=new Map;let s=n,l=s.size,u=r,c=u.size;for(;l>0||c>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of s){const r=o.get(e);Or(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Fe(r),void 0!==r&&zo(r,i)&&Po(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){Co++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0);for(const e of u){const n=e[0],s=e[1];if(r.set(n,s),!s)continue;const l=o.get(n);void 0!==l&&zo(l,i)&&Po(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,Co++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Wo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,a=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(qo(t)&&ye(t,e,o,i,a,r),o.has(e)||r.delete(e),a.push(e)))}for(const e of a)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(s,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if(Wr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||$("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Kr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void $o(e)}finally{_o=c,ko=d,wo=f,e._updating=p,Co=0}const m=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(l,e);m?l._flushSync?(l._flushSync=!1,$o(e)):u&&_i(()=>{$o(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ko(e,t,n){wo===e&&void 0===n?t():Uo(e,t,n)}class Go{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Go(this.element,e,this.after)}withAfter(e){return new Go(this.element,this.before,e)}withElement(e){return this.element===e?this:new Go(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&$("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&$("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&$("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(X||Y||V);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Vo(t,n);o.push(r);const i=Vo(t,this.element);let a=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){a+=1;break}}return[e.getParentOrThrow(),a]}}function Vo(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&$("indexPath: root is not a parent of child"),n.reverse()}class Yo extends rr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return he[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=Ro()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(Or(t)&&e.push(t),qo(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;qo(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;qo(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return qo(e)&&e.getLastDescendant()||e||null}const r=t[e];return qo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Bi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&$(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Bi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&$(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=ue)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=pe[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=de[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return Oi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Ao();const n=so();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Or(e)||qo(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Or(e)||qo(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Wr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):no(a,r,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?pe[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){nr(this)&&$(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||$(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,a=[],s=[],l=this.getChildAtIndex(e+t);let u=null,c=r-t+n.length;if(0!==e)if(e===r)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){null===e&&$("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;Ii(e.getWritable()),s.push(n),e=t}}let d=u;for(const e of n){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&c--,Ii(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&$("append: attempting to append self"),t.__parent=i,a.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=c,s.length){const e=so();if(Wr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Jo(r,t,n)&&fo(r,r.getNode(),this,u,l),Jo(o,t,n)&&fo(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||ka(this)||this.remove()}}return o}getDOMSlot(e){return new Go(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||ka(this)||this.getChildren().some(Or)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function qo(e){return e instanceof Yo}function Jo(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class Qo extends rr{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Xo(e){return e instanceof Qo}class Zo extends Yo{__cachedText;static getType(){return"root"}static clone(){return new Zo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!To()&&0!==Ro()._dirtyType||null===e?super.getTextContent():e}remove(){$("remove: cannot be called on root nodes")}replace(e){$("replace: cannot be called on root nodes")}insertBefore(e){$("insertBefore: cannot be called on root nodes")}insertAfter(e){$("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)qo(e)||Xo(e)||$("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Gi().updateFromJSON(e)}collapseAtStart(){return!0}}function ei(e){return e instanceof Zo}function ti(e){return new oi(new Map(e._nodeMap))}function ni(){return new oi(new Map([["root",new Zo]]))}function ri(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&$(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),qo(e)){const r=t.children;Array.isArray(r)||$(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ri(o[e]);r.push(t)}}return t}class oi{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return Fo(t&&t.editor||null,this,e)}clone(e){const t=new oi(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Fo(null,this,()=>({root:ri(Gi())}))}}class ii extends Yo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ai extends Yo{static getType(){return"paragraph"}static clone(e){return new ai(e.__key)}createDOM(e){const t=document.createElement("p"),n=ua(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:si,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return li().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Or);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=li();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||Or(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function si(e){const t=li();if(e.style&&(t.setFormat(e.style.textAlign),Wa(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in pe&&t.setFormat(n)}return{node:t}}function li(){return Ca(new ai)}function ui(e){return e instanceof ai}const ci=0;function di(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=ni(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function fi(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ya(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof rr&&e!==rr?e:void 0}}return t}function pi(e){const t=e||{},n=Oo(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=ni(),s=t.namespace||(null!==o?o._config.namespace:Xi()),l=t.editorState,u=[Zo,kr,fr,zr,ai,ii,...t.nodes||[]],{onError:c,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<u.length;e++){let t=u[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ya(t);{const e=t.name,o=Ga(t,"getType")&&t.getType();r?r.prototype instanceof t||$(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==rr&&(["getType","clone"].forEach(n=>{Ga(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Ga(t,"importDOM")&&Va(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Ga(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=fi(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Ne(u[e]),transforms:i})}}const h=new hi(a,o,p,{disableEvents:i,namespace:s,theme:r},c||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)}),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==l&&(h._pendingEditorState=l,h._dirtyType=2),function(e){e.registerCommand(Et,$n,ci),e.registerCommand(Tt,Hn,ci),e.registerCommand(At,Wn,ci),e.registerCommand(Nt,Un,ci),e.registerCommand($t,Gn,ci)}(h),h}class hi{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,a,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Xi(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&$('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&$(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const a=n&&n.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&$(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Ba(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=Ba(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update(()=>{for(const e of r)for(const t of e.keys()){const e=Bi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ir}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return ma(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=ua(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,di(this,t,e,r),null!==t&&(this._config.disableEvents||Zn(t),null!=n&&t.classList.remove(...n)),null!==e){const t=_a(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,Ae(this),this._updateTags.add(ir),$o(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Cn.set(e,n);const r=En.get(n)??0;r<1&&n.addEventListener("selectionchange",qn),En.set(n,r+1),e.__lexicalEditor=t;const o=Vn(e);for(let n=0;n<xn.length;n++){const[r,i]=xn[n],a="function"==typeof i?e=>{Qn(e)||(Jn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Qn(e))return;Jn(e);const n=t.isEditable();switch(r){case"cut":return n&&ma(t,cn,e);case"copy":return ma(t,un,e);case"paste":return n&&ma(t,Pt,e);case"dragstart":return n&&ma(t,an,e);case"dragover":return n&&ma(t,sn,e);case"dragend":return n&&ma(t,ln,e);case"focus":return n&&ma(t,gn,e);case"blur":return n&&ma(t,vn,e);case"drop":return n&&ma(t,rn,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ir),$o(this);Ho("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&$("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=ti(e),n._selection=e._selection?e._selection.clone():null),Te(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),$o(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||$o(this)}parseEditorState(e,t){return function(e,t,n){const r=ni(),o=_o,i=ko,a=wo,s=t._dirtyElements,l=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,_o=r,ko=!1,wo=t,gi(null);try{const o=t._nodes;jo(e.root,o),n&&n(),r._readOnly=!0,Bo(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,_o=o,ko=i,wo=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return $o(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Uo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ko(this,()=>{const r=so(),o=Gi();null!==r?r.dirty||Yi(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ba("focus"),function(e){Ao();Ro()._deferred.push(e)}(()=>{n.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Na(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ho("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}hi.version="0.41.0+dev.esm";let mi=null;function gi(e){mi=e}let yi=1;function bi(e,t){const n=xi(e,t);return void 0===n&&$(`registeredNode: Type ${t} not found`),n}function xi(e,t){return e._nodes.get(t)}const _i="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function wi(e){return Xo(Wi(e))}function ki(e){const t=document.activeElement;if(!Ra(t))return!1;const n=t.nodeName;return Xo(Wi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Ti(t))}function Si(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ki(t)&&Ei(t)===e}catch(e){return!1}}function Ci(e){return e instanceof hi}function Ei(e){let t=e;for(;null!=t;){const e=Ti(t);if(Ci(e))return e;t=va(t)}return null}function Ti(e){return e?e.__lexicalEditor:null}function Ai(e){return Dr(e)||e.isToken()}function Ni(e){return Ai(e)||e.isSegmented()}function Li(e){return Ma(e)&&3===e.nodeType}function Ri(e){return Ma(e)&&9===e.nodeType}function Mi(e){let t=e;for(;null!=t;){if(Li(t))return t;t=t.firstChild}return null}function Oi(e,t,n){const r=de[t];if(null!==n&&(e&r)===(n&r))return e;let o=e^r;return"subscript"===t?o&=-65:"superscript"===t?o&=-33:"lowercase"===t?(o&=-513,o&=-1025):"uppercase"===t?(o&=-257,o&=-1025):"capitalize"===t&&(o&=-257,o&=-513),o}function Pi(e){return Or(e)||mr(e)||Xo(e)}function zi(e,t){const n=function(){const e=mi;return mi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=_o;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&$(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Ao(),No();const r=Ro(),o=Lo(),i=""+yi++;o._nodeMap.set(i,e),qo(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Ii(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=null!==i?i.__key:null,s=null!==o?o.__key:null,l=null!==o?o.getWritable():null,u=null!==i?i.getWritable():null;null===o&&(r.__first=a),null===i&&(r.__last=s),null!==l&&(l.__next=a),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Di(e){No(),nr(e)&&$(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=Lo(),o=Ro(),i=r._nodeMap,a=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,a);const s=t.__key;o._dirtyType=1,qo(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function ji(e){Ao();const t=Ro(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Bi(n);null!==e&&e.getWritable()}if(null!==e){const t=Bi(e);null!==t&&t.getWritable()}}}function Fi(){if(To())return null;return Ro()._compositionKey}function Bi(e,t){const n=(t||Lo())._nodeMap.get(e);return void 0===n?null:n}function $i(e,t){const n=Hi(e,Ro());return void 0!==n?Bi(n,t):null}function Hi(e,t){return e[`__lexicalKey_${t._key}`]}function Wi(e,t){let n=e;for(;null!=n;){const e=$i(n,t);if(null!==e)return e;n=va(n)}return null}function Ui(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Ki(e){return e.read(()=>Gi().getTextContent())}function Gi(){return Vi(Lo())}function Vi(e){return e._nodeMap.get("root")}function Yi(e){Ao();const t=Lo();null!==e&&(Object.isFrozen(e)&&$("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function qi(e){const t=Ro(),n=function(e,t){let n=e;for(;null!=n;){const e=Hi(n,t);if(void 0!==e)return e;n=va(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Bi("root"):null}return Bi(n)}function Ji(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Qi(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Xi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Zi(e){return Li(e)?e.nodeValue:null}function ea(e,t,n){const r=Na(wa(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Zi(o);const r=Wi(o);if(null!==t&&Or(r)){if((t===le||t===ce)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&ta(r,t,i,a,e)}}}function ta(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const a=i.isComposing();let s=t;if((a||o)&&(t.endsWith(le)&&(s=t.slice(0,-le.length)),o)){const e=ce;let t;for(;-1!==(t=s.indexOf(e));)s=s.slice(0,t)+s.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const l=i.getTextContent();if(o||s!==l){if(""===s){if(ji(null),V||Y||X)i.remove();else{const e=Ro();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=lo(),l=i.getTextContentSize(),u=Fi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Wr(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!a||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!a))return void i.markDirty();const d=so();if(!Wr(d)||null===n||null===r)return void na(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Mr(i.getTextContent());i.replace(e),i=e}na(i,s,d)}}}function na(e,t,n){if(e.setTextContent(t),Wr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=fs(e,o.offset,"clamp"))}}}function ra(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function oa(e,t,n){if(!function(e,t){return ra(e,t,"altKey")&&ra(e,t,"ctrlKey")&&ra(e,t,"shiftKey")&&ra(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const ia={ctrlKey:!U,metaKey:U},aa={altKey:U,ctrlKey:!U};function sa(e){return"Backspace"===e.key}function la(e){return oa(e,"a",ia)}function ua(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=Ws(o);return n[t]=e,e}return o}function ca(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&$(`Type ${i} not in registeredNodes`);const l=s.klass;let u=e.get(l);void 0===u&&(u=new Map,e.set(l,u));const c=u.get(a),d="destroyed"===c&&"created"===o;(void 0===c||d)&&u.set(a,d?"updated":o)}function da(e){const t=e.getType(),n=Lo();if(n._readOnly){const e=Ba(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function fa(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function pa(e,t){const n=e.offset;if("element"===e.type){return fa(e.getNode(),t,n)}{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?fa(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function ha(e){const t=wa(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function ma(e,t,n){return function(e,t,n){const r=Qi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const a=r[i],s=a._commands.get(t);if(void 0!==s){const t=s[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Ko(a,()=>{for(let t=0;t<o;t++)if(r[t](n,e))return void(i=!0)}),i)return i}}}return!1}(e,t,n)}function ga(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&$(`Reconciliation: could not find DOM element for node key ${t}`),n}function va(e){const t=e.assignedSlot||e.parentElement;return Oa(t)?t.host:t}function ya(e){return Ri(e)?e:Ra(e)?e.ownerDocument:null}function ba(e){Ao();Ro()._updateTags.add(e)}function xa(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function _a(e){const t=ya(e);return t?t.defaultView:null}function wa(e){const t=e._window;return null===t&&$("window object not found"),t}function ka(e){return ei(e)||qo(e)&&e.isShadowRoot()}function Sa(e){const t=e.constructor.clone(e);return zi(t,null),t.afterCloneFrom(e),t}function Ca(e){const t=Ro(),n=e.getType(),r=xi(t,n);void 0===r&&$(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||$(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||$(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&$(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function Ea(e,t){!ei(e.getParent())||qo(t)||Xo(t)||$("Only element or decorator nodes can be inserted in to the root node")}function Ta(e){return(Xo(e)||qo(e)&&!e.canBeEmpty())&&!e.isInline()}function Aa(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Na(e){return H?(e||window).getSelection():null}function La(e){return Ra(e)&&"A"===e.tagName}function Ra(e){return Ma(e)&&1===e.nodeType}function Ma(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Oa(e){return Ma(e)&&11===e.nodeType}function Pa(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function za(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function Ia(e){if(Xo(e)&&!e.isInline())return!0;if(!qo(e)||ka(e))return!1;const t=e.getFirstChild(),n=null===t||mr(t)||Or(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Da(){return Ro()}const ja=new WeakMap,Fa=new Map;function Ba(e){if(!e._readOnly&&e.isEmpty())return Fa;e._readOnly||$("getCachedTypeToNodeMap called with a writable EditorState");let t=ja.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),ja.set(e,t)),t}function $a(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ha(e){return function(e){return e[tr]=!0,e}($a(e))}function Wa(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Ua(e){return!0===e.__lexicalUnmanaged}function Ka(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ga(e,t){return Ka(e,t)&&e[t]!==rr[t]}function Va(e){return Ka(e.prototype,"exportDOM")}function Ya(e){const t=ve in e.prototype?e.prototype[ve]():void 0,n=function(e){if(!(e===rr||e.prototype instanceof rr)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{hi.version&&(n=JSON.parse(hi.version))}catch(e){}$(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Qo||e===Yo||e===rr}(e),r=!n&&Ga(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(Ga(e,"getType")||(e.getType=()=>i),Ga(e,"clone")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(gi(t),new e)),Ga(e,"importJSON")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ga(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const qa=(e,t)=>{let n=e;for(;null!=n&&!ei(n);){if(t(n))return n;n=n.getParent()}return null},Ja={next:"previous",previous:"next"};class Qa{origin;constructor(e){this.origin=e}[Symbol.iterator](){return _s({hasNext:is,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return cs(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return cs(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),a=new Map;for(let t=o.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();a.set(e.getKey(),e)}for(const e of r){if(a.size>0){const t=o.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&$(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(a).join(" ")})`)}else o.insert(e);o=cs(e,this.direction)}for(const e of a.values())e.remove();return this}}class Xa extends Qa{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:hs(e,this.direction)}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=es(this.direction);return cs(this.getNodeAtCaret(),e)||hs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Xa&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Za={root:ei,shadowRoot:ka};function es(e){return Ja[e]}function ts(e,t="root"){return Za[t](e)?null:e}class ns extends Qa{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:cs(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return qo(this.origin)?hs(this.origin,this.direction):null}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=es(this.direction);return cs(this.getNodeAtCaret(),e)||hs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof ns&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof ns||e instanceof rs)&&this.direction===e.direction&&this.origin.is(e.origin)}}class rs extends Qa{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ds(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ds(this.origin,es(this.direction),this.offset)}isSamePointCaret(e){return e instanceof rs&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof ns||e instanceof rs)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return cs(this.origin,this.direction)}}function os(e){return e instanceof rs}function is(e){return e instanceof ns}function as(e){return e instanceof Xa}const ss={next:class extends rs{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rs{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ls={next:class extends ns{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ns{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},us={next:class extends Xa{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Xa{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function cs(e,t){return e?new ls[t](e):null}function ds(e,t,n){return e?new ss[t](e,fs(e,n)):null}function fs(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&$(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function ps(e,t){return new vs(e,t)}function hs(e,t){return qo(e)?new us[t](e):null}function ms(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class gs{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new gs(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return os(t)?function(e,t){const{direction:n,origin:r}=e,o=fs(r,"focus"===t?es(n):n);return ps(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ps(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=os(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=os(n),o=t=>t.isSameNodeCaret(n)?null:ms(t)||t.getParentCaret(e);return _s({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class vs{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return ds(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function ys(e){return xs(e,cs(Gi(),e.direction))}function bs(e){return xs(e,e)}function xs(e,t){return e.direction!==t.direction&&$("$getCaretRange: anchor and focus must be in the same direction"),new gs(e,t,e.direction)}function _s(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function ws(e,t){const n=Es(e.origin,t.origin);switch(null===n&&$(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return ks(n)}}function ks(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,a=n;for(;i&&a;i=i.getNextSibling(),a=a.getNextSibling()){if(i.__key===o)return-1;if(a.__key===r)return 1}return null===i?1:-1}function Ss(e,t){return t.is(e)}function Cs(e){return qo(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Es(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Cs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Cs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Ss(e,r)||$("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Ss(t,r)||$("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((qo(i)||Ss(e,i))&&(qo(o)||Ss(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||$("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Ts(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Bi(e);return null===t&&$(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Or(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),ds(i,t,o)):(qo(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=hs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Ds(r,n)}(i,e.offset,t))}function As(e,t){const{origin:n,direction:r}=t,o="next"===r;os(t)?e.set(n.getKey(),t.offset,"text"):is(t)?Or(n)?e.set(n.getKey(),fs(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(as(t)&&qo(n)||$("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Ns(e){const t=so(),n=Wr(t)?t:ro();return Ls(n,e),Yi(n),n}function Ls(e,t){As(e.anchor,t.anchor),As(e.focus,t.focus)}function Rs(e){const{anchor:t,focus:n}=e,r=Ts(t,"next"),o=Ts(n,"next"),i=ws(r,o)<=0?"next":"previous";return xs(Ds(r,i),Ds(o,i))}function Ms(e){const{direction:t,origin:n}=e,r=cs(n,es(t)).getNodeAtCaret();return r?cs(r,t):hs(n.getParentOrThrow(),t)}function Os(e,t="root"){const n=[e];for(let r=as(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Ms(r));return n}function Ps(e){return!!e&&e.origin.isAttached()}function zs(e){const t=function(e){let t=e;for(;as(t);){const e=ms(t);if(!as(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Or(t.origin))return os(t)?t:ds(t.origin,n,n);const r=t.getAdjacentCaret();return is(r)&&Or(r.origin)?ds(r.origin,n,es(n)):t}function Is(e){return os(e)&&e.offset!==fs(e.origin,e.direction)}function Ds(e,t){return e.direction===t?e:e.getFlipped()}function js(e,t){return e.direction===t?e:xs(Ds(e.focus,t),Ds(e.anchor,t))}function Fs(e){const{origin:t,offset:n,direction:r}=e;if(n===fs(t,r))return e.getSiblingCaret();if(n===fs(t,es(r)))return Ms(e.getSiblingCaret());const[o]=t.splitText(n);return Or(o)||$("$splitTextPointCaret: splitText must return at least one TextNode"),Ds(cs(o,"next"),r)}function Bs(e,t){return!0}function $s(e,{$copyElementNode:t=Sa,$splitTextPointCaretNext:n=Fs,rootMode:r="shadowRoot",$shouldSplit:o=Bs}={}){if(os(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(as(e)&&(!n.canBeEmpty()||!o(n,"first")))return Ms(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function Hs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Ws(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function Us(e,...t){const n=Ws(...t);n.length>0&&e.classList.add(...n)}function Ks(e,...t){const n=Ws(...t);n.length>0&&e.classList.remove(...n)}function Gs(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Vs(e){throw new Error(e)}const Ys=new Map;function qs(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Js(e){let t=Ys.get(e);return void 0===t&&(t=qs(e),Ys.set(e,t)),Object.freeze(t),t}function Qs(e){const t=Da().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Xs(e){return Qs(ei(e)?e:e.getParentOrThrow())}function Zs(e){const t=Xs(e);return null!==t&&"rtl"===t.direction}function el(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ni(t)&&null!==r){const[o,i]=r,a=e.isBackward(),s=o.getNode(),l=i.getNode(),u=t.is(s),c=t.is(l);if(u||c){const[r,o]=Vr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(u){f=a?o:r,d=void 0}else if(c){f=0,d=a?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=Ha(t)),t.__text=p)}}return t}function tl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return qo(t)||Vs("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function nl(e){const t=e.getStyle(),n=qs(t);Ys.set(t,n)}function rl(e,t){(Wr(e)?e.isCollapsed():Or(e)||qo(e))||Vs("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Js(Wr(e)?e.style:Or(e)?e.getStyle():e.getTextStyle()),r=Object.entries(t).reduce((t,[r,o])=>("function"==typeof o?t[r]=o(n[r],e):null===o?delete t[r]:t[r]=o,t),{...n}),o=function(e){let t="";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}(r);Wr(e)||Or(e)?e.setStyle(o):e.setTextStyle(o),Ys.set(o,r)}function ol(e,t){if(Wr(e)&&e.isCollapsed()){rl(e,t);const n=e.anchor.getNode();qo(n)&&n.isEmpty()&&rl(n,t)}!function(e){const t=so();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Wr(t))for(const e of Rs(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Or(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ni(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Wr(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:r,offset:o,type:i}=t;t.set(n.key,n.offset,n.type),n.set(r,o,i)}}(t)}(e=>{rl(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!qo(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),rl(r,t))}}}function il(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function al(e){const t=sl(e);return null!==t&&"vertical-rl"===t.writingMode}function sl(e){const t=e.anchor.getNode();return qo(t)?Qs(t):Xs(t)}function ll(e,t){let n=al(e)?!t:t;ul(e)&&(n=!n);const r=Ts(e.focus,n?"previous":"next");if(Is(r))return!1;for(const e of ys(r)){if(as(e))return!e.origin.isInline();if(!qo(e.origin)){if(Xo(e.origin))return!0;break}}return!1}function ul(e){const t=sl(e);return null!==t&&"rtl"===t.direction}function cl(e,t,n){const r=ul(e);let o;o=al(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function dl(e,t,n){const r=Js(e.getStyle());return null!==r&&r[t]||n}function fl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,a=e.focus,s=e.isBackward(),l=s?a.offset:i.offset,u=s?a.getNode():i.getNode();if(Wr(e)&&e.isCollapsed()&&""!==e.style){const n=Js(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<o.length;e++){const i=o[e];if((0===e||0!==l||!i.is(u))&&Or(i)){const e=dl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function pl(e){throw new Error(e)}const hl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ml=hl&&"documentMode"in document?document.documentMode:null;function gl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function vl(e){const t=qa(e,e=>qo(e)&&!e.isInline());return qo(t)||pl(`Expected node ${e.__key} to have closest block element node.`),t}function yl(e){const t=so()||lo();let n;if(Wr(t))n=Ts(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=cs(r,"next"))}n=n||hs(Gi(),"previous").getFlipped().insert(li())}const r=bl(e,n),o=ms(r);return Ns(bs(as(o)?zs(o):r)),e.getLatest()}function bl(e,t,n){let r=Ds(t,"next");for(let e=r;e;e=$s(e,n))r=e;return os(r)&&pl("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?li().append(e):e),Ds(cs(e.getLatest(),"next"),t.direction)}function xl(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function _l(e){const t=so();if(!Wr(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const a=qa(o,e=>qo(e)&&!e.isInline());if(null===a)continue;const s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),e(a))}return n.size>0}hl&&"InputEvent"in window&&!ml&&new window.InputEvent("input");const wl=Symbol.for("preact-signals");function kl(){if(Tl>1)return void Tl--;let e,t=!1;for(;void 0!==Cl;){let n=Cl;for(Cl=void 0,Al++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ol(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Al=0,Tl--,t)throw e}let Sl,Cl;function El(e){const t=Sl;Sl=void 0;try{return e()}finally{Sl=t}}let Tl=0,Al=0,Nl=0;function Ll(e){if(void 0===Sl)return;let t=e.n;return void 0===t||t.t!==Sl?(t={i:0,S:e,p:Sl.s,n:void 0,t:Sl,e:void 0,x:void 0,r:t},void 0!==Sl.s&&(Sl.s.n=t),Sl.s=t,e.n=t,32&Sl.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Sl.s,t.n=void 0,Sl.s.n=t,Sl.s=t),t):void 0}function Rl(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Ml(e,t){return new Rl(e,t)}function Ol(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Pl(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function zl(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Il(e,t){Rl.call(this,void 0),this.x=e,this.s=void 0,this.g=Nl-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Dl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Tl++;const n=Sl;Sl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,jl(e),t}finally{Sl=n,kl()}}}function jl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dl(e)}function Fl(e){if(Sl!==this)throw new Error("Out-of-order effect");zl(this),Sl=e,this.f&=-2,8&this.f&&jl(this),kl()}function Bl(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function $l(e,t){const n=new Bl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Hl(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Wl(e){throw new Error(e)}function Ul(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Ul(n[e],r[e]);return e}return t}Rl.prototype.brand=wl,Rl.prototype.h=function(){return!0},Rl.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:El(()=>{var e;null==(e=this.W)||e.call(this)}))},Rl.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&El(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Rl.prototype.subscribe=function(e){return $l(()=>{const t=this.value,n=Sl;Sl=void 0;try{e(t)}finally{Sl=n}},{name:"sub"})},Rl.prototype.valueOf=function(){return this.value},Rl.prototype.toString=function(){return this.value+""},Rl.prototype.toJSON=function(){return this.value},Rl.prototype.peek=function(){const e=Sl;Sl=void 0;try{return this.value}finally{Sl=e}},Object.defineProperty(Rl.prototype,"value",{get(){const e=Ll(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Al>100)throw new Error("Cycle detected");this.v=e,this.i++,Nl++,Tl++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{kl()}}}}),Il.prototype=new Rl,Il.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Nl)return!0;if(this.g=Nl,this.f|=1,this.i>0&&!Ol(this))return this.f&=-2,!0;const e=Sl;try{Pl(this),Sl=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Sl=e,zl(this),this.f&=-2,!0},Il.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}Rl.prototype.S.call(this,e)},Il.prototype.U=function(e){if(void 0!==this.t&&(Rl.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Il.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Il.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Ll(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Bl.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},Bl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dl(this),Pl(this),Tl++;const e=Sl;return Sl=this,Fl.bind(this,e)},Bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cl,Cl=this)},Bl.prototype.d=function(){this.f|=8,1&this.f||jl(this)},Bl.prototype.dispose=function(){this.d()};const Kl=0,Gl=1,Vl=2,Yl=3,ql=4,Jl=5,Ql=6,Xl=7;function Zl(e){return e.id===Kl}function eu(e){return e.id===Vl}function tu(e){return function(e){return e.id===Gl}(e)||Wl(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Gl)} temporary)`),Object.assign(e,{id:Vl})}const nu=new Set;class ru{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Kl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Hs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;eu(t)||Wl(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:Yl,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:ql,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==ql&&Wl(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Jl)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Jl,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Jl&&Wl(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Jl)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Ql})}(n),()=>{const e=this.state;e.id!==Xl&&Wl(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(Xl)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Jl})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Ql&&Wl(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Ql)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:Xl})}(t),n}getSignal(){return void 0===this._signal&&Wl("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Wl(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=ql}(e)||Wl(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(ql)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=Yl}(e)||Wl(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(Yl)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Wl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Wl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=Xl}(e)||Wl(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(Xl)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||nu}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=Jl})(e)||Wl(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const ou={tag:ir};function iu(){const e=Gi();e.isEmpty()&&e.append(li())}const au={config:{setOptions:ou,updateOptions:ou},init:({$initialEditorState:e=iu})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof oi)e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Zo,kr,fr,zr,ai]},su=Symbol.for("@lexical/extension/LexicalBuilder");function lu(){}function uu(e){throw e}function cu(e){return Array.isArray(e)?e:[e]}const du="0.41.0+dev.esm";class fu{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=du,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[cu(au)];for(const n of e)t.push(cu(n));return new fu(t)}static maybeFromEditor(e){const t=e[su];return t&&(t.PACKAGE_VERSION!==du&&Wl(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${du}. A project should have exactly one copy of LexicalBuilder`),t instanceof fu||Wl("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=fu.maybeFromEditor(e);return void 0===t&&Wl("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(pi({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[su]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=lu;function t(){try{e()}finally{e=lu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Gs(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Wl(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Wl("LexicalBuilder: addExtension called after finalization");const t=cu(e),[n]=t;"string"!=typeof n.name&&Wl("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Wl(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new ru(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Wl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Wl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=cu(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(eu(o))return;const i=n.extension.name;var a;Zl(o)||Wl(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),Zl(a=o)||Wl(`LexicalBuilder: Can not apply a temporary mark from state id ${String(a.id)} (expected ${String(Kl)} unmarked)`),o=Object.assign(a,{id:Gl}),n.state=o;const s=this.outgoingConfigEdges.get(i);if(s)for(const e of s.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=tu(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Zl(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Wl(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Gs(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},a=this.sortedExtensionReps();for(const s of a){const{extension:a}=s;if(void 0!==a.onError&&(e.onError=a.onError),void 0!==a.disableEvents&&(e.disableEvents=a.disableEvents),void 0!==a.parentEditor&&(e.parentEditor=a.parentEditor),void 0!==a.editable&&(e.editable=a.editable),void 0!==a.namespace&&(e.namespace=a.namespace),void 0!==a.$initialEditorState&&(e.$initialEditorState=a.$initialEditorState),a.nodes)for(const e of Hl(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&Wl(`LexicalBuilder: Extension ${a.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,s)}t.add(e)}if(a.html){if(a.html.export)for(const[e,t]of a.html.export.entries())r.set(e,t);a.html.import&&Object.assign(o,a.html.import)}a.theme&&Ul(i,a.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const s=Object.keys(o).length>0,l=r.size>0;(s||l)&&(e.html={},s&&(e.html.import=o),l&&(e.html.export=r));for(const t of a)t.init(e);return e.onError||(e.onError=uu),e}}function pu(e){return e.canBeEmpty()}function hu(e,t,n=pu){return Gs(e.registerCommand(Zt,t=>{const n=so();if(!Wr(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>to(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=vl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=ro();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Be(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?nn:tn:en;return e.dispatchCommand(r,void 0)},ci),e.registerCommand(tn,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Wr(so()))return!1;const r="function"==typeof n?n:n.peek();return _l(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}const mu=new Set(["http:","https:","mailto:","sms:","tel:"]);class gu extends Yo{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new gu(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Us(t,e.theme.link),t}updateLinkDOM(e,t,n){if(La(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,o=this[r];e&&e[r]===o||(o?t[n]=o:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:xu,priority:1})}}static importJSON(e){return _u().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=Lu(e);try{const t=new URL(Lu(e));if(!mu.has(t.protocol))return"about:blank"}catch(t){return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){const t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){const t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){const t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){const n=_u(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Wr(t))return!1;const r=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function vu(e){const t=Ts(e,"next");return[t,t.getFlipped()]}function yu(e,t){for(const n of t)if(n.origin.isAttached()){return void As(e,zs(n))}}function bu(e){const t=so();let n=null,r=null;Wr(t)&&(n=vu(t.anchor),r=vu(t.focus));for(const t of hs(e,"next")){const n=t.origin;if(qo(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Sa(e);t.append(...r),n.append(t)}bl(n,Ms(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Wr(t)&&(yu(t.anchor,n),yu(t.focus,r),Be(t))}function xu(e){let t=null;if(La(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=_u(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function _u(e="",t){return Ca(new gu(e,t))}function wu(e){return e instanceof gu}class ku extends gu{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new ku(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return Su().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){const n=Su(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Su(e="",t){return Ca(new ku(e,t))}function Cu(e){return e instanceof ku}const Eu=wt("TOGGLE_LINK_COMMAND");function Tu(e,t){if("element"===e.type){const n=e.getNode();qo(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Au(e,t={}){let n;if(e&&"object"==typeof e){const{url:r,...o}=e;n=r,t={...o,...t}}else n=e;const{target:r,title:o}=t,i=void 0===t.rel?"noreferrer":t.rel,a=so();if(null===a||!Wr(a)&&!Kr(a))return;if(Kr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=qa(e,e=>!Cu(e)&&wu(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=qa(e,e=>!Cu(e)&&wu(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=_u(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=qa(e,e=>!Cu(e)&&wu(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const s=a.extract();if(null===n){const e=new Set;return void s.forEach(t=>{const n=qa(t,e=>!Cu(e)&&wu(e));if(null!==n){const t=n.getKey();if(e.has(t))return;!function(e,t){const n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),o=r=>n.has(r.getKey())||qo(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),i=r.filter(o);if(i.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();const a=r.findIndex(o),s=r.findLastIndex(o),l=0===a,u=s===r.length-1;if(l)i.forEach(t=>e.insertBefore(t));else if(u)for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);else{for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);const t=r.slice(s+1);if(t.length>0){const n=_u(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});i[i.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,s),e.add(t)}})}const l=new Set,u=e=>{l.has(e.getKey())||(l.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==i&&e.setRel(i),void 0!==o&&e.setTitle(o))};if(1===s.length){const e=s[0],t=qa(e,wu);if(null!==t)return u(t)}!function(e){const t=so();if(!Wr(t))return e();const n=Be(t),r=n.isBackward(),o=Tu(n.anchor,r?-1:0),i=Tu(n.focus,r?0:-1),a=e();if(o||i){const e=so();if(Wr(e)){const t=e.clone();if(o){const e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+(r?1:0),"element")}if(i){const e=i.getParent();e&&t.focus.set(e.getKey(),i.getIndexWithinParent()+(r?0:1),"element")}Yi(Be(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=qa(t,wu);if(a){u(a);continue}if(qo(t)){if(!t.isInline())continue;if(wu(t)){if(!(Cu(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){u(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const s=t.getPreviousSibling();wu(s)&&s.is(e)?s.append(t):(e=_u(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Nu=/^\+?[0-9\s()-]{5,}$/;function Lu(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Nu.test(e)?`tel:${e}`:`https://${e}`}function Ru(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Mu=/[.,;\s]/;function Ou(e){return Mu.test(e)}function Pu(e){return Ou(e[e.length-1])}function zu(e){return Ou(e[0])}function Iu(e){let t=e.getPreviousSibling();return qo(t)&&(t=t.getLastDescendant()),null===t||mr(t)||Or(t)&&Pu(t.getTextContent())}function Du(e){let t=e.getNextSibling();return qo(t)&&(t=t.getFirstDescendant()),null===t||mr(t)||Or(t)&&zu(t.getTextContent())}function ju(e,t,n,r){if(!(e>0?Ou(n[e-1]):Iu(r[0])))return!1;return t<n.length?Ou(n[t]):Du(r[r.length-1])}function Fu(e,t,n){const r=[],o=[],i=[];let a=0,s=0;const l=[...e];for(;l.length>0;){const e=l[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),a+=u):c>=n?i.push(e):o.push(e),s+=u,l.shift()}return[a,r,o,i]}function Bu(e,t,n,r){const o=Su(r.url,r.attributes);if(1===e.length){let i,a=e[0];0===t?[i,a]=a.splitText(n):[,i,a]=a.splitText(t,n);const s=Mr(r.text);return s.setFormat(i.getFormat()),s.setDetail(i.getDetail()),s.setStyle(i.getStyle()),o.append(s),i.replace(o),a}if(e.length>1){const r=e[0];let i,a=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const s=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=a;if(i<n)if(a+o<=n)s.push(r);else{const[e,t]=r.splitText(n-i);s.push(e),l=t}a+=o}const u=so(),c=u?u.getNodes().find(Or):void 0,d=Mr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Wr(u)?d.select(u.anchor.offset,u.focus.offset):Kr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function $u(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Or(o)||!o.isSimpleText())return Hu(e),void n(null,e.getURL())}const i=e.getTextContent(),a=Ru(i,t);if(null===a||a.text!==i)return Hu(e),void n(null,e.getURL());if(!Iu(e)||!Du(e))return Hu(e),void n(null,e.getURL());const s=e.getURL();if(s!==a.url&&(e.setURL(a.url),n(a.url,s)),a.attributes){const t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),n(a.attributes.rel||null,t));const r=e.getTarget();r!==a.attributes.target&&(e.setTarget(a.attributes.target||null),n(a.attributes.target||null,r))}}function Hu(e){const t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}const Wu={changeHandlers:[],excludeParents:[],matchers:[]};function Uu(e,t=Wu){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Gs(e.registerNodeTransform(kr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Cu(t)&&!t.getIsUnlinked())$u(t,n,i);else if(!wu(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(zu(e.getTextContent())||!Cu(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Or(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e);!function(e,t,n){for(const t of e){const e=t.getParent();if(Cu(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=Ru(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(ju(s+e,s+t,o,r)){const[o,,l,u]=Fu(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Cu(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=Bu(l,s+e-o,s+t-o,i);r=d?[d,...u]:u,n(i.url,null),s=0}else s+=t;a=a.substring(t)}}(t,n,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();if(!Cu(r)||r.getIsUnlinked()){if(Cu(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!zu(a))return Hu(o),void n(null,o.getURL());if(s=a,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(s):/^\.[a-zA-Z0-9]{1,}/.test(s)){const r=o.getTextContent()+a,i=Ru(r,t);null!==i&&i.text===r&&(o.append(e),$u(o,t,n),n(null,o.getURL()))}}var s;!Cu(i)||i.getIsUnlinked()||Pu(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Hu(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(Eu,e=>{const t=so();if(null!==e||!Wr(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Cu(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function Ku(e){throw new Error(e)}function Gu(e){let t=1,n=e.getParent();for(;null!=n;){if(cc(n)){const e=n.getParent();if(vc(e)){t++,n=e.getParent();continue}Ku("A ListItemNode must have a ListNode for a parent.")}return t}return t}function Vu(e){let t=e.getParent();vc(t)||Ku("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),vc(n)&&(t=n);return t}function Yu(e){let t=[];const n=e.getChildren().filter(cc);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();vc(o)?t=t.concat(Yu(o)):t.push(r)}return t}function qu(e){return cc(e)&&vc(e.getFirstChild())}function Ju(e){return uc().append(e)}function Qu(e,t){return cc(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function Xu(e){const t=so();if(null!==t){let n=t.getNodes();if(Wr(t)){const r=t.getStartEndPoints();null===r&&Ku("insertList: anchor should be defined");const[o]=r,i=o.getNode(),a=i.getParent();if(ka(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=li();i.append(e),n=e.select().getNodes()}}else if(Qu(i,n)){const t=gc(e);if(ka(a)){i.replace(t);const e=uc();qo(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(cc(i)){const e=i.getParentOrThrow();Zu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(qo(o)&&o.isEmpty()&&!cc(o)&&!r.has(o.getKey())){ec(o,e);continue}let i=Pi(o)?o.getParent():cc(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(vc(i)){if(!r.has(t)){const n=gc(e);Zu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(ka(n)&&!r.has(t)){r.add(t),ec(i,e);break}i=n}}}}}function Zu(e,t){e.splice(e.getChildrenSize(),0,t)}function ec(e,t){if(vc(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=uc();let i;if(Zu(o,e.getChildren()),vc(n)&&t===n.getListType())n.append(o),vc(r)&&t===r.getListType()&&(Zu(n,r.getChildren()),r.remove()),i=n;else if(vc(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=gc(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=so();return Wr(a)&&(i.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),i.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),i}function tc(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&qu(n)&&qu(r)&&(tc(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function nc(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())cc(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),vc(r.getFirstChild())||n++)}function rc(e){const t=new Set;if(qu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(qu(r)&&qu(o)){const n=o.getFirstChild();if(vc(n)){n.append(e);const o=r.getFirstChild();if(vc(o)){Zu(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(qu(r)){const t=r.getFirstChild();if(vc(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(qu(o)){const t=o.getFirstChild();vc(t)&&t.append(e)}else if(vc(n)){const t=uc().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=gc(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(i),i.append(e),o?o.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function oc(e){if(qu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(vc(n?n.getParent():void 0)&&cc(n)&&vc(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const r=t.getListType(),o=uc(),i=gc(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=uc(),s=gc(r);a.append(s),Zu(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}function ic(e=!1){const t=so();if(!Wr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(cc(n)&&0===n.getChildrenSize())r=n;else if(Or(n)){const e=n.getParent();cc(e)&&e.getChildren().every(e=>Or(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=Vu(r),i=r.getParent();vc(i)||Ku("A ListItemNode must have a ListNode for a parent.");const a=i.getParent();let s;if(ka(a))s=li(),o.insertAfter(s);else{if(!cc(a))return!1;s=uc(),a.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const l=r.getNextSiblings();if(l.length>0){const t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(i,r):1,n=gc(i.getListType(),t);if(cc(s)){const e=uc();e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...l)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!cc(e)&&!vc(e))break;t=e}t.remove()}(r),!0}class ac extends Yo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();vc(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Yo,importDOM:{li:()=>({conversion:sc,priority:0})}})}constructor(e=1,t=void 0,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t,n){const r=t.getParent();!vc(r)||"check"!==r.getListType()||vc(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,n){const r=[],o=[],i=t.list,a=i?i.listitem:void 0;let s;i&&i.nested&&(s=i.nested.listitem);void 0!==a&&r.push(...Ws(a));if(i){const e=n.getParent(),t=vc(e)&&"check"===e.getListType(),a=n.getChecked();t&&!a||o.push(i.listitemUnchecked),t&&a||o.push(i.listitemChecked),t&&r.push(a?i.listitemChecked:i.listitemUnchecked)}if(void 0!==s){const e=Ws(s);n.getChildren().some(e=>vc(e))?r.push(...e):o.push(...e)}o.length>0&&Ks(e,...o);r.length>0&&Us(e,...r)}(t,n.theme,this);const r=e?e.__style:"",o=this.__style;r!==o&&(""===o?t.removeAttribute("style"):t.style.cssText=o),function(e,t,n){const r=Js(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Js(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){const r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);const r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){const n=e[t];if(qo(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(cc(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!vc(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=gc(n.getListType());let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(qo(e)||Ku("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(vc(n)||Ku("insertAfter: list node is not parent of list item node"),cc(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=gc(n.getListType());r.forEach(e=>o.append(e)),e.insertAfter(o,t)}return e}remove(e){const t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&qu(t)&&qu(n)&&(tc(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=uc().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=li();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=cc(r);if(1===n.getChildrenSize())if(o)n.remove(),r.select();else{n.insertBefore(t),n.remove();const r=e.anchor,o=e.focus,i=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(i,r.offset,"element"),"element"===o.type&&o.getNode().is(this)&&o.set(i,o.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const t=this.getWritable();return t.__value=e,t}getChecked(){const e=this.getLatest();let t;const n=this.getParent();return vc(n)&&(t=n.getListType()),"check"===t?Boolean(e.__checked):void 0}setChecked(e){const t=this.getWritable();return t.__checked=e,t}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;cc(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&Ku("Invalid indent value."),(e=Math.floor(e))>=0||Ku("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(rc(this),t++):(oc(this),t--);return this}canInsertAfter(e){return cc(e)}canReplaceWith(e){return cc(e)}canMergeWith(e){return cc(e)||ui(e)}extractWithChild(e,t){if(!Wr(t))return!1;const n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return gc("bullet")}canMergeWhenEmpty(){return!0}}function sc(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return lc(t);if(e.classList.contains("joplin-checkbox"))for(const t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return lc(t.children[0]);const t=e.getAttribute("aria-checked");return{node:uc("true"===t||"false"!==t&&void 0)}}function lc(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:uc(e.hasAttribute("checked"))}}function uc(e){return Ca(new ac(void 0,e))}function cc(e){return e instanceof ac}class dc extends Yo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();vc(t)&&e.getListType()===t.getListType()&&tc(e,t)}(e),nc(e)},extends:Yo,importDOM:{ol:()=>({conversion:hc,priority:0}),ul:()=>({conversion:hc,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=mc[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const t=this.getWritable();return t.__start=e,t}createDOM(e,t){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,fc(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(fc(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return Ra(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){const t=n[e];cc(t)||(r===n&&(r=[...n]),r[e]=uc().append(!qo(t)||vc(t)||t.isInline()?t:Mr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return cc(e)}}function fc(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Gu(n)-1,a=t%e.length,s=e[a],l=i[n.__tag];let u;const c=i.nested,d=i.checklist;if(void 0!==c&&c.list&&(u=c.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...Ws(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=Ws(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&Ks(e,...o),r.length>0&&Us(e,...r)}function pc(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(cc(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{vc(e)&&t.push(Ju(e))})}else t.push(Ju(r))}return t}function hc(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=gc("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Ra(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?gc("check"):gc("bullet"));return{after:pc,node:n}}const mc={ol:"number",ul:"bullet"};function gc(e="number",t=1){return Ca(new dc(e,t))}function vc(e){return e instanceof dc}const yc=wt("UPDATE_LIST_START_COMMAND"),bc=wt("INSERT_UNORDERED_LIST_COMMAND"),xc=wt("INSERT_ORDERED_LIST_COMMAND"),_c=wt("REMOVE_LIST_COMMAND");function wc(e,t){const n=Gs(e.registerCommand(xc,()=>(Xu("number"),!0),1),e.registerCommand(yc,e=>{const{listNodeKey:t,newStart:n}=e,r=Bi(t);return!!vc(r)&&("number"===r.getListType()&&(r.setStart(n),nc(r)),!0)},1),e.registerCommand(bc,()=>(Xu("bullet"),!0),1),e.registerCommand(_c,()=>(function(){const e=so();if(Wr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Qu(r,n))t.add(Vu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(Pi(r)){const e=gl(r,ac);null!=e&&t.add(Vu(e))}}for(const n of t){let t=n;const r=Yu(n);for(const n of r){const r=li().setTextStyle(e.style).setTextFormat(e.format);Zu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&As(e.anchor,zs(hs(r,"next"))),n.__key===e.focus.key&&As(e.focus,zs(hs(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(Mt,()=>ic(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(ac,e=>{const t=e.getFirstChild();if(t){if(Or(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=so();Wr(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(kr,e=>{const t=e.getParent();if(cc(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}));return n}function kc(e){const t=e=>{const t=e.getParent();if(vc(e.getFirstChild())||!vc(t))return;const n=qa(e,e=>cc(e)&&vc(e.getParent())&&cc(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(cc(n)){const r=n.getPreviousSibling();if(cc(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;vc(n);){const e=n.getLastChild();if(!cc(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(vc(o)){const n=Gu(o);n+1<Gu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(dc,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(vc(e))for(const r of e.getChildren())if(cc(r)){t(r);const e=r.getFirstChild();vc(e)&&n.push(e)}}})}const Sc=D.createContext(null);function Cc(){const e=D.useContext(Sc);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var Ec,Tc,Ac={exports:{}},Nc={};var Lc=(Tc||(Tc=1,Ac.exports=function(){if(Ec)return Nc;Ec=1;var e=C(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Nc.Fragment=n,Nc.jsx=a,Nc.jsxs=a,Nc}()),Ac.exports);const Rc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Mc=Rc?D.useLayoutEffect:D.useEffect,Oc={tag:ir};function Pc({initialConfig:e,children:t}){const n=D.useMemo(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:a}=e,s=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=pi({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update(()=>{const t=Gi();if(t.isEmpty()){const n=li();t.append(n);const r=Rc?document.activeElement:null;(null!==so()||null!==r&&r===e.getRootElement())&&n.select()}},Oc);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Oc);break}case"object":e.setEditorState(t,Oc);break;case"function":e.update(()=>{Gi().isEmpty()&&t(e)},Oc)}}(l,i),[l,s]},[]);return Mc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Lc.jsx(Sc.Provider,{value:n,children:t})}function zc(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,a=e._selection;if(o)return 1;if(!(Wr(i)&&Wr(a)&&a.isCollapsed()&&i.isCollapsed()))return 0;const s=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||ei(n)||o.push(n)}return o}(t,n,r);if(0===s.length)return 0;if(s.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(a.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Or(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!Or(u)||!Or(l)||u.__mode!==l.__mode)return 0;const c=u.__text,d=l.__text;if(c===d)return 0;const f=i.anchor,p=a.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,m=p.offset,g=d.length-c.length;return 1===g&&m===h-1?2:-1===g&&m===h+1?3:-1===g&&m===h?4:0}function Ic(e,t){let n=Date.now(),r=0,o=Date.now(),i=0,a=null;return(s,l,u,c,d,f)=>{const p=Date.now();if(f.has(cr)&&(o=n,i=r,a=s),f.has(or))return r=0,n=p,2;f.has(dr)&&a&&(n=o,r=i,s=a);const h=zc(s,l,c,d,e.isComposing()),m=(()=>{const o=null===u||u.editor===e,i=f.has("history-push");if(!i&&o&&f.has(ir))return 0;if(1===h)return 2;if(null===s)return 1;const a=l._selection;if(!(c.size>0||d.size>0))return null!==a?0:2;const m="number"==typeof t?t:t.peek();if(!1===i&&0!==h&&h===r&&p<n+m&&o)return 0;if(1===c.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Wr(i)&&Wr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!Or(r)||!Or(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(c)[0],s,l))return 0}return 1})();return n=p,r=h,m}}function Dc(e){e.undoStack=[],e.redoStack=[],e.current=null}function jc(e,t,n){const r=Ic(e,n),o=Gs(e.registerCommand(Ft,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(hn,!0)),0===r.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(Bt,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(mn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(hn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(fn,()=>(Dc(t),!1),ci),e.registerCommand(pn,()=>(Dc(t),e.dispatchCommand(hn,!1),e.dispatchCommand(mn,!1),!0),ci),e.registerUpdateListener(({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:a,tags:s})=>{const l=t.current,u=t.redoStack,c=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,a,s);if(1===f)0!==u.length&&(t.redoStack=[],e.dispatchCommand(hn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(mn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function Fc({delay:e,externalHistoryState:t}){const[n]=Cc();return function(e,t,n=1e3){const r=D.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);D.useEffect(()=>jc(e,r,n),[n,e,r])}(n,t,e),null}function Bc({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Cc();return D.useEffect(()=>{if(!n.hasNodes([dc,ac]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),D.useEffect(()=>Gs(wc(n,{restoreNumbering:t}),e?kc(n):()=>{}),[n,e,t]),function(e){D.useEffect(()=>wc(e),[e])}(n),null}function $c({maxIndent:e,$canIndent:t}){const[n]=Cc();return D.useEffect(()=>hu(n,e,t),[n,e,t]),null}function Hc(e,t){const n=Ri(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Uc.has(t.nodeName)){const n=Kc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ii&&t.insertAfter(hr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Wc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=qo(t)&&t.excludeFromCopy("html");let a=t;null!==r&&Or(t)&&(a=el(r,t,"clone"));const s=qo(a)?a.getChildren():[],l=xi(e,a.getType());let u;u=l&&void 0!==l.exportDOM?l.exportDOM(e,a):a.exportDOM(e);const{element:c,after:d}=u;if(!c)return!1;const f=document.createDocumentFragment();for(let n=0;n<s.length;n++){const i=s[n],a=Wc(e,i,f,r);!o&&qo(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Ra(c)||Oa(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(Oa(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Uc=new Set(["STYLE","SCRIPT"]);function Kc(e,t,n,r,o=new Map,i){let a=[];if(Uc.has(e.nodeName))return a;let s=null;const l=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),u=l?l(e):null;let c=null;if(null!==u){c=u.after;const t=u.node;if(s=Array.isArray(t)?t[t.length-1]:t,null!==s){for(const[,e]of o)if(s=e(s,i),!s)break;s&&a.push(...Array.isArray(t)?t:[s])}null!=u.forChild&&o.set(e.nodeName,u.forChild)}const d=e.childNodes;let f=[];const p=(null==s||!ka(s))&&(null!=s&&to(s)||r);for(let e=0;e<d.length;e++)f.push(...Kc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),za(e)&&(f=Gc(e,f,p?()=>{const e=new ii;return n.push(e),e}:li)),null==s?f.length>0?a=a.concat(f):za(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return Pa(e.nextSibling)&&Pa(e.previousSibling)}(e)&&(a=a.concat(hr())):qo(s)&&s.append(...f),a}function Gc(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(to(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&to(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Vc(e){throw new Error(e)}function Yc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Do(e[n]);Or(r)&&nl(r),t.push(r)}return t}(e.nodes);return qc(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return qc(n,Hc(n,e),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Wr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=so();if(Wr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Ir()]):n.insertText(r)}}}else t.insertRawText(a)}function qc(e,t,n){e.dispatchCommand(St,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Wr(e)&&e.isCollapsed()){let t=null;const n=Ts(e.anchor,"previous");if(n)if(os(n))t=n.origin;else{const e=xs(n,hs(Gi(),"next").getFlipped());for(const n of e){if(Or(n.origin)){t=n.origin;break}if(qo(n.origin)&&!n.origin.isInline())break}}if(t&&Or(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function Jc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=qo(n)&&n.excludeFromCopy("html");let a=n;null!==t&&Or(a)&&(a=el(t,a,"clone"));const s=qo(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Vc(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),qo(e)){const e=t.children;Array.isArray(e)||Vc(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(a);Or(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=Jc(e,t,i,l.children);!o&&qo(n)&&a&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let e=0;e<l.children.length;e++){const t=l.children[e];r.push(t)}return o}let Qc=null;async function Xc(e,t,n){if(null!==Qc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(Zc(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=Na(o);if(null===r||null===a)return!1;const s=i.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(i.createTextNode("#")),r.append(s);const l=new Range;return l.setStart(s,0),l.setEnd(s,1),a.removeAllRanges(),a.addRange(l),new Promise((t,r)=>{const a=e.registerCommand(un,r=>(xl(r,ClipboardEvent)&&(a(),null!==Qc&&(o.clearTimeout(Qc),Qc=null),t(Zc(e,r,n))),!0),4);Qc=o.setTimeout(()=>{a(),Qc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function Zc(e,t,n){if(void 0===n){const t=Na(e._window),r=so();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Si(e,o,i))return!1;n=td(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of ed)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}const ed=[["text/html",function(e,t=so()){return null==t&&Vc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Gi().getChildren();for(let o=0;o<r.length;o++)Wc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=so()){return null==t&&Vc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Gi().getChildren();for(let o=0;o<r.length;o++){Jc(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function td(e=so()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Da();for(const[r,o]of ed){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function nd(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const rd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,od=rd&&"documentMode"in document?document.documentMode:null,id=rd&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ad=!(!rd||!("InputEvent"in window)||od)&&"getTargetRanges"in new window.InputEvent("input"),sd=rd&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ld=rd&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ud=rd&&/^(?=.*Chrome).*/i.test(navigator.userAgent),cd=rd&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&id&&!ud,dd=wt("DRAG_DROP_PASTE_FILE");class fd extends Yo{static getType(){return"quote"}static clone(e){return new fd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Us(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:yd,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return pd().updateFromJSON(e)}insertNewAfter(e,t){const n=li(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=li();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function pd(){return Ca(new fd)}function hd(e){return e instanceof fd}class md extends Yo{__tag;static getType(){return"heading"}static clone(e){return new md(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){const t=this.getWritable();return this.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Us(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:vd,priority:0}),h2:e=>({conversion:vd,priority:0}),h3:e=>({conversion:vd,priority:0}),h4:e=>({conversion:vd,priority:0}),h5:e=>({conversion:vd,priority:0}),h6:e=>({conversion:vd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&gd(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>gd(e)?{conversion:e=>({node:bd("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return bd(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?li():bd(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=li();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?li():bd(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function gd(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function vd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=bd(t),null!==e.style&&(Wa(e,n),n.setFormat(e.style.textAlign))),{node:n}}function yd(e){const t=pd();return null!==e.style&&(t.setFormat(e.style.textAlign),Wa(e,t)),{node:t}}function bd(e="h1"){return Ca(new md(e))}function xd(e){return e instanceof md}function _d(e){let t=null;if(xl(e,DragEvent)?t=e.dataTransfer:xl(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function wd(e){return Xo(Wi(e))}function kd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Sd(e){const t=Gs(e.registerCommand(Ct,e=>{const t=so();return!!Kr(t)&&(t.clear(),!0)},ci),e.registerCommand(Lt,e=>{const t=so();return Wr(t)?(t.deleteCharacter(e),!0):!!Kr(t)&&(t.deleteNodes(),!0)},ci),e.registerCommand(It,e=>{const t=so();return!!Wr(t)&&(t.deleteWord(e),!0)},ci),e.registerCommand(Dt,e=>{const t=so();return!!Wr(t)&&(t.deleteLine(e),!0)},ci),e.registerCommand(Ot,t=>{const n=so();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)Yc(r,n,e);else if(Wr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},ci),e.registerCommand(zt,()=>{const e=so();return!!Wr(e)&&(e.removeText(),!0)},ci),e.registerCommand(jt,e=>{const t=so();return!!Wr(t)&&(t.formatText(e),!0)},ci),e.registerCommand(on,e=>{const t=so();if(!Wr(t)&&!Kr(t))return!1;const n=t.getNodes();for(const t of n){const n=qa(t,e=>qo(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},ci),e.registerCommand(Rt,e=>{const t=so();return!!Wr(t)&&(t.insertLineBreak(e),!0)},ci),e.registerCommand(Mt,()=>{const e=so();return!!Wr(e)&&(e.insertParagraph(),!0)},ci),e.registerCommand(en,()=>{const e=Ir(),t=so();return Wr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),vo([e]),!0},ci),e.registerCommand(tn,()=>_l(e=>{const t=e.getIndent();e.setIndent(t+1)}),ci),e.registerCommand(nn,()=>_l(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),ci),e.registerCommand(Gt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Wr(t)){const n=pa(t.focus,!0);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Vt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Wr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Gi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=pa(t.focus,!1);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Ut,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Zs(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Wr(t))return!1;if(ll(t,!0)){const n=e.shiftKey;return e.preventDefault(),cl(t,n,!0),!0}return!1},ci),e.registerCommand(Ht,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Zs(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Wr(t))return!1;const n=e.shiftKey;return!!ll(t,!1)&&(e.preventDefault(),cl(t,n,!1),!0)},ci),e.registerCommand(Jt,t=>{if(wd(t.target))return!1;const n=so();if(Wr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ei(n))return!1;const r=vl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(nn,void 0);if(ld&&"ko-KR"===navigator.language)return!1}else if(!Kr(n))return!1;return t.preventDefault(),e.dispatchCommand(Lt,!0)},ci),e.registerCommand(Xt,t=>{if(wd(t.target))return!1;const n=so();return!(!Wr(n)&&!Kr(n))&&(t.preventDefault(),e.dispatchCommand(Lt,!1))},ci),e.registerCommand(Yt,t=>{const n=so();if(!Wr(n))return!1;if(kd(n),null!==t){if((ld||sd||cd)&&ad)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Rt,!1)}return e.dispatchCommand(Mt,void 0)},ci),e.registerCommand(Qt,()=>!!Wr(so())&&(e.blur(),!0),ci),e.registerCommand(rn,t=>{const[,n]=_d(t);if(n.length>0){const r=nd(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Wi(o);if(null!==i){const e=ro();if(Or(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}Yi(Be(e))}e.dispatchCommand(dd,n)}return t.preventDefault(),!0}return!!Wr(so())},ci),e.registerCommand(an,e=>{const[t]=_d(e),n=so();return!(t&&!Wr(n))},ci),e.registerCommand(sn,e=>{const[t]=_d(e),n=so();if(t&&!Wr(n))return!1;const r=nd(e.clientX,e.clientY);if(null!==r){Xo(Wi(r.node))&&e.preventDefault()}return!0},ci),e.registerCommand(dn,()=>(function(e){const t=Gi();if(Wr(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Be(e),e}{const e=t.select(0,t.getChildrenSize());Yi(Be(e))}}(),!0),ci),e.registerCommand(un,t=>(Xc(e,xl(t,ClipboardEvent)?t:null),!0),ci),e.registerCommand(cn,t=>(async function(e,t){await Xc(t,xl(e,ClipboardEvent)?e:null),t.update(()=>{const e=so();Wr(e)?e.removeText():Kr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),ci),e.registerCommand(Pt,t=>{const[,n,r]=_d(t);if(n.length>0&&!r)return e.dispatchCommand(dd,n),!0;if(Ma(t.target)&&ki(t.target))return!1;return null!==so()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=so(),r=xl(e,InputEvent)||xl(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&Yc(r,n,t)},{tag:"paste"})}(t,e),!0)},ci),e.registerCommand(qt,e=>{const t=so();return Wr(t)&&kd(t),!1},ci),e.registerCommand(Zt,e=>{const t=so();return Wr(t)&&kd(t),!1},ci));return t}function Cd(e,t,n,r){D.useEffect(()=>{e.hasNodes([ku])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),D.useEffect(()=>Uu(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Ed({matchers:e,onChange:t,excludeParents:n}){const[r]=Cc();return Cd(r,e,t,n),null}const Td="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Ad(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Nd(){return function(e){const[t]=Cc(),n=D.useMemo(()=>e(t),[t,e]),[r,o]=D.useState(()=>n.initialValueFn()),i=D.useRef(r);return Td(()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t(e=>{i.current=e,o(e)})},[n,e]),r}(Ad)}const Ld={black:"#000",white:"#fff"},Rd="#e57373",Md="#ef5350",Od="#f44336",Pd="#d32f2f",zd="#c62828",Id="#f3e5f5",Dd="#ce93d8",jd="#ba68c8",Fd="#ab47bc",Bd="#9c27b0",$d="#7b1fa2",Hd="#e3f2fd",Wd="#90caf9",Ud="#42a5f5",Kd="#1976d2",Gd="#1565c0",Vd="#4fc3f7",Yd="#29b6f6",qd="#03a9f4",Jd="#0288d1",Qd="#01579b",Xd="#81c784",Zd="#66bb6a",ef="#4caf50",tf="#388e3c",nf="#2e7d32",rf="#1b5e20",of="#ffb74d",af="#ffa726",sf="#ff9800",lf="#f57c00",uf="#e65100",cf={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"};function df(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var ff=Object.freeze({__proto__:null,default:df}),pf="$$material";function hf(){return hf=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},hf.apply(null,arguments)}function mf(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var gf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?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=void 0!==e.speedy&&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(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),vf="-ms-",yf="-moz-",bf="-webkit-",xf="comm",_f="rule",wf="decl",kf="@keyframes",Sf=Math.abs,Cf=String.fromCharCode,Ef=Object.assign;function Tf(e){return e.trim()}function Af(e,t,n){return e.replace(t,n)}function Nf(e,t){return e.indexOf(t)}function Lf(e,t){return 0|e.charCodeAt(t)}function Rf(e,t,n){return e.slice(t,n)}function Mf(e){return e.length}function Of(e){return e.length}function Pf(e,t){return t.push(e),e}var zf=1,If=1,Df=0,jf=0,Ff=0,Bf="";function $f(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zf,column:If,length:a,return:""}}function Hf(e,t){return Ef($f("",null,null,"",null,null,0),e,{length:-e.length},t)}function Wf(){return Ff=jf>0?Lf(Bf,--jf):0,If--,10===Ff&&(If=1,zf--),Ff}function Uf(){return Ff=jf<Df?Lf(Bf,jf++):0,If++,10===Ff&&(If=1,zf++),Ff}function Kf(){return Lf(Bf,jf)}function Gf(){return jf}function Vf(e,t){return Rf(Bf,e,t)}function Yf(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 qf(e){return zf=If=1,Df=Mf(Bf=e),jf=0,[]}function Jf(e){return Bf="",e}function Qf(e){return Tf(Vf(jf-1,ep(91===e?e+2:40===e?e+1:e)))}function Xf(e){for(;(Ff=Kf())&&Ff<33;)Uf();return Yf(e)>2||Yf(Ff)>3?"":" "}function Zf(e,t){for(;--t&&Uf()&&!(Ff<48||Ff>102||Ff>57&&Ff<65||Ff>70&&Ff<97););return Vf(e,Gf()+(t<6&&32==Kf()&&32==Uf()))}function ep(e){for(;Uf();)switch(Ff){case e:return jf;case 34:case 39:34!==e&&39!==e&&ep(Ff);break;case 40:41===e&&ep(e);break;case 92:Uf()}return jf}function tp(e,t){for(;Uf()&&e+Ff!==57&&(e+Ff!==84||47!==Kf()););return"/*"+Vf(t,jf-1)+"*"+Cf(47===e?e:Uf())}function np(e){for(;!Yf(Kf());)Uf();return Vf(e,jf)}function rp(e){return Jf(op("",null,null,null,[""],e=qf(e),0,[0],e))}function op(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,_=i,w=r,k=b;g;)switch(h=y,y=Uf()){case 40:if(108!=h&&58==Lf(k,d-1)){-1!=Nf(k+=Af(Qf(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Qf(y);break;case 9:case 10:case 13:case 32:k+=Xf(h);break;case 92:k+=Zf(Gf()-1,7);continue;case 47:switch(Kf()){case 42:case 47:Pf(ap(tp(Uf(),Gf()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=Mf(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=Af(k,/\f/g,"")),p>0&&Mf(k)-d&&Pf(p>32?sp(k+";",r,n,d-1):sp(Af(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Pf(w=ip(k,t,n,u,c,o,s,b,x=[],_=[],d),i),123===y)if(0===c)op(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Lf(k,3)?100:f){case 100:case 108:case 109:case 115:op(e,w,w,r&&Pf(ip(e,w,w,0,0,o,s,b,o,x=[],d),_),o,_,d,s,r?x:_);break;default:op(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Mf(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Wf())continue;switch(k+=Cf(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Mf(k)-1)*v,v=1;break;case 64:45===Kf()&&(k+=Qf(Uf())),f=Kf(),c=d=Mf(b=k+=np(Gf())),y++;break;case 45:45===h&&2==Mf(k)&&(m=0)}}return i}function ip(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Of(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Rf(e,d+1,d=Sf(m=a[h])),b=e;v<p;++v)(b=Tf(m>0?f[v]+" "+y:Af(y,/&\f/g,f[v])))&&(l[g++]=b);return $f(e,t,n,0===o?_f:s,l,u,c)}function ap(e,t,n){return $f(e,t,n,xf,Cf(Ff),Rf(e,2,-2),0)}function sp(e,t,n,r){return $f(e,t,n,wf,Rf(e,0,r),Rf(e,r+1,-1),r)}function lp(e,t){for(var n="",r=Of(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case wf:return e.return=e.return||e.value;case xf:return"";case kf:return e.return=e.value+"{"+lp(e.children,r)+"}";case _f:e.value=e.props.join(",")}return Mf(n=lp(e.children,r))?e.return=e.value+"{"+n+"}":""}function cp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var dp=function(e,t,n){for(var r=0,o=0;r=o,o=Kf(),38===r&&12===o&&(t[n]=1),!Yf(o);)Uf();return Vf(e,jf)},fp=function(e,t){return Jf(function(e,t){var n=-1,r=44;do{switch(Yf(r)){case 0:38===r&&12===Kf()&&(t[n]=1),e[n]+=dp(jf-1,t,n);break;case 2:e[n]+=Qf(r);break;case 4:if(44===r){e[++n]=58===Kf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Cf(r)}}while(r=Uf());return e}(qf(e),t))},pp=new WeakMap,hp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pp.get(n))&&!r){pp.set(e,!0);for(var o=[],i=fp(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},mp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},gp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},vp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},yp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},bp=function(e,t,n){vp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),yp(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!vp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yp(e)))};function xp(e,t){switch(function(e,t){return 45^Lf(e,0)?(((t<<2^Lf(e,0))<<2^Lf(e,1))<<2^Lf(e,2))<<2^Lf(e,3):0}(e,t)){case 5103:return bf+"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 bf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bf+e+yf+e+vf+e+e;case 6828:case 4268:return bf+e+vf+e+e;case 6165:return bf+e+vf+"flex-"+e+e;case 5187:return bf+e+Af(e,/(\w+).+(:[^]+)/,bf+"box-$1$2"+vf+"flex-$1$2")+e;case 5443:return bf+e+vf+"flex-item-"+Af(e,/flex-|-self/,"")+e;case 4675:return bf+e+vf+"flex-line-pack"+Af(e,/align-content|flex-|-self/,"")+e;case 5548:return bf+e+vf+Af(e,"shrink","negative")+e;case 5292:return bf+e+vf+Af(e,"basis","preferred-size")+e;case 6060:return bf+"box-"+Af(e,"-grow","")+bf+e+vf+Af(e,"grow","positive")+e;case 4554:return bf+Af(e,/([^-])(transform)/g,"$1"+bf+"$2")+e;case 6187:return Af(Af(Af(e,/(zoom-|grab)/,bf+"$1"),/(image-set)/,bf+"$1"),e,"")+e;case 5495:case 3959:return Af(e,/(image-set\([^]*)/,bf+"$1$`$1");case 4968:return Af(Af(e,/(.+:)(flex-)?(.*)/,bf+"box-pack:$3"+vf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bf+e+e;case 4095:case 3583:case 4068:case 2532:return Af(e,/(.+)-inline(.+)/,bf+"$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(Mf(e)-1-t>6)switch(Lf(e,t+1)){case 109:if(45!==Lf(e,t+4))break;case 102:return Af(e,/(.+:)(.+)-([^]+)/,"$1"+bf+"$2-$3$1"+yf+(108==Lf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nf(e,"stretch")?xp(Af(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Lf(e,t+1))break;case 6444:switch(Lf(e,Mf(e)-3-(~Nf(e,"!important")&&10))){case 107:return Af(e,":",":"+bf)+e;case 101:return Af(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bf+(45===Lf(e,14)?"inline-":"")+"box$3$1"+bf+"$2$3$1"+vf+"$2box$3")+e}break;case 5936:switch(Lf(e,t+11)){case 114:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bf+e+vf+e+e}return e}var _p,wp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wf:e.return=xp(e.value,e.length);break;case kf:return lp([Hf(e,{value:Af(e.value,"@","@"+bf)})],r);case _f:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lp([Hf(e,{props:[Af(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lp([Hf(e,{props:[Af(t,/:(plac\w+)/,":"+bf+"input-$1")]}),Hf(e,{props:[Af(t,/:(plac\w+)/,":-moz-$1")]}),Hf(e,{props:[Af(t,/:(plac\w+)/,vf+"input-$1")]})],r)}return""})}}],kp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;_p=function(e){var t=e.match(kp);if(t)return t[t.length-1]};var Sp,Cp,Ep,Tp,Ap=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||wp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=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++)a[t[n]]=!0;s.push(e)});var l=[hp,mp];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(gp(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),bp);var u,c=[up,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==xf&&u.insert(e.value+"{}"))}],d=function(e){var t=Of(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,c));i=function(e,t,n,r){if(u=n,_p){var o=_p(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){lp(rp(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new gf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Np={exports:{}},Lp={};function Rp(){return Cp||(Cp=1,Np.exports=function(){if(Sp)return Lp;Sp=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return Lp.AsyncMode=l,Lp.ConcurrentMode=u,Lp.ContextConsumer=s,Lp.ContextProvider=a,Lp.Element=t,Lp.ForwardRef=c,Lp.Fragment=r,Lp.Lazy=h,Lp.Memo=p,Lp.Portal=n,Lp.Profiler=i,Lp.StrictMode=o,Lp.Suspense=d,Lp.isAsyncMode=function(e){return x(e)||b(e)===l},Lp.isConcurrentMode=x,Lp.isContextConsumer=function(e){return b(e)===s},Lp.isContextProvider=function(e){return b(e)===a},Lp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lp.isForwardRef=function(e){return b(e)===c},Lp.isFragment=function(e){return b(e)===r},Lp.isLazy=function(e){return b(e)===h},Lp.isMemo=function(e){return b(e)===p},Lp.isPortal=function(e){return b(e)===n},Lp.isProfiler=function(e){return b(e)===i},Lp.isStrictMode=function(e){return b(e)===o},Lp.isSuspense=function(e){return b(e)===d},Lp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Lp.typeOf=b,Lp}()),Np.exports}var Mp=function(){if(Tp)return Ep;Tp=1;var e=Rp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Ep=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},Ep}(),Op=m(Mp);function Pp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var zp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ip=function(e,t,n){zp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Dp={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},jp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Fp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Bp=/[A-Z]|^ms/g,$p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(e){return 45===e.charCodeAt(1)},Wp=function(e){return null!=e&&"boolean"!=typeof e},Up=cp(function(e){return Hp(e)?e:e.replace(Bp,"-$&").toLowerCase()}),Kp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($p,function(e,t,n){return eh={name:t,styles:n,next:eh},t})}return 1===Dp[e]||Hp(e)||"number"!=typeof t||0===t?t:t+"px"},Gp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Vp=["normal","none","initial","inherit","unset"],Yp=Kp,qp=/^-ms-/,Jp=/-(.)/g,Qp={};Kp=function(e,t){if("content"===e&&("string"!=typeof t||-1===Vp.indexOf(t)&&!Gp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Yp(e,t);return""===n||Hp(e)||-1===e.indexOf("-")||void 0!==Qp[e]||(Qp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(qp,"ms-").replace(Jp,function(e,t){return t.toUpperCase()})+"?")),n};var Xp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Zp(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(Xp);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return eh={name:o.name,styles:o.styles,next:eh},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)eh={name:a.name,styles:a.styles,next:eh},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zp(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Wp(s)&&(r+=Up(i)+":"+Kp(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Xp);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Zp(e,t,a);switch(i){case"animation":case"animationName":r+=Up(i)+":"+l+";";break;default:"undefined"===i&&console.error(Fp),r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Wp(a[u])&&(r+=Up(i)+":"+Kp(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=eh,l=n(e);return eh=s,Zp(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace($p,function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var eh,th=/label:\s*([^\s;{]+)\s*(;|$)/g;function nh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";eh=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=Zp(n,t,i);else{var a=i;void 0===a[0]&&console.error(jp),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Zp(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(jp),o+=l[s]}th.lastIndex=0;for(var u,c="";null!==(u=th.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:eh,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var rh=!!F.useInsertionEffect&&F.useInsertionEffect,oh=rh||function(e){return e()},ih=rh||D.useLayoutEffect,ah=D.createContext("undefined"!=typeof HTMLElement?Ap({key:"css"}):null);ah.displayName="EmotionCacheContext";var sh=ah.Provider,lh=function(e){return D.forwardRef(function(t,n){var r=D.useContext(ah);return e(t,r,n)})},uh=D.createContext({});uh.displayName="EmotionThemeContext";var ch={}.hasOwnProperty,dh=function(e){var t=e.split(".");return t[t.length-1]},fh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?dh(t[1]):void 0},ph=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),hh=function(e){return e.replace(/\$/g,"-")},mh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",vh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)ch.call(t,r)&&(n[r]=t[r]);if(n[mh]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=fh(t[n]);if(r){if(ph.has(r))break;if(/^[A-Z]/.test(r))return hh(r)}}}((new Error).stack);o&&(n[gh]=o)}return n},yh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zp(t,n,r),oh(function(){return Ip(t,n,r)}),null},bh=lh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[mh],i=[r],a="";"string"==typeof e.className?a=Pp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=nh(i,void 0,D.useContext(uh));if(-1===s.name.indexOf("-")){var l=e[gh];l&&(s=nh([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)ch.call(e,c)&&"css"!==c&&c!==mh&&c!==gh&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),D.createElement(D.Fragment,null,D.createElement(yh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,u))});bh.displayName="EmotionCssPropInternal";var xh,_h,wh=bh,kh=function(e,t){var n=arguments;if(null==t||!ch.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=wh,o[1]=vh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return D.createElement.apply(null,o)};xh=kh||(kh={}),_h||(_h=xh.JSX||(xh.JSX={}));var Sh=!1,Ch=lh(function(e,t){!Sh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Sh=!0);var n=nh([e.styles],void 0,D.useContext(uh)),r=D.useRef();return ih(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),ih(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ip(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nh(t)}function Th(){var e=Eh.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_"}}}Ch.displayName="EmotionGlobal";var Ah=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Nh=function(e){var t=e.cache,n=e.serializedArr;return oh(function(){for(var e=0;e<n.length;e++)Ip(t,n[e],!1)}),null},Lh=lh(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=nh(o,t.registered);return r.push(a),zp(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Pp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Ah(r))},theme:D.useContext(uh)},a=e.children(i);return n=!0,D.createElement(D.Fragment,null,D.createElement(Nh,{cache:t,serializedArr:r}),a)});Lh.displayName="EmotionClassNames";var Rh="undefined"!=typeof document,Mh="undefined"!=typeof jest||"undefined"!=typeof vi;if(Rh&&!Mh){var Oh="undefined"!=typeof globalThis?globalThis:Rh?window:global,Ph="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Oh[Ph]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Oh[Ph]=!0}var zh=/^((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)-.*))$/,Ih=cp(function(e){return zh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Dh=function(e){return"theme"!==e},jh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ih:Dh},Fh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Bh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zp(t,n,r),oh(function(){return Ip(t,n,r)}),null},Hh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Fh(t,n,i),l=s||jh(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];void 0===f[0]&&console.error(Bh),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Bh),d.push(c[h],f[h])}var m=lh(function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(uh)}"string"==typeof e.className?i=Pp(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=nh(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?jh(r):l,g={};for(var v in e)u&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement($h,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,hf({},n,r,{shouldForwardProp:Fh(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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"].forEach(function(e){Hh[e]=Hh(e)});var Wh,Uh,Kh,Gh,Vh,Yh={exports:{}};function qh(){if(Uh)return Wh;Uh=1;return Wh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Jh(){if(Gh)return Kh;Gh=1;var e=qh();function t(){}function n(){}return n.resetWarningCache=t,Kh=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Qh(){return Vh||(Vh=1,Yh.exports=Jh()()),Yh.exports}var Xh=m(Qh());const Zh=new Map;function em(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Lc.jsx(Ch,{styles:r})}
|
|
16
|
+
*/function P(){if(A)return _;A=1;var e=C(),t=O();function n(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 r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new f(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){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,m);p[t]=new f(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(h,m);p[t]=new f(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(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var D,j=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function $(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ae(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=j({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,ke=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Te(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Ne(){}var Le=!1;function Re(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ae(e,t,n)}finally{Le=!1,(null!==ke||null!==Se)&&(Ne(),Te())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Oe=!1}function Ie(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var ze=!1,De=null,je=!1,Fe=null,Be={onError:function(e){ze=!0,De=e}};function $e(e,t,n,r,o,i,a,s,l){ze=!1,De=null,Ie.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ue(i),e;if(a===o)return Ue(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Qe=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Nt=null,Lt=null,Rt=new Map,Mt=new Map,Ot=[],Pt="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 It(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function zt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Et=!1,null!==At&&jt(At)&&(At=null),null!==Nt&&jt(Nt)&&(Nt=null),null!==Lt&&jt(Lt)&&(Lt=null),Rt.forEach(Ft),Mt.forEach(Ft)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Nt&&$t(Nt,e),null!==Lt&&$t(Lt,e),Rt.forEach(t),Mt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Dt(n),null===n.blockedOn&&Ot.shift()}var Wt=v.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Vt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=zt(At,e,t,n,r,o),!0;case"dragenter":return Nt=zt(Nt,e,t,n,r,o),!0;case"mouseover":return Lt=zt(Lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,zt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,zt(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&_t(i),null===(i=qt(e,t,n,r))&&Ur(e,t,r,Vt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Vt=null;function qt(e,t,n,r){if(Vt=null,null!==(e=bo(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(j({},un,{data:0})),_n={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return Sn}var En=j({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(En),An=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(Rn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,In=null;s&&"documentMode"in document&&(In=document.documentMode);var zn=s&&"TextEvent"in window&&!In,Dn=s&&(!Pn||In&&8<In&&11>=In),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Vn(e){jr(e,0)}function qn(e){if(V(_o(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Xn;if(s){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Yn)){var t=[];Kn(t,Yn,e,_e(e)),Re(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}s&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Cr("animationend"),Tr=Cr("animationiteration"),Ar=Cr("animationstart"),Nr=Cr("transitionend"),Lr=new Map,Rr="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 Mr(e,t){Lr.set(e,t),i(t,[e])}for(var Or=0;Or<Rr.length;Or++){var Pr=Rr[Or];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Tr,"onAnimationIteration"),Mr(Ar,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Nr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Dr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if($e.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=De;ze=!1,De=null,je||(je=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=_e(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case Tr:case Ar:l=vn;break;case Nr:l=Ln;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push(Kr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Yr(p))h++;for(p=0,m=f;m;m=Yr(m))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==l&&Vr(a,s,l,c,!1),null!==u&&null!==d&&Vr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Un(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=r?_o(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(v=Gr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$n(n))&&(b.data=y))),(y=zn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}jr(a,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Me(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Me(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Me(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Jr,"")}function Xr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var ko=[],So=-1;function Co(e){return{current:e}}function Eo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function To(e,t){So++,ko[So]=e.current,e.current=t}var Ao={},No=Co(Ao),Lo=Co(!1),Ro=Ao;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=(e=e.childContextTypes)}function Po(){Eo(Lo),Eo(No)}function Io(e,t,r){if(No.current!==Ao)throw Error(n(168));To(No,t),To(Lo,r)}function zo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,U(e)||"Unknown",i));return j({},r,o)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Ro=No.current,To(No,e),To(Lo,Lo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,Eo(Lo),Eo(No),To(No,e)):Eo(Lo),To(Lo,r)}var Fo=null,Bo=!1,$o=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!$o&&null!==Fo){$o=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ye(Ze,Wo),t}finally{bt=t,$o=!1}}return null}var Uo=[],Ko=0,Go=null,Yo=0,Vo=[],qo=0,Jo=null,Qo=1,Xo="";function Zo(e,t){Uo[Ko++]=Yo,Uo[Ko++]=Go,Go=e,Yo=t}function ei(e,t,n){Vo[qo++]=Qo,Vo[qo++]=Xo,Vo[qo++]=Jo,Jo=e;var r=Qo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Qo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Uo[--Ko],Uo[Ko]=null,Yo=Uo[--Ko],Uo[Ko]=null;for(;e===Jo;)Jo=Vo[--qo],Vo[qo]=null,Xo=Vo[--qo],Vo[qo]=null,Qo=Vo[--qo],Vo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ru(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Qo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ru(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(n(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&bi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case b:return(t=ju(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(t))return(t=Iu(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||z(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ii&&Zo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,m),u}function g(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ii&&Zo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ii&&Zo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ii&&Zo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&bi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=vi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=Iu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Pu(a.type,a.key,a.props,null,n.mode,l)).ref=vi(n,o,a),l.return=n,n=l)}return s(n);case b:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=ju(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return m(n,o,a,l);if(z(a))return g(n,o,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Du(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var _i=xi(!0),wi=xi(!1),ki=Co(null),Si=null,Ci=null,Ei=null;function Ti(){Ei=Ci=Si=null}function Ai(e){var t=ki.current;Eo(ki),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Li(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(n(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Mi=null;function Oi(e){null===Mi?Mi=[e]:Mi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var zi=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(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 Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:zi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);zl|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ki={},Gi=Co(Ki),Yi=Co(Ki),Vi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Ji(e,t){switch(To(Vi,t),To(Yi,e),To(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Gi),To(Gi,t)}function Qi(){Eo(Gi),Eo(Yi),Eo(Vi)}function Xi(e){qi(Vi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Yi,e),To(Gi,n))}function Zi(e){Yi.current===e&&(Eo(Gi),Eo(Yi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,sa.lanes|=d,zl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,zl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Sa(e,t){var r=sa,o=ba(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,za(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ra(9,Ea.bind(null,r,o,i,t),void 0,null),null===Nl)throw Error(n(349));30&aa||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Na(e)}function Ta(e,t,n){return n(function(){Aa(t)&&Na(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=Ii(e,1);null!==t&&nu(t,e,1,-1)}function La(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Va.bind(null,sa,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Oa(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}sa.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Ia(e,t){return Oa(8390656,8,e,t)}function za(e,t){return Pa(2048,8,e,t)}function Da(e,t){return Pa(4,2,e,t)}function ja(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function $a(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,zl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ka(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Ya(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ja(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Va(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ja(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ja(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Ri,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ri,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:La,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Ka.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Nl)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ia(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Nl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:_a,useRef:Ma,useState:function(){return _a(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ma,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=Oo(t)?Ro:No.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=Oo(t)?Ro:No.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var ys=v.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?wi(t,null,n,r):_i(t,e.child,n,r)}function _s(e,t,n,r,o){n=n.render;var i=t.ref;return Li(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Ml),Ml|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Ml),Ml|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Ml),Ml|=r;return xs(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Oo(n)?Ro:No.current;return i=Mo(t,i),Li(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ts(e,t,n,r,o){if(Oo(n)){var i=!0;Do(t)}else i=!1;if(Li(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Mo(t,u=Oo(n)?Ro:No.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),zi=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Lo.current||zi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=zi||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Mo(t,l=Oo(n)?Ro:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),zi=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Lo.current||zi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=zi||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,i,o)}function As(e,t,n,r,o,i){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&jo(t,n,!1),Us(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Ji(e,t.containerInfo)}function Ls(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Rs,Ms,Os,Ps,Is={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=zu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(r),t.memoizedState=Is,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=cs(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=zu({mode:"visible",children:o.children},i,0,null),(a=Iu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&_i(t,e.child,null,s),t.child.memoizedState=zs(s),t.memoizedState=Is,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=cs(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(o=Nl)){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}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ii(e,i),nu(o,e,i,-1))}return mu(),Fs(e,t,s,o=cs(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Vo[qo++]=Qo,Vo[qo++]=Xo,Vo[qo++]=Jo,Qo=e.id,Xo=e.overflow,Jo=t),t=js(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Ou(o,s):(s=Iu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?zs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Is,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),zl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Oo(t.type)&&Po(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Eo(Lo),Eo(No),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ms(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Vi.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gs(t),null}if(e=qi(Gi.current),fi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[po]=t,i[ho]=s,e=!!(1&t.mode),r){case"dialog":Fr("cancel",i),Fr("close",i);break;case"iframe":case"object":case"embed":Fr("load",i);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Fr(Ir[a],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":Q(i,s),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",i);break;case"textarea":ie(i,s),Fr("invalid",i)}for(var l in ye(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",i)}switch(r){case"input":Y(i),ee(i,s,!0);break;case"textarea":Y(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Zr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=i,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),a=i;break;case"iframe":case"object":case"embed":Fr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Fr(Ir[a],e);a=i;break;case"source":Fr("error",e),a=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=i;break;case"details":Fr("toggle",e),a=i;break;case"input":Q(e,i),a=J(e,i),Fr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fr("invalid",e)}for(s in ye(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":Y(e),ee(e,i,!1);break;case"textarea":Y(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+K(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Vi.current),qi(Gi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Gs(t),null;case 13:if(Eo(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,s=!1;else if(s=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),s=!1}else null!==ai&&(au(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Pl&&(Pl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Ms(e,t),null===e&&Hr(t.stateNode.containerInfo),Gs(t),null;case 10:return Ai(t.type._context),Gs(t),null;case 19:if(Eo(ea),null===(s=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ks(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ks(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(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=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Gs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ea.current,To(ea,i?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Vs(e,t){switch(ni(t),t.tag){case 1:return Oo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Lo),Eo(No),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Gi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),r=oe(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Js||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Js&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fl(e,t,n),Js=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Su(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(l){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Qe())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Js=(c=Js)||d,ml(t,e),Js=c):ml(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(o,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Xs=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&o&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Js;s=qs;var u=Js;if(qs=a,(Js=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?wl(o):null!==l?(l.return=a,Xs=l):wl(o);for(;null!==i;)Xs=i,bl(i),i=i.sibling;Xs=o,qs=s,Js=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):xl(e)}}function xl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Js)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(n(163))}Js||512&t.flags&&ol(t)}catch(e){Su(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function _l(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Su(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,Cl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,Tl=v.ReactCurrentBatchConfig,Al=0,Nl=null,Ll=null,Rl=0,Ml=0,Ol=Co(0),Pl=0,Il=null,zl=0,Dl=0,jl=0,Fl=null,Bl=null,$l=0,Hl=1/0,Wl=null,Ul=!1,Kl=null,Gl=null,Yl=!1,Vl=null,ql=0,Jl=0,Ql=null,Xl=-1,Zl=0;function eu(){return 6&Al?Qe():-1!==Xl?Xl:Xl=Qe()}function tu(e){return 1&e.mode?2&Al&&0!==Rl?Rl&-Rl:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nu(e,t,r,o){if(50<Jl)throw Jl=0,Ql=null,Error(n(185));vt(e,r,o),2&Al&&e===Nl||(e===Nl&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Rl)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Hl=Qe()+500,Bo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Rl:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),ao(function(){!(6&Al)&&Wo()}),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&Al)throw Error(n(327));var r=e.callbackNode;if(wu()&&e.callbackNode!==r)return null;var o=ft(e,e===Nl?Rl:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=gu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Nl===e&&Rl===t||(Wl=null,Hl=Qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Ll?t=0:(Nl=null,Rl=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=Il,fu(e,0),su(e,o),ru(e,Qe()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Il,fu(e,0),su(e,o),ru(e,Qe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,Wl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=$l+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),t);break}_u(e,Bl,Wl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),o);break}_u(e,Bl,Wl);break;default:throw Error(n(329))}}}return ru(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~jl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(n(327));wu();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=Il,fu(e,0),su(e,t),ru(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Qe()+500,Bo&&Wo())}}function cu(e){null!==Vl&&0===Vl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Al=t))&&Wo()}}function du(){Ml=Ol.current,Eo(Ol)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Qi(),Eo(Lo),Eo(No),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Nl=e,Ll=e=Ou(e.current,null),Rl=Ml=t,Pl=0,Il=null,jl=Dl=zl=0,Bl=Fl=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(Ti(),oa.current=Xa,ca){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===r||null===r.return){Pl=1,Il=t,Ll=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Rl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function mu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Nl||!(268435455&zl)&&!(268435455&Dl)||su(Nl,Rl)}function gu(e,t){var r=Al;Al|=2;var o=hu();for(Nl===e&&Rl===t||(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Ll)throw Error(n(261));return Nl=null,Rl=0,Pl}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!qe();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xu(e):Ll=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Pl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Ml)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=bt,i=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,r,o){do{wu()}while(null!==Vl);if(6&Al)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Ll=Nl=null,Rl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Yl||(Yl=!0,Nu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,yl(r),Je(),Al=l,bt=s,Tl.transition=a}else e.current=r;if(Yl&&(Yl=!1,Vl=e,ql=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ru(e,Qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Kl,Kl=null,e;!!(1&ql)&&0!==e.tag&&wu(),a=e.pendingLanes,1&a?e===Ql?Jl++:(Jl=0,Ql=e):Jl=0,Wo()}(e,t,r,o)}finally{Tl.transition=i,bt=o}return null}function wu(){if(null!==Vl){var e=xt(ql),t=Tl.transition,r=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Vl)var o=!1;else{if(e=Vl,Vl=null,ql=0,6&Al)throw Error(n(331));var i=Al;for(Al|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(il(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Xs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Xs=_;break e}Xs=l.return}}if(Al=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{bt=r,Tl.transition=t}}return!1}function ku(e,t,n){e=Bi(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Bi(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Rl&n)===n&&(4===Pl||3===Pl&&(130023424&Rl)===Rl&&500>Qe()-$l?fu(e,0):jl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Ii(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Eu(e,r)}function Nu(e,t){return Ye(e,t)}function Lu(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 Ru(e,t,n,r){return new Lu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Mu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Iu(r.children,i,a,t);case w:s=8,i|=8;break;case k:return(e=Ru(12,r,t,2|i)).elementType=k,e.lanes=a,e;case N:return(e=Ru(13,r,t,i)).elementType=N,e.lanes=a,e;case L:return(e=Ru(19,r,t,i)).elementType=L,e.lanes=a,e;case P:return zu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case T:s=11;break e;case R:s=14;break e;case M:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ru(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Ru(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ru(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function $u(e){if(!e)return Ao;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Oo(r))return zo(e,r,t)}return t}function Hu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=$u(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),$i(e,o,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lo.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(To(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=Mo(t,No.current);Li(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(o)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=As(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xs(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Ts(null,t,o,e,r);break e;case 11:t=_s(null,t,o,e,r);break e;case 14:t=ws(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ts(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Ns(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ls(e,t,o,r,i=us(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Us(e,t,r);break e}xs(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_i(t,null,o,r):xs(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,_s(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,To(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Lo.current){t=Us(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Fi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ni(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ni(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Li(t,r),o=o(i=Ri(i)),t.flags|=1,xs(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),ws(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Li(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Hs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Uu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(a);i.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu(function(){Wu(t,l,n,r)}),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Wu(null,e,null,null)}),t[mo]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Dt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Al)&&(Hl=Qe()+500,Wo()))}break;case 13:cu(function(){var t=Ii(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Gu(e,1)}},wt=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)nu(t,e,134217728,eu());Gu(e,134217728)}},kt=function(e){if(13===e.tag){var t=tu(e),n=Ii(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));V(o),Z(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ae=uu,Ne=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(e){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,_.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_.createRoot=function(e,t){if(!Ju(e))throw Error(n(299));var r=!1,o="",i=Yu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Vu(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},_.flushSync=function(e){return cu(e)},_.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!0,r)},_.hydrateRoot=function(e,t,r){if(!Ju(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Yu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Hr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},_.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!1,r)},_.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},_.unstable_batchedUpdates=uu,_.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function I(){if(N)return x.exports;return N=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),x.exports=P(),x.exports}var z=function(){if(L)return b;L=1;var e=I();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}();var D=C(),j=m(D),F=f({__proto__:null,default:j},[D]);const B=D.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,printingStatus:null,showMediaLibrary:void 0,interactionState:void 0});function $(e){throw new Error(e)}const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,W=H&&"documentMode"in document?document.documentMode:null,U=H&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),K=H&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),G=!(!H||!("InputEvent"in window)||W)&&"getTargetRanges"in new window.InputEvent("input"),Y=H&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),V=H&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,q=H&&/Android/.test(navigator.userAgent),J=H&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Q=H&&q&&J,X=H&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&U&&!J,Z=0,ee=1,te=2,ne=1,re=2,oe=3,ie=4,ae=5,se=6,le=Y||V||X?" ":"",ue="\n\n",ce=K?" ":le,de={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},fe={directionless:1,unmergeable:2},pe={center:2,end:6,justify:4,left:1,right:3,start:5},he={[re]:"center",[se]:"end",[ie]:"justify",[ne]:"left",[oe]:"right",[ae]:"start"},me={normal:0,segmented:2,token:1},ge={[Z]:"normal",[te]:"segmented",[ee]:"token"},ve="$config";function ye(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(qo(a)&&ye(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let be=!1,xe=0;function _e(e){xe=e.timeStamp}function we(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==Ui(e,n)}function ke(e,t,n){const r=Ra(Sa(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&ra(t,a,o,i,!1)}function Se(e,t,n){if(Wr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Mi(t)&&n.isAttached()}function Ce(e,t,n,r){for(let o=e;o&&!Ga(o);o=ba(o)){const e=Ui(o,t);if(void 0!==e){const t=Hi(e,n);if(t)return Xo(t)||!Oa(o)?void 0:[o,t]}else if(o===r)return[r,qi(n)]}}function Ee(e,t,n){be=!0;const r=performance.now()-xe>100;try{Ko(e,()=>{const o=so()||function(e){return e.getEditorState().read(()=>{const e=so();return null!==e?e.clone():null})}(e),i=new Map,a=e.getRootElement(),s=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Ce(p,e,s,a);if(!h)continue;const[m,g]=h;if("characterData"===f)r&&Or(g)&&Mi(p)&&Se(o,p,g)&&ke(p,g,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=Wi(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!we(r,i,e)){if(K){const e=(Oa(r)?r.innerText:null)||r.nodeValue;e&&(c+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(we(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(m,g)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||we(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Ji(o),K&&ga(e)&&o.insertRawText(c))})}finally{be=!1}}function Te(e){const t=e._observer;if(null!==t){Ee(e,t.takeRecords(),t)}}function Ae(e){!function(e){0===xe&&Sa(e).addEventListener("textInput",_e,!0)}(e),e._observer=new MutationObserver((t,n)=>{Ee(e,t,n)})}function Ne(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ja(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Le{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,a=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&a!==o&&$(`NodeState: size != computedSize (${String(o)} != ${String(a)})`);for(const e of r.keys())i.has(e.key)||$(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=a}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Oe(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Le(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Oe(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function Re(e){return e.__state?e.__state.sharedNodeState:_i(Fa(),e.getType()).sharedNodeState}function Me(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Re(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&function(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Le(t,Re(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Oe(e){if(e)for(const t in e)return e}function Pe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function Ie(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function ze(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function De(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,a=t.__format,s=t.__style,l=e.__state,u=t.__state;return(null===n||n===i)&&(null===r||r===a)&&(null===o||o===s)&&(null===e.__state||l===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&Pe(n,e,t)||t&&Pe(n,t,e)||e&&Ie(n,e,t)||t&&Ie(n,t,e))}(l,u))}function je(e,t){const n=e.mergeWithSibling(t),r=Ro()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Fe(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Or(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(De(t,r)){r=je(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Or(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(De(r,n)){r=je(r,n);break}break}n.remove()}}else r.remove()}function Be(e){return $e(e.anchor),$e(e.focus),e}function $e(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),Or(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!qo(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let He,We,Ue,Ke,Ge,Ye,Ve,qe,Je,Qe,Xe="",Ze=null,et=null,tt=!1,nt=!1;function rt(e,t){const n=Ve.get(e);if(null!==t){const n=_t(e);n.parentNode===t&&t.removeChild(n)}if(qe.has(e)||We._keyToDOMMap.delete(e),qo(n)){const e=mt(n,Ve);ot(e,0,e.length-1,null)}void 0!==n&&fa(Qe,Ue,Ke,n,"destroyed")}function ot(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&rt(t,r)}}function it(e,t){e.setProperty("text-align",t)}const at="40px";function st(e,t){const n=He.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(We._rootElement||e).getPropertyValue("--lexical-indent-base-value")||at;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function lt(e,t){const n=e.style;0===t?it(n,""):1===t?it(n,"left"):2===t?it(n,"center"):3===t?it(n,"right"):4===t?it(n,"justify"):5===t?it(n,"start"):6===t&&it(n,"end")}function ut(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ei(e))return null;const n=e.getParentOrThrow();return ei(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ct(e,t){const n=qe.get(e);void 0===n&&$("createNode: node does not exist in nodeMap");const r=n.createDOM(He,We);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,We),Or(n)?r.setAttribute("data-lexical-text","true"):Xo(n)&&r.setAttribute("data-lexical-decorator","true"),qo(n)){const e=n.__indent,t=n.__size;if(ut(r,n),0!==e&&st(r,e),0!==t){const e=t-1;dt(mt(n,qe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&<(r,o),n.isInline()||pt(null,n,r)}else{const t=n.getTextContent();if(Xo(n)){const t=n.decorate(We,He);null!==t&&vt(e,t),r.contentEditable="false"}Xe+=t}return null!==t&&t.insertChild(r),Object.freeze(n),fa(Qe,Ue,Ke,n,"created"),r}function dt(e,t,n,r,o){const i=Xe;Xe="";let a=n;for(;a<=r;++a){ct(e[a],o);const t=qe.get(e[a]);null!==t&&Or(t)?null===Ze&&(Ze=t.getFormat(),et=t.getStyle()):qo(t)&&a<r&&!t.isInline()&&(Xe+=ue)}o.element.__lexicalTextContent=Xe,Xe=i+Xe}function ft(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return mr(e)?"line-break":Xo(e)&&e.isInline()?"decorator":null}return"empty"}return null}function pt(e,t,n){const r=ft(e,Ve),o=ft(t,qe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function ht(e,t,n){var r;Ze=null,et=null,function(e,t,n){const r=Xe,o=e.__size,i=t.__size;Xe="";const a=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)gt(n,a);else{const e=_t(n),t=ct(r,null);try{a.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}rt(n,null)}const o=qe.get(r);Or(o)&&null===Ze&&(Ze=o.getFormat(),et=o.getStyle())}else{const r=mt(e,Ve),s=mt(t,qe);if(r.length!==o&&$("$reconcileChildren: prevChildren.length !== prevChildrenSize"),s.length!==i&&$("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&dt(s,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;ot(r,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(e,t,n,r,o,i){const a=r-1,s=o-1;let l,u,c=i.getFirstChild(),d=0,f=0;for(;d<=a&&f<=s;){const e=t[d],r=n[f];if(e===r)c=yt(gt(r,i.element)),d++,f++;else{if(void 0===u&&(u=bt(n,f)),void 0===l)l=bt(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=yt(_t(e)),rt(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=ya(We,r);e!==c&&i.withBefore(c).insertChild(e),c=yt(gt(r,i.element)),d++,f++}else ct(r,i.withBefore(c)),f++}const o=qe.get(r);null!==o&&Or(o)?null===Ze&&(Ze=o.getFormat(),et=o.getStyle()):qo(o)&&f<=s&&!o.isInline()&&(Xe+=ue)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:We.getElementByKey(e);dt(n,0,f,s,i.withBefore(t))}else h&&!p&&ot(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=Xe,Xe=r+Xe}(e,t,t.getDOMSlot(n)),r=t,null==Ze||Ze===r.__textFormat||nt||r.setTextFormat(Ze),function(e){null==et||et===e.__textStyle||nt||e.setTextStyle(et)}(t)}function mt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&$("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function gt(e,t){const n=Ve.get(e);let r=qe.get(e);void 0!==n&&void 0!==r||$("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=tt||Ye.has(e)||Ge.has(e),i=ya(We,e);if(n===r&&!o){let e;if(qo(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return Xe+=e,i}if(n!==r&&o&&fa(Qe,Ue,Ke,r,"updated"),r.updateDOM(n,i,He)){const n=ct(e,null);return null===t&&$("reconcileNode: parentDOM is null"),t.replaceChild(n,i),rt(e,null),n}if(qo(n)){qo(r)||$(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(tt||t!==n.__indent)&&st(i,t);const a=r.__format;if((tt||a!==n.__format)&<(i,a),o)ht(n,r,i),ei(r)||r.isInline()||pt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),Xe+=t}if((tt||r.__dir!==n.__dir)&&(ut(i,r),ei(r)&&!tt))for(const e of r.getChildren())if(qo(e)){ut(ya(We,e.getKey()),e)}}else{const t=r.getTextContent();if(Xo(r)){const t=r.decorate(We,He);null!==t&&vt(e,t)}Xe+=t}if(!nt&&ei(r)&&r.__cachedText!==Xe){const e=r.getWritable();e.__cachedText=Xe,r=e}return Object.freeze(r),i}function vt(e,t){let n=We._pendingDecorators;const r=We._decorators;if(null===n){if(r[e]===t)return;n=Gi(We)}n[e]=t}function yt(e){let t=e.nextSibling;return null!==t&&t===We._blockCursorElement&&(t=t.nextSibling),t}function bt(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function xt(e,t,n,r,o,i){Xe="",tt=2===r,We=n,He=n._config,Ue=n._nodes,Ke=We._listeners.mutation,Ge=o,Ye=i,Ve=e._nodeMap,qe=t._nodeMap,nt=t._readOnly,Je=new Map(n._keyToDOMMap);const a=new Map;return Qe=a,gt("root",null),We=void 0,Ue=void 0,Ge=void 0,Ye=void 0,Ve=void 0,qe=void 0,He=void 0,Je=void 0,Qe=void 0,a}function _t(e){const t=Je.get(e);return void 0===t&&$(`Reconciliation: could not find DOM element for node key ${e}`),t}function wt(e){return{type:e}}const kt=wt("SELECTION_CHANGE_COMMAND"),St=wt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ct=wt("CLICK_COMMAND"),Et=wt("BEFORE_INPUT_COMMAND"),Tt=wt("INPUT_COMMAND"),At=wt("COMPOSITION_START_COMMAND"),Nt=wt("COMPOSITION_END_COMMAND"),Lt=wt("DELETE_CHARACTER_COMMAND"),Rt=wt("INSERT_LINE_BREAK_COMMAND"),Mt=wt("INSERT_PARAGRAPH_COMMAND"),Ot=wt("CONTROLLED_TEXT_INSERTION_COMMAND"),Pt=wt("PASTE_COMMAND"),It=wt("REMOVE_TEXT_COMMAND"),zt=wt("DELETE_WORD_COMMAND"),Dt=wt("DELETE_LINE_COMMAND"),jt=wt("FORMAT_TEXT_COMMAND"),Ft=wt("UNDO_COMMAND"),Bt=wt("REDO_COMMAND"),$t=wt("KEYDOWN_COMMAND"),Ht=wt("KEY_ARROW_RIGHT_COMMAND"),Wt=wt("MOVE_TO_END"),Ut=wt("KEY_ARROW_LEFT_COMMAND"),Kt=wt("MOVE_TO_START"),Gt=wt("KEY_ARROW_UP_COMMAND"),Yt=wt("KEY_ARROW_DOWN_COMMAND"),Vt=wt("KEY_ENTER_COMMAND"),qt=wt("KEY_SPACE_COMMAND"),Jt=wt("KEY_BACKSPACE_COMMAND"),Qt=wt("KEY_ESCAPE_COMMAND"),Xt=wt("KEY_DELETE_COMMAND"),Zt=wt("KEY_TAB_COMMAND"),en=wt("INSERT_TAB_COMMAND"),tn=wt("INDENT_CONTENT_COMMAND"),nn=wt("OUTDENT_CONTENT_COMMAND"),rn=wt("DROP_COMMAND"),on=wt("FORMAT_ELEMENT_COMMAND"),an=wt("DRAGSTART_COMMAND"),sn=wt("DRAGOVER_COMMAND"),ln=wt("DRAGEND_COMMAND"),un=wt("COPY_COMMAND"),cn=wt("CUT_COMMAND"),dn=wt("SELECT_ALL_COMMAND"),fn=wt("CLEAR_EDITOR_COMMAND"),pn=wt("CLEAR_HISTORY_COMMAND"),hn=wt("CAN_REDO_COMMAND"),mn=wt("CAN_UNDO_COMMAND"),gn=wt("FOCUS_COMMAND"),vn=wt("BLUR_COMMAND"),yn=wt("KEY_MODIFIER_COMMAND"),bn=Object.freeze({}),xn=[["keydown",function(e,t){if(_n=e.timeStamp,wn=e.key,t.isComposing())return;va(t,$t,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Pa(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ko(t,()=>{Si(n)||(An=!0)})}],["compositionstart",function(e,t){va(t,At,e)}],["compositionend",function(e,t){K?Ln=!0:V||!Y&&!X?va(t,Nt,e):(Rn=!0,Mn=e.data)}],["input",function(e,t){e.stopPropagation(),Ko(t,()=>{t.dispatchCommand(Tt,e)},{event:e}),Sn=null}],["click",function(e,t){Ko(t,()=>{const n=so(),r=Ra(Sa(t)),o=lo();if(r)if(Wr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ei(i)&&1===Vi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=Qa(i,e=>qo(e)&&!e.isInline());qo(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Oa(n)||Mi(n)){Ji(io(o,r,t,e))}}va(t,Ct,e)})}],["cut",bn],["copy",bn],["dragstart",bn],["dragover",bn],["dragend",bn],["paste",bn],["focus",bn],["blur",bn],["drop",bn]];G&&xn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||K&&ga(t))return;if("insertCompositionText"===n)return;va(t,Et,e)}(e,t)]);let _n=0,wn=null,kn=0,Sn=null;const Cn=new WeakMap,En=new WeakMap;let Tn=!1,An=!1,Nn=!1,Ln=!1,Rn=!1,Mn="",On=null,Pn=[0,"",0,"root",0];function In(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=Ro(),u=Ra(Sa(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!Or(s)||(!o&&(!G||kn<r+50)||s.isDirty()&&p<2||Xi(n))&&i.offset!==a.offset&&!s.isComposing()||Ri(s)||s.isDirty()&&p>1||(o||!G)&&null!==f&&!s.isComposing()&&c!==Pi(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!s.isComposing()&&(s.getFormat()!==e.format||s.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=Li(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Or(t)||qo(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function zn(e,t){return Mi(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Dn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;Tn&&(Tn=!1,zn(r,o)&&zn(i,a)&&!On)||Ko(t,()=>{if(!n)return void Ji(null);if(!Ei(t,r,i))return;let s=so();if(On&&Wr(s)&&s.isCollapsed()){const e=s.anchor,t=On.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=On.clone(),Ji(s))}if(On=null,Wr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=Sa(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=Pn,f=Vi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)jn(s,a,l);else if("text"===n.type)Or(r)||$("Point.getNode() must return TextNode when type is text"),Fn(s,r);else if("element"===n.type&&!p){qo(r)||$("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();jn(e,n,r)}(s,e):jn(s,s.format,"")}}else{const e=n.key,t=s.focus.key,r=s.getNodes(),i=r.length,l=s.isBackward(),u=l?a:o,c=l?o:a,d=l?t:e,f=l?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(Or(t)&&0!==n&&!(0===e&&t.__key===d&&u===n||e===i-1&&t.__key===f&&0===c)&&(h=!0,p&=t.getFormat(),0===p))break}s.format=h?p:0}}va(t,kt,void 0)})}function jn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fn(e,t){jn(e,t.getFormat(),t.getStyle())}function Bn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function $n(e){const t=e.inputType,n=Bn(e),r=Ro(),o=so();if("deleteContentBackward"===t){if(null===o){const e=lo();if(!Wr(e))return!0;Ji(e.clone())}if(Wr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===wn&&i<_n+30&&r.isComposing()&&t){if(Bi(null),_n=0,setTimeout(()=>{Ko(r,()=>{Bi(null)})},30),Wr(o)){const e=o.anchor.getNode();e.markDirty(),Or(e)||$("Anchor node must be a TextNode"),Fn(o,e)}}else{Bi(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),a=n.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length;let l=Q&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Xo(ma(o.anchor,!0))),!l){va(r,Lt,!0);const e=so();Q&&Wr(e)&&e.isCollapsed()&&(On=e,setTimeout(()=>On=null))}}return!0}}var i;if(!Wr(o))return!0;const a=e.data;null!==Sn&&na(!1,r,Sn),o.dirty&&null===Sn||!o.isCollapsed()||ei(o.anchor.getNode())||null===n||o.applyDOMRange(n),Sn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),va(r,Rt,!1);else if(a===ue)e.preventDefault(),va(r,Mt,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&In(o,n,a,e.timeStamp,!0)?(e.preventDefault(),va(r,Ot,a)):Sn=a;return kn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":va(r,Ot,e);break;case"insertFromComposition":Bi(null),va(r,Ot,e);break;case"insertLineBreak":Bi(null),va(r,Rt,!1);break;case"insertParagraph":Bi(null),Nn&&!V?(Nn=!1,va(r,Rt,!1)):va(r,Mt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":va(r,Pt,e);break;case"deleteByComposition":(function(e,t){return e!==t||qo(e)||qo(t)||!Li(e)||!Li(t)})(u,c)&&va(r,It,e);break;case"deleteByDrag":case"deleteByCut":va(r,It,e);break;case"deleteContent":va(r,Lt,!1);break;case"deleteWordBackward":va(r,zt,!0);break;case"deleteWordForward":va(r,zt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":va(r,Dt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":va(r,Dt,!1);break;case"formatStrikeThrough":va(r,jt,"strikethrough");break;case"formatBold":va(r,jt,"bold");break;case"formatItalic":va(r,jt,"italic");break;case"formatUnderline":va(r,jt,"underline");break;case"historyUndo":va(r,Ft,void 0);break;case"historyRedo":va(r,Bt,void 0)}return!0}function Hn(e){if(Oa(e.target)&&Si(e.target))return!0;const t=Ro(),n=so(),r=e.data,o=Bn(e);if(null!=r&&Wr(n)&&In(n,o,r,e.timeStamp,!1)){Ln&&(Kn(t,r),Ln=!1);const o=n.anchor.getNode(),i=Ra(Sa(t));if(null===i)return!0;const a=n.isBackward(),s=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;G&&!n.isCollapsed()&&Or(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===ta(i.anchorNode)||va(t,Ot,r);const u=r.length;K&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),Q&&t.isComposing()&&(_n=0,Bi(null))}else{na(!1,t,null!==r?r:void 0),Ln&&(Kn(t,r||void 0),Ln=!1)}return function(){Ao();const e=Ro();Te(e)}(),!0}function Wn(e){const t=Ro(),n=so();if(Wr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Bi(r.key),_a(cr),(e.timeStamp<_n+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Or(o)&&o.getStyle()!==n.style)&&va(t,Ot,ce)}return!0}function Un(e){return Kn(Ro(),e.data),_a(dr),!0}function Kn(e,t){const n=e._compositionKey;if(Bi(null),null!==n&&null!=t){if(""===t){const t=Hi(n),r=Pi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Or(t)){const n=Ra(Sa(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),ra(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=so();if(Wr(t)||Kr(t)){if(Wr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void va(e,Vt,null)}}}na(!0,e,t)}function Gn(e){const t=Ro();if(null==e.key)return!0;if(Rn){if(ua(e))return Ko(t,()=>{Kn(t,Mn)}),Rn=!1,Mn="",!0;Rn=!1,Mn=""}if(function(e){return aa(e,"ArrowRight",{shiftKey:"any"})}(e))va(t,Ht,e);else if(function(e){return aa(e,"ArrowRight",sa)}(e))va(t,Wt,e);else if(function(e){return aa(e,"ArrowLeft",{shiftKey:"any"})}(e))va(t,Ut,e);else if(function(e){return aa(e,"ArrowLeft",sa)}(e))va(t,Kt,e);else if(function(e){return aa(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))va(t,Gt,e);else if(function(e){return aa(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))va(t,Yt,e);else if(function(e){return aa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Nn=!0,va(t,Vt,e);else if(function(e){return" "===e.key}(e))va(t,qt,e);else if(function(e){return U&&aa(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Nn=!0,va(t,Rt,!0);else if(function(e){return aa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Nn=!1,va(t,Vt,e);else if(function(e){return aa(e,"Backspace",{shiftKey:"any"})||U&&aa(e,"h",{ctrlKey:!0})}(e))ua(e)?va(t,Jt,e):(e.preventDefault(),va(t,Lt,!0));else if(function(e){return"Escape"===e.key}(e))va(t,Qt,e);else if(function(e){return aa(e,"Delete",{})||U&&aa(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),va(t,Lt,!1)):va(t,Xt,e);else if(function(e){return aa(e,"Backspace",la)}(e))e.preventDefault(),va(t,zt,!0);else if(function(e){return aa(e,"Delete",la)}(e))e.preventDefault(),va(t,zt,!1);else if(function(e){return U&&aa(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),va(t,Dt,!0);else if(function(e){return U&&(aa(e,"Delete",{metaKey:!0})||aa(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),va(t,Dt,!1);else if(function(e){return aa(e,"b",sa)}(e))e.preventDefault(),va(t,jt,"bold");else if(function(e){return aa(e,"u",sa)}(e))e.preventDefault(),va(t,jt,"underline");else if(function(e){return aa(e,"i",sa)}(e))e.preventDefault(),va(t,jt,"italic");else if(function(e){return aa(e,"Tab",{shiftKey:"any"})}(e))va(t,Zt,e);else if(function(e){return aa(e,"z",sa)}(e))e.preventDefault(),va(t,Ft,void 0);else if(function(e){if(U)return aa(e,"z",{metaKey:!0,shiftKey:!0});return aa(e,"y",{ctrlKey:!0})||aa(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),va(t,Bt,void 0);else{const n=t._editorState._selection;null===n||Wr(n)?ca(e)&&(e.preventDefault(),va(t,dn,e)):!function(e){return aa(e,"c",sa)}(e)?!function(e){return aa(e,"x",sa)}(e)?ca(e)&&(e.preventDefault(),va(t,dn,e)):(e.preventDefault(),va(t,cn,e)):(e.preventDefault(),va(t,un,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(yn,e),!0}function Yn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Vn=new Map;function qn(e){const t=function(e){const t=ka(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Ai(t.anchorNode);if(null===n)return;An&&(An=!1,Ko(n,()=>{const r=lo(),o=t.anchorNode;if(Oa(o)||Mi(o)){Ji(io(r,t,n,e))}}));const r=Zi(n),o=r[r.length-1],i=o._key,a=Vn.get(i),s=a||o;s!==n&&Dn(t,s,!1),Dn(t,n,!0),n!==o?Vn.set(i,n):a&&Vn.delete(i)}function Jn(e){e._lexicalHandled=!0}function Qn(e){return!0===e._lexicalHandled}const Xn=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function Zn(e){const t=Cn.get(e);if(void 0===t)return void Xn();const n=En.get(t);if(void 0===n)return void Xn();const r=n-1;r>=0||$("Root element count less than 0"),Cn.delete(e),En.set(t,r),0===r&&t.removeEventListener("selectionchange",qn);const o=Ni(e);Ti(o)?(!function(e){if(null!==e._parentEditor){const t=Zi(e),n=t[t.length-1]._key;Vn.get(n)===e&&Vn.delete(n)}else Vn.delete(e._key)}(o),e.__lexicalEditor=null):o&&$("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Yn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function er(e,t,n){Ao();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=so();if(!Wr(t)||!qo(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();wa(o,e)&&n.set(e.__key,0,"element");wa(i,e)&&r.set(e.__key,0,"element");return t}(e);let a=!1;if(Wr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(fo(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(fo(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Kr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Wr(i)&&t&&!a){const t=e.getIndexWithinParent();ji(e),uo(i,o,t,-1)}else ji(e);n||Ca(o)||o.canBeEmpty()||!o.isEmpty()||er(o,t),t&&i&&ei(o)&&o.isEmpty()&&o.selectEnd()}const tr=Symbol.for("ephemeral");function nr(e){return e[tr]||!1}class rr{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ja(this);return void 0===e&&$(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){$(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Di(this,e),"root"!==this.__type&&function(e,t){const n=wi(Ro(),e);void 0===n&&$(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&$(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){$(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Hi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||so();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(Or(this))return n;if(Wr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Xo(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Hi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&$(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(Ca(t))return qo(e)||e===this&&Xo(e)||$("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&$(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Hi(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Hi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=qo(this)?this:this.getParent(),n=qo(e)?e:e.getParent(),r=t&&n?As(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=As(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===Cs(t):("same"!==t.type&&"ancestor"!==t.type&&$("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=As(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const a=qo(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==a){o=a;continue}const s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let u=null,c=l;do{if(null===c&&$("getNodesBetween: ancestor is null"),u=t?c.getNextSibling():c.getPreviousSibling(),c=c.getParent(),null===c)break;null!==u||r.has(c.__key)||n.push(c)}while(null===u);o=u}return t||n.reverse(),n}isDirty(){const e=Ro()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(nr(this))return this;const e=Hi(this.__key);return null===e&&$("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(nr(this))return this;Ao();const e=Lo(),t=Ro(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=so();if(null!==a&&a.setCachedNodes(null),i.has(r))return Fi(o),o;const s=Wa(o);return i.add(r),Fi(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){$("createDOM: base method not extended")}updateDOM(e,t,n){$("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){$(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Me(this,e)}static transform(){return null}remove(e){er(this,!0,e)}replace(e,t){Ao();let n=so();null!==n&&(n=n.clone()),Aa(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;ji(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(er(r,!1,!0),null===u)s.__first=i;else{u.getWritable().__next=i}if(a.__prev=d,null===c)s.__last=i;else{c.getWritable().__prev=i}if(a.__next=f,a.__parent=p,s.__size=l,t&&(qo(this)&&qo(a)||$("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{a.append(e)})),Wr(n)){Ji(n);const e=n.anchor,t=n.focus;e.key===o&&$r(e,a),t.key===o&&$r(t,a)}return $i()===o&&Bi(i),a}insertAfter(e,t=!0){Ao(),Aa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=so();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(ji(r),Wr(i)){const e=o.__key,n=i.anchor,r=i.focus;a="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===l)u.__last=c;else{l.getWritable().__prev=c}if(u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Wr(i)){const e=this.getIndexWithinParent();uo(i,u,e+1);const t=u.__key;a&&i.anchor.set(t,e+2,"element"),s&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Ao(),Aa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;ji(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();if(null===i)a.__first=o;else{i.getWritable().__next=o}a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=so();if(t&&Wr(u)){uo(u,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return li()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Ao();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(qo(n))return n.select();if(!Or(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Ao();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(qo(n))return n.select(0,0);if(!Or(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const or="historic",ir="history-merge",ar="collaboration",sr="skip-scroll-into-view",lr="skip-dom-selection",ur="skip-selection-focus",cr="composition-start",dr="composition-end";class fr extends rr{static getType(){return"linebreak"}static clone(e){return new fr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&Da(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&gr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&Da(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&gr(r))return!0}return!1}(e)?null:{conversion:pr,priority:0}}}static importJSON(e){return hr().updateFromJSON(e)}}function pr(e){return{node:hr()}}function hr(){return Ta(new fr)}function mr(e){return e instanceof fr}function gr(e){return Mi(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function vr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function yr(e,t){return 1&t?"strong":2&t?"em":"span"}function br(e,t,n,r,o){const i=r.classList;let a=da(o,"base");void 0!==a&&i.add(...a),a=da(o,"underlineStrikethrough");let s=!1;const l=8&t&&4&t;void 0!==a&&(8&n&&4&n?(s=!0,l||i.add(...a)):l&&i.remove(...a));for(const e in de){const r=de[e];if(a=da(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...a)}else t&r&&i.remove(...a)}}function xr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?le:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||K){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function _r(e,t,n,r,o,i){xr(o,e,t);const a=i.theme.text;void 0!==a&&br(0,0,r,e,a)}function wr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class kr extends rr{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new kr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return ge[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===$i()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=de[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Ii(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=vr(0,n),o=yr(0,n),i=null===r?o:r,a=document.createElement(i);let s=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(o),a.appendChild(s));_r(s,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(a.style.cssText=l),a}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,a=vr(0,o),s=vr(0,i),l=yr(0,o),u=yr(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&$("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(u);return _r(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&$("updateDOM: innerDOM is null or undefined")),xr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&br(0,o,i,c,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Ar,priority:0}),b:()=>({conversion:Cr,priority:0}),code:()=>({conversion:Rr,priority:0}),em:()=>({conversion:Rr,priority:0}),i:()=>({conversion:Rr,priority:0}),mark:()=>({conversion:Rr,priority:0}),s:()=>({conversion:Rr,priority:0}),span:()=>({conversion:Sr,priority:0}),strong:()=>({conversion:Rr,priority:0}),sub:()=>({conversion:Rr,priority:0}),sup:()=>({conversion:Rr,priority:0}),u:()=>({conversion:Rr,priority:0})}}static importJSON(e){return Mr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Oa(t)||$("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=wr(t,"b")),this.hasFormat("italic")&&(t=wr(t,"i")),this.hasFormat("strikethrough")&&(t=wr(t,"s")),this.hasFormat("underline")&&(t=wr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?de[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?fe[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Ii(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=me[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Ao();let n=e,r=t;const o=so(),i=this.getTextContent(),a=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Wr(o))return no(a,n,a,r,"text","text");{const e=$i();e!==o.anchor.key&&e!==o.focus.key||Bi(a),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,a=n.length;let s=e;s<0&&(s=a+s,s<0&&(s=0));const l=so();if(r&&Wr(l)){const t=e+a;l.setTextNodeRange(o,t,o,t)}const u=i.slice(0,s)+n+i.slice(s+t);return o.__text=u,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Ao();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=$i(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const a=[],s=e.length;for(let t=0,r=0;t<i&&r<=s;r++){const o=e[r];o>t&&(a.push(n.slice(t,o)),t=o)}const l=a.length;if(1===l)return[t];const u=a[0],c=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let m=!1,g=null,v=null;const y=so();if(Wr(y)){const[e,t]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===e.type&&e.key===r&&(g=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=Mr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=ze(t,d),m=!0):d=t.setTextContent(u);const b=[d];for(let e=1;e<l;e++){const n=Mr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=ze(t,n);const i=n.__key;o===r&&Bi(i),b.push(n)}const x=g?g.offset:null,_=v?v.offset:null;let w=0;for(const e of b){if(!g&&!v)break;const t=w+e.getTextContentSize();if(null!==g&&null!==x&&x<=t&&x>=w&&(g.set(e.getKey(),x-w,"text"),x<t&&(g=null)),null!==v&&null!==_&&_<=t&&_>=w){v.set(e.getKey(),_-w,"text");break}w=t}if(null!==c){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Fi(t);null!==n&&Fi(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();m?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),Wr(y)&&uo(y,c,t,l-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||$("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;$i()===r&&Bi(n);const a=so();if(Wr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&po(o,t,n,e,i),null!==s&&s.key===r&&po(s,t,n,e,i)}const s=e.__text,l=t?s+o:o+s;this.setTextContent(l);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function Sr(e){return{forChild:Pr(e.style),node:null}}function Cr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Pr(t.style,n?void 0:"bold"),node:null}}const Er=new WeakMap;function Tr(e){if(!Oa(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Ar(e){const t=e;null===e.parentElement&&$("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Er.get(n))&&!Tr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Er.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(hr()):"\t"===r?t.push(zr()):""!==r&&t.push(Mr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!0));){if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Mr(n)}}function Nr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,Oa(n)){const e=n.style.display;if(""===e&&!za(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Mi(n))return n;if("BR"===n.nodeName)return null}}const Lr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rr(e){const t=Lr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Pr(e.style,t),node:null}}function Mr(e=""){return Ta(new kr(e))}function Or(e){return e instanceof kr}function Pr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),a="italic"===e.fontStyle,s=r.includes("underline"),l=e.verticalAlign;return e=>Or(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),a&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class Ir extends kr{static getType(){return"tab"}static clone(e){return new Ir(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=da(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return zr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&$("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||$("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&$("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&$("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function zr(){return Ta(new Ir)}function Dr(e){return e instanceof Ir}class jr{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return Ss(Ds(Ns(this,"next")),Ds(Ns(e,"next")))<0}getNode(){const e=Hi(this.key);return null===e&&$("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Hi(e);("text"===n?Or(t):qo(t))||$(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}To()||($i()===i&&Bi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function Fr(e,t,n){return new jr(e,t,n)}function Br(e,t){let n=t.__key,r=e.offset,o="element";if(Or(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!qo(t)){const e=t.getNextSibling();if(Or(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function $r(e,t){if(qo(t)){const n=t.getLastDescendant();qo(n)||Or(n)?Br(e,n):Br(e,t)}else Br(e,t)}class Hr{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Kr(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(Or(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=Hi(e);null!==t&&n.push(t)}return To()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((so()||lo())===this&&e[0]){const t=fs(e[0],"next");Rs(ws(t,t))}for(const t of e)t.remove()}}function Wr(e){return e instanceof Ur}class Ur{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Wr(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(ls(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;qo(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(ss(e.focus)&&qo(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=gs(e.focus.origin,"previous");ls(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=vs(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!qo(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=Ds(e.anchor),r=Ds(e.anchor.getFlipped()),o=e=>as(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(Bs(Os(this),"next"));return this.isCollapsed()&&t.length>1&&$(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),To()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,s]=Yr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(qo(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,Or(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<s?e.slice(a,s):e.slice(s,a)):e=i?e.slice(a):e.slice(s):d===n&&(e=i?e.slice(0,s):e.slice(0,a)),l+=e}else!Xo(d)&&!mr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Ro(),n=t.getEditorState()._selection,r=eo(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Be(this)}clone(){const e=this.anchor,t=this.focus;return new Ur(Fr(e.key,e.offset,e.type),Fr(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Ii(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=de[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(hr()):"\t"===r?n.push(zr()):n.push(Mr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,a=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,a=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Mr();if(a.setFormat(n),a.setStyle(r),ui(i))i.splice(0,0,[a]);else{const e=ei(o)?li().append(a):a;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}(i,a,r,o),"element"===a.type&&Ls(a,Ds(Ns(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];Or(d)||$("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=u[c-1];if(1===c&&"element"===a.type&&(l=f,a.set(i.key,l,"text")),this.isCollapsed()&&s===f&&(Ri(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Or(t)&&t.canInsertTextBefore()&&!Ri(t)||(t=Mr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(Ri(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Or(t)&&!Ri(t)||(t=Mr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){const e=Mr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||qo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Zr(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(Li(d)){const t=Mr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Dr(d)){const t=Mr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Mr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===s)d.insertBefore(t,!1);else{const[e]=d.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=l-s;d=d.spliceText(s,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=qo(d)?d:d.getParentOrThrow();let r=qo(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===a.type&&(0!==l||""===h.getTextContent())||"element"===a.type&&h.getIndexWithinParent()<l)if(Or(h)&&!Li(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Mr(h.getTextContent());h.replace(e),h=e}ei(a.getNode())||"text"!==a.type||(h=h.spliceText(0,l,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(u),m=n.is(r),g=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||qo(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Li(d))if(s===f)d.select();else{const t=Mr(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<c;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=so()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Bs(e,r),a=Is(i.anchor,n),s=Is(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(ls(e))l.add(e.origin.getKey());else if(ss(e)){const{origin:t}=e;qo(t)&&!l.has(t.getKey())||u.push(t)}for(const e of u)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=Ps(fs(t,r)),l=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===l&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===l){const e=t.origin,n=Mr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=ps(n,r,t.offset)}n.is(a[0].origin)&&(a[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let c,d;for(const e of a)if(zs(e)){c=Ds(e);break}for(const e of s)if(zs(e)){d=Ds(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const a=o.getParents().reverse();a.push(o);const s=Math.min(i.length,a.length);let l;for(l=0;l<s&&i[l]===a[l];l++);const u=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(Ca(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,ja),d=c&&u(a,e=>n.has(e.getKey())&&ja(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;gs(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[c,d,...a,...s].find(zs);if(p){return _s(Fs(Ds(p),e.direction))}$(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(a.map(e=>e.origin.__key))}`)}(Os(this));Ms(this,t),e&&so()!==this&&Ji(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void Bi(null);const n=this.getNodes(),r=[];for(const e of n)Or(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(qo(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),Bi(null),void o(t);const a=this.anchor,s=this.focus,l=this.isBackward(),u=l?s:a,c=l?a:s;let d=0,f=r[0],p="element"===u.type?0:u.offset;if("text"===u.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const m=i-1;let g=r[m];const v="text"===c.type?c.offset:g.getTextContentSize();if(f.is(g)){if(p===v)return;if(Ri(f)||0===p&&v===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,v),t=0===p?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ri(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const y=g.getFormatFlags(e,h);v>0&&(v===g.getTextContentSize()||Ri(g)||([g]=g.splitText(v)),g.setFormat(y));for(let t=d+1;t<m;t++){const n=r[t],o=n.getFormatFlags(e,y);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(g.__key,v,"text"),this.format=h|y}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=so();return Wr(t)||$("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Qa(t,ja),r=e[e.length-1];if(qo(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=yo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(qo(e)||Xo(e))&&!e.isInline())){qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=yo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=li();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=mr(o);if(i||Xo(o)&&o.isInline()||qo(o)&&o.isInline()||Or(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),a=o.getChildren(),s=!qo(n)||!n.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let u=a[0];(e=>qo(e)&&ja(e)&&!e.isEmpty()&&qo(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(u)&&(qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||$("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const c=Qa(i,ja);s&&qo(c)&&(s.canMergeWhenEmpty()||ja(l))&&(c.append(...s.getChildren()),s.remove()),qo(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=qo(n)?n.getLastChild():null;mr(d)&&c!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=li();return Vi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=yo(this),t=Qa(this.anchor.getNode(),ja);qo(t)||$("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=hr();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Yr(this),a=this.isBackward(),[s,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=a?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Or(n)&&!this.isCollapsed()){const e=n.splitText(u,c),t=0===u?e[0]:e[1];return t?(s.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Or(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),Or(r)){const t=r.getTextContent().length;0===c?e.pop():c!==t&&([r]=r.splitText(c),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(xo(this,e,t,n))return;const r="move"===e,o=Ro(),i=Ra(Sa(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!qo(l)||l.isInline()||l.canBeEmpty()||La(a,o,s),this.dirty){let e=ya(o,this.anchor.key),t=ya(o,this.focus.key);"text"===this.anchor.type&&(e=Pi(e)),"text"===this.focus.type&&(t=Pi(t)),e&&t&&ho(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=ei(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(Ca(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let a=!1;for(let e=0;e<n.length;e++){const t=n[e];wa(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];qo(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];qo(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&xo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&qo(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(qo(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=xs(Ns(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(ls(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=Ds(t);Ms(this,ws(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(ss(t)){if(qo(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Xo(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=oo();e.add(t.origin.getKey()),Ji(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Ms(this,ws(!t.origin.isEmpty()&&n.isEmpty()?Ps(fs(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Vr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Jr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Jr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,a=e<i,s=a?e:i,l=a?i:e,u=l-1;if(s!==u){(function(e){e.length>1||$("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Xi(e)||qr(e))})(o.getTextContent().slice(s,l))&&(t?r.set(r.key,u,r.type):n.set(n.key,u,n.type))}}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&ei(e.getParent())&&null===e.getPreviousSibling()&&Vr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Kr(e){return e instanceof Hr}function Gr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Yr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Gr(n),Gr(r)]}function Vr(e,t){for(let n=t;n;n=n.getParent()){if(qo(n)){if(n.collapseAtStart(e))return!0;if(Ca(n))break}if(n.getPreviousSibling())break}return!1}const qr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Jr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let a=0,s=0;for(let e=0;e<i;e++){const r=e===i-1;if(s=a,a+=o[e].length,t&&a===n||a>n||r){o.splice(e,1),r&&(s=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(s,s))}function Qr(e,t,n,r){let o,i=t;if(Oa(e)){let a=!1;const s=e.childNodes,l=s.length,u=r._blockCursorElement;i===l&&(a=!0,i=l-1);let c=s[i],d=!1;if(c===u)c=s[i+1],d=!0;else if(null!==u){const n=u.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,u)&&i--}}if(o=Qi(c),Or(o))i=hs(o,a?"next":"previous");else{let s=Qi(e);if(null===s)return null;if(qo(s)){const l=r.getElementByKey(s.getKey());null===l&&$("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),qo(s)||$("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(qo(c)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(c,0,n)){const e=a?c.getLastDescendant():c.getFirstDescendant();null===e?s=c:(c=e,s=qo(c)?c:c.getParentOrThrow()),i=0}Or(c)?(o=c,s=null,i=hs(c,a?"next":"previous")):c!==s&&a&&!d&&(qo(s)||$("invariant"),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Xo(s)&&Qi(e)===s?n:n+1,s=s.getParentOrThrow()}if(qo(s))return Fr(s.__key,i,"element")}}else o=Qi(e);return Or(o)?Fr(o.__key,hs(o,i,"clamp"),"text"):null}function Xr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&qo(i)&&i.isInline()){const t=i.getPreviousSibling();Or(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else qo(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Or(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&qo(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&qo(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Or(t)&&e.set(t.__key,0,"text")}}}function Zr(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Xr(e,n,r),Xr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function eo(e,t,n,r,o,i){if(null===e||null===n||!Ei(o,e,n))return null;const a=Qr(e,t,Wr(i)?i.anchor:null,o);if(null===a)return null;const s=Qr(n,r,Wr(i)?i.focus:null,o);if(null===s)return null;if(ao("anchor",a),ao("focus",s),"element"===a.type&&"element"===s.type){const t=Qi(e),r=Qi(n);if(Xo(t)&&Xo(r))return null}return Zr(a,s),[a,s]}function to(e){return qo(e)&&!e.isInline()}function no(e,t,n,r,o,i){const a=Lo(),s=new Ur(Fr(e,t,o),Fr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function ro(){const e=Fr("root",0,"element"),t=Fr("root",0,"element");return new Ur(e,t,0,"")}function oo(){return new Hr(new Set)}function io(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,a=i?i.type:void 0,s="selectionchange"===a,l=!be&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Wr(e)&&!l)return e.clone();if(null===t)return null;if(u=t.anchorNode,c=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(s||void 0===a)&&Wr(e)&&!Ei(n,u,c))return e.clone();const p=eo(u,d,c,f,n,e);if(null===p)return null;const[h,m]=p;let g=0,v="";if(Wr(e)){const t=e.anchor;if(h.key===t.key)g=e.format,v=e.style;else{const e=h.getNode();Or(e)?(g=e.getFormat(),v=e.getStyle()):qo(e)&&(g=e.getTextFormat(),v=e.getTextStyle())}}return new Ur(h,m,g,v)}function ao(e,t){const n=Hi(t.key);if(void 0===n&&$(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Or(n)||$(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{qo(n)||$(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function so(){return Lo()._selection}function lo(){return Ro()._editorState._selection}function uo(e,t,n,r=1){const o=e.anchor,i=e.focus,a=o.getNode(),s=i.getNode();if(!t.is(a)&&!t.is(s))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(l,n,"element"),i.set(l,n,"element"),co(e)}}else{const a=e.isBackward(),s=a?i:o,u=s.getNode(),c=a?o:i,d=c.getNode();if(t.is(u)){const e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(l,Math.max(0,e+r),"element")}}co(e)}function co(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!qo(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(qo(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(qo(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(Or(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function fo(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,Or(r)?(a=r.getTextContentSize(),s="text"):qo(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,Or(o)?s="text":qo(o)&&(s="element")),null!==i&&null!==s?e.set(i,a,s):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function po(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function ho(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function mo(e,t,n){const r=ya(e,t.getKey());if(qo(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function go(e,t,n,r,o,i,a){const s=r.anchorNode,l=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(o.has(ar)&&d!==i||null!==d&&Ci(d))return;if(!Wr(t))return void(null!==e&&Ei(n,s,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),m=p.getNode(),[g,v]=mo(n,h,f.offset),[y,b]=mo(n,m,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let k=g,S=y,C=!1;if("text"===f.type?(k=Pi(g),C=h.getFormat()!==x||h.getStyle()!==_):Wr(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(S=Pi(y)),null!==k&&null!==S&&(w&&(null===e||C||Wr(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){Pn=[e,t,n,r,o]}(x,_,v,f.key,performance.now()),u!==v||c!==b||s!==k||l!==S||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(ur)||i.focus({preventScroll:!0}),"element"===f.type))){if(ho(r,k,v,S,b),!K||!t.isCollapsed()||null===i||o.has(ur)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(sr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Wr(t)&&"element"===t.anchor.type?k.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=xa(n),o=ka(r);if(null===r||null===o)return;let{top:i,bottom:a}=t,s=0,l=0,u=n;for(;null!==u;){const t=u===r.body;if(t){s=0,l=Sa(e).innerHeight;const t=o.getComputedStyle(r.documentElement),n=parseFloat(t.scrollPaddingTop),i=parseFloat(t.scrollPaddingBottom);isFinite(n)&&(s+=n),isFinite(i)&&(l-=i)}else{const e=u.getBoundingClientRect();s=e.top,l=e.bottom}let n=0;if(i<s?n=-(s-i):a>l&&(n=a-l),0!==n)if(t)o.scrollBy(0,n);else{const e=u.scrollTop;u.scrollTop+=n;const t=u.scrollTop-e;i-=t,a-=t}if(t)break;u=ba(u)}}(n,t,i)}}Tn=!0}}function vo(e){let t=so()||lo();null===t&&(t=Vi().selectEnd()),t.insertNodes(e)}function yo(e){let t=e;e.isCollapsed()||t.removeText();const n=so();Wr(n)&&(t=n),Wr(t)||$("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!ja(o);){const e=o;if([o,i]=bo(o,i),e.is(o))break}return i}function bo(e,t){const n=e.getParent();if(!n){const e=li();return Vi().append(e),e.select(),[Vi(),0]}if(Or(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!qo(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Ur(Fr(e.__key,t,"element"),Fr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function xo(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=Ns(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!js(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Xo(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of xs(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ls(e))e.origin.isInline()||(l=e);else{if(qo(e.origin))continue;Xo(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Xo(l.origin)&&l.origin.isKeyboardSelectable()){const e=oo();return e.add(l.origin.getKey()),Ji(e),!0}return l=Ds(l),s&&Ls(e.anchor,l),Ls(e.focus,l),u||!a}let _o=null,wo=null,ko=!1,So=!1,Co=0;const Eo={characterData:!0,childList:!0,subtree:!0};function To(){return ko||null!==_o&&_o._readOnly}function Ao(){ko&&$("Cannot use method in read-only mode.")}function No(){Co>99&&$("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function Lo(){return null===_o&&$(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Mo()}`),_o}function Ro(){return null===wo&&$(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Mo()}`),wo}function Mo(){let e=0;const t=new Set,n=gi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Ni(r);if(Ti(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function Oo(){return wo}function Po(e,t,n){const r=t.__type,o=_i(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const a=i.length;for(let e=0;e<a&&(i[e](t),t.isAttached());e++);}function Io(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function zo(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function Do(e){return jo(e,Ro()._nodes)}function jo(e,t){const n=e.type,r=t.get(n);void 0===r&&$(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&$(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),a=e.children;if(qo(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=jo(a[e],t);i.append(n)}return i}function Fo(e,t,n){const r=_o,o=ko,i=wo;_o=t,ko=!0,wo=e;try{return n()}finally{_o=r,ko=o,wo=i}}function Bo(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function $o(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,a=i._selection,s=n._selection,l=0!==e._dirtyType,u=_o,c=ko,d=wo,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){wo=e,_o=n,ko=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=xt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),So)throw t;return di(e,null,r,n),Ae(e),e._dirtyType=2,So=!0,$o(e,i),void(So=!1)}finally{p.observe(r,Eo),e._updating=f,_o=u,ko=c,wo=d}}n._readOnly||(n._readOnly=!0,Bo(n),Wr(s)&&(Object.freeze(s.anchor),Object.freeze(s.focus)),Object.freeze(s));const m=e._dirtyLeaves,g=e._dirtyElements,v=e._normalizedNodes,y=e._updateTags,b=e._deferred;l&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=Gi(e)),delete r[i])}(e,n);const x=o?null:Ra(Sa(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!y.has(lr)){wo=e,_o=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&La(t,e,r),go(a,s,e,x,y,r)}!function(e,t,n){let r=e._blockCursorElement;if(Wr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),a=o.offset;let s=!1,l=null;if(a===i.getChildrenSize()){Na(i.getChildAtIndex(a-1))&&(s=!0)}else{const t=i.getChildAtIndex(a);if(null!==t&&Na(t)){const n=t.getPreviousSibling();(null===n||Na(n))&&(s=!0,l=e.getElementByKey(t.__key))}}if(s){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=Ks(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&La(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,Eo),wo=d,_o=u}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),a=i.length;for(let e=0;e<a;e++){const[a,s]=i[e];for(const e of s){const i=t.get(e);void 0!==i&&a(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,y,m,i),Wr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(kt,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Ho("decorator",e,!0,_)),function(e,t,n){const r=Yi(t),o=Yi(n);r!==o&&Ho("textcontent",e,!0,o)}(e,t||i,n),Ho("update",e,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:y}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;Uo(e,t,r)}}}(e)}function Ho(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=t._listeners[e],o=Array.from(n);for(const[e,t]of o){t&&t();const o=e(...r);n.has(e)?n.set(e,o):o&&o()}}finally{t._updating=o}}function Wo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let a;void 0!==o&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&$("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),a&&e._deferred.push(a),zo(e,o.tag)),null==i?Uo(e,n,o):n()}}return r}function Uo(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,zo(e,n.tag),i=n.skipTransforms||!1,a=n.discrete||!1),o&&e._deferred.push(o);const s=e._editorState;let l=e._pendingEditorState,u=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=ti(l||s),u=!0),l._flushSync=a;const c=_o,d=ko,f=wo,p=e._updating;_o=l,ko=!1,e._updating=!0,wo=e;const h=e._headless||null===e.getRootElement();bi(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Ra(Sa(e));return Wr(n)||null==n?io(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Wo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Wr(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(l,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);Or(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Fe(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=$i(),a=new Map;let s=n,l=s.size,u=r,c=u.size;for(;l>0||c>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of s){const r=o.get(e);Or(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Fe(r),void 0!==r&&Io(r,i)&&Po(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){Co++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0);for(const e of u){const n=e[0],s=e[1];if(r.set(n,s),!s)continue;const l=o.get(n);void 0!==l&&Io(l,i)&&Po(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,Co++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Wo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,a=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(qo(t)&&ye(t,e,o,i,a,r),o.has(e)||r.delete(e),a.push(e)))}for(const e of a)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(s,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if(Wr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||$("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Kr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void $o(e)}finally{_o=c,ko=d,wo=f,e._updating=p,Co=0}const m=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(l,e);m?l._flushSync?(l._flushSync=!1,$o(e)):u&&ki(()=>{$o(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ko(e,t,n){wo===e&&void 0===n?t():Uo(e,t,n)}class Go{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Go(this.element,e,this.after)}withAfter(e){return new Go(this.element,this.before,e)}withElement(e){return this.element===e?this:new Go(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&$("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&$("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&$("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(X||V||Y);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Yo(t,n);o.push(r);const i=Yo(t,this.element);let a=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){a+=1;break}}return[e.getParentOrThrow(),a]}}function Yo(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&$("indexPath: root is not a parent of child"),n.reverse()}class Vo extends rr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return he[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=Ro()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(Or(t)&&e.push(t),qo(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;qo(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;qo(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return qo(e)&&e.getLastDescendant()||e||null}const r=t[e];return qo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Hi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&$(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Hi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&$(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=ue)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=pe[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=de[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return Ii(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Ao();const n=so();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Or(e)||qo(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Or(e)||qo(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Wr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):no(a,r,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?pe[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){nr(this)&&$(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||$(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,a=[],s=[],l=this.getChildAtIndex(e+t);let u=null,c=r-t+n.length;if(0!==e)if(e===r)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){null===e&&$("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;ji(e.getWritable()),s.push(n),e=t}}let d=u;for(const e of n){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&c--,ji(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&$("append: attempting to append self"),t.__parent=i,a.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=c,s.length){const e=so();if(Wr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Jo(r,t,n)&&fo(r,r.getNode(),this,u,l),Jo(o,t,n)&&fo(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||Ca(this)||this.remove()}}return o}getDOMSlot(e){return new Go(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Oa(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||Ca(this)||this.getChildren().some(Or)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function qo(e){return e instanceof Vo}function Jo(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class Qo extends rr{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Xo(e){return e instanceof Qo}class Zo extends Vo{__cachedText;static getType(){return"root"}static clone(){return new Zo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!To()&&0!==Ro()._dirtyType||null===e?super.getTextContent():e}remove(){$("remove: cannot be called on root nodes")}replace(e){$("replace: cannot be called on root nodes")}insertBefore(e){$("insertBefore: cannot be called on root nodes")}insertAfter(e){$("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)qo(e)||Xo(e)||$("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Vi().updateFromJSON(e)}collapseAtStart(){return!0}}function ei(e){return e instanceof Zo}function ti(e){return new oi(new Map(e._nodeMap))}function ni(){return new oi(new Map([["root",new Zo]]))}function ri(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&$(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),qo(e)){const r=t.children;Array.isArray(r)||$(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ri(o[e]);r.push(t)}}return t}class oi{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return Fo(t&&t.editor||null,this,e)}clone(e){const t=new oi(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Fo(null,this,()=>({root:ri(Vi())}))}}class ii extends Vo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ai extends Vo{static getType(){return"paragraph"}static clone(e){return new ai(e.__key)}createDOM(e){const t=document.createElement("p"),n=da(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:si,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Oa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return li().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Or);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=li();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||Or(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function si(e){const t=li();if(e.style&&(t.setFormat(e.style.textAlign),Ka(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in pe&&t.setFormat(n)}return{node:t}}function li(){return Ta(new ai)}function ui(e){return e instanceof ai}const ci=0;function di(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=ni(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function fi(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ja(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof rr&&e!==rr?e:void 0}}return t}function pi(e){const t=e||{},n=Oo(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=ni(),s=t.namespace||(null!==o?o._config.namespace:ea()),l=t.editorState,u=[Zo,kr,fr,Ir,ai,ii,...t.nodes||[]],{onError:c,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<u.length;e++){let t=u[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ja(t);{const e=t.name,o=Va(t,"getType")&&t.getType();r?r.prototype instanceof t||$(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==rr&&(["getType","clone"].forEach(n=>{Va(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Va(t,"importDOM")&&qa(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Va(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=fi(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Ne(u[e]),transforms:i})}}const h=new gi(a,o,p,{disableEvents:i,namespace:s,theme:r},c||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)}),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==l&&(h._pendingEditorState=l,h._dirtyType=2),function(e){e.registerCommand(Et,$n,ci),e.registerCommand(Tt,Hn,ci),e.registerCommand(At,Wn,ci),e.registerCommand(Nt,Un,ci),e.registerCommand($t,Gn,ci)}(h),h}function hi(e,t){const n=e.get(t);e.delete(t),n&&n()}function mi(e,t,n){return e.set(t,n),hi.bind(null,e,t)}class gi{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,a,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=ea(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){return mi(this._listeners.update,e)}registerEditableListener(e){return mi(this._listeners.editable,e)}registerDecoratorListener(e){return mi(this._listeners.decorator,e)}registerTextContentListener(e){return mi(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return Vs(mi(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){const r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){void 0===n&&$('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&$(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const a=n&&n.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&$(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Ha(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=Ha(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update(()=>{for(const e of r)for(const t of e.keys()){const e=Hi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ir}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return va(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=da(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,di(this,t,e,r),null!==t&&(this._config.disableEvents||Zn(t),null!=n&&t.classList.remove(...n)),null!==e){const t=ka(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,Ae(this),this._updateTags.add(ir),$o(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Cn.set(e,n);const r=En.get(n)??0;r<1&&n.addEventListener("selectionchange",qn),En.set(n,r+1),e.__lexicalEditor=t;const o=Yn(e);for(let n=0;n<xn.length;n++){const[r,i]=xn[n],a="function"==typeof i?e=>{Qn(e)||(Jn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Qn(e))return;Jn(e);const n=t.isEditable();switch(r){case"cut":return n&&va(t,cn,e);case"copy":return va(t,un,e);case"paste":return n&&va(t,Pt,e);case"dragstart":return n&&va(t,an,e);case"dragover":return n&&va(t,sn,e);case"dragend":return n&&va(t,ln,e);case"focus":return n&&va(t,gn,e);case"blur":return n&&va(t,vn,e);case"drop":return n&&va(t,rn,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ir),$o(this);Ho("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&$("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=ti(e),n._selection=e._selection?e._selection.clone():null),Te(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),$o(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||$o(this)}parseEditorState(e,t){return function(e,t,n){const r=ni(),o=_o,i=ko,a=wo,s=t._dirtyElements,l=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,_o=r,ko=!1,wo=t,bi(null);try{const o=t._nodes;jo(e.root,o),n&&n(),r._readOnly=!0,Bo(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,_o=o,ko=i,wo=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return $o(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Uo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ko(this,()=>{const r=so(),o=Vi();null!==r?r.dirty||Ji(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),_a("focus"),function(e){Ao();Ro()._deferred.push(e)}(()=>{n.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Ra(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ho("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}gi.version="0.42.0+dev.esm";let yi=null;function bi(e){yi=e}let xi=1;function _i(e,t){const n=wi(e,t);return void 0===n&&$(`registeredNode: Type ${t} not found`),n}function wi(e,t){return e._nodes.get(t)}const ki="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Si(e){return Xo(Ki(e))}function Ci(e){const t=document.activeElement;if(!Oa(t))return!1;const n=t.nodeName;return Xo(Ki(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Ni(t))}function Ei(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Ci(t)&&Ai(t)===e}catch(e){return!1}}function Ti(e){return e instanceof gi}function Ai(e){let t=e;for(;null!=t;){const e=Ni(t);if(Ti(e))return e;t=ba(t)}return null}function Ni(e){return e?e.__lexicalEditor:null}function Li(e){return Dr(e)||e.isToken()}function Ri(e){return Li(e)||e.isSegmented()}function Mi(e){return Pa(e)&&3===e.nodeType}function Oi(e){return Pa(e)&&9===e.nodeType}function Pi(e){let t=e;for(;null!=t;){if(Mi(t))return t;t=t.firstChild}return null}function Ii(e,t,n){const r=de[t];if(null!==n&&(e&r)===(n&r))return e;let o=e^r;return"subscript"===t?o&=-65:"superscript"===t?o&=-33:"lowercase"===t?(o&=-513,o&=-1025):"uppercase"===t?(o&=-257,o&=-1025):"capitalize"===t&&(o&=-257,o&=-513),o}function zi(e){return Or(e)||mr(e)||Xo(e)}function Di(e,t){const n=function(){const e=yi;return yi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=_o;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&$(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Ao(),No();const r=Ro(),o=Lo(),i=""+xi++;o._nodeMap.set(i,e),qo(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function ji(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=null!==i?i.__key:null,s=null!==o?o.__key:null,l=null!==o?o.getWritable():null,u=null!==i?i.getWritable():null;null===o&&(r.__first=a),null===i&&(r.__last=s),null!==l&&(l.__next=a),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Fi(e){No(),nr(e)&&$(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=Lo(),o=Ro(),i=r._nodeMap,a=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,a);const s=t.__key;o._dirtyType=1,qo(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function Bi(e){Ao();const t=Ro(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Hi(n);null!==e&&e.getWritable()}if(null!==e){const t=Hi(e);null!==t&&t.getWritable()}}}function $i(){if(To())return null;return Ro()._compositionKey}function Hi(e,t){const n=(t||Lo())._nodeMap.get(e);return void 0===n?null:n}function Wi(e,t){const n=Ui(e,Ro());return void 0!==n?Hi(n,t):null}function Ui(e,t){return e[`__lexicalKey_${t._key}`]}function Ki(e,t){let n=e;for(;null!=n;){const e=Wi(n,t);if(null!==e)return e;n=ba(n)}return null}function Gi(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Yi(e){return e.read(()=>Vi().getTextContent())}function Vi(){return qi(Lo())}function qi(e){return e._nodeMap.get("root")}function Ji(e){Ao();const t=Lo();null!==e&&(Object.isFrozen(e)&&$("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Qi(e){const t=Ro(),n=function(e,t){let n=e;for(;null!=n;){const e=Ui(n,t);if(void 0!==e)return e;n=ba(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Hi("root"):null}return Hi(n)}function Xi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Zi(e){const t=[];for(let n=e;null!==n;n=n._updating?null:n._parentEditor)t.push(n);return t}function ea(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ta(e){return Mi(e)?e.nodeValue:null}function na(e,t,n){const r=Ra(Sa(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=ta(o);const r=Ki(o);if(null!==t&&Or(r)){if((t===le||t===ce)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&ra(r,t,i,a,e)}}}function ra(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const a=i.isComposing();let s=t;if((a||o)&&(t.endsWith(le)&&(s=t.slice(0,-le.length)),o)){const e=ce;let t;for(;-1!==(t=s.indexOf(e));)s=s.slice(0,t)+s.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const l=i.getTextContent();if(o||s!==l){if(""===s){if(Bi(null),Y||V||X)i.remove();else{const e=Ro();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=lo(),l=i.getTextContentSize(),u=$i(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Wr(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!a||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!a))return void i.markDirty();const d=so();if(!Wr(d)||null===n||null===r)return void oa(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Mr(i.getTextContent());i.replace(e),i=e}oa(i,s,d)}}}function oa(e,t,n){if(e.setTextContent(t),Wr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=hs(e,o.offset,"clamp"))}}}function ia(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function aa(e,t,n){if(!function(e,t){return ia(e,t,"altKey")&&ia(e,t,"ctrlKey")&&ia(e,t,"shiftKey")&&ia(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const sa={ctrlKey:!U,metaKey:U},la={altKey:U,ctrlKey:!U};function ua(e){return"Backspace"===e.key}function ca(e){return aa(e,"a",sa)}function da(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=Ks(o);return n[t]=e,e}return o}function fa(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&$(`Type ${i} not in registeredNodes`);const l=s.klass;let u=e.get(l);void 0===u&&(u=new Map,e.set(l,u));const c=u.get(a),d="destroyed"===c&&"created"===o;(void 0===c||d)&&u.set(a,d?"updated":o)}function pa(e){const t=e.getType(),n=Lo();if(n._readOnly){const e=Ha(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function ha(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function ma(e,t){const n=e.offset;if("element"===e.type){return ha(e.getNode(),t,n)}{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?ha(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function ga(e){const t=Sa(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function va(e,t,n){return function(e,t,n){const r=Zi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const a=r[i],s=a._commands.get(t);if(void 0!==s){const t=s[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Ko(a,()=>{for(let t=0;t<o;t++)if(r[t](n,e))return void(i=!0)}),i)return i}}}return!1}(e,t,n)}function ya(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&$(`Reconciliation: could not find DOM element for node key ${t}`),n}function ba(e){const t=e.assignedSlot||e.parentElement;return Ia(t)?t.host:t}function xa(e){return Oi(e)?e:Oa(e)?e.ownerDocument:null}function _a(e){Ao();Ro()._updateTags.add(e)}function wa(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function ka(e){const t=xa(e);return t?t.defaultView:null}function Sa(e){const t=e._window;return null===t&&$("window object not found"),t}function Ca(e){return ei(e)||qo(e)&&e.isShadowRoot()}function Ea(e,t=!1){const n=e.constructor.clone(e);return Di(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function Ta(e){const t=Ro(),n=e.getType(),r=wi(t,n);void 0===r&&$(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||$(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||$(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&$(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function Aa(e,t){!ei(e.getParent())||qo(t)||Xo(t)||$("Only element or decorator nodes can be inserted in to the root node")}function Na(e){return(Xo(e)||qo(e)&&!e.canBeEmpty())&&!e.isInline()}function La(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Ra(e){return H?(e||window).getSelection():null}function Ma(e){return Oa(e)&&"A"===e.tagName}function Oa(e){return Pa(e)&&1===e.nodeType}function Pa(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Ia(e){return Pa(e)&&11===e.nodeType}function za(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function Da(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function ja(e){if(Xo(e)&&!e.isInline())return!0;if(!qo(e)||Ca(e))return!1;const t=e.getFirstChild(),n=null===t||mr(t)||Or(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Fa(){return Ro()}const Ba=new WeakMap,$a=new Map;function Ha(e){if(!e._readOnly&&e.isEmpty())return $a;e._readOnly||$("getCachedTypeToNodeMap called with a writable EditorState");let t=Ba.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),Ba.set(e,t)),t}function Wa(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ua(e){return function(e){return e[tr]=!0,e}(Wa(e))}function Ka(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Ga(e){return!0===e.__lexicalUnmanaged}function Ya(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Va(e,t){return Ya(e,t)&&e[t]!==rr[t]}function qa(e){return Ya(e.prototype,"exportDOM")}function Ja(e){const t=ve in e.prototype?e.prototype[ve]():void 0,n=function(e){if(!(e===rr||e.prototype instanceof rr)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{gi.version&&(n=JSON.parse(gi.version))}catch(e){}$(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Qo||e===Vo||e===rr}(e),r=!n&&Va(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(Va(e,"getType")||(e.getType=()=>i),Va(e,"clone")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(bi(t),new e)),Va(e,"importJSON")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Va(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Qa=(e,t)=>{let n=e;for(;null!=n&&!ei(n);){if(t(n))return n;n=n.getParent()}return null},Xa={next:"previous",previous:"next"};class Za{origin;constructor(e){this.origin=e}[Symbol.iterator](){return ks({hasNext:ss,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return fs(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return fs(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),a=new Map;for(let t=o.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();a.set(e.getKey(),e)}for(const e of r){if(a.size>0){const t=o.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&$(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(a).join(" ")})`)}else o.insert(e);o=fs(e,this.direction)}for(const e of a.values())e.remove();return this}}class es extends Za{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:gs(e,this.direction)}getParentCaret(e="root"){return fs(rs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=ns(this.direction);return fs(this.getNodeAtCaret(),e)||gs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof es&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const ts={root:ei,shadowRoot:Ca};function ns(e){return Xa[e]}function rs(e,t="root"){return ts[t](e)?null:e}class os extends Za{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:fs(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return qo(this.origin)?gs(this.origin,this.direction):null}getParentCaret(e="root"){return fs(rs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=ns(this.direction);return fs(this.getNodeAtCaret(),e)||gs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof os&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof os||e instanceof is)&&this.direction===e.direction&&this.origin.is(e.origin)}}class is extends Za{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ps(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return fs(rs(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ps(this.origin,ns(this.direction),this.offset)}isSamePointCaret(e){return e instanceof is&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof os||e instanceof is)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return fs(this.origin,this.direction)}}function as(e){return e instanceof is}function ss(e){return e instanceof os}function ls(e){return e instanceof es}const us={next:class extends is{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends is{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},cs={next:class extends os{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends os{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ds={next:class extends es{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends es{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function fs(e,t){return e?new cs[t](e):null}function ps(e,t,n){return e?new us[t](e,hs(e,n)):null}function hs(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&$(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function ms(e,t){return new bs(e,t)}function gs(e,t){return qo(e)?new ds[t](e):null}function vs(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class ys{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new ys(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return as(t)?function(e,t){const{direction:n,origin:r}=e,o=hs(r,"focus"===t?ns(n):n);return ms(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ms(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=as(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=as(n),o=t=>t.isSameNodeCaret(n)?null:vs(t)||t.getParentCaret(e);return ks({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class bs{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return ps(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function xs(e){return ws(e,fs(Vi(),e.direction))}function _s(e){return ws(e,e)}function ws(e,t){return e.direction!==t.direction&&$("$getCaretRange: anchor and focus must be in the same direction"),new ys(e,t,e.direction)}function ks(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function Ss(e,t){const n=As(e.origin,t.origin);switch(null===n&&$(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return Cs(n)}}function Cs(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,a=n;for(;i&&a;i=i.getNextSibling(),a=a.getNextSibling()){if(i.__key===o)return-1;if(a.__key===r)return 1}return null===i?1:-1}function Es(e,t){return t.is(e)}function Ts(e){return qo(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function As(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Ts(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Ts(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Es(e,r)||$("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Es(t,r)||$("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((qo(i)||Es(e,i))&&(qo(o)||Es(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||$("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Ns(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Hi(e);return null===t&&$(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Or(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),ps(i,t,o)):(qo(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=gs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Fs(r,n)}(i,e.offset,t))}function Ls(e,t){const{origin:n,direction:r}=t,o="next"===r;as(t)?e.set(n.getKey(),t.offset,"text"):ss(t)?Or(n)?e.set(n.getKey(),hs(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ls(t)&&qo(n)||$("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Rs(e){const t=so(),n=Wr(t)?t:ro();return Ms(n,e),Ji(n),n}function Ms(e,t){Ls(e.anchor,t.anchor),Ls(e.focus,t.focus)}function Os(e){const{anchor:t,focus:n}=e,r=Ns(t,"next"),o=Ns(n,"next"),i=Ss(r,o)<=0?"next":"previous";return ws(Fs(r,i),Fs(o,i))}function Ps(e){const{direction:t,origin:n}=e,r=fs(n,ns(t)).getNodeAtCaret();return r?fs(r,t):gs(n.getParentOrThrow(),t)}function Is(e,t="root"){const n=[e];for(let r=ls(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Ps(r));return n}function zs(e){return!!e&&e.origin.isAttached()}function Ds(e){const t=function(e){let t=e;for(;ls(t);){const e=vs(t);if(!ls(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Or(t.origin))return as(t)?t:ps(t.origin,n,n);const r=t.getAdjacentCaret();return ss(r)&&Or(r.origin)?ps(r.origin,n,ns(n)):t}function js(e){return as(e)&&e.offset!==hs(e.origin,e.direction)}function Fs(e,t){return e.direction===t?e:e.getFlipped()}function Bs(e,t){return e.direction===t?e:ws(Fs(e.focus,t),Fs(e.anchor,t))}function $s(e){const{origin:t,offset:n,direction:r}=e;if(n===hs(t,r))return e.getSiblingCaret();if(n===hs(t,ns(r)))return Ps(e.getSiblingCaret());const[o]=t.splitText(n);return Or(o)||$("$splitTextPointCaret: splitText must return at least one TextNode"),Fs(fs(o,"next"),r)}function Hs(e,t){return!0}function Ws(e,{$copyElementNode:t=Ea,$splitTextPointCaretNext:n=$s,rootMode:r="shadowRoot",$shouldSplit:o=Hs}={}){if(as(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(ls(e)&&(!n.canBeEmpty()||!o(n,"first")))return Ps(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function Us(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Ks(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function Gs(e,...t){const n=Ks(...t);n.length>0&&e.classList.add(...n)}function Ys(e,...t){const n=Ks(...t);n.length>0&&e.classList.remove(...n)}function Vs(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function qs(e){throw new Error(e)}const Js=new Map;function Qs(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Xs(e){let t=Js.get(e);return void 0===t&&(t=Qs(e),Js.set(e,t)),Object.freeze(t),t}function Zs(e){const t=Fa().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function el(e){return Zs(ei(e)?e:e.getParentOrThrow())}function tl(e){const t=el(e);return null!==t&&"rtl"===t.direction}function nl(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ri(t)&&null!==r){const[o,i]=r,a=e.isBackward(),s=o.getNode(),l=i.getNode(),u=t.is(s),c=t.is(l);if(u||c){const[r,o]=Yr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(u){f=a?o:r,d=void 0}else if(c){f=0,d=a?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=Ua(t)),t.__text=p)}}return t}function rl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return qo(t)||qs("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function ol(e){const t=e.getStyle(),n=Qs(t);Js.set(t,n)}function il(e,t){(Wr(e)?e.isCollapsed():Or(e)||qo(e))||qs("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Xs(Wr(e)?e.style:Or(e)?e.getStyle():e.getTextStyle()),r=Object.entries(t).reduce((t,[r,o])=>("function"==typeof o?t[r]=o(n[r],e):null===o?delete t[r]:t[r]=o,t),{...n}),o=function(e){let t="";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}(r);Wr(e)||Or(e)?e.setStyle(o):e.setTextStyle(o),Js.set(o,r)}function al(e,t){if(Wr(e)&&e.isCollapsed()){il(e,t);const n=e.anchor.getNode();qo(n)&&n.isEmpty()&&il(n,t)}!function(e){const t=so();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Wr(t))for(const e of Os(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Or(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ri(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Wr(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:r,offset:o,type:i}=t;t.set(n.key,n.offset,n.type),n.set(r,o,i)}}(t)}(e=>{il(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!qo(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),il(r,t))}}}function sl(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function ll(e){const t=ul(e);return null!==t&&"vertical-rl"===t.writingMode}function ul(e){const t=e.anchor.getNode();return qo(t)?Zs(t):el(t)}function cl(e,t){let n=ll(e)?!t:t;dl(e)&&(n=!n);const r=Ns(e.focus,n?"previous":"next");if(js(r))return!1;for(const e of xs(r)){if(ls(e))return!e.origin.isInline();if(!qo(e.origin)){if(Xo(e.origin))return!0;break}}return!1}function dl(e){const t=ul(e);return null!==t&&"rtl"===t.direction}function fl(e,t,n){const r=dl(e);let o;o=ll(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function pl(e,t,n){const r=Xs(e.getStyle());return null!==r&&r[t]||n}function hl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,a=e.focus,s=e.isBackward(),l=s?a.offset:i.offset,u=s?a.getNode():i.getNode();if(Wr(e)&&e.isCollapsed()&&""!==e.style){const n=Xs(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<o.length;e++){const i=o[e];if((0===e||0!==l||!i.is(u))&&Or(i)){const e=pl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function ml(e){throw new Error(e)}const gl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,vl=gl&&"documentMode"in document?document.documentMode:null;function yl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function bl(e){const t=Qa(e,e=>qo(e)&&!e.isInline());return qo(t)||ml(`Expected node ${e.__key} to have closest block element node.`),t}function xl(e){const t=so()||lo();let n;if(Wr(t))n=Ns(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=fs(r,"next"))}n=n||gs(Vi(),"previous").getFlipped().insert(li())}const r=_l(e,n),o=vs(r);return Rs(_s(ls(o)?Ds(o):r)),e.getLatest()}function _l(e,t,n){let r=Fs(t,"next");for(let e=r;e;e=Ws(e,n))r=e;return as(r)&&ml("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?li().append(e):e),Fs(fs(e.getLatest(),"next"),t.direction)}function wl(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function kl(e){const t=so();if(!Wr(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const a=Qa(o,e=>qo(e)&&!e.isInline());if(null===a)continue;const s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),e(a))}return n.size>0}gl&&"InputEvent"in window&&!vl&&new window.InputEvent("input");const Sl=Symbol.for("preact-signals");function Cl(){if(Nl>1)return void Nl--;let e,t=!1;for(;void 0!==Tl;){let n=Tl;for(Tl=void 0,Ll++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Il(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Ll=0,Nl--,t)throw e}let El,Tl;function Al(e){const t=El;El=void 0;try{return e()}finally{El=t}}let Nl=0,Ll=0,Rl=0;function Ml(e){if(void 0===El)return;let t=e.n;return void 0===t||t.t!==El?(t={i:0,S:e,p:El.s,n:void 0,t:El,e:void 0,x:void 0,r:t},void 0!==El.s&&(El.s.n=t),El.s=t,e.n=t,32&El.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=El.s,t.n=void 0,El.s.n=t,El.s=t),t):void 0}function Ol(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Pl(e,t){return new Ol(e,t)}function Il(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function zl(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Dl(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function jl(e,t){Ol.call(this,void 0),this.x=e,this.s=void 0,this.g=Rl-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Fl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Nl++;const n=El;El=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Bl(e),t}finally{El=n,Cl()}}}function Bl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fl(e)}function $l(e){if(El!==this)throw new Error("Out-of-order effect");Dl(this),El=e,this.f&=-2,8&this.f&&Bl(this),Cl()}function Hl(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function Wl(e,t){const n=new Hl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Ul(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Kl(e){throw new Error(e)}function Gl(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Gl(n[e],r[e]);return e}return t}Ol.prototype.brand=Sl,Ol.prototype.h=function(){return!0},Ol.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:Al(()=>{var e;null==(e=this.W)||e.call(this)}))},Ol.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&Al(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Ol.prototype.subscribe=function(e){return Wl(()=>{const t=this.value,n=El;El=void 0;try{e(t)}finally{El=n}},{name:"sub"})},Ol.prototype.valueOf=function(){return this.value},Ol.prototype.toString=function(){return this.value+""},Ol.prototype.toJSON=function(){return this.value},Ol.prototype.peek=function(){const e=El;El=void 0;try{return this.value}finally{El=e}},Object.defineProperty(Ol.prototype,"value",{get(){const e=Ml(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Ll>100)throw new Error("Cycle detected");this.v=e,this.i++,Rl++,Nl++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Cl()}}}}),jl.prototype=new Ol,jl.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Rl)return!0;if(this.g=Rl,this.f|=1,this.i>0&&!Il(this))return this.f&=-2,!0;const e=El;try{zl(this),El=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return El=e,Dl(this),this.f&=-2,!0},jl.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}Ol.prototype.S.call(this,e)},jl.prototype.U=function(e){if(void 0!==this.t&&(Ol.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},jl.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(jl.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Ml(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Hl.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},Hl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fl(this),zl(this),Nl++;const e=El;return El=this,$l.bind(this,e)},Hl.prototype.N=function(){2&this.f||(this.f|=2,this.o=Tl,Tl=this)},Hl.prototype.d=function(){this.f|=8,1&this.f||Bl(this)},Hl.prototype.dispose=function(){this.d()};const Yl=0,Vl=1,ql=2,Jl=3,Ql=4,Xl=5,Zl=6,eu=7;function tu(e){return e.id===Yl}function nu(e){return e.id===ql}function ru(e){return function(e){return e.id===Vl}(e)||Kl(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Vl)} temporary)`),Object.assign(e,{id:ql})}const ou=new Set;class iu{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Yl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Us;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;nu(t)||Kl(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:Jl,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:Ql,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==Ql&&Kl(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Xl)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Xl,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Xl&&Kl(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Xl)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Zl})}(n),()=>{const e=this.state;e.id!==eu&&Kl(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(eu)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Xl})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Zl&&Kl(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Zl)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:eu})}(t),n}getSignal(){return void 0===this._signal&&Kl("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Kl(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=Ql}(e)||Kl(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(Ql)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=Jl}(e)||Kl(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(Jl)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Kl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Kl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=eu}(e)||Kl(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(eu)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||ou}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=Xl})(e)||Kl(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const au={tag:ir};function su(){const e=Vi();e.isEmpty()&&e.append(li())}const lu={config:{setOptions:au,updateOptions:au},init:({$initialEditorState:e=su})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof oi)e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Zo,kr,fr,Ir,ai]},uu=Symbol.for("@lexical/extension/LexicalBuilder");function cu(){}function du(e){throw e}function fu(e){return Array.isArray(e)?e:[e]}const pu="0.42.0+dev.esm";class hu{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=pu,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[fu(lu)];for(const n of e)t.push(fu(n));return new hu(t)}static maybeFromEditor(e){const t=e[uu];return t&&(t.PACKAGE_VERSION!==pu&&Kl(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${pu}. A project should have exactly one copy of LexicalBuilder`),t instanceof hu||Kl("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=hu.maybeFromEditor(e);return void 0===t&&Kl("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(pi({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[uu]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=cu;function t(){try{e()}finally{e=cu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Vs(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Kl(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Kl("LexicalBuilder: addExtension called after finalization");const t=fu(e),[n]=t;"string"!=typeof n.name&&Kl("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Kl(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new iu(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Kl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Kl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=fu(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(nu(o))return;const i=n.extension.name;var a;tu(o)||Kl(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),tu(a=o)||Kl(`LexicalBuilder: Can not apply a temporary mark from state id ${String(a.id)} (expected ${String(Yl)} unmarked)`),o=Object.assign(a,{id:Vl}),n.state=o;const s=this.outgoingConfigEdges.get(i);if(s)for(const e of s.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=ru(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())tu(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Kl(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Vs(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},a=this.sortedExtensionReps();for(const s of a){const{extension:a}=s;if(void 0!==a.onError&&(e.onError=a.onError),void 0!==a.disableEvents&&(e.disableEvents=a.disableEvents),void 0!==a.parentEditor&&(e.parentEditor=a.parentEditor),void 0!==a.editable&&(e.editable=a.editable),void 0!==a.namespace&&(e.namespace=a.namespace),void 0!==a.$initialEditorState&&(e.$initialEditorState=a.$initialEditorState),a.nodes)for(const e of Ul(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&Kl(`LexicalBuilder: Extension ${a.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,s)}t.add(e)}if(a.html){if(a.html.export)for(const[e,t]of a.html.export.entries())r.set(e,t);a.html.import&&Object.assign(o,a.html.import)}a.theme&&Gl(i,a.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const s=Object.keys(o).length>0,l=r.size>0;(s||l)&&(e.html={},s&&(e.html.import=o),l&&(e.html.export=r));for(const t of a)t.init(e);return e.onError||(e.onError=du),e}}function mu(e){return e.canBeEmpty()}function gu(e,t,n=mu){return Vs(e.registerCommand(Zt,t=>{const n=so();if(!Wr(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>to(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=bl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=ro();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Be(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?nn:tn:en;return e.dispatchCommand(r,void 0)},ci),e.registerCommand(tn,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Wr(so()))return!1;const r="function"==typeof n?n:n.peek();return kl(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}const vu=new Set(["http:","https:","mailto:","sms:","tel:"]);class yu extends Vo{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new yu(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Gs(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Ma(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,o=this[r];e&&e[r]===o||(o?t[n]=o:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:wu,priority:1})}}static importJSON(e){return ku().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=Mu(e);try{const t=new URL(Mu(e));if(!vu.has(t.protocol))return"about:blank"}catch(t){return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){const t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){const t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){const t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){const n=Ea(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Wr(t))return!1;const r=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}}function bu(e){const t=Ns(e,"next");return[t,t.getFlipped()]}function xu(e,t){for(const n of t)if(n.origin.isAttached()){return void Ls(e,Ds(n))}}function _u(e){const t=so();let n=null,r=null;function o(){Wr(t)&&(xu(t.anchor,n),xu(t.focus,r),Be(t))}Wr(t)&&(n=bu(t.anchor),r=bu(t.focus));let i=!1;for(const t of gs(e,"next")){const n=t.origin;if(qo(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Ea(e);t.append(...r),n.append(t),i=!0}_l(n,Ps(t),{$shouldSplit:()=>!1})}}if(e.isAttached()){const t=e.getPreviousSibling();if(Su(t)&&t.shouldMergeAdjacentLink(e))return t.append(...e.getChildren()),e.remove(),void o();const n=e.getNextSibling();Su(n)&&e.shouldMergeAdjacentLink(n)&&(e.append(...n.getChildren()),n.remove(),i=!0)}if(i){if(!e.canBeEmpty()&&e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}o()}}function wu(e){let t=null;if(Ma(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=ku(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function ku(e="",t){return Ta(new yu(e,t))}function Su(e){return e instanceof yu}class Cu extends yu{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}static getType(){return"autolink"}static clone(e){return new Cu(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return Eu().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){const n=Eu(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Eu(e="",t){return Ta(new Cu(e,t))}function Tu(e){return e instanceof Cu}const Au=wt("TOGGLE_LINK_COMMAND");function Nu(e,t){if("element"===e.type){const n=e.getNode();qo(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Lu(e,t={}){let n;if(e&&"object"==typeof e){const{url:r,...o}=e;n=r,t={...o,...t}}else n=e;const{target:r,title:o}=t,i=void 0===t.rel?"noreferrer":t.rel,a=so();if(null===a||!Wr(a)&&!Kr(a))return;if(Kr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=Qa(e,e=>!Tu(e)&&Su(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Qa(e,e=>!Tu(e)&&Su(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=ku(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=Qa(e,e=>!Tu(e)&&Su(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const s=a.extract();if(null===n){const e=new Set;return void s.forEach(t=>{const n=Qa(t,e=>!Tu(e)&&Su(e));if(null!==n){const t=n.getKey();if(e.has(t))return;!function(e,t){const n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),o=r=>n.has(r.getKey())||qo(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),i=r.filter(o);if(i.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();const a=r.findIndex(o),s=r.findLastIndex(o),l=0===a,u=s===r.length-1;if(l)i.forEach(t=>e.insertBefore(t));else if(u)for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);else{for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);const t=r.slice(s+1);if(t.length>0){const n=Ea(e);i[i.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,s),e.add(t)}})}const l=new Set,u=e=>{l.has(e.getKey())||(l.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==i&&e.setRel(i),void 0!==o&&e.setTitle(o))};if(1===s.length){const e=s[0],t=Qa(e,Su);if(null!==t)return u(t)}!function(e){const t=so();if(!Wr(t))return e();const n=Be(t),r=n.isBackward(),o=Nu(n.anchor,r?-1:0),i=Nu(n.focus,r?0:-1),a=e();if(o||i){const e=so();if(Wr(e)){const t=e.clone();if(o){const e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+(r?1:0),"element")}if(i){const e=i.getParent();e&&t.focus.set(e.getKey(),i.getIndexWithinParent()+(r?0:1),"element")}Ji(Be(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=Qa(t,Su);if(a){u(a);continue}if(qo(t)){if(!t.isInline())continue;if(Su(t)){if(!(Tu(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){u(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const s=t.getPreviousSibling();Su(s)&&s.is(e)?s.append(t):(e=ku(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Ru=/^\+?[0-9\s()-]{5,}$/;function Mu(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Ru.test(e)?`tel:${e}`:`https://${e}`}function Ou(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Pu=/[.,;\s]/;function Iu(e){return Pu.test(e)}function zu(e){return Iu(e[e.length-1])}function Du(e){return Iu(e[0])}function ju(e){let t=e.getPreviousSibling();return qo(t)&&(t=t.getLastDescendant()),null===t||mr(t)||Or(t)&&zu(t.getTextContent())}function Fu(e){let t=e.getNextSibling();return qo(t)&&(t=t.getFirstDescendant()),null===t||mr(t)||Or(t)&&Du(t.getTextContent())}function Bu(e,t,n,r){if(!(e>0?Iu(n[e-1]):ju(r[0])))return!1;return t<n.length?Iu(n[t]):Fu(r[r.length-1])}function $u(e,t,n){const r=[],o=[],i=[];let a=0,s=0;const l=[...e];for(;l.length>0;){const e=l[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),a+=u):c>=n?i.push(e):o.push(e),s+=u,l.shift()}return[a,r,o,i]}function Hu(e,t,n,r){const o=Eu(r.url,r.attributes);if(1===e.length){let i,a=e[0];0===t?[i,a]=a.splitText(n):[,i,a]=a.splitText(t,n);const s=Mr(r.text);return s.setFormat(i.getFormat()),s.setDetail(i.getDetail()),s.setStyle(i.getStyle()),o.append(s),i.replace(o),a}if(e.length>1){const r=e[0];let i,a=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const s=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=a;if(i<n)if(a+o<=n)s.push(r);else{const[e,t]=r.splitText(n-i);s.push(e),l=t}a+=o}const u=so(),c=u?u.getNodes().find(Or):void 0,d=Mr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Wr(u)?d.select(u.anchor.offset,u.focus.offset):Kr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function Wu(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Or(o)||!o.isSimpleText())return Uu(e),void n(null,e.getURL())}const i=e.getTextContent(),a=Ou(i,t);if(null===a||a.text!==i)return Uu(e),void n(null,e.getURL());if(!ju(e)||!Fu(e))return Uu(e),void n(null,e.getURL());const s=e.getURL();if(s!==a.url&&(e.setURL(a.url),n(a.url,s)),a.attributes){const t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),n(a.attributes.rel||null,t));const r=e.getTarget();r!==a.attributes.target&&(e.setTarget(a.attributes.target||null),n(a.attributes.target||null,r))}}function Uu(e){const t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}const Ku={changeHandlers:[],excludeParents:[],matchers:[]};function Gu(e,t=Ku){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Vs(e.registerNodeTransform(kr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Tu(t))Wu(t,n,i);else if(!Su(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(Du(e.getTextContent())||!Tu(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Or(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e);!function(e,t,n){for(const t of e){const e=t.getParent();if(Tu(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=Ou(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(Bu(s+e,s+t,o,r)){const[o,,l,u]=$u(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Tu(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=Hu(l,s+e-o,s+t-o,i);r=d?[d,...u]:u,n(i.url,null),s=0}else s+=t;a=a.substring(t)}}(t,n,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();if(!Tu(r)||r.getIsUnlinked()){if(Tu(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!Du(a))return Uu(o),void n(null,o.getURL());if(s=a,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(s):/^\.[a-zA-Z0-9]{1,}/.test(s)){const r=o.getTextContent()+a,i=Ou(r,t);null!==i&&i.text===r&&(o.append(e),Wu(o,t,n),n(null,o.getURL()))}}var s;!Tu(i)||i.getIsUnlinked()||zu(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Uu(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(Au,e=>{const t=so();if(null!==e||!Wr(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Tu(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function Yu(e){throw new Error(e)}function Vu(e){let t=1,n=e.getParent();for(;null!=n;){if(fc(n)){const e=n.getParent();if(bc(e)){t++,n=e.getParent();continue}Yu("A ListItemNode must have a ListNode for a parent.")}return t}return t}function qu(e){let t=e.getParent();bc(t)||Yu("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),bc(n)&&(t=n);return t}function Ju(e){let t=[];const n=e.getChildren().filter(fc);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();bc(o)?t=t.concat(Ju(o)):t.push(r)}return t}function Qu(e){return fc(e)&&bc(e.getFirstChild())}function Xu(e){return dc().append(e)}function Zu(e,t){return fc(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function ec(e){const t=so();if(null!==t){let n=t.getNodes();if(Wr(t)){const r=t.getStartEndPoints();null===r&&Yu("insertList: anchor should be defined");const[o]=r,i=o.getNode(),a=i.getParent();if(Ca(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=li();i.append(e),n=e.select().getNodes()}}else if(Zu(i,n)){const t=yc(e);if(Ca(a)){i.replace(t);const e=dc();qo(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(fc(i)){const e=i.getParentOrThrow();tc(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(qo(o)&&o.isEmpty()&&!fc(o)&&!r.has(o.getKey())){nc(o,e);continue}let i=zi(o)?o.getParent():fc(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(bc(i)){if(!r.has(t)){const n=yc(e);tc(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(Ca(n)&&!r.has(t)){r.add(t),nc(i,e);break}i=n}}}}}function tc(e,t){e.splice(e.getChildrenSize(),0,t)}function nc(e,t){if(bc(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=dc();let i;if(tc(o,e.getChildren()),bc(n)&&t===n.getListType())n.append(o),bc(r)&&t===r.getListType()&&(tc(n,r.getChildren()),r.remove()),i=n;else if(bc(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=yc(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=so();return Wr(a)&&(i.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),i.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),i}function rc(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Qu(n)&&Qu(r)&&(rc(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function oc(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())fc(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),bc(r.getFirstChild())||n++)}function ic(e){const t=new Set;if(Qu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(Qu(r)&&Qu(o)){const n=o.getFirstChild();if(bc(n)){n.append(e);const o=r.getFirstChild();if(bc(o)){tc(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(Qu(r)){const t=r.getFirstChild();if(bc(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(Qu(o)){const t=o.getFirstChild();bc(t)&&t.append(e)}else if(bc(n)){const t=Ea(e),i=Ea(n);t.append(i),i.append(e),o?o.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function ac(e){if(Qu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(bc(n?n.getParent():void 0)&&fc(n)&&bc(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const r=Ea(e),o=Ea(t);r.append(o),e.getPreviousSiblings().forEach(e=>o.append(e));const i=Ea(e),a=Ea(t);i.append(a),tc(a,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(i),n.replace(e)}}}function sc(e=!1){const t=so();if(!Wr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(fc(n)&&0===n.getChildrenSize())r=n;else if(Or(n)){const e=n.getParent();fc(e)&&e.getChildren().every(e=>Or(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=qu(r),i=r.getParent();bc(i)||Yu("A ListItemNode must have a ListNode for a parent.");const a=i.getParent();let s;if(Ca(a))s=li(),o.insertAfter(s);else{if(!fc(a))return!1;s=Ea(a),a.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const l=r.getNextSiblings();if(l.length>0){const t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(i,r):1,n=Ea(i).setStart(t);if(fc(s)){const e=Ea(s);e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...l)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!fc(e)&&!bc(e))break;t=e}t.remove()}(r),!0}class lc extends Vo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();bc(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Vo,importDOM:{li:()=>({conversion:uc,priority:0})}})}constructor(e=1,t=void 0,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t,n){const r=t.getParent();!bc(r)||"check"!==r.getListType()||bc(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,n){const r=[],o=[],i=t.list,a=i?i.listitem:void 0;let s;i&&i.nested&&(s=i.nested.listitem);void 0!==a&&r.push(...Ks(a));if(i){const e=n.getParent(),t=bc(e)&&"check"===e.getListType(),a=n.getChecked();t&&!a||o.push(i.listitemUnchecked),t&&a||o.push(i.listitemChecked),t&&r.push(a?i.listitemChecked:i.listitemUnchecked)}if(void 0!==s){const e=Ks(s);n.getChildren().some(e=>bc(e))?r.push(...e):o.push(...e)}o.length>0&&Ys(e,...o);r.length>0&&Gs(e,...r)}(t,n.theme,this);const r=e?e.__style:"",o=this.__style;r!==o&&(""===o?t.removeAttribute("style"):t.style.cssText=o),function(e,t,n){const r=Xs(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Xs(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){const r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);const r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){const n=e[t];if(qo(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(fc(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!bc(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=Ea(n);let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(qo(e)||Yu("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(bc(n)||Yu("insertAfter: list node is not parent of list item node"),fc(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=Ea(n);r.forEach(e=>o.append(e)),e.insertAfter(o,t)}return e}remove(e){const t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&Qu(t)&&Qu(n)&&(rc(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){const n=Ea(this);return this.insertAfter(n,t),n}collapseAtStart(e){const t=li();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=fc(r);if(1===n.getChildrenSize())if(o)n.remove(),r.select();else{n.insertBefore(t),n.remove();const r=e.anchor,o=e.focus,i=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(i,r.offset,"element"),"element"===o.type&&o.getNode().is(this)&&o.set(i,o.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const t=this.getWritable();return t.__value=e,t}getChecked(){const e=this.getLatest();let t;const n=this.getParent();return bc(n)&&(t=n.getListType()),"check"===t?Boolean(e.__checked):void 0}setChecked(e){const t=this.getWritable();return t.__checked=e,t}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;fc(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&Yu("Invalid indent value."),(e=Math.floor(e))>=0||Yu("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(ic(this),t++):(ac(this),t--);return this}canInsertAfter(e){return fc(e)}canReplaceWith(e){return fc(e)}canMergeWith(e){return fc(e)||ui(e)}extractWithChild(e,t){if(!Wr(t))return!1;const n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return yc("bullet")}canMergeWhenEmpty(){return!0}}function uc(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return cc(t);if(e.classList.contains("joplin-checkbox"))for(const t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return cc(t.children[0]);const t=e.getAttribute("aria-checked");return{node:dc("true"===t||"false"!==t&&void 0)}}function cc(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:dc(e.hasAttribute("checked"))}}function dc(e){return Ta(new lc(void 0,e))}function fc(e){return e instanceof lc}class pc extends Vo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();bc(t)&&e.getListType()===t.getListType()&&rc(e,t)}(e),oc(e)},extends:Vo,importDOM:{ol:()=>({conversion:gc,priority:0}),ul:()=>({conversion:gc,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=vc[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const t=this.getWritable();return t.__start=e,t}createDOM(e,t){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,hc(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(hc(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return Oa(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){const r=n.find(fc)??this.getChildren().find(fc),o=r?()=>Ea(r):dc;let i=n;for(let e=0;e<n.length;e++){const t=n[e];fc(t)||(i===n&&(i=[...n]),i[e]=o().append(!qo(t)||bc(t)||t.isInline()?t:Mr(t.getTextContent())))}return super.splice(e,t,i)}extractWithChild(e){return fc(e)}}function hc(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Vu(n)-1,a=t%e.length,s=e[a],l=i[n.__tag];let u;const c=i.nested,d=i.checklist;if(void 0!==c&&c.list&&(u=c.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...Ks(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=Ks(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&Ys(e,...o),r.length>0&&Gs(e,...r)}function mc(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(fc(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{bc(e)&&t.push(Xu(e))})}else t.push(Xu(r))}return t}function gc(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=yc("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Oa(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?yc("check"):yc("bullet"));return{after:mc,node:n}}const vc={ol:"number",ul:"bullet"};function yc(e="number",t=1){return Ta(new pc(e,t))}function bc(e){return e instanceof pc}const xc=wt("UPDATE_LIST_START_COMMAND"),_c=wt("INSERT_UNORDERED_LIST_COMMAND"),wc=wt("INSERT_ORDERED_LIST_COMMAND"),kc=wt("REMOVE_LIST_COMMAND");function Sc(e,t){const n=Vs(e.registerCommand(wc,()=>(ec("number"),!0),1),e.registerCommand(xc,e=>{const{listNodeKey:t,newStart:n}=e,r=Hi(t);return!!bc(r)&&("number"===r.getListType()&&(r.setStart(n),oc(r)),!0)},1),e.registerCommand(_c,()=>(ec("bullet"),!0),1),e.registerCommand(kc,()=>(function(){const e=so();if(Wr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Zu(r,n))t.add(qu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(zi(r)){const e=yl(r,lc);null!=e&&t.add(qu(e))}}for(const n of t){let t=n;const r=Ju(n);for(const n of r){const r=li().setTextStyle(e.style).setTextFormat(e.format);tc(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&Ls(e.anchor,Ds(gs(r,"next"))),n.__key===e.focus.key&&Ls(e.focus,Ds(gs(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(Mt,()=>sc(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(lc,e=>{const t=e.getFirstChild();if(t){if(Or(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=so();Wr(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(kr,e=>{const t=e.getParent();if(fc(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}));return n}function Cc(e){const t=e=>{const t=e.getParent();if(bc(e.getFirstChild())||!bc(t))return;const n=Qa(e,e=>fc(e)&&bc(e.getParent())&&fc(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(fc(n)){const r=n.getPreviousSibling();if(fc(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;bc(n);){const e=n.getLastChild();if(!fc(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(bc(o)){const n=Vu(o);n+1<Vu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(pc,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(bc(e))for(const r of e.getChildren())if(fc(r)){t(r);const e=r.getFirstChild();bc(e)&&n.push(e)}}})}const Ec=D.createContext(null);function Tc(){const e=D.useContext(Ec);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var Ac,Nc,Lc={exports:{}},Rc={};var Mc=(Nc||(Nc=1,Lc.exports=function(){if(Ac)return Rc;Ac=1;var e=C(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Rc.Fragment=n,Rc.jsx=a,Rc.jsxs=a,Rc}()),Lc.exports);const Oc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Pc=Oc?D.useLayoutEffect:D.useEffect,Ic={tag:ir};function zc({initialConfig:e,children:t}){const n=D.useMemo(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:a}=e,s=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=pi({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update(()=>{const t=Vi();if(t.isEmpty()){const n=li();t.append(n);const r=Oc?document.activeElement:null;(null!==so()||null!==r&&r===e.getRootElement())&&n.select()}},Ic);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Ic);break}case"object":e.setEditorState(t,Ic);break;case"function":e.update(()=>{Vi().isEmpty()&&t(e)},Ic)}}(l,i),[l,s]},[]);return Pc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Mc.jsx(Ec.Provider,{value:n,children:t})}function Dc(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,a=e._selection;if(o)return 1;if(!(Wr(i)&&Wr(a)&&a.isCollapsed()&&i.isCollapsed()))return 0;const s=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||ei(n)||o.push(n)}return o}(t,n,r);if(0===s.length)return 0;if(s.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(a.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Or(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!Or(u)||!Or(l)||u.__mode!==l.__mode)return 0;const c=u.__text,d=l.__text;if(c===d)return 0;const f=i.anchor,p=a.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,m=p.offset,g=d.length-c.length;return 1===g&&m===h-1?2:-1===g&&m===h+1?3:-1===g&&m===h?4:0}function jc(e,t,n){let r=n(),o=0,i=r,a=0,s=null;return(l,u,c,d,f,p)=>{const h=n();if(p.has(cr)&&(i=r,a=o,s=l),p.has(or))return o=0,r=h,2;p.has(dr)&&s&&(r=i,o=a,l=s);const m=Dc(l,u,d,f,e.isComposing()),g=(()=>{const n=null===c||c.editor===e,i=p.has("history-push");if(!i&&n&&p.has(ir))return 0;if(1===m)return 2;if(null===l)return 1;const a=u._selection;if(!(d.size>0||f.size>0))return null!==a?0:2;const s="number"==typeof t?t:t.peek();if(!1===i&&0!==m&&m===o&&h<r+s&&n)return 0;if(1===d.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Wr(i)&&Wr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!Or(r)||!Or(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(d)[0],l,u))return 0}return 1})();return r=h,o=m,g}}function Fc(e){e.undoStack=[],e.redoStack=[],e.current=null}function Bc(e,t,n,r=Date.now){const o=jc(e,n,r);return Vs(e.registerCommand(Ft,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(hn,!0)),0===r.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(Bt,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(mn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(hn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(fn,()=>(Fc(t),!1),ci),e.registerCommand(pn,()=>(Fc(t),e.dispatchCommand(hn,!1),e.dispatchCommand(mn,!1),!0),ci),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:a,tags:s})=>{const l=t.current,u=t.redoStack,c=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=o(r,n,l,i,a,s);if(1===f)0!==u.length&&(t.redoStack=[],e.dispatchCommand(hn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(mn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}))}function $c({delay:e,externalHistoryState:t}){const[n]=Tc();return function(e,t,n=1e3){const r=D.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);D.useEffect(()=>Bc(e,r,n),[n,e,r])}(n,t,e),null}function Hc({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Tc();return D.useEffect(()=>{if(!n.hasNodes([pc,lc]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),D.useEffect(()=>Vs(Sc(n,{restoreNumbering:t}),e?Cc(n):()=>{}),[n,e,t]),function(e){D.useEffect(()=>Sc(e),[e])}(n),null}function Wc({maxIndent:e,$canIndent:t}){const[n]=Tc();return D.useEffect(()=>gu(n,e,t),[n,e,t]),null}function Uc(e,t){const n=Oi(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Gc.has(t.nodeName)){const n=Yc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ii&&t.insertAfter(hr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Kc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=qo(t)&&t.excludeFromCopy("html");let a=t;null!==r&&Or(t)&&(a=nl(r,t,"clone"));const s=qo(a)?a.getChildren():[],l=wi(e,a.getType());let u;u=l&&void 0!==l.exportDOM?l.exportDOM(e,a):a.exportDOM(e);const{element:c,after:d}=u;if(!c)return!1;const f=document.createDocumentFragment();for(let n=0;n<s.length;n++){const i=s[n],a=Kc(e,i,f,r);!o&&qo(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Oa(c)||Ia(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(Ia(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Gc=new Set(["STYLE","SCRIPT"]);function Yc(e,t,n,r,o=new Map,i){let a=[];if(Gc.has(e.nodeName))return a;let s=null;const l=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),u=l?l(e):null;let c=null;if(null!==u){c=u.after;const t=u.node;if(s=Array.isArray(t)?t[t.length-1]:t,null!==s){for(const[,e]of o)if(s=e(s,i),!s)break;s&&a.push(...Array.isArray(t)?t:[s])}null!=u.forChild&&o.set(e.nodeName,u.forChild)}const d=e.childNodes;let f=[];const p=(null==s||!Ca(s))&&(null!=s&&to(s)||r);for(let e=0;e<d.length;e++)f.push(...Yc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),Da(e)&&(f=Vc(e,f,p?()=>{const e=new ii;return n.push(e),e}:li)),null==s?f.length>0?a=a.concat(f):Da(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return za(e.nextSibling)&&za(e.previousSibling)}(e)&&(a=a.concat(hr())):qo(s)&&s.append(...f),a}function Vc(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(to(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&to(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function qc(e){throw new Error(e)}function Jc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Do(e[n]);Or(r)&&ol(r),t.push(r)}return t}(e.nodes);return Qc(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return Qc(n,Uc(n,e),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Wr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=so();if(Wr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([zr()]):n.insertText(r)}}}else t.insertRawText(a)}function Qc(e,t,n){e.dispatchCommand(St,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Wr(e)&&e.isCollapsed()){let t=null;const n=Ns(e.anchor,"previous");if(n)if(as(n))t=n.origin;else{const e=ws(n,gs(Vi(),"next").getFlipped());for(const n of e){if(Or(n.origin)){t=n.origin;break}if(qo(n.origin)&&!n.origin.isInline())break}}if(t&&Or(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function Xc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=qo(n)&&n.excludeFromCopy("html");let a=n;null!==t&&Or(a)&&(a=nl(t,a,"clone"));const s=qo(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&qc(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),qo(e)){const e=t.children;Array.isArray(e)||qc(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(a);Or(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=Xc(e,t,i,l.children);!o&&qo(n)&&a&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let e=0;e<l.children.length;e++){const t=l.children[e];r.push(t)}return o}let Zc=null;async function ed(e,t,n){if(null!==Zc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(td(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=Ra(o);if(null===r||null===a)return!1;const s=i.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(i.createTextNode("#")),r.append(s);const l=new Range;return l.setStart(s,0),l.setEnd(s,1),a.removeAllRanges(),a.addRange(l),new Promise((t,r)=>{const a=e.registerCommand(un,r=>(wl(r,ClipboardEvent)&&(a(),null!==Zc&&(o.clearTimeout(Zc),Zc=null),t(td(e,r,n))),!0),4);Zc=o.setTimeout(()=>{a(),Zc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function td(e,t,n){if(void 0===n){const t=Ra(e._window),r=so();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Ei(e,o,i))return!1;n=rd(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of nd)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}const nd=[["text/html",function(e,t=so()){return null==t&&qc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Vi().getChildren();for(let o=0;o<r.length;o++)Kc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=so()){return null==t&&qc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Vi().getChildren();for(let o=0;o<r.length;o++){Xc(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function rd(e=so()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Fa();for(const[r,o]of nd){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function od(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const id="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ad=id&&"documentMode"in document?document.documentMode:null,sd=id&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ld=!(!id||!("InputEvent"in window)||ad)&&"getTargetRanges"in new window.InputEvent("input"),ud=id&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),cd=id&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,dd=id&&/^(?=.*Chrome).*/i.test(navigator.userAgent),fd=id&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&sd&&!dd,pd=wt("DRAG_DROP_PASTE_FILE");class hd extends Vo{static getType(){return"quote"}static clone(e){return new hd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Gs(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:xd,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Oa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return md().updateFromJSON(e)}insertNewAfter(e,t){const n=li(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=li();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function md(){return Ta(new hd)}function gd(e){return e instanceof hd}class vd extends Vo{__tag;static getType(){return"heading"}static clone(e){return new vd(e.__tag,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e="h1",t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){const t=this.getWritable();return t.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Gs(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:bd,priority:0}),h2:e=>({conversion:bd,priority:0}),h3:e=>({conversion:bd,priority:0}),h4:e=>({conversion:bd,priority:0}),h5:e=>({conversion:bd,priority:0}),h6:e=>({conversion:bd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&yd(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>yd(e)?{conversion:e=>({node:_d("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Oa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return _d(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?li():_d(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=li();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?li():_d(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function yd(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function bd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=_d(t),null!==e.style&&(Ka(e,n),n.setFormat(e.style.textAlign))),{node:n}}function xd(e){const t=md();return null!==e.style&&(t.setFormat(e.style.textAlign),Ka(e,t)),{node:t}}function _d(e="h1"){return Ta(new vd(e))}function wd(e){return e instanceof vd}function kd(e){let t=null;if(wl(e,DragEvent)?t=e.dataTransfer:wl(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function Sd(e){return Xo(Ki(e))}function Cd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Ed(e){const t=Vs(e.registerCommand(Ct,e=>{const t=so();return!!Kr(t)&&(t.clear(),!0)},ci),e.registerCommand(Lt,e=>{const t=so();return Wr(t)?(t.deleteCharacter(e),!0):!!Kr(t)&&(t.deleteNodes(),!0)},ci),e.registerCommand(zt,e=>{const t=so();return!!Wr(t)&&(t.deleteWord(e),!0)},ci),e.registerCommand(Dt,e=>{const t=so();return!!Wr(t)&&(t.deleteLine(e),!0)},ci),e.registerCommand(Ot,t=>{const n=so();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)Jc(r,n,e);else if(Wr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},ci),e.registerCommand(It,()=>{const e=so();return!!Wr(e)&&(e.removeText(),!0)},ci),e.registerCommand(jt,e=>{const t=so();return!!Wr(t)&&(t.formatText(e),!0)},ci),e.registerCommand(on,e=>{const t=so();if(!Wr(t)&&!Kr(t))return!1;const n=t.getNodes();for(const t of n){const n=Qa(t,e=>qo(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},ci),e.registerCommand(Rt,e=>{const t=so();return!!Wr(t)&&(t.insertLineBreak(e),!0)},ci),e.registerCommand(Mt,()=>{const e=so();return!!Wr(e)&&(e.insertParagraph(),!0)},ci),e.registerCommand(en,()=>{const e=zr(),t=so();return Wr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),vo([e]),!0},ci),e.registerCommand(tn,()=>kl(e=>{const t=e.getIndent();e.setIndent(t+1)}),ci),e.registerCommand(nn,()=>kl(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),ci),e.registerCommand(Gt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Wr(t)){const n=ma(t.focus,!0);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Yt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Wr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Vi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=ma(t.focus,!1);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Ut,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),tl(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Wr(t))return!1;if(cl(t,!0)){const n=e.shiftKey;return e.preventDefault(),fl(t,n,!0),!0}return!1},ci),e.registerCommand(Ht,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),tl(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Wr(t))return!1;const n=e.shiftKey;return!!cl(t,!1)&&(e.preventDefault(),fl(t,n,!1),!0)},ci),e.registerCommand(Jt,t=>{if(Sd(t.target))return!1;const n=so();if(Wr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ei(n))return!1;const r=bl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(nn,void 0);if(cd&&"ko-KR"===navigator.language)return!1}else if(!Kr(n))return!1;return t.preventDefault(),e.dispatchCommand(Lt,!0)},ci),e.registerCommand(Xt,t=>{if(Sd(t.target))return!1;const n=so();return!(!Wr(n)&&!Kr(n))&&(t.preventDefault(),e.dispatchCommand(Lt,!1))},ci),e.registerCommand(Vt,t=>{const n=so();if(!Wr(n))return!1;if(Cd(n),null!==t){if((cd||ud||fd)&&ld)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Rt,!1)}return e.dispatchCommand(Mt,void 0)},ci),e.registerCommand(Qt,()=>!!Wr(so())&&(e.blur(),!0),ci),e.registerCommand(rn,t=>{const[,n]=kd(t);if(n.length>0){const r=od(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Ki(o);if(null!==i){const e=ro();if(Or(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}Ji(Be(e))}e.dispatchCommand(pd,n)}return t.preventDefault(),!0}return!!Wr(so())},ci),e.registerCommand(an,e=>{const[t]=kd(e),n=so();return!(t&&!Wr(n))},ci),e.registerCommand(sn,e=>{const[t]=kd(e),n=so();if(t&&!Wr(n))return!1;const r=od(e.clientX,e.clientY);if(null!==r){Xo(Ki(r.node))&&e.preventDefault()}return!0},ci),e.registerCommand(dn,()=>(function(e){const t=Vi();if(Wr(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Be(e),e}{const e=t.select(0,t.getChildrenSize());Ji(Be(e))}}(),!0),ci),e.registerCommand(un,t=>(ed(e,wl(t,ClipboardEvent)?t:null),!0),ci),e.registerCommand(cn,t=>(async function(e,t){await ed(t,wl(e,ClipboardEvent)?e:null),t.update(()=>{const e=so();Wr(e)?e.removeText():Kr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),ci),e.registerCommand(Pt,t=>{const[,n,r]=kd(t);if(n.length>0&&!r)return e.dispatchCommand(pd,n),!0;if(Pa(t.target)&&Ci(t.target))return!1;return null!==so()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=so(),r=wl(e,InputEvent)||wl(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&Jc(r,n,t)},{tag:"paste"})}(t,e),!0)},ci),e.registerCommand(qt,e=>{const t=so();return Wr(t)&&Cd(t),!1},ci),e.registerCommand(Zt,e=>{const t=so();return Wr(t)&&Cd(t),!1},ci));return t}function Td(e,t,n,r){D.useEffect(()=>{e.hasNodes([Cu])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),D.useEffect(()=>Gu(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Ad({matchers:e,onChange:t,excludeParents:n}){const[r]=Tc();return Td(r,e,t,n),null}const Nd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Ld(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Rd(){return function(e){const[t]=Tc(),n=D.useMemo(()=>e(t),[t,e]),[r,o]=D.useState(()=>n.initialValueFn()),i=D.useRef(r);return Nd(()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t(e=>{i.current=e,o(e)})},[n,e]),r}(Ld)}const Md={black:"#000",white:"#fff"},Od="#e57373",Pd="#ef5350",Id="#f44336",zd="#d32f2f",Dd="#c62828",jd="#f3e5f5",Fd="#ce93d8",Bd="#ba68c8",$d="#ab47bc",Hd="#9c27b0",Wd="#7b1fa2",Ud="#e3f2fd",Kd="#90caf9",Gd="#42a5f5",Yd="#1976d2",Vd="#1565c0",qd="#4fc3f7",Jd="#29b6f6",Qd="#03a9f4",Xd="#0288d1",Zd="#01579b",ef="#81c784",tf="#66bb6a",nf="#4caf50",rf="#388e3c",of="#2e7d32",af="#1b5e20",sf="#ffb74d",lf="#ffa726",uf="#ff9800",cf="#f57c00",df="#e65100",ff={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"};function pf(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var hf=Object.freeze({__proto__:null,default:pf}),mf="$$material";function gf(){return gf=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},gf.apply(null,arguments)}function vf(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var yf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?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=void 0!==e.speedy&&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(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),bf="-ms-",xf="-moz-",_f="-webkit-",wf="comm",kf="rule",Sf="decl",Cf="@keyframes",Ef=Math.abs,Tf=String.fromCharCode,Af=Object.assign;function Nf(e){return e.trim()}function Lf(e,t,n){return e.replace(t,n)}function Rf(e,t){return e.indexOf(t)}function Mf(e,t){return 0|e.charCodeAt(t)}function Of(e,t,n){return e.slice(t,n)}function Pf(e){return e.length}function If(e){return e.length}function zf(e,t){return t.push(e),e}var Df=1,jf=1,Ff=0,Bf=0,$f=0,Hf="";function Wf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Df,column:jf,length:a,return:""}}function Uf(e,t){return Af(Wf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kf(){return $f=Bf>0?Mf(Hf,--Bf):0,jf--,10===$f&&(jf=1,Df--),$f}function Gf(){return $f=Bf<Ff?Mf(Hf,Bf++):0,jf++,10===$f&&(jf=1,Df++),$f}function Yf(){return Mf(Hf,Bf)}function Vf(){return Bf}function qf(e,t){return Of(Hf,e,t)}function Jf(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 Qf(e){return Df=jf=1,Ff=Pf(Hf=e),Bf=0,[]}function Xf(e){return Hf="",e}function Zf(e){return Nf(qf(Bf-1,np(91===e?e+2:40===e?e+1:e)))}function ep(e){for(;($f=Yf())&&$f<33;)Gf();return Jf(e)>2||Jf($f)>3?"":" "}function tp(e,t){for(;--t&&Gf()&&!($f<48||$f>102||$f>57&&$f<65||$f>70&&$f<97););return qf(e,Vf()+(t<6&&32==Yf()&&32==Gf()))}function np(e){for(;Gf();)switch($f){case e:return Bf;case 34:case 39:34!==e&&39!==e&&np($f);break;case 40:41===e&&np(e);break;case 92:Gf()}return Bf}function rp(e,t){for(;Gf()&&e+$f!==57&&(e+$f!==84||47!==Yf()););return"/*"+qf(t,Bf-1)+"*"+Tf(47===e?e:Gf())}function op(e){for(;!Jf(Yf());)Gf();return qf(e,Bf)}function ip(e){return Xf(ap("",null,null,null,[""],e=Qf(e),0,[0],e))}function ap(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,_=i,w=r,k=b;g;)switch(h=y,y=Gf()){case 40:if(108!=h&&58==Mf(k,d-1)){-1!=Rf(k+=Lf(Zf(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Zf(y);break;case 9:case 10:case 13:case 32:k+=ep(h);break;case 92:k+=tp(Vf()-1,7);continue;case 47:switch(Yf()){case 42:case 47:zf(lp(rp(Gf(),Vf()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=Pf(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=Lf(k,/\f/g,"")),p>0&&Pf(k)-d&&zf(p>32?up(k+";",r,n,d-1):up(Lf(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(zf(w=sp(k,t,n,u,c,o,s,b,x=[],_=[],d),i),123===y)if(0===c)ap(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Mf(k,3)?100:f){case 100:case 108:case 109:case 115:ap(e,w,w,r&&zf(sp(e,w,w,0,0,o,s,b,o,x=[],d),_),o,_,d,s,r?x:_);break;default:ap(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Pf(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Kf())continue;switch(k+=Tf(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Pf(k)-1)*v,v=1;break;case 64:45===Yf()&&(k+=Zf(Gf())),f=Yf(),c=d=Pf(b=k+=op(Vf())),y++;break;case 45:45===h&&2==Pf(k)&&(m=0)}}return i}function sp(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=If(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Of(e,d+1,d=Ef(m=a[h])),b=e;v<p;++v)(b=Nf(m>0?f[v]+" "+y:Lf(y,/&\f/g,f[v])))&&(l[g++]=b);return Wf(e,t,n,0===o?kf:s,l,u,c)}function lp(e,t,n){return Wf(e,t,n,wf,Tf($f),Of(e,2,-2),0)}function up(e,t,n,r){return Wf(e,t,n,Sf,Of(e,0,r),Of(e,r+1,-1),r)}function cp(e,t){for(var n="",r=If(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dp(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Sf:return e.return=e.return||e.value;case wf:return"";case Cf:return e.return=e.value+"{"+cp(e.children,r)+"}";case kf:e.value=e.props.join(",")}return Pf(n=cp(e.children,r))?e.return=e.value+"{"+n+"}":""}function fp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pp=function(e,t,n){for(var r=0,o=0;r=o,o=Yf(),38===r&&12===o&&(t[n]=1),!Jf(o);)Gf();return qf(e,Bf)},hp=function(e,t){return Xf(function(e,t){var n=-1,r=44;do{switch(Jf(r)){case 0:38===r&&12===Yf()&&(t[n]=1),e[n]+=pp(Bf-1,t,n);break;case 2:e[n]+=Zf(r);break;case 4:if(44===r){e[++n]=58===Yf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Tf(r)}}while(r=Gf());return e}(Qf(e),t))},mp=new WeakMap,gp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||mp.get(n))&&!r){mp.set(e,!0);for(var o=[],i=hp(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},vp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},yp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},bp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},xp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},_p=function(e,t,n){bp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),xp(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!bp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),xp(e)))};function wp(e,t){switch(function(e,t){return 45^Mf(e,0)?(((t<<2^Mf(e,0))<<2^Mf(e,1))<<2^Mf(e,2))<<2^Mf(e,3):0}(e,t)){case 5103:return _f+"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 _f+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _f+e+xf+e+bf+e+e;case 6828:case 4268:return _f+e+bf+e+e;case 6165:return _f+e+bf+"flex-"+e+e;case 5187:return _f+e+Lf(e,/(\w+).+(:[^]+)/,_f+"box-$1$2"+bf+"flex-$1$2")+e;case 5443:return _f+e+bf+"flex-item-"+Lf(e,/flex-|-self/,"")+e;case 4675:return _f+e+bf+"flex-line-pack"+Lf(e,/align-content|flex-|-self/,"")+e;case 5548:return _f+e+bf+Lf(e,"shrink","negative")+e;case 5292:return _f+e+bf+Lf(e,"basis","preferred-size")+e;case 6060:return _f+"box-"+Lf(e,"-grow","")+_f+e+bf+Lf(e,"grow","positive")+e;case 4554:return _f+Lf(e,/([^-])(transform)/g,"$1"+_f+"$2")+e;case 6187:return Lf(Lf(Lf(e,/(zoom-|grab)/,_f+"$1"),/(image-set)/,_f+"$1"),e,"")+e;case 5495:case 3959:return Lf(e,/(image-set\([^]*)/,_f+"$1$`$1");case 4968:return Lf(Lf(e,/(.+:)(flex-)?(.*)/,_f+"box-pack:$3"+bf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_f+e+e;case 4095:case 3583:case 4068:case 2532:return Lf(e,/(.+)-inline(.+)/,_f+"$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(Pf(e)-1-t>6)switch(Mf(e,t+1)){case 109:if(45!==Mf(e,t+4))break;case 102:return Lf(e,/(.+:)(.+)-([^]+)/,"$1"+_f+"$2-$3$1"+xf+(108==Mf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rf(e,"stretch")?wp(Lf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Mf(e,t+1))break;case 6444:switch(Mf(e,Pf(e)-3-(~Rf(e,"!important")&&10))){case 107:return Lf(e,":",":"+_f)+e;case 101:return Lf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_f+(45===Mf(e,14)?"inline-":"")+"box$3$1"+_f+"$2$3$1"+bf+"$2box$3")+e}break;case 5936:switch(Mf(e,t+11)){case 114:return _f+e+bf+Lf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _f+e+bf+Lf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _f+e+bf+Lf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _f+e+bf+e+e}return e}var kp,Sp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Sf:e.return=wp(e.value,e.length);break;case Cf:return cp([Uf(e,{value:Lf(e.value,"@","@"+_f)})],r);case kf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cp([Uf(e,{props:[Lf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cp([Uf(e,{props:[Lf(t,/:(plac\w+)/,":"+_f+"input-$1")]}),Uf(e,{props:[Lf(t,/:(plac\w+)/,":-moz-$1")]}),Uf(e,{props:[Lf(t,/:(plac\w+)/,bf+"input-$1")]})],r)}return""})}}],Cp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;kp=function(e){var t=e.match(Cp);if(t)return t[t.length-1]};var Ep,Tp,Ap,Np,Lp=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||Sp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=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++)a[t[n]]=!0;s.push(e)});var l=[gp,vp];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(yp(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),_p);var u,c=[dp,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==wf&&u.insert(e.value+"{}"))}],d=function(e){var t=If(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,c));i=function(e,t,n,r){if(u=n,kp){var o=kp(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){cp(ip(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new yf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Rp={exports:{}},Mp={};function Op(){return Tp||(Tp=1,Rp.exports=function(){if(Ep)return Mp;Ep=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return Mp.AsyncMode=l,Mp.ConcurrentMode=u,Mp.ContextConsumer=s,Mp.ContextProvider=a,Mp.Element=t,Mp.ForwardRef=c,Mp.Fragment=r,Mp.Lazy=h,Mp.Memo=p,Mp.Portal=n,Mp.Profiler=i,Mp.StrictMode=o,Mp.Suspense=d,Mp.isAsyncMode=function(e){return x(e)||b(e)===l},Mp.isConcurrentMode=x,Mp.isContextConsumer=function(e){return b(e)===s},Mp.isContextProvider=function(e){return b(e)===a},Mp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mp.isForwardRef=function(e){return b(e)===c},Mp.isFragment=function(e){return b(e)===r},Mp.isLazy=function(e){return b(e)===h},Mp.isMemo=function(e){return b(e)===p},Mp.isPortal=function(e){return b(e)===n},Mp.isProfiler=function(e){return b(e)===i},Mp.isStrictMode=function(e){return b(e)===o},Mp.isSuspense=function(e){return b(e)===d},Mp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Mp.typeOf=b,Mp}()),Rp.exports}var Pp=function(){if(Np)return Ap;Np=1;var e=Op(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Ap=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},Ap}(),Ip=m(Pp);function zp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Dp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},jp=function(e,t,n){Dp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Fp={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},Bp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$p="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Hp=/[A-Z]|^ms/g,Wp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Up=function(e){return 45===e.charCodeAt(1)},Kp=function(e){return null!=e&&"boolean"!=typeof e},Gp=fp(function(e){return Up(e)?e:e.replace(Hp,"-$&").toLowerCase()}),Yp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wp,function(e,t,n){return nh={name:t,styles:n,next:nh},t})}return 1===Fp[e]||Up(e)||"number"!=typeof t||0===t?t:t+"px"},Vp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qp=["normal","none","initial","inherit","unset"],Jp=Yp,Qp=/^-ms-/,Xp=/-(.)/g,Zp={};Yp=function(e,t){if("content"===e&&("string"!=typeof t||-1===qp.indexOf(t)&&!Vp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Jp(e,t);return""===n||Up(e)||-1===e.indexOf("-")||void 0!==Zp[e]||(Zp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Qp,"ms-").replace(Xp,function(e,t){return t.toUpperCase()})+"?")),n};var eh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function th(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(eh);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return nh={name:o.name,styles:o.styles,next:nh},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)nh={name:a.name,styles:a.styles,next:nh},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=th(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Kp(s)&&(r+=Gp(i)+":"+Yp(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(eh);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=th(e,t,a);switch(i){case"animation":case"animationName":r+=Gp(i)+":"+l+";";break;default:"undefined"===i&&console.error($p),r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Kp(a[u])&&(r+=Gp(i)+":"+Yp(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=nh,l=n(e);return nh=s,th(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace(Wp,function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var nh,rh=/label:\s*([^\s;{]+)\s*(;|$)/g;function oh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";nh=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=th(n,t,i);else{var a=i;void 0===a[0]&&console.error(Bp),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=th(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(Bp),o+=l[s]}rh.lastIndex=0;for(var u,c="";null!==(u=rh.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:nh,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var ih=!!F.useInsertionEffect&&F.useInsertionEffect,ah=ih||function(e){return e()},sh=ih||D.useLayoutEffect,lh=D.createContext("undefined"!=typeof HTMLElement?Lp({key:"css"}):null);lh.displayName="EmotionCacheContext";var uh=lh.Provider,ch=function(e){return D.forwardRef(function(t,n){var r=D.useContext(lh);return e(t,r,n)})},dh=D.createContext({});dh.displayName="EmotionThemeContext";var fh={}.hasOwnProperty,ph=function(e){var t=e.split(".");return t[t.length-1]},hh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?ph(t[1]):void 0},mh=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),gh=function(e){return e.replace(/\$/g,"-")},vh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",bh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)fh.call(t,r)&&(n[r]=t[r]);if(n[vh]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=hh(t[n]);if(r){if(mh.has(r))break;if(/^[A-Z]/.test(r))return gh(r)}}}((new Error).stack);o&&(n[yh]=o)}return n},xh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Dp(t,n,r),ah(function(){return jp(t,n,r)}),null},_h=ch(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[vh],i=[r],a="";"string"==typeof e.className?a=zp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=oh(i,void 0,D.useContext(dh));if(-1===s.name.indexOf("-")){var l=e[yh];l&&(s=oh([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)fh.call(e,c)&&"css"!==c&&c!==vh&&c!==yh&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),D.createElement(D.Fragment,null,D.createElement(xh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,u))});_h.displayName="EmotionCssPropInternal";var wh,kh,Sh=_h,Ch=function(e,t){var n=arguments;if(null==t||!fh.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Sh,o[1]=bh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return D.createElement.apply(null,o)};wh=Ch||(Ch={}),kh||(kh=wh.JSX||(wh.JSX={}));var Eh=!1,Th=ch(function(e,t){!Eh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Eh=!0);var n=oh([e.styles],void 0,D.useContext(dh)),r=D.useRef();return sh(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),sh(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&jp(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Ah(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oh(t)}function Nh(){var e=Ah.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_"}}}Th.displayName="EmotionGlobal";var Lh=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Rh=function(e){var t=e.cache,n=e.serializedArr;return ah(function(){for(var e=0;e<n.length;e++)jp(t,n[e],!1)}),null},Mh=ch(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=oh(o,t.registered);return r.push(a),Dp(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=zp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Lh(r))},theme:D.useContext(dh)},a=e.children(i);return n=!0,D.createElement(D.Fragment,null,D.createElement(Rh,{cache:t,serializedArr:r}),a)});Mh.displayName="EmotionClassNames";var Oh="undefined"!=typeof document,Ph="undefined"!=typeof jest||"undefined"!=typeof vi;if(Oh&&!Ph){var Ih="undefined"!=typeof globalThis?globalThis:Oh?window:global,zh="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Ih[zh]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Ih[zh]=!0}var Dh=/^((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)-.*))$/,jh=fp(function(e){return Dh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Fh=function(e){return"theme"!==e},Bh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jh:Fh},$h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Hh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Wh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Dp(t,n,r),ah(function(){return jp(t,n,r)}),null},Uh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=$h(t,n,i),l=s||Bh(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];void 0===f[0]&&console.error(Hh),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Hh),d.push(c[h],f[h])}var m=ch(function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(dh)}"string"==typeof e.className?i=zp(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=oh(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?Bh(r):l,g={};for(var v in e)u&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement(Wh,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,gf({},n,r,{shouldForwardProp:$h(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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"].forEach(function(e){Uh[e]=Uh(e)});var Kh,Gh,Yh,Vh,qh,Jh={exports:{}};function Qh(){if(Gh)return Kh;Gh=1;return Kh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Xh(){if(Vh)return Yh;Vh=1;var e=Qh();function t(){}function n(){}return n.resetWarningCache=t,Yh=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Zh(){return qh||(qh=1,Jh.exports=Xh()()),Jh.exports}var em=m(Zh());const tm=new Map;function nm(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Mc.jsx(Th,{styles:r})}
|
|
17
17
|
/**
|
|
18
18
|
* @mui/styled-engine v5.18.0
|
|
19
19
|
*
|
|
20
20
|
* @license MIT
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/function tm(e,t){return Hh(e,t)}const nm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rm=[];function om(e){return rm[0]=e,nh(rm)}var im=Object.freeze({__proto__:null,GlobalStyles:em,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=D.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Zh.has(e))return Zh.get(e);const r=function(e,t){const n=Ap({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Zh.set(e,r),r},[t,n]);return t||n?Lc.jsx(sh,{value:o,children:r}):r},ThemeContext:uh,css:Eh,default:tm,internal_processStyles:nm,internal_serializeStyles:om,keyframes:Th});function am(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function sm(e){if(D.isValidElement(e)||!am(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=sm(e[n])}),t}function lm(e,t,n={clone:!0}){const r=n.clone?hf({},e):e;return am(e)&&am(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:am(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&am(e[o])?r[o]=lm(e[o],t[o],n):n.clone?r[o]=am(t[o])?sm(t[o]):t[o]:r[o]=t[o]}),r}var um=Object.freeze({__proto__:null,default:lm,isPlainObject:am});const cm=["values","unit","step"];function dm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=mf(e,cm),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>hf({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return hf({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const fm={borderRadius:4};function pm(e,t){return t?lm(e,t,{clone:!1}):e}const hm={xs:0,sm:600,md:900,lg:1200,xl:1536},mm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hm[e]}px)`};function gm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||mm;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||mm;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||hm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function vm(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function ym(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function bm({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function xm(e){if("string"!=typeof e)throw new Error(df(7));return e.charAt(0).toUpperCase()+e.slice(1)}var _m=Object.freeze({__proto__:null,default:xm});function wm(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function km(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:wm(e,n)||r,t&&(o=t(o,r,e)),o}function Sm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=wm(e.theme,r)||{};return gm(e,i,e=>{let r=km(a,o,e);return e===r&&"string"==typeof e&&(r=km(a,o,`${t}${"default"===e?"":xm(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Cm={m:"margin",p:"padding"},Em={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Am=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Tm[e])return[e];e=Tm[e]}const[t,n]=e.split(""),r=Cm[t],o=Em[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Nm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Lm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Rm(e,t,n,r){var o;const i=null!=(o=wm(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Mm(e){return Rm(e,"spacing",8)}function Om(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Pm(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Om(t,n),e),{})}(Am(n),r);return gm(e,e[n],o)}function zm(e,t){const n=Mm(e.theme);return Object.keys(e).map(r=>Pm(e,t,r,n)).reduce(pm,{})}function Im(e){return zm(e,Nm)}function Dm(e){return zm(e,Lm)}function jm(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?pm(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Fm(e){return"number"!=typeof e?e:`${e}px solid`}function Bm(e,t){return Sm({prop:e,themeKey:"borders",transform:t})}Im.propTypes={},Im.filterProps=Nm,Dm.propTypes={},Dm.filterProps=Lm;const $m=Bm("border",Fm),Hm=Bm("borderTop",Fm),Wm=Bm("borderRight",Fm),Um=Bm("borderBottom",Fm),Km=Bm("borderLeft",Fm),Gm=Bm("borderColor"),Vm=Bm("borderTopColor"),Ym=Bm("borderRightColor"),qm=Bm("borderBottomColor"),Jm=Bm("borderLeftColor"),Qm=Bm("outline",Fm),Xm=Bm("outlineColor"),Zm=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Rm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Om(t,e)});return gm(e,e.borderRadius,n)}return null};Zm.propTypes={},Zm.filterProps=["borderRadius"],jm($m,Hm,Wm,Um,Km,Gm,Vm,Ym,qm,Jm,Zm,Qm,Xm);const eg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Rm(e.theme,"spacing",8),n=e=>({gap:Om(t,e)});return gm(e,e.gap,n)}return null};eg.propTypes={},eg.filterProps=["gap"];const tg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Rm(e.theme,"spacing",8),n=e=>({columnGap:Om(t,e)});return gm(e,e.columnGap,n)}return null};tg.propTypes={},tg.filterProps=["columnGap"];const ng=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Rm(e.theme,"spacing",8),n=e=>({rowGap:Om(t,e)});return gm(e,e.rowGap,n)}return null};ng.propTypes={},ng.filterProps=["rowGap"];function rg(e,t){return"grey"===t?t:e}jm(eg,tg,ng,Sm({prop:"gridColumn"}),Sm({prop:"gridRow"}),Sm({prop:"gridAutoFlow"}),Sm({prop:"gridAutoColumns"}),Sm({prop:"gridAutoRows"}),Sm({prop:"gridTemplateColumns"}),Sm({prop:"gridTemplateRows"}),Sm({prop:"gridTemplateAreas"}),Sm({prop:"gridArea"}));function og(e){return e<=1&&0!==e?100*e+"%":e}jm(Sm({prop:"color",themeKey:"palette",transform:rg}),Sm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rg}),Sm({prop:"backgroundColor",themeKey:"palette",transform:rg}));const ig=Sm({prop:"width",transform:og}),ag=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||hm[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:og(t)}};return gm(e,e.maxWidth,t)}return null};ag.filterProps=["maxWidth"];const sg=Sm({prop:"minWidth",transform:og}),lg=Sm({prop:"height",transform:og}),ug=Sm({prop:"maxHeight",transform:og}),cg=Sm({prop:"minHeight",transform:og});Sm({prop:"size",cssProperty:"width",transform:og}),Sm({prop:"size",cssProperty:"height",transform:og});jm(ig,ag,sg,lg,ug,cg,Sm({prop:"boxSizing"}));const dg={border:{themeKey:"borders",transform:Fm},borderTop:{themeKey:"borders",transform:Fm},borderRight:{themeKey:"borders",transform:Fm},borderBottom:{themeKey:"borders",transform:Fm},borderLeft:{themeKey:"borders",transform:Fm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zm},color:{themeKey:"palette",transform:rg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rg},backgroundColor:{themeKey:"palette",transform:rg},p:{style:Dm},pt:{style:Dm},pr:{style:Dm},pb:{style:Dm},pl:{style:Dm},px:{style:Dm},py:{style:Dm},padding:{style:Dm},paddingTop:{style:Dm},paddingRight:{style:Dm},paddingBottom:{style:Dm},paddingLeft:{style:Dm},paddingX:{style:Dm},paddingY:{style:Dm},paddingInline:{style:Dm},paddingInlineStart:{style:Dm},paddingInlineEnd:{style:Dm},paddingBlock:{style:Dm},paddingBlockStart:{style:Dm},paddingBlockEnd:{style:Dm},m:{style:Im},mt:{style:Im},mr:{style:Im},mb:{style:Im},ml:{style:Im},mx:{style:Im},my:{style:Im},margin:{style:Im},marginTop:{style:Im},marginRight:{style:Im},marginBottom:{style:Im},marginLeft:{style:Im},marginX:{style:Im},marginY:{style:Im},marginInline:{style:Im},marginInlineStart:{style:Im},marginInlineEnd:{style:Im},marginBlock:{style:Im},marginBlockStart:{style:Im},marginBlockEnd:{style:Im},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:eg},rowGap:{style:ng},columnGap:{style:tg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:og},maxWidth:{style:ag},minWidth:{transform:og},height:{transform:og},maxHeight:{transform:og},minHeight:{transform:og},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fg(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=wm(n,s)||{};if(u)return u(o);return gm(o,t,t=>{let n=km(c,l,t);return t===n&&"string"==typeof t&&(n=km(c,l,`${e}${"default"===t?"":xm(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:dg;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=vm(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=pm(u,e(n,o,i,s));else{const e=gm({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?u=pm(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=pm(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ym(l,u)}:ym(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const pg=fg();function hg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}pg.filterProps=["sx"];const mg=["breakpoints","palette","spacing","shape"];function gg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=mf(e,mg),s=dm(n),l=function(e=8){if(e.mui)return e;const t=Mm({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let u=lm({breakpoints:s,direction:"ltr",components:{},palette:hf({mode:"light"},r),spacing:l,shape:hf({},fm,i)},a);return u.applyStyles=hg,u=t.reduce((e,t)=>lm(e,t),u),u.unstable_sxConfig=hf({},dg,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return pg({sx:e,theme:this})},u}var vg=Object.freeze({__proto__:null,default:gg,private_createBreakpoints:dm,unstable_applyStyles:hg});function yg(e=null){const t=D.useContext(uh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const bg=gg();function xg(e=bg){return yg(e)}function _g(e){const t=om(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function wg({styles:e,themeId:t,defaultTheme:n={}}){const r=xg(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>_g("function"==typeof e?e(o):e)):_g(i)),Lc.jsx(em,{styles:i})}const kg=["sx"];function Sg(e){const{sx:t}=e,n=mf(e,kg),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:dg;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return am(n)?hf({},r,n):r}:hf({},r,t),hf({},o,{sx:i})}var Cg=Object.freeze({__proto__:null,default:pg,extendSxProp:Sg,unstable_createStyleFunctionSx:fg,unstable_defaultSxConfig:dg});const Eg=e=>e,Tg=(()=>{let e=Eg;return{configure(t){e=t},generate:t=>e(t),reset(){e=Eg}}})();function Ag(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ag(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ng(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ag(e))&&(r&&(r+=" "),r+=t);return r}const Lg=["className","component"];const Rg={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 Mg(e,t,n="Mui"){const r=Rg[t];return r?`${n}-${r}`:`${Tg.generate(e)}-${t}`}function Og(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Mg(e,t,n)}),r}var Pg,zg,Ig={exports:{}},Dg={};function jg(){if(Pg)return Dg;Pg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return h}}case t:return h}}}return Dg.ContextConsumer=i,Dg.ContextProvider=a,Dg.Element=e,Dg.ForwardRef=s,Dg.Fragment=n,Dg.Lazy=d,Dg.Memo=c,Dg.Portal=t,Dg.Profiler=o,Dg.StrictMode=r,Dg.Suspense=l,Dg.SuspenseList=u,Dg.isContextConsumer=function(e){return h(e)===i},Dg.isContextProvider=function(e){return h(e)===a},Dg.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Dg.isForwardRef=function(e){return h(e)===s},Dg.isFragment=function(e){return h(e)===n},Dg.isLazy=function(e){return h(e)===d},Dg.isMemo=function(e){return h(e)===c},Dg.isPortal=function(e){return h(e)===t},Dg.isProfiler=function(e){return h(e)===o},Dg.isStrictMode=function(e){return h(e)===r},Dg.isSuspense=function(e){return h(e)===l},Dg.isSuspenseList=function(e){return h(e)===u},Dg.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Dg.typeOf=h,Dg}function Fg(){return zg||(zg=1,Ig.exports=jg()),Ig.exports}var Bg=Fg();const $g=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hg(e){const t=`${e}`.match($g);return t&&t[1]||""}function Wg(e,t=""){return e.displayName||e.name||Hg(e)||t}function Ug(e,t,n){const r=Wg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Kg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Wg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Bg.ForwardRef:return Ug(e,e.render,"ForwardRef");case Bg.Memo:return Ug(e,e.type,"memo");default:return}}},getFunctionName:Hg});const Gg=["ownerState"],Vg=["variants"],Yg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Jg(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Qg=gg(),Xg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Zg({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ev(e){return e?(t,n)=>n[e]:null}function tv(e,t,n){let{ownerState:r}=t,o=mf(t,Gg);const i="function"==typeof e?e(hf({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>tv(e,hf({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=mf(i,Vg);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(hf({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(hf({ownerState:r},o,r)):e.style;t.push(n?Jg(om(i),n):i)}}),t}return n?Jg(om(i),n):i}const nv=function(e={}){const{themeId:t,defaultTheme:n=Qg,rootShouldForwardProp:r=qg,slotShouldForwardProp:o=qg}=e,i=e=>pg(hf({},e,{theme:Zg(hf({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{nm(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ev(Xg(l))}=a,f=mf(a,Yg),p=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=qg;"Root"===l||"root"===l?g=r:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=tm(e,hf({shouldForwardProp:g,label:void 0},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||am(e)?r=>{const o=Zg({theme:r.theme,defaultTheme:n,themeId:t});return tv(e,hf({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,b=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push(e=>{const r=Zg(hf({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=tv(n,hf({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var r;const o=Zg(hf({},e,{defaultTheme:n,themeId:t}));return tv({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},hf({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),m||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}}();function rv(e,t){const n=hf({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=hf({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=hf({},i),Object.keys(o).forEach(e=>{n[r][e]=rv(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function ov({props:e,name:t,defaultTheme:n,themeId:r}){let o=xg(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?rv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const iv="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function av(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var sv=Object.freeze({__proto__:null,default:av});function lv(e){if(e.type)return e;if("#"===e.charAt(0))return lv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(df(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(df(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function uv(e,t){return e=lv(e),t=function(e,t=0,n=1){return av(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function cv(e){return e&&e.ownerDocument||document}function dv(e){return cv(e).defaultView||window}function fv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let pv=0;const hv=F["useId".toString()];function mv(e){if(void 0!==hv){const t=hv();return null!=e?e:t}return function(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{null==t&&(pv+=1,n(`mui-${pv}`))},[t]),r}(e)}function gv(e){const t=D.useRef(e);return iv(()=>{t.current=e}),D.useRef((...e)=>(0,t.current)(...e)).current}function vv(...e){return D.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{fv(e,t)})},e)}const yv={};const bv=[];class xv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xv}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function _v(){const e=function(e,t){const n=D.useRef(yv);return n.current===yv&&(n.current=e(t)),n}(xv.create).current;return function(e){D.useEffect(e,bv)}(e.disposeEffect),e}let wv=!0,kv=!1;const Sv=new xv,Cv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ev(e){e.metaKey||e.altKey||e.ctrlKey||(wv=!0)}function Tv(){wv=!1}function Av(){"hidden"===this.visibilityState&&kv&&(wv=!0)}function Nv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return wv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Cv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Lv(){const e=D.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ev,!0),t.addEventListener("mousedown",Tv,!0),t.addEventListener("pointerdown",Tv,!0),t.addEventListener("touchstart",Tv,!0),t.addEventListener("visibilitychange",Av,!0))},[]),t=D.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Nv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(kv=!0,Sv.start(100,()=>{kv=!1}),t.current=!1,!0)},ref:e}}function Rv(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Mv(e){return"string"==typeof e}function Ov(e,t,n){return void 0===e||Mv(e)?t:hf({},t,{ownerState:hf({},t.ownerState,n)})}function Pv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function zv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Ng(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=hf({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=hf({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}(hf({},o,r)),s=Pv(r),l=Pv(o),u=t(a),c=Ng(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=hf({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=hf({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const Iv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Dv(e){var t;return parseInt(D.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const jv=D.createContext(null);function Fv(){return D.useContext(jv)}var Bv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $v(e){const{children:t,theme:n}=e,r=Fv(),o=D.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return hf({},e,t)}(r,n);return null!=e&&(e[Bv]=null!==r),e},[n,r]);return Lc.jsx(jv.Provider,{value:o,children:t})}const Hv=["value"],Wv=D.createContext();function Uv(e){let{value:t}=e,n=mf(e,Hv);return Lc.jsx(Wv.Provider,hf({value:null==t||t},n))}const Kv=D.createContext(void 0);function Gv({value:e,children:t}){return Lc.jsx(Kv.Provider,{value:e,children:t})}function Vv({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?rv(o.defaultProps,r):o.styleOverrides||o.variants?r:rv(o,r)}({props:e,name:t,theme:{components:D.useContext(Kv)}})}const Yv={};function qv(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?hf({},t,{[e]:i}):i;return r?()=>a:a}return hf({},t,e?{[e]:n}:n)},[e,t,n,r])}function Jv(e){const{children:t,theme:n,themeId:r}=e,o=yg(Yv),i=Fv()||Yv,a=qv(r,o,n),s=qv(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=yg(),n=mv()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",iv(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Lc.jsx(wg,{styles:o}):null}(a);return Lc.jsx($v,{theme:s,children:Lc.jsx(uh.Provider,{value:a,children:Lc.jsx(Uv,{value:l,children:Lc.jsxs(Gv,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Qv(e){return Qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qv(e)}function Xv(e){var t=function(e,t){if("object"!=Qv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Qv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qv(t)?t:t+""}const Zv=["component","direction","spacing","divider","children","className","useFlexGap"],ey=gg(),ty=nv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ny(e){return ov({props:e,name:"MuiStack",defaultTheme:ey})}function ry(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(D.cloneElement(t,{key:`separator-${o}`})),e),[])}const oy=({ownerState:e,theme:t})=>{let n=hf({display:"flex",flexDirection:"column"},gm({theme:t},bm({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=Mm(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=bm({values:e.direction,base:o}),a=bm({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=lm(n,gm({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:Om(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Om(r,t)}};var o}))}return n=function(e,...t){const n=vm(e),r=[n,...t].reduce((e,t)=>lm(e,t),{});return ym(Object.keys(n),r)}(t.breakpoints,n),n};function iy(e,t){return hf({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ay,sy={},ly={exports:{}};function uy(){return ay||(ay=1,(e=ly).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ly.exports;var e}var cy,dy=g(ff),fy=g(sv);function py(){if(cy)return sy;cy=1;var e=uy();Object.defineProperty(sy,"__esModule",{value:!0}),sy.alpha=c,sy.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},sy.colorChannel=void 0,sy.darken=d,sy.decomposeColor=i,sy.emphasize=p,sy.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},sy.getLuminance=u,sy.hexToRgb=o,sy.hslToRgb=l,sy.lighten=f,sy.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},sy.private_safeColorChannel=void 0,sy.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},sy.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},sy.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},sy.recomposeColor=s,sy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(dy),n=e(fy);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};sy.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(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 c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function f(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function p(e,t=.15){return u(e)>.5?d(e,t):f(e,t)}return sy.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},sy}var hy=py();const my=["mode","contrastThreshold","tonalOffset"],gy={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:Ld.white,default:Ld.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}},vy={text:{primary:Ld.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:Ld.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}};function yy(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=hy.lighten(e.main,o):"dark"===t&&(e.dark=hy.darken(e.main,i)))}function by(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=mf(e,my),i=e.primary||function(e="light"){return"dark"===e?{main:Wd,light:Hd,dark:Ud}:{main:Kd,light:Ud,dark:Gd}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Dd,light:Id,dark:Fd}:{main:Bd,light:jd,dark:$d}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Od,light:Rd,dark:Pd}:{main:Pd,light:Md,dark:zd}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Yd,light:Vd,dark:Jd}:{main:Jd,light:qd,dark:Qd}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Zd,light:Xd,dark:tf}:{main:nf,light:ef,dark:rf}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:af,light:of,dark:lf}:{main:"#ed6c02",light:sf,dark:uf}}(t);function d(e){return hy.getContrastRatio(e,vy.text.primary)>=n?vy.text.primary:gy.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hf({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(df(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(df(12,t?` (${t})`:"",JSON.stringify(e.main)));return yy(e,"light",o,r),yy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:vy,light:gy};return lm(hf({common:hf({},Ld),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:cf,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const xy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _y={textTransform:"uppercase"},wy='"Roboto", "Helvetica", "Arial", sans-serif';function ky(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=wy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=mf(n,xy),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,n,o,i)=>{return hf({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===wy?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,_y),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,_y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return lm(hf({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function Sy(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Cy=["none",Sy(0,2,1,-1,0,1,1,0,0,1,3,0),Sy(0,3,1,-2,0,2,2,0,0,1,5,0),Sy(0,3,3,-2,0,3,4,0,0,1,8,0),Sy(0,2,4,-1,0,4,5,0,0,1,10,0),Sy(0,3,5,-1,0,5,8,0,0,1,14,0),Sy(0,3,5,-1,0,6,10,0,0,1,18,0),Sy(0,4,5,-2,0,7,10,1,0,2,16,1),Sy(0,5,5,-3,0,8,10,1,0,3,14,2),Sy(0,5,6,-3,0,9,12,1,0,3,16,2),Sy(0,6,6,-3,0,10,14,1,0,4,18,3),Sy(0,6,7,-4,0,11,15,1,0,4,20,3),Sy(0,7,8,-4,0,12,17,2,0,5,22,4),Sy(0,7,8,-4,0,13,19,2,0,5,24,4),Sy(0,7,9,-4,0,14,21,2,0,5,26,4),Sy(0,8,9,-5,0,15,22,2,0,6,28,5),Sy(0,8,10,-5,0,16,24,2,0,6,30,5),Sy(0,8,11,-5,0,17,26,2,0,6,32,5),Sy(0,9,11,-5,0,18,28,2,0,7,34,6),Sy(0,9,12,-6,0,19,29,2,0,7,36,6),Sy(0,10,13,-6,0,20,31,3,0,8,38,7),Sy(0,10,13,-6,0,21,33,3,0,8,40,7),Sy(0,10,14,-6,0,22,35,3,0,8,42,7),Sy(0,11,14,-7,0,23,36,3,0,9,44,8),Sy(0,11,15,-7,0,24,38,3,0,9,46,8)],Ey=["duration","easing","delay"],Ty={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)"},Ay={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ny(e){return`${Math.round(e)}ms`}function Ly(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ry(e){const t=hf({},Ty,e.easing),n=hf({},Ay,e.duration);return hf({getAutoHeightDuration:Ly,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return mf(r,Ey),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ny(o)} ${i} ${"string"==typeof a?a:Ny(a)}`).join(",")}},e,{easing:t,duration:n})}const My={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Oy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Py(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=mf(e,Oy);if(e.vars&&void 0===e.generateCssVars)throw new Error(df(18));const s=by(r),l=gg(e);let u=lm(l,{mixins:iy(l.breakpoints,n),palette:s,shadows:Cy.slice(),typography:ky(s,i),transitions:Ry(o),zIndex:hf({},My)});return u=lm(u,a),u=t.reduce((e,t)=>lm(e,t),u),u.unstable_sxConfig=hf({},dg,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return pg({sx:e,theme:this})},u}const zy=Py();function Iy(){const e=xg(zy);return e[pf]||e}var Dy,jy={},Fy={exports:{}};function By(){return Dy||(Dy=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Fy)),Fy.exports}var $y,Hy={exports:{}};function Wy(){return $y||($y=1,(e=Hy).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports),Hy.exports;var e}var Uy,Ky=g(im),Gy=g(um),Vy=g(_m),Yy=g(Kg),qy=g(vg),Jy=g(Cg);function Qy(){if(Uy)return jy;Uy=1;var e=uy();Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=function(e={}){const{themeId:i,defaultTheme:s=p,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,f=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return f.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:p,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:_=g(h(y))}=a,w=(0,n.default)(a,u),k=p&&p.startsWith("Mui")||y?"components":"custom",S=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,C=x||!1;let E=d;"Root"===y||"root"===y?E=l:y?E=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const T=(0,r.default)(e,(0,t.default)({shouldForwardProp:E,label:void 0},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,N=(n,...r)=>{let o=A(n);const a=r?r.map(A):[];p&&_&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),_(e,o)}),p&&!S&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),C||a.push(f);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=T(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(N.withConfig=T.withConfig),N}},jy.shouldForwardProp=d,jy.systemDefaultTheme=void 0;var t=e(By()),n=e(Wy()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ky),o=Gy;e(Vy),e(Yy);var i=e(qy),a=e(Jy);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const p=jy.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:a}=o,u=(0,n.default)(o,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap(e=>v(e,(0,t.default)({ownerState:a},u),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?f((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?f((0,r.internal_serializeStyles)(c),i):c}return jy}const Xy=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Zy=m(Qy())({themeId:pf,defaultTheme:zy,rootShouldForwardProp:Xy}),eb=["theme"];function tb(e){let{theme:t}=e,n=mf(e,eb);const r=t[pf];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=hf({},r,{vars:null}):t&&!t.vars&&(o=hf({},t,{vars:null}))),Lc.jsx(Jv,hf({},n,{themeId:r?pf:void 0,theme:o}))}const nb=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function rb(e){return Vv(e)}function ob(e,t){return ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ob(e,t)}function ib(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ob(e,t)}var ab=z(),sb=m(ab),lb=!1,ub=j.createContext(null),cb="unmounted",db="exited",fb="entering",pb="entered",hb="exiting",mb=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=db,r.appearStatus=fb):o=pb:o=t.unmountOnExit||t.mountOnEnter?cb:db,r.state={status:o},r.nextCallback=null,r}ib(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===cb?{status:db}: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!==fb&&n!==pb&&(t=fb):n!==fb&&n!==pb||(t=hb)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===fb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:sb.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===db&&this.setState({status:cb})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[sb.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||lb?this.safeSetState({status:pb},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:fb},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:pb},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:sb.findDOMNode(this);t&&!lb?(this.props.onExit(r),this.safeSetState({status:hb},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:db},function(){e.props.onExited(r)})})})):this.safeSetState({status:db},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(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:sb.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===cb)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=mf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(ub.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function gb(){}function vb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yb(e,t){var n=Object.create(null);return e&&D.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&D.isValidElement(e)?t(e):e}(e)}),n}function bb(e,t,n){return null!=n[t]?n[t]:e.props[t]}function xb(e,t,n){var r=yb(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(D.isValidElement(a)){var s=i in t,l=i in r,u=t[i],c=D.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D.isValidElement(u)&&(o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:bb(a,"exit",e),enter:bb(a,"enter",e)})):o[i]=D.cloneElement(a,{in:!1}):o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:bb(a,"exit",e),enter:bb(a,"enter",e)})}}),o}mb.contextType=ub,mb.propTypes={},mb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gb,onEntering:gb,onEntered:gb,onExit:gb,onExiting:gb,onExited:gb},mb.UNMOUNTED=cb,mb.EXITED=db,mb.ENTERING=fb,mb.ENTERED=pb,mb.EXITING=hb;var _b=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wb=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(vb(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ib(t,e);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,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,yb(n.children,function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:bb(e,"appear",n),enter:bb(e,"enter",n),exit:bb(e,"exit",n)})})):xb(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=yb(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=hf({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=mf(e,["component","childFactory"]),o=this.state.contextValue,i=_b(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(ub.Provider,{value:o},i):j.createElement(ub.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);wb.propTypes={},wb.defaultProps={component:"div",childFactory:function(e){return e}};function kb(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Sb(e){return Mg("MuiPaper",e)}Og("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"]);const Cb=["className","component","elevation","square","variant"],Eb=Zy("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return hf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&hf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${hy.alpha("#fff",nb(t.elevation))}, ${hy.alpha("#fff",nb(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Tb=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=mf(n,Cb),u=hf({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Rv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Sb,o)})(u);return Lc.jsx(Eb,hf({as:o,ownerState:u,className:Ng(c.root,r),ref:t},l))});const Ab=Og("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Nb=["center","classes","className"];let Lb,Rb,Mb,Ob,Pb=e=>e;const zb=Th(Lb||(Lb=Pb`
|
|
23
|
+
*/function rm(e,t){return Uh(e,t)}const om=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},im=[];function am(e){return im[0]=e,oh(im)}var sm=Object.freeze({__proto__:null,GlobalStyles:nm,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=D.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&tm.has(e))return tm.get(e);const r=function(e,t){const n=Lp({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return tm.set(e,r),r},[t,n]);return t||n?Mc.jsx(uh,{value:o,children:r}):r},ThemeContext:dh,css:Ah,default:rm,internal_processStyles:om,internal_serializeStyles:am,keyframes:Nh});function lm(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function um(e){if(D.isValidElement(e)||!lm(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=um(e[n])}),t}function cm(e,t,n={clone:!0}){const r=n.clone?gf({},e):e;return lm(e)&&lm(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:lm(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lm(e[o])?r[o]=cm(e[o],t[o],n):n.clone?r[o]=lm(t[o])?um(t[o]):t[o]:r[o]=t[o]}),r}var dm=Object.freeze({__proto__:null,default:cm,isPlainObject:lm});const fm=["values","unit","step"];function pm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=vf(e,fm),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>gf({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return gf({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const hm={borderRadius:4};function mm(e,t){return t?cm(e,t,{clone:!1}):e}const gm={xs:0,sm:600,md:900,lg:1200,xl:1536},vm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gm[e]}px)`};function ym(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||vm;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||vm;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||gm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function bm(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function xm(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function _m({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function wm(e){if("string"!=typeof e)throw new Error(pf(7));return e.charAt(0).toUpperCase()+e.slice(1)}var km=Object.freeze({__proto__:null,default:wm});function Sm(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Cm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Sm(e,n)||r,t&&(o=t(o,r,e)),o}function Em(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Sm(e.theme,r)||{};return ym(e,i,e=>{let r=Cm(a,o,e);return e===r&&"string"==typeof e&&(r=Cm(a,o,`${t}${"default"===e?"":wm(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Tm={m:"margin",p:"padding"},Am={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Nm[e])return[e];e=Nm[e]}const[t,n]=e.split(""),r=Tm[t],o=Am[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Rm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Om(e,t,n,r){var o;const i=null!=(o=Sm(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Pm(e){return Om(e,"spacing",8)}function Im(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function zm(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Im(t,n),e),{})}(Lm(n),r);return ym(e,e[n],o)}function Dm(e,t){const n=Pm(e.theme);return Object.keys(e).map(r=>zm(e,t,r,n)).reduce(mm,{})}function jm(e){return Dm(e,Rm)}function Fm(e){return Dm(e,Mm)}function Bm(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?mm(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function $m(e){return"number"!=typeof e?e:`${e}px solid`}function Hm(e,t){return Em({prop:e,themeKey:"borders",transform:t})}jm.propTypes={},jm.filterProps=Rm,Fm.propTypes={},Fm.filterProps=Mm;const Wm=Hm("border",$m),Um=Hm("borderTop",$m),Km=Hm("borderRight",$m),Gm=Hm("borderBottom",$m),Ym=Hm("borderLeft",$m),Vm=Hm("borderColor"),qm=Hm("borderTopColor"),Jm=Hm("borderRightColor"),Qm=Hm("borderBottomColor"),Xm=Hm("borderLeftColor"),Zm=Hm("outline",$m),eg=Hm("outlineColor"),tg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Om(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Im(t,e)});return ym(e,e.borderRadius,n)}return null};tg.propTypes={},tg.filterProps=["borderRadius"],Bm(Wm,Um,Km,Gm,Ym,Vm,qm,Jm,Qm,Xm,tg,Zm,eg);const ng=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Om(e.theme,"spacing",8),n=e=>({gap:Im(t,e)});return ym(e,e.gap,n)}return null};ng.propTypes={},ng.filterProps=["gap"];const rg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Om(e.theme,"spacing",8),n=e=>({columnGap:Im(t,e)});return ym(e,e.columnGap,n)}return null};rg.propTypes={},rg.filterProps=["columnGap"];const og=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Om(e.theme,"spacing",8),n=e=>({rowGap:Im(t,e)});return ym(e,e.rowGap,n)}return null};og.propTypes={},og.filterProps=["rowGap"];function ig(e,t){return"grey"===t?t:e}Bm(ng,rg,og,Em({prop:"gridColumn"}),Em({prop:"gridRow"}),Em({prop:"gridAutoFlow"}),Em({prop:"gridAutoColumns"}),Em({prop:"gridAutoRows"}),Em({prop:"gridTemplateColumns"}),Em({prop:"gridTemplateRows"}),Em({prop:"gridTemplateAreas"}),Em({prop:"gridArea"}));function ag(e){return e<=1&&0!==e?100*e+"%":e}Bm(Em({prop:"color",themeKey:"palette",transform:ig}),Em({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ig}),Em({prop:"backgroundColor",themeKey:"palette",transform:ig}));const sg=Em({prop:"width",transform:ag}),lg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||gm[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ag(t)}};return ym(e,e.maxWidth,t)}return null};lg.filterProps=["maxWidth"];const ug=Em({prop:"minWidth",transform:ag}),cg=Em({prop:"height",transform:ag}),dg=Em({prop:"maxHeight",transform:ag}),fg=Em({prop:"minHeight",transform:ag});Em({prop:"size",cssProperty:"width",transform:ag}),Em({prop:"size",cssProperty:"height",transform:ag});Bm(sg,lg,ug,cg,dg,fg,Em({prop:"boxSizing"}));const pg={border:{themeKey:"borders",transform:$m},borderTop:{themeKey:"borders",transform:$m},borderRight:{themeKey:"borders",transform:$m},borderBottom:{themeKey:"borders",transform:$m},borderLeft:{themeKey:"borders",transform:$m},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$m},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tg},color:{themeKey:"palette",transform:ig},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ig},backgroundColor:{themeKey:"palette",transform:ig},p:{style:Fm},pt:{style:Fm},pr:{style:Fm},pb:{style:Fm},pl:{style:Fm},px:{style:Fm},py:{style:Fm},padding:{style:Fm},paddingTop:{style:Fm},paddingRight:{style:Fm},paddingBottom:{style:Fm},paddingLeft:{style:Fm},paddingX:{style:Fm},paddingY:{style:Fm},paddingInline:{style:Fm},paddingInlineStart:{style:Fm},paddingInlineEnd:{style:Fm},paddingBlock:{style:Fm},paddingBlockStart:{style:Fm},paddingBlockEnd:{style:Fm},m:{style:jm},mt:{style:jm},mr:{style:jm},mb:{style:jm},ml:{style:jm},mx:{style:jm},my:{style:jm},margin:{style:jm},marginTop:{style:jm},marginRight:{style:jm},marginBottom:{style:jm},marginLeft:{style:jm},marginX:{style:jm},marginY:{style:jm},marginInline:{style:jm},marginInlineStart:{style:jm},marginInlineEnd:{style:jm},marginBlock:{style:jm},marginBlockStart:{style:jm},marginBlockEnd:{style:jm},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:ng},rowGap:{style:og},columnGap:{style:rg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ag},maxWidth:{style:lg},minWidth:{transform:ag},height:{transform:ag},maxHeight:{transform:ag},minHeight:{transform:ag},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hg(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Sm(n,s)||{};if(u)return u(o);return ym(o,t,t=>{let n=Cm(c,l,t);return t===n&&"string"==typeof t&&(n=Cm(c,l,`${e}${"default"===t?"":wm(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:pg;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=bm(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=mm(u,e(n,o,i,s));else{const e=ym({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?u=mm(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=mm(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":xm(l,u)}:xm(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const mg=hg();function gg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}mg.filterProps=["sx"];const vg=["breakpoints","palette","spacing","shape"];function yg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=vf(e,vg),s=pm(n),l=function(e=8){if(e.mui)return e;const t=Pm({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let u=cm({breakpoints:s,direction:"ltr",components:{},palette:gf({mode:"light"},r),spacing:l,shape:gf({},hm,i)},a);return u.applyStyles=gg,u=t.reduce((e,t)=>cm(e,t),u),u.unstable_sxConfig=gf({},pg,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return mg({sx:e,theme:this})},u}var bg=Object.freeze({__proto__:null,default:yg,private_createBreakpoints:pm,unstable_applyStyles:gg});function xg(e=null){const t=D.useContext(dh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const _g=yg();function wg(e=_g){return xg(e)}function kg(e){const t=am(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Sg({styles:e,themeId:t,defaultTheme:n={}}){const r=wg(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>kg("function"==typeof e?e(o):e)):kg(i)),Mc.jsx(nm,{styles:i})}const Cg=["sx"];function Eg(e){const{sx:t}=e,n=vf(e,Cg),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:pg;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return lm(n)?gf({},r,n):r}:gf({},r,t),gf({},o,{sx:i})}var Tg=Object.freeze({__proto__:null,default:mg,extendSxProp:Eg,unstable_createStyleFunctionSx:hg,unstable_defaultSxConfig:pg});const Ag=e=>e,Ng=(()=>{let e=Ag;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ag}}})();function Lg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Lg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Lg(e))&&(r&&(r+=" "),r+=t);return r}const Mg=["className","component"];const Og={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 Pg(e,t,n="Mui"){const r=Og[t];return r?`${n}-${r}`:`${Ng.generate(e)}-${t}`}function Ig(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Pg(e,t,n)}),r}var zg,Dg,jg={exports:{}},Fg={};function Bg(){if(zg)return Fg;zg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return h}}case t:return h}}}return Fg.ContextConsumer=i,Fg.ContextProvider=a,Fg.Element=e,Fg.ForwardRef=s,Fg.Fragment=n,Fg.Lazy=d,Fg.Memo=c,Fg.Portal=t,Fg.Profiler=o,Fg.StrictMode=r,Fg.Suspense=l,Fg.SuspenseList=u,Fg.isContextConsumer=function(e){return h(e)===i},Fg.isContextProvider=function(e){return h(e)===a},Fg.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Fg.isForwardRef=function(e){return h(e)===s},Fg.isFragment=function(e){return h(e)===n},Fg.isLazy=function(e){return h(e)===d},Fg.isMemo=function(e){return h(e)===c},Fg.isPortal=function(e){return h(e)===t},Fg.isProfiler=function(e){return h(e)===o},Fg.isStrictMode=function(e){return h(e)===r},Fg.isSuspense=function(e){return h(e)===l},Fg.isSuspenseList=function(e){return h(e)===u},Fg.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Fg.typeOf=h,Fg}function $g(){return Dg||(Dg=1,jg.exports=Bg()),jg.exports}var Hg=$g();const Wg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ug(e){const t=`${e}`.match(Wg);return t&&t[1]||""}function Kg(e,t=""){return e.displayName||e.name||Ug(e)||t}function Gg(e,t,n){const r=Kg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Yg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Kg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Hg.ForwardRef:return Gg(e,e.render,"ForwardRef");case Hg.Memo:return Gg(e,e.type,"memo");default:return}}},getFunctionName:Ug});const Vg=["ownerState"],qg=["variants"],Jg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Xg(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Zg=yg(),ev=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function nv(e){return e?(t,n)=>n[e]:null}function rv(e,t,n){let{ownerState:r}=t,o=vf(t,Vg);const i="function"==typeof e?e(gf({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>rv(e,gf({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=vf(i,qg);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(gf({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(gf({ownerState:r},o,r)):e.style;t.push(n?Xg(am(i),n):i)}}),t}return n?Xg(am(i),n):i}const ov=function(e={}){const{themeId:t,defaultTheme:n=Zg,rootShouldForwardProp:r=Qg,slotShouldForwardProp:o=Qg}=e,i=e=>mg(gf({},e,{theme:tv(gf({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{om(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=nv(ev(l))}=a,f=vf(a,Jg),p=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Qg;"Root"===l||"root"===l?g=r:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=rm(e,gf({shouldForwardProp:g,label:void 0},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||lm(e)?r=>{const o=tv({theme:r.theme,defaultTheme:n,themeId:t});return rv(e,gf({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,b=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push(e=>{const r=tv(gf({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=rv(n,gf({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var r;const o=tv(gf({},e,{defaultTheme:n,themeId:t}));return rv({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},gf({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),m||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}}();function iv(e,t){const n=gf({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=gf({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=gf({},i),Object.keys(o).forEach(e=>{n[r][e]=iv(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function av({props:e,name:t,defaultTheme:n,themeId:r}){let o=wg(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?iv(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const sv="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function lv(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var uv=Object.freeze({__proto__:null,default:lv});function cv(e){if(e.type)return e;if("#"===e.charAt(0))return cv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(pf(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(pf(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function dv(e,t){return e=cv(e),t=function(e,t=0,n=1){return lv(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function fv(e){return e&&e.ownerDocument||document}function pv(e){return fv(e).defaultView||window}function hv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let mv=0;const gv=F["useId".toString()];function vv(e){if(void 0!==gv){const t=gv();return null!=e?e:t}return function(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{null==t&&(mv+=1,n(`mui-${mv}`))},[t]),r}(e)}function yv(e){const t=D.useRef(e);return sv(()=>{t.current=e}),D.useRef((...e)=>(0,t.current)(...e)).current}function bv(...e){return D.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{hv(e,t)})},e)}const xv={};const _v=[];class wv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wv}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function kv(){const e=function(e,t){const n=D.useRef(xv);return n.current===xv&&(n.current=e(t)),n}(wv.create).current;return function(e){D.useEffect(e,_v)}(e.disposeEffect),e}let Sv=!0,Cv=!1;const Ev=new wv,Tv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Av(e){e.metaKey||e.altKey||e.ctrlKey||(Sv=!0)}function Nv(){Sv=!1}function Lv(){"hidden"===this.visibilityState&&Cv&&(Sv=!0)}function Rv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Sv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Tv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Mv(){const e=D.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Av,!0),t.addEventListener("mousedown",Nv,!0),t.addEventListener("pointerdown",Nv,!0),t.addEventListener("touchstart",Nv,!0),t.addEventListener("visibilitychange",Lv,!0))},[]),t=D.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Rv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Cv=!0,Ev.start(100,()=>{Cv=!1}),t.current=!1,!0)},ref:e}}function Ov(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Pv(e){return"string"==typeof e}function Iv(e,t,n){return void 0===e||Pv(e)?t:gf({},t,{ownerState:gf({},t.ownerState,n)})}function zv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Dv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Rg(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=gf({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=gf({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}(gf({},o,r)),s=zv(r),l=zv(o),u=t(a),c=Rg(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=gf({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=gf({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const jv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fv(e){var t;return parseInt(D.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Bv=D.createContext(null);function $v(){return D.useContext(Bv)}var Hv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wv(e){const{children:t,theme:n}=e,r=$v(),o=D.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return gf({},e,t)}(r,n);return null!=e&&(e[Hv]=null!==r),e},[n,r]);return Mc.jsx(Bv.Provider,{value:o,children:t})}const Uv=["value"],Kv=D.createContext();function Gv(e){let{value:t}=e,n=vf(e,Uv);return Mc.jsx(Kv.Provider,gf({value:null==t||t},n))}const Yv=D.createContext(void 0);function Vv({value:e,children:t}){return Mc.jsx(Yv.Provider,{value:e,children:t})}function qv({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?iv(o.defaultProps,r):o.styleOverrides||o.variants?r:iv(o,r)}({props:e,name:t,theme:{components:D.useContext(Yv)}})}const Jv={};function Qv(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?gf({},t,{[e]:i}):i;return r?()=>a:a}return gf({},t,e?{[e]:n}:n)},[e,t,n,r])}function Xv(e){const{children:t,theme:n,themeId:r}=e,o=xg(Jv),i=$v()||Jv,a=Qv(r,o,n),s=Qv(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=xg(),n=vv()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",sv(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Mc.jsx(Sg,{styles:o}):null}(a);return Mc.jsx(Wv,{theme:s,children:Mc.jsx(dh.Provider,{value:a,children:Mc.jsx(Gv,{value:l,children:Mc.jsxs(Vv,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Zv(e){return Zv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zv(e)}function ey(e){var t=function(e,t){if("object"!=Zv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Zv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zv(t)?t:t+""}const ty=["component","direction","spacing","divider","children","className","useFlexGap"],ny=yg(),ry=ov("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function oy(e){return av({props:e,name:"MuiStack",defaultTheme:ny})}function iy(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(D.cloneElement(t,{key:`separator-${o}`})),e),[])}const ay=({ownerState:e,theme:t})=>{let n=gf({display:"flex",flexDirection:"column"},ym({theme:t},_m({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=Pm(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=_m({values:e.direction,base:o}),a=_m({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=cm(n,ym({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:Im(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Im(r,t)}};var o}))}return n=function(e,...t){const n=bm(e),r=[n,...t].reduce((e,t)=>cm(e,t),{});return xm(Object.keys(n),r)}(t.breakpoints,n),n};function sy(e,t){return gf({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ly,uy={},cy={exports:{}};function dy(){return ly||(ly=1,(e=cy).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),cy.exports;var e}var fy,py=g(hf),hy=g(uv);function my(){if(fy)return uy;fy=1;var e=dy();Object.defineProperty(uy,"__esModule",{value:!0}),uy.alpha=c,uy.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},uy.colorChannel=void 0,uy.darken=d,uy.decomposeColor=i,uy.emphasize=p,uy.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},uy.getLuminance=u,uy.hexToRgb=o,uy.hslToRgb=l,uy.lighten=f,uy.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},uy.private_safeColorChannel=void 0,uy.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},uy.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},uy.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},uy.recomposeColor=s,uy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(py),n=e(hy);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};uy.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(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 c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function f(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function p(e,t=.15){return u(e)>.5?d(e,t):f(e,t)}return uy.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},uy}var gy=my();const vy=["mode","contrastThreshold","tonalOffset"],yy={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:Md.white,default:Md.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}},by={text:{primary:Md.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:Md.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}};function xy(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=gy.lighten(e.main,o):"dark"===t&&(e.dark=gy.darken(e.main,i)))}function _y(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=vf(e,vy),i=e.primary||function(e="light"){return"dark"===e?{main:Kd,light:Ud,dark:Gd}:{main:Yd,light:Gd,dark:Vd}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Fd,light:jd,dark:$d}:{main:Hd,light:Bd,dark:Wd}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Id,light:Od,dark:zd}:{main:zd,light:Pd,dark:Dd}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Jd,light:qd,dark:Xd}:{main:Xd,light:Qd,dark:Zd}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tf,light:ef,dark:rf}:{main:of,light:nf,dark:af}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:lf,light:sf,dark:cf}:{main:"#ed6c02",light:uf,dark:df}}(t);function d(e){return gy.getContrastRatio(e,by.text.primary)>=n?by.text.primary:yy.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gf({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(pf(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(pf(12,t?` (${t})`:"",JSON.stringify(e.main)));return xy(e,"light",o,r),xy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:by,light:yy};return cm(gf({common:gf({},Md),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:ff,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const wy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ky={textTransform:"uppercase"},Sy='"Roboto", "Helvetica", "Arial", sans-serif';function Cy(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Sy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=vf(n,wy),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,n,o,i)=>{return gf({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Sy?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ky),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ky),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return cm(gf({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function Ey(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ty=["none",Ey(0,2,1,-1,0,1,1,0,0,1,3,0),Ey(0,3,1,-2,0,2,2,0,0,1,5,0),Ey(0,3,3,-2,0,3,4,0,0,1,8,0),Ey(0,2,4,-1,0,4,5,0,0,1,10,0),Ey(0,3,5,-1,0,5,8,0,0,1,14,0),Ey(0,3,5,-1,0,6,10,0,0,1,18,0),Ey(0,4,5,-2,0,7,10,1,0,2,16,1),Ey(0,5,5,-3,0,8,10,1,0,3,14,2),Ey(0,5,6,-3,0,9,12,1,0,3,16,2),Ey(0,6,6,-3,0,10,14,1,0,4,18,3),Ey(0,6,7,-4,0,11,15,1,0,4,20,3),Ey(0,7,8,-4,0,12,17,2,0,5,22,4),Ey(0,7,8,-4,0,13,19,2,0,5,24,4),Ey(0,7,9,-4,0,14,21,2,0,5,26,4),Ey(0,8,9,-5,0,15,22,2,0,6,28,5),Ey(0,8,10,-5,0,16,24,2,0,6,30,5),Ey(0,8,11,-5,0,17,26,2,0,6,32,5),Ey(0,9,11,-5,0,18,28,2,0,7,34,6),Ey(0,9,12,-6,0,19,29,2,0,7,36,6),Ey(0,10,13,-6,0,20,31,3,0,8,38,7),Ey(0,10,13,-6,0,21,33,3,0,8,40,7),Ey(0,10,14,-6,0,22,35,3,0,8,42,7),Ey(0,11,14,-7,0,23,36,3,0,9,44,8),Ey(0,11,15,-7,0,24,38,3,0,9,46,8)],Ay=["duration","easing","delay"],Ny={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)"},Ly={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ry(e){return`${Math.round(e)}ms`}function My(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Oy(e){const t=gf({},Ny,e.easing),n=gf({},Ly,e.duration);return gf({getAutoHeightDuration:My,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return vf(r,Ay),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ry(o)} ${i} ${"string"==typeof a?a:Ry(a)}`).join(",")}},e,{easing:t,duration:n})}const Py={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Iy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=vf(e,Iy);if(e.vars&&void 0===e.generateCssVars)throw new Error(pf(18));const s=_y(r),l=yg(e);let u=cm(l,{mixins:sy(l.breakpoints,n),palette:s,shadows:Ty.slice(),typography:Cy(s,i),transitions:Oy(o),zIndex:gf({},Py)});return u=cm(u,a),u=t.reduce((e,t)=>cm(e,t),u),u.unstable_sxConfig=gf({},pg,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return mg({sx:e,theme:this})},u}const Dy=zy();function jy(){const e=wg(Dy);return e[mf]||e}var Fy,By={},$y={exports:{}};function Hy(){return Fy||(Fy=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($y)),$y.exports}var Wy,Uy={exports:{}};function Ky(){return Wy||(Wy=1,(e=Uy).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports),Uy.exports;var e}var Gy,Yy=g(sm),Vy=g(dm),qy=g(km),Jy=g(Yg),Qy=g(bg),Xy=g(Tg);function Zy(){if(Gy)return By;Gy=1;var e=dy();Object.defineProperty(By,"__esModule",{value:!0}),By.default=function(e={}){const{themeId:i,defaultTheme:s=p,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,f=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return f.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:p,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:_=g(h(y))}=a,w=(0,n.default)(a,u),k=p&&p.startsWith("Mui")||y?"components":"custom",S=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,C=x||!1;let E=d;"Root"===y||"root"===y?E=l:y?E=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const T=(0,r.default)(e,(0,t.default)({shouldForwardProp:E,label:void 0},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,N=(n,...r)=>{let o=A(n);const a=r?r.map(A):[];p&&_&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),_(e,o)}),p&&!S&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),C||a.push(f);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=T(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(N.withConfig=T.withConfig),N}},By.shouldForwardProp=d,By.systemDefaultTheme=void 0;var t=e(Hy()),n=e(Ky()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Yy),o=Vy;e(qy),e(Jy);var i=e(Qy),a=e(Xy);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const p=By.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:a}=o,u=(0,n.default)(o,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap(e=>v(e,(0,t.default)({ownerState:a},u),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?f((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?f((0,r.internal_serializeStyles)(c),i):c}return By}const eb=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,tb=m(Zy())({themeId:mf,defaultTheme:Dy,rootShouldForwardProp:eb}),nb=["theme"];function rb(e){let{theme:t}=e,n=vf(e,nb);const r=t[mf];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=gf({},r,{vars:null}):t&&!t.vars&&(o=gf({},t,{vars:null}))),Mc.jsx(Xv,gf({},n,{themeId:r?mf:void 0,theme:o}))}const ob=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ib(e){return qv(e)}function ab(e,t){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ab(e,t)}function sb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ab(e,t)}var lb=I(),ub=m(lb),cb=!1,db=j.createContext(null),fb="unmounted",pb="exited",hb="entering",mb="entered",gb="exiting",vb=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=pb,r.appearStatus=hb):o=mb:o=t.unmountOnExit||t.mountOnEnter?fb:pb,r.state={status:o},r.nextCallback=null,r}sb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===fb?{status:pb}: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!==hb&&n!==mb&&(t=hb):n!==hb&&n!==mb||(t=gb)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===hb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ub.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pb&&this.setState({status:fb})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ub.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||cb?this.safeSetState({status:mb},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:hb},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:mb},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ub.findDOMNode(this);t&&!cb?(this.props.onExit(r),this.safeSetState({status:gb},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:pb},function(){e.props.onExited(r)})})})):this.safeSetState({status:pb},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(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:ub.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===fb)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=vf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(db.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function yb(){}function bb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xb(e,t){var n=Object.create(null);return e&&D.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&D.isValidElement(e)?t(e):e}(e)}),n}function _b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function wb(e,t,n){var r=xb(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(D.isValidElement(a)){var s=i in t,l=i in r,u=t[i],c=D.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D.isValidElement(u)&&(o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:_b(a,"exit",e),enter:_b(a,"enter",e)})):o[i]=D.cloneElement(a,{in:!1}):o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:_b(a,"exit",e),enter:_b(a,"enter",e)})}}),o}vb.contextType=db,vb.propTypes={},vb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yb,onEntering:yb,onEntered:yb,onExit:yb,onExiting:yb,onExited:yb},vb.UNMOUNTED=fb,vb.EXITED=pb,vb.ENTERING=hb,vb.ENTERED=mb,vb.EXITING=gb;var kb=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Sb=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(bb(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}sb(t,e);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,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,xb(n.children,function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:_b(e,"appear",n),enter:_b(e,"enter",n),exit:_b(e,"exit",n)})})):wb(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=xb(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=gf({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vf(e,["component","childFactory"]),o=this.state.contextValue,i=kb(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(db.Provider,{value:o},i):j.createElement(db.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);Sb.propTypes={},Sb.defaultProps={component:"div",childFactory:function(e){return e}};function Cb(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Eb(e){return Pg("MuiPaper",e)}Ig("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"]);const Tb=["className","component","elevation","square","variant"],Ab=tb("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return gf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&gf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${gy.alpha("#fff",ob(t.elevation))}, ${gy.alpha("#fff",ob(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Nb=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=vf(n,Tb),u=gf({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ov({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Eb,o)})(u);return Mc.jsx(Ab,gf({as:o,ownerState:u,className:Rg(c.root,r),ref:t},l))});const Lb=Ig("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rb=["center","classes","className"];let Mb,Ob,Pb,Ib,zb=e=>e;const Db=Nh(Mb||(Mb=zb`
|
|
24
24
|
0% {
|
|
25
25
|
transform: scale(0);
|
|
26
26
|
opacity: 0.1;
|
|
@@ -30,7 +30,7 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
|
|
|
30
30
|
transform: scale(1);
|
|
31
31
|
opacity: 0.3;
|
|
32
32
|
}
|
|
33
|
-
`)),
|
|
33
|
+
`)),jb=Nh(Ob||(Ob=zb`
|
|
34
34
|
0% {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
|
|
|
38
38
|
100% {
|
|
39
39
|
opacity: 0;
|
|
40
40
|
}
|
|
41
|
-
`)),
|
|
41
|
+
`)),Fb=Nh(Pb||(Pb=zb`
|
|
42
42
|
0% {
|
|
43
43
|
transform: scale(1);
|
|
44
44
|
}
|
|
@@ -50,7 +50,7 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
|
|
|
50
50
|
100% {
|
|
51
51
|
transform: scale(1);
|
|
52
52
|
}
|
|
53
|
-
`)),
|
|
53
|
+
`)),Bb=tb("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$b=tb(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=D.useState(!1),f=Rg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Rg(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),D.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),Mc.jsx("span",{className:f,style:p,children:Mc.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(Ib||(Ib=zb`
|
|
54
54
|
opacity: 0;
|
|
55
55
|
position: absolute;
|
|
56
56
|
|
|
@@ -93,18 +93,18 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
|
|
|
93
93
|
animation-iteration-count: infinite;
|
|
94
94
|
animation-delay: 200ms;
|
|
95
95
|
}
|
|
96
|
-
`),Ab.rippleVisible,zb,550,({theme:e})=>e.transitions.easing.easeInOut,Ab.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ab.child,Ab.childLeaving,Ib,550,({theme:e})=>e.transitions.easing.easeInOut,Ab.childPulsate,Db,({theme:e})=>e.transitions.easing.easeInOut),Bb=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=mf(n,Nb),[s,l]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=D.useRef(!1),f=_v(),p=D.useRef(null),h=D.useRef(null),m=D.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Lc.jsx(Fb,{classes:{ripple:Ng(o.ripple,Ab.ripple),rippleVisible:Ng(o.rippleVisible,Ab.rippleVisible),ripplePulsate:Ng(o.ripplePulsate,Ab.ripplePulsate),child:Ng(o.child,Ab.child),childLeaving:Ng(o.childLeaving,Ab.childLeaving),childPulsate:Ng(o.childPulsate,Ab.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=D.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},[r,m,f]),v=D.useCallback(()=>{g({},{pulsate:!0})},[g]),y=D.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,()=>{y(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return D.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:y}),[v,g,y]),Lc.jsx(jb,hf({className:Ng(Ab.root,o.root,i),ref:h},a,{children:Lc.jsx(wb,{component:null,exit:!0,children:s})}))});function $b(e){return Mg("MuiButtonBase",e)}const Hb=Og("MuiButtonBase",["root","disabled","focusVisible"]),Wb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ub=Zy("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Hb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kb=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:E,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:N,type:L}=n,R=mf(n,Wb),M=D.useRef(null),O=D.useRef(null),P=vv(O,N),{isFocusVisibleRef:z,onFocus:I,onBlur:j,ref:F}=Lv(),[B,$]=D.useState(!1);l&&B&&$(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),M.current.focus()}}),[]);const[H,W]=D.useState(!1);D.useEffect(()=>{W(!0)},[]);const U=H&&!u&&!l;function K(e,t,n=c){return gv(r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0})}D.useEffect(()=>{B&&d&&!u&&H&&O.current.pulsate()},[u,d,B,H]);const G=K("start",_),V=K("stop",m),Y=K("stop",g),q=K("stop",k),J=K("stop",e=>{B&&e.preventDefault(),w&&w(e)}),Q=K("start",E),X=K("stop",S),Z=K("stop",C),ee=K("stop",e=>{j(e),!1===z.current&&$(!1),p&&p(e)},!1),te=gv(e=>{M.current||(M.current=e.currentTarget),I(e),!0===z.current&&($(!0),y&&y(e)),v&&v(e)}),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=D.useRef(!1),oe=gv(e=>{d&&!re.current&&B&&O.current&&" "===e.key&&(re.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=gv(e=>{d&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(re.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(R.href||R.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(R.href||R.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=vv(t,F,M),ue=hf({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Rv({root:["root",t&&"disabled",n&&"focusVisible"]},$b,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Lc.jsxs(Ub,hf({as:ae,className:Ng(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:V,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:J,onMouseUp:q,onDragLeave:Y,onTouchEnd:X,onTouchMove:Z,onTouchStart:Q,ref:le,tabIndex:l?-1:T,type:L},se,R,{children:[i,U?Lc.jsx(Bb,hf({ref:P,center:o},A)):null]}))});function Gb(e){return Mg("MuiIconButton",e)}const Vb=Og("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Yb=["edge","children","className","color","disabled","disableFocusRipple","size"],qb=Zy(Kb,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${xm(n.color)}`],n.edge&&t[`edge${xm(n.edge)}`],t[`size${xm(n.size)}`]]}})(({theme:e,ownerState:t})=>hf({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:hy.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return hf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&hf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":hf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hy.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Vb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Jb=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=n,c=mf(n,Yb),d=hf({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Rv({root:["root",n&&"disabled","default"!==r&&`color${xm(r)}`,o&&`edge${xm(o)}`,`size${xm(i)}`]},Gb,t)})(d);return Lc.jsx(qb,hf({className:Ng(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Qb(e){return Mg("MuiTypography",e)}Og("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Xb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zb=Zy("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${xm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>hf({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ex={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nx=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiTypography"}),r=(e=>tx[e]||e)(n.color),o=Sg(hf({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=ex}=o,p=mf(o,Xb),h=hf({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=s||(c?"p":f[d]||ex[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Rv({root:["root",i,"inherit"!==e.align&&`align${xm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Qb,a)})(h);return Lc.jsx(Zb,hf({as:m,ref:t,ownerState:h,className:Ng(g.root,a)},p))});var rx,ox={};function ix(){if(rx)return ox;rx=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(C()),t=Ky;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return ox.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},ox}var ax=m(ix()),sx="top",lx="bottom",ux="right",cx="left",dx="auto",fx=[sx,lx,ux,cx],px="start",hx="end",mx="viewport",gx="popper",vx=fx.reduce(function(e,t){return e.concat([t+"-"+px,t+"-"+hx])},[]),yx=[].concat(fx,[dx]).reduce(function(e,t){return e.concat([t,t+"-"+px,t+"-"+hx])},[]),bx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function xx(e){return e?(e.nodeName||"").toLowerCase():null}function _x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wx(e){return e instanceof _x(e).Element||e instanceof Element}function kx(e){return e instanceof _x(e).HTMLElement||e instanceof HTMLElement}function Sx(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _x(e).ShadowRoot||e instanceof ShadowRoot)}var Cx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];kx(o)&&xx(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});kx(r)&&xx(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ex(e){return e.split("-")[0]}var Tx=Math.max,Ax=Math.min,Nx=Math.round;function Lx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Rx(){return!/^((?!chrome|android).)*safari/i.test(Lx())}function Mx(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kx(e)&&(o=e.offsetWidth>0&&Nx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Nx(r.height)/e.offsetHeight||1);var a=(wx(e)?_x(e):window).visualViewport,s=!Rx()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Ox(e){var t=Mx(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Px(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zx(e){return _x(e).getComputedStyle(e)}function Ix(e){return["table","td","th"].indexOf(xx(e))>=0}function Dx(e){return((wx(e)?e.ownerDocument:e.document)||window.document).documentElement}function jx(e){return"html"===xx(e)?e:e.assignedSlot||e.parentNode||(Sx(e)?e.host:null)||Dx(e)}function Fx(e){return kx(e)&&"fixed"!==zx(e).position?e.offsetParent:null}function Bx(e){for(var t=_x(e),n=Fx(e);n&&Ix(n)&&"static"===zx(n).position;)n=Fx(n);return n&&("html"===xx(n)||"body"===xx(n)&&"static"===zx(n).position)?t:n||function(e){var t=/firefox/i.test(Lx());if(/Trident/i.test(Lx())&&kx(e)&&"fixed"===zx(e).position)return null;var n=jx(e);for(Sx(n)&&(n=n.host);kx(n)&&["html","body"].indexOf(xx(n))<0;){var r=zx(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function $x(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hx(e,t,n){return Tx(e,Ax(t,n))}function Wx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ux(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Kx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ex(n.placement),l=$x(s),u=[cx,ux].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return Wx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ux(e,fx))}(o.padding,n),d=Ox(i),f="y"===l?sx:cx,p="y"===l?lx:ux,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=Bx(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+y,w=Hx(b,_,x),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Px(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gx(e){return e.split("-")[1]}var Vx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=cx,x=sx,_=window;if(u){var w=Bx(n),k="clientHeight",S="clientWidth";if(w===_x(n)&&"static"!==zx(w=Dx(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===sx||(o===cx||o===ux)&&i===hx)x=lx,m-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,m*=l?1:-1;if(o===cx||(o===sx||o===lx)&&i===hx)b=ux,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:s},u&&Vx),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Nx(n*o)/o||0,y:Nx(r*o)/o||0}}({x:p,y:m},_x(n)):{x:p,y:m};return p=T.x,m=T.y,l?Object.assign({},E,((C={})[x]=y?"0":"",C[b]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},E,((t={})[x]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var qx={passive:!0};var Jx={left:"right",right:"left",bottom:"top",top:"bottom"};function Qx(e){return e.replace(/left|right|bottom|top/g,function(e){return Jx[e]})}var Xx={start:"end",end:"start"};function Zx(e){return e.replace(/start|end/g,function(e){return Xx[e]})}function e_(e){var t=_x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function t_(e){return Mx(Dx(e)).left+e_(e).scrollLeft}function n_(e){var t=zx(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function r_(e){return["html","body","#document"].indexOf(xx(e))>=0?e.ownerDocument.body:kx(e)&&n_(e)?e:r_(jx(e))}function o_(e,t){var n;void 0===t&&(t=[]);var r=r_(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=_x(r),a=o?[i].concat(i.visualViewport||[],n_(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(o_(jx(a)))}function i_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function a_(e,t,n){return t===mx?i_(function(e,t){var n=_x(e),r=Dx(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Rx();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+t_(e),y:l}}(e,n)):wx(t)?function(e,t){var n=Mx(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):i_(function(e){var t,n=Dx(e),r=e_(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Tx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Tx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+t_(e),l=-r.scrollTop;return"rtl"===zx(o||n).direction&&(s+=Tx(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Dx(e)))}function s_(e,t,n,r){var o="clippingParents"===t?function(e){var t=o_(jx(e)),n=["absolute","fixed"].indexOf(zx(e).position)>=0&&kx(e)?Bx(e):e;return wx(n)?t.filter(function(e){return wx(e)&&Px(e,n)&&"body"!==xx(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=a_(e,n,r);return t.top=Tx(o.top,t.top),t.right=Ax(o.right,t.right),t.bottom=Ax(o.bottom,t.bottom),t.left=Tx(o.left,t.left),t},a_(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function l_(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ex(o):null,a=o?Gx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case sx:t={x:s,y:n.y-r.height};break;case lx:t={x:s,y:n.y+n.height};break;case ux:t={x:n.x+n.width,y:l};break;case cx:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?$x(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case px:t[u]=t[u]-(n[c]/2-r[c]/2);break;case hx:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function u_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?mx:u,d=n.elementContext,f=void 0===d?gx:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Wx("number"!=typeof g?g:Ux(g,fx)),y=f===gx?"reference":gx,b=e.rects.popper,x=e.elements[h?y:f],_=s_(wx(x)?x:x.contextElement||Dx(e.elements.popper),l,c,a),w=Mx(e.elements.reference),k=l_({reference:w,element:b,placement:o}),S=i_(Object.assign({},b,k)),C=f===gx?S:w,E={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},T=e.modifiersData.offset;if(f===gx&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[ux,lx].indexOf(e)>=0?1:-1,n=[sx,lx].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function c_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?yx:l,c=Gx(r),d=c?s?vx:vx.filter(function(e){return Gx(e)===c}):fx,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=u_(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Ex(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var d_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Ex(g),y=l||(v===g||!h?[Qx(g)]:function(e){if(Ex(e)===dx)return[];var t=Qx(e);return[Zx(e),t,Zx(t)]}(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(Ex(n)===dx?c_(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var E=b[C],T=Ex(E),A=Gx(E)===px,N=[sx,lx].indexOf(T)>=0,L=N?"width":"height",R=u_(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=N?A?ux:cx:A?lx:sx;x[L]>_[L]&&(M=Qx(M));var O=Qx(M),P=[];if(i&&P.push(R[T]<=0),s&&P.push(R[M]<=0,R[O]<=0),P.every(function(e){return e})){S=E,k=!1;break}w.set(E,P)}if(k)for(var z=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},I=h?3:1;I>0;I--){if("break"===z(I))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function f_(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function p_(e){return[sx,ux,lx,cx].some(function(t){return e[t]>=0})}var h_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=yx.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ex(e),o=[cx,sx].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[cx,ux].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var m_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=u_(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=Ex(t.placement),y=Gx(t.placement),b=!y,x=$x(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(i){var N,L="y"===x?sx:cx,R="y"===x?lx:ux,M="y"===x?"height":"width",O=w[x],P=O+g[L],z=O-g[R],I=p?-S[M]/2:0,D=y===px?k[M]:S[M],j=y===px?-S[M]:-k[M],F=t.elements.arrow,B=p&&F?Ox(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[L],W=$[R],U=Hx(0,k[M],B[M]),K=b?k[M]/2-I-U-H-E.mainAxis:D-U-H-E.mainAxis,G=b?-k[M]/2+I+U+W+E.mainAxis:j+U+W+E.mainAxis,V=t.elements.arrow&&Bx(t.elements.arrow),Y=V?"y"===x?V.clientTop||0:V.clientLeft||0:0,q=null!=(N=null==T?void 0:T[x])?N:0,J=O+G-q,Q=Hx(p?Ax(P,O+K-q-Y):P,O,p?Tx(z,J):z);w[x]=Q,A[x]=Q-O}if(s){var X,Z="x"===x?sx:cx,ee="x"===x?lx:ux,te=w[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[sx,cx].indexOf(v),ae=null!=(X=null==T?void 0:T[_])?X:0,se=ie?re:te-k[ne]-S[ne]-ae+E.altAxis,le=ie?te+k[ne]+S[ne]-ae-E.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Hx(e,t,n);return r>n?n:r}(se,te,le):Hx(p?se:re,te,p?le:oe);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function g_(e,t,n){void 0===n&&(n=!1);var r=kx(t),o=kx(t)&&function(e){var t=e.getBoundingClientRect(),n=Nx(t.width)/e.offsetWidth||1,r=Nx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Dx(t),a=Mx(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==xx(t)||n_(i))&&(s=function(e){return e!==_x(e)&&kx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:e_(e);var t}(t)),kx(t)?((l=Mx(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=t_(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function v_(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function y_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var b_={placement:"bottom",modifiers:[],strategy:"absolute"};function x_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function __(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?b_:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},b_,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:wx(e)?o_(e):e.contextElement?o_(e.contextElement):[],popper:o_(t)};var c,d,f=function(e){var t=v_(e);return bx.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((c=[].concat(r,o.options.modifiers),d=c.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return o.orderedModifiers=f.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),u=function(){};a.push(s||u)}}),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(x_(t,n)){o.rects={reference:g_(t,Bx(n),"fixed"===o.options.strategy),popper:Ox(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:y_(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){u(),s=!0}};if(!x_(e,t))return l;function u(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var w_=__({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=_x(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,qx)}),s&&l.addEventListener("resize",n.update,qx),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,qx)}),s&&l.removeEventListener("resize",n.update,qx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=l_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:Ex(t.placement),variation:Gx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Cx,h_,d_,m_,Kx,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=u_(t,{elementContext:"reference"}),s=u_(t,{altBoundary:!0}),l=f_(a,r),u=f_(s,o,i),c=p_(l),d=p_(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const k_=D.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=D.useState(null),s=vv(D.isValidElement(n)?Dv(n):null,t);if(iv(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),iv(()=>{if(i&&!o)return fv(t,i),()=>{fv(t,null)}},[t,i,o]),o){if(D.isValidElement(n)){const e={ref:s};return D.cloneElement(n,e)}return Lc.jsx(D.Fragment,{children:n})}return Lc.jsx(D.Fragment,{children:i?ab.createPortal(n,i):i})});function S_(e){return Mg("MuiPopper",e)}Og("MuiPopper",["root"]);const C_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],E_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function T_(e){return"function"==typeof e?e():e}const A_={},N_=D.forwardRef(function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h}=e,m=mf(e,C_),g=D.useRef(null),v=vv(g,t),y=D.useRef(null),b=vv(y,d),x=D.useRef(b);iv(()=>{x.current=b},[b]),D.useImperativeHandle(d,()=>y.current,[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[w,k]=D.useState(_),[S,C]=D.useState(T_(r));D.useEffect(()=>{y.current&&y.current.forceUpdate()}),D.useEffect(()=>{r&&C(T_(r))},[r]),iv(()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{k(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=w_(S,g.current,hf({placement:_},c,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}},[S,a,s,l,c,_]);const E={placement:w};null!==h&&(E.TransitionProps=h);const T=(e=>{const{classes:t}=e;return Rv({root:["root"]},S_,t)})(e),A=null!=(n=p.root)?n:"div",N=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=mf(e,Iv),s=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:u}=zv(hf({},a,{externalSlotProps:s}));return Ov(n,hf({},l,{ref:vv(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:A,externalSlotProps:f.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:T.root});return Lc.jsx(A,hf({},N,{children:"function"==typeof o?o(E):o}))}),L_=D.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:d=A_,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=mf(e,E_),[y,b]=D.useState(!0);if(!s&&!u&&(!h||y))return null;let x;if(o)x=o;else if(n){const e=T_(n);x=e&&void 0!==e.nodeType?cv(e).body:cv(null).body}const _=u||!s||h&&!y?void 0:"none",w=h?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return Lc.jsx(k_,{disablePortal:a,container:x,children:Lc.jsx(N_,hf({anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!y:u,placement:c,popperOptions:d,popperRef:f,slotProps:m,slots:g},v,{style:hf({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),R_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],M_=Zy(L_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O_=D.forwardRef(function(e,t){var n;const r=ax(),o=rb({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=o,x=mf(o,R_),_=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,w=hf({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Lc.jsx(M_,hf({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=b?b:l},w,{ref:t}))}),P_=["onChange","maxRows","minRows","style","value"];function z_(e){return parseInt(e,10)||0}const I_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function D_(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const j_=D.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=mf(e,P_),{current:l}=D.useRef(null!=a),u=D.useRef(null),c=vv(t,u),d=D.useRef(null),f=D.useRef(null),p=D.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=dv(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=z_(i.paddingBottom)+z_(i.paddingTop),l=z_(i.borderBottomWidth)+z_(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),h=gv(()=>{const e=u.current,t=p();if(!e||!t||D_(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=D.useCallback(()=>{const e=u.current,t=p();if(!e||!t||D_(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),g=D.useRef(-1);iv(()=>{const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(m),t=null==u?void 0:u.current;if(!t)return;const n=dv(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[p,m,h]),iv(()=>{m()});return Lc.jsxs(D.Fragment,{children:[Lc.jsx("textarea",hf({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Lc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:hf({},I_,i,{paddingTop:0,paddingBottom:0})})]})});const F_=D.createContext(void 0);function B_(e){return Lc.jsx(wg,hf({},e,{defaultTheme:zy,themeId:pf}))}function $_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function H_(e){return Mg("MuiInputBase",e)}const W_=Og("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),U_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],K_=Zy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>hf({},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",[`&.${W_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&hf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),G_=Zy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=hf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return hf({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${W_.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${W_.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),V_=Lc.jsx(B_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Y_=D.forwardRef(function(e,t){var n;const r=rb({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:_=!1,name:w,onBlur:k,onChange:S,onClick:C,onFocus:E,onKeyDown:T,onKeyUp:A,placeholder:N,readOnly:L,renderSuffix:R,rows:M,slotProps:O={},slots:P={},startAdornment:z,type:I="text",value:j}=r,F=mf(r,U_),B=null!=v.value?v.value:j,{current:$}=D.useRef(null!=B),H=D.useRef(),W=D.useCallback(e=>{},[]),U=vv(H,y,v.ref,W),[K,G]=D.useState(!1),V=D.useContext(F_),Y=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=V?V.focused:K,D.useEffect(()=>{!V&&d&&K&&(G(!1),k&&k())},[V,d,K,k]);const q=V&&V.onFilled,J=V&&V.onEmpty,Q=D.useCallback(e=>{!function(e,t=!1){return e&&($_(e.value)&&""!==e.value||t&&$_(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():q&&q()},[q,J]);iv(()=>{$&&Q({value:B})},[B,Q,$]);D.useEffect(()=>{Q(H.current)},[]);let X=g,Z=v;_&&"input"===X&&(Z=hf(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:b,minRows:x},Z),X=j_);D.useEffect(()=>{V&&V.setAdornedStart(Boolean(z))},[V,z]);const ee=hf({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:p,error:Y.error,focused:Y.focused,formControl:V,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:_,size:Y.size,startAdornment:z,type:I}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return Rv({root:["root",`color${xm(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${xm(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},H_,t)})(ee),ne=P.root||l.Root||K_,re=O.root||u.root||{},oe=P.input||l.Input||G_;return Z=hf({},Z,null!=(n=O.input)?n:u.input),Lc.jsxs(D.Fragment,{children:[!f&&V_,Lc.jsxs(ne,hf({},re,!Mv(ne)&&{ownerState:hf({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),C&&C(e)}},F,{className:Ng(te.root,re.className,s,L&&"MuiInputBase-readOnly"),children:[z,Lc.jsx(F_.Provider,{value:null,children:Lc.jsx(oe,hf({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:N,readOnly:L,required:Y.required,rows:M,value:B,onKeyDown:T,onKeyUp:A,type:I},Z,!Mv(oe)&&{as:X,ownerState:hf({},ee,Z.ownerState)},{ref:U,className:Ng(te.input,Z.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(df(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(E&&E(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),p,R?R(hf({},Y,{startAdornment:z})):null]}))]})}),q_=Og("MuiBox",["root"]),J_=Py(),Q_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=tm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(pg);return D.forwardRef(function(e,a){const s=xg(n),l=Sg(e),{className:u,component:c="div"}=l,d=mf(l,Lg);return Lc.jsx(i,hf({as:c,ref:a,className:Ng(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:pf,defaultTheme:J_,defaultClassName:q_.root,generateClassName:Tg.generate});function X_(e){return Mg("MuiButton",e)}const Z_=Og("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"]),ew=D.createContext({}),tw=D.createContext(void 0),nw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rw=e=>hf({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ow=Zy(Kb,{shouldForwardProp:e=>Xy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xm(n.color)}`],t[`size${xm(n.size)}`],t[`${n.variant}Size${xm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return hf({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":hf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:hy.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hy.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hy.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":hf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Z_.focusVisible}`]:hf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Z_.disabled}`]:hf({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${hy.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Z_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Z_.disabled}`]:{boxShadow:"none"}}),iw=Zy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${xm(n.size)}`]]}})(({ownerState:e})=>hf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rw(e))),aw=Zy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${xm(n.size)}`]]}})(({ownerState:e})=>hf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rw(e))),sw=D.forwardRef(function(e,t){const n=D.useContext(ew),r=D.useContext(tw),o=rb({props:rv(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=o,b=mf(o,nw),x=hf({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return hf({},a,Rv({root:["root",i,`${i}${xm(t)}`,`size${xm(o)}`,`${i}Size${xm(o)}`,`color${xm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${xm(o)}`],endIcon:["icon","endIcon",`iconSize${xm(o)}`]},X_,a))})(x),w=g&&Lc.jsx(iw,{className:_.startIcon,ownerState:x,children:g}),k=f&&Lc.jsx(aw,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return Lc.jsxs(ow,hf({ownerState:x,className:Ng(n.className,_.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Ng(_.focusVisible,p),ref:t,type:v},b,{classes:_,children:[w,i,k]}))});function lw(e){return e.substring(2).toLowerCase()}function uw(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=D.useRef(!1),s=D.useRef(null),l=D.useRef(!1),u=D.useRef(!1);D.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=vv(Dv(t),s),d=gv(e=>{const t=u.current;u.current=!1;const r=cv(s.current);if(!l.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),i||!n&&t||o(e)}),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:c};return!1!==i&&(p[i]=f(i)),D.useEffect(()=>{if(!1!==i){const e=lw(i),t=cv(s.current),n=()=>{a.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}},[d,i]),!1!==r&&(p[r]=f(r)),D.useEffect(()=>{if(!1!==r){const e=lw(r),t=cv(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),Lc.jsx(D.Fragment,{children:D.cloneElement(t,p)})}function cw(e){return Mg("MuiDivider",e)}const dw=Og("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pw=Zy("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>hf({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:hy.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>hf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>hf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>hf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>hf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),hw=Zy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>hf({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),mw=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=mf(n,fw),h=hf({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Rv({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},cw,r)})(h);return Lc.jsx(pw,hf({as:a,className:Ng(m.root,i),role:c,ref:t,ownerState:h},p,{children:o?Lc.jsx(hw,{className:m.wrapper,ownerState:h,children:o}):null}))});mw.muiSkipListHighlight=!0;const gw=function(e={}){const{createStyledComponent:t=ty,useThemeProps:n=ny,componentName:r="MuiStack"}=e,o=t(oy),i=D.forwardRef(function(e,t){const i=Sg(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=mf(i,Zv),h={direction:s,spacing:l,useFlexGap:f},m=Rv({root:["root"]},e=>Mg(r,e),{});return Lc.jsx(o,hf({as:a,ownerState:h,ref:t,className:Ng(m.root,d)},p,{children:u?ry(c,u):c}))});return i}({createStyledComponent:Zy("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>rb({props:e,name:"MuiStack"})}),vw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yw(e){return`scale(${e}, ${e**2})`}const bw={entering:{opacity:1,transform:yw(1)},entered:{opacity:1,transform:"none"}},xw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_w=D.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:m=mb}=e,g=mf(e,vw),v=_v(),y=D.useRef(),b=Iy(),x=D.useRef(null),_=vv(x,Dv(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=w(u),S=w((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=kb({style:p,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:xw?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),C=w(l),E=w(f),T=w(e=>{const{duration:t,delay:n,easing:r}=kb({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:xw?o:.666*o,delay:xw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=yw(.75),c&&c(e)}),A=w(d);return Lc.jsx(m,hf({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:C,onEntering:k,onExit:T,onExited:A,onExiting:E,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>D.cloneElement(o,hf({style:hf({opacity:0,transform:yw(.75),visibility:"exited"!==e||a?void 0:"hidden"},bw[e],p,o.props.style),ref:_},t))}))});_w.muiSupportAuto=!0;const ww=D.createContext({});function kw(e){return Mg("MuiList",e)}Og("MuiList",["root","padding","dense","subheader"]);const Sw=["children","className","component","dense","disablePadding","subheader"],Cw=Zy("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>hf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ew=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=mf(n,Sw),c=D.useMemo(()=>({dense:a}),[a]),d=hf({},n,{component:i,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Rv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},kw,t)})(d);return Lc.jsx(ww.Provider,{value:c,children:Lc.jsxs(Cw,hf({as:i,className:Ng(f.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Tw(e){return Mg("MuiListItemIcon",e)}const Aw=Og("MuiListItemIcon",["root","alignItemsFlexStart"]),Nw=["className"],Lw=Zy("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>hf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Rw=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=mf(n,Nw),i=hf({},n,{alignItems:D.useContext(ww).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Rv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Tw,n)})(i);return Lc.jsx(Lw,hf({className:Ng(a.root,r),ownerState:i,ref:t},o))}),Mw=Og("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ow=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Iw(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Dw(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Iw(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const jw=D.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=mf(e,Ow),f=D.useRef(null),p=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iv(()=>{r&&f.current.focus()},[r]),D.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(cv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=vv(f,t);let m=-1;D.Children.forEach(i,(e,t)=>{D.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=D.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),D.cloneElement(e,t)}return e});return Lc.jsx(Ew,hf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=cv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Dw(t,r,l,s,Pw);else if("ArrowUp"===n)e.preventDefault(),Dw(t,r,l,s,zw);else if("Home"===n)e.preventDefault(),Dw(t,null,l,s,Pw);else if("End"===n)e.preventDefault(),Dw(t,null,l,s,zw);else if(1===n.length){const o=p.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Iw(r,o);o.previousKeyMatched&&(l||Dw(t,r,!1,s,Pw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))});function Fw(e){return Mg("MuiMenuItem",e)}const Bw=Og("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$w=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hw=Zy(Kb,{shouldForwardProp:e=>Xy(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>hf({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:hy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:hy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dw.inset}`]:{marginLeft:52},[`& .${Mw.root}`]:{marginTop:0,marginBottom:0},[`& .${Mw.inset}`]:{paddingLeft:36},[`& .${Aw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Aw.root} svg`]:{fontSize:"1.25rem"}}))),Ww=D.forwardRef(function(e,t){const n=rb({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,f=mf(n,$w),p=D.useContext(ww),h=D.useMemo(()=>({dense:i||p.dense||!1,disableGutters:s}),[p.dense,i,s]),m=D.useRef(null);iv(()=>{r&&m.current&&m.current.focus()},[r]);const g=hf({},n,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return hf({},a,Rv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Fw,a))})(n),y=vv(m,t);let b;return n.disabled||(b=void 0!==c?c:-1),Lc.jsx(ww.Provider,{value:h,children:Lc.jsx(Hw,hf({ref:y,role:u,tabIndex:b,component:o,focusVisibleClassName:Ng(v.focusVisible,l),className:Ng(v.root,d)},f,{ownerState:g,classes:v}))})});function Uw(e){return Mg("MuiTooltip",e)}const Kw=Og("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Gw=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Vw=Zy(O_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>hf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kw.arrow}`]:hf({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kw.arrow}`]:hf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Yw=Zy("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${xm(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return hf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:hy.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Kw.popper}[data-popper-placement*="left"] &`]:hf({transformOrigin:"right center"},t.isRtl?hf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):hf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kw.popper}[data-popper-placement*="right"] &`]:hf({transformOrigin:"left center"},t.isRtl?hf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):hf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kw.popper}[data-popper-placement*="top"] &`]:hf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kw.popper}[data-popper-placement*="bottom"] &`]:hf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),qw=Zy("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:hy.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Jw=!1;const Qw=new xv;let Xw={x:0,y:0};function Zw(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ek=D.forwardRef(function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h,m,g,v,y,b,x;const _=rb({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:k,components:S={},componentsProps:C={},describeChild:E=!1,disableFocusListener:T=!1,disableHoverListener:A=!1,disableInteractive:N=!1,disableTouchListener:L=!1,enterDelay:R=100,enterNextDelay:M=0,enterTouchDelay:O=700,followCursor:P=!1,id:z,leaveDelay:I=0,leaveTouchDelay:j=1500,onClose:F,onOpen:B,open:$,placement:H="bottom",PopperComponent:W,PopperProps:U={},slotProps:K={},slots:G={},title:V,TransitionComponent:Y=_w,TransitionProps:q}=_,J=mf(_,Gw),Q=D.isValidElement(k)?k:Lc.jsx("span",{children:k}),X=Iy(),Z=(()=>{const e=D.useContext(Wv);return null!=e&&e})(),[ee,te]=D.useState(),[ne,re]=D.useState(null),oe=D.useRef(!1),ie=N||P,ae=_v(),se=_v(),le=_v(),ue=_v(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(void 0!==e),[i,a]=D.useState(t);return[o?e:i,D.useCallback(e=>{o||a(e)},[])]}({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ce;const pe=mv(z),he=D.useRef(),me=gv(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});D.useEffect(()=>me,[me]);const ge=e=>{Qw.clear(),Jw=!0,de(!0),B&&!fe&&B(e)},ve=gv(e=>{Qw.start(800+I,()=>{Jw=!1}),de(!1),F&&fe&&F(e),ae.start(X.transitions.duration.shortest,()=>{oe.current=!1})}),ye=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),R||Jw&&M?se.start(Jw?M:R,()=>{ge(e)}):ge(e))},be=e=>{se.clear(),le.start(I,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=Lv(),[,Se]=D.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(Se(!1),be(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Se(!0),ye(e))},Te=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(O,()=>{document.body.style.WebkitUserSelect=he.current,ye(e)})},Ne=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),le.start(j,()=>{ve(e)})};D.useEffect(()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}},[ve,fe]);const Le=vv(Dv(Q),ke,te,t);V||0===V||(fe=!1);const Re=D.useRef(),Me={},Oe="string"==typeof V;E?(Me.title=fe||!Oe||A?null:V,Me["aria-describedby"]=fe?pe:null):(Me["aria-label"]=Oe?V:null,Me["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=hf({},Me,J,Q.props,{className:Ng(J.className,Q.props.className),onTouchStart:Te,ref:Le},P?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),Xw={x:e.clientX,y:e.clientY},Re.current&&Re.current.update()}}:{}),ze={};L||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Ne),A||(Pe.onMouseOver=Zw(ye,Pe.onMouseOver),Pe.onMouseLeave=Zw(be,Pe.onMouseLeave),ie||(ze.onMouseOver=ye,ze.onMouseLeave=be)),T||(Pe.onFocus=Zw(Ee,Pe.onFocus),Pe.onBlur=Zw(Ce,Pe.onBlur),ie||(ze.onFocus=Ee,ze.onBlur=Ce));const Ie=D.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),hf({},U.popperOptions,{modifiers:t})},[ne,U]),De=hf({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:H,PopperComponentProp:W,touch:oe.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Rv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${xm(i.split("-")[0])}`],arrow:["arrow"]},Uw,t)})(De),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:Vw,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:S.Transition)?i:Y)?o:_w,$e=null!=(s=null!=(l=G.tooltip)?l:S.Tooltip)?s:Yw,He=null!=(u=null!=(c=G.arrow)?c:S.Arrow)?u:qw,We=Ov(Fe,hf({},U,null!=(d=K.popper)?d:C.popper,{className:Ng(je.popper,null==U?void 0:U.className,null==(f=null!=(p=K.popper)?p:C.popper)?void 0:f.className)}),De),Ue=Ov(Be,hf({},q,null!=(h=K.transition)?h:C.transition),De),Ke=Ov($e,hf({},null!=(m=K.tooltip)?m:C.tooltip,{className:Ng(je.tooltip,null==(g=null!=(v=K.tooltip)?v:C.tooltip)?void 0:g.className)}),De),Ge=Ov(He,hf({},null!=(y=K.arrow)?y:C.arrow,{className:Ng(je.arrow,null==(b=null!=(x=K.arrow)?x:C.arrow)?void 0:b.className)}),De);return Lc.jsxs(D.Fragment,{children:[D.cloneElement(Q,Pe),Lc.jsx(Fe,hf({as:null!=W?W:O_,placement:H,anchorEl:P?{getBoundingClientRect:()=>({top:Xw.y,left:Xw.x,right:Xw.x,bottom:Xw.y,width:0,height:0})}:ee,popperRef:Re,open:!!ee&&fe,id:pe,transition:!0},ze,We,{popperOptions:Ie,children:({TransitionProps:e})=>Lc.jsx(Be,hf({timeout:X.transitions.duration.shorter},e,Ue,{children:Lc.jsxs($e,hf({},Ke,{children:[V,w?Lc.jsx(He,hf({},Ge,{ref:re})):null]}))}))}))]})}),tk=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M9 1v1H2v12h12V7h1v7a1 1 0 0 1-.883.993L14 15H2a1 1 0 0 1-.993-.883L1 14V2a1 1 0 0 1 .883-.993L2 1zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0z"})}),nk=D.forwardRef(tk),rk=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),ok=D.forwardRef(rk);function ik({validateUrl:e,attributes:t}){const[n]=Cc();return D.useEffect(()=>{if(!n.hasNodes([gu]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),D.useEffect(()=>function(e,t){return Gs(e.registerNodeTransform(gu,bu),$l(()=>e.registerCommand(Eu,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Au(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Au(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Au(t,{...r,rel:o,target:n,title:i}),!0}},1)),$l(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Pt,t=>{const o=so();if(!Wr(o)||o.isCollapsed()||!xl(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>qo(e))&&(e.dispatchCommand(Eu,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,function(e,t={}){const n={};for(const r in e){const o=t[r],i=Ml(void 0===o?e[r]:o);n[r]=i}return n}({attributes:t,validateUrl:e})),[n,e,t]),null}const ak={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},sk=12,lk=14,uk=16,ck=24,dk=3,fk=300,pk=400,hk=600,mk=700,gk={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function vk(e){return Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Lc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function yk({fontSize:e="medium",children:t=null,className:n=""}={}){return Lc.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function bk(e={}){return Lc.jsx(yk,{...e,children:Lc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Lc.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Lc.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function xk(e={}){return Lc.jsx(yk,{fontSize:"medium",...e,children:Lc.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Lc.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Lc.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function _k(e){return Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Lc.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function wk(e={}){return Lc.jsx(yk,{...e,children:Lc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Lc.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Lc.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Lc.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function kk(e={}){return Lc.jsx(yk,{fontSize:"medium",...e,children:Lc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Lc.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Lc.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Sk({className:e}){return Lc.jsx(yk,{fontSize:"small",className:e,children:Lc.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Lc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Lc.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Lc.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Lc.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Lc.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Ck(e={}){return Lc.jsx(yk,{...e,children:Lc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Lc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Lc.jsx("rect",{stroke:ak.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Ek={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:dk,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Tk=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ak.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ak.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Lc.jsx(vk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ak.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ak.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ak.MISC_FOCUS_BORDER}`,borderRadius:dk,backgroundColor:ak.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${ak.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ak.WHITE,color:ak.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:dk},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ak.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ak.GREYSCALE_0_15,backgroundColor:ak.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ak.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ak.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ak.GREEN_PALE},"&:active":{backgroundColor:ak.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ak.GREEN_PALE,boxShadow:`0 0 0 3px ${uv(ak.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ak.BLUE_PALE},"&:active":{backgroundColor:ak.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ak.BLUE_PALE,boxShadow:`0 0 0 3px ${uv(ak.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:dk,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ak.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ak.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ak.GREYSCALE_0_42,backgroundColor:ak.GREYSCALE_100_60,"&:active":{backgroundColor:ak.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ak.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ak.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ak.PURPLE,"&.Mui-focusVisible":{borderColor:ak.PURPLE,boxShadow:`0 0 0 3px ${uv(ak.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ak.GREEN,"&.Mui-focusVisible":{borderColor:ak.GREEN,boxShadow:`0 0 0 3px ${uv(ak.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ak.BLUE,"&.Mui-focusVisible":{borderColor:ak.BLUE,boxShadow:`0 0 0 3px ${uv(ak.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ak.ORANGE,"&.Mui-focusVisible":{borderColor:ak.ORANGE,boxShadow:`0 0 0 3px ${uv(ak.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ak.RED,"&.Mui-focusVisible":{borderColor:ak.RED,boxShadow:`0 0 0 3px ${uv(ak.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ak.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ak.PURPLE_PALE},"&:active":{backgroundColor:ak.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ak.PURPLE_PALE,boxShadow:`0 0 0 3px ${uv(ak.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ak.GREEN_PALE},"&:active":{backgroundColor:ak.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ak.GREEN_PALE,boxShadow:`0 0 0 3px ${uv(ak.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ak.BLUE_PALE},"&:active":{backgroundColor:ak.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ak.BLUE_PALE,boxShadow:`0 0 0 3px ${uv(ak.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ak.ORANGE_PALE},"&:active":{backgroundColor:ak.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ak.ORANGE_PALE,boxShadow:`0 0 0 3px ${uv(ak.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ak.RED_PALE},"&:active":{backgroundColor:ak.RED_DARK},"&.Mui-focusVisible":{borderColor:ak.RED_PALE,boxShadow:`0 0 0 3px ${uv(ak.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:ak.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ak.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:dk,boxShadow:`inset 0 0 0 2px ${ak.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Lc.jsx(_k,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:sk,borderRadius:dk,color:ak.TEXT_PRIMARY,backgroundColor:ak.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ak.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ak.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ak.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ak.GREYSCALE_0_05,color:ak.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ak.GREEN,borderColor:ak.GREEN},"&.MuiChip-outlinedInfo":{color:ak.BLUE,borderColor:ak.BLUE},"&.MuiChip-outlinedWarning":{color:ak.ORANGE,borderColor:ak.ORANGE},"&.MuiChip-outlinedError":{color:ak.RED,borderColor:ak.RED}},outlined:{border:`solid 1px ${ak.GREYSCALE_0_15}`,backgroundColor:ak.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:dk,boxShadow:"none",backgroundColor:ak.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ak.GREEN,borderColor:ak.GREEN},outlinedSecondary:{color:ak.BLUE,borderColor:ak.BLUE},label:{fontFamily:gk.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Lc.jsx(_k,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Lc.jsx(vk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:dk},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:dk,fontSize:lk,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ak.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ak.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ak.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ak.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ak.GREYSCALE_0_05}}},popupIndicator:{borderRadius:dk,border:`solid 1px ${ak.GREYSCALE_0_15}`,color:ak.GREYSCALE_0_60,marginRight:0,width:ck,height:ck},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ak.GREYSCALE_0_15}`},clearIndicator:{borderRadius:dk,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ak.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lk}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:sk,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ak.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ak.GREYSCALE_25,fontSize:sk,fontFamily:gk.FONT_FAMILY,fontWeight:hk,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ak.TEXT_PRIMARY},"&.Mui-error":{color:ak.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ak.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pk,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ak.TEXT_SECONDARY,content:"'(required)'",fontWeight:pk,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lk,lineHeight:"16px",backgroundColor:ak.WHITE,borderRadius:dk,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ak.GREYSCALE_0_05}`,borderColor:ak.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ak.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ak.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ak.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ak.RED}`,boxShadow:`0px 0px 0px 1px ${ak.RED}, inset 0 2px 0 0 ${ak.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ak.GREYSCALE_0_10}`,borderColor:ak.GREYSCALE_0_10,backgroundColor:ak.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ak.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ak.GREYSCALE_0_15,borderRadius:dk,boxShadow:`inset 0 2px 0 0 ${ak.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Lc.jsx(vk,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ak.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ak.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ak.GREYSCALE_0_03},"&:active":{backgroundColor:ak.GREYSCALE_0_10},"&:focus":{backgroundColor:ak.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ak.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ak.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ak.GREYSCALE_0_30,"&:hover":{backgroundColor:ak.GREYSCALE_0_0,borderColor:ak.GREYSCALE_0_15},"& ~svg":{color:ak.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ak.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:dk}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ak.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ak.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ak.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:lk,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:sk,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:sk,fontWeight:hk,color:ak.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:hk}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ak.GREYSCALE_0_15}, 0px 0px 0px 1px ${ak.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Lc.jsx(kk,{}),checkedIcon:Lc.jsx(xk,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ak.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ak.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ak.GREEN_PALE,boxShadow:`0 0 0 3px ${uv(ak.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ak.BLUE_PALE,boxShadow:`0 0 0 3px ${uv(ak.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ak.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ak.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Lc.jsx(Ck,{}),checkedIcon:Lc.jsx(bk,{}),indeterminateIcon:Lc.jsx(wk,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:dk,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ak.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ak.GREYSCALE_0_55,color:ak.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:ak.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ak.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ak.GREYSCALE_0_55,"&:hover":{color:ak.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:ak.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ak.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lk,color:ak.TEXT_PRIMARY,lineHeight:"16px",fontWeight:hk},secondary:{fontSize:sk,color:ak.GREYSCALE_45,fontWeight:pk,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lk,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lk,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ak.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sk,borderBottom:`solid 1px ${ak.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lk,color:ak.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ak.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ak.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ak.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:ak.RED}}},"&.Mui-focusVisible":{backgroundColor:ak.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:ak.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:ak.GREEN,height:"24px","&.Mui-disabled":{color:ak.GREYSCALE_0_15}},rail:{backgroundColor:ak.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ak.GREYSCALE_0_05}`,borderRadius:dk,boxShadow:`inset 0px 0px 0px 1px ${ak.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ak.GREYSCALE_0_05}`,borderRadius:dk},thumb:{height:"16px",width:"16px",borderRadius:dk,backgroundColor:ak.WHITE,boxShadow:`0px 1px 2px 0px ${ak.GREYSCALE_0_15}, 0px 0px 0px 1px ${ak.GREYSCALE_0_05}`,"&:hover":{borderRadius:dk,boxShadow:`0 2px 4px 0 ${ak.GREYSCALE_0_30}, 0 0 0 1px ${ak.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ak.GREYSCALE_0_15}, 0 0 0 1px ${ak.GREYSCALE_0_06}, 0 0 0 2px ${ak.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ak.GREYSCALE_0_15}, 0 0 0 1px ${ak.GREYSCALE_0_06}, 0 0 0 2px ${ak.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ak.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ak.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ak.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ak.GREYSCALE_0_15},markLabel:{color:ak.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ak.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ak.WHITE,color:ak.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:ak.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ak.GREEN_PALE,boxShadow:`0 0 0 3px ${uv(ak.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ak.BLUE_PALE,boxShadow:`0 0 0 3px ${uv(ak.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ak.GREYSCALE_0_15,borderRadius:dk},thumb:{height:"16px",width:"16px",borderRadius:dk,backgroundColor:ak.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:lk,fontWeight:hk,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ak.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ak.MISC_FOCUS_BORDER}`,backgroundColor:ak.GREYSCALE_0_03,borderRadius:dk},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ak.GREYSCALE_25,"&.Mui-selected":{color:ak.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lk,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:dk,"&:hover":{backgroundColor:ak.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ak.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ak.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:dk,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ak.GREYSCALE_0_05},"&:hover":{backgroundColor:ak.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ak.GREYSCALE_85}`,borderRight:`1px solid ${ak.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:hk,backgroundColor:ak.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:ak.GREYSCALE_98,borderBottom:`1px solid ${ak.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ak.GREYSCALE_85}`,borderTop:`1px solid ${ak.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ak.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ak.GREYSCALE_0_05,"&:hover":{backgroundColor:ak.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ak.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Lc.jsx(Sk,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${ak.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lk,borderRadius:dk,padding:"7px 16px",border:`1px solid ${ak.GREYSCALE_0_15}`,backgroundColor:ak.GREYSCALE_100_60,color:ak.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ak.GREYSCALE_0_10,border:`1px solid ${ak.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ak.GREYSCALE_0_03,border:`1px solid ${ak.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ak.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ak.MISC_FOCUS_BORDER}`,border:`1px solid ${ak.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ak.GREYSCALE_25,backgroundColor:ak.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ak.GREYSCALE_0_10,border:`1px solid ${ak.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sk,height:24,width:24,padding:7},sizeLarge:{fontSize:uk,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lk,borderRadius:dk}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:ak.GREYSCALE_20},tooltip:{backgroundColor:ak.GREYSCALE_20,fontSize:sk,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Ek}:{}}))(t);const Ak=e=>({mode:"light",primary:{ultraLight:ak.GREEN_ULTRA_LIGHT,light:ak.GREEN_PALE,main:ak.GREEN,dark:ak.GREEN_DARK,extraDark:ak.GREEN_EXTRA_DARK,contrastText:ak.WHITE},secondary:{ultraLight:ak.BLUE_ULTRA_LIGHT,light:ak.BLUE_PALE,main:ak.BLUE,dark:ak.BLUE_DARK,extraDark:ak.BLUE_EXTRA_DARK,contrastText:ak.WHITE},error:{ultraLight:ak.RED_ULTRA_LIGHT,light:ak.RED_PALE,main:ak.RED,dark:ak.RED_DARK,extraDark:ak.RED_EXTRA_DARK,contrastText:ak.WHITE},warning:{ultraLight:ak.ORANGE_ULTRA_LIGHT,light:ak.ORANGE_PALE,main:ak.ORANGE,dark:ak.ORANGE_DARK,extraDark:ak.ORANGE_EXTRA_DARK,contrastText:ak.WHITE},success:{ultraLight:ak.GREEN_ULTRA_LIGHT,light:ak.GREEN_PALE,main:ak.GREEN,dark:ak.GREEN_DARK,extraDark:ak.GREEN_EXTRA_DARK,contrastText:ak.WHITE},info:{ultraLight:ak.BLUE_ULTRA_LIGHT,light:ak.BLUE_PALE,main:ak.BLUE,dark:ak.BLUE_DARK,extraDark:ak.BLUE_EXTRA_DARK,contrastText:ak.WHITE},text:{primary:ak.TEXT_PRIMARY,secondary:ak.TEXT_SECONDARY,disabled:ak.GREYSCALE_0_30},action:{hover:ak.GREYSCALE_0_03,hoverOpacity:.03,selected:ak.GREYSCALE_0_05,selectedOpacity:.05,focus:ak.MISC_FOCUS_BORDER},amethyst:{ultraLight:ak.WHITE,main:ak.PURPLE,light:ak.PURPLE_PALE,dark:ak.PURPLE_DARK,extraDark:ak.GREYSCALE_0_0,contrastText:ak.WHITE},background:{paper:ak.WHITE,default:ak.GREYSCALE_95},divider:ak.GREYSCALE_0_15}),Nk=(e="light",t=!1)=>Py(((e,t=!1)=>({components:Tk(0,t),palette:Ak(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:lk,fontWeightLight:fk,fontWeightRegular:pk,fontWeightMedium:hk,fontWeightBold:mk,htmlFontSize:lk,fontFamily:gk.FONT_FAMILY,button:{fontWeight:hk,fontSize:lk,textTransform:"none"},body1:{fontSize:uk,lineHeight:"24px"},body2:{fontSize:lk,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ck,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:uk,fontWeight:hk,lineHeight:"16px"},h6:{fontSize:lk,fontWeight:hk,lineHeight:"16px"},caption:{color:ak.TEXT_SECONDARY},subtitle1:{fontSize:lk,color:ak.TEXT_SECONDARY},subtitle2:{fontSize:sk,color:ak.TEXT_SECONDARY}},shape:{borderRadius:dk}}))(0,t));var Lk,Rk,Mk={},Ok={exports:{}},Pk={exports:{}};function zk(){return Lk||(Lk=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Pk)),Pk.exports}var Ik={};function Dk(e,t){return function(){return null}}function jk(e){return e&&"object"===Qv(e)&&e.constructor===Object}function Fk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?hf({},e):e;return jk(e)&&jk(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(jk(t[o])&&o in e?r[o]=Fk(e[o],t[o],n):r[o]=t[o])}),r}var Bk=(Xh.element,function(){return null});Bk.isRequired=(Xh.element.isRequired,function(){return null});var $k=function(){return null};var Hk,Wk,Uk={exports:{}},Kk={};var Gk=(Wk||(Wk=1,Uk.exports=function(){if(Hk)return Kk;Hk=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,f=60121,p=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),f=v("react.block"),p=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case u:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return p}}case t:return p}}}var b=i,x=e,_=s,w=n,k=d,S=c,C=t,E=o,T=r,A=l;return Kk.ContextConsumer=a,Kk.ContextProvider=b,Kk.Element=x,Kk.ForwardRef=_,Kk.Fragment=w,Kk.Lazy=k,Kk.Memo=S,Kk.Portal=C,Kk.Profiler=E,Kk.StrictMode=T,Kk.Suspense=A,Kk.isAsyncMode=function(){return!1},Kk.isConcurrentMode=function(){return!1},Kk.isContextConsumer=function(e){return y(e)===a},Kk.isContextProvider=function(e){return y(e)===i},Kk.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Kk.isForwardRef=function(e){return y(e)===s},Kk.isFragment=function(e){return y(e)===n},Kk.isLazy=function(e){return y(e)===d},Kk.isMemo=function(e){return y(e)===c},Kk.isPortal=function(e){return y(e)===t},Kk.isProfiler=function(e){return y(e)===o},Kk.isStrictMode=function(e){return y(e)===r},Kk.isSuspense=function(e){return y(e)===l},Kk.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===f||e[0]===p)},Kk.typeOf=y,Kk}()),Uk.exports),Vk=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Vk);return t&&t[1]||""}(e)||t}function qk(e,t,n){var r=Yk(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Jk,Qk="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Xk=Xh.oneOfType([Xh.func,Xh.object]),Zk=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Dk,deepmerge:Fk,elementAcceptingRef:Bk,elementTypeAcceptingRef:$k,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Yk(e,"Component");if("object"===Qv(e))switch(e.$$typeof){case Gk.ForwardRef:return qk(e,e.render,"ForwardRef");case Gk.Memo:return qk(e,e.type,"memo");default:return}}},ponyfillGlobal:Qk,refType:Xk}),eS=g(Zk);function tS(){if(Jk)return Ik;Jk=1,Object.defineProperty(Ik,"__esModule",{value:!0}),Ik.hexToRgb=n,Ik.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map(function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t}).join(""))},Ik.hslToRgb=r,Ik.decomposeColor=o,Ik.recomposeColor=i,Ik.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ik.getLuminance=a,Ik.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Ik.fade=function(e,t){return s(e,t)},Ik.alpha=s,Ik.darken=l,Ik.lighten=u;var e=eS;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function u(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Ik}var nS,rS,oS,iS={},aS={exports:{}},sS={exports:{}},lS={exports:{}};function uS(){return nS||(nS=1,function(e){var t=zk().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(lS)),lS.exports}function cS(){return rS||(rS=1,function(e){var t=zk().default,n=uS();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(sS)),sS.exports}function dS(){return oS||(oS=1,function(e){var t=cS();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(aS)),aS.exports}var fS,pS={exports:{}};function hS(){return fS||(fS=1,function(e){var t=Wy();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(pS)),pS.exports}var mS,gS={};function vS(){if(mS)return gS;mS=1;var e=uy();Object.defineProperty(gS,"__esModule",{value:!0}),gS.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},c)},gS.keys=void 0;var t=e(By()),n=e(hS()),r=["xs","sm","md","lg","xl"];return gS.keys=r,gS}var yS,bS={};function xS(){if(yS)return bS;yS=1;var e=uy();Object.defineProperty(bS,"__esModule",{value:!0}),bS.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(dS()),n=e(By());return bS}var _S,wS={},kS={};function SS(){if(_S)return kS;_S=1,Object.defineProperty(kS,"__esModule",{value:!0}),kS.default=void 0;var e={black:"#000",white:"#fff"};return kS.default=e,kS}var CS,ES={};function TS(){if(CS)return ES;CS=1,Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return ES.default=e,ES}var AS,NS={};function LS(){if(AS)return NS;AS=1,Object.defineProperty(NS,"__esModule",{value:!0}),NS.default=void 0;var e={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"};return NS.default=e,NS}var RS,MS={};function OS(){if(RS)return MS;RS=1,Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=void 0;var e={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"};return MS.default=e,MS}var PS,zS={};function IS(){if(PS)return zS;PS=1,Object.defineProperty(zS,"__esModule",{value:!0}),zS.default=void 0;var e={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"};return zS.default=e,zS}var DS,jS={};function FS(){if(DS)return jS;DS=1,Object.defineProperty(jS,"__esModule",{value:!0}),jS.default=void 0;var e={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"};return jS.default=e,jS}var BS,$S={};function HS(){if(BS)return $S;BS=1,Object.defineProperty($S,"__esModule",{value:!0}),$S.default=void 0;var e={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"};return $S.default=e,$S}var WS,US,KS={};function GS(){if(WS)return KS;WS=1,Object.defineProperty(KS,"__esModule",{value:!0}),KS.default=void 0;var e={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"};return KS.default=e,KS}function VS(){if(US)return wS;US=1;var e=uy();Object.defineProperty(wS,"__esModule",{value:!0}),wS.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,k=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,S=e.info,C=void 0===S?{light:c.default[300],main:c.default[500],dark:c.default[700]}:S,E=e.success,T=void 0===E?{light:d.default[300],main:d.default[500],dark:d.default[700]}:E,A=e.type,N=void 0===A?"light":A,L=e.contrastThreshold,R=void 0===L?3:L,M=e.tonalOffset,O=void 0===M?.2:M,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function z(e){return(0,f.getContrastRatio)(e,h.text.primary)>=R?h.text.primary:p.text.primary}var I=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=z(e.main)),e},D={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:N,primary:I(v),secondary:I(b,"A400","A200","A700"),error:I(_),warning:I(k),info:I(C),success:I(T),grey:i.default,contrastThreshold:R,getContrastText:z,augmentColor:I,tonalOffset:O},D[N]),P)},wS.dark=wS.light=void 0;var t=e(By()),n=e(hS()),r=eS,o=e(SS()),i=e(TS()),a=e(LS()),s=e(OS()),l=e(IS()),u=e(FS()),c=e(HS()),d=e(GS()),f=tS(),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};wS.light=p;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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}};function m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.lighten)(e.main,o):"dark"===t&&(e.dark=(0,f.darken)(e.main,i)))}return wS.dark=h,wS}var YS,qS={};function JS(){if(YS)return qS;YS=1;var e=uy();Object.defineProperty(qS,"__esModule",{value:!0}),qS.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,f=u.fontSize,p=void 0===f?14:f,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,_=void 0===x?700:x,w=u.htmlFontSize,k=void 0===w?16:w,S=u.allVariants,C=u.pxToRem,E=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=p/14,A=C||function(e){return"".concat(e/k*T,"rem")},N=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:A(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,S)},L={h1:N(m,96,1.167,-1.5),h2:N(m,60,1.2,-.5),h3:N(v,48,1.167,0),h4:N(v,34,1.235,.25),h5:N(v,24,1.334,0),h6:N(b,20,1.6,.15),subtitle1:N(v,16,1.75,.15),subtitle2:N(b,14,1.57,.1),body1:N(v,16,1.5,.15),body2:N(v,14,1.43,.15),button:N(b,14,1.75,.4,a),caption:N(v,12,1.66,.4),overline:N(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:k,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:_},L),E,{clone:!1})};var t=e(By()),n=e(hS()),r=eS;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return qS}var QS,XS={};function ZS(){if(QS)return XS;QS=1,Object.defineProperty(XS,"__esModule",{value:!0}),XS.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return XS.default=t,XS}var eC,tC={};function nC(){if(eC)return tC;eC=1,Object.defineProperty(tC,"__esModule",{value:!0}),tC.default=void 0;var e={borderRadius:4};return tC.default=e,tC}var rC={};function oC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iC(e,t){if(e){if("string"==typeof e)return oC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oC(e,t):void 0}}function aC(e){return function(e){if(Array.isArray(e))return oC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sC(e,t){return t?Fk(e,t,{clone:!1}):e}var lC={xs:0,sm:600,md:960,lg:1280,xl:1920},uC={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(lC[e],"px)")}};function cC(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||uC;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Qv(t)){var o=e.theme.breakpoints||uC;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function dC(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function fC(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=dC(e.theme,o)||{};return cC(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=dC(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=Xv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function pC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?sC(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function hC(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var mC=fC({prop:"border",themeKey:"borders",transform:hC}),gC=fC({prop:"borderTop",themeKey:"borders",transform:hC}),vC=fC({prop:"borderRight",themeKey:"borders",transform:hC}),yC=fC({prop:"borderBottom",themeKey:"borders",transform:hC}),bC=fC({prop:"borderLeft",themeKey:"borders",transform:hC}),xC=fC({prop:"borderColor",themeKey:"palette"}),_C=fC({prop:"borderRadius",themeKey:"shape"}),wC=pC(mC,gC,vC,yC,bC,xC,_C);function kC(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function SC(e){var t=function(t){var n=e(t);return t.css?hf({},sC(n,e(hf({theme:t.theme},t.css))),kC(t.css,[e.filterProps])):t.sx?hf({},sC(n,e(hf({theme:t.theme},t.sx))),kC(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(aC(e.filterProps)),t}var CC=pC(fC({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),fC({prop:"display"}),fC({prop:"overflow"}),fC({prop:"textOverflow"}),fC({prop:"visibility"}),fC({prop:"whiteSpace"})),EC=fC({prop:"flexBasis"}),TC=fC({prop:"flexDirection"}),AC=fC({prop:"flexWrap"}),NC=fC({prop:"justifyContent"}),LC=fC({prop:"alignItems"}),RC=fC({prop:"alignContent"}),MC=fC({prop:"order"}),OC=fC({prop:"flex"}),PC=fC({prop:"flexGrow"}),zC=fC({prop:"flexShrink"}),IC=fC({prop:"alignSelf"}),DC=fC({prop:"justifyItems"}),jC=fC({prop:"justifySelf"}),FC=pC(EC,TC,AC,NC,LC,RC,MC,OC,PC,zC,IC,DC,jC),BC=fC({prop:"gridGap"}),$C=fC({prop:"gridColumnGap"}),HC=fC({prop:"gridRowGap"}),WC=fC({prop:"gridColumn"}),UC=fC({prop:"gridRow"}),KC=fC({prop:"gridAutoFlow"}),GC=fC({prop:"gridAutoColumns"}),VC=fC({prop:"gridAutoRows"}),YC=fC({prop:"gridTemplateColumns"}),qC=fC({prop:"gridTemplateRows"}),JC=fC({prop:"gridTemplateAreas"}),QC=fC({prop:"gridArea"}),XC=pC(BC,$C,HC,WC,UC,KC,GC,VC,YC,qC,JC,QC),ZC=fC({prop:"color",themeKey:"palette"}),eE=fC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),tE=pC(ZC,eE),nE=fC({prop:"position"}),rE=fC({prop:"zIndex",themeKey:"zIndex"}),oE=fC({prop:"top"}),iE=fC({prop:"right"}),aE=fC({prop:"bottom"}),sE=fC({prop:"left"}),lE=pC(nE,rE,oE,iE,aE,sE),uE=fC({prop:"boxShadow",themeKey:"shadows"});function cE(e){return e<=1?"".concat(100*e,"%"):e}var dE=fC({prop:"width",transform:cE}),fE=fC({prop:"maxWidth",transform:cE}),pE=fC({prop:"minWidth",transform:cE}),hE=fC({prop:"height",transform:cE}),mE=fC({prop:"maxHeight",transform:cE}),gE=fC({prop:"minHeight",transform:cE}),vE=fC({prop:"size",cssProperty:"width",transform:cE}),yE=fC({prop:"size",cssProperty:"height",transform:cE}),bE=fC({prop:"boxSizing"}),xE=pC(dE,fE,pE,hE,mE,gE,bE);function _E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||iC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wE={m:"margin",p:"padding"},kE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},SE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},CE=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!SE[e])return[e];e=SE[e]}var t=_E(e.split(""),2),n=t[0],r=t[1],o=wE[n],i=kE[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),EE=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function TE(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function AE(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function NE(e){var t=TE(e.theme);return Object.keys(e).map(function(n){if(-1===EE.indexOf(n))return null;var r=AE(CE(n),t),o=e[n];return cC(e,o,r)}).reduce(sC,{})}NE.propTypes={},NE.filterProps=EE;var LE,RE=fC({prop:"fontFamily",themeKey:"typography"}),ME=fC({prop:"fontSize",themeKey:"typography"}),OE=fC({prop:"fontStyle",themeKey:"typography"}),PE=fC({prop:"fontWeight",themeKey:"typography"}),zE=fC({prop:"letterSpacing"}),IE=fC({prop:"lineHeight"}),DE=fC({prop:"textAlign"}),jE=pC(RE,ME,OE,PE,zE,IE,DE),FE=Object.freeze({__proto__:null,alignContent:RC,alignItems:LC,alignSelf:IC,bgcolor:eE,border:mC,borderBottom:yC,borderColor:xC,borderLeft:bC,borderRadius:_C,borderRight:vC,borderTop:gC,borders:wC,bottom:aE,boxSizing:bE,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||uC,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(hf({theme:t.theme},t[o]))),n},null);return sC(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(aC(e.filterProps)),t},color:ZC,compose:pC,createUnarySpacing:TE,css:function(e){return SC(e)},display:CC,flex:OC,flexBasis:EC,flexDirection:TC,flexGrow:PC,flexShrink:zC,flexWrap:AC,flexbox:FC,fontFamily:RE,fontSize:ME,fontStyle:OE,fontWeight:PE,grid:XC,gridArea:QC,gridAutoColumns:GC,gridAutoFlow:KC,gridAutoRows:VC,gridColumn:WC,gridColumnGap:$C,gridGap:BC,gridRow:UC,gridRowGap:HC,gridTemplateAreas:JC,gridTemplateColumns:YC,gridTemplateRows:qC,height:hE,justifyContent:NC,justifyItems:DC,justifySelf:jC,left:sE,letterSpacing:zE,lineHeight:IE,maxHeight:mE,maxWidth:fE,minHeight:gE,minWidth:pE,order:MC,palette:tE,position:nE,positions:lE,right:iE,shadows:uE,sizeHeight:yE,sizeWidth:vE,sizing:xE,spacing:NE,style:fC,styleFunctionSx:SC,textAlign:DE,top:oE,typography:jE,width:dE,zIndex:rE}),BE=g(FE);function $E(){if(LE)return rC;LE=1,Object.defineProperty(rC,"__esModule",{value:!0}),rC.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=BE;return rC}var HE,WE={};function UE(){if(HE)return WE;HE=1;var e=uy();Object.defineProperty(WE,"__esModule",{value:!0}),WE.default=WE.duration=WE.easing=void 0;var t=e(hS()),n={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)"};WE.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}WE.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return WE.default=i,WE}var KE,GE,VE={};function YE(){if(KE)return VE;KE=1,Object.defineProperty(VE,"__esModule",{value:!0}),VE.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return VE.default=e,VE}function qE(){if(GE)return iS;GE=1;var e=uy();Object.defineProperty(iS,"__esModule",{value:!0}),iS.createMuiTheme=function(){return f.apply(void 0,arguments)},iS.default=void 0,e(dS());var t=e(hS()),n=eS,r=e(vS()),o=e(xS()),i=e(VS()),a=e(JS()),s=e(ZS()),l=e(nC()),u=e($E()),c=e(UE()),d=e(YE());function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=e.breakpoints,p=void 0===f?{}:f,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),k=(0,r.default)(p),S=(0,u.default)(y),C=(0,n.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,o.default)(k,S,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:S,shape:l.default,transitions:c.default,zIndex:d.default},_),E=arguments.length,T=new Array(E>1?E-1:0),A=1;A<E;A++)T[A-1]=arguments[A];return C=T.reduce(function(e,t){return(0,n.deepmerge)(e,t)},C)}var p=f;return iS.default=p,iS}var JE,QE={};function XE(){if(JE)return QE;JE=1;var e=uy();Object.defineProperty(QE,"__esModule",{value:!0}),QE.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=eS,n=e(qE());return QE}var ZE={},eT="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",tT=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function nT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==tT.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[eT]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function rT(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var oT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iT="object"===("undefined"==typeof window?"undefined":oT(window))&&"object"===("undefined"==typeof document?"undefined":oT(document))&&9===document.nodeType;function aT(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xv(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var sT={}.constructor;function lT(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(lT);if(e.constructor!==sT)return e;var t={};for(var n in e)t[n]=lT(e[n]);return t}function uT(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=lT(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var cT=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},dT=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=cT(e[n]," ");else t=cT(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function fT(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function pT(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function hT(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=fT(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=pT(f+":"+u+dT(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=pT(h+":"+u+dT(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=pT(g+":"+u+dT(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),pT(""+e+u+"{"+r,--i)+pT("}",i)):r}var mT=/([[\].#*$><+~=|^:(),"'`\s])/g,gT="undefined"!=typeof CSS&&CSS.escape,vT=function(e){return gT?gT(e):e.replace(mT,"\\$1")},yT=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),bT=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(vb(vb(o)),s),o.selectorText="."+vT(o.id)),o}ib(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=dT(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?hf({},e,{allowEmpty:!0}):e;return hT(this.selectorText,this.style,n)},aT(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(yT),xT={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new bT(e,t,n)}},_T={indent:1,children:!0},wT=/@([\w-]+)/,kT=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(wT);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new VT(hf({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=_T);var t=fT(e).linebreak;if(null==e.indent&&(e.indent=_T.indent),null==e.children&&(e.children=_T.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),ST=/@container|@media|@supports\s+/,CT={onCreateRule:function(e,t,n){return ST.test(e)?new kT(e,t,n):null}},ET={indent:1,children:!0},TT=/@keyframes\s+([\w-]+)/,AT=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(TT);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:vT(a(this,i)),this.rules=new VT(hf({},n,{parent:this})),t)this.rules.add(s,t[s],hf({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ET);var t=fT(e).linebreak;if(null==e.indent&&(e.indent=ET.indent),null==e.children&&(e.children=ET.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),NT=/@keyframes\s+/,LT=/\$([\w-]+)/g,RT=function(e,t){return"string"==typeof e?e.replace(LT,function(e,n){return n in t?t[n]:e}):e},MT=function(e,t,n){var r=e[t],o=RT(r,n);o!==r&&(e[t]=o)},OT={onCreateRule:function(e,t,n){return"string"==typeof e&&NT.test(e)?new AT(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&MT(e,"animation-name",n.keyframes),"animation"in e&&MT(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return RT(e,r.keyframes);default:return e}}},PT=function(e){function t(){return e.apply(this,arguments)||this}return ib(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?hf({},e,{allowEmpty:!0}):e;return hT(this.key,this.style,n)},t}(yT),zT={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new PT(e,t,n):null}},IT=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=fT(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=hT(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return hT(this.at,this.style,e)},e}(),DT=/@font-face/,jT={onCreateRule:function(e,t,n){return DT.test(e)?new IT(e,t,n):null}},FT=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return hT(this.key,this.style,e)},e}(),BT={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new FT(e,t,n):null}},$T=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),HT={"@charset":!0,"@import":!0,"@namespace":!0},WT={onCreateRule:function(e,t,n){return e in HT?new $T(e,t,n):null}},UT=[xT,CT,OT,zT,jT,BT,WT],KT={process:!0},GT={force:!0,process:!0},VT=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=hf({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+vT(this.classes[d]));var f=uT(d,t,c);if(!f)return null;this.register(f);var p=void 0===c.index?this.index.length:c.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=hf({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof bT?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof AT&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof bT?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof AT&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=KT);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,GT)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,GT)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=fT(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),YT=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=hf({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new VT(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),qT=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),JT=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=mf(t,["attached"]),o=fT(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},aT(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),QT=new JT,XT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ZT="2f1acc6c3a606b082e5eef5e54414ffb";null==XT[ZT]&&(XT[ZT]=0);var eA=XT[ZT]++,tA=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+eA+o+t:i+n.key+"-"+eA+(o?"-"+o:"")+"-"+t}},nA=function(e){var t;return function(){return t||(t=e()),t}},rA=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},oA=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=dT(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},iA=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},aA=function(e,t){return e.selectorText=t,e.selectorText===t},sA=nA(function(){return document.querySelector("head")});function lA(e){var t=QT.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=sA(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var uA=nA(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),cA=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},dA=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fA=function(){function e(e){this.getPropertyValue=rA,this.setProperty=oA,this.removeProperty=iA,this.setSelector=aA,this.hasInsertedRules=!1,this.cssRules=[],e&&QT.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=uA();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=lA(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else sA().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=dA(n,t);if(!1===(o=cA(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=dA(n,t),l=cA(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof YT&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pA=0,hA=function(){function e(e){this.id=pA++,this.version="10.10.0",this.plugins=new qT,this.options={id:{minify:!1},createGenerateId:tA,Renderer:iT?fA:null,plugins:[]},this.generateId=tA({minify:!1});for(var t=0;t<UT.length;t++)this.plugins.use(UT[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=hf({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===QT.index?0:QT.index+1);var r=new YT(e,hf({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),QT.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=hf({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=uT(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),mA=function(e){return new hA(e)},gA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function vA(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=vA(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
96
|
+
`),Lb.rippleVisible,Db,550,({theme:e})=>e.transitions.easing.easeInOut,Lb.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Lb.child,Lb.childLeaving,jb,550,({theme:e})=>e.transitions.easing.easeInOut,Lb.childPulsate,Fb,({theme:e})=>e.transitions.easing.easeInOut),Hb=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=vf(n,Rb),[s,l]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=D.useRef(!1),f=kv(),p=D.useRef(null),h=D.useRef(null),m=D.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Mc.jsx($b,{classes:{ripple:Rg(o.ripple,Lb.ripple),rippleVisible:Rg(o.rippleVisible,Lb.rippleVisible),ripplePulsate:Rg(o.ripplePulsate,Lb.ripplePulsate),child:Rg(o.child,Lb.child),childLeaving:Rg(o.childLeaving,Lb.childLeaving),childPulsate:Rg(o.childPulsate,Lb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=D.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},[r,m,f]),v=D.useCallback(()=>{g({},{pulsate:!0})},[g]),y=D.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,()=>{y(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return D.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:y}),[v,g,y]),Mc.jsx(Bb,gf({className:Rg(Lb.root,o.root,i),ref:h},a,{children:Mc.jsx(Sb,{component:null,exit:!0,children:s})}))});function Wb(e){return Pg("MuiButtonBase",e)}const Ub=Ig("MuiButtonBase",["root","disabled","focusVisible"]),Kb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Gb=tb("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Ub.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Yb=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:E,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:N,type:L}=n,R=vf(n,Kb),M=D.useRef(null),O=D.useRef(null),P=bv(O,N),{isFocusVisibleRef:I,onFocus:z,onBlur:j,ref:F}=Mv(),[B,$]=D.useState(!1);l&&B&&$(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),M.current.focus()}}),[]);const[H,W]=D.useState(!1);D.useEffect(()=>{W(!0)},[]);const U=H&&!u&&!l;function K(e,t,n=c){return yv(r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0})}D.useEffect(()=>{B&&d&&!u&&H&&O.current.pulsate()},[u,d,B,H]);const G=K("start",_),Y=K("stop",m),V=K("stop",g),q=K("stop",k),J=K("stop",e=>{B&&e.preventDefault(),w&&w(e)}),Q=K("start",E),X=K("stop",S),Z=K("stop",C),ee=K("stop",e=>{j(e),!1===I.current&&$(!1),p&&p(e)},!1),te=yv(e=>{M.current||(M.current=e.currentTarget),z(e),!0===I.current&&($(!0),y&&y(e)),v&&v(e)}),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=D.useRef(!1),oe=yv(e=>{d&&!re.current&&B&&O.current&&" "===e.key&&(re.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=yv(e=>{d&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(re.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(R.href||R.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(R.href||R.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=bv(t,F,M),ue=gf({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ov({root:["root",t&&"disabled",n&&"focusVisible"]},Wb,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Mc.jsxs(Gb,gf({as:ae,className:Rg(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:J,onMouseUp:q,onDragLeave:V,onTouchEnd:X,onTouchMove:Z,onTouchStart:Q,ref:le,tabIndex:l?-1:T,type:L},se,R,{children:[i,U?Mc.jsx(Hb,gf({ref:P,center:o},A)):null]}))});function Vb(e){return Pg("MuiIconButton",e)}const qb=Ig("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jb=["edge","children","className","color","disabled","disableFocusRipple","size"],Qb=tb(Yb,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wm(n.color)}`],n.edge&&t[`edge${wm(n.edge)}`],t[`size${wm(n.size)}`]]}})(({theme:e,ownerState:t})=>gf({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gy.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return gf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&gf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":gf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gy.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${qb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Xb=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=n,c=vf(n,Jb),d=gf({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Ov({root:["root",n&&"disabled","default"!==r&&`color${wm(r)}`,o&&`edge${wm(o)}`,`size${wm(i)}`]},Vb,t)})(d);return Mc.jsx(Qb,gf({className:Rg(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Zb(e){return Pg("MuiTypography",e)}Ig("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ex=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],tx=tb("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${wm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>gf({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),nx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ox=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiTypography"}),r=(e=>rx[e]||e)(n.color),o=Eg(gf({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=nx}=o,p=vf(o,ex),h=gf({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=s||(c?"p":f[d]||nx[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Ov({root:["root",i,"inherit"!==e.align&&`align${wm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Zb,a)})(h);return Mc.jsx(tx,gf({as:m,ref:t,ownerState:h,className:Rg(g.root,a)},p))});var ix,ax={};function sx(){if(ix)return ax;ix=1,Object.defineProperty(ax,"__esModule",{value:!0}),ax.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(C()),t=Yy;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return ax.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},ax}var lx=m(sx()),ux="top",cx="bottom",dx="right",fx="left",px="auto",hx=[ux,cx,dx,fx],mx="start",gx="end",vx="viewport",yx="popper",bx=hx.reduce(function(e,t){return e.concat([t+"-"+mx,t+"-"+gx])},[]),xx=[].concat(hx,[px]).reduce(function(e,t){return e.concat([t,t+"-"+mx,t+"-"+gx])},[]),_x=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function wx(e){return e?(e.nodeName||"").toLowerCase():null}function kx(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sx(e){return e instanceof kx(e).Element||e instanceof Element}function Cx(e){return e instanceof kx(e).HTMLElement||e instanceof HTMLElement}function Ex(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kx(e).ShadowRoot||e instanceof ShadowRoot)}var Tx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Cx(o)&&wx(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Cx(r)&&wx(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ax(e){return e.split("-")[0]}var Nx=Math.max,Lx=Math.min,Rx=Math.round;function Mx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ox(){return!/^((?!chrome|android).)*safari/i.test(Mx())}function Px(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Cx(e)&&(o=e.offsetWidth>0&&Rx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Rx(r.height)/e.offsetHeight||1);var a=(Sx(e)?kx(e):window).visualViewport,s=!Ox()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Ix(e){var t=Px(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ex(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dx(e){return kx(e).getComputedStyle(e)}function jx(e){return["table","td","th"].indexOf(wx(e))>=0}function Fx(e){return((Sx(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bx(e){return"html"===wx(e)?e:e.assignedSlot||e.parentNode||(Ex(e)?e.host:null)||Fx(e)}function $x(e){return Cx(e)&&"fixed"!==Dx(e).position?e.offsetParent:null}function Hx(e){for(var t=kx(e),n=$x(e);n&&jx(n)&&"static"===Dx(n).position;)n=$x(n);return n&&("html"===wx(n)||"body"===wx(n)&&"static"===Dx(n).position)?t:n||function(e){var t=/firefox/i.test(Mx());if(/Trident/i.test(Mx())&&Cx(e)&&"fixed"===Dx(e).position)return null;var n=Bx(e);for(Ex(n)&&(n=n.host);Cx(n)&&["html","body"].indexOf(wx(n))<0;){var r=Dx(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Wx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ux(e,t,n){return Nx(e,Lx(t,n))}function Kx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gx(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Yx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ax(n.placement),l=Wx(s),u=[fx,dx].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return Kx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gx(e,hx))}(o.padding,n),d=Ix(i),f="y"===l?ux:fx,p="y"===l?cx:dx,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=Hx(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+y,w=Ux(b,_,x),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&zx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vx(e){return e.split("-")[1]}var qx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=fx,x=ux,_=window;if(u){var w=Hx(n),k="clientHeight",S="clientWidth";if(w===kx(n)&&"static"!==Dx(w=Fx(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===ux||(o===fx||o===dx)&&i===gx)x=cx,m-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,m*=l?1:-1;if(o===fx||(o===ux||o===cx)&&i===gx)b=dx,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:s},u&&qx),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Rx(n*o)/o||0,y:Rx(r*o)/o||0}}({x:p,y:m},kx(n)):{x:p,y:m};return p=T.x,m=T.y,l?Object.assign({},E,((C={})[x]=y?"0":"",C[b]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},E,((t={})[x]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var Qx={passive:!0};var Xx={left:"right",right:"left",bottom:"top",top:"bottom"};function Zx(e){return e.replace(/left|right|bottom|top/g,function(e){return Xx[e]})}var e_={start:"end",end:"start"};function t_(e){return e.replace(/start|end/g,function(e){return e_[e]})}function n_(e){var t=kx(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function r_(e){return Px(Fx(e)).left+n_(e).scrollLeft}function o_(e){var t=Dx(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function i_(e){return["html","body","#document"].indexOf(wx(e))>=0?e.ownerDocument.body:Cx(e)&&o_(e)?e:i_(Bx(e))}function a_(e,t){var n;void 0===t&&(t=[]);var r=i_(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=kx(r),a=o?[i].concat(i.visualViewport||[],o_(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(a_(Bx(a)))}function s_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function l_(e,t,n){return t===vx?s_(function(e,t){var n=kx(e),r=Fx(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Ox();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+r_(e),y:l}}(e,n)):Sx(t)?function(e,t){var n=Px(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):s_(function(e){var t,n=Fx(e),r=n_(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Nx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Nx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+r_(e),l=-r.scrollTop;return"rtl"===Dx(o||n).direction&&(s+=Nx(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Fx(e)))}function u_(e,t,n,r){var o="clippingParents"===t?function(e){var t=a_(Bx(e)),n=["absolute","fixed"].indexOf(Dx(e).position)>=0&&Cx(e)?Hx(e):e;return Sx(n)?t.filter(function(e){return Sx(e)&&zx(e,n)&&"body"!==wx(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=l_(e,n,r);return t.top=Nx(o.top,t.top),t.right=Lx(o.right,t.right),t.bottom=Lx(o.bottom,t.bottom),t.left=Nx(o.left,t.left),t},l_(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function c_(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ax(o):null,a=o?Vx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ux:t={x:s,y:n.y-r.height};break;case cx:t={x:s,y:n.y+n.height};break;case dx:t={x:n.x+n.width,y:l};break;case fx:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?Wx(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case mx:t[u]=t[u]-(n[c]/2-r[c]/2);break;case gx:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function d_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?vx:u,d=n.elementContext,f=void 0===d?yx:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Kx("number"!=typeof g?g:Gx(g,hx)),y=f===yx?"reference":yx,b=e.rects.popper,x=e.elements[h?y:f],_=u_(Sx(x)?x:x.contextElement||Fx(e.elements.popper),l,c,a),w=Px(e.elements.reference),k=c_({reference:w,element:b,placement:o}),S=s_(Object.assign({},b,k)),C=f===yx?S:w,E={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},T=e.modifiersData.offset;if(f===yx&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[dx,cx].indexOf(e)>=0?1:-1,n=[ux,cx].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function f_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?xx:l,c=Vx(r),d=c?s?bx:bx.filter(function(e){return Vx(e)===c}):hx,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=d_(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Ax(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var p_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Ax(g),y=l||(v===g||!h?[Zx(g)]:function(e){if(Ax(e)===px)return[];var t=Zx(e);return[t_(e),t,t_(t)]}(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(Ax(n)===px?f_(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var E=b[C],T=Ax(E),A=Vx(E)===mx,N=[ux,cx].indexOf(T)>=0,L=N?"width":"height",R=d_(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=N?A?dx:fx:A?cx:ux;x[L]>_[L]&&(M=Zx(M));var O=Zx(M),P=[];if(i&&P.push(R[T]<=0),s&&P.push(R[M]<=0,R[O]<=0),P.every(function(e){return e})){S=E,k=!1;break}w.set(E,P)}if(k)for(var I=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},z=h?3:1;z>0;z--){if("break"===I(z))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function h_(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function m_(e){return[ux,dx,cx,fx].some(function(t){return e[t]>=0})}var g_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=xx.reduce(function(e,n){return e[n]=function(e,t,n){var r=Ax(e),o=[fx,ux].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[fx,dx].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var v_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=d_(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=Ax(t.placement),y=Vx(t.placement),b=!y,x=Wx(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(i){var N,L="y"===x?ux:fx,R="y"===x?cx:dx,M="y"===x?"height":"width",O=w[x],P=O+g[L],I=O-g[R],z=p?-S[M]/2:0,D=y===mx?k[M]:S[M],j=y===mx?-S[M]:-k[M],F=t.elements.arrow,B=p&&F?Ix(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[L],W=$[R],U=Ux(0,k[M],B[M]),K=b?k[M]/2-z-U-H-E.mainAxis:D-U-H-E.mainAxis,G=b?-k[M]/2+z+U+W+E.mainAxis:j+U+W+E.mainAxis,Y=t.elements.arrow&&Hx(t.elements.arrow),V=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(N=null==T?void 0:T[x])?N:0,J=O+G-q,Q=Ux(p?Lx(P,O+K-q-V):P,O,p?Nx(I,J):I);w[x]=Q,A[x]=Q-O}if(s){var X,Z="x"===x?ux:fx,ee="x"===x?cx:dx,te=w[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[ux,fx].indexOf(v),ae=null!=(X=null==T?void 0:T[_])?X:0,se=ie?re:te-k[ne]-S[ne]-ae+E.altAxis,le=ie?te+k[ne]+S[ne]-ae-E.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Ux(e,t,n);return r>n?n:r}(se,te,le):Ux(p?se:re,te,p?le:oe);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function y_(e,t,n){void 0===n&&(n=!1);var r=Cx(t),o=Cx(t)&&function(e){var t=e.getBoundingClientRect(),n=Rx(t.width)/e.offsetWidth||1,r=Rx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Fx(t),a=Px(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==wx(t)||o_(i))&&(s=function(e){return e!==kx(e)&&Cx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:n_(e);var t}(t)),Cx(t)?((l=Px(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=r_(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function b_(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function x_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var __={placement:"bottom",modifiers:[],strategy:"absolute"};function w_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function k_(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?__:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},__,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:Sx(e)?a_(e):e.contextElement?a_(e.contextElement):[],popper:a_(t)};var c,d,f=function(e){var t=b_(e);return _x.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((c=[].concat(r,o.options.modifiers),d=c.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return o.orderedModifiers=f.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),u=function(){};a.push(s||u)}}),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(w_(t,n)){o.rects={reference:y_(t,Hx(n),"fixed"===o.options.strategy),popper:Ix(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:x_(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){u(),s=!0}};if(!w_(e,t))return l;function u(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var S_=k_({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=kx(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,Qx)}),s&&l.addEventListener("resize",n.update,Qx),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Qx)}),s&&l.removeEventListener("resize",n.update,Qx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=c_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:Ax(t.placement),variation:Vx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Jx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Tx,g_,p_,v_,Yx,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=d_(t,{elementContext:"reference"}),s=d_(t,{altBoundary:!0}),l=h_(a,r),u=h_(s,o,i),c=m_(l),d=m_(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const C_=D.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=D.useState(null),s=bv(D.isValidElement(n)?Fv(n):null,t);if(sv(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),sv(()=>{if(i&&!o)return hv(t,i),()=>{hv(t,null)}},[t,i,o]),o){if(D.isValidElement(n)){const e={ref:s};return D.cloneElement(n,e)}return Mc.jsx(D.Fragment,{children:n})}return Mc.jsx(D.Fragment,{children:i?lb.createPortal(n,i):i})});function E_(e){return Pg("MuiPopper",e)}Ig("MuiPopper",["root"]);const T_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],A_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function N_(e){return"function"==typeof e?e():e}const L_={},R_=D.forwardRef(function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h}=e,m=vf(e,T_),g=D.useRef(null),v=bv(g,t),y=D.useRef(null),b=bv(y,d),x=D.useRef(b);sv(()=>{x.current=b},[b]),D.useImperativeHandle(d,()=>y.current,[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[w,k]=D.useState(_),[S,C]=D.useState(N_(r));D.useEffect(()=>{y.current&&y.current.forceUpdate()}),D.useEffect(()=>{r&&C(N_(r))},[r]),sv(()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{k(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=S_(S,g.current,gf({placement:_},c,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}},[S,a,s,l,c,_]);const E={placement:w};null!==h&&(E.TransitionProps=h);const T=(e=>{const{classes:t}=e;return Ov({root:["root"]},E_,t)})(e),A=null!=(n=p.root)?n:"div",N=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=vf(e,jv),s=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:u}=Dv(gf({},a,{externalSlotProps:s}));return Iv(n,gf({},l,{ref:bv(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:A,externalSlotProps:f.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:T.root});return Mc.jsx(A,gf({},N,{children:"function"==typeof o?o(E):o}))}),M_=D.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:d=L_,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=vf(e,A_),[y,b]=D.useState(!0);if(!s&&!u&&(!h||y))return null;let x;if(o)x=o;else if(n){const e=N_(n);x=e&&void 0!==e.nodeType?fv(e).body:fv(null).body}const _=u||!s||h&&!y?void 0:"none",w=h?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return Mc.jsx(C_,{disablePortal:a,container:x,children:Mc.jsx(R_,gf({anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!y:u,placement:c,popperOptions:d,popperRef:f,slotProps:m,slots:g},v,{style:gf({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),O_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],P_=tb(M_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I_=D.forwardRef(function(e,t){var n;const r=lx(),o=ib({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=o,x=vf(o,O_),_=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,w=gf({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Mc.jsx(P_,gf({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=b?b:l},w,{ref:t}))}),z_=["onChange","maxRows","minRows","style","value"];function D_(e){return parseInt(e,10)||0}const j_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function F_(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const B_=D.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=vf(e,z_),{current:l}=D.useRef(null!=a),u=D.useRef(null),c=bv(t,u),d=D.useRef(null),f=D.useRef(null),p=D.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=pv(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=D_(i.paddingBottom)+D_(i.paddingTop),l=D_(i.borderBottomWidth)+D_(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),h=yv(()=>{const e=u.current,t=p();if(!e||!t||F_(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=D.useCallback(()=>{const e=u.current,t=p();if(!e||!t||F_(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),g=D.useRef(-1);sv(()=>{const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(m),t=null==u?void 0:u.current;if(!t)return;const n=pv(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[p,m,h]),sv(()=>{m()});return Mc.jsxs(D.Fragment,{children:[Mc.jsx("textarea",gf({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Mc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:gf({},j_,i,{paddingTop:0,paddingBottom:0})})]})});const $_=D.createContext(void 0);function H_(e){return Mc.jsx(Sg,gf({},e,{defaultTheme:Dy,themeId:mf}))}function W_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function U_(e){return Pg("MuiInputBase",e)}const K_=Ig("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),G_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Y_=tb("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${wm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>gf({},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",[`&.${K_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&gf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),V_=tb("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=gf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return gf({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${K_.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${K_.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),q_=Mc.jsx(H_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),J_=D.forwardRef(function(e,t){var n;const r=ib({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:_=!1,name:w,onBlur:k,onChange:S,onClick:C,onFocus:E,onKeyDown:T,onKeyUp:A,placeholder:N,readOnly:L,renderSuffix:R,rows:M,slotProps:O={},slots:P={},startAdornment:I,type:z="text",value:j}=r,F=vf(r,G_),B=null!=v.value?v.value:j,{current:$}=D.useRef(null!=B),H=D.useRef(),W=D.useCallback(e=>{},[]),U=bv(H,y,v.ref,W),[K,G]=D.useState(!1),Y=D.useContext($_),V=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=Y?Y.focused:K,D.useEffect(()=>{!Y&&d&&K&&(G(!1),k&&k())},[Y,d,K,k]);const q=Y&&Y.onFilled,J=Y&&Y.onEmpty,Q=D.useCallback(e=>{!function(e,t=!1){return e&&(W_(e.value)&&""!==e.value||t&&W_(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():q&&q()},[q,J]);sv(()=>{$&&Q({value:B})},[B,Q,$]);D.useEffect(()=>{Q(H.current)},[]);let X=g,Z=v;_&&"input"===X&&(Z=gf(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:b,minRows:x},Z),X=B_);D.useEffect(()=>{Y&&Y.setAdornedStart(Boolean(I))},[Y,I]);const ee=gf({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:Y,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:I,type:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return Ov({root:["root",`color${wm(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${wm(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},U_,t)})(ee),ne=P.root||l.Root||Y_,re=O.root||u.root||{},oe=P.input||l.Input||V_;return Z=gf({},Z,null!=(n=O.input)?n:u.input),Mc.jsxs(D.Fragment,{children:[!f&&q_,Mc.jsxs(ne,gf({},re,!Pv(ne)&&{ownerState:gf({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),C&&C(e)}},F,{className:Rg(te.root,re.className,s,L&&"MuiInputBase-readOnly"),children:[I,Mc.jsx($_.Provider,{value:null,children:Mc.jsx(oe,gf({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:N,readOnly:L,required:V.required,rows:M,value:B,onKeyDown:T,onKeyUp:A,type:z},Z,!Pv(oe)&&{as:X,ownerState:gf({},ee,Z.ownerState)},{ref:U,className:Rg(te.input,Z.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(pf(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(E&&E(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),p,R?R(gf({},V,{startAdornment:I})):null]}))]})}),Q_=Ig("MuiBox",["root"]),X_=zy(),Z_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=rm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(mg);return D.forwardRef(function(e,a){const s=wg(n),l=Eg(e),{className:u,component:c="div"}=l,d=vf(l,Mg);return Mc.jsx(i,gf({as:c,ref:a,className:Rg(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:mf,defaultTheme:X_,defaultClassName:Q_.root,generateClassName:Ng.generate});function ew(e){return Pg("MuiButton",e)}const tw=Ig("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"]),nw=D.createContext({}),rw=D.createContext(void 0),ow=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],iw=e=>gf({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),aw=tb(Yb,{shouldForwardProp:e=>eb(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wm(n.color)}`],t[`size${wm(n.size)}`],t[`${n.variant}Size${wm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return gf({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":gf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gy.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gy.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gy.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":gf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${tw.focusVisible}`]:gf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${tw.disabled}`]:gf({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${gy.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${tw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tw.disabled}`]:{boxShadow:"none"}}),sw=tb("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wm(n.size)}`]]}})(({ownerState:e})=>gf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},iw(e))),lw=tb("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wm(n.size)}`]]}})(({ownerState:e})=>gf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},iw(e))),uw=D.forwardRef(function(e,t){const n=D.useContext(nw),r=D.useContext(rw),o=ib({props:iv(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=o,b=vf(o,ow),x=gf({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return gf({},a,Ov({root:["root",i,`${i}${wm(t)}`,`size${wm(o)}`,`${i}Size${wm(o)}`,`color${wm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${wm(o)}`],endIcon:["icon","endIcon",`iconSize${wm(o)}`]},ew,a))})(x),w=g&&Mc.jsx(sw,{className:_.startIcon,ownerState:x,children:g}),k=f&&Mc.jsx(lw,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return Mc.jsxs(aw,gf({ownerState:x,className:Rg(n.className,_.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Rg(_.focusVisible,p),ref:t,type:v},b,{classes:_,children:[w,i,k]}))});function cw(e){return e.substring(2).toLowerCase()}function dw(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=D.useRef(!1),s=D.useRef(null),l=D.useRef(!1),u=D.useRef(!1);D.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=bv(Fv(t),s),d=yv(e=>{const t=u.current;u.current=!1;const r=fv(s.current);if(!l.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),i||!n&&t||o(e)}),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:c};return!1!==i&&(p[i]=f(i)),D.useEffect(()=>{if(!1!==i){const e=cw(i),t=fv(s.current),n=()=>{a.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}},[d,i]),!1!==r&&(p[r]=f(r)),D.useEffect(()=>{if(!1!==r){const e=cw(r),t=fv(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),Mc.jsx(D.Fragment,{children:D.cloneElement(t,p)})}function fw(e){return Pg("MuiDivider",e)}const pw=Ig("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mw=tb("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>gf({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:gy.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>gf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>gf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>gf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>gf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),gw=tb("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>gf({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),vw=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=vf(n,hw),h=gf({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ov({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},fw,r)})(h);return Mc.jsx(mw,gf({as:a,className:Rg(m.root,i),role:c,ref:t,ownerState:h},p,{children:o?Mc.jsx(gw,{className:m.wrapper,ownerState:h,children:o}):null}))});vw.muiSkipListHighlight=!0;const yw=function(e={}){const{createStyledComponent:t=ry,useThemeProps:n=oy,componentName:r="MuiStack"}=e,o=t(ay),i=D.forwardRef(function(e,t){const i=Eg(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=vf(i,ty),h={direction:s,spacing:l,useFlexGap:f},m=Ov({root:["root"]},e=>Pg(r,e),{});return Mc.jsx(o,gf({as:a,ownerState:h,ref:t,className:Rg(m.root,d)},p,{children:u?iy(c,u):c}))});return i}({createStyledComponent:tb("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ib({props:e,name:"MuiStack"})}),bw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xw(e){return`scale(${e}, ${e**2})`}const _w={entering:{opacity:1,transform:xw(1)},entered:{opacity:1,transform:"none"}},ww="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kw=D.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:m=vb}=e,g=vf(e,bw),v=kv(),y=D.useRef(),b=jy(),x=D.useRef(null),_=bv(x,Fv(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=w(u),S=w((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=Cb({style:p,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:ww?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),C=w(l),E=w(f),T=w(e=>{const{duration:t,delay:n,easing:r}=Cb({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:ww?o:.666*o,delay:ww?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=xw(.75),c&&c(e)}),A=w(d);return Mc.jsx(m,gf({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:C,onEntering:k,onExit:T,onExited:A,onExiting:E,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>D.cloneElement(o,gf({style:gf({opacity:0,transform:xw(.75),visibility:"exited"!==e||a?void 0:"hidden"},_w[e],p,o.props.style),ref:_},t))}))});kw.muiSupportAuto=!0;const Sw=D.createContext({});function Cw(e){return Pg("MuiList",e)}Ig("MuiList",["root","padding","dense","subheader"]);const Ew=["children","className","component","dense","disablePadding","subheader"],Tw=tb("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>gf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Aw=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=vf(n,Ew),c=D.useMemo(()=>({dense:a}),[a]),d=gf({},n,{component:i,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ov({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Cw,t)})(d);return Mc.jsx(Sw.Provider,{value:c,children:Mc.jsxs(Tw,gf({as:i,className:Rg(f.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Nw(e){return Pg("MuiListItemIcon",e)}const Lw=Ig("MuiListItemIcon",["root","alignItemsFlexStart"]),Rw=["className"],Mw=tb("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>gf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Ow=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=vf(n,Rw),i=gf({},n,{alignItems:D.useContext(Sw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ov({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Nw,n)})(i);return Mc.jsx(Mw,gf({className:Rg(a.root,r),ownerState:i,ref:t},o))}),Pw=Ig("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Iw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Dw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jw(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Fw(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&jw(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Bw=D.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=vf(e,Iw),f=D.useRef(null),p=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sv(()=>{r&&f.current.focus()},[r]),D.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(fv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=bv(f,t);let m=-1;D.Children.forEach(i,(e,t)=>{D.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=D.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),D.cloneElement(e,t)}return e});return Mc.jsx(Aw,gf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=fv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Fw(t,r,l,s,zw);else if("ArrowUp"===n)e.preventDefault(),Fw(t,r,l,s,Dw);else if("Home"===n)e.preventDefault(),Fw(t,null,l,s,zw);else if("End"===n)e.preventDefault(),Fw(t,null,l,s,Dw);else if(1===n.length){const o=p.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&jw(r,o);o.previousKeyMatched&&(l||Fw(t,r,!1,s,zw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))});function $w(e){return Pg("MuiMenuItem",e)}const Hw=Ig("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ww=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Uw=tb(Yb,{shouldForwardProp:e=>eb(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>gf({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pw.inset}`]:{marginLeft:52},[`& .${Pw.root}`]:{marginTop:0,marginBottom:0},[`& .${Pw.inset}`]:{paddingLeft:36},[`& .${Lw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&gf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Lw.root} svg`]:{fontSize:"1.25rem"}}))),Kw=D.forwardRef(function(e,t){const n=ib({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,f=vf(n,Ww),p=D.useContext(Sw),h=D.useMemo(()=>({dense:i||p.dense||!1,disableGutters:s}),[p.dense,i,s]),m=D.useRef(null);sv(()=>{r&&m.current&&m.current.focus()},[r]);const g=gf({},n,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return gf({},a,Ov({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$w,a))})(n),y=bv(m,t);let b;return n.disabled||(b=void 0!==c?c:-1),Mc.jsx(Sw.Provider,{value:h,children:Mc.jsx(Uw,gf({ref:y,role:u,tabIndex:b,component:o,focusVisibleClassName:Rg(v.focusVisible,l),className:Rg(v.root,d)},f,{ownerState:g,classes:v}))})});function Gw(e){return Pg("MuiTooltip",e)}const Yw=Ig("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Vw=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const qw=tb(I_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>gf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Yw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Yw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Yw.arrow}`]:gf({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Yw.arrow}`]:gf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Jw=tb("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${wm(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return gf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gy.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Yw.popper}[data-popper-placement*="left"] &`]:gf({transformOrigin:"right center"},t.isRtl?gf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):gf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Yw.popper}[data-popper-placement*="right"] &`]:gf({transformOrigin:"left center"},t.isRtl?gf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):gf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Yw.popper}[data-popper-placement*="top"] &`]:gf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Yw.popper}[data-popper-placement*="bottom"] &`]:gf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),Qw=tb("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:gy.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Xw=!1;const Zw=new wv;let ek={x:0,y:0};function tk(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const nk=D.forwardRef(function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h,m,g,v,y,b,x;const _=ib({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:k,components:S={},componentsProps:C={},describeChild:E=!1,disableFocusListener:T=!1,disableHoverListener:A=!1,disableInteractive:N=!1,disableTouchListener:L=!1,enterDelay:R=100,enterNextDelay:M=0,enterTouchDelay:O=700,followCursor:P=!1,id:I,leaveDelay:z=0,leaveTouchDelay:j=1500,onClose:F,onOpen:B,open:$,placement:H="bottom",PopperComponent:W,PopperProps:U={},slotProps:K={},slots:G={},title:Y,TransitionComponent:V=kw,TransitionProps:q}=_,J=vf(_,Vw),Q=D.isValidElement(k)?k:Mc.jsx("span",{children:k}),X=jy(),Z=(()=>{const e=D.useContext(Kv);return null!=e&&e})(),[ee,te]=D.useState(),[ne,re]=D.useState(null),oe=D.useRef(!1),ie=N||P,ae=kv(),se=kv(),le=kv(),ue=kv(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(void 0!==e),[i,a]=D.useState(t);return[o?e:i,D.useCallback(e=>{o||a(e)},[])]}({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ce;const pe=vv(I),he=D.useRef(),me=yv(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});D.useEffect(()=>me,[me]);const ge=e=>{Zw.clear(),Xw=!0,de(!0),B&&!fe&&B(e)},ve=yv(e=>{Zw.start(800+z,()=>{Xw=!1}),de(!1),F&&fe&&F(e),ae.start(X.transitions.duration.shortest,()=>{oe.current=!1})}),ye=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),R||Xw&&M?se.start(Xw?M:R,()=>{ge(e)}):ge(e))},be=e=>{se.clear(),le.start(z,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=Mv(),[,Se]=D.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(Se(!1),be(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Se(!0),ye(e))},Te=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(O,()=>{document.body.style.WebkitUserSelect=he.current,ye(e)})},Ne=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),le.start(j,()=>{ve(e)})};D.useEffect(()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}},[ve,fe]);const Le=bv(Fv(Q),ke,te,t);Y||0===Y||(fe=!1);const Re=D.useRef(),Me={},Oe="string"==typeof Y;E?(Me.title=fe||!Oe||A?null:Y,Me["aria-describedby"]=fe?pe:null):(Me["aria-label"]=Oe?Y:null,Me["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=gf({},Me,J,Q.props,{className:Rg(J.className,Q.props.className),onTouchStart:Te,ref:Le},P?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),ek={x:e.clientX,y:e.clientY},Re.current&&Re.current.update()}}:{}),Ie={};L||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Ne),A||(Pe.onMouseOver=tk(ye,Pe.onMouseOver),Pe.onMouseLeave=tk(be,Pe.onMouseLeave),ie||(Ie.onMouseOver=ye,Ie.onMouseLeave=be)),T||(Pe.onFocus=tk(Ee,Pe.onFocus),Pe.onBlur=tk(Ce,Pe.onBlur),ie||(Ie.onFocus=Ee,Ie.onBlur=Ce));const ze=D.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),gf({},U.popperOptions,{modifiers:t})},[ne,U]),De=gf({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:H,PopperComponentProp:W,touch:oe.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Ov({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${wm(i.split("-")[0])}`],arrow:["arrow"]},Gw,t)})(De),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:qw,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:S.Transition)?i:V)?o:kw,$e=null!=(s=null!=(l=G.tooltip)?l:S.Tooltip)?s:Jw,He=null!=(u=null!=(c=G.arrow)?c:S.Arrow)?u:Qw,We=Iv(Fe,gf({},U,null!=(d=K.popper)?d:C.popper,{className:Rg(je.popper,null==U?void 0:U.className,null==(f=null!=(p=K.popper)?p:C.popper)?void 0:f.className)}),De),Ue=Iv(Be,gf({},q,null!=(h=K.transition)?h:C.transition),De),Ke=Iv($e,gf({},null!=(m=K.tooltip)?m:C.tooltip,{className:Rg(je.tooltip,null==(g=null!=(v=K.tooltip)?v:C.tooltip)?void 0:g.className)}),De),Ge=Iv(He,gf({},null!=(y=K.arrow)?y:C.arrow,{className:Rg(je.arrow,null==(b=null!=(x=K.arrow)?x:C.arrow)?void 0:b.className)}),De);return Mc.jsxs(D.Fragment,{children:[D.cloneElement(Q,Pe),Mc.jsx(Fe,gf({as:null!=W?W:I_,placement:H,anchorEl:P?{getBoundingClientRect:()=>({top:ek.y,left:ek.x,right:ek.x,bottom:ek.y,width:0,height:0})}:ee,popperRef:Re,open:!!ee&&fe,id:pe,transition:!0},Ie,We,{popperOptions:ze,children:({TransitionProps:e})=>Mc.jsx(Be,gf({timeout:X.transitions.duration.shorter},e,Ue,{children:Mc.jsxs($e,gf({},Ke,{children:[Y,w?Mc.jsx(He,gf({},Ge,{ref:re})):null]}))}))}))]})}),rk=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M9 1v1H2v12h12V7h1v7a1 1 0 0 1-.883.993L14 15H2a1 1 0 0 1-.993-.883L1 14V2a1 1 0 0 1 .883-.993L2 1zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0z"})}),ok=D.forwardRef(rk),ik=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),ak=D.forwardRef(ik);function sk({validateUrl:e,attributes:t}){const[n]=Tc();return D.useEffect(()=>{if(!n.hasNodes([yu]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),D.useEffect(()=>function(e,t){return Vs(e.registerNodeTransform(yu,_u),e.registerCommand(Au,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Lu(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Lu(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Lu(t,{...r,rel:o,target:n,title:i}),!0}},ci),Wl(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Pt,t=>{const o=so();if(!Wr(o)||o.isCollapsed()||!wl(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>qo(e))&&(e.dispatchCommand(Au,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,function(e,t={}){const n={};for(const r in e){const o=t[r],i=Pl(void 0===o?e[r]:o);n[r]=i}return n}({attributes:t,validateUrl:e})),[n,e,t]),null}const lk={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},uk=12,ck=14,dk=16,fk=24,pk=3,hk=300,mk=400,gk=600,vk=700,yk={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function bk(e){return Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Mc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function xk({fontSize:e="medium",children:t=null,className:n=""}={}){return Mc.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function _k(e={}){return Mc.jsx(xk,{...e,children:Mc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Mc.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Mc.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function wk(e={}){return Mc.jsx(xk,{fontSize:"medium",...e,children:Mc.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Mc.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Mc.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function kk(e){return Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Mc.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function Sk(e={}){return Mc.jsx(xk,{...e,children:Mc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Mc.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Mc.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Mc.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ck(e={}){return Mc.jsx(xk,{fontSize:"medium",...e,children:Mc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Mc.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Mc.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Ek({className:e}){return Mc.jsx(xk,{fontSize:"small",className:e,children:Mc.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Mc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Mc.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Mc.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Mc.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Mc.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Tk(e={}){return Mc.jsx(xk,{...e,children:Mc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Mc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Mc.jsx("rect",{stroke:lk.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Ak=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:lk.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:lk.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Mc.jsx(bk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${lk.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:lk.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${lk.MISC_FOCUS_BORDER}`,borderRadius:pk,backgroundColor:lk.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${lk.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:lk.WHITE,color:lk.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:pk},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lk.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:lk.GREYSCALE_0_15,backgroundColor:lk.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:lk.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lk.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:lk.GREEN_PALE},"&:active":{backgroundColor:lk.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lk.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(lk.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:lk.BLUE_PALE},"&:active":{backgroundColor:lk.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lk.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(lk.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:pk,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:lk.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lk.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:lk.GREYSCALE_0_42,backgroundColor:lk.GREYSCALE_100_60,"&:active":{backgroundColor:lk.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:lk.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lk.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:lk.PURPLE,"&.Mui-focusVisible":{borderColor:lk.PURPLE,boxShadow:`0 0 0 3px ${dv(lk.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:lk.GREEN,"&.Mui-focusVisible":{borderColor:lk.GREEN,boxShadow:`0 0 0 3px ${dv(lk.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:lk.BLUE,"&.Mui-focusVisible":{borderColor:lk.BLUE,boxShadow:`0 0 0 3px ${dv(lk.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:lk.ORANGE,"&.Mui-focusVisible":{borderColor:lk.ORANGE,boxShadow:`0 0 0 3px ${dv(lk.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:lk.RED,"&.Mui-focusVisible":{borderColor:lk.RED,boxShadow:`0 0 0 3px ${dv(lk.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:lk.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:lk.PURPLE_PALE},"&:active":{backgroundColor:lk.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:lk.PURPLE_PALE,boxShadow:`0 0 0 3px ${dv(lk.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:lk.GREEN_PALE},"&:active":{backgroundColor:lk.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lk.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(lk.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:lk.BLUE_PALE},"&:active":{backgroundColor:lk.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lk.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(lk.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:lk.ORANGE_PALE},"&:active":{backgroundColor:lk.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:lk.ORANGE_PALE,boxShadow:`0 0 0 3px ${dv(lk.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:lk.RED_PALE},"&:active":{backgroundColor:lk.RED_DARK},"&.Mui-focusVisible":{borderColor:lk.RED_PALE,boxShadow:`0 0 0 3px ${dv(lk.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:lk.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:lk.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:pk,boxShadow:`inset 0 0 0 2px ${lk.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Mc.jsx(kk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:uk,borderRadius:pk,color:lk.TEXT_PRIMARY,backgroundColor:lk.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:lk.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${lk.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:lk.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:lk.GREYSCALE_0_05,color:lk.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:lk.GREEN,borderColor:lk.GREEN},"&.MuiChip-outlinedInfo":{color:lk.BLUE,borderColor:lk.BLUE},"&.MuiChip-outlinedWarning":{color:lk.ORANGE,borderColor:lk.ORANGE},"&.MuiChip-outlinedError":{color:lk.RED,borderColor:lk.RED}},outlined:{border:`solid 1px ${lk.GREYSCALE_0_15}`,backgroundColor:lk.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:pk,boxShadow:"none",backgroundColor:lk.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:lk.GREEN,borderColor:lk.GREEN},outlinedSecondary:{color:lk.BLUE,borderColor:lk.BLUE},label:{fontFamily:yk.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Mc.jsx(kk,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Mc.jsx(bk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:pk},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:pk,fontSize:ck,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:lk.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${lk.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:lk.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:lk.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:lk.GREYSCALE_0_05}}},popupIndicator:{borderRadius:pk,border:`solid 1px ${lk.GREYSCALE_0_15}`,color:lk.GREYSCALE_0_60,marginRight:0,width:fk,height:fk},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${lk.GREYSCALE_0_15}`},clearIndicator:{borderRadius:pk,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:lk.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ck}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:uk,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:lk.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:lk.GREYSCALE_25,fontSize:uk,fontFamily:yk.FONT_FAMILY,fontWeight:gk,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:lk.TEXT_PRIMARY},"&.Mui-error":{color:lk.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:lk.TEXT_SECONDARY,content:"'(optional)'",fontWeight:mk,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:lk.TEXT_SECONDARY,content:"'(required)'",fontWeight:mk,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ck,lineHeight:"16px",backgroundColor:lk.WHITE,borderRadius:pk,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lk.GREYSCALE_0_05}`,borderColor:lk.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lk.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${lk.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${lk.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lk.RED}`,boxShadow:`0px 0px 0px 1px ${lk.RED}, inset 0 2px 0 0 ${lk.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lk.GREYSCALE_0_10}`,borderColor:lk.GREYSCALE_0_10,backgroundColor:lk.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:lk.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:lk.GREYSCALE_0_15,borderRadius:pk,boxShadow:`inset 0 2px 0 0 ${lk.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Mc.jsx(bk,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:lk.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:lk.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:lk.GREYSCALE_0_03},"&:active":{backgroundColor:lk.GREYSCALE_0_10},"&:focus":{backgroundColor:lk.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${lk.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${lk.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:lk.GREYSCALE_0_30,"&:hover":{backgroundColor:lk.GREYSCALE_0_0,borderColor:lk.GREYSCALE_0_15},"& ~svg":{color:lk.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${lk.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:pk}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:lk.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${lk.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:lk.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ck,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:uk,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:uk,fontWeight:gk,color:lk.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:gk}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${lk.GREYSCALE_0_15}, 0px 0px 0px 1px ${lk.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Mc.jsx(Ck,{}),checkedIcon:Mc.jsx(wk,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:lk.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${lk.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:lk.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(lk.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:lk.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(lk.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:lk.GREYSCALE_0_20}},"&.Mui-disabled":{fill:lk.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Mc.jsx(Tk,{}),checkedIcon:Mc.jsx(_k,{}),indeterminateIcon:Mc.jsx(Sk,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:pk,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:lk.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:lk.GREYSCALE_0_55,color:lk.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:lk.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:lk.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:lk.GREYSCALE_0_55,"&:hover":{color:lk.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:lk.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:lk.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ck,color:lk.TEXT_PRIMARY,lineHeight:"16px",fontWeight:gk},secondary:{fontSize:uk,color:lk.GREYSCALE_45,fontWeight:mk,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ck,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ck,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:lk.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:uk,borderBottom:`solid 1px ${lk.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ck,color:lk.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:lk.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:lk.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:lk.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:lk.RED}}},"&.Mui-focusVisible":{backgroundColor:lk.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:lk.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:lk.GREEN,height:"24px","&.Mui-disabled":{color:lk.GREYSCALE_0_15}},rail:{backgroundColor:lk.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${lk.GREYSCALE_0_05}`,borderRadius:pk,boxShadow:`inset 0px 0px 0px 1px ${lk.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${lk.GREYSCALE_0_05}`,borderRadius:pk},thumb:{height:"16px",width:"16px",borderRadius:pk,backgroundColor:lk.WHITE,boxShadow:`0px 1px 2px 0px ${lk.GREYSCALE_0_15}, 0px 0px 0px 1px ${lk.GREYSCALE_0_05}`,"&:hover":{borderRadius:pk,boxShadow:`0 2px 4px 0 ${lk.GREYSCALE_0_30}, 0 0 0 1px ${lk.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${lk.GREYSCALE_0_15}, 0 0 0 1px ${lk.GREYSCALE_0_06}, 0 0 0 2px ${lk.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${lk.GREYSCALE_0_15}, 0 0 0 1px ${lk.GREYSCALE_0_06}, 0 0 0 2px ${lk.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:lk.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:lk.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:lk.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:lk.GREYSCALE_0_15},markLabel:{color:lk.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:lk.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:lk.WHITE,color:lk.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:lk.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:lk.GREEN_PALE,boxShadow:`0 0 0 3px ${dv(lk.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:lk.BLUE_PALE,boxShadow:`0 0 0 3px ${dv(lk.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:lk.GREYSCALE_0_15,borderRadius:pk},thumb:{height:"16px",width:"16px",borderRadius:pk,backgroundColor:lk.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:ck,fontWeight:gk,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${lk.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${lk.MISC_FOCUS_BORDER}`,backgroundColor:lk.GREYSCALE_0_03,borderRadius:pk},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:lk.GREYSCALE_25,"&.Mui-selected":{color:lk.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ck,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:pk,"&:hover":{backgroundColor:lk.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${lk.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${lk.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:pk,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:lk.GREYSCALE_0_05},"&:hover":{backgroundColor:lk.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${lk.GREYSCALE_85}`,borderRight:`1px solid ${lk.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:gk,backgroundColor:lk.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:lk.GREYSCALE_98,borderBottom:`1px solid ${lk.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${lk.GREYSCALE_85}`,borderTop:`1px solid ${lk.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:lk.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:lk.GREYSCALE_0_05,"&:hover":{backgroundColor:lk.GREYSCALE_0_03}},"&&:hover":{backgroundColor:lk.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Mc.jsx(Ek,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${lk.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ck,borderRadius:pk,padding:"7px 16px",border:`1px solid ${lk.GREYSCALE_0_15}`,backgroundColor:lk.GREYSCALE_100_60,color:lk.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:lk.GREYSCALE_0_10,border:`1px solid ${lk.GREYSCALE_0_30}`},"&:hover":{backgroundColor:lk.GREYSCALE_0_03,border:`1px solid ${lk.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:lk.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${lk.MISC_FOCUS_BORDER}`,border:`1px solid ${lk.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:lk.GREYSCALE_25,backgroundColor:lk.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:lk.GREYSCALE_0_10,border:`1px solid ${lk.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:uk,height:24,width:24,padding:7},sizeLarge:{fontSize:dk,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ck,borderRadius:pk}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:lk.GREYSCALE_20},tooltip:{backgroundColor:lk.GREYSCALE_20,fontSize:uk,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Nk=e=>({mode:"light",primary:{ultraLight:lk.GREEN_ULTRA_LIGHT,light:lk.GREEN_PALE,main:lk.GREEN,dark:lk.GREEN_DARK,extraDark:lk.GREEN_EXTRA_DARK,contrastText:lk.WHITE},secondary:{ultraLight:lk.BLUE_ULTRA_LIGHT,light:lk.BLUE_PALE,main:lk.BLUE,dark:lk.BLUE_DARK,extraDark:lk.BLUE_EXTRA_DARK,contrastText:lk.WHITE},error:{ultraLight:lk.RED_ULTRA_LIGHT,light:lk.RED_PALE,main:lk.RED,dark:lk.RED_DARK,extraDark:lk.RED_EXTRA_DARK,contrastText:lk.WHITE},warning:{ultraLight:lk.ORANGE_ULTRA_LIGHT,light:lk.ORANGE_PALE,main:lk.ORANGE,dark:lk.ORANGE_DARK,extraDark:lk.ORANGE_EXTRA_DARK,contrastText:lk.WHITE},success:{ultraLight:lk.GREEN_ULTRA_LIGHT,light:lk.GREEN_PALE,main:lk.GREEN,dark:lk.GREEN_DARK,extraDark:lk.GREEN_EXTRA_DARK,contrastText:lk.WHITE},info:{ultraLight:lk.BLUE_ULTRA_LIGHT,light:lk.BLUE_PALE,main:lk.BLUE,dark:lk.BLUE_DARK,extraDark:lk.BLUE_EXTRA_DARK,contrastText:lk.WHITE},text:{primary:lk.TEXT_PRIMARY,secondary:lk.TEXT_SECONDARY,disabled:lk.GREYSCALE_0_30},action:{hover:lk.GREYSCALE_0_03,hoverOpacity:.03,selected:lk.GREYSCALE_0_05,selectedOpacity:.05,focus:lk.MISC_FOCUS_BORDER},amethyst:{ultraLight:lk.WHITE,main:lk.PURPLE,light:lk.PURPLE_PALE,dark:lk.PURPLE_DARK,extraDark:lk.GREYSCALE_0_0,contrastText:lk.WHITE},background:{paper:lk.WHITE,default:lk.GREYSCALE_95},divider:lk.GREYSCALE_0_15}),Lk=(e="light")=>zy({components:Ak(),palette:Nk(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:ck,fontWeightLight:hk,fontWeightRegular:mk,fontWeightMedium:gk,fontWeightBold:vk,htmlFontSize:ck,fontFamily:yk.FONT_FAMILY,button:{fontWeight:gk,fontSize:ck,textTransform:"none"},body1:{fontSize:dk,lineHeight:"24px"},body2:{fontSize:ck,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fk,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:dk,fontWeight:gk,lineHeight:"16px"},h6:{fontSize:ck,fontWeight:gk,lineHeight:"16px"},caption:{color:lk.TEXT_SECONDARY},subtitle1:{fontSize:ck,color:lk.TEXT_SECONDARY},subtitle2:{fontSize:uk,color:lk.TEXT_SECONDARY}},shape:{borderRadius:pk}});var Rk,Mk,Ok={},Pk={exports:{}},Ik={exports:{}};function zk(){return Rk||(Rk=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ik)),Ik.exports}var Dk={};function jk(e,t){return function(){return null}}function Fk(e){return e&&"object"===Zv(e)&&e.constructor===Object}function Bk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?gf({},e):e;return Fk(e)&&Fk(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Fk(t[o])&&o in e?r[o]=Bk(e[o],t[o],n):r[o]=t[o])}),r}var $k=(em.element,function(){return null});$k.isRequired=(em.element.isRequired,function(){return null});var Hk=function(){return null};var Wk,Uk,Kk={exports:{}},Gk={};var Yk=(Uk||(Uk=1,Kk.exports=function(){if(Wk)return Gk;Wk=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,f=60121,p=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),f=v("react.block"),p=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case u:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return p}}case t:return p}}}var b=i,x=e,_=s,w=n,k=d,S=c,C=t,E=o,T=r,A=l;return Gk.ContextConsumer=a,Gk.ContextProvider=b,Gk.Element=x,Gk.ForwardRef=_,Gk.Fragment=w,Gk.Lazy=k,Gk.Memo=S,Gk.Portal=C,Gk.Profiler=E,Gk.StrictMode=T,Gk.Suspense=A,Gk.isAsyncMode=function(){return!1},Gk.isConcurrentMode=function(){return!1},Gk.isContextConsumer=function(e){return y(e)===a},Gk.isContextProvider=function(e){return y(e)===i},Gk.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Gk.isForwardRef=function(e){return y(e)===s},Gk.isFragment=function(e){return y(e)===n},Gk.isLazy=function(e){return y(e)===d},Gk.isMemo=function(e){return y(e)===c},Gk.isPortal=function(e){return y(e)===t},Gk.isProfiler=function(e){return y(e)===o},Gk.isStrictMode=function(e){return y(e)===r},Gk.isSuspense=function(e){return y(e)===l},Gk.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===f||e[0]===p)},Gk.typeOf=y,Gk}()),Kk.exports),Vk=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Vk);return t&&t[1]||""}(e)||t}function Jk(e,t,n){var r=qk(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Qk,Xk="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Zk=em.oneOfType([em.func,em.object]),eS=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:jk,deepmerge:Bk,elementAcceptingRef:$k,elementTypeAcceptingRef:Hk,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return qk(e,"Component");if("object"===Zv(e))switch(e.$$typeof){case Yk.ForwardRef:return Jk(e,e.render,"ForwardRef");case Yk.Memo:return Jk(e,e.type,"memo");default:return}}},ponyfillGlobal:Xk,refType:Zk}),tS=g(eS);function nS(){if(Qk)return Dk;Qk=1,Object.defineProperty(Dk,"__esModule",{value:!0}),Dk.hexToRgb=n,Dk.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map(function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t}).join(""))},Dk.hslToRgb=r,Dk.decomposeColor=o,Dk.recomposeColor=i,Dk.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Dk.getLuminance=a,Dk.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Dk.fade=function(e,t){return s(e,t)},Dk.alpha=s,Dk.darken=l,Dk.lighten=u;var e=tS;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function u(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Dk}var rS,oS,iS,aS={},sS={exports:{}},lS={exports:{}},uS={exports:{}};function cS(){return rS||(rS=1,function(e){var t=zk().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(uS)),uS.exports}function dS(){return oS||(oS=1,function(e){var t=zk().default,n=cS();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(lS)),lS.exports}function fS(){return iS||(iS=1,function(e){var t=dS();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(sS)),sS.exports}var pS,hS={exports:{}};function mS(){return pS||(pS=1,function(e){var t=Ky();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(hS)),hS.exports}var gS,vS={};function yS(){if(gS)return vS;gS=1;var e=dy();Object.defineProperty(vS,"__esModule",{value:!0}),vS.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},c)},vS.keys=void 0;var t=e(Hy()),n=e(mS()),r=["xs","sm","md","lg","xl"];return vS.keys=r,vS}var bS,xS={};function _S(){if(bS)return xS;bS=1;var e=dy();Object.defineProperty(xS,"__esModule",{value:!0}),xS.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(fS()),n=e(Hy());return xS}var wS,kS={},SS={};function CS(){if(wS)return SS;wS=1,Object.defineProperty(SS,"__esModule",{value:!0}),SS.default=void 0;var e={black:"#000",white:"#fff"};return SS.default=e,SS}var ES,TS={};function AS(){if(ES)return TS;ES=1,Object.defineProperty(TS,"__esModule",{value:!0}),TS.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return TS.default=e,TS}var NS,LS={};function RS(){if(NS)return LS;NS=1,Object.defineProperty(LS,"__esModule",{value:!0}),LS.default=void 0;var e={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"};return LS.default=e,LS}var MS,OS={};function PS(){if(MS)return OS;MS=1,Object.defineProperty(OS,"__esModule",{value:!0}),OS.default=void 0;var e={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"};return OS.default=e,OS}var IS,zS={};function DS(){if(IS)return zS;IS=1,Object.defineProperty(zS,"__esModule",{value:!0}),zS.default=void 0;var e={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"};return zS.default=e,zS}var jS,FS={};function BS(){if(jS)return FS;jS=1,Object.defineProperty(FS,"__esModule",{value:!0}),FS.default=void 0;var e={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"};return FS.default=e,FS}var $S,HS={};function WS(){if($S)return HS;$S=1,Object.defineProperty(HS,"__esModule",{value:!0}),HS.default=void 0;var e={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"};return HS.default=e,HS}var US,KS,GS={};function YS(){if(US)return GS;US=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=void 0;var e={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"};return GS.default=e,GS}function VS(){if(KS)return kS;KS=1;var e=dy();Object.defineProperty(kS,"__esModule",{value:!0}),kS.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,k=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,S=e.info,C=void 0===S?{light:c.default[300],main:c.default[500],dark:c.default[700]}:S,E=e.success,T=void 0===E?{light:d.default[300],main:d.default[500],dark:d.default[700]}:E,A=e.type,N=void 0===A?"light":A,L=e.contrastThreshold,R=void 0===L?3:L,M=e.tonalOffset,O=void 0===M?.2:M,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,f.getContrastRatio)(e,h.text.primary)>=R?h.text.primary:p.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=I(e.main)),e},D={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:N,primary:z(v),secondary:z(b,"A400","A200","A700"),error:z(_),warning:z(k),info:z(C),success:z(T),grey:i.default,contrastThreshold:R,getContrastText:I,augmentColor:z,tonalOffset:O},D[N]),P)},kS.dark=kS.light=void 0;var t=e(Hy()),n=e(mS()),r=tS,o=e(CS()),i=e(AS()),a=e(RS()),s=e(PS()),l=e(DS()),u=e(BS()),c=e(WS()),d=e(YS()),f=nS(),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};kS.light=p;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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}};function m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.lighten)(e.main,o):"dark"===t&&(e.dark=(0,f.darken)(e.main,i)))}return kS.dark=h,kS}var qS,JS={};function QS(){if(qS)return JS;qS=1;var e=dy();Object.defineProperty(JS,"__esModule",{value:!0}),JS.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,f=u.fontSize,p=void 0===f?14:f,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,_=void 0===x?700:x,w=u.htmlFontSize,k=void 0===w?16:w,S=u.allVariants,C=u.pxToRem,E=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=p/14,A=C||function(e){return"".concat(e/k*T,"rem")},N=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:A(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,S)},L={h1:N(m,96,1.167,-1.5),h2:N(m,60,1.2,-.5),h3:N(v,48,1.167,0),h4:N(v,34,1.235,.25),h5:N(v,24,1.334,0),h6:N(b,20,1.6,.15),subtitle1:N(v,16,1.75,.15),subtitle2:N(b,14,1.57,.1),body1:N(v,16,1.5,.15),body2:N(v,14,1.43,.15),button:N(b,14,1.75,.4,a),caption:N(v,12,1.66,.4),overline:N(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:k,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:_},L),E,{clone:!1})};var t=e(Hy()),n=e(mS()),r=tS;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return JS}var XS,ZS={};function eC(){if(XS)return ZS;XS=1,Object.defineProperty(ZS,"__esModule",{value:!0}),ZS.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return ZS.default=t,ZS}var tC,nC={};function rC(){if(tC)return nC;tC=1,Object.defineProperty(nC,"__esModule",{value:!0}),nC.default=void 0;var e={borderRadius:4};return nC.default=e,nC}var oC={};function iC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aC(e,t){if(e){if("string"==typeof e)return iC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iC(e,t):void 0}}function sC(e){return function(e){if(Array.isArray(e))return iC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||aC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lC(e,t){return t?Bk(e,t,{clone:!1}):e}var uC={xs:0,sm:600,md:960,lg:1280,xl:1920},cC={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(uC[e],"px)")}};function dC(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||cC;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Zv(t)){var o=e.theme.breakpoints||cC;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function fC(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function pC(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=fC(e.theme,o)||{};return dC(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=fC(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=ey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function hC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?lC(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function mC(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var gC=pC({prop:"border",themeKey:"borders",transform:mC}),vC=pC({prop:"borderTop",themeKey:"borders",transform:mC}),yC=pC({prop:"borderRight",themeKey:"borders",transform:mC}),bC=pC({prop:"borderBottom",themeKey:"borders",transform:mC}),xC=pC({prop:"borderLeft",themeKey:"borders",transform:mC}),_C=pC({prop:"borderColor",themeKey:"palette"}),wC=pC({prop:"borderRadius",themeKey:"shape"}),kC=hC(gC,vC,yC,bC,xC,_C,wC);function SC(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function CC(e){var t=function(t){var n=e(t);return t.css?gf({},lC(n,e(gf({theme:t.theme},t.css))),SC(t.css,[e.filterProps])):t.sx?gf({},lC(n,e(gf({theme:t.theme},t.sx))),SC(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(sC(e.filterProps)),t}var EC=hC(pC({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),pC({prop:"display"}),pC({prop:"overflow"}),pC({prop:"textOverflow"}),pC({prop:"visibility"}),pC({prop:"whiteSpace"})),TC=pC({prop:"flexBasis"}),AC=pC({prop:"flexDirection"}),NC=pC({prop:"flexWrap"}),LC=pC({prop:"justifyContent"}),RC=pC({prop:"alignItems"}),MC=pC({prop:"alignContent"}),OC=pC({prop:"order"}),PC=pC({prop:"flex"}),IC=pC({prop:"flexGrow"}),zC=pC({prop:"flexShrink"}),DC=pC({prop:"alignSelf"}),jC=pC({prop:"justifyItems"}),FC=pC({prop:"justifySelf"}),BC=hC(TC,AC,NC,LC,RC,MC,OC,PC,IC,zC,DC,jC,FC),$C=pC({prop:"gridGap"}),HC=pC({prop:"gridColumnGap"}),WC=pC({prop:"gridRowGap"}),UC=pC({prop:"gridColumn"}),KC=pC({prop:"gridRow"}),GC=pC({prop:"gridAutoFlow"}),YC=pC({prop:"gridAutoColumns"}),VC=pC({prop:"gridAutoRows"}),qC=pC({prop:"gridTemplateColumns"}),JC=pC({prop:"gridTemplateRows"}),QC=pC({prop:"gridTemplateAreas"}),XC=pC({prop:"gridArea"}),ZC=hC($C,HC,WC,UC,KC,GC,YC,VC,qC,JC,QC,XC),eE=pC({prop:"color",themeKey:"palette"}),tE=pC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),nE=hC(eE,tE),rE=pC({prop:"position"}),oE=pC({prop:"zIndex",themeKey:"zIndex"}),iE=pC({prop:"top"}),aE=pC({prop:"right"}),sE=pC({prop:"bottom"}),lE=pC({prop:"left"}),uE=hC(rE,oE,iE,aE,sE,lE),cE=pC({prop:"boxShadow",themeKey:"shadows"});function dE(e){return e<=1?"".concat(100*e,"%"):e}var fE=pC({prop:"width",transform:dE}),pE=pC({prop:"maxWidth",transform:dE}),hE=pC({prop:"minWidth",transform:dE}),mE=pC({prop:"height",transform:dE}),gE=pC({prop:"maxHeight",transform:dE}),vE=pC({prop:"minHeight",transform:dE}),yE=pC({prop:"size",cssProperty:"width",transform:dE}),bE=pC({prop:"size",cssProperty:"height",transform:dE}),xE=pC({prop:"boxSizing"}),_E=hC(fE,pE,hE,mE,gE,vE,xE);function wE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||aC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var kE={m:"margin",p:"padding"},SE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},CE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},EE=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!CE[e])return[e];e=CE[e]}var t=wE(e.split(""),2),n=t[0],r=t[1],o=kE[n],i=SE[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),TE=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function AE(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function NE(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function LE(e){var t=AE(e.theme);return Object.keys(e).map(function(n){if(-1===TE.indexOf(n))return null;var r=NE(EE(n),t),o=e[n];return dC(e,o,r)}).reduce(lC,{})}LE.propTypes={},LE.filterProps=TE;var RE,ME=pC({prop:"fontFamily",themeKey:"typography"}),OE=pC({prop:"fontSize",themeKey:"typography"}),PE=pC({prop:"fontStyle",themeKey:"typography"}),IE=pC({prop:"fontWeight",themeKey:"typography"}),zE=pC({prop:"letterSpacing"}),DE=pC({prop:"lineHeight"}),jE=pC({prop:"textAlign"}),FE=hC(ME,OE,PE,IE,zE,DE,jE),BE=Object.freeze({__proto__:null,alignContent:MC,alignItems:RC,alignSelf:DC,bgcolor:tE,border:gC,borderBottom:bC,borderColor:_C,borderLeft:xC,borderRadius:wC,borderRight:yC,borderTop:vC,borders:kC,bottom:sE,boxSizing:xE,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||cC,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(gf({theme:t.theme},t[o]))),n},null);return lC(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(sC(e.filterProps)),t},color:eE,compose:hC,createUnarySpacing:AE,css:function(e){return CC(e)},display:EC,flex:PC,flexBasis:TC,flexDirection:AC,flexGrow:IC,flexShrink:zC,flexWrap:NC,flexbox:BC,fontFamily:ME,fontSize:OE,fontStyle:PE,fontWeight:IE,grid:ZC,gridArea:XC,gridAutoColumns:YC,gridAutoFlow:GC,gridAutoRows:VC,gridColumn:UC,gridColumnGap:HC,gridGap:$C,gridRow:KC,gridRowGap:WC,gridTemplateAreas:QC,gridTemplateColumns:qC,gridTemplateRows:JC,height:mE,justifyContent:LC,justifyItems:jC,justifySelf:FC,left:lE,letterSpacing:zE,lineHeight:DE,maxHeight:gE,maxWidth:pE,minHeight:vE,minWidth:hE,order:OC,palette:nE,position:rE,positions:uE,right:aE,shadows:cE,sizeHeight:bE,sizeWidth:yE,sizing:_E,spacing:LE,style:pC,styleFunctionSx:CC,textAlign:jE,top:iE,typography:FE,width:fE,zIndex:oE}),$E=g(BE);function HE(){if(RE)return oC;RE=1,Object.defineProperty(oC,"__esModule",{value:!0}),oC.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=$E;return oC}var WE,UE={};function KE(){if(WE)return UE;WE=1;var e=dy();Object.defineProperty(UE,"__esModule",{value:!0}),UE.default=UE.duration=UE.easing=void 0;var t=e(mS()),n={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)"};UE.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}UE.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return UE.default=i,UE}var GE,YE,VE={};function qE(){if(GE)return VE;GE=1,Object.defineProperty(VE,"__esModule",{value:!0}),VE.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return VE.default=e,VE}function JE(){if(YE)return aS;YE=1;var e=dy();Object.defineProperty(aS,"__esModule",{value:!0}),aS.createMuiTheme=function(){return f.apply(void 0,arguments)},aS.default=void 0,e(fS());var t=e(mS()),n=tS,r=e(yS()),o=e(_S()),i=e(VS()),a=e(QS()),s=e(eC()),l=e(rC()),u=e(HE()),c=e(KE()),d=e(qE());function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=e.breakpoints,p=void 0===f?{}:f,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),k=(0,r.default)(p),S=(0,u.default)(y),C=(0,n.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,o.default)(k,S,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:S,shape:l.default,transitions:c.default,zIndex:d.default},_),E=arguments.length,T=new Array(E>1?E-1:0),A=1;A<E;A++)T[A-1]=arguments[A];return C=T.reduce(function(e,t){return(0,n.deepmerge)(e,t)},C)}var p=f;return aS.default=p,aS}var QE,XE={};function ZE(){if(QE)return XE;QE=1;var e=dy();Object.defineProperty(XE,"__esModule",{value:!0}),XE.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=tS,n=e(JE());return XE}var eT={},tT="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",nT=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function rT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==nT.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[tT]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function oT(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var iT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aT="object"===("undefined"==typeof window?"undefined":iT(window))&&"object"===("undefined"==typeof document?"undefined":iT(document))&&9===document.nodeType;function sT(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ey(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var lT={}.constructor;function uT(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(uT);if(e.constructor!==lT)return e;var t={};for(var n in e)t[n]=uT(e[n]);return t}function cT(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=uT(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var dT=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},fT=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=dT(e[n]," ");else t=dT(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function pT(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function hT(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function mT(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=pT(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=hT(f+":"+u+fT(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=hT(h+":"+u+fT(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=hT(g+":"+u+fT(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),hT(""+e+u+"{"+r,--i)+hT("}",i)):r}var gT=/([[\].#*$><+~=|^:(),"'`\s])/g,vT="undefined"!=typeof CSS&&CSS.escape,yT=function(e){return vT?vT(e):e.replace(gT,"\\$1")},bT=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),xT=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(bb(bb(o)),s),o.selectorText="."+yT(o.id)),o}sb(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=fT(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?gf({},e,{allowEmpty:!0}):e;return mT(this.selectorText,this.style,n)},sT(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(bT),_T={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new xT(e,t,n)}},wT={indent:1,children:!0},kT=/@([\w-]+)/,ST=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(kT);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new VT(gf({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=wT);var t=pT(e).linebreak;if(null==e.indent&&(e.indent=wT.indent),null==e.children&&(e.children=wT.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),CT=/@container|@media|@supports\s+/,ET={onCreateRule:function(e,t,n){return CT.test(e)?new ST(e,t,n):null}},TT={indent:1,children:!0},AT=/@keyframes\s+([\w-]+)/,NT=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(AT);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:yT(a(this,i)),this.rules=new VT(gf({},n,{parent:this})),t)this.rules.add(s,t[s],gf({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=TT);var t=pT(e).linebreak;if(null==e.indent&&(e.indent=TT.indent),null==e.children&&(e.children=TT.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),LT=/@keyframes\s+/,RT=/\$([\w-]+)/g,MT=function(e,t){return"string"==typeof e?e.replace(RT,function(e,n){return n in t?t[n]:e}):e},OT=function(e,t,n){var r=e[t],o=MT(r,n);o!==r&&(e[t]=o)},PT={onCreateRule:function(e,t,n){return"string"==typeof e&<.test(e)?new NT(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&OT(e,"animation-name",n.keyframes),"animation"in e&&OT(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return MT(e,r.keyframes);default:return e}}},IT=function(e){function t(){return e.apply(this,arguments)||this}return sb(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?gf({},e,{allowEmpty:!0}):e;return mT(this.key,this.style,n)},t}(bT),zT={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new IT(e,t,n):null}},DT=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=pT(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=mT(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return mT(this.at,this.style,e)},e}(),jT=/@font-face/,FT={onCreateRule:function(e,t,n){return jT.test(e)?new DT(e,t,n):null}},BT=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return mT(this.key,this.style,e)},e}(),$T={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new BT(e,t,n):null}},HT=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),WT={"@charset":!0,"@import":!0,"@namespace":!0},UT={onCreateRule:function(e,t,n){return e in WT?new HT(e,t,n):null}},KT=[_T,ET,PT,zT,FT,$T,UT],GT={process:!0},YT={force:!0,process:!0},VT=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=gf({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+yT(this.classes[d]));var f=cT(d,t,c);if(!f)return null;this.register(f);var p=void 0===c.index?this.index.length:c.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=gf({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof xT?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof NT&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof xT?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof NT&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=GT);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,YT)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,YT)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=pT(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),qT=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=gf({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new VT(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),JT=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),QT=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=vf(t,["attached"]),o=pT(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},sT(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),XT=new QT,ZT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),eA="2f1acc6c3a606b082e5eef5e54414ffb";null==ZT[eA]&&(ZT[eA]=0);var tA=ZT[eA]++,nA=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+tA+o+t:i+n.key+"-"+tA+(o?"-"+o:"")+"-"+t}},rA=function(e){var t;return function(){return t||(t=e()),t}},oA=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},iA=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=fT(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},aA=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},sA=function(e,t){return e.selectorText=t,e.selectorText===t},lA=rA(function(){return document.querySelector("head")});function uA(e){var t=XT.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=lA(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var cA=rA(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),dA=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},fA=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},pA=function(){function e(e){this.getPropertyValue=oA,this.setProperty=iA,this.removeProperty=aA,this.setSelector=sA,this.hasInsertedRules=!1,this.cssRules=[],e&&XT.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=cA();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=uA(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else lA().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=fA(n,t);if(!1===(o=dA(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=fA(n,t),l=dA(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof qT&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),hA=0,mA=function(){function e(e){this.id=hA++,this.version="10.10.0",this.plugins=new JT,this.options={id:{minify:!1},createGenerateId:nA,Renderer:aT?pA:null,plugins:[]},this.generateId=nA({minify:!1});for(var t=0;t<KT.length;t++)this.plugins.use(KT[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=gf({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===XT.index?0:XT.index+1);var r=new qT(e,gf({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),XT.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=gf({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=cT(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),gA=function(e){return new mA(e)},vA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function yA(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=yA(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
97
97
|
/**
|
|
98
98
|
* A better abstraction over CSS.
|
|
99
99
|
*
|
|
100
100
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
101
101
|
* @website https://github.com/cssinjs/jss
|
|
102
102
|
* @license MIT
|
|
103
|
-
*/mA();var yA=Date.now(),bA="fnValues"+yA,xA="fnStyle"+ ++yA,_A="@global",wA="@global ",kA=function(){function e(e,t,n){for(var r in this.type="global",this.at=_A,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new VT(hf({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),SA=function(){function e(e,t,n){this.type="global",this.at=_A,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,hf({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),CA=/\s*,\s*/g;function EA(e,t){for(var n=e.split(CA),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function TA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===_A)return new kA(e,t,n);if("@"===e[0]&&e.substr(0,8)===wA)return new SA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[_A]:null;if(o){for(var i in o)t.addRule(i,o[i],hf({},n,{selector:EA(i,e.selector)}));delete r[_A]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===_A){var i=EA(o.substr(7),e.selector);t.addRule(i,r[o],hf({},n,{selector:i})),delete r[o]}}(e,t))}}}var AA=/\s*,\s*/g,NA=/&/g,LA=/\$([\w-]+)/g;function RA(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(AA),r=e.split(AA),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(NA,a):a+" "+l}return o}function n(e,t,n){if(n)return hf({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=hf({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var p=t(c,l.selector);s||(s=e(u,i)),p=p.replace(LA,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],hf({},a,{selector:p})):u.addRule(h,r[c],hf({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var MA=/[A-Z]/g,OA=/^ms-/,PA={};function zA(e){return"-"+e.toLowerCase()}function IA(e){if(PA.hasOwnProperty(e))return PA[e];var t=e.replace(MA,zA);return PA[e]=OA.test(t)?"-"+t:t}function DA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:IA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(DA):t.fallbacks=DA(e.fallbacks)),t}var jA=gA&&CSS?CSS.px:"px",FA=gA&&CSS?CSS.ms:"ms",BA=gA&&CSS?CSS.percent:"%";function $A(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var HA=$A({"animation-delay":FA,"animation-duration":FA,"background-position":jA,"background-position-x":jA,"background-position-y":jA,"background-size":jA,border:jA,"border-bottom":jA,"border-bottom-left-radius":jA,"border-bottom-right-radius":jA,"border-bottom-width":jA,"border-left":jA,"border-left-width":jA,"border-radius":jA,"border-right":jA,"border-right-width":jA,"border-top":jA,"border-top-left-radius":jA,"border-top-right-radius":jA,"border-top-width":jA,"border-width":jA,"border-block":jA,"border-block-end":jA,"border-block-end-width":jA,"border-block-start":jA,"border-block-start-width":jA,"border-block-width":jA,"border-inline":jA,"border-inline-end":jA,"border-inline-end-width":jA,"border-inline-start":jA,"border-inline-start-width":jA,"border-inline-width":jA,"border-start-start-radius":jA,"border-start-end-radius":jA,"border-end-start-radius":jA,"border-end-end-radius":jA,margin:jA,"margin-bottom":jA,"margin-left":jA,"margin-right":jA,"margin-top":jA,"margin-block":jA,"margin-block-end":jA,"margin-block-start":jA,"margin-inline":jA,"margin-inline-end":jA,"margin-inline-start":jA,padding:jA,"padding-bottom":jA,"padding-left":jA,"padding-right":jA,"padding-top":jA,"padding-block":jA,"padding-block-end":jA,"padding-block-start":jA,"padding-inline":jA,"padding-inline-end":jA,"padding-inline-start":jA,"mask-position-x":jA,"mask-position-y":jA,"mask-size":jA,height:jA,width:jA,"min-height":jA,"max-height":jA,"min-width":jA,"max-width":jA,bottom:jA,left:jA,top:jA,right:jA,inset:jA,"inset-block":jA,"inset-block-end":jA,"inset-block-start":jA,"inset-inline":jA,"inset-inline-end":jA,"inset-inline-start":jA,"box-shadow":jA,"text-shadow":jA,"column-gap":jA,"column-rule":jA,"column-rule-width":jA,"column-width":jA,"font-size":jA,"font-size-delta":jA,"letter-spacing":jA,"text-decoration-thickness":jA,"text-indent":jA,"text-stroke":jA,"text-stroke-width":jA,"word-spacing":jA,motion:jA,"motion-offset":jA,outline:jA,"outline-offset":jA,"outline-width":jA,perspective:jA,"perspective-origin-x":BA,"perspective-origin-y":BA,"transform-origin":BA,"transform-origin-x":BA,"transform-origin-y":BA,"transform-origin-z":BA,"transition-delay":FA,"transition-duration":FA,"vertical-align":jA,"flex-basis":jA,"shape-margin":jA,size:jA,gap:jA,grid:jA,"grid-gap":jA,"row-gap":jA,"grid-row-gap":jA,"grid-column-gap":jA,"grid-template-rows":jA,"grid-template-columns":jA,"grid-auto-rows":jA,"grid-auto-columns":jA,"box-shadow-x":jA,"box-shadow-y":jA,"box-shadow-blur":jA,"box-shadow-spread":jA,"font-line-height":jA,"text-shadow-x":jA,"text-shadow-y":jA,"text-shadow-blur":jA});function WA(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=WA(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=WA(o,t[o],n);else for(var i in t)t[i]=WA(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||HA[e];return!a||0===t&&a===jA?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function UA(e){void 0===e&&(e={});var t=$A(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=WA(r,e[r],t);return e},onChangeValue:function(e,n){return WA(n,e,t)}}}var KA="",GA="",VA="",YA="",qA=iT&&"ontouchstart"in document.documentElement;if(iT){var JA={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},QA=document.createElement("p").style;for(var XA in JA)if(XA+"Transform"in QA){KA=XA,GA=JA[XA];break}"Webkit"===KA&&"msHyphens"in QA&&(KA="ms",GA=JA.ms,YA="edge"),"Webkit"===KA&&"-apple-trailing-word"in QA&&(VA="apple")}var ZA=KA,eN=GA,tN=VA,nN=YA,rN=qA;var oN={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ZA?"-webkit-"+e:eN+e)}},iN={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ZA?eN+"print-"+e:e)}},aN=/[-\s]+(.)?/g;function sN(e,t){return t?t.toUpperCase():""}function lN(e){return e.replace(aN,sN)}function uN(e){return lN("-"+e)}var cN,dN={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ZA){var n="mask-image";if(lN(n)in t)return e;if(ZA+uN(n)in t)return eN+e}return e}},fN={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==tN||rN?e:eN+e)}},pN={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:eN+e)}},hN={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:eN+e)}},mN={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ZA||"ms"===ZA&&"edge"!==nN?eN+e:e)}},gN={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ZA||"ms"===ZA||"apple"===tN?eN+e:e)}},vN={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ZA?"WebkitColumn"+uN(e)in t&&eN+"column-"+e:"Moz"===ZA&&("page"+uN(e)in t&&"page-"+e))}},yN={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ZA)return e;var n=e.replace("-inline","");return ZA+uN(n)in t&&eN+n}},bN={supportedProperty:function(e,t){return lN(e)in t&&e}},xN={supportedProperty:function(e,t){var n=uN(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ZA+n in t?eN+e:"Webkit"!==ZA&&"Webkit"+n in t&&"-webkit-"+e}},_N={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ZA?""+eN+e:e)}},wN={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ZA?eN+"scroll-chaining":e)}},kN={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},SN={supportedProperty:function(e,t){var n=kN[e];return!!n&&(ZA+uN(n)in t&&eN+n)}},CN={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},EN=Object.keys(CN),TN=function(e){return eN+e},AN={supportedProperty:function(e,t,n){var r=n.multiple;if(EN.indexOf(e)>-1){var o=CN[e];if(!Array.isArray(o))return ZA+uN(o)in t&&eN+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(ZA+uN(o[0])in t))return!1;return o.map(TN)}return!1}},NN=[oN,iN,dN,fN,pN,hN,mN,gN,vN,yN,bN,xN,_N,wN,SN,AN],LN=NN.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),RN=NN.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,aC(t.noPrefill)),e},[]),MN={};if(iT){cN=document.createElement("p");var ON=window.getComputedStyle(document.documentElement,"");for(var PN in ON)isNaN(PN)||(MN[ON[PN]]=ON[PN]);RN.forEach(function(e){return delete MN[e]})}function zN(e,t){if(void 0===t&&(t={}),!cN)return e;if(null!=MN[e])return MN[e];"transition"!==e&&"transform"!==e||(t[e]=e in cN.style);for(var n=0;n<LN.length&&(MN[e]=LN[n](e,cN.style,t),!MN[e]);n++);try{cN.style[e]=""}catch(e){return!1}return MN[e]}var IN,DN={},jN={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},FN=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function BN(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?zN(t):", "+zN(n);return r||(t||n)}function $N(e,t){var n=t;if(!IN||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=DN[r])return DN[r];try{IN.style[e]=n}catch(e){return DN[r]=!1,!1}if(jN[e])n=n.replace(FN,BN);else if(""===IN.style[e]&&("-ms-flex"===(n=eN+n)&&(IN.style[e]="-ms-flexbox"),IN.style[e]=n,""===IN.style[e]))return DN[r]=!1,!1;return IN.style[e]="",DN[r]=n,DN[r]}function HN(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=zN(n);i&&i!==n&&(o=!0);var a=!1,s=$N(i,dT(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ZA?e:"@"+eN+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return $N(t,dT(e))||e}}}function WN(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=uT(e,{},n);return r[xA]=t,r},onProcessStyle:function(e,t){if(bA in t||xA in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[bA]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[xA];i&&(o.style=i(e)||{});var a=o[bA];if(a)for(var s in a)o.prop(s,a[s](e),r)}},TA(),RA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=DA(e[t]);return e}return DA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=IA(t);return t===r?e:(n.prop(r,e),null)}},UA(),"undefined"==typeof window?null:HN(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function UN(e,t){if(null==e)return{};var n,r,o=mf(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=hf({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}iT&&(IN=document.createElement("p"));var GN=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},VN=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},YN=function(e,t,n){e.get(t).delete(n)},qN=j.createContext(null);function JN(){return j.useContext(qN)}var QN,XN=mA(WN()),ZN=nT(),eL=new Map,tL={disableGeneration:!1,generateClassName:ZN,jss:XN,sheetsCache:null,sheetsManager:eL,sheetsRegistry:null},nL=j.createContext(tL);function rL(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=UN(e,["children","injectFirst","disableGeneration"]),s=hf({},j.useContext(nL),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!QN){var l=document.head;QN=document.createComment("mui-inject-first"),l.insertBefore(QN,l.firstChild)}s.jss=mA({plugins:WN().plugins,insertionPoint:QN})}return j.createElement(nL.Provider,{value:s},t)}var oL=-1e9;var iL={};function aL(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=VN(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},GN(o.sheetsManager,i,r,s));var l=hf({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=VN(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,hf({link:!1},l))).attach(),o.sheetsCache&&GN(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=vA(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,hf({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=KN({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function sL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?iL:i,s=UN(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=hf({},o);return Object.keys(i).forEach(function(e){a[e]=Fk(a[e],i[e])}),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:oL+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JN()||a,r=hf({},j.useContext(nL),s),i=j.useRef(),u=j.useRef();!function(e,t){var n,r=j.useRef([]),o=j.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),j.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return aL(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=VN(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(YN(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),j.useEffect(function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=KN({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var lL=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return aT(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new JT;var n=nT();return j.createElement(rL,hf({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return j.createElement("style",hf({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function uL(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=uL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function cL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=uL(e))&&(r&&(r+=" "),r+=t);return r}function dL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=j.forwardRef(function(n,r){var o=n.innerRef,i=UN(n,["innerRef"]),a=JN()||e;return j.createElement(t,hf({theme:a,ref:o||r},i))});return Op(n,t),n}}var fL,pL=dL(),hL=Object.freeze({__proto__:null,ServerStyleSheets:lL,StylesContext:nL,StylesProvider:rL,ThemeProvider:function(e){var t=e.children,n=e.theme,r=JN(),o=j.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):hf({},e,t)}(r,n);return null!=e&&(e[eT]=null!==r),e},[n,r]);return j.createElement(qN.Provider,{value:o},t)},createGenerateClassName:nT,createStyles:function(e){return e},getThemeProps:rT,jssPreset:WN,makeStyles:sL,mergeClasses:KN,sheetsManager:eL,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=UN(r,["name"]),a=o,s=sL("function"==typeof t?function(e){return{root:function(n){return t(hf({theme:e},n))}}}:{root:t},hf({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=j.forwardRef(function(t,r){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,f=UN(t,["children","className","clone","component"]),p=cL(s(t).root,u),h=f;if(n&&(o=h,i=n,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return j.cloneElement(l,hf({className:cL(l.props.className,p)},h));if("function"==typeof l)return l(hf({className:p},h));var m=d||e;return j.createElement(m,hf({ref:r,className:p},h),l)});return Op(l,e),l}},useTheme:JN,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=UN(t,["defaultTheme","withTheme","name"]),l=a,u=sL(e,hf({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=j.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=UN(e,["classes","innerRef"]),c=u(hf({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=JN()||r,a&&(d=rT({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),j.createElement(n,hf({ref:s||t,classes:c},d))});return Op(c,n),c}},withTheme:pL,withThemeCreator:dL}),mL=g(hL);
|
|
103
|
+
*/gA();var bA=Date.now(),xA="fnValues"+bA,_A="fnStyle"+ ++bA,wA="@global",kA="@global ",SA=function(){function e(e,t,n){for(var r in this.type="global",this.at=wA,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new VT(gf({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),CA=function(){function e(e,t,n){this.type="global",this.at=wA,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,gf({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),EA=/\s*,\s*/g;function TA(e,t){for(var n=e.split(EA),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function AA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===wA)return new SA(e,t,n);if("@"===e[0]&&e.substr(0,8)===kA)return new CA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[wA]:null;if(o){for(var i in o)t.addRule(i,o[i],gf({},n,{selector:TA(i,e.selector)}));delete r[wA]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===wA){var i=TA(o.substr(7),e.selector);t.addRule(i,r[o],gf({},n,{selector:i})),delete r[o]}}(e,t))}}}var NA=/\s*,\s*/g,LA=/&/g,RA=/\$([\w-]+)/g;function MA(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(NA),r=e.split(NA),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(LA,a):a+" "+l}return o}function n(e,t,n){if(n)return gf({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=gf({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var p=t(c,l.selector);s||(s=e(u,i)),p=p.replace(RA,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],gf({},a,{selector:p})):u.addRule(h,r[c],gf({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var OA=/[A-Z]/g,PA=/^ms-/,IA={};function zA(e){return"-"+e.toLowerCase()}function DA(e){if(IA.hasOwnProperty(e))return IA[e];var t=e.replace(OA,zA);return IA[e]=PA.test(t)?"-"+t:t}function jA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:DA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(jA):t.fallbacks=jA(e.fallbacks)),t}var FA=vA&&CSS?CSS.px:"px",BA=vA&&CSS?CSS.ms:"ms",$A=vA&&CSS?CSS.percent:"%";function HA(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var WA=HA({"animation-delay":BA,"animation-duration":BA,"background-position":FA,"background-position-x":FA,"background-position-y":FA,"background-size":FA,border:FA,"border-bottom":FA,"border-bottom-left-radius":FA,"border-bottom-right-radius":FA,"border-bottom-width":FA,"border-left":FA,"border-left-width":FA,"border-radius":FA,"border-right":FA,"border-right-width":FA,"border-top":FA,"border-top-left-radius":FA,"border-top-right-radius":FA,"border-top-width":FA,"border-width":FA,"border-block":FA,"border-block-end":FA,"border-block-end-width":FA,"border-block-start":FA,"border-block-start-width":FA,"border-block-width":FA,"border-inline":FA,"border-inline-end":FA,"border-inline-end-width":FA,"border-inline-start":FA,"border-inline-start-width":FA,"border-inline-width":FA,"border-start-start-radius":FA,"border-start-end-radius":FA,"border-end-start-radius":FA,"border-end-end-radius":FA,margin:FA,"margin-bottom":FA,"margin-left":FA,"margin-right":FA,"margin-top":FA,"margin-block":FA,"margin-block-end":FA,"margin-block-start":FA,"margin-inline":FA,"margin-inline-end":FA,"margin-inline-start":FA,padding:FA,"padding-bottom":FA,"padding-left":FA,"padding-right":FA,"padding-top":FA,"padding-block":FA,"padding-block-end":FA,"padding-block-start":FA,"padding-inline":FA,"padding-inline-end":FA,"padding-inline-start":FA,"mask-position-x":FA,"mask-position-y":FA,"mask-size":FA,height:FA,width:FA,"min-height":FA,"max-height":FA,"min-width":FA,"max-width":FA,bottom:FA,left:FA,top:FA,right:FA,inset:FA,"inset-block":FA,"inset-block-end":FA,"inset-block-start":FA,"inset-inline":FA,"inset-inline-end":FA,"inset-inline-start":FA,"box-shadow":FA,"text-shadow":FA,"column-gap":FA,"column-rule":FA,"column-rule-width":FA,"column-width":FA,"font-size":FA,"font-size-delta":FA,"letter-spacing":FA,"text-decoration-thickness":FA,"text-indent":FA,"text-stroke":FA,"text-stroke-width":FA,"word-spacing":FA,motion:FA,"motion-offset":FA,outline:FA,"outline-offset":FA,"outline-width":FA,perspective:FA,"perspective-origin-x":$A,"perspective-origin-y":$A,"transform-origin":$A,"transform-origin-x":$A,"transform-origin-y":$A,"transform-origin-z":$A,"transition-delay":BA,"transition-duration":BA,"vertical-align":FA,"flex-basis":FA,"shape-margin":FA,size:FA,gap:FA,grid:FA,"grid-gap":FA,"row-gap":FA,"grid-row-gap":FA,"grid-column-gap":FA,"grid-template-rows":FA,"grid-template-columns":FA,"grid-auto-rows":FA,"grid-auto-columns":FA,"box-shadow-x":FA,"box-shadow-y":FA,"box-shadow-blur":FA,"box-shadow-spread":FA,"font-line-height":FA,"text-shadow-x":FA,"text-shadow-y":FA,"text-shadow-blur":FA});function UA(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=UA(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=UA(o,t[o],n);else for(var i in t)t[i]=UA(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||WA[e];return!a||0===t&&a===FA?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function KA(e){void 0===e&&(e={});var t=HA(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=UA(r,e[r],t);return e},onChangeValue:function(e,n){return UA(n,e,t)}}}var GA="",YA="",VA="",qA="",JA=aT&&"ontouchstart"in document.documentElement;if(aT){var QA={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},XA=document.createElement("p").style;for(var ZA in QA)if(ZA+"Transform"in XA){GA=ZA,YA=QA[ZA];break}"Webkit"===GA&&"msHyphens"in XA&&(GA="ms",YA=QA.ms,qA="edge"),"Webkit"===GA&&"-apple-trailing-word"in XA&&(VA="apple")}var eN=GA,tN=YA,nN=VA,rN=qA,oN=JA;var iN={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===eN?"-webkit-"+e:tN+e)}},aN={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===eN?tN+"print-"+e:e)}},sN=/[-\s]+(.)?/g;function lN(e,t){return t?t.toUpperCase():""}function uN(e){return e.replace(sN,lN)}function cN(e){return uN("-"+e)}var dN,fN={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===eN){var n="mask-image";if(uN(n)in t)return e;if(eN+cN(n)in t)return tN+e}return e}},pN={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==nN||oN?e:tN+e)}},hN={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:tN+e)}},mN={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:tN+e)}},gN={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===eN||"ms"===eN&&"edge"!==rN?tN+e:e)}},vN={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===eN||"ms"===eN||"apple"===nN?tN+e:e)}},yN={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===eN?"WebkitColumn"+cN(e)in t&&tN+"column-"+e:"Moz"===eN&&("page"+cN(e)in t&&"page-"+e))}},bN={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===eN)return e;var n=e.replace("-inline","");return eN+cN(n)in t&&tN+n}},xN={supportedProperty:function(e,t){return uN(e)in t&&e}},_N={supportedProperty:function(e,t){var n=cN(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:eN+n in t?tN+e:"Webkit"!==eN&&"Webkit"+n in t&&"-webkit-"+e}},wN={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===eN?""+tN+e:e)}},kN={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===eN?tN+"scroll-chaining":e)}},SN={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},CN={supportedProperty:function(e,t){var n=SN[e];return!!n&&(eN+cN(n)in t&&tN+n)}},EN={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},TN=Object.keys(EN),AN=function(e){return tN+e},NN={supportedProperty:function(e,t,n){var r=n.multiple;if(TN.indexOf(e)>-1){var o=EN[e];if(!Array.isArray(o))return eN+cN(o)in t&&tN+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(eN+cN(o[0])in t))return!1;return o.map(AN)}return!1}},LN=[iN,aN,fN,pN,hN,mN,gN,vN,yN,bN,xN,_N,wN,kN,CN,NN],RN=LN.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),MN=LN.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,sC(t.noPrefill)),e},[]),ON={};if(aT){dN=document.createElement("p");var PN=window.getComputedStyle(document.documentElement,"");for(var IN in PN)isNaN(IN)||(ON[PN[IN]]=PN[IN]);MN.forEach(function(e){return delete ON[e]})}function zN(e,t){if(void 0===t&&(t={}),!dN)return e;if(null!=ON[e])return ON[e];"transition"!==e&&"transform"!==e||(t[e]=e in dN.style);for(var n=0;n<RN.length&&(ON[e]=RN[n](e,dN.style,t),!ON[e]);n++);try{dN.style[e]=""}catch(e){return!1}return ON[e]}var DN,jN={},FN={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},BN=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function $N(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?zN(t):", "+zN(n);return r||(t||n)}function HN(e,t){var n=t;if(!DN||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=jN[r])return jN[r];try{DN.style[e]=n}catch(e){return jN[r]=!1,!1}if(FN[e])n=n.replace(BN,$N);else if(""===DN.style[e]&&("-ms-flex"===(n=tN+n)&&(DN.style[e]="-ms-flexbox"),DN.style[e]=n,""===DN.style[e]))return jN[r]=!1,!1;return DN.style[e]="",jN[r]=n,jN[r]}function WN(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=zN(n);i&&i!==n&&(o=!0);var a=!1,s=HN(i,fT(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===eN?e:"@"+tN+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return HN(t,fT(e))||e}}}function UN(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=cT(e,{},n);return r[_A]=t,r},onProcessStyle:function(e,t){if(xA in t||_A in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[xA]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[_A];i&&(o.style=i(e)||{});var a=o[xA];if(a)for(var s in a)o.prop(s,a[s](e),r)}},AA(),MA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=jA(e[t]);return e}return jA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=DA(t);return t===r?e:(n.prop(r,e),null)}},KA(),"undefined"==typeof window?null:WN(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function KN(e,t){if(null==e)return{};var n,r,o=vf(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=gf({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}aT&&(DN=document.createElement("p"));var YN=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},VN=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},qN=function(e,t,n){e.get(t).delete(n)},JN=j.createContext(null);function QN(){return j.useContext(JN)}var XN,ZN=gA(UN()),eL=rT(),tL=new Map,nL={disableGeneration:!1,generateClassName:eL,jss:ZN,sheetsCache:null,sheetsManager:tL,sheetsRegistry:null},rL=j.createContext(nL);function oL(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=KN(e,["children","injectFirst","disableGeneration"]),s=gf({},j.useContext(rL),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!XN){var l=document.head;XN=document.createComment("mui-inject-first"),l.insertBefore(XN,l.firstChild)}s.jss=gA({plugins:UN().plugins,insertionPoint:XN})}return j.createElement(rL.Provider,{value:s},t)}var iL=-1e9;var aL={};function sL(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=VN(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},YN(o.sheetsManager,i,r,s));var l=gf({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=VN(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,gf({link:!1},l))).attach(),o.sheetsCache&&YN(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=yA(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,gf({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=GN({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function lL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?aL:i,s=KN(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=gf({},o);return Object.keys(i).forEach(function(e){a[e]=Bk(a[e],i[e])}),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:iL+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=QN()||a,r=gf({},j.useContext(rL),s),i=j.useRef(),u=j.useRef();!function(e,t){var n,r=j.useRef([]),o=j.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),j.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return sL(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=VN(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(qN(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),j.useEffect(function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=GN({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var uL=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return sT(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new QT;var n=rT();return j.createElement(oL,gf({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return j.createElement("style",gf({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function cL(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=cL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cL(e))&&(r&&(r+=" "),r+=t);return r}function fL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=j.forwardRef(function(n,r){var o=n.innerRef,i=KN(n,["innerRef"]),a=QN()||e;return j.createElement(t,gf({theme:a,ref:o||r},i))});return Ip(n,t),n}}var pL,hL=fL(),mL=Object.freeze({__proto__:null,ServerStyleSheets:uL,StylesContext:rL,StylesProvider:oL,ThemeProvider:function(e){var t=e.children,n=e.theme,r=QN(),o=j.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):gf({},e,t)}(r,n);return null!=e&&(e[tT]=null!==r),e},[n,r]);return j.createElement(JN.Provider,{value:o},t)},createGenerateClassName:rT,createStyles:function(e){return e},getThemeProps:oT,jssPreset:UN,makeStyles:lL,mergeClasses:GN,sheetsManager:tL,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=KN(r,["name"]),a=o,s=lL("function"==typeof t?function(e){return{root:function(n){return t(gf({theme:e},n))}}}:{root:t},gf({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=j.forwardRef(function(t,r){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,f=KN(t,["children","className","clone","component"]),p=dL(s(t).root,u),h=f;if(n&&(o=h,i=n,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return j.cloneElement(l,gf({className:dL(l.props.className,p)},h));if("function"==typeof l)return l(gf({className:p},h));var m=d||e;return j.createElement(m,gf({ref:r,className:p},h),l)});return Ip(l,e),l}},useTheme:QN,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=KN(t,["defaultTheme","withTheme","name"]),l=a,u=lL(e,gf({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=j.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=KN(e,["classes","innerRef"]),c=u(gf({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=QN()||r,a&&(d=oT({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),j.createElement(n,gf({ref:s||t,classes:c},d))});return Ip(c,n),c}},withTheme:hL,withThemeCreator:fL}),gL=g(mL);
|
|
104
104
|
/** @license Material-UI v4.11.5
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the MIT license found in the
|
|
107
107
|
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/function gL(){if(fL)return ZE;fL=1,Object.defineProperty(ZE,"__esModule",{value:!0}),ZE.default=function(t){return(0,e.createStyles)(t)};var e=mL;return ZE}var vL,yL,bL={},xL={};function _L(){if(vL)return xL;vL=1;var e=uy();Object.defineProperty(xL,"__esModule",{value:!0}),xL.default=void 0;var t=(0,e(qE()).default)();return xL.default=t,xL}function wL(){if(yL)return bL;yL=1;var e=uy();Object.defineProperty(bL,"__esModule",{value:!0}),bL.default=void 0;var t=e(By()),n=mL,r=e(_L());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return bL.default=o,bL}var kL,SL,CL={},EL={};function TL(){if(kL)return EL;kL=1;var e=uy();Object.defineProperty(EL,"__esModule",{value:!0}),EL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},EL.getUnit=n,EL.toUnitless=r,EL.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},EL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},EL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},EL.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(dS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return EL}function AL(){if(SL)return CL;SL=1;var e=uy();Object.defineProperty(CL,"__esModule",{value:!0}),CL.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),p};var t=e(By()),n=eS,r=TL();return CL}var NL,LL={};function RL(){if(NL)return LL;NL=1;var e=uy();Object.defineProperty(LL,"__esModule",{value:!0}),LL.default=void 0;var t=e(By()),n=mL,r=e(_L()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return LL.default=o,LL}var ML,OL={};function PL(){if(ML)return OL;ML=1;var e=uy();Object.defineProperty(OL,"__esModule",{value:!0}),OL.default=function(){return(0,t.useTheme)()||n.default};var t=mL;e(C());var n=e(_L());return OL}var zL,IL={};function DL(){if(zL)return IL;zL=1;var e=uy();Object.defineProperty(IL,"__esModule",{value:!0}),IL.default=void 0;var t=e(By()),n=mL,r=e(_L());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return IL.default=o,IL}var jL,FL,BL={};function $L(){if(jL)return BL;jL=1;var e=uy();Object.defineProperty(BL,"__esModule",{value:!0}),BL.default=void 0;var t=mL,n=e(_L()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return BL.default=r,BL}function HL(){return FL||(FL=1,function(e){var t=uy(),n=(Rk||(Rk=1,function(e){var t=zk().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ok)),Ok.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=tS();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(qE()),a=t(XE()),s=t(gL()),l=t(wL()),u=t(AL()),c=t(RL()),d=UE();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var f=t(PL()),p=t(DL()),h=t($L()),m=mL}(Mk)),Mk}var WL=HL();WL.alpha(ak.GREYSCALE_0,.05),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5);const UL=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),KL=D.forwardRef(UL);var GL=Object.defineProperty,VL=(e,t)=>{for(var n in t)GL(e,n,{get:t[n],enumerable:!0})},YL=(e,t,n)=>((e,t,n)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),qL={};VL(qL,{af:()=>nR,ak:()=>rR,am:()=>oR,an:()=>iR,ar:()=>aR,ars:()=>sR,as:()=>lR,asa:()=>uR,ast:()=>cR,az:()=>dR,bal:()=>fR,be:()=>pR,bem:()=>hR,bez:()=>mR,bg:()=>gR,bho:()=>vR,blo:()=>yR,bm:()=>bR,bn:()=>xR,bo:()=>_R,br:()=>wR,brx:()=>kR,bs:()=>SR,ca:()=>CR,ce:()=>ER,ceb:()=>TR,cgg:()=>AR,chr:()=>NR,ckb:()=>LR,cs:()=>RR,cy:()=>MR,da:()=>OR,de:()=>PR,doi:()=>zR,dsb:()=>IR,dv:()=>DR,dz:()=>jR,ee:()=>FR,el:()=>BR,en:()=>$R,eo:()=>HR,es:()=>WR,et:()=>UR,eu:()=>KR,fa:()=>GR,ff:()=>VR,fi:()=>YR,fil:()=>qR,fo:()=>JR,fr:()=>QR,fur:()=>XR,fy:()=>ZR,ga:()=>eM,gd:()=>tM,gl:()=>nM,gsw:()=>rM,gu:()=>oM,guw:()=>iM,gv:()=>aM,ha:()=>sM,haw:()=>lM,he:()=>uM,hi:()=>cM,hnj:()=>dM,hr:()=>fM,hsb:()=>pM,hu:()=>hM,hy:()=>mM,ia:()=>gM,id:()=>vM,ig:()=>yM,ii:()=>bM,io:()=>xM,is:()=>_M,it:()=>wM,iu:()=>kM,ja:()=>SM,jbo:()=>CM,jgo:()=>EM,jmc:()=>TM,jv:()=>AM,jw:()=>NM,ka:()=>LM,kab:()=>RM,kaj:()=>MM,kcg:()=>OM,kde:()=>PM,kea:()=>zM,kk:()=>IM,kkj:()=>DM,kl:()=>jM,km:()=>FM,kn:()=>BM,ko:()=>$M,ks:()=>HM,ksb:()=>WM,ksh:()=>UM,ku:()=>KM,kw:()=>GM,ky:()=>VM,lag:()=>YM,lb:()=>qM,lg:()=>JM,lij:()=>QM,lkt:()=>XM,ln:()=>ZM,lo:()=>eO,lt:()=>tO,lv:()=>nO,mas:()=>rO,mg:()=>oO,mgo:()=>iO,mk:()=>aO,ml:()=>sO,mn:()=>lO,mo:()=>uO,mr:()=>cO,ms:()=>dO,mt:()=>fO,my:()=>pO,nah:()=>hO,naq:()=>mO,nb:()=>gO,nd:()=>vO,ne:()=>yO,nl:()=>bO,nn:()=>xO,nnh:()=>_O,no:()=>wO,nqo:()=>kO,nr:()=>SO,nso:()=>CO,ny:()=>EO,nyn:()=>TO,om:()=>AO,or:()=>NO,os:()=>LO,osa:()=>RO,pa:()=>MO,pap:()=>OO,pcm:()=>PO,pl:()=>zO,prg:()=>IO,ps:()=>DO,pt:()=>jO,pt_PT:()=>FO,rm:()=>BO,ro:()=>$O,rof:()=>HO,ru:()=>WO,rwk:()=>UO,sah:()=>KO,saq:()=>GO,sat:()=>VO,sc:()=>YO,scn:()=>qO,sd:()=>JO,sdh:()=>QO,se:()=>XO,seh:()=>ZO,ses:()=>eP,sg:()=>tP,sh:()=>nP,shi:()=>rP,si:()=>oP,sk:()=>iP,sl:()=>aP,sma:()=>sP,smi:()=>lP,smj:()=>uP,smn:()=>cP,sms:()=>dP,sn:()=>fP,so:()=>pP,sq:()=>hP,sr:()=>mP,ss:()=>gP,ssy:()=>vP,st:()=>yP,su:()=>bP,sv:()=>xP,sw:()=>_P,syr:()=>wP,ta:()=>kP,te:()=>SP,teo:()=>CP,th:()=>EP,ti:()=>TP,tig:()=>AP,tk:()=>NP,tl:()=>LP,tn:()=>RP,to:()=>MP,tpi:()=>OP,tr:()=>PP,ts:()=>zP,tzm:()=>IP,ug:()=>DP,uk:()=>jP,und:()=>FP,ur:()=>BP,uz:()=>$P,ve:()=>HP,vec:()=>WP,vi:()=>UP,vo:()=>KP,vun:()=>GP,wa:()=>VP,wae:()=>YP,wo:()=>qP,xh:()=>JP,xog:()=>QP,yi:()=>XP,yo:()=>ZP,yue:()=>ez,zh:()=>tz,zu:()=>nz});var JL=(e,t)=>t?"other":1==e?"one":"other",QL=(e,t)=>t?"other":0==e||1==e?"one":"other",XL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ZL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},eR=(e,t)=>"other",tR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",nR=JL,rR=QL,oR=XL,iR=JL,aR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},sR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},lR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",uR=JL,cR=ZL,dR=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},fR=(e,t)=>1==e?"one":"other",pR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},hR=JL,mR=JL,gR=JL,vR=QL,yR=(e,t)=>{const n=String(e).split(".")[0];return t?0==n?"zero":1==n?"one":2==n||3==n||4==n||5==n||6==n?"few":"other":0==e?"zero":1==e?"one":"other"},bR=eR,xR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",_R=eR,wR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},kR=JL,SR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},CR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},ER=JL,TR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},AR=JL,NR=JL,LR=JL,RR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},MR=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",OR=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},PR=ZL,zR=XL,IR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},DR=JL,jR=eR,FR=JL,BR=JL,$R=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},HR=JL,WR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},UR=ZL,KR=JL,GR=XL,VR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",YR=ZL,qR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},JR=JL,QR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},XR=JL,ZR=ZL,eM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},tM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},nM=ZL,rM=JL,oM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",iM=QL,aM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},sM=JL,lM=JL,uM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},cM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",dM=eR,fM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},pM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},hM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",mM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",gM=ZL,vM=eR,yM=eR,bM=eR,xM=ZL,_M=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),s=r.slice(-2);return t?"other":i&&1==a&&11!=s||o%10==1&&o%100!=11?"one":"other"},wM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},kM=tR,SM=eR,CM=eR,EM=JL,TM=JL,AM=eR,NM=eR,LM=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},RM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",MM=JL,OM=JL,PM=eR,zM=eR,IM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},DM=JL,jM=JL,FM=eR,BM=XL,$M=eR,HM=JL,WM=JL,UM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",KM=JL,GM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),s=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},VM=JL,YM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},qM=JL,JM=JL,QM=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},XM=eR,ZM=QL,eO=(e,t)=>t&&1==e?"one":"other",tO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},nO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},rO=JL,oO=QL,iO=JL,aO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":i&&1==a&&11!=s||1==l&&11!=u?"one":"other"},sO=JL,lO=JL,uO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},cO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",dO=(e,t)=>t&&1==e?"one":"other",fO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pO=eR,hO=JL,mO=tR,gO=JL,vO=JL,yO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},bO=ZL,xO=JL,_O=JL,wO=JL,kO=eR,SO=JL,CO=QL,EO=JL,TO=JL,AO=JL,NO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},LO=JL,RO=eR,MO=QL,OO=JL,PO=XL,zO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},IO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},DO=JL,jO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},FO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},BO=JL,$O=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},HO=JL,WO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},UO=JL,KO=eR,GO=JL,VO=tR,YO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},qO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},JO=JL,QO=JL,XO=tR,ZO=JL,eP=eR,tP=eR,nP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},rP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},oP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},iP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},aP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},sP=tR,lP=tR,uP=tR,cP=tR,dP=tR,fP=JL,pP=JL,hP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},mP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},gP=JL,vP=JL,yP=JL,bP=eR,xP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},_P=ZL,wP=JL,kP=JL,SP=JL,CP=JL,EP=eR,TP=QL,AP=JL,NP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},LP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},RP=JL,MP=eR,OP=eR,PP=JL,zP=JL,IP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},DP=JL,jP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=s?"few":"other":o&&1==l&&11!=u?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},FP=eR,BP=ZL,$P=JL,HP=JL,WP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},UP=(e,t)=>t&&1==e?"one":"other",KP=JL,GP=JL,VP=QL,YP=JL,qP=eR,JP=JL,QP=JL,XP=ZL,ZP=eR,ez=eR,tz=eR,nz=XL,rz={},oz=Array.prototype.slice,iz=function(e){return("0"+e.toString()).substr(-2)},az=function(e){var t=typeof e;return"function"===t||"object"===t},sz=function(e){return"function"===typeof e},lz=function(e){return null!=e},uz=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},cz=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},dz=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},fz=function(e){return!0===e||!1===e},pz=function(e){return null===e},hz=function(e,t,n){return void 0===n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},mz=function(e,t){return sz(e)?e(t):e},gz=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],cz(r)||dz(r)||fz(r)||uz(r)||pz(r)?e[n]=r:(null==e[n]&&(e[n]={}),gz(e[n],r)));return e},vz={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},yz={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},bz={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},xz={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},_z=[null,"kb","mb","gb","tb"],wz={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};rz.reset=function(){var e;for(e in wz)this[e]=wz[e]},rz.initializeOptions=function(){var e;for(e in wz)lz(this[e])||(this[e]=wz[e])},rz.initializeOptions(),rz.locales={},rz.locales.get=function(e){var t=this[e]||this[rz.locale]||this.default;return sz(t)&&(t=t(e)),!1===uz(t)&&(t=[t]),t},rz.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&rz.locale&&t.push(rz.locale),rz.fallbacks&&rz.defaultLocale&&t.push(rz.defaultLocale),t.forEach(function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),rz.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},rz.pluralization={},rz.pluralization.get=function(e){return this[e]||this[rz.locale]||this.default},rz.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},rz.currentLocale=function(){return this.locale||this.defaultLocale},rz.isSet=lz,rz.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(lz(t.defaultValue))return mz(t.defaultValue,e)},rz.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&az(n))for(;i.length;)if(r=i.shift(),lz(n[r])){o=n[r];break}return o},rz.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,s=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);s.length;)if(r=s.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],az(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&lz(n.defaultValue)&&(a=az(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},rz.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:vz.meridian},rz.prepareOptions=function(){for(var e,t=oz.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(lz(n[r])||(n[r]=e[r]));return n},rz.createTranslationOptions=function(e,t){var n=[{scope:e}];return lz(t.defaults)&&(n=n.concat(t.defaults)),lz(t.defaultValue)&&n.push({message:t.defaultValue}),n},rz.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some(function(t){if(lz(t.scope)?(o=t.scope,n=this.lookup(o,i)):lz(t.message)&&(n=mz(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):uz(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):az(n)&&lz(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},rz.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=lz(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},rz.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},rz.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,function(e,t,n){return t+" "+n.toLowerCase()})}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},rz.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},rz.nullPlaceholder=function(){return rz.missingPlaceholder.apply(rz,arguments)},rz.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),yz);var n,r,o=e<0,i=function(e,t){return hz("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),s=[],l=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)s.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=s.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},rz.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),bz),this.toNumber(e,t)},rz.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},rz.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},rz.strftime=function(e,t,n){n=this.lookup("date",n);var r=rz.meridian();if(n||(n={}),n=this.prepareOptions(n,vz),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),s=e.getMonth()+1,l=e.getHours(),u=l,c=l>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[s])).replace("%B",n.month_names[s])).replace("%d",iz(i))).replace("%e",i)).replace("%-d",i)).replace("%H",iz(l))).replace("%-H",l)).replace("%k",l)).replace("%I",iz(u))).replace("%-I",u)).replace("%l",u)).replace("%m",iz(s))).replace("%-m",s)).replace("%M",iz(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",iz(d))).replace("%-S",d)).replace("%w",o)).replace("%y",iz(a))).replace("%-y",iz(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},rz.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},rz.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),xz),this.toNumber(e,t)},rz.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+_z[a],t),n=this.t(o),r=i-Math.floor(i)===0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},rz.getFullScope=function(e,t){return t=t||{},uz(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},rz.extend=function(e,t){return void 0===e&&void 0===t?{}:gz(e,t)},rz.t=rz.translate.bind(rz),rz.l=rz.localize.bind(rz),rz.p=rz.pluralize.bind(rz);VL({},{DEFAULT_LANGUAGE:()=>Sz,DEFAULT_LANGUAGE_SHORT:()=>Cz,flattenParams:()=>Pz,flattenTranslationsJSON:()=>Az,format:()=>zz,formatWithKeys:()=>Iz,getLongLanguageDesc:()=>Oz,getShortLanguageDesc:()=>Mz,parseLangFromUrl:()=>Nz,resolveLocale:()=>Rz,updateLangAttribute:()=>Dz});var kz=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],Sz="en-US",Cz="en",Ez=["zh-cn","zh-tw","qps-ploc"],Tz=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Az=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),Tz(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=Tz(r)&&r.value;return o&&(t[n]=o),t},{}):{}),Nz=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},Lz=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(Ez.includes(e.toLocaleLowerCase()))return kz.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return kz.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},Rz=(...e)=>{for(const t of e){const e=Lz(t);if(e)return e.short}},Mz=e=>{const t=Lz(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${Cz}'`),Cz)},Oz=e=>{const t=Lz(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${Sz}'`),Sz)},Pz=e=>Array.isArray(e[0])?e[0]:e,zz=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e)},Iz=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),Dz=e=>{const t=Mz(e);document.documentElement.setAttribute("lang",t)},jz=class e{static configure(t,n=Sz){e.translations=t,e.language=Oz(n),e.languageShort=Mz(n),Dz(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=rz,rz.missingTranslation=e=>e,rz.defaultSeparator=null,rz.locale=e.language,rz.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];rz.pluralization[e.language]=e=>{try{const t=qL[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=Iz(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,{count:n,...r})}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};YL(jz,"translations",{}),YL(jz,"translationsPlurals",{}),YL(jz,"language"),YL(jz,"languageShort"),YL(jz,"onTranslationsChangeListeners",[]),YL(jz,"i18nProvider"),YL(jz,"get",(e,...t)=>{var n;const r=Pz(t);let o=null!=(n=jz.translations[e])?n:e;return r.length>0&&(o=zz(o,...r)),o});var Fz=jz;var Bz=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=Fz.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),Fz.get},$z=Fz;function Hz({defaultSelection:e}){const[t]=Cc();return D.useEffect(()=>{t.focus(()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}function Wz(e,t=!0){if(e)return!1;let n=Gi().getTextContent();return t&&(n=n.trim()),""===n}function Uz(e){return()=>function(e){if(!Wz(e,!1))return!1;const t=Gi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Xo(n))return!1;if(qo(n)){if(!ui(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Or(t[e]))return!1}}return!0}(e)}const Kz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Gz({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:m,role:g="textbox",spellCheck:v=!0,style:y,tabIndex:b,"data-testid":x,..._},w){const[k,S]=D.useState(e.isEditable()),C=D.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),E=D.useMemo(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(w,C),[C,w]);return Kz(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Lc.jsx("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===g?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":k?d:void 0,"aria-readonly":!k||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:k,"data-testid":x,id:m,ref:E,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const Vz=D.forwardRef(Gz);function Yz(e){return e.getEditorState().read(Uz(e.isComposing()))}const qz=D.forwardRef(Jz);function Jz(e,t){const{placeholder:n,...r}=e,[o]=Cc();return Lc.jsxs(Lc.Fragment,{children:[Lc.jsx(Vz,{editor:o,...r,ref:t}),null!=n&&Lc.jsx(Qz,{editor:o,content:n})]})}function Qz({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>Yz(e));return Kz(()=>{function t(){const t=Yz(e);n(t)}return t(),Gs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=D.useState(t.isEditable());if(D.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:Lc.jsx("div",{"aria-hidden":!0,children:i})}const Xz=D.createContext(null),Zz={didCatch:!1,error:null};class eI extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Zz}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Zz))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Zz))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=D.createElement(n,e);else{if(void 0===r)throw i;a=r}}return D.createElement(Xz.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function tI({children:e,onError:t}){return Lc.jsx(eI,{fallback:Lc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const nI={name:"@lexical/react/ReactProvider"};function rI(e){throw new Error(e)}const oI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function iI({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return oI(()=>e.registerDecoratorListener(e=>{ab.flushSync(()=>{r(e)})}),[e]),D.useEffect(()=>{r(e.getDecorators())},[e]),D.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Lc.jsx(t,{onError:t=>e._onError(t),children:Lc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(ab.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function aI({editor:e,ErrorBoundary:t}){return function(e){const t=fu.maybeFromEditor(e);if(t&&t.hasExtensionByName(nI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&rI(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Lc.jsx(iI,{editor:e,ErrorBoundary:t})}function sI(e){return e.getEditorState().read(Uz(e.isComposing()))}function lI(e){oI(()=>Gs(Sd(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,a,s]=t;e.update(()=>{const e=so();if(Wr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Or(l)&&r>=0&&o>=0&&(u=r,c=r+o,e.setTextNodeRange(l,u,l,c)),u===c&&""===i||(e.insertRawText(i),l=t.getNode()),Or(l)){u=a,c=a+s;const t=l.getTextContentSize();u=u>t?t:u,c=c>t?t:c,e.setTextNodeRange(l,u,l,c)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function uI({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Cc();return lI(r),Lc.jsxs(Lc.Fragment,{children:[e,Lc.jsx(cI,{content:t}),Lc.jsx(aI,{editor:r,ErrorBoundary:n})]})}function cI({content:e}){const[t]=Cc(),n=function(e){const[t,n]=D.useState(()=>sI(e));return oI(()=>{function t(){const t=sI(e);n(t)}return t(),Gs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Nd();return n?"function"==typeof e?e(r):e:null}const dI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),fI=D.forwardRef(dI),pI=(e,t)=>Lc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Lc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Lc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),hI=D.forwardRef(pI),mI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),gI=D.forwardRef(mI),vI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),yI=D.forwardRef(vI),bI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),xI=D.forwardRef(bI),_I=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M2.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 12H7v-1h9zM2.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 5H7V4h9z"})}),wI=D.forwardRef(_I),kI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),SI=D.forwardRef(kI),CI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M2.05 9q.372 0 .72.09.349.089.623.274.273.186.436.468t.163.66a1.38 1.38 0 0 1-.284.86 2.3 2.3 0 0 1-.304.333l-.174.155-.18.152-1.243 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.195-.235a.7.7 0 0 0 .122-.399.54.54 0 0 0-.182-.422.7.7 0 0 0-.486-.163.7.7 0 0 0-.52.204.83.83 0 0 0-.217.406l-.022.127L0 10.568l.031-.18q.06-.263.193-.48a1.8 1.8 0 0 1 .452-.492 2 2 0 0 1 .626-.31Q1.655 9 2.05 9M16 12H6v-1h10zM3 7H1.697V3.328l-1.022.72L0 3.208 1.807 2H3zm13-2H6V4h10z"})}),EI=D.forwardRef(CI),TI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),AI=D.forwardRef(TI),NI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{fillRule:"evenodd",d:"M12.483 4.4c0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9H3V1h6.466c1.666 0 3.017 1.522 3.017 3.4m-6.897 2h2.91a1.6 1.6 0 0 0 0-3.2h-2.91zm0 6.4h3.1a1.9 1.9 0 0 0 0-3.8h-3.1z",clipRule:"evenodd"})}),LI=D.forwardRef(NI),RI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),MI=D.forwardRef(RI),OI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),PI=D.forwardRef(OI),zI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),II=D.forwardRef(zI),DI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M7.041 14.855A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255z"})}),jI=D.forwardRef(DI),FI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),BI=D.forwardRef(FI),$I=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),HI=D.forwardRef($I);var WI,UI,KI={exports:{}},GI={};function VI(e){return VI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VI(e)}var YI=(UI||(UI=1,KI.exports=function(){if(WI)return GI;WI=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return GI.Fragment=n,GI.jsx=a,GI.jsxs=a,GI}()),KI.exports);const qI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,JI=[e=>{const t=qI.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function QI(){return YI.jsx(Ed,{matchers:JI})}const XI=()=>{const[e]=Cc(),t=Nd(),n=D.useCallback(n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read(()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)})},[t,e]);return D.useEffect(()=>Gs(e.registerMutationListener(gu,e=>{n(e)}),e.registerMutationListener(ku,e=>{n(e)}),e.registerCommand(Ct,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=so();let t;if(Wr(e)&&(t=e.focus.getNode().getParent()),Kr(e)&&(t=e.getNodes()[0]),Cu(t)||wu(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),ci)),[e,n]),null};function ZI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?tl(n)?r:o:tl(t)?r:o}const eD=new Set(["http:","https:","mailto:","sms:","tel:"]),tD=e=>{const t=e;return t.password="",t.username="",t};function nD(e){try{const t=new URL(e);return eD.has(t.protocol)?{url:tD(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const rD=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function oD(e){return"https://"===e||rD.test(e)}const iD=Zy(gw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),aD=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=D.useRef(null),[a,s]=D.useState(t);D.useEffect(()=>{s(t)},[t]);const l=D.useCallback(()=>{n(a),window.open(nD(a).url,"_blank"),r()},[a,r,n]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=D.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return YI.jsx(O_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>YI.jsx(_w,{...e,children:YI.jsx(Tb,{className:"tekPopperMenu",children:YI.jsxs(iD,{direction:"row",children:[YI.jsx(Y_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),YI.jsx(Jb,{onClick:l,children:YI.jsx(nk,{})}),YI.jsx(Jb,{onClick:u,children:YI.jsx(ok,{})})]})})})})},sD=()=>{const[e]=Cc(),t=Nd(),[n,r]=D.useState(null),[o,i]=D.useState(""),a=D.useRef(!1),s=D.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=so();if(Wr(t)){const n=ZI(t),o=n.getParent();if(Cu(o)||Cu(n))return r(null),i(""),!1;let a;if(wu(o)&&(a=o),wu(n)&&(a=n),wu(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=D.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(Eu,nD(t))},{onUpdate:()=>{r(null)}})},[e]),u=D.useCallback(()=>{r(null)},[]);return D.useEffect(()=>Gs(e.registerCommand(kt,()=>s(),1),e.registerCommand(Ct,()=>s(),1)),[e,s]),t?YI.jsx(aD,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function lD(){return YI.jsx(ik,{validateUrl:oD})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const uD=({children:e})=>YI.jsx(tb,{theme:Nk(),children:e}),cD={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"},image:"tek__image"},nodes:[md,fd,dc,ac,gu,ku],onError:e=>{console.log(e)}},dD=({children:e,initialConfig:t,flags:n})=>YI.jsx(uD,{children:YI.jsx("div",{className:"tek__editor__Wrapper",children:YI.jsx(Pc,{initialConfig:t||cD,children:YI.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,YI.jsx(Bc,{}),YI.jsx($c,{}),YI.jsx(lD,{}),YI.jsx(QI,{}),YI.jsx(sD,{}),YI.jsx(XI,{}),YI.jsx(Fc,{})]})})})});let fD=class e extends Yo{__hasBorders;static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const pD=e=>new fD(e),hD=e=>e instanceof fD;let mD=class e extends Yo{__needsUpdate;__hasBorders;__width;static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch{}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function gD(e){return e instanceof mD}let vD=class e extends Yo{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function yD(e){return e instanceof vD}const bD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),hD(t))return t;return null},xD=e=>{let t=e;for(;null!==t;){if(gD(t))return t;t=t?.getParent()}return null},_D=(e,t)=>{const n=xD(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},wD=e=>{const t=e?.getChildAtIndex(2);return t},kD=e=>{const t=e.getParent();if(yD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},SD=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,CD=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},ED=e=>e?e.getChildren().filter(e=>yD(e)):[],TD=e=>{let t=!1;return ED(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(li()),t=!0})}),t},AD=e=>{const t=so();if(Wr(t)||Kr(t)){const n=t.getNodes().filter(e=>hD(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>gD(e)),o=xD(n[0]),i=ED(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Wr(t)){const e=t.focus.getNode();if(gD(e))return TD(e)}return n.forEach(e=>{e.clear(),e.append(li())}),(()=>{const e=so();let t=!1;if(Wr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=xD(n);!o&&gD(r)&&(o=r),gD(o)&&(t=TD(o))}return t})()}if(Wr(t)){const e=t.focus.getNode();if(gD(e))return TD(e)}}return!1},ND=e=>{if(e){const t=xD(e);if(gD(t)){const n=e.getParent(),r=ED(t).findIndex(e=>e===n),o=n?.getChildren().findIndex(t=>t===e);return{i:r,j:o,tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},LD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),hD(t))return t;return null},RD=e=>{const t=[];return ED(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},MD=(e,t)=>{RD(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},OD=wt("UPDATE_COL_WIDTHS_COMMAND"),PD=wt("BEGIN_COL_RESIZE"),zD=wt("END_COL_RESIZE"),ID=wt("INSERT_TEK_TABLE_COMMAND"),DD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return YI.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},jD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},FD=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,BD=({nodeKey:e,colWidths:t})=>{const[n]=Cc(),r=Nd(),[o,i]=D.useState(null),a=D.useRef(null),s=D.useRef(null),l=D.useRef(null),u=D.useRef(null),c=D.useCallback(t=>{const n=Bi(e);if(n){const e=n.getParent();if(gD(e)){const n=wD(e);if("TekRowNode"===n?.getType()){const e=n.getChildren(),r=[];let o=0;e.forEach((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})}),i(r)}}}},[e]),d=D.useCallback(e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:s,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=CD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=CD(e,r),s=a.current.nxtColWidth-p,d=CD(s,r);if(s<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const s=a/t,l=Math.min(100*s,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=CD(e,d),s=CD(o,d);r.style.width=!n||p>0?a:s,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=a)}}},[]),f=D.useCallback(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",l.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(CD(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach((t,n)=>{t.setAttribute("width",e[n])}),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(zD,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Bi(e),r=_D(t,n),a=t?.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),s=[];t.forEach(e=>{s.push(e.getAttribute("width")||"0")}),a.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(s[t]),n.startX=l,n});i(e)}n.dispatchCommand(OD,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=D.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Bi(t),o=_D(r,n);if(hD(r)){const t=kD(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],s=r.length>t+1?r[t+1]:null,c=SD(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=SD(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=jD("tek__leftResizerIndicator","leftGripper");r.innerText=FD(e);let o=null;return t?(o=jD("tek__rightResizerIndicator","rightGripper"),o.innerText=FD(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=y.left,u.current=y.right,d.appendChild(y.left),y.right&&d.appendChild(y.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:s,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(PD,void 0)}}})},[n,d,f]);return D.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),YI.jsx(YI.Fragment,{children:o&&r?o.map(e=>YI.jsx(DD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},$D="TEK_TABLE_RESIZE_NODE";let HD=class e extends Qo{__colWidths;static getType(){return $D}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:$D,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return YI.jsx(BD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const WD=e=>e instanceof HD,UD=({nodeKey:e,colWidths:t})=>{const[n]=Cc(),[r,o]=D.useState(t);return D.useEffect(()=>{n.getEditorState().read(()=>{const t=Bi(e),n=t?.getParent();if(gD(n)){const e=n.getResizeNode();if(WD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),YI.jsx(YI.Fragment,{children:r.map((t,n)=>YI.jsx("col",{span:1,width:t},`${e}.${n}`))})};class KD extends Qo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new KD(e.__colWidths,e.__key)}static importJSON(e){return new KD(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return YI.jsx(UD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class GD extends Qo{__formatStyle;constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const VD=[mD,fD,vD,KD,HD],YD=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=t?.getChildAtIndex(0),i=t?.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),t?.markNeedsUpdate()},qD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=bD(t);if(n){const e=kD(n),t=xD(n),r=ED(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),YD(o,t)}}},JD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=bD(t),r=xD(n);if(r&&3===r.getChildren().length)return Yi(null),void r.remove();if(n){const{row:e}=ND(n);Yi(null),e?.remove()}}},QD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t),r=wD(n);if(yD(r)&&n){const e=r.getChildren().length,t=new vD;for(let r=0;r<e;r++){const e=pD(n?.__hasBorders);e.append(li()),t.append(e)}n?.append(t)}}},XD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);if(gD(n)){const e=ED(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=pD(n.__hasBorders);o.append(li()),e[r].append(o),t=o}return YD(r,n),t}}return null},ZD=Zy(Jb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),ej=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Cc(),[o,i]=D.useState(null),a=Bz(),s=Boolean(o),l=D.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=D.useCallback(()=>{i(null)},[]),d=D.useCallback(e=>{l(e,QD,t)},[l,t]),f=D.useCallback(e=>{l(e,XD,t)},[l,t]),p=D.useCallback(t=>{l(t,JD,e)},[l,e]),h=D.useCallback(t=>{l(t,qD,e)},[l,e]),m=D.useCallback(()=>{r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);gD(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);n&&(n.toggleBorders(),RD(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>Gs(r.registerCommand(kt,()=>(i(null),!1),4)),[r]),YI.jsx(uw,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(ZD,{size:"small",onClick:u,children:YI.jsx(KL,{height:12})}),YI.jsx(O_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:YI.jsx(Tb,{id:"tekTableMenu",className:"tekPopperMenu",children:YI.jsxs(jw,{dense:!0,children:[YI.jsx(Ww,{onClick:g,children:a("ToggleBorders")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:d,children:a("AddNewRow")}),YI.jsx(Ww,{onClick:f,children:a("AddNewColumn")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:p,children:a("DeleteRow")}),YI.jsx(Ww,{onClick:h,children:a("DeleteCol")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:m,children:a("DeleteTable")})]})})})]})})},tj=()=>{const[e]=Cc(),t=Nd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(uh),l=D.useRef(null),u=D.useCallback(()=>{o||e.update(()=>{const t=so();if(Wr(t)){const n=bD(t.anchor.getNode());if(hD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);D.useEffect(()=>{const e=e=>{0!==e.buttons?null===l.current&&(l.current=setTimeout(()=>{i(!0),r(null)},300)):(i(!1),clearTimeout(l.current),l.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[]),D.useEffect(()=>Gs(e.registerCommand(kt,()=>(u(),!1),ci),e.registerCommand(PD,()=>(r(null),!0),4),e.registerCommand(zD,()=>(u(),!0),4)),[e,u]),D.useEffect(()=>{r(null)},[t]);const c=D.useCallback(()=>{r(null)},[]),d=D.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=D.useCallback(()=>{clearTimeout(l.current)},[]);return YI.jsx(O_,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:YI.jsx(ej,{onDeleteAction:c,onAction:d,onClick:f})})},nj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Bi(n),r=e?.getParent();ei(r)&&null!==e&&t.push(e)}if(t.length>0){const e=li();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},rj=()=>{const[e]=Cc(),t=Nd();return D.useEffect(()=>Gs(e.registerMutationListener(fD,t=>{e.update(()=>{nj(t)})}),e.registerMutationListener(vD,t=>{e.update(()=>{nj(t)})}),e.registerMutationListener(mD,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Bi(e);if(gD(t)&&!t.isValid()){const e=li();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(ID,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new mD(!0,"100%"),n=new KD(e),r=new HD(e),o=[];for(let t=0;t<2;t++){const t=new vD;for(let n=0;n<e.length;n++){const e=pD(!0),n=li();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();yl(e)}),!0),ci),e.registerCommand(OD,({colWidths:e,nodeKey:t})=>{const n=Bi(t);if(WD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof KD})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Yt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=xD(t),r=LD(t);if(gD(n)){const e=li();e.append(Mr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=xD(t);if(gD(n)){const e=li();e.append(Mr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Jt,e=>AD(e),4),e.registerCommand(Xt,e=>AD(e),4),e.registerCommand(Zt,e=>{const t=so();if(Wr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),hD(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const s=o.getChildAtIndex(n+2+a);if(yD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(ND(o),!e.shiftKey),!0}return!1},ci),e.registerCommand(cn,e=>{const t=e?.target,n=so();if(t.classList.contains("tek__table")&&Wr(n)&&gD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Wr(n)){const t=n.getNodes().some(e=>hD(e)),r=n.getNodes().some(e=>gD(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),D.useEffect(()=>e.registerCommand(kt,()=>(t&&e.update(()=>{(e=>{const t=so(),n=[];if(da(mD).forEach(e=>{const t=RD(e);n.push(...t)}),Wr(t)){t.getNodes().filter(e=>gD(e)).forEach(t=>{MD(t,e)});const n=t.focus.getNode();if(gD(n))return void MD(n,e)}if(Wr(t)||Kr(t)){const r=new Set(t.getNodes().map(e=>LD(e)));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?o?.classList.add("tek__tekCellHighlight"):o?.classList.remove("tek__tekCellHighlight")}}})(e)},{tag:"history-merge"}),!1),4),[e,t]),D.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];da(mD).forEach(e=>{const n=RD(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},oj=()=>YI.jsxs(YI.Fragment,{children:[YI.jsx(rj,{}),YI.jsx(tj,{})]}),ij=()=>{const e=Nd(),t=Bz();return e?YI.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):YI.jsx("div",{className:"tek__editor__logo",children:YI.jsx(fI,{height:32})})},aj=({showPlaceholder:e})=>YI.jsxs("div",{style:{position:"relative"},children:[YI.jsx(Hz,{}),YI.jsx(uI,{contentEditable:YI.jsx(qz,{className:"tek__editor__input"}),placeholder:!1!==e?YI.jsx(ij,{}):null,ErrorBoundary:tI})]}),sj=Zy(gw)(({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}})),lj=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],uj="#404040",cj="16px",dj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:lj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),fj=({children:e})=>{const t=(()=>{const[e]=Cc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(lj[0]),[d,f]=D.useState(cj),[p,h]=D.useState(uj),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback(()=>{const t=so();if(Wr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:qa(r,e=>{const t=e.getParent();return null!==t&&ka(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(vc(i)){const e=gl(r,dc),t=e?e.getListType():i.getListType();l(t)}else{const e=xd(i)?i.getTag():i.getType();l(e)}if(vc(i)||xd(i)){const e=gl(i,ai);e&&(u=e)}const d=ZI(t);if(wu(d.getParent())||wu(d)?y(!0):y(!1),ui(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=fl(t,"font-family",lj[0]),m=fl(t,"font-size",cj);c(""===p?lj[0]:p),f(""!==m&&m?m:cj),h(fl(t,"color",uj))}else Kr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof GD}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",uj));const t=e.getTextFormatStyle("fontSize",cj),r=e.getTextFormatStyle("fontFamily",lj[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(cc(e)){const t=gl(e,dc);return t?t.getListType():"bullet"}return xd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return D.useEffect(()=>Gs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(kt,()=>(e.getEditorState().read(()=>{b()}),!1),ci)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return YI.jsx(dj.Provider,{value:t,children:e})},pj=({children:e})=>YI.jsx(fj,{children:YI.jsx(sj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),hj=({anchorEl:e,children:t})=>{const n=Boolean(e);return YI.jsx(O_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>YI.jsx(_w,{...e,children:YI.jsx(Tb,{className:"tekPopperMenu",children:t})})})},mj=Zy(nx)({fontSize:12,textOverflow:"ellipsis"}),gj=({startIcon:e,value:t,onClick:n,compact:r})=>YI.jsx(ek,{title:t,PopperProps:{disablePortal:!0},children:YI.jsx(sw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:YI.jsx(xI,{height:12}),children:r?e:YI.jsx(mj,{children:t})})}),vj=Zy(Ww,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),yj=[{text:"AlignLeft",align:"left",icon:()=>YI.jsx(gI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>YI.jsx(hI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>YI.jsx(yI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],bj=({compact:e=!1})=>{const[t]=Cc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(dj),i=Bz(),a=D.useMemo(()=>yj.find(e=>e.align===o.align)||yj[0],[o.align]),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=D.useCallback(()=>{r(null)},[]),u=D.useCallback(e=>{r(null),t.dispatchCommand(on,e),t.focus()},[t]);return YI.jsx(uw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),YI.jsx(hj,{anchorEl:n,children:YI.jsx(jw,{dense:!0,children:yj.map(e=>YI.jsxs(vj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[YI.jsx(Rw,{children:e.icon()}),YI.jsx(mj,{children:i(e.text)})]},e.align))})})]})})},xj=({text:e,icon:t})=>YI.jsxs(YI.Fragment,{children:[YI.jsx(Rw,{children:t}),YI.jsx(mj,{children:e})]}),_j=({text:e,icon:t})=>YI.jsxs(YI.Fragment,{children:[YI.jsx(Rw,{children:YI.jsx(mj,{fontWeight:"bold",children:t})}),YI.jsx(mj,{children:e})]}),wj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],kj=(e,t,n)=>({icon:YI.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),Sj=({compact:e=!1})=>{const[t]=Cc(),{blockFormat:n}=D.useContext(dj),[r,o]=D.useState(null),i=Bz(),a=D.useMemo(()=>{let e={icon:YI.jsx(AI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=kj("Heading1","H1",i)),"h2"===n.blockType&&(e=kj("Heading2","H2",i)),"h3"===n.blockType&&(e=kj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=YI.jsx(SI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=YI.jsx(wI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=YI.jsx(EI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=D.useCallback(()=>{o(null)},[]),l=D.useCallback(e=>{t.update(()=>{const n=so();Wr(n)?(ol(n,{"font-size":null}),function(e,t,n=il){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=ro(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=qa(e.getNode(),Ia),a=qa(t.getNode(),Ia);qo(n)&&o.set(n.getKey(),n),qo(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(qo(t)&&Ia(t))o.set(t.getKey(),t);else if(null===r){const e=qa(t,Ia);qo(e)&&o.set(e.getKey(),e)}for(const[e,r]of o){const o=t();n(r,o),r.replace(o,!0),i&&(e===i.anchor.key&&i.anchor.set(o.getKey(),i.anchor.offset,i.anchor.type),e===i.focus.key&&i.focus.set(o.getKey(),i.focus.offset,i.focus.type))}i&&e.is(so())&&Yi(i)}(n,e)):Kr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=D.useCallback((e,n)=>{o(null),t.update(()=>{const r=so();Wr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=D.useCallback(e=>{o(null),l(()=>bd(e))},[l]),d=D.useCallback(()=>{o(null),l(()=>li())},[l]),f=D.useCallback(()=>{o(null),l(()=>pd())},[l]);return YI.jsx(uw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),YI.jsx(hj,{anchorEl:r,children:YI.jsxs(jw,{dense:!0,children:[YI.jsx(Ww,{dense:!0,onClick:d,children:YI.jsx(xj,{text:i("Paragraph"),icon:YI.jsx(AI,{height:12})})}),YI.jsx(Ww,{dense:!0,onClick:f,children:YI.jsx(xj,{text:i("Quote"),icon:YI.jsx(SI,{height:12})})}),wj.map(e=>YI.jsx(Ww,{dense:!0,onClick:()=>{c(e.tag)},children:YI.jsx(_j,{text:i(e.text),icon:e.icon})},e.text)),YI.jsx(mw,{}),YI.jsx(Ww,{dense:!0,onClick:()=>{u("bullet",bc)},children:YI.jsx(xj,{text:i("UnorderedList"),icon:YI.jsx(wI,{height:12})})}),YI.jsx(Ww,{dense:!0,onClick:()=>{u("number",xc)},children:YI.jsx(xj,{text:i("OrderedList"),icon:YI.jsx(EI,{height:12})})})]})})]})})},Cj=Zy(sw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0})),Ej=(e,t)=>{const n=n=>{const r=Bz();return YI.jsx(ek,{title:r(t),PopperProps:{disablePortal:!0},children:YI.jsx("div",{children:YI.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},Tj=({format:e,icon:t,...n})=>{const r=D.useContext(dj),[o]=Cc(),i=D.useCallback(()=>{o.dispatchCommand(jt,e)},[o,e]);return YI.jsx(Cj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},Aj=Ej(Tj,"Bold"),Nj=()=>YI.jsx(Aj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:YI.jsx(LI,{height:12})}),Lj=wt("APPLY_TEXT_FORMAT"),Rj=wt("CLEAR_TEXT_FORMAT"),Mj=Ej(Cj,"ClearFormat"),Oj=()=>{const[e]=Cc(),t=D.useCallback(()=>{e.update(()=>{const t=so();if(Wr(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach((t,o)=>{try{if(Or(t)){let i=t;0===o&&0!==e.offset&&(i=i.splitText(e.offset)[1]||i),o===r.length-1&&(i=i.splitText(n.offset)[0]||i),""!==i.__style&&i.setStyle(""),0!==i.__format&&(i.setFormat(0),vl(i).setFormat(""));const a=i.getParent();(xd(a)||hd(a))&&a.replace(li(),!0)}else(xd(t)||hd(t))&&t.replace(li(),!0)}catch{}})}e.dispatchCommand(Rj,void 0)})},[e]);return YI.jsx(Mj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:YI.jsx(MI,{height:12})})};var Pj,zj={},Ij=function(){if(Pj)return zj;Pj=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==VI(o=function(e){if("object"!=VI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},zj.Color=u,zj}();const Dj=Zy(gw)(({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"})),jj=Zy(Q_)(({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"})),Fj=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=Iy(),a=D.useCallback(e=>{o(e),n(e)},[n]);return YI.jsx(Dj,{children:e.map(e=>YI.jsx(jj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?YI.jsx(ok,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function Bj(e,t,n){return Math.max(t,Math.min(n,e))}const $j=(e,t)=>{const n=new Ij.Color(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},Hj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Bj(e.clientX-n,0,o)/o*100,s=100-Bj(e.clientY-r,0,i)/i*100,l=new Ij.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Wj=Zy(gw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Uj=Zy(Q_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Kj=Zy(Q_)(({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"})),Gj=Zy(Q_)({width:"16px",height:"16px",borderRadius:"2px"}),Vj=Zy(gw)({flexDirection:"row",alignItems:"center"}),Yj=Zy(Q_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),qj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),a=D.useRef(n),[s,l]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=D.useState({left:"0",top:"0"});D.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const g=D.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=$j(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new Ij.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Hj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ij.Color(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)},[e]),b=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Bj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new Ij.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ij.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=D.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=D.useCallback(t=>{if(c(t.target.value),!new Ij.Color(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=$j(a.current,d.current);m(e)}},[e]);return YI.jsxs(Wj,{children:[s?YI.jsx(Fj,{palette:r,color:o,onColorChange:x}):YI.jsxs(YI.Fragment,{children:[YI.jsx(Uj,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,s=Hj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new Ij.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:YI.jsx(Yj,{ref:f,style:{...h,backgroundColor:o}})}),YI.jsx(Kj,{onClick:b})]}),YI.jsxs(Vj,{children:[YI.jsx(Gj,{style:{backgroundColor:o}}),YI.jsx(Y_,{style:{flex:1},value:u,onChange:_}),YI.jsx(Jb,{onClick:()=>{l(!s)},children:YI.jsx(PI,{height:12})}),YI.jsx(Jb,{onClick:t,children:YI.jsx(ok,{height:12})})]})]})},Jj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Qj=Ej(sw,"Color"),Xj=({colorPalette:e=Jj})=>{const[t]=Cc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(dj),i=D.useCallback((e,n)=>{t.update(()=>{const t=so();Wr(t)&&ol(t,{color:e})},n),t.dispatchCommand(Lj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return YI.jsx(uw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(Qj,{variant:"text",size:"small",endIcon:YI.jsx(xI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:YI.jsx(Q_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),YI.jsx(hj,{anchorEl:n,children:YI.jsx(qj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};Ej(Cj,"Export");const Zj=({compact:e=!1,fonts:t=lj})=>{const[n]=Cc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(dj),a=D.useMemo(()=>t,[t]),s=D.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=so();Wr(e)&&ol(e,{"font-family":t||lj[0]}),n.dispatchCommand(Lj,{styleKey:"fontFamily",styleValue:t||lj[0]}),n.focus()})},[n]);return YI.jsx(uw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:YI.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),YI.jsx(hj,{anchorEl:r,children:YI.jsx(jw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>YI.jsx(vj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:YI.jsx(mj,{children:e})},e))})})]})})},eF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],tF=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,nF=e=>parseInt(e,10),rF=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=D.useCallback(()=>{const e=nF(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return YI.jsxs(gw,{direction:"row",children:[YI.jsx(Y_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),YI.jsx(Jb,{disabled:!nF(n),onClick:i,children:YI.jsx(ok,{height:12})})]})},oF=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Cc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(dj),a=tF(i.fontSize,t),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=D.useCallback(()=>{o(null)},[]),u=D.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=so();Wr(t)&&ol(t,{"font-size":e}),n.dispatchCommand(Lj,{styleKey:"fontSize",styleValue:e})})},[n]),c=D.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=D.useCallback(e=>{u(e)},[u]);return YI.jsx(uw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{startIcon:e?YI.jsx(mj,{children:a}):void 0,value:a,onClick:s,compact:e}),YI.jsxs(hj,{anchorEl:r,children:[YI.jsx(rF,{fontSize:a,onSelected:d}),YI.jsx(mw,{}),YI.jsx(jw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:eF.map(e=>YI.jsx(Ww,{"data-font-size":e,onClick:c,children:YI.jsx(mj,{children:tF(e,t)})},e))})]})]})})},iF=Ej(Cj,"InsertTable"),aF=()=>{const[e]=Cc(),t=D.useCallback(()=>{e.dispatchCommand(ID,void 0)},[e]);return YI.jsx(iF,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:YI.jsx(II,{height:12})})},sF=Ej(Tj,"Italic"),lF=()=>YI.jsx(sF,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:YI.jsx(jI,{height:12})}),uF=Ej(Cj,"InsertHyperlink"),cF=()=>{const[e]=Cc(),{blockFormat:t}=D.useContext(dj),n=D.useCallback(()=>{t.isLink?e.dispatchCommand(Eu,null):e.dispatchCommand(Eu,nD("https://"))},[e,t.isLink]);return YI.jsx(uF,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:YI.jsx(BI,{height:12})})};Ej(Cj,"Toggle");const dF=Ej(Tj,"Underline"),fF=()=>YI.jsx(dF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:YI.jsx(HI,{height:12})}),pF=()=>YI.jsx(mw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var hF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},mF={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"},InsertTable:{value:"Insert table",comment:"Label for toolbar menu option to insert a table. (tew 260205)"},InsertImage:{value:"Insert image",comment:"Label for toolbar menu option to insert an image. (tew 260205)"}},gF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},vF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},yF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},bF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},xF={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},_F={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},wF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},kF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},SF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},CF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},EF={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const TF={de:hF,es:gF,en:mF,fr:vF,it:yF,ja:bF,ko:xF,nl:_F,pl:wF,pt:kF,ru:SF,sv:CF,tr:EF,"de-de":hF,"es-es":gF,"en-us":mF,"fr-fr":vF,"it-it":yF,"ja-jp":bF,"ko-kr":xF,"nl-nl":_F,"pl-pl":wF,"pt-br":kF,"ru-ru":SF,"sv-se":CF,"tr-tr":EF,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function AF(e,t){return e.getEditorState().read(()=>{const e=Bi(t);return null!==e&&e.isSelected()})}function NF(e){const[t]=Cc(),[n,r]=D.useState(()=>AF(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(AF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,D.useCallback(n=>{t.update(()=>{let t=so();Kr(t)||(t=oo(),Yi(t)),Kr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),D.useCallback(()=>{t.update(()=>{const e=so();Kr(e)&&e.clear()})},[t])]}var LF,RF={};var MF=function(){if(LF)return RF;LF=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},RF.Color=u,RF}();async function OF(e,t){await async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,e=>{const{qHyperCubeDef:n}=e;if(n){const e=n.qMeasures?.filter(e=>{const n=t?.find(t=>t===e?.qDef?.cId);return!n});n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}})}function PF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function zF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var IF,DF;var jF=function(){if(DF)return IF;DF=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},IF=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},IF}();let FF=[];const BF=new jF.EventEmitter;BF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==FF.indexOf(t)},BF.setSelected=e=>{FF!==e&&(FF=e,BF.emit("change"))};function $F({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Cc(),s=Nd(),[l,u,c]=NF(n),d=D.useRef(null),[f,p]=D.useState(t);D.useEffect(()=>{p(t)},[t]);const h=D.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),m=D.useMemo(()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){const t=n.qMeasureInfo?.findIndex(t=>t.cId===e);if(void 0!==t&&-1!==t){const e=n?.qDataPages?.[0]?.qMatrix?.[0][t];if(1===e?.qAttrExps?.qValues?.length){const t=e.qAttrExps.qValues[0]?.qText;if(t){const n=new MF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>Gs(a.registerCommand(jt,e=>(a.update(()=>{const t=e,r=so();if(Wr(r)&&l){if(zF(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p(t=>({...t,...e}))}}else if(l&&Kr(r)&&zF(n,r)&&d.current){const e=PF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),a.registerCommand(Lj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&l){const t=so();if(zF(n,t)){const t=PF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),ci),a.registerCommand(Rj,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=so();if(zF(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}}),!1),ci),a.registerCommand(kt,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=so(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),BF.setSelected(e)}),!1),1)),[a,u,c,l,n,m]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&BF.setSelected([]))},[s,c,i]),D.useEffect(()=>{a.update(()=>{!function(e,t){const n=Bi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const g=D.useCallback(e=>{if(s){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update(()=>{const e=so();if(Kr(e)){const t=Bi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Lc.jsx("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e,children:m.value})}const HF="qlik.expression.node";class WF extends GD{__expressionId;static getType(){return HF}static clone(e){return new WF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new WF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:HF,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return Lc.jsx($F,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function UF(e){return e instanceof WF}const KF="ImageNode",GF=wt("INSERT_IMAGE_COMMAND"),VF=()=>{const e={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};return e.id()},YF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===KF)r.id||(r.id=VF()),t.add(r.id),r.tempUrlDef&&(n.add({id:r.id,url:{qStaticContentUrlDef:{qUrl:r.tempUrlDef}}}),delete r.tempUrl,delete r.tempUrlDef);else if("children"in r&&Array.isArray(r.children))for(const e of r.children)YF(e,t,n);return{imageIds:t,newPropertyImages:n}},qF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function JF(e,t,n){try{const r=await t.getProperties();if(r.text=JSON.stringify(e),n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const{images:t,jsonData:n}=((e,t)=>{const n=e,r=t.images||[];let o=new Set;if(n.root){const e=YF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],a=new Set;return r.forEach(e=>{o.has(e.id)&&!a.has(e.id)&&(a.add(e.id),i.push(e))}),{images:i,jsonData:n}})(e,r);r.images=t,r.text=JSON.stringify(n)}await t.setProperties(r)}catch(e){console.error(e)}}function QF(){const[e]=Cc(),t=Nd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&JF(e.getEditorState().toJSON(),r,i)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return o?.on("saveDocument",t),o?.on("reloadData",n),()=>{o?.removeListener("saveDocument",t),o?.removeListener("reloadData",n)}},[o,r]),D.useEffect(()=>{e.setEditable(n)},[n]),D.useEffect(()=>{t&&e.focus()},[t,e]),null}class XF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Bi(e);if(UF(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex(e=>n.getExpressionId()===e);-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function ZF(){const{layout:e,emitter:t,interactionState:n}=D.useContext(B),[r]=Cc(),o=D.useRef(new XF),i=Nd(),a=n?.edit;return D.useEffect(()=>{const e=r.registerMutationListener(WF,e=>{r.getEditorState().read(()=>{for(const[t,n]of e)o.current.update(t,n)})});return()=>{e()}},[r]),D.useEffect(()=>{e&&r.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=da(WF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=so(),{cId:t}=n[n.length-1],r=new WF(t,{}),o=Mr(" "),i=Mr("");Wr(e)?e.insertNodes([i,r,o]):yl(r)}}})},[e,r]),D.useEffect(()=>r.registerCommand($t,e=>("Backspace"===e.key&&r.update(()=>{const e=so();Kr(e)&&e.getNodes().forEach(e=>{UF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[r]),D.useEffect(()=>{if(!i&&a){const e=o.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[i,a,t]),null}const eB=/"/g;function tB(){const{model:e,emitter:t}=D.useContext(B),[n]=Cc(),r=D.useRef(new Map);return D.useEffect(()=>{const o=n.registerMutationListener(kr,e=>{e.forEach((e,t)=>{if("destroyed"===e)r.current.delete(t);else{const e=n.getElementByKey(t)?.style.fontFamily;e&&r.current.set(t,e)}})});async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map(e=>e.replace(eB,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function nB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rB,oB="top",iB="top-right",aB="right",sB="bottom-right",lB="bottom",uB="bottom-left",cB="left",dB="top-left";nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB={},"equal-equal",[oB,lB]),"equal-higher",[lB,sB]),"equal-lower",[oB,iB]),"equal-void",[oB,lB]),"higher-equal",[cB,uB,oB,iB]),"higher-higher-acute",[lB,uB,cB,iB]),"higher-higher-obtuse",[lB,oB]),"higher-lower-negative",[oB,iB,aB]),"higher-lower-positive",[lB,uB,cB]),"higher-void",[oB]),nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB,"lower-equal",[oB]),"lower-higher-negative",[oB,dB]),"lower-higher-positive",[sB]),"lower-lower-acute",[oB,dB,cB,iB,aB]),"lower-lower-obtuse",[oB,lB]),"lower-void",[oB]),"void-equal",[oB]),"void-higher",[oB,lB]),"void-lower",[oB,lB,cB]),"void-void",[oB]),nB(rB,"unclassified",[oB,lB,aB,cB,iB,sB,uB,dB]);var fB,pB,hB=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],mB=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var gB=function(){if(pB)return fB;pB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return fB=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},fB}();function vB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(gB);var xB=1/.7,_B="\\s*([+-]?\\d+)\\s*",wB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SB=/^#([0-9a-f]{3,8})$/,CB=new RegExp(`^rgb\\(${_B},${_B},${_B}\\)$`),EB=new RegExp(`^rgb\\(${kB},${kB},${kB}\\)$`),TB=new RegExp(`^rgba\\(${_B},${_B},${_B},${wB}\\)$`),AB=new RegExp(`^rgba\\(${kB},${kB},${kB},${wB}\\)$`),NB=new RegExp(`^hsl\\(${wB},${kB},${kB}\\)$`),LB=new RegExp(`^hsla\\(${wB},${kB},${kB},${wB}\\)$`),RB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function MB(){return this.rgb().formatHex()}function OB(){return this.rgb().formatRgb()}function PB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zB(t):3===n?new FB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?IB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?IB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=CB.exec(e))?new FB(t[1],t[2],t[3],1):(t=EB.exec(e))?new FB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TB.exec(e))?IB(t[1],t[2],t[3],t[4]):(t=AB.exec(e))?IB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NB.exec(e))?KB(t[1],t[2]/100,t[3]/100,1):(t=LB.exec(e))?KB(t[1],t[2]/100,t[3]/100,t[4]):RB.hasOwnProperty(e)?zB(RB[e]):"transparent"===e?new FB(NaN,NaN,NaN,0):null}function zB(e){return new FB(e>>16&255,e>>8&255,255&e,1)}function IB(e,t,n,r){return r<=0&&(e=t=n=NaN),new FB(e,t,n,r)}function DB(e){return e instanceof bB||(e=PB(e)),e?new FB((e=e.rgb()).r,e.g,e.b,e.opacity):new FB}function jB(e,t,n,r){return 1===arguments.length?DB(e):new FB(e,t,n,null==r?1:r)}function FB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function BB(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}`}function $B(){const e=HB(this.opacity);return`${1===e?"rgb(":"rgba("}${WB(this.r)}, ${WB(this.g)}, ${WB(this.b)}${1===e?")":`, ${e})`}`}function HB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function WB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UB(e){return((e=WB(e))<16?"0":"")+e.toString(16)}function KB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new VB(e,t,n,r)}function GB(e){if(e instanceof VB)return new VB(e.h,e.s,e.l,e.opacity);if(e instanceof bB||(e=PB(e)),!e)return new VB;if(e instanceof VB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new VB(a,s,l,e.opacity)}function VB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function YB(e){return(e=(e||0)%360)<0?e+360:e}function qB(e){return Math.max(0,Math.min(1,e||0))}function JB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vB(bB,PB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MB,formatHex:MB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return GB(this).formatHsl()},formatRgb:OB,toString:OB}),vB(FB,jB,yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new FB(WB(this.r),WB(this.g),WB(this.b),HB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BB,formatHex:BB,formatHex8:function(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}${UB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$B,toString:$B})),vB(VB,function(e,t,n,r){return 1===arguments.length?GB(e):new VB(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new VB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new VB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new FB(JB(e>=240?e-240:e+120,o,r),JB(e,o,r),JB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new VB(YB(this.h),qB(this.s),qB(this.l),HB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HB(this.opacity);return`${1===e?"hsl(":"hsla("}${YB(this.h)}, ${100*qB(this.s)}%, ${100*qB(this.l)}%${1===e?")":`, ${e})`}`}}));const QB=Math.PI/180,XB=180/Math.PI,ZB=4/29,e$=6/29,t$=3*e$*e$;function n$(e){if(e instanceof r$)return new r$(e.l,e.a,e.b,e.opacity);if(e instanceof l$)return u$(e);e instanceof FB||(e=DB(e));var t,n,r=s$(e.r),o=s$(e.g),i=s$(e.b),a=o$((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=o$((.4360747*r+.3850649*o+.1430804*i)/.96422),n=o$((.0139322*r+.0971045*o+.7141733*i)/.82521)),new r$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function r$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function o$(e){return e>.008856451679035631?Math.pow(e,1/3):e/t$+ZB}function i$(e){return e>e$?e*e*e:t$*(e-ZB)}function a$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function s$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function l$(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function u$(e){if(isNaN(e.h))return new r$(e.l,0,0,e.opacity);var t=e.h*QB;return new r$(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vB(r$,function(e,t,n,r){return 1===arguments.length?n$(e):new r$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new r$(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new r$(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new FB(a$(3.1338561*(t=.96422*i$(t))-1.6168667*(e=1*i$(e))-.4906146*(n=.82521*i$(n))),a$(-.9787684*t+1.9161415*e+.033454*n),a$(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vB(l$,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof l$)return new l$(e.h,e.c,e.l,e.opacity);if(e instanceof r$||(e=n$(e)),0===e.a&&0===e.b)return new l$(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*XB;return new l$(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new l$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new l$(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new l$(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return u$(this).rgb()}}));var c$=e=>()=>e;function d$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):c$(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?d$:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):c$(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jB(e)).r,(t=jB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=d$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var f$,p$="center",h$="bottom";function m$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function g$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y$)):void 0===t&&(t=v$);for(var n,r,o,i,a,s=new _$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new _$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(x$)}function v$(e){return e.children}function y$(e){return Array.isArray(e)?e[1]:null}function b$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function x$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:p$},{key:"DataRangeIncludingZero",alignment:h$},{key:"LimitedData",alignment:h$},{key:"NegativeOrZeroValues",alignment:h$}].reduce(function(e,t){return e[t.key]=t,e},{}),_$.prototype=g$.prototype={constructor:_$,count:function(){return this.eachAfter(m$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return g$(this).eachBefore(b$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},f$=function(e){
|
|
108
|
+
*/function vL(){if(pL)return eT;pL=1,Object.defineProperty(eT,"__esModule",{value:!0}),eT.default=function(t){return(0,e.createStyles)(t)};var e=gL;return eT}var yL,bL,xL={},_L={};function wL(){if(yL)return _L;yL=1;var e=dy();Object.defineProperty(_L,"__esModule",{value:!0}),_L.default=void 0;var t=(0,e(JE()).default)();return _L.default=t,_L}function kL(){if(bL)return xL;bL=1;var e=dy();Object.defineProperty(xL,"__esModule",{value:!0}),xL.default=void 0;var t=e(Hy()),n=gL,r=e(wL());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return xL.default=o,xL}var SL,CL,EL={},TL={};function AL(){if(SL)return TL;SL=1;var e=dy();Object.defineProperty(TL,"__esModule",{value:!0}),TL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},TL.getUnit=n,TL.toUnitless=r,TL.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},TL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},TL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},TL.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(fS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return TL}function NL(){if(CL)return EL;CL=1;var e=dy();Object.defineProperty(EL,"__esModule",{value:!0}),EL.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),p};var t=e(Hy()),n=tS,r=AL();return EL}var LL,RL={};function ML(){if(LL)return RL;LL=1;var e=dy();Object.defineProperty(RL,"__esModule",{value:!0}),RL.default=void 0;var t=e(Hy()),n=gL,r=e(wL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return RL.default=o,RL}var OL,PL={};function IL(){if(OL)return PL;OL=1;var e=dy();Object.defineProperty(PL,"__esModule",{value:!0}),PL.default=function(){return(0,t.useTheme)()||n.default};var t=gL;e(C());var n=e(wL());return PL}var zL,DL={};function jL(){if(zL)return DL;zL=1;var e=dy();Object.defineProperty(DL,"__esModule",{value:!0}),DL.default=void 0;var t=e(Hy()),n=gL,r=e(wL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return DL.default=o,DL}var FL,BL,$L={};function HL(){if(FL)return $L;FL=1;var e=dy();Object.defineProperty($L,"__esModule",{value:!0}),$L.default=void 0;var t=gL,n=e(wL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return $L.default=r,$L}function WL(){return BL||(BL=1,function(e){var t=dy(),n=(Mk||(Mk=1,function(e){var t=zk().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Pk)),Pk.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=nS();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(JE()),a=t(ZE()),s=t(vL()),l=t(kL()),u=t(NL()),c=t(ML()),d=KE();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var f=t(IL()),p=t(jL()),h=t(HL()),m=gL}(Ok)),Ok}var UL=WL();UL.alpha(lk.GREYSCALE_0,.05),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5);const KL=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),GL=D.forwardRef(KL);var YL=Object.defineProperty,VL=(e,t)=>{for(var n in t)YL(e,n,{get:t[n],enumerable:!0})},qL=(e,t,n)=>((e,t,n)=>t in e?YL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),JL={};VL(JL,{af:()=>rR,ak:()=>oR,am:()=>iR,an:()=>aR,ar:()=>sR,ars:()=>lR,as:()=>uR,asa:()=>cR,ast:()=>dR,az:()=>fR,bal:()=>pR,be:()=>hR,bem:()=>mR,bez:()=>gR,bg:()=>vR,bho:()=>yR,blo:()=>bR,bm:()=>xR,bn:()=>_R,bo:()=>wR,br:()=>kR,brx:()=>SR,bs:()=>CR,ca:()=>ER,ce:()=>TR,ceb:()=>AR,cgg:()=>NR,chr:()=>LR,ckb:()=>RR,cs:()=>MR,cy:()=>OR,da:()=>PR,de:()=>IR,doi:()=>zR,dsb:()=>DR,dv:()=>jR,dz:()=>FR,ee:()=>BR,el:()=>$R,en:()=>HR,eo:()=>WR,es:()=>UR,et:()=>KR,eu:()=>GR,fa:()=>YR,ff:()=>VR,fi:()=>qR,fil:()=>JR,fo:()=>QR,fr:()=>XR,fur:()=>ZR,fy:()=>eM,ga:()=>tM,gd:()=>nM,gl:()=>rM,gsw:()=>oM,gu:()=>iM,guw:()=>aM,gv:()=>sM,ha:()=>lM,haw:()=>uM,he:()=>cM,hi:()=>dM,hnj:()=>fM,hr:()=>pM,hsb:()=>hM,hu:()=>mM,hy:()=>gM,ia:()=>vM,id:()=>yM,ig:()=>bM,ii:()=>xM,io:()=>_M,is:()=>wM,it:()=>kM,iu:()=>SM,ja:()=>CM,jbo:()=>EM,jgo:()=>TM,jmc:()=>AM,jv:()=>NM,jw:()=>LM,ka:()=>RM,kab:()=>MM,kaj:()=>OM,kcg:()=>PM,kde:()=>IM,kea:()=>zM,kk:()=>DM,kkj:()=>jM,kl:()=>FM,km:()=>BM,kn:()=>$M,ko:()=>HM,ks:()=>WM,ksb:()=>UM,ksh:()=>KM,ku:()=>GM,kw:()=>YM,ky:()=>VM,lag:()=>qM,lb:()=>JM,lg:()=>QM,lij:()=>XM,lkt:()=>ZM,ln:()=>eO,lo:()=>tO,lt:()=>nO,lv:()=>rO,mas:()=>oO,mg:()=>iO,mgo:()=>aO,mk:()=>sO,ml:()=>lO,mn:()=>uO,mo:()=>cO,mr:()=>dO,ms:()=>fO,mt:()=>pO,my:()=>hO,nah:()=>mO,naq:()=>gO,nb:()=>vO,nd:()=>yO,ne:()=>bO,nl:()=>xO,nn:()=>_O,nnh:()=>wO,no:()=>kO,nqo:()=>SO,nr:()=>CO,nso:()=>EO,ny:()=>TO,nyn:()=>AO,om:()=>NO,or:()=>LO,os:()=>RO,osa:()=>MO,pa:()=>OO,pap:()=>PO,pcm:()=>IO,pl:()=>zO,prg:()=>DO,ps:()=>jO,pt:()=>FO,pt_PT:()=>BO,rm:()=>$O,ro:()=>HO,rof:()=>WO,ru:()=>UO,rwk:()=>KO,sah:()=>GO,saq:()=>YO,sat:()=>VO,sc:()=>qO,scn:()=>JO,sd:()=>QO,sdh:()=>XO,se:()=>ZO,seh:()=>eP,ses:()=>tP,sg:()=>nP,sh:()=>rP,shi:()=>oP,si:()=>iP,sk:()=>aP,sl:()=>sP,sma:()=>lP,smi:()=>uP,smj:()=>cP,smn:()=>dP,sms:()=>fP,sn:()=>pP,so:()=>hP,sq:()=>mP,sr:()=>gP,ss:()=>vP,ssy:()=>yP,st:()=>bP,su:()=>xP,sv:()=>_P,sw:()=>wP,syr:()=>kP,ta:()=>SP,te:()=>CP,teo:()=>EP,th:()=>TP,ti:()=>AP,tig:()=>NP,tk:()=>LP,tl:()=>RP,tn:()=>MP,to:()=>OP,tpi:()=>PP,tr:()=>IP,ts:()=>zP,tzm:()=>DP,ug:()=>jP,uk:()=>FP,und:()=>BP,ur:()=>$P,uz:()=>HP,ve:()=>WP,vec:()=>UP,vi:()=>KP,vo:()=>GP,vun:()=>YP,wa:()=>VP,wae:()=>qP,wo:()=>JP,xh:()=>QP,xog:()=>XP,yi:()=>ZP,yo:()=>eI,yue:()=>tI,zh:()=>nI,zu:()=>rI});var QL=(e,t)=>t?"other":1==e?"one":"other",XL=(e,t)=>t?"other":0==e||1==e?"one":"other",ZL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",eR=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},tR=(e,t)=>"other",nR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",rR=QL,oR=XL,iR=ZL,aR=QL,sR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},lR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},uR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",cR=QL,dR=eR,fR=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},pR=(e,t)=>1==e?"one":"other",hR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},mR=QL,gR=QL,vR=QL,yR=XL,bR=(e,t)=>{const n=String(e).split(".")[0];return t?0==n?"zero":1==n?"one":2==n||3==n||4==n||5==n||6==n?"few":"other":0==e?"zero":1==e?"one":"other"},xR=tR,_R=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",wR=tR,kR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},SR=QL,CR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},ER=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},TR=QL,AR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},NR=QL,LR=QL,RR=QL,MR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},OR=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",PR=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},IR=eR,zR=ZL,DR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},jR=QL,FR=tR,BR=QL,$R=QL,HR=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},WR=QL,UR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},KR=eR,GR=QL,YR=ZL,VR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",qR=eR,JR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},QR=QL,XR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},ZR=QL,eM=eR,tM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},nM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},rM=eR,oM=QL,iM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",aM=XL,sM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},lM=QL,uM=QL,cM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},dM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",fM=tR,pM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},hM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},mM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",gM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",vM=eR,yM=tR,bM=tR,xM=tR,_M=eR,wM=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),s=r.slice(-2);return t?"other":i&&1==a&&11!=s||o%10==1&&o%100!=11?"one":"other"},kM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},SM=nR,CM=tR,EM=tR,TM=QL,AM=QL,NM=tR,LM=tR,RM=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},MM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",OM=QL,PM=QL,IM=tR,zM=tR,DM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},jM=QL,FM=QL,BM=tR,$M=ZL,HM=tR,WM=QL,UM=QL,KM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",GM=QL,YM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),s=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},VM=QL,qM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},JM=QL,QM=QL,XM=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},ZM=tR,eO=XL,tO=(e,t)=>t&&1==e?"one":"other",nO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},rO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},oO=QL,iO=XL,aO=QL,sO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":i&&1==a&&11!=s||1==l&&11!=u?"one":"other"},lO=QL,uO=QL,cO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},dO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",fO=(e,t)=>t&&1==e?"one":"other",pO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},hO=tR,mO=QL,gO=nR,vO=QL,yO=QL,bO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},xO=eR,_O=QL,wO=QL,kO=QL,SO=tR,CO=QL,EO=XL,TO=QL,AO=QL,NO=QL,LO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},RO=QL,MO=tR,OO=XL,PO=QL,IO=ZL,zO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},DO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},jO=QL,FO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},BO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},$O=QL,HO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},WO=QL,UO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},KO=QL,GO=tR,YO=QL,VO=nR,qO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},JO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},QO=QL,XO=QL,ZO=nR,eP=QL,tP=tR,nP=tR,rP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},oP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},iP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},aP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},sP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},lP=nR,uP=nR,cP=nR,dP=nR,fP=nR,pP=QL,hP=QL,mP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},gP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},vP=QL,yP=QL,bP=QL,xP=tR,_P=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},wP=eR,kP=QL,SP=QL,CP=QL,EP=QL,TP=tR,AP=XL,NP=QL,LP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},RP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},MP=QL,OP=tR,PP=tR,IP=QL,zP=QL,DP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},jP=QL,FP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=s?"few":"other":o&&1==l&&11!=u?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},BP=tR,$P=eR,HP=QL,WP=QL,UP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},KP=(e,t)=>t&&1==e?"one":"other",GP=QL,YP=QL,VP=XL,qP=QL,JP=tR,QP=QL,XP=QL,ZP=eR,eI=tR,tI=tR,nI=tR,rI=ZL,oI={},iI=Array.prototype.slice,aI=function(e){return("0"+e.toString()).substr(-2)},sI=function(e){var t=typeof e;return"function"===t||"object"===t},lI=function(e){return"function"===typeof e},uI=function(e){return null!=e},cI=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},dI=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},fI=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},pI=function(e){return!0===e||!1===e},hI=function(e){return null===e},mI=function(e,t,n){return void 0===n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},gI=function(e,t){return lI(e)?e(t):e},vI=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],dI(r)||fI(r)||pI(r)||cI(r)||hI(r)?e[n]=r:(null==e[n]&&(e[n]={}),vI(e[n],r)));return e},yI={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},bI={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},xI={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},_I={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},wI=[null,"kb","mb","gb","tb"],kI={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};oI.reset=function(){var e;for(e in kI)this[e]=kI[e]},oI.initializeOptions=function(){var e;for(e in kI)uI(this[e])||(this[e]=kI[e])},oI.initializeOptions(),oI.locales={},oI.locales.get=function(e){var t=this[e]||this[oI.locale]||this.default;return lI(t)&&(t=t(e)),!1===cI(t)&&(t=[t]),t},oI.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&oI.locale&&t.push(oI.locale),oI.fallbacks&&oI.defaultLocale&&t.push(oI.defaultLocale),t.forEach(function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),oI.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},oI.pluralization={},oI.pluralization.get=function(e){return this[e]||this[oI.locale]||this.default},oI.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},oI.currentLocale=function(){return this.locale||this.defaultLocale},oI.isSet=uI,oI.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(uI(t.defaultValue))return gI(t.defaultValue,e)},oI.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&sI(n))for(;i.length;)if(r=i.shift(),uI(n[r])){o=n[r];break}return o},oI.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,s=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);s.length;)if(r=s.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],sI(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&uI(n.defaultValue)&&(a=sI(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},oI.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:yI.meridian},oI.prepareOptions=function(){for(var e,t=iI.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(uI(n[r])||(n[r]=e[r]));return n},oI.createTranslationOptions=function(e,t){var n=[{scope:e}];return uI(t.defaults)&&(n=n.concat(t.defaults)),uI(t.defaultValue)&&n.push({message:t.defaultValue}),n},oI.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some(function(t){if(uI(t.scope)?(o=t.scope,n=this.lookup(o,i)):uI(t.message)&&(n=gI(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):cI(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):sI(n)&&uI(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},oI.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=uI(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},oI.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},oI.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,function(e,t,n){return t+" "+n.toLowerCase()})}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},oI.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},oI.nullPlaceholder=function(){return oI.missingPlaceholder.apply(oI,arguments)},oI.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),bI);var n,r,o=e<0,i=function(e,t){return mI("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),s=[],l=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)s.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=s.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},oI.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),xI),this.toNumber(e,t)},oI.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},oI.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},oI.strftime=function(e,t,n){n=this.lookup("date",n);var r=oI.meridian();if(n||(n={}),n=this.prepareOptions(n,yI),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),s=e.getMonth()+1,l=e.getHours(),u=l,c=l>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[s])).replace("%B",n.month_names[s])).replace("%d",aI(i))).replace("%e",i)).replace("%-d",i)).replace("%H",aI(l))).replace("%-H",l)).replace("%k",l)).replace("%I",aI(u))).replace("%-I",u)).replace("%l",u)).replace("%m",aI(s))).replace("%-m",s)).replace("%M",aI(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",aI(d))).replace("%-S",d)).replace("%w",o)).replace("%y",aI(a))).replace("%-y",aI(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},oI.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},oI.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),_I),this.toNumber(e,t)},oI.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+wI[a],t),n=this.t(o),r=i-Math.floor(i)===0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},oI.getFullScope=function(e,t){return t=t||{},cI(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},oI.extend=function(e,t){return void 0===e&&void 0===t?{}:vI(e,t)},oI.t=oI.translate.bind(oI),oI.l=oI.localize.bind(oI),oI.p=oI.pluralize.bind(oI);VL({},{DEFAULT_LANGUAGE:()=>CI,DEFAULT_LANGUAGE_SHORT:()=>EI,flattenParams:()=>II,flattenTranslationsJSON:()=>NI,format:()=>zI,formatWithKeys:()=>DI,getLongLanguageDesc:()=>PI,getShortLanguageDesc:()=>OI,parseLangFromUrl:()=>LI,resolveLocale:()=>MI,updateLangAttribute:()=>jI});var SI=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],CI="en-US",EI="en",TI=["zh-cn","zh-tw","qps-ploc"],AI=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),NI=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),AI(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=AI(r)&&r.value;return o&&(t[n]=o),t},{}):{}),LI=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},RI=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(TI.includes(e.toLocaleLowerCase()))return SI.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return SI.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},MI=(...e)=>{for(const t of e){const e=RI(t);if(e)return e.short}},OI=e=>{const t=RI(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${EI}'`),EI)},PI=e=>{const t=RI(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${CI}'`),CI)},II=e=>Array.isArray(e[0])?e[0]:e,zI=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e)},DI=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),jI=e=>{const t=OI(e);document.documentElement.setAttribute("lang",t)},FI=class e{static configure(t,n=CI){e.translations=t,e.language=PI(n),e.languageShort=OI(n),jI(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=oI,oI.missingTranslation=e=>e,oI.defaultSeparator=null,oI.locale=e.language,oI.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];oI.pluralization[e.language]=e=>{try{const t=JL[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=DI(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,{count:n,...r})}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};qL(FI,"translations",{}),qL(FI,"translationsPlurals",{}),qL(FI,"language"),qL(FI,"languageShort"),qL(FI,"onTranslationsChangeListeners",[]),qL(FI,"i18nProvider"),qL(FI,"get",(e,...t)=>{var n;const r=II(t);let o=null!=(n=FI.translations[e])?n:e;return r.length>0&&(o=zI(o,...r)),o});var BI=FI;var $I=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=BI.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),BI.get},HI=BI;function WI({defaultSelection:e}){const[t]=Tc();return D.useEffect(()=>{t.focus(()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}function UI(e,t=!0){if(e)return!1;let n=Vi().getTextContent();return t&&(n=n.trim()),""===n}function KI(e){return()=>function(e){if(!UI(e,!1))return!1;const t=Vi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Xo(n))return!1;if(qo(n)){if(!ui(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Or(t[e]))return!1}}return!0}(e)}const GI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function YI({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:m,role:g="textbox",spellCheck:v=!0,style:y,tabIndex:b,"data-testid":x,..._},w){const[k,S]=D.useState(e.isEditable()),C=D.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),E=D.useMemo(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(w,C),[C,w]);return GI(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Mc.jsx("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===g?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":k?d:void 0,"aria-readonly":!k||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:k,"data-testid":x,id:m,ref:E,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const VI=D.forwardRef(YI);function qI(e){return e.getEditorState().read(KI(e.isComposing()))}const JI=D.forwardRef(QI);function QI(e,t){const{placeholder:n,...r}=e,[o]=Tc();return Mc.jsxs(Mc.Fragment,{children:[Mc.jsx(VI,{editor:o,...r,ref:t}),null!=n&&Mc.jsx(XI,{editor:o,content:n})]})}function XI({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>qI(e));return GI(()=>{function t(){const t=qI(e);n(t)}return t(),Vs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=D.useState(t.isEditable());if(D.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:Mc.jsx("div",{"aria-hidden":!0,children:i})}const ZI=D.createContext(null),ez={didCatch:!1,error:null};class tz extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ez}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(ez))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(ez))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=D.createElement(n,e);else{if(void 0===r)throw i;a=r}}return D.createElement(ZI.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function nz({children:e,onError:t}){return Mc.jsx(tz,{fallback:Mc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const rz={name:"@lexical/react/ReactProvider"};function oz(e){throw new Error(e)}const iz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function az({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return iz(()=>e.registerDecoratorListener(e=>{lb.flushSync(()=>{r(e)})}),[e]),D.useEffect(()=>{r(e.getDecorators())},[e]),D.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Mc.jsx(t,{onError:t=>e._onError(t),children:Mc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(lb.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function sz({editor:e,ErrorBoundary:t}){return function(e){const t=hu.maybeFromEditor(e);if(t&&t.hasExtensionByName(rz.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&oz(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Mc.jsx(az,{editor:e,ErrorBoundary:t})}function lz(e){return e.getEditorState().read(KI(e.isComposing()))}function uz(e){iz(()=>Vs(Ed(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,a,s]=t;e.update(()=>{const e=so();if(Wr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Or(l)&&r>=0&&o>=0&&(u=r,c=r+o,e.setTextNodeRange(l,u,l,c)),u===c&&""===i||(e.insertRawText(i),l=t.getNode()),Or(l)){u=a,c=a+s;const t=l.getTextContentSize();u=u>t?t:u,c=c>t?t:c,e.setTextNodeRange(l,u,l,c)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function cz({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Tc();return uz(r),Mc.jsxs(Mc.Fragment,{children:[e,Mc.jsx(dz,{content:t}),Mc.jsx(sz,{editor:r,ErrorBoundary:n})]})}function dz({content:e}){const[t]=Tc(),n=function(e){const[t,n]=D.useState(()=>lz(e));return iz(()=>{function t(){const t=lz(e);n(t)}return t(),Vs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Rd();return n?"function"==typeof e?e(r):e:null}const fz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),pz=D.forwardRef(fz),hz=(e,t)=>Mc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Mc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Mc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),mz=D.forwardRef(hz),gz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),vz=D.forwardRef(gz),yz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),bz=D.forwardRef(yz),xz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),_z=D.forwardRef(xz),wz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M2.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 12H7v-1h9zM2.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 5H7V4h9z"})}),kz=D.forwardRef(wz),Sz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),Cz=D.forwardRef(Sz),Ez=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M2.05 9q.372 0 .72.09.349.089.623.274.273.186.436.468t.163.66a1.38 1.38 0 0 1-.284.86 2.3 2.3 0 0 1-.304.333l-.174.155-.18.152-1.243 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.195-.235a.7.7 0 0 0 .122-.399.54.54 0 0 0-.182-.422.7.7 0 0 0-.486-.163.7.7 0 0 0-.52.204.83.83 0 0 0-.217.406l-.022.127L0 10.568l.031-.18q.06-.263.193-.48a1.8 1.8 0 0 1 .452-.492 2 2 0 0 1 .626-.31Q1.655 9 2.05 9M16 12H6v-1h10zM3 7H1.697V3.328l-1.022.72L0 3.208 1.807 2H3zm13-2H6V4h10z"})}),Tz=D.forwardRef(Ez),Az=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),Nz=D.forwardRef(Az),Lz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{fillRule:"evenodd",d:"M12.483 4.4c0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9H3V1h6.466c1.666 0 3.017 1.522 3.017 3.4m-6.897 2h2.91a1.6 1.6 0 0 0 0-3.2h-2.91zm0 6.4h3.1a1.9 1.9 0 0 0 0-3.8h-3.1z",clipRule:"evenodd"})}),Rz=D.forwardRef(Lz),Mz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),Oz=D.forwardRef(Mz),Pz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),Iz=D.forwardRef(Pz),zz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),Dz=D.forwardRef(zz),jz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M7.041 14.855A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255z"})}),Fz=D.forwardRef(jz),Bz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),$z=D.forwardRef(Bz),Hz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),Wz=D.forwardRef(Hz);var Uz,Kz,Gz={exports:{}},Yz={};function Vz(e){return Vz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vz(e)}var qz=(Kz||(Kz=1,Gz.exports=function(){if(Uz)return Yz;Uz=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Yz.Fragment=n,Yz.jsx=a,Yz.jsxs=a,Yz}()),Gz.exports);const Jz=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Qz=[e=>{const t=Jz.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function Xz(){return qz.jsx(Ad,{matchers:Qz})}const Zz=()=>{const[e]=Tc(),t=Rd(),n=D.useCallback(n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read(()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)})},[t,e]);return D.useEffect(()=>Vs(e.registerMutationListener(yu,e=>{n(e)}),e.registerMutationListener(Cu,e=>{n(e)}),e.registerCommand(Ct,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=so();let t;if(Wr(e)&&(t=e.focus.getNode().getParent()),Kr(e)&&(t=e.getNodes()[0]),Tu(t)||Su(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),ci)),[e,n]),null};function eD(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?rl(n)?r:o:rl(t)?r:o}const tD=new Set(["http:","https:","mailto:","sms:","tel:"]),nD=e=>{const t=e;return t.password="",t.username="",t};function rD(e){try{const t=new URL(e);return tD.has(t.protocol)?{url:nD(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const oD=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function iD(e){return"https://"===e||oD.test(e)}const aD=tb(yw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),sD=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=D.useRef(null),[a,s]=D.useState(t);D.useEffect(()=>{s(t)},[t]);const l=D.useCallback(()=>{n(a),window.open(rD(a).url,"_blank"),r()},[a,r,n]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=D.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return qz.jsx(I_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>qz.jsx(kw,{...e,children:qz.jsx(Nb,{className:"tekPopperMenu",children:qz.jsxs(aD,{direction:"row",children:[qz.jsx(J_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),qz.jsx(Xb,{onClick:l,children:qz.jsx(ok,{})}),qz.jsx(Xb,{onClick:u,children:qz.jsx(ak,{})})]})})})})},lD=()=>{const[e]=Tc(),t=Rd(),[n,r]=D.useState(null),[o,i]=D.useState(""),a=D.useRef(!1),s=D.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=so();if(Wr(t)){const n=eD(t),o=n.getParent();if(Tu(o)||Tu(n))return r(null),i(""),!1;let a;if(Su(o)&&(a=o),Su(n)&&(a=n),Su(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=D.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(Au,rD(t))},{onUpdate:()=>{r(null)}})},[e]),u=D.useCallback(()=>{r(null)},[]);return D.useEffect(()=>Vs(e.registerCommand(kt,()=>s(),1),e.registerCommand(Ct,()=>s(),1)),[e,s]),t?qz.jsx(sD,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function uD(){return qz.jsx(sk,{validateUrl:iD})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const cD=({children:e})=>qz.jsx(rb,{theme:Lk(),children:e}),dD={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"},image:"tek__image"},nodes:[vd,hd,pc,lc,yu,Cu],onError:e=>{console.log(e)}},fD=({children:e,initialConfig:t,flags:n})=>qz.jsx(cD,{children:qz.jsx("div",{className:"tek__editor__Wrapper",children:qz.jsx(zc,{initialConfig:t||dD,children:qz.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,qz.jsx(Hc,{}),qz.jsx(Wc,{}),qz.jsx(uD,{}),qz.jsx(Xz,{}),qz.jsx(lD,{}),qz.jsx(Zz,{}),qz.jsx($c,{})]})})})});let pD=class e extends Vo{__hasBorders;static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const hD=e=>new pD(e),mD=e=>e instanceof pD;let gD=class e extends Vo{__needsUpdate;__hasBorders;__width;static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch{}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function vD(e){return e instanceof gD}let yD=class e extends Vo{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function bD(e){return e instanceof yD}const xD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),mD(t))return t;return null},_D=e=>{let t=e;for(;null!==t;){if(vD(t))return t;t=t?.getParent()}return null},wD=(e,t)=>{const n=_D(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},kD=e=>{const t=e?.getChildAtIndex(2);return t},SD=e=>{const t=e.getParent();if(bD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},CD=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,ED=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},TD=e=>e?e.getChildren().filter(e=>bD(e)):[],AD=e=>{let t=!1;return TD(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(li()),t=!0})}),t},ND=e=>{const t=so();if(Wr(t)||Kr(t)){const n=t.getNodes().filter(e=>mD(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>vD(e)),o=_D(n[0]),i=TD(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Wr(t)){const e=t.focus.getNode();if(vD(e))return AD(e)}return n.forEach(e=>{e.clear(),e.append(li())}),(()=>{const e=so();let t=!1;if(Wr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=_D(n);!o&&vD(r)&&(o=r),vD(o)&&(t=AD(o))}return t})()}if(Wr(t)){const e=t.focus.getNode();if(vD(e))return AD(e)}}return!1},LD=e=>{if(e){const t=_D(e);if(vD(t)){const n=e.getParent(),r=TD(t).findIndex(e=>e===n),o=n?.getChildren().findIndex(t=>t===e);return{i:r,j:o,tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},RD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),mD(t))return t;return null},MD=e=>{const t=[];return TD(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},OD=(e,t)=>{MD(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},PD=wt("UPDATE_COL_WIDTHS_COMMAND"),ID=wt("BEGIN_COL_RESIZE"),zD=wt("END_COL_RESIZE"),DD=wt("INSERT_TEK_TABLE_COMMAND"),jD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return qz.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},FD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},BD=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,$D=({nodeKey:e,colWidths:t})=>{const[n]=Tc(),r=Rd(),[o,i]=D.useState(null),a=D.useRef(null),s=D.useRef(null),l=D.useRef(null),u=D.useRef(null),c=D.useCallback(t=>{const n=Hi(e);if(n){const e=n.getParent();if(vD(e)){const n=kD(e);if("TekRowNode"===n?.getType()){const e=n.getChildren(),r=[];let o=0;e.forEach((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})}),i(r)}}}},[e]),d=D.useCallback(e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:s,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=ED(s+p,r);if(c){const e=o+p;if(e<60)return;const t=ED(e,r),s=a.current.nxtColWidth-p,d=ED(s,r);if(s<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const s=a/t,l=Math.min(100*s,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=ED(e,d),s=ED(o,d);r.style.width=!n||p>0?a:s,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=a)}}},[]),f=D.useCallback(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",l.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(ED(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach((t,n)=>{t.setAttribute("width",e[n])}),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(zD,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Hi(e),r=wD(t,n),a=t?.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),s=[];t.forEach(e=>{s.push(e.getAttribute("width")||"0")}),a.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(s[t]),n.startX=l,n});i(e)}n.dispatchCommand(PD,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=D.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Hi(t),o=wD(r,n);if(mD(r)){const t=SD(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],s=r.length>t+1?r[t+1]:null,c=CD(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=CD(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=FD("tek__leftResizerIndicator","leftGripper");r.innerText=BD(e);let o=null;return t?(o=FD("tek__rightResizerIndicator","rightGripper"),o.innerText=BD(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=y.left,u.current=y.right,d.appendChild(y.left),y.right&&d.appendChild(y.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:s,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(ID,void 0)}}})},[n,d,f]);return D.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),qz.jsx(qz.Fragment,{children:o&&r?o.map(e=>qz.jsx(jD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},HD="TEK_TABLE_RESIZE_NODE";let WD=class e extends Qo{__colWidths;static getType(){return HD}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:HD,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return qz.jsx($D,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const UD=e=>e instanceof WD,KD=({nodeKey:e,colWidths:t})=>{const[n]=Tc(),[r,o]=D.useState(t);return D.useEffect(()=>{n.getEditorState().read(()=>{const t=Hi(e),n=t?.getParent();if(vD(n)){const e=n.getResizeNode();if(UD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),qz.jsx(qz.Fragment,{children:r.map((t,n)=>qz.jsx("col",{span:1,width:t},`${e}.${n}`))})};class GD extends Qo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new GD(e.__colWidths,e.__key)}static importJSON(e){return new GD(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return qz.jsx(KD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class YD extends Qo{__formatStyle;constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const VD=[gD,pD,yD,GD,WD],qD=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=t?.getChildAtIndex(0),i=t?.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),t?.markNeedsUpdate()},JD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);if(n){const e=SD(n),t=_D(n),r=TD(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),qD(o,t)}}},QD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t),r=_D(n);if(r&&3===r.getChildren().length)return Ji(null),void r.remove();if(n){const{row:e}=LD(n);Ji(null),e?.remove()}}},XD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t),r=kD(n);if(bD(r)&&n){const e=r.getChildren().length,t=new yD;for(let r=0;r<e;r++){const e=hD(n?.__hasBorders);e.append(li()),t.append(e)}n?.append(t)}}},ZD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);if(vD(n)){const e=TD(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=hD(n.__hasBorders);o.append(li()),e[r].append(o),t=o}return qD(r,n),t}}return null},ej=tb(Xb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),tj=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Tc(),[o,i]=D.useState(null),a=$I(),s=Boolean(o),l=D.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=D.useCallback(()=>{i(null)},[]),d=D.useCallback(e=>{l(e,XD,t)},[l,t]),f=D.useCallback(e=>{l(e,ZD,t)},[l,t]),p=D.useCallback(t=>{l(t,QD,e)},[l,e]),h=D.useCallback(t=>{l(t,JD,e)},[l,e]),m=D.useCallback(()=>{r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);vD(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);n&&(n.toggleBorders(),MD(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>Vs(r.registerCommand(kt,()=>(i(null),!1),4)),[r]),qz.jsx(dw,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(ej,{size:"small",onClick:u,children:qz.jsx(GL,{height:12})}),qz.jsx(I_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:qz.jsx(Nb,{id:"tekTableMenu",className:"tekPopperMenu",children:qz.jsxs(Bw,{dense:!0,children:[qz.jsx(Kw,{onClick:g,children:a("ToggleBorders")}),qz.jsx(vw,{}),qz.jsx(Kw,{onClick:d,children:a("AddNewRow")}),qz.jsx(Kw,{onClick:f,children:a("AddNewColumn")}),qz.jsx(vw,{}),qz.jsx(Kw,{onClick:p,children:a("DeleteRow")}),qz.jsx(Kw,{onClick:h,children:a("DeleteCol")}),qz.jsx(vw,{}),qz.jsx(Kw,{onClick:m,children:a("DeleteTable")})]})})})]})})},nj=()=>{const[e]=Tc(),t=Rd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(dh),l=D.useRef(null),u=D.useCallback(()=>{o||e.update(()=>{const t=so();if(Wr(t)){const n=xD(t.anchor.getNode());if(mD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);D.useEffect(()=>{const e=e=>{0!==e.buttons?null===l.current&&(l.current=setTimeout(()=>{i(!0),r(null)},300)):(i(!1),clearTimeout(l.current),l.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[]),D.useEffect(()=>Vs(e.registerCommand(kt,()=>(u(),!1),ci),e.registerCommand(ID,()=>(r(null),!0),4),e.registerCommand(zD,()=>(u(),!0),4)),[e,u]),D.useEffect(()=>{r(null)},[t]);const c=D.useCallback(()=>{r(null)},[]),d=D.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=D.useCallback(()=>{clearTimeout(l.current)},[]);return qz.jsx(I_,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:qz.jsx(tj,{onDeleteAction:c,onAction:d,onClick:f})})},rj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Hi(n),r=e?.getParent();ei(r)&&null!==e&&t.push(e)}if(t.length>0){const e=li();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},oj=()=>{const[e]=Tc(),t=Rd();return D.useEffect(()=>Vs(e.registerMutationListener(pD,t=>{e.update(()=>{rj(t)})}),e.registerMutationListener(yD,t=>{e.update(()=>{rj(t)})}),e.registerMutationListener(gD,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Hi(e);if(vD(t)&&!t.isValid()){const e=li();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(DD,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new gD(!0,"100%"),n=new GD(e),r=new WD(e),o=[];for(let t=0;t<2;t++){const t=new yD;for(let n=0;n<e.length;n++){const e=hD(!0),n=li();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();xl(e)}),!0),ci),e.registerCommand(PD,({colWidths:e,nodeKey:t})=>{const n=Hi(t);if(UD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof GD})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Vt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=_D(t),r=RD(t);if(vD(n)){const e=li();e.append(Mr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=_D(t);if(vD(n)){const e=li();e.append(Mr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Jt,e=>ND(e),4),e.registerCommand(Xt,e=>ND(e),4),e.registerCommand(Zt,e=>{const t=so();if(Wr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),mD(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const s=o.getChildAtIndex(n+2+a);if(bD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(LD(o),!e.shiftKey),!0}return!1},ci),e.registerCommand(cn,e=>{const t=e?.target,n=so();if(t.classList.contains("tek__table")&&Wr(n)&&vD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Wr(n)){const t=n.getNodes().some(e=>mD(e)),r=n.getNodes().some(e=>vD(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),D.useEffect(()=>e.registerCommand(kt,()=>(t&&e.update(()=>{(e=>{const t=so(),n=[];if(pa(gD).forEach(e=>{const t=MD(e);n.push(...t)}),Wr(t)){t.getNodes().filter(e=>vD(e)).forEach(t=>{OD(t,e)});const n=t.focus.getNode();if(vD(n))return void OD(n,e)}if(Wr(t)||Kr(t)){const r=new Set(t.getNodes().map(e=>RD(e)));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?o?.classList.add("tek__tekCellHighlight"):o?.classList.remove("tek__tekCellHighlight")}}})(e)},{tag:"history-merge"}),!1),4),[e,t]),D.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];pa(gD).forEach(e=>{const n=MD(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},ij=()=>qz.jsxs(qz.Fragment,{children:[qz.jsx(oj,{}),qz.jsx(nj,{})]}),aj=()=>{const e=Rd(),t=$I();return e?qz.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):qz.jsx("div",{className:"tek__editor__logo",children:qz.jsx(pz,{height:32})})},sj=({showPlaceholder:e})=>qz.jsxs("div",{style:{position:"relative"},children:[qz.jsx(WI,{}),qz.jsx(cz,{contentEditable:qz.jsx(JI,{className:"tek__editor__input"}),placeholder:!1!==e?qz.jsx(aj,{}):null,ErrorBoundary:nz})]}),lj=tb(yw)(({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}})),uj=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],cj="#404040",dj="16px",fj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:uj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),pj=({children:e})=>{const t=(()=>{const[e]=Tc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(uj[0]),[d,f]=D.useState(dj),[p,h]=D.useState(cj),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback(()=>{const t=so();if(Wr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Qa(r,e=>{const t=e.getParent();return null!==t&&Ca(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(bc(i)){const e=yl(r,pc),t=e?e.getListType():i.getListType();l(t)}else{const e=wd(i)?i.getTag():i.getType();l(e)}if(bc(i)||wd(i)){const e=yl(i,ai);e&&(u=e)}const d=eD(t);if(Su(d.getParent())||Su(d)?y(!0):y(!1),ui(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=hl(t,"font-family",uj[0]),m=hl(t,"font-size",dj);c(""===p?uj[0]:p),f(""!==m&&m?m:dj),h(hl(t,"color",cj))}else Kr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof YD}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",cj));const t=e.getTextFormatStyle("fontSize",dj),r=e.getTextFormatStyle("fontFamily",uj[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(fc(e)){const t=yl(e,pc);return t?t.getListType():"bullet"}return wd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return D.useEffect(()=>Vs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(kt,()=>(e.getEditorState().read(()=>{b()}),!1),ci)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return qz.jsx(fj.Provider,{value:t,children:e})},hj=({children:e})=>qz.jsx(pj,{children:qz.jsx(lj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),mj=({anchorEl:e,children:t})=>{const n=Boolean(e);return qz.jsx(I_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>qz.jsx(kw,{...e,children:qz.jsx(Nb,{className:"tekPopperMenu",children:t})})})},gj=tb(ox)({fontSize:12,textOverflow:"ellipsis"}),vj=({startIcon:e,value:t,onClick:n,compact:r})=>qz.jsx(nk,{title:t,PopperProps:{disablePortal:!0},children:qz.jsx(uw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:qz.jsx(_z,{height:12}),children:r?e:qz.jsx(gj,{children:t})})}),yj=tb(Kw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),bj=[{text:"AlignLeft",align:"left",icon:()=>qz.jsx(vz,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>qz.jsx(mz,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>qz.jsx(bz,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],xj=({compact:e=!1})=>{const[t]=Tc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(fj),i=$I(),a=D.useMemo(()=>bj.find(e=>e.align===o.align)||bj[0],[o.align]),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=D.useCallback(()=>{r(null)},[]),u=D.useCallback(e=>{r(null),t.dispatchCommand(on,e),t.focus()},[t]);return qz.jsx(dw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(vj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),qz.jsx(mj,{anchorEl:n,children:qz.jsx(Bw,{dense:!0,children:bj.map(e=>qz.jsxs(yj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[qz.jsx(Ow,{children:e.icon()}),qz.jsx(gj,{children:i(e.text)})]},e.align))})})]})})},_j=({text:e,icon:t})=>qz.jsxs(qz.Fragment,{children:[qz.jsx(Ow,{children:t}),qz.jsx(gj,{children:e})]}),wj=({text:e,icon:t})=>qz.jsxs(qz.Fragment,{children:[qz.jsx(Ow,{children:qz.jsx(gj,{fontWeight:"bold",children:t})}),qz.jsx(gj,{children:e})]}),kj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],Sj=(e,t,n)=>({icon:qz.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),Cj=({compact:e=!1})=>{const[t]=Tc(),{blockFormat:n}=D.useContext(fj),[r,o]=D.useState(null),i=$I(),a=D.useMemo(()=>{let e={icon:qz.jsx(Nz,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=Sj("Heading1","H1",i)),"h2"===n.blockType&&(e=Sj("Heading2","H2",i)),"h3"===n.blockType&&(e=Sj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=qz.jsx(Cz,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=qz.jsx(kz,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=qz.jsx(Tz,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=D.useCallback(()=>{o(null)},[]),l=D.useCallback(e=>{t.update(()=>{const n=so();Wr(n)?(al(n,{"font-size":null}),function(e,t,n=sl){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=ro(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Qa(e.getNode(),ja),a=Qa(t.getNode(),ja);qo(n)&&o.set(n.getKey(),n),qo(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(qo(t)&&ja(t))o.set(t.getKey(),t);else if(null===r){const e=Qa(t,ja);qo(e)&&o.set(e.getKey(),e)}for(const[e,r]of o){const o=t();n(r,o),r.replace(o,!0),i&&(e===i.anchor.key&&i.anchor.set(o.getKey(),i.anchor.offset,i.anchor.type),e===i.focus.key&&i.focus.set(o.getKey(),i.focus.offset,i.focus.type))}i&&e.is(so())&&Ji(i)}(n,e)):Kr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=D.useCallback((e,n)=>{o(null),t.update(()=>{const r=so();Wr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=D.useCallback(e=>{o(null),l(()=>_d(e))},[l]),d=D.useCallback(()=>{o(null),l(()=>li())},[l]),f=D.useCallback(()=>{o(null),l(()=>md())},[l]);return qz.jsx(dw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(vj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),qz.jsx(mj,{anchorEl:r,children:qz.jsxs(Bw,{dense:!0,children:[qz.jsx(Kw,{dense:!0,onClick:d,children:qz.jsx(_j,{text:i("Paragraph"),icon:qz.jsx(Nz,{height:12})})}),qz.jsx(Kw,{dense:!0,onClick:f,children:qz.jsx(_j,{text:i("Quote"),icon:qz.jsx(Cz,{height:12})})}),kj.map(e=>qz.jsx(Kw,{dense:!0,onClick:()=>{c(e.tag)},children:qz.jsx(wj,{text:i(e.text),icon:e.icon})},e.text)),qz.jsx(vw,{}),qz.jsx(Kw,{dense:!0,onClick:()=>{u("bullet",_c)},children:qz.jsx(_j,{text:i("UnorderedList"),icon:qz.jsx(kz,{height:12})})}),qz.jsx(Kw,{dense:!0,onClick:()=>{u("number",wc)},children:qz.jsx(_j,{text:i("OrderedList"),icon:qz.jsx(Tz,{height:12})})})]})})]})})},Ej=tb(uw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0})),Tj=(e,t)=>{const n=n=>{const r=$I();return qz.jsx(nk,{title:r(t),PopperProps:{disablePortal:!0},children:qz.jsx("div",{children:qz.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},Aj=({format:e,icon:t,...n})=>{const r=D.useContext(fj),[o]=Tc(),i=D.useCallback(()=>{o.dispatchCommand(jt,e)},[o,e]);return qz.jsx(Ej,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},Nj=Tj(Aj,"Bold"),Lj=()=>qz.jsx(Nj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:qz.jsx(Rz,{height:12})}),Rj=wt("APPLY_TEXT_FORMAT"),Mj=wt("CLEAR_TEXT_FORMAT"),Oj=Tj(Ej,"ClearFormat"),Pj=()=>{const[e]=Tc(),t=D.useCallback(()=>{e.update(()=>{const t=so();if(Wr(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach((t,o)=>{try{if(Or(t)){let i=t;0===o&&0!==e.offset&&(i=i.splitText(e.offset)[1]||i),o===r.length-1&&(i=i.splitText(n.offset)[0]||i),""!==i.__style&&i.setStyle(""),0!==i.__format&&(i.setFormat(0),bl(i).setFormat(""));const a=i.getParent();(wd(a)||gd(a))&&a.replace(li(),!0)}else(wd(t)||gd(t))&&t.replace(li(),!0)}catch{}})}e.dispatchCommand(Mj,void 0)})},[e]);return qz.jsx(Oj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:qz.jsx(Oz,{height:12})})};var Ij,zj={},Dj=function(){if(Ij)return zj;Ij=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==Vz(o=function(e){if("object"!=Vz(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},zj.Color=u,zj}();const jj=tb(yw)(({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"})),Fj=tb(Z_)(({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"})),Bj=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=jy(),a=D.useCallback(e=>{o(e),n(e)},[n]);return qz.jsx(jj,{children:e.map(e=>qz.jsx(Fj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?qz.jsx(ak,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function $j(e,t,n){return Math.max(t,Math.min(n,e))}const Hj=(e,t)=>{const n=new Dj.Color(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},Wj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=$j(e.clientX-n,0,o)/o*100,s=100-$j(e.clientY-r,0,i)/i*100,l=new Dj.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Uj=tb(yw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Kj=tb(Z_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Gj=tb(Z_)(({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"})),Yj=tb(Z_)({width:"16px",height:"16px",borderRadius:"2px"}),Vj=tb(yw)({flexDirection:"row",alignItems:"center"}),qj=tb(Z_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),Jj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),a=D.useRef(n),[s,l]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=D.useState({left:"0",top:"0"});D.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const g=D.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=Hj(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new Dj.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Wj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Dj.Color(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)},[e]),b=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=$j(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new Dj.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Dj.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=D.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=D.useCallback(t=>{if(c(t.target.value),!new Dj.Color(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=Hj(a.current,d.current);m(e)}},[e]);return qz.jsxs(Uj,{children:[s?qz.jsx(Bj,{palette:r,color:o,onColorChange:x}):qz.jsxs(qz.Fragment,{children:[qz.jsx(Kj,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,s=Wj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new Dj.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:qz.jsx(qj,{ref:f,style:{...h,backgroundColor:o}})}),qz.jsx(Gj,{onClick:b})]}),qz.jsxs(Vj,{children:[qz.jsx(Yj,{style:{backgroundColor:o}}),qz.jsx(J_,{style:{flex:1},value:u,onChange:_}),qz.jsx(Xb,{onClick:()=>{l(!s)},children:qz.jsx(Iz,{height:12})}),qz.jsx(Xb,{onClick:t,children:qz.jsx(ak,{height:12})})]})]})},Qj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Xj=Tj(uw,"Color"),Zj=({colorPalette:e=Qj})=>{const[t]=Tc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(fj),i=D.useCallback((e,n)=>{t.update(()=>{const t=so();Wr(t)&&al(t,{color:e})},n),t.dispatchCommand(Rj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return qz.jsx(dw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(Xj,{variant:"text",size:"small",endIcon:qz.jsx(_z,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:qz.jsx(Z_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),qz.jsx(mj,{anchorEl:n,children:qz.jsx(Jj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};Tj(Ej,"Export");const eF=({compact:e=!1,fonts:t=uj})=>{const[n]=Tc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(fj),a=D.useMemo(()=>t,[t]),s=D.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=so();Wr(e)&&al(e,{"font-family":t||uj[0]}),n.dispatchCommand(Rj,{styleKey:"fontFamily",styleValue:t||uj[0]}),n.focus()})},[n]);return qz.jsx(dw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(vj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:qz.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),qz.jsx(mj,{anchorEl:r,children:qz.jsx(Bw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>qz.jsx(yj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:qz.jsx(gj,{children:e})},e))})})]})})},tF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],nF=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,rF=e=>parseInt(e,10),oF=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=D.useCallback(()=>{const e=rF(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return qz.jsxs(yw,{direction:"row",children:[qz.jsx(J_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),qz.jsx(Xb,{disabled:!rF(n),onClick:i,children:qz.jsx(ak,{height:12})})]})},iF=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Tc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(fj),a=nF(i.fontSize,t),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=D.useCallback(()=>{o(null)},[]),u=D.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=so();Wr(t)&&al(t,{"font-size":e}),n.dispatchCommand(Rj,{styleKey:"fontSize",styleValue:e})})},[n]),c=D.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=D.useCallback(e=>{u(e)},[u]);return qz.jsx(dw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(vj,{startIcon:e?qz.jsx(gj,{children:a}):void 0,value:a,onClick:s,compact:e}),qz.jsxs(mj,{anchorEl:r,children:[qz.jsx(oF,{fontSize:a,onSelected:d}),qz.jsx(vw,{}),qz.jsx(Bw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:tF.map(e=>qz.jsx(Kw,{"data-font-size":e,onClick:c,children:qz.jsx(gj,{children:nF(e,t)})},e))})]})]})})},aF=Tj(Ej,"InsertTable"),sF=()=>{const[e]=Tc(),t=D.useCallback(()=>{e.dispatchCommand(DD,void 0)},[e]);return qz.jsx(aF,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:qz.jsx(Dz,{height:12})})},lF=Tj(Aj,"Italic"),uF=()=>qz.jsx(lF,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:qz.jsx(Fz,{height:12})}),cF=Tj(Ej,"InsertHyperlink"),dF=()=>{const[e]=Tc(),{blockFormat:t}=D.useContext(fj),n=D.useCallback(()=>{t.isLink?e.dispatchCommand(Au,null):e.dispatchCommand(Au,rD("https://"))},[e,t.isLink]);return qz.jsx(cF,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:qz.jsx($z,{height:12})})};Tj(Ej,"Toggle");const fF=Tj(Aj,"Underline"),pF=()=>qz.jsx(fF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:qz.jsx(Wz,{height:12})}),hF=()=>qz.jsx(vw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var mF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},gF={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"},InsertTable:{value:"Insert table",comment:"Label for toolbar menu option to insert a table. (tew 260205)"},InsertImage:{value:"Insert image",comment:"Label for toolbar menu option to insert an image. (tew 260205)"}},vF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},yF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},bF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},xF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},_F={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},wF={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},kF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},SF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},CF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},EF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},TF={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const AF={de:mF,es:vF,en:gF,fr:yF,it:bF,ja:xF,ko:_F,nl:wF,pl:kF,pt:SF,ru:CF,sv:EF,tr:TF,"de-de":mF,"es-es":vF,"en-us":gF,"fr-fr":yF,"it-it":bF,"ja-jp":xF,"ko-kr":_F,"nl-nl":wF,"pl-pl":kF,"pt-br":SF,"ru-ru":CF,"sv-se":EF,"tr-tr":TF,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function NF(e,t){return e.getEditorState().read(()=>{const e=Hi(t);return null!==e&&e.isSelected()})}function LF(e){const[t]=Tc(),[n,r]=D.useState(()=>NF(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(NF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,D.useCallback(n=>{t.update(()=>{let t=so();Kr(t)||(t=oo(),Ji(t)),Kr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),D.useCallback(()=>{t.update(()=>{const e=so();Kr(e)&&e.clear()})},[t])]}var RF,MF={};var OF=function(){if(RF)return MF;RF=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},MF.Color=u,MF}();function PF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function IF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var zF,DF;var jF=function(){if(DF)return zF;DF=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},zF=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},zF}();let FF=[];const BF=new jF.EventEmitter;BF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==FF.indexOf(t)},BF.setSelected=e=>{FF!==e&&(FF=e,BF.emit("change"))};function $F({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Tc(),s=Rd(),[l,u,c]=LF(n),d=D.useRef(null),[f,p]=D.useState(t);D.useEffect(()=>{p(t)},[t]);const h=D.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),m=D.useMemo(()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){const t=n.qMeasureInfo?.findIndex(t=>t.cId===e);if(void 0!==t&&-1!==t){const e=n?.qDataPages?.[0]?.qMatrix?.[0][t];if(1===e?.qAttrExps?.qValues?.length){const t=e.qAttrExps.qValues[0]?.qText;if(t){const n=new OF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>Vs(a.registerCommand(jt,e=>(a.update(()=>{const t=e,r=so();if(Wr(r)&&l){if(IF(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p(t=>({...t,...e}))}}else if(l&&Kr(r)&&IF(n,r)&&d.current){const e=PF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),a.registerCommand(Rj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&l){const t=so();if(IF(n,t)){const t=PF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),ci),a.registerCommand(Mj,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=so();if(IF(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}}),!1),ci),a.registerCommand(kt,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=so(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),BF.setSelected(e)}),!1),1)),[a,u,c,l,n,m]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&BF.setSelected([]))},[s,c,i]),D.useEffect(()=>{a.update(()=>{!function(e,t){const n=Hi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const g=D.useCallback(e=>{if(s){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update(()=>{const e=so();if(Kr(e)){const t=Hi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Mc.jsx("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e,children:m.value})}const HF="qlik.expression.node";class WF extends YD{__expressionId;static getType(){return HF}static clone(e){return new WF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new WF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:HF,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return Mc.jsx($F,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function UF(e){return e instanceof WF}const KF="ImageNode",GF=wt("INSERT_IMAGE_COMMAND"),YF=()=>{const e={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};return e.id()},VF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===KF)r.id||(r.id=YF()),t.add(r.id),r.tempUrlDef&&(n.add({id:r.id,url:{qStaticContentUrlDef:{qUrl:r.tempUrlDef}}}),delete r.tempUrl,delete r.tempUrlDef);else if("children"in r&&Array.isArray(r.children))for(const e of r.children)VF(e,t,n);return{imageIds:t,newPropertyImages:n}},qF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function JF(e,t,n){try{const r=await t.getProperties();if(r.text=JSON.stringify(e),n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const{images:t,jsonData:n}=((e,t)=>{const n=e,r=t.images||[];let o=new Set;if(n.root){const e=VF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],a=new Set;return r.forEach(e=>{o.has(e.id)&&!a.has(e.id)&&(a.add(e.id),i.push(e))}),{images:i,jsonData:n}})(e,r);r.images=t,r.text=JSON.stringify(n)}await t.setProperties(r)}catch(e){console.error(e)}}function QF(){const[e]=Tc(),t=Rd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&JF(e.getEditorState().toJSON(),r,i)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return o?.on("saveDocument",t),o?.on("reloadData",n),()=>{o?.removeListener("saveDocument",t),o?.removeListener("reloadData",n)}},[o,r]),D.useEffect(()=>{e.setEditable(n)},[n]),D.useEffect(()=>{t&&e.focus()},[t,e]),null}class XF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Hi(e);if(UF(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex(e=>n.getExpressionId()===e);-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function ZF(){const{layout:e,emitter:t,interactionState:n}=D.useContext(B),[r]=Tc(),o=D.useRef(new XF),i=Rd(),a=n?.edit&&e?.permissions?.update;return D.useEffect(()=>{const e=r.registerMutationListener(WF,e=>{r.getEditorState().read(()=>{for(const[t,n]of e)o.current.update(t,n)})});return()=>{e()}},[r]),D.useEffect(()=>{e&&r.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=pa(WF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=so(),{cId:t}=n[n.length-1],r=new WF(t,{}),o=Mr(" "),i=Mr("");Wr(e)?e.insertNodes([i,r,o]):xl(r)}}})},[e,r]),D.useEffect(()=>r.registerCommand($t,e=>("Backspace"===e.key&&r.update(()=>{const e=so();Kr(e)&&e.getNodes().forEach(e=>{UF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[r]),D.useEffect(()=>{if(!i&&a){const e=o.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[i,a,t]),null}const eB=/"/g;function tB(){const{model:e,emitter:t}=D.useContext(B),[n]=Tc(),r=D.useRef(new Map);return D.useEffect(()=>{const o=n.registerMutationListener(kr,e=>{e.forEach((e,t)=>{if("destroyed"===e)r.current.delete(t);else{const e=n.getElementByKey(t)?.style.fontFamily;e&&r.current.set(t,e)}})});async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map(e=>e.replace(eB,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function nB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rB,oB="top",iB="top-right",aB="right",sB="bottom-right",lB="bottom",uB="bottom-left",cB="left",dB="top-left";nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB={},"equal-equal",[oB,lB]),"equal-higher",[lB,sB]),"equal-lower",[oB,iB]),"equal-void",[oB,lB]),"higher-equal",[cB,uB,oB,iB]),"higher-higher-acute",[lB,uB,cB,iB]),"higher-higher-obtuse",[lB,oB]),"higher-lower-negative",[oB,iB,aB]),"higher-lower-positive",[lB,uB,cB]),"higher-void",[oB]),nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB,"lower-equal",[oB]),"lower-higher-negative",[oB,dB]),"lower-higher-positive",[sB]),"lower-lower-acute",[oB,dB,cB,iB,aB]),"lower-lower-obtuse",[oB,lB]),"lower-void",[oB]),"void-equal",[oB]),"void-higher",[oB,lB]),"void-lower",[oB,lB,cB]),"void-void",[oB]),nB(rB,"unclassified",[oB,lB,aB,cB,iB,sB,uB,dB]);var fB,pB,hB=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],mB=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var gB=function(){if(pB)return fB;pB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return fB=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},fB}();function vB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(gB);var xB=1/.7,_B="\\s*([+-]?\\d+)\\s*",wB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SB=/^#([0-9a-f]{3,8})$/,CB=new RegExp(`^rgb\\(${_B},${_B},${_B}\\)$`),EB=new RegExp(`^rgb\\(${kB},${kB},${kB}\\)$`),TB=new RegExp(`^rgba\\(${_B},${_B},${_B},${wB}\\)$`),AB=new RegExp(`^rgba\\(${kB},${kB},${kB},${wB}\\)$`),NB=new RegExp(`^hsl\\(${wB},${kB},${kB}\\)$`),LB=new RegExp(`^hsla\\(${wB},${kB},${kB},${wB}\\)$`),RB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function MB(){return this.rgb().formatHex()}function OB(){return this.rgb().formatRgb()}function PB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?IB(t):3===n?new FB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=CB.exec(e))?new FB(t[1],t[2],t[3],1):(t=EB.exec(e))?new FB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TB.exec(e))?zB(t[1],t[2],t[3],t[4]):(t=AB.exec(e))?zB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NB.exec(e))?KB(t[1],t[2]/100,t[3]/100,1):(t=LB.exec(e))?KB(t[1],t[2]/100,t[3]/100,t[4]):RB.hasOwnProperty(e)?IB(RB[e]):"transparent"===e?new FB(NaN,NaN,NaN,0):null}function IB(e){return new FB(e>>16&255,e>>8&255,255&e,1)}function zB(e,t,n,r){return r<=0&&(e=t=n=NaN),new FB(e,t,n,r)}function DB(e){return e instanceof bB||(e=PB(e)),e?new FB((e=e.rgb()).r,e.g,e.b,e.opacity):new FB}function jB(e,t,n,r){return 1===arguments.length?DB(e):new FB(e,t,n,null==r?1:r)}function FB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function BB(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}`}function $B(){const e=HB(this.opacity);return`${1===e?"rgb(":"rgba("}${WB(this.r)}, ${WB(this.g)}, ${WB(this.b)}${1===e?")":`, ${e})`}`}function HB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function WB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UB(e){return((e=WB(e))<16?"0":"")+e.toString(16)}function KB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new YB(e,t,n,r)}function GB(e){if(e instanceof YB)return new YB(e.h,e.s,e.l,e.opacity);if(e instanceof bB||(e=PB(e)),!e)return new YB;if(e instanceof YB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new YB(a,s,l,e.opacity)}function YB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function VB(e){return(e=(e||0)%360)<0?e+360:e}function qB(e){return Math.max(0,Math.min(1,e||0))}function JB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vB(bB,PB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MB,formatHex:MB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return GB(this).formatHsl()},formatRgb:OB,toString:OB}),vB(FB,jB,yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new FB(WB(this.r),WB(this.g),WB(this.b),HB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BB,formatHex:BB,formatHex8:function(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}${UB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$B,toString:$B})),vB(YB,function(e,t,n,r){return 1===arguments.length?GB(e):new YB(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new YB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new YB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new FB(JB(e>=240?e-240:e+120,o,r),JB(e,o,r),JB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new YB(VB(this.h),qB(this.s),qB(this.l),HB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HB(this.opacity);return`${1===e?"hsl(":"hsla("}${VB(this.h)}, ${100*qB(this.s)}%, ${100*qB(this.l)}%${1===e?")":`, ${e})`}`}}));const QB=Math.PI/180,XB=180/Math.PI,ZB=4/29,e$=6/29,t$=3*e$*e$;function n$(e){if(e instanceof r$)return new r$(e.l,e.a,e.b,e.opacity);if(e instanceof l$)return u$(e);e instanceof FB||(e=DB(e));var t,n,r=s$(e.r),o=s$(e.g),i=s$(e.b),a=o$((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=o$((.4360747*r+.3850649*o+.1430804*i)/.96422),n=o$((.0139322*r+.0971045*o+.7141733*i)/.82521)),new r$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function r$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function o$(e){return e>.008856451679035631?Math.pow(e,1/3):e/t$+ZB}function i$(e){return e>e$?e*e*e:t$*(e-ZB)}function a$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function s$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function l$(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function u$(e){if(isNaN(e.h))return new r$(e.l,0,0,e.opacity);var t=e.h*QB;return new r$(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vB(r$,function(e,t,n,r){return 1===arguments.length?n$(e):new r$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new r$(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new r$(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new FB(a$(3.1338561*(t=.96422*i$(t))-1.6168667*(e=1*i$(e))-.4906146*(n=.82521*i$(n))),a$(-.9787684*t+1.9161415*e+.033454*n),a$(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vB(l$,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof l$)return new l$(e.h,e.c,e.l,e.opacity);if(e instanceof r$||(e=n$(e)),0===e.a&&0===e.b)return new l$(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*XB;return new l$(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new l$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new l$(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new l$(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return u$(this).rgb()}}));var c$=e=>()=>e;function d$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):c$(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?d$:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):c$(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jB(e)).r,(t=jB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=d$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var f$,p$="center",h$="bottom";function m$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function g$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y$)):void 0===t&&(t=v$);for(var n,r,o,i,a,s=new _$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new _$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(x$)}function v$(e){return e.children}function y$(e){return Array.isArray(e)?e[1]:null}function b$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function x$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:p$},{key:"DataRangeIncludingZero",alignment:h$},{key:"LimitedData",alignment:h$},{key:"NegativeOrZeroValues",alignment:h$}].reduce(function(e,t){return e[t.key]=t,e},{}),_$.prototype=g$.prototype={constructor:_$,count:function(){return this.eachAfter(m$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return g$(this).eachBefore(b$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},f$=function(e){
|
|
109
109
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
110
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},f$({exports:{}});const w$=e=>`text-toolbar.${e?.id}`,k$=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),S$=D.forwardRef(k$),C$=Ej(Cj,"InsertImage"),E$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Cc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(GF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Lc.jsx(C$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Lc.jsx(S$,{height:12})}):null};function T$(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=D.useContext(B),a=D.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=D.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?mB:hB}(r),[r]),l=D.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]),u=r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior,c="responsive"===u;return Lc.jsx(O_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:w$(n),children:({TransitionProps:e})=>Lc.jsx(_w,{...e,children:Lc.jsx(Tb,{sx:{borderRadius:1,padding:.25},children:Lc.jsxs(pj,{children:[Lc.jsx(Sj,{compact:!0}),Lc.jsx(pF,{}),Lc.jsx(Zj,{compact:!0,fonts:s}),Lc.jsx(oF,{compact:!0,hidePixels:c}),Lc.jsx(pF,{}),Lc.jsx(Nj,{}),Lc.jsx(lF,{}),Lc.jsx(fF,{}),Lc.jsx(cF,{}),Lc.jsx(Xj,{colorPalette:l}),Lc.jsx(pF,{}),Lc.jsx(bj,{compact:!0}),Lc.jsx(pF,{}),Lc.jsx(Oj,{}),Lc.jsx(pF,{}),Lc.jsx(aF,{}),Lc.jsx(E$,{})]})})})})}function A$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}A$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");A$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const N$=1,L$=8,R$=2,M$=4;function O$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===N$||e===M$?"ew":e===L$||e===R$?"ns":e&L$&&e&M$||e&R$&&e&N$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(N$|M$),i=r.direction&(R$|L$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&R$?-n:n;const o=P$(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Lc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,L$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,L$|N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,R$|N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,R$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,R$|M$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,M$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,L$|M$)}})]})}const P$=(e,t,n)=>Math.min(Math.max(e,t),n),z$=new Map,I$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=z$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}}).then(t=>(z$.set(e,t),t)),z$.set(e,t),t;throw t})(r);D.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Lc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function D$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=NF(a),[d,f]=D.useState(!1),[p]=Cc(),h=Nd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||qF(m,t),[e,m,t]);D.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=D.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=D.useCallback(()=>!!l&&(Yi(null),p.focus(),!0),[l,p]);D.useEffect(()=>Gs(p.registerCommand(Ct,b,1),p.registerCommand(an,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Qt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Lc.jsx(D.Suspense,{fallback:null,children:Lc.jsxs(Lc.Fragment,{children:[Lc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Lc.jsx(I$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>g?.resolve(t,!1),onError:()=>g?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Ct,e.nativeEvent)}})}),i&&l&&w?Lc.jsx(O$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Bi(a);n?.getType()===KF&&n.setWidthAndHeight(e,t)})}}):null]})})}var j$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),F$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),B$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class $$ extends Qo{__props;constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return KF}static clone(e){return new $$({...e.__props,key:e.getKey()})}decorate(){return Lc.jsx(D$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:KF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===$$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||F$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=j$(n);a=B$(a),a=decodeURIComponent(a);return{node:H$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return H$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const H$=e=>new $$(e),W$=document.createElement("img");function U$(e){const t=e.target;return!!(t&&Ra(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Ra(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function K$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===KF?t:null}function G$(e,t){const n=K$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==KF?null:r}(e);if(!r)return!1;const o=qa(n,e=>!Cu(e)&&wu(e));if(e.preventDefault(),U$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=ro();null!=i&&a.applyDOMRange(i),Yi(a),t.dispatchCommand(GF,{...r}),o&&t.dispatchCommand(Eu,o.getURL())}return!0}W$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const V$=()=>{const[e]=Cc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),D.useEffect(()=>Gs(e.registerCommand(GF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=H$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});vo([e]),ka(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,li).selectEnd()}),!0),ci),e.registerCommand(un,t=>{const r=so();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===$$.getType());if(!i)return!1;const a=td(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===$$.getType()){const t={...e};return t.tempUrl=t.tempUrl||qF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return Xc(e,xl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(an,e=>function(e){const t=K$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(W$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:KF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!K$()&&(U$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>G$(t,e),3)),[e,t,o,n]),null};const Y$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Cc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function q$(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=D.useContext(B),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));let l;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;if("responsive"===e){const e=o?.components?.find(e=>"scaleFactor"===e.key)?.scaleFactor||1;l=`calc((${"100cqmin / 480px"}) * ${e})`}}D.useEffect(()=>{!function(e){const t=Object.entries(TF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});$z.configure(t,e)}(t)},[t]);const u=D.useMemo(()=>{if(void 0!==e){const r=e||void 0,o=[...VD,WF];return n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push($$):o.push((t=KF,class e extends Qo{__data;constructor(e={},t){super(t),this.__data=e}static getType(){return t}static clone(t){return new e(t.__data,t.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:t,version:1}}static importJSON(t){return new e(t)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),(e=>{let t=cD.nodes;e.nodes&&(t=cD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...cD,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n]),c=Lc.jsxs(dD,{initialConfig:u,flags:n,children:[Lc.jsx(T$,{}),Lc.jsx(aj,{showPlaceholder:s}),Lc.jsx(oj,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Lc.jsx(V$,{}):null,Lc.jsx(ZF,{}),Lc.jsx(QF,{}),Lc.jsx(tB,{}),Lc.jsx(Y$,{})]});return u?Lc.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Lc.jsx("div",{style:{zoom:l},children:c}):c}):null}const J$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:BF,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}};function Q$({env:e}){return{definition:{type:"items",component:"accordion",items:{data:J$,settings:(t=e.flags,{uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,...t?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&{items:{layoutBehavior:{translation:"properties.layoutBehavior",component:"panel-section",items:{layoutBehaviorSection:{component:"items",ref:"components",key:"layoutBehavior",items:{layoutBehaviorItems:{component:"dropdown",ref:"layoutBehavior",defaultValue:"fixed",options:[{value:"responsive",translation:"properties.responsive"},{value:"fixed",translation:"properties.fixed"}]}}}}},scaleFactor:{translation:"MediaTool.Toolbar.FontSize",component:"panel-section",items:{scaleFactor:{component:"items",ref:"components",key:"scaleFactor",items:{scaleFactorItems:{translation:"MediaTool.Toolbar.FontSize",component:"slider",ref:"scaleFactor",min:.2,max:2,step:.05,defaultValue:1,schemaIgnore:!0}}}},show:(e,t)=>{const n=t.layout.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;return"responsive"===n}}}}}}}}})}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class X${selectedModelId;getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const Z$=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t(()=>{2===g&&f.edit&&f.select&&x(!0)},[g,f]),t(()=>{const t=()=>{f.edit&&f.select&&v(e=>e+1)},n=e=>{const t=document.getElementById(w$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}},[u,f,d]),t(()=>{!h&&y&&p.emit("saveDocument")},[h,p,y]),{edit:h}};function eH(f){const m=new X$,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:Q$({env:f}),component(){const p=o(),h=(n=>{const r=e(()=>I.createRoot(n),[n]);return t(()=>()=>{r?.unmount()},[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r(()=>new Promise(t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&n.add(e.id)}),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}),[]),t(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}})({layout:v,flags:g});t(()=>{const e=e=>{OF(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}},[x,y]),t(()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))},[v,S]);const{edit:A}=Z$({propertyPanelHandlerData:m,flags:g});t(()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(Lc.jsx(j.StrictMode,{children:Lc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f,interactionState:c},children:Lc.jsx(q$,{})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})},[v,h,y,p,A,p,S,x,g,E,b]),t(()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}},[v,_,x]),d(()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}}),[])}}}export{eH as default};
|
|
110
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},f$({exports:{}});const w$=e=>`text-toolbar.${e?.id}`,k$=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),S$=D.forwardRef(k$),C$=Tj(Ej,"InsertImage"),E$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Tc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(GF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(C$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Mc.jsx(S$,{height:12})}):null};function T$(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=D.useContext(B),a=D.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=D.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?mB:hB}(r),[r]),l=D.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]),u=r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior,c="responsive"===u;return Mc.jsx(I_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:w$(n),children:({TransitionProps:e})=>Mc.jsx(kw,{...e,children:Mc.jsx(Nb,{sx:{borderRadius:1,padding:.25},children:Mc.jsxs(hj,{children:[Mc.jsx(Cj,{compact:!0}),Mc.jsx(hF,{}),Mc.jsx(eF,{compact:!0,fonts:s}),Mc.jsx(iF,{compact:!0,hidePixels:c}),Mc.jsx(hF,{}),Mc.jsx(Lj,{}),Mc.jsx(uF,{}),Mc.jsx(pF,{}),Mc.jsx(dF,{}),Mc.jsx(Zj,{colorPalette:l}),Mc.jsx(hF,{}),Mc.jsx(xj,{compact:!0}),Mc.jsx(hF,{}),Mc.jsx(Pj,{}),Mc.jsx(hF,{}),Mc.jsx(sF,{}),Mc.jsx(E$,{})]})})})})}function A$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}A$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");A$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const N$=1,L$=8,R$=2,M$=4;function O$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===N$||e===M$?"ew":e===L$||e===R$?"ns":e&L$&&e&M$||e&R$&&e&N$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(N$|M$),i=r.direction&(R$|L$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&R$?-n:n;const o=P$(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Mc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,L$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,L$|N$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,N$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,R$|N$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,R$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,R$|M$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,M$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,L$|M$)}})]})}const P$=(e,t,n)=>Math.min(Math.max(e,t),n),I$=new Map,z$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=I$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}}).then(t=>(I$.set(e,t),t)),I$.set(e,t),t;throw t})(r);D.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Mc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function D$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=LF(a),[d,f]=D.useState(!1),[p]=Tc(),h=Rd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||qF(m,t),[e,m,t]);D.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=D.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=D.useCallback(()=>!!l&&(Ji(null),p.focus(),!0),[l,p]);D.useEffect(()=>Vs(p.registerCommand(Ct,b,1),p.registerCommand(an,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Qt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Mc.jsx(D.Suspense,{fallback:null,children:Mc.jsxs(Mc.Fragment,{children:[Mc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Mc.jsx(z$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>g?.resolve(t,!1),onError:()=>g?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Ct,e.nativeEvent)}})}),i&&l&&w?Mc.jsx(O$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Hi(a);n?.getType()===KF&&n.setWidthAndHeight(e,t)})}}):null]})})}var j$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),F$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),B$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class $$ extends Qo{__props;constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return KF}static clone(e){return new $$({...e.__props,key:e.getKey()})}decorate(){return Mc.jsx(D$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:KF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===$$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||F$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=j$(n);a=B$(a),a=decodeURIComponent(a);return{node:H$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return H$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const H$=e=>new $$(e),W$=document.createElement("img");function U$(e){const t=e.target;return!!(t&&Oa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Oa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function K$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===KF?t:null}function G$(e,t){const n=K$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==KF?null:r}(e);if(!r)return!1;const o=Qa(n,e=>!Tu(e)&&Su(e));if(e.preventDefault(),U$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=ro();null!=i&&a.applyDOMRange(i),Ji(a),t.dispatchCommand(GF,{...r}),o&&t.dispatchCommand(Au,o.getURL())}return!0}W$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const Y$=()=>{const[e]=Tc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),D.useEffect(()=>Vs(e.registerCommand(GF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=H$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});vo([e]),Ca(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,li).selectEnd()}),!0),ci),e.registerCommand(un,t=>{const r=so();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===$$.getType());if(!i)return!1;const a=rd(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===$$.getType()){const t={...e};return t.tempUrl=t.tempUrl||qF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return ed(e,wl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(an,e=>function(e){const t=K$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(W$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:KF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!K$()&&(U$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>G$(t,e),3)),[e,t,o,n]),null};const V$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Tc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function q$(e,t){try{const n=function(e){const t=pi(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw new Error(`${e} is not supported in headless mode`)}}),t}({nodes:[...t||[],vd,hd,pc,lc]});return n.update(()=>{const t=new DataTransfer;t.setData("text/html",e),Jc(t,Vi().select(0,0),n)},{discrete:!0}),JSON.stringify(n.getEditorState().toJSON())}catch(e){console.error("Failed to convert seed data to editor state",e)}}function J$(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=D.useContext(B),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));let l;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;if("responsive"===e){const e=o?.components?.find(e=>"scaleFactor"===e.key)?.scaleFactor||1;l=`calc((${"100cqmin / 480px"}) * ${e})`}}D.useEffect(()=>{!function(e){const t=Object.entries(AF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});HI.configure(t,e)}(t)},[t]);const u=o?.seedData,c=D.useMemo(()=>{if(void 0!==e){let r=e||void 0;const o=[...VD,WF];return n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push($$):o.push((t=KF,class e extends Qo{__data;constructor(e={},t){super(t),this.__data=e}static getType(){return t}static clone(t){return new e(t.__data,t.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:t,version:1}}static importJSON(t){return new e(t)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")&&u&&!r&&(r=q$(u,o)),(e=>{let t=dD.nodes;e.nodes&&(t=dD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...dD,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n,u]),d=Mc.jsxs(fD,{initialConfig:c,flags:n,children:[Mc.jsx(T$,{}),Mc.jsx(sj,{showPlaceholder:s}),Mc.jsx(ij,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(Y$,{}):null,Mc.jsx(ZF,{}),Mc.jsx(QF,{}),Mc.jsx(tB,{}),Mc.jsx(V$,{})]});return c?Mc.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Mc.jsx("div",{style:{zoom:l},children:d}):d}):null}const Q$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:BF,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}};function X$({env:e}){return{definition:{type:"items",component:"accordion",items:{data:Q$,settings:(t=e.flags,{uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,...t?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&{items:{layoutBehavior:{translation:"properties.layoutBehavior",component:"panel-section",items:{layoutBehaviorSection:{component:"items",ref:"components",key:"layoutBehavior",items:{layoutBehaviorItems:{component:"dropdown",ref:"layoutBehavior",defaultValue:"fixed",options:[{value:"responsive",translation:"properties.responsive"},{value:"fixed",translation:"properties.fixed"}]}}}}},scaleFactor:{translation:"MediaTool.Toolbar.FontSize",component:"panel-section",items:{scaleFactor:{component:"items",ref:"components",key:"scaleFactor",items:{scaleFactorItems:{translation:"MediaTool.Toolbar.FontSize",component:"slider",ref:"scaleFactor",min:.2,max:2,step:.05,defaultValue:1,schemaIgnore:!0}}}},show:(e,t)=>{const n=t.layout.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;return"responsive"===n}}}}}}}}})}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class Z${selectedModelId;getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const eH=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t(()=>{2===g&&f.edit&&f.select&&x(!0)},[g,f]),t(()=>{const t=()=>{f.edit&&f.select&&v(e=>e+1)},n=e=>{const t=document.getElementById(w$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}},[u,f,d]),t(()=>{!h&&y&&p.emit("saveDocument")},[h,p,y]),{edit:h}};function tH(f){const m=new Z$,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:X$({env:f}),component(){const p=o(),h=(n=>{const r=e(()=>z.createRoot(n),[n]);return t(()=>()=>{r?.unmount()},[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r(()=>new Promise(t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&n.add(e.id)}),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}),[]),t(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}})({layout:v,flags:g});t(()=>{const e=e=>{!async function(e,t){try{if(e){const n=await e.getProperties(),{qHyperCubeDef:r}=n;if(r){const o=new Set(t),i=r.qMeasures?.filter(e=>!e?.qDef?.cId||!o.has(e.qDef.cId));if(r.qMeasures?.length!==i?.length){r.qMeasures=i,r.qInterColumnSortOrder=[];const t={...n,qHyperCubeDef:r};await e.setProperties(t)}}}}catch(e){console.error(e)}}(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}},[x,y]),t(()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))},[v,S]);const{edit:A}=eH({propertyPanelHandlerData:m,flags:g});t(()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(Mc.jsx(j.StrictMode,{children:Mc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f,interactionState:c},children:Mc.jsx(J$,{})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})},[v,h,y,p,A,p,S,x,g,E,b]),t(()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}},[v,_,x]),d(()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}}),[])}}}export{tH as default};
|