@nebula.js/sn-text 1.8.0 → 1.9.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 +1 -1
- 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 +22 -21
- 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.9.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.8.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 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.9.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 M(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 L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},O={transition:null},P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function I(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!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:L}},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 R.current.useCallback(e,t)},k.useContext=function(e){return R.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return R.current.useDeferredValue(e)},k.useEffect=function(e,t){return R.current.useEffect(e,t)},k.useId=function(){return R.current.useId()},k.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return R.current.useMemo(e,t)},k.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},k.useRef=function(e){return R.current.useRef(e)},k.useState=function(e){return R.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return R.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,M,L={exports:{}},R={};function O(){return T||(T=1,L.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,R(_);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 M=new MessageChannel,L=M.port2;M.port1.onmessage=N,w=function(){L.postMessage(null)}}else w=function(){g(N,0)};function R(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,R(_))},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,R(_))),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}}}}(R)),R)),L.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!==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 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&&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,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=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=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=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,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;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:Y||!V&&!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===Yi().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 zn(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 In(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,In(r,o)&&In(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=Yi(),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&&zn(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&&!Y?(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,zt,e);break;case"deleteByDrag":case"deleteByCut":va(r,zt,e);break;case"deleteContent":va(r,Lt,!1);break;case"deleteWordBackward":va(r,It,!0);break;case"deleteWordForward":va(r,It,!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)&&zn(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,Yt,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,Vt,e);else if(function(e){return aa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Nn=!0,va(t,Yt,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,Yt,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,It,!0);else if(function(e){return aa(e,"Delete",la)}(e))e.preventDefault(),va(t,It,!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 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=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=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=Ni(e);Ti(o)?(!function(e){if(null!==e._parentEditor){const t=Zi(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();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 zi(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=zi(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=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&&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(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,Oa(n)){const e=n.style.display;if(""===e&&!Ia(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 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=da(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 Ta(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 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]=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=zi(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&&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=zs(i.anchor,n),s=zs(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(Is(e)){c=Ds(e);break}for(const e of s)if(Is(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(Is);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 Yi().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]=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=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&&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!(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()&&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.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 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(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=Yi().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 Yi().append(e),e.select(),[Yi(),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 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=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=Vi(t),o=Vi(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),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();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&&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&&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||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: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 zi(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 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 Yi().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(Yi())}))}}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=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,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}Ja(t);{const e=t.name,o=Ya(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=>{Ya(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Ya(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`),Ya(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 Ys(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=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&&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=Yi();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 zi(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 Ii(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 Vi(e){return e.read(()=>Yi().getTextContent())}function Yi(){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),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=$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 za(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 za(e){return Pa(e)&&11===e.nodeType}function Ia(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 Va(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ya(e,t){return Va(e,t)&&e[t]!==rr[t]}function qa(e){return Va(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===Yo||e===rr}(e),r=!n&&Ya(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&&(Ya(e,"getType")||(e.getType=()=>i),Ya(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)),Ya(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))),!Ya(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(Yi(),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 zs(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 Is(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 Vs(e,...t){const n=Ks(...t);n.length>0&&e.classList.remove(...n)}function Ys(...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]=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=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(Yi(),"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)&&zl(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 zl(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 Il(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&&!zl(this))return this.f&=-2,!0;const e=El;try{Il(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),Il(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 Vl=0,Yl=1,ql=2,Jl=3,Ql=4,Xl=5,Zl=6,eu=7;function tu(e){return e.id===Vl}function nu(e){return e.id===ql}function ru(e){return function(e){return e.id===Yl}(e)||Kl(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Yl)} 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:Vl}}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=Yi();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,zr,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=Ys(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(Vl)} unmarked)`),o=Object.assign(a,{id:Yl}),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 Ys(...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 Ys(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 Yo{__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 zu(e){return Pu.test(e)}function Iu(e){return zu(e[e.length-1])}function Du(e){return zu(e[0])}function ju(e){let t=e.getPreviousSibling();return qo(t)&&(t=t.getLastDescendant()),null===t||mr(t)||Or(t)&&Iu(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?zu(n[e-1]):ju(r[0])))return!1;return t<n.length?zu(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 Ys(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()||Iu(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 Vu(e){throw new Error(e)}function Yu(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}Vu("A ListItemNode must have a ListNode for a parent.")}return t}return t}function qu(e){let t=e.getParent();bc(t)||Vu("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&&Vu("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=Ii(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)||Vu("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 Yo{__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:Yo,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&&Vs(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)||Vu("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)||Vu("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&&Vu("Invalid indent value."),(e=Math.floor(e))>=0||Vu("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 Yo{__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:Yo,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=Yu(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&&Vs(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=Ys(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(Ii(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=Yu(o);n+1<Yu(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,zc={tag:ir};function Ic({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=Yi();if(t.isEmpty()){const n=li();t.append(n);const r=Oc?document.activeElement:null;(null!==so()||null!==r&&r===e.getRootElement())&&n.select()}},zc);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,zc);break}case"object":e.setEditorState(t,zc);break;case"function":e.update(()=>{Yi().isEmpty()&&t(e)},zc)}}(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 Ys(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(()=>Ys(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=Vc(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)||za(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(za(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Gc=new Set(["STYLE","SCRIPT"]);function Vc(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(...Vc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),Da(e)&&(f=Yc(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 Ia(e.nextSibling)&&Ia(e.previousSibling)}(e)&&(a=a.concat(hr())):qo(s)&&s.append(...f),a}function Yc(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([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=Ns(e.anchor,"previous");if(n)if(as(n))t=n.origin;else{const e=ws(n,gs(Yi(),"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=Yi().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=Yi().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 Yo{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 Yo{__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=Ys(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)Jc(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,()=>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(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===Yi().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(Yt,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=Yi();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",zd="#f44336",Id="#d32f2f",Dd="#c62828",jd="#f3e5f5",Fd="#ce93d8",Bd="#ba68c8",$d="#ab47bc",Hd="#9c27b0",Wd="#7b1fa2",Ud="#e3f2fd",Kd="#90caf9",Gd="#42a5f5",Vd="#1976d2",Yd="#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 zf(e){return e.length}function If(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 Vf(){return Mf(Hf,Bf)}function Yf(){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=Vf())&&$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,Yf()+(t<6&&32==Vf()&&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!==Vf()););return"/*"+qf(t,Bf-1)+"*"+Tf(47===e?e:Gf())}function op(e){for(;!Jf(Vf());)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(Yf()-1,7);continue;case 47:switch(Vf()){case 42:case 47:If(lp(rp(Gf(),Yf()),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&&If(p>32?up(k+";",r,n,d-1):up(Lf(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(If(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&&If(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===Vf()&&(k+=Zf(Gf())),f=Vf(),c=d=Pf(b=k+=op(Yf())),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=zf(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=zf(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=Vf(),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===Vf()&&(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===Vf()?"&\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=zf(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}(),zp=m(Pp);function Ip(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()}),Vp=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"},Yp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qp=["normal","none","initial","inherit","unset"],Jp=Vp,Qp=/^-ms-/,Xp=/-(.)/g,Zp={};Vp=function(e,t){if("content"===e&&("string"!=typeof t||-1===qp.indexOf(t)&&!Yp.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)+":"+Vp(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)+":"+Vp(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=Ip(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=Ip(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 zh="undefined"!=typeof globalThis?globalThis:Oh?window:global,Ih="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";zh[Ih]&&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."),zh[Ih]=!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=Ip(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,Vh,Yh,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(Yh)return Vh;Yh=1;var e=Qh();function t(){}function n(){}return n.resetWarningCache=t,Vh=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})}
|
|
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"),M=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=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 M: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 L:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function 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 Me=!1;function Le(e,t,n){if(Me)return e(t,n);Me=!0;try{return Ae(e,t,n)}finally{Me=!1,(null!==ke||null!==Se)&&(Ne(),Te())}}function Re(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 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,Mt=null,Lt=new Map,Rt=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":Mt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.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!==Mt&&jt(Mt)&&(Mt=null),Lt.forEach(Ft),Rt.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!==Mt&&$t(Mt,e),Lt.forEach(t),Rt.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),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 Mt=zt(Mt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lt.set(i,zt(Lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,zt(Rt.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,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})),Mn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=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}),Rn=on(Ln),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,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)),Le(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"),Mr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Mr.set(e,t),i(t,[e])}for(var Or=0;Or<Lr.length;Or++){var Pr=Lr[Or];Rr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Rr(Er,"onAnimationEnd"),Rr(Tr,"onAnimationIteration"),Rr(Ar,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(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=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}Le(function(){var r=i,o=_e(n),a=[];e:{var s=Mr.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=Mn;break;case"scroll":l=fn;break;case"wheel":l=Rn;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=Re(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=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=Re(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Re(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=Re(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Re(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),Mo=Co(!1),Lo=Ao;function Ro(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(Mo),Eo(No)}function Io(e,t,r){if(No.current!==Ao)throw Error(n(168));To(No,t),To(Mo,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,Lo=No.current,To(No,e),To(Mo,Mo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Lo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Mo),Eo(No),To(No,e)):Eo(Mo),To(Mo,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=Lu(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=Lu(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===R&&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 R: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 R: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 R: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===R&&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 R: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 Mi(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Li(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 Ri=null;function Oi(e){null===Ri?Ri=[e]:Ri.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),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,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,La(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 Ma(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 La(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 Ra(){return ba().memoizedState}function Oa(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=La(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=La(t,n,i,r))}sa.flags|=e,o.memoizedState=La(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 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:Li,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:Li,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Li,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=Va.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ma,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ma(!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,La(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:Li,useCallback:Ha,useContext:Li,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:_a,useRef:Ra,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:Li,useCallback:Ha,useContext:Li,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ra,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=Li(i):(o=Oo(t)?Lo:No.current,i=(r=null!=(r=t.contextTypes))?Ro(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=Li(i):(i=Oo(t)?Lo:No.current,o.context=Ro(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 Mi(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||Ru(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,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Rl),Rl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Rl),Rl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Rl),Rl|=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)?Lo:No.current;return i=Ro(t,i),Mi(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(Mi(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=Li(u):u=Ro(t,u=Oo(n)?Lo: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||Mo.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=Li(l):l=Ro(t,l=Oo(n)?Lo: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||Mo.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 Ms(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Ls,Rs,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&&(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=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 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(Mo),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))),Rs(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<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":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,Ls(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":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(),Rs(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&Rl)&&(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(Mo),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}}Ls=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}},Rs=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,Ml=null,Ll=0,Rl=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,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!==Ll?Ll&-Ll: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,Ll)),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?Ll: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?Ll: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&&Ll===t||(Wl=null,Hl=Qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Ml?t=0:(Nl=null,Ll=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!==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(){Rl=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!==Ml)for(n=Ml.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Qi(),Eo(Mo),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,Ml=e=Ou(e.current,null),Ll=Rl=t,Pl=0,Il=null,jl=Dl=zl=0,Bl=Fl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[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}Ri=null}return e}function pu(e,t){for(;;){var r=Ml;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,Ml=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ll,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,Ml===r&&null!==r&&(Ml=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,Ll)}function gu(e,t){var r=Al;Al|=2;var o=hu();for(Nl===e&&Ll===t||(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Ml)throw Error(n(261));return Nl=null,Ll=0,Pl}function vu(){for(;null!==Ml;)bu(Ml)}function yu(){for(;null!==Ml&&!qe();)bu(Ml)}function bu(e){var t=kl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?xu(e):Ml=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(Ml=n);if(null===e)return Pl=6,void(Ml=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Rl)))return void(Ml=n);if(null!==(t=t.sibling))return void(Ml=t);Ml=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&&(Ml=Nl=null,Ll=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&&(Ll&n)===n&&(4===Pl||3===Pl&&(130023424&Ll)===Ll&&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 Ve(e,t)}function Mu(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 Lu(e,t,n,r){return new Mu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Lu(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)Ru(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=Lu(12,r,t,2|i)).elementType=k,e.lanes=a,e;case N:return(e=Lu(13,r,t,i)).elementType=N,e.lanes=a,e;case M:return(e=Lu(19,r,t,i)).elementType=M,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 L:s=14;break e;case R:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Lu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Lu(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=Lu(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||Mo.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=Ro(t,No.current);Mi(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 Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===L)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=Ms(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ms(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&&!Mo.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,Mi(t,r),o=o(i=Li(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,Mi(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=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));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 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(M)return b;M=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,handlePasteData: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&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Y=H&&/Android/.test(navigator.userAgent),q=H&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!Y,J=H&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Q=H&&Y&&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=q||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";class ye{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){const e=Array.from(this._front).reverse();for(const t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}}function be(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(ii(a)&&be(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let xe=!1,_e=0;function we(e){_e=e.timeStamp}function ke(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==ta(e,n)}function Se(e,t,n){const r=Ha(Ia(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&ha(t,a,o,i,!1)}function Ce(e,t,n){if(Qr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Wi(t)&&n.isAttached()}function Ee(e,t,n,r){for(let o=e;o&&!os(o);o=Ma(o)){const e=ta(o,t);if(void 0!==e){const t=Zi(e,n);if(t)return li(t)||!Ua(o)?void 0:[o,t]}else if(o===r)return[r,aa(n)]}}function Te(e,t,n){xe=!0;const r=performance.now()-_e>100;try{ti(e,()=>{const o=go()||function(e){return e.getEditorState().read(()=>{const e=go();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=Ee(p,e,s,a);if(!h)continue;const[m,g]=h;if("characterData"===f)r&&$r(g)&&Wi(p)&&Ce(o,p,g)&&Se(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=ea(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!ke(r,i,e)){if(K){const e=(Ua(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];(ke(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||ke(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&sa(o),K&&Ta(e)&&o.insertRawText(c))})}finally{xe=!1}}function Ae(e){const t=e._observer;if(null!==t){Te(e,t.takeRecords(),t)}}function Ne(e){!function(e){0===_e&&Ia(e).addEventListener("textInput",we,!0)}(e),e._observer=new MutationObserver((t,n)=>{Te(e,t,n)})}class Me{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||ze).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}}function Le(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}=ls(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 Re{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 Ie(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 Re(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=Ie(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 Oe(e){return e.__state?e.__state.sharedNodeState:Ri(Ja(),e.getType()).sharedNodeState}function Pe(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Oe(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 Re(t,Oe(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Ie(e){if(e)for(const t in e)return e}function ze(e){return e}function De(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 je(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 Fe(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Be(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;const n=new Set;return!(e&&De(n,e,t)||t&&De(n,t,e)||e&&je(n,e,t)||t&&je(n,t,e))}(l,u))}function $e(e,t){const n=e.mergeWithSibling(t),r=Fo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function He(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&$r(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Be(t,r)){r=$e(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&$r(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Be(r,n)){r=$e(r,n);break}break}n.remove()}}else r.remove()}function We(e){return Ue(e.anchor),Ue(e.focus),e}function Ue(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),$r(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!ii(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ke,Ge,Ve,Ye,qe,Je,Qe,Xe,Ze,et,tt,nt="",rt=null,ot=null,it=!1,at=!1;function st(e,t){const n=Qe.get(e);if(null!==t){const n=St(e);n.parentNode===t&&t.removeChild(n)}if(Xe.has(e)||Ge._keyToDOMMap.delete(e),ii(n)){const e=cs(n,Qe);lt(e,0,e.length-1,null)}void 0!==n&&ka(et,Ve,Ye,n,"destroyed")}function lt(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&st(t,r)}}function ut(e,t){e.setProperty("text-align",t)}const ct="40px";function dt(e,t){const n=Ke.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(Ge._rootElement||e).getPropertyValue("--lexical-indent-base-value")||ct;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function ft(e,t){const n=e.style;0===t?ut(n,""):1===t?ut(n,"left"):2===t?ut(n,"center"):3===t?ut(n,"right"):4===t?ut(n,"justify"):5===t?ut(n,"start"):6===t&&ut(n,"end")}function pt(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ci(e))return null;const n=e.getParentOrThrow();return ci(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ht(e,t){const n=Xe.get(e);void 0===n&&$("createNode: node does not exist in nodeMap");const r=tt.$createDOM(n,Ge);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,Ge),$r(n)?r.setAttribute("data-lexical-text","true"):li(n)&&r.setAttribute("data-lexical-decorator","true"),ii(n)){const e=n.__indent,t=n.__size;if(pt(r,n),0!==e&&dt(r,e),0!==t){const e=t-1;mt(cs(n,Xe),n,0,e,tt.$getDOMSlot(n,r,Ge))}const o=n.__format;0!==o&&ft(r,o),n.isInline()||vt(null,n,r)}else{const t=n.getTextContent();if(li(n)){const t=n.decorate(Ge,Ke);null!==t&&xt(e,t),r.contentEditable="false"}nt+=t}return null!==t&&t.insertChild(r),tt.$decorateDOM(n,null,r,Ge),Object.freeze(n),ka(et,Ve,Ye,n,"created"),r}function mt(e,t,n,r,o){const i=nt;nt="";let a=n;for(;a<=r;++a){ht(e[a],o);const t=Xe.get(e[a]);null!==t&&$r(t)?null===rt&&(rt=t.getFormat(),ot=t.getStyle()):ii(t)&&a<r&&!t.isInline()&&(nt+=ue)}o.element.__lexicalTextContent=nt,nt=i+nt}function gt(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return kr(e)?"line-break":li(e)&&e.isInline()?"decorator":null}return"empty"}return null}function vt(e,t,n){const r=gt(e,Qe),o=gt(t,Xe);r!==o&&tt.$getDOMSlot(t,n,Ge).setManagedLineBreak(o)}function yt(e,t,n){var r;rt=null,ot=null,function(e,t,n){const r=nt,o=e.__size,i=t.__size;nt="";const a=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)bt(n,a);else{const e=St(n),t=ht(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}st(n,null)}const o=Xe.get(r);$r(o)&&null===rt&&(rt=o.getFormat(),ot=o.getStyle())}else{const r=cs(e,Qe),s=cs(t,Xe);if(r.length!==o&&$("$reconcileChildren: prevChildren.length !== prevChildrenSize"),s.length!==i&&$("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&mt(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;lt(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=_t(bt(r,i.element)),d++,f++;else{if(void 0===u&&(u=wt(n,f)),void 0===l)l=wt(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=_t(St(e)),st(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=Na(Ge,r);e!==c&&i.withBefore(c).insertChild(e),c=_t(bt(r,i.element)),d++,f++}else ht(r,i.withBefore(c)),f++}const o=Xe.get(r);null!==o&&$r(o)?null===rt&&(rt=o.getFormat(),ot=o.getStyle()):ii(o)&&f<=s&&!o.isInline()&&(nt+=ue)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:Ge.getElementByKey(e);mt(n,0,f,s,i.withBefore(t))}else h&&!p&<(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=nt,nt=r+nt}(e,t,tt.$getDOMSlot(t,n,Ge)),r=t,null==rt||rt===r.__textFormat||at||r.setTextFormat(rt),function(e){null==ot||ot===e.__textStyle||at||e.setTextStyle(ot)}(t)}function bt(e,t){const n=Qe.get(e);let r=Xe.get(e);void 0!==n&&void 0!==r||$("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=it||Je.has(e)||qe.has(e),i=Na(Ge,e);if(n===r&&!o){let e;if(ii(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return nt+=e,i}if(n!==r&&o&&ka(et,Ve,Ye,r,"updated"),tt.$updateDOM(r,n,i,Ge)){const n=ht(e,null);return null===t&&$("reconcileNode: parentDOM is null"),t.replaceChild(n,i),st(e,null),n}if(ii(n)){ii(r)||$(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(it||t!==n.__indent)&&dt(i,t);const a=r.__format;if((it||a!==n.__format)&&ft(i,a),o)yt(n,r,i),ci(r)||r.isInline()||vt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),nt+=t}if((it||r.__dir!==n.__dir)&&(pt(i,r),ci(r)&&!it))for(const e of r.getChildren())if(ii(e)){pt(Na(Ge,e.getKey()),e)}}else{const t=r.getTextContent();if(li(r)){const t=r.decorate(Ge,Ke);null!==t&&xt(e,t)}nt+=t}if(!at&&ci(r)&&r.__cachedText!==nt){const e=r.getWritable();e.__cachedText=nt,r=e}return tt.$decorateDOM(r,n,i,Ge),Object.freeze(r),i}function xt(e,t){let n=Ge._pendingDecorators;const r=Ge._decorators;if(null===n){if(r[e]===t)return;n=ra(Ge)}n[e]=t}function _t(e){let t=e.nextSibling;return null!==t&&t===Ge._blockCursorElement&&(t=t.nextSibling),t}function wt(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function kt(e,t,n,r,o,i){nt="",it=2===r,Ge=n,Ke=n._config,tt=n._config.dom||Si,Ve=n._nodes,Ye=Ge._listeners.mutation,qe=o,Je=i,Qe=e._nodeMap,Xe=t._nodeMap,at=t._readOnly,Ze=new Map(n._keyToDOMMap);const a=new Map;return et=a,bt("root",null),Ge=void 0,Ve=void 0,qe=void 0,Je=void 0,Qe=void 0,Xe=void 0,Ke=void 0,Ze=void 0,et=void 0,tt=Si,a}function St(e){const t=Ze.get(e);return void 0===t&&$(`Reconciliation: could not find DOM element for node key ${e}`),t}function Ct(e){return{type:e}}const Et=Ct("SELECTION_CHANGE_COMMAND"),Tt=Ct("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),At=Ct("CLICK_COMMAND"),Nt=Ct("BEFORE_INPUT_COMMAND"),Mt=Ct("INPUT_COMMAND"),Lt=Ct("COMPOSITION_START_COMMAND"),Rt=Ct("COMPOSITION_END_COMMAND"),Ot=Ct("DELETE_CHARACTER_COMMAND"),Pt=Ct("INSERT_LINE_BREAK_COMMAND"),It=Ct("INSERT_PARAGRAPH_COMMAND"),zt=Ct("CONTROLLED_TEXT_INSERTION_COMMAND"),Dt=Ct("PASTE_COMMAND"),jt=Ct("REMOVE_TEXT_COMMAND"),Ft=Ct("DELETE_WORD_COMMAND"),Bt=Ct("DELETE_LINE_COMMAND"),$t=Ct("FORMAT_TEXT_COMMAND"),Ht=Ct("UNDO_COMMAND"),Wt=Ct("REDO_COMMAND"),Ut=Ct("KEYDOWN_COMMAND"),Kt=Ct("KEY_ARROW_RIGHT_COMMAND"),Gt=Ct("MOVE_TO_END"),Vt=Ct("KEY_ARROW_LEFT_COMMAND"),Yt=Ct("MOVE_TO_START"),qt=Ct("KEY_ARROW_UP_COMMAND"),Jt=Ct("KEY_ARROW_DOWN_COMMAND"),Qt=Ct("KEY_ENTER_COMMAND"),Xt=Ct("KEY_SPACE_COMMAND"),Zt=Ct("KEY_BACKSPACE_COMMAND"),en=Ct("KEY_ESCAPE_COMMAND"),tn=Ct("KEY_DELETE_COMMAND"),nn=Ct("KEY_TAB_COMMAND"),rn=Ct("INSERT_TAB_COMMAND"),on=Ct("INDENT_CONTENT_COMMAND"),an=Ct("OUTDENT_CONTENT_COMMAND"),sn=Ct("DROP_COMMAND"),ln=Ct("FORMAT_ELEMENT_COMMAND"),un=Ct("DRAGSTART_COMMAND"),cn=Ct("DRAGOVER_COMMAND"),dn=Ct("DRAGEND_COMMAND"),fn=Ct("COPY_COMMAND"),pn=Ct("CUT_COMMAND"),hn=Ct("SELECT_ALL_COMMAND"),mn=Ct("CLEAR_EDITOR_COMMAND"),gn=Ct("CLEAR_HISTORY_COMMAND"),vn=Ct("CAN_REDO_COMMAND"),yn=Ct("CAN_UNDO_COMMAND"),bn=Ct("FOCUS_COMMAND"),xn=Ct("BLUR_COMMAND"),_n=Ct("KEY_MODIFIER_COMMAND"),wn=Object.freeze({}),kn=[["keydown",function(e,t){if(Sn=e.timeStamp,Cn=e.key,t.isComposing())return;Aa(t,Ut,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Ka(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&ti(t,()=>{Ii(n)||(Ln=!0)})}],["compositionstart",function(e,t){Aa(t,Lt,e)}],["compositionend",function(e,t){K?On=!0:V||!q&&!X?Aa(t,Rt,e):(Pn=!0,In=e.data)}],["input",function(e,t){e.stopPropagation(),ti(t,()=>{t.dispatchCommand(Mt,e)},{event:e}),Tn=null}],["click",function(e,t){ti(t,()=>{const n=go(),r=Ha(Ia(t)),o=vo();if(r)if(Qr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ci(i)&&1===ia().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=us(i,e=>ii(e)&&!e.isInline());ii(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Ua(n)||Wi(n)){sa(ho(o,r,t,e))}}Aa(t,At,e)})}],["cut",wn],["copy",wn],["dragstart",wn],["dragover",wn],["dragend",wn],["paste",wn],["focus",wn],["blur",wn],["drop",wn]];G&&kn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||K&&Ta(t))return;if("insertCompositionText"===n)return;Aa(t,Nt,e)}(e,t)]);let Sn=0,Cn=null,En=0,Tn=null;const An=new WeakMap,Nn=new WeakMap;let Mn=!1,Ln=!1,Rn=!1,On=!1,Pn=!1,In="",zn=null,Dn=[0,"",0,"root",0];function jn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=Fo(),u=Ha(Ia(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!$r(s)||(!o&&(!G||En<r+50)||s.isDirty()&&p<2||ua(n))&&i.offset!==a.offset&&!s.isComposing()||Hi(s)||s.isDirty()&&p>1||(o||!G)&&null!==f&&!s.isComposing()&&c!==Ki(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=$i(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return($r(t)||ii(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function Fn(e,t){return Wi(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Bn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;Mn&&(Mn=!1,Fn(r,o)&&Fn(i,a)&&!zn)||ti(t,()=>{if(!n)return void sa(null);if(!Di(t,r,i))return;let s=go();if(zn&&Qr(s)&&s.isCollapsed()){const e=s.anchor,t=zn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=zn.clone(),sa(s))}if(zn=null,Qr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=Ia(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=Dn,f=ia(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)$n(s,a,l);else if("text"===n.type)$r(r)||$("Point.getNode() must return TextNode when type is text"),Hn(s,r);else if("element"===n.type&&!p){ii(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();$n(e,n,r)}(s,e):$n(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($r(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}}Aa(t,Et,void 0)})}function $n(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Hn(e,t){$n(e,t.getFormat(),t.getStyle())}function Wn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Un(e){const t=e.inputType,n=Wn(e),r=Fo(),o=go();if("deleteContentBackward"===t){if(null===o){const e=vo();if(!Qr(e))return!0;sa(e.clone())}if(Qr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===Cn&&i<Sn+30&&r.isComposing()&&t){if(Qi(null),Sn=0,setTimeout(()=>{ti(r,()=>{Qi(null)})},30),Qr(o)){const e=o.anchor.getNode();e.markDirty(),$r(e)||$("Anchor node must be a TextNode"),Hn(o,e)}}else{Qi(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=!li(Ea(o.anchor,!0))),!l){Aa(r,Ot,!0);const e=go();Q&&Qr(e)&&e.isCollapsed()&&(zn=e,setTimeout(()=>zn=null))}}return!0}}var i;if(!Qr(o))return!0;const a=e.data;null!==Tn&&pa(!1,r,Tn),o.dirty&&null===Tn||!o.isCollapsed()||ci(o.anchor.getNode())||null===n||o.applyDOMRange(n),Tn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),Aa(r,Pt,!1);else if(a===ue)e.preventDefault(),Aa(r,It,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&jn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),Aa(r,zt,a)):Tn=a;return En=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Aa(r,zt,e);break;case"insertFromComposition":Qi(null),Aa(r,zt,e);break;case"insertLineBreak":Qi(null),Aa(r,Pt,!1);break;case"insertParagraph":Qi(null),Rn&&!V?(Rn=!1,Aa(r,Pt,!1)):Aa(r,It,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Aa(r,Dt,e);break;case"deleteByComposition":(function(e,t){return e!==t||ii(e)||ii(t)||!$i(e)||!$i(t)})(u,c)&&Aa(r,jt,e);break;case"deleteByDrag":Ra(pr),Aa(r,jt,e);break;case"deleteByCut":Aa(r,jt,e);break;case"deleteContent":Aa(r,Ot,!1);break;case"deleteWordBackward":Aa(r,Ft,!0);break;case"deleteWordForward":Aa(r,Ft,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Aa(r,Bt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Aa(r,Bt,!1);break;case"formatStrikeThrough":Aa(r,$t,"strikethrough");break;case"formatBold":Aa(r,$t,"bold");break;case"formatItalic":Aa(r,$t,"italic");break;case"formatUnderline":Aa(r,$t,"underline");break;case"historyUndo":Aa(r,Ht,void 0);break;case"historyRedo":Aa(r,Wt,void 0)}return!0}function Kn(e){if(Ua(e.target)&&Ii(e.target))return!0;const t=Fo(),n=go(),r=e.data,o=Wn(e);if(null!=r&&Qr(n)&&jn(n,o,r,e.timeStamp,!1)){On&&(Yn(t,r),On=!1);const o=n.anchor.getNode(),i=Ha(Ia(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()&&$r(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===fa(i.anchorNode)||Aa(t,zt,r);const u=r.length;K&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),Q&&t.isComposing()&&(Sn=0,Qi(null))}else{pa(!1,t,null!==r?r:void 0),On&&(Yn(t,r||void 0),On=!1)}return function(){zo();const e=Fo();Ae(e)}(),!0}function Gn(e){const t=Fo(),n=go();if(Qr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Qi(r.key),Ra(hr),(e.timeStamp<Sn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||$r(o)&&o.getStyle()!==n.style)&&Aa(t,zt,ce)}return!0}function Vn(e){return Yn(Fo(),e.data),Ra(mr),!0}function Yn(e,t){const n=e._compositionKey;if(Qi(null),null!==n&&null!=t){if(""===t){const t=Zi(n),r=Ki(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&$r(t)){const n=Ha(Ia(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),ha(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=go();if(Qr(t)||Zr(t)){if(Qr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void Aa(e,Qt,null)}}}pa(!0,e,t)}function qn(e){const t=Fo();if(null==e.key)return!0;if(Pn){if(xa(e))return ti(t,()=>{Yn(t,In)}),Pn=!1,In="",!0;Pn=!1,In=""}if(function(e){return va(e,"ArrowRight",{shiftKey:"any"})}(e))Aa(t,Kt,e);else if(function(e){return va(e,"ArrowRight",ya)}(e))Aa(t,Gt,e);else if(function(e){return va(e,"ArrowLeft",{shiftKey:"any"})}(e))Aa(t,Vt,e);else if(function(e){return va(e,"ArrowLeft",ya)}(e))Aa(t,Yt,e);else if(function(e){return va(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))Aa(t,qt,e);else if(function(e){return va(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))Aa(t,Jt,e);else if(function(e){return va(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Rn=!0,Aa(t,Qt,e);else if(function(e){return" "===e.key}(e))Aa(t,Xt,e);else if(function(e){return U&&va(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Rn=!0,Aa(t,Pt,!0);else if(function(e){return va(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Rn=!1,Aa(t,Qt,e);else if(function(e){return va(e,"Backspace",{shiftKey:"any"})||U&&va(e,"h",{ctrlKey:!0})}(e))xa(e)?Aa(t,Zt,e):(e.preventDefault(),Aa(t,Ot,!0));else if(function(e){return"Escape"===e.key}(e))Aa(t,en,e);else if(function(e){return va(e,"Delete",{})||U&&va(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),Aa(t,Ot,!1)):Aa(t,tn,e);else if(function(e){return va(e,"Backspace",ba)}(e))e.preventDefault(),Aa(t,Ft,!0);else if(function(e){return va(e,"Delete",ba)}(e))e.preventDefault(),Aa(t,Ft,!1);else if(function(e){return U&&va(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),Aa(t,Bt,!0);else if(function(e){return U&&(va(e,"Delete",{metaKey:!0})||va(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),Aa(t,Bt,!1);else if(function(e){return va(e,"b",ya)}(e))e.preventDefault(),Aa(t,$t,"bold");else if(function(e){return va(e,"u",ya)}(e))e.preventDefault(),Aa(t,$t,"underline");else if(function(e){return va(e,"i",ya)}(e))e.preventDefault(),Aa(t,$t,"italic");else if(function(e){return va(e,"Tab",{shiftKey:"any"})}(e))Aa(t,nn,e);else if(function(e){return va(e,"z",ya)}(e))e.preventDefault(),Aa(t,Ht,void 0);else if(function(e){if(U)return va(e,"z",{metaKey:!0,shiftKey:!0});return va(e,"y",{ctrlKey:!0})||va(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),Aa(t,Wt,void 0);else{const n=t._editorState._selection;null===n||Qr(n)?_a(e)&&(e.preventDefault(),Aa(t,hn,e)):!function(e){return va(e,"c",ya)}(e)?!function(e){return va(e,"x",ya)}(e)?_a(e)&&(e.preventDefault(),Aa(t,hn,e)):(e.preventDefault(),Aa(t,pn,e)):(e.preventDefault(),Aa(t,fn,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(_n,e),!0}function Jn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Qn=new Map;function Xn(e){const t=function(e){const t=Pa(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Fi(t.anchorNode);if(null===n)return;Ln&&(Ln=!1,ti(n,()=>{const r=vo(),o=t.anchorNode;if(Ua(o)||Wi(o)){sa(ho(r,t,n,e))}}));const r=ca(n),o=r[r.length-1],i=o._key,a=Qn.get(i),s=a||o;s!==n&&Bn(t,s,!1),Bn(t,n,!0),n!==o?Qn.set(i,n):a&&Qn.delete(i)}function Zn(e){e._lexicalHandled=!0}function er(e){return!0===e._lexicalHandled}const tr=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function nr(e){const t=An.get(e);if(void 0===t)return void tr();const n=Nn.get(t);if(void 0===n)return void tr();const r=n-1;r>=0||$("Root element count less than 0"),An.delete(e),Nn.set(t,r),0===r&&t.removeEventListener("selectionchange",Xn);const o=Bi(e);ji(o)?(!function(e){if(null!==e._parentEditor){const t=ca(e),n=t[t.length-1]._key;Qn.get(n)===e&&Qn.delete(n)}else Qn.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=Jn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function rr(e,t,n){zo();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=go();if(!Qr(t)||!ii(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();Oa(o,e)&&n.set(e.__key,0,"element");Oa(i,e)&&r.set(e.__key,0,"element");return t}(e);let a=!1;if(Qr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(xo(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(xo(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Zr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Qr(i)&&t&&!a){const t=e.getIndexWithinParent();qi(e),yo(i,o,t,-1)}else qi(e);n||za(o)||o.canBeEmpty()||!o.isEmpty()||rr(o,t),t&&i&&ci(o)&&o.isEmpty()&&o.selectEnd()}const or=Symbol.for("ephemeral");function ir(e){return e[or]||!1}class ar{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=ls(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}),Yi(this,e),"root"!==this.__type&&function(e,t){const n=Oi(Fo(),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=Zi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||go();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if($r(this))return n;if(Qr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(li(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:Zi(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(za(t))return ii(e)||e===this&&li(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:Zi(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:Zi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=ii(this)?this:this.getParent(),n=ii(e)?e:e.getParent(),r=t&&n?$s(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=$s(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===js(t):("same"!==t.type&&"ancestor"!==t.type&&$("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=$s(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=ii(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=Fo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(ir(this))return this;const e=Zi(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(ir(this))return this;zo();const e=jo(),t=Fo(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=go();if(null!==a&&a.setCachedNodes(null),i.has(r))return Ji(o),o;const s=ts(o);return i.add(r),Ji(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 Pe(this,e)}static transform(){return null}remove(e){rr(this,!0,e)}replace(e,t){zo();let n=go();null!==n&&(n=n.clone()),Fa(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;qi(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(rr(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&&(ii(this)&&ii(a)||$("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{a.append(e)})),Qr(n)){sa(n);const e=n.anchor,t=n.focus;e.key===o&&qr(e,a),t.key===o&&qr(t,a)}return Xi()===o&&Qi(i),a}insertAfter(e,t=!0){zo(),Fa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=go();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(qi(r),Qr(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&&Qr(i)){const e=this.getIndexWithinParent();yo(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){zo(),Fa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;qi(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=go();if(t&&Qr(u)){yo(u,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return bi()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){zo();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(ii(n))return n.select();if(!$r(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){zo();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(ii(n))return n.select(0,0);if(!$r(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}function sr(e){return e instanceof ar}const lr="historic",ur="history-merge",cr="collaboration",dr="skip-scroll-into-view",fr="skip-dom-selection",pr="skip-selection-focus",hr="composition-start",mr="composition-end",gr=/\s*!important\s*$/i;function vr(e){const t={};if(!e)return t;let n="",r="",o=null,i=!1,a=!1,s=!1,l=0;for(let u=0;u<e.length;u++){const c=e[u];if(i)"*"===c&&"/"===e[u+1]&&(i=!1,u++);else if(a)s?r+=c:n+=c,a=!1;else if(null===o)if("/"!==c||"*"!==e[u+1])if('"'!==c&&"'"!==c)if("("!==c)if(")"!==c)if(s||":"!==c||0!==l){if(";"===c&&0===l){const e=n.trim(),o=r.trim();""!==e&&""!==o&&(t[e]=o),n="",r="",s=!1;continue}s?r+=c:n+=c}else s=!0;else l=Math.max(0,l-1),s?r+=c:n+=c;else l++,s?r+=c:n+=c;else o=c,s?r+=c:n+=c;else i=!0,u++;else s?r+=c:n+=c,"\\"===c?a=!0:c===o&&(o=null)}const u=n.trim(),c=r.trim();return""!==u&&""!==c&&(t[u]=c),t}function yr(e,t,n){const r=gr.test(n)?"important":"",o=""===r?n:n.replace(gr,"").trim();e.setProperty(t,o,r)}function br(e,t,n=""){if(t===n)return;const r=vr(n),o=vr(t);for(const t in o)delete r[t],yr(e,t,o[t]);for(const t in r)e.removeProperty(t)}class xr extends ar{static getType(){return"linebreak"}static clone(e){return new xr(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&&Ya(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Sr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&Sr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&Ya(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Sr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&Sr(r))return!0}return!1}(e)?null:{conversion:_r,priority:0}}}static importJSON(e){return wr().updateFromJSON(e)}}function _r(e){return{node:wr()}}function wr(){return ja(new xr)}function kr(e){return e instanceof xr}function Sr(e){return Wi(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Cr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function Er(e,t){return 1&t?"strong":2&t?"em":"span"}function Tr(e,t,n,r,o){const i=r.classList;let a=wa(o,"base");void 0!==a&&i.add(...a),a=wa(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=wa(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 Ar(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 Nr(e,t,n,r,o,i){Ar(o,e,t);const a=i.theme.text;void 0!==a&&Tr(0,0,r,e,a)}function Mr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class Lr extends ar{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new Lr(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===Xi()}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 Gi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=Cr(0,n),o=Er(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));Nr(s,this,0,n,this.__text,e);const l=this.__style;return""!==l&&br(a.style,l),a}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,a=Cr(0,o),s=Cr(0,i),l=Er(0,o),u=Er(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 Nr(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")),Ar(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&Tr(0,o,i,c,d);const f=e.__style,p=this.__style;return f!==p&&br(t.style,p,f),!1}static importDOM(){return{"#text":()=>({conversion:zr,priority:0}),b:()=>({conversion:Or,priority:0}),code:()=>({conversion:Fr,priority:0}),em:()=>({conversion:Fr,priority:0}),i:()=>({conversion:Fr,priority:0}),mark:()=>({conversion:Fr,priority:0}),s:()=>({conversion:Fr,priority:0}),span:()=>({conversion:Rr,priority:0}),strong:()=>({conversion:Fr,priority:0}),sub:()=>({conversion:Fr,priority:0}),sup:()=>({conversion:Fr,priority:0}),u:()=>({conversion:Fr,priority:0})}}static importJSON(e){return Br().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 Ua(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=Mr(t,"b")),this.hasFormat("italic")&&(t=Mr(t,"i")),this.hasFormat("strikethrough")&&(t=Mr(t,"s")),this.hasFormat("underline")&&(t=Mr(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=Gi(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){zo();let n=e,r=t;const o=go(),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(!Qr(o))return co(a,n,a,r,"text","text");{const e=Xi();e!==o.anchor.key&&e!==o.focus.key||Qi(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=go();if(r&&Qr(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){zo();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=Xi(),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=go();if(Qr(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=Br(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Fe(t,d),m=!0):d=t.setTextContent(u);const b=[d];for(let e=1;e<l;e++){const n=Br(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Fe(t,n);const i=n.__key;o===r&&Qi(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&&Ji(t);null!==n&&Ji(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();m?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),Qr(y)&&yo(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;Xi()===r&&Qi(n);const a=go();if(Qr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&_o(o,t,n,e,i),null!==s&&s.key===r&&_o(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 Rr(e){return{forChild:Hr(e.style),node:null}}function Or(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Hr(t.style,n?void 0:"bold"),node:null}}const Pr=new WeakMap;function Ir(e){if(!Ua(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function zr(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=Pr.get(n))&&!Ir(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Pr.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(wr()):"\t"===r?t.push(Ur()):""!==r&&t.push(Br(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=Dr(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=Dr(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:Br(n)}}function Dr(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,Ua(n)){const e=n.style.display;if(""===e&&!Va(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Wi(n))return n;if("BR"===n.nodeName)return null}}const jr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Fr(e){const t=jr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Hr(e.style,t),node:null}}function Br(e=""){return ja(new Lr(e))}function $r(e){return e instanceof Lr}function Hr(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=>$r(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 Wr extends Lr{static getType(){return"tab"}static clone(e){return new Wr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=wa(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Ur().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 Ur(){return ja(new Wr)}function Kr(e){return e instanceof Wr}class Gr{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 Ds(Js(Hs(this,"next")),Js(Hs(e,"next")))<0}getNode(){const e=Zi(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=Zi(e);("text"===n?$r(t):ii(t))||$(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}Io()||(Xi()===i&&Qi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function Vr(e,t,n){return new Gr(e,t,n)}function Yr(e,t){let n=t.__key,r=e.offset,o="element";if($r(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!ii(t)){const e=t.getNextSibling();if($r(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 qr(e,t){if(ii(t)){const n=t.getLastDescendant();ii(n)||$r(n)?Yr(e,n):Yr(e,t)}else Yr(e,t)}class Jr{_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(!Zr(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 Jr(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($r(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=Zi(e);null!==t&&n.push(t)}return Io()||(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((go()||vo())===this&&e[0]){const t=Cs(e[0],"next");Us(Is(t,t))}for(const t of e)t.remove()}}function Qr(e){return e instanceof Xr}class Xr{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!!Qr(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(_s(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;ii(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(xs(e.focus)&&ii(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Ns(e.focus.origin,"previous");_s(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(!ii(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=Js(e.anchor),r=Js(e.anchor.getFlipped()),o=e=>bs(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(Zs(Gs(this),"next"));return this.isCollapsed()&&t.length>1&&$(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),Io()||(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]=to(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(ii(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,$r(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!li(d)&&!kr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Fo(),n=t.getEditorState()._selection,r=lo(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),We(this)}clone(){const e=this.anchor,t=this.focus;return new Xr(Vr(e.key,e.offset,e.type),Vr(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Gi(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(wr()):"\t"===r?n.push(Ur()):n.push(Br(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=Br();if(a.setFormat(n),a.setStyle(r),xi(i))i.splice(0,0,[a]);else{const e=ci(o)?bi().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&&Ws(a,Js(Hs(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];$r(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&&(Hi(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if($r(t)&&t.canInsertTextBefore()&&!Hi(t)||(t=Br(),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&&(Hi(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if($r(t)&&!Hi(t)||(t=Br(),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=Br(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||ii(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),so(this.anchor,this.focus),void this.insertText(e)}if(1===c){if($i(d)){const t=Br(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Kr(d)){const t=Br(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Br(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=ii(d)?d:d.getParentOrThrow();let r=ii(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($r(h)&&!$i(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Br(h.getTextContent());h.replace(e),h=e}ci(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)||ii(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($i(d))if(s===f)d.select();else{const t=Br(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=go()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Zs(e,r),a=Ys(i.anchor,n),s=Ys(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(_s(e))l.add(e.origin.getKey());else if(xs(e)){const{origin:t}=e;ii(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=Vs(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=Br(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=Es(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(qs(e)){c=Js(e);break}for(const e of s)if(qs(e)){d=Js(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(za(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,qa),d=c&&u(a,e=>n.has(e.getKey())&&qa(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;Ns(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(qs);if(p){return Ps(Xs(Js(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))}`)}(Gs(this));Ks(this,t),e&&go()!==this&&sa(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void Qi(null);const n=this.getNodes(),r=[];for(const e of n)$r(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(ii(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),Qi(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(Hi(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||Hi(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const y=g.getFormatFlags(e,h);v>0&&(v===g.getTextContentSize()||Hi(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=go();return Qr(t)||$("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=us(t,qa),r=e[e.length-1];if(ii(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=Eo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(ii(e)||li(e))&&!e.isInline())){ii(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=Eo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=bi();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=kr(o);if(i||li(o)&&o.isInline()||ii(o)&&o.isInline()||$r(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=!ii(n)||!n.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let u=a[0];(e=>ii(e)&&qa(e)&&!e.isEmpty()&&ii(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(u)&&(ii(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=us(i,qa);s&&ii(c)&&(s.canMergeWhenEmpty()||qa(l))&&(c.append(...s.getChildren()),s.remove()),ii(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=ii(n)?n.getLastChild():null;kr(d)&&c!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=bi();return ia().splice(this.anchor.offset,0,[e]),e.select(),e}const e=Eo(this),t=us(this.anchor.getNode(),qa);ii(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=wr();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]=to(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($r(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($r(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),$r(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(Ao(this,e,t,n))return;const r="move"===e,o=Fo(),i=Ha(Ia(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!ii(l)||l.isInline()||l.canBeEmpty()||$a(a,o,s),this.dirty){let e=Na(o,this.anchor.key),t=Na(o,this.focus.key);"text"===this.anchor.type&&(e=Ki(e)),"text"===this.focus.type&&(t=Ki(t)),e&&t&&wo(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=ci(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(za(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];Oa(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];ii(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];ii(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&&Ao(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&ii(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(ii(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=Os(Hs(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(_s(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(ii(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=Js(t);Ks(this,Is(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(xs(t)){if(ii(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(li(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&ii(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=po();e.add(t.origin.getKey()),sa(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Ks(this,Is(!t.origin.isEmpty()&&n.isEmpty()?Vs(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&&no(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 oo(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 oo(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!(ua(e)||ro(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()&&ci(e.getParent())&&null===e.getPreviousSibling()&&no(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 Zr(e){return e instanceof Jr}function eo(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function to(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]:[eo(n),eo(r)]}function no(e,t){for(let n=t;n;n=n.getParent()){if(ii(n)){if(n.collapseAtStart(e))return!0;if(za(n))break}if(n.getPreviousSibling())break}return!1}const ro=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function oo(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 io(e,t,n,r){let o,i=t;if(Ua(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=la(c),$r(o))i=Ts(o,a?"next":"previous");else{let s=la(e);if(null===s)return null;if(ii(s)){const l=r.getElementByKey(s.getKey());null===l&&$("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const u=Qa(r).$getDOMSlot(s,l,r);[s,i]=u.resolveChildIndex(s,l,e,t),ii(s)||$("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(ii(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=ii(c)?c:c.getParentOrThrow()),i=0}$r(c)?(o=c,s=null,i=Ts(c,a?"next":"previous")):c!==s&&a&&!d&&(ii(s)||$("invariant"),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&li(s)&&la(e)===s?n:n+1,s=s.getParentOrThrow()}if(ii(s))return Vr(s.__key,i,"element")}}else o=la(e);return $r(o)?Vr(o.__key,Ts(o,i,"clamp"),"text"):null}function ao(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&&ii(i)&&i.isInline()){const t=i.getPreviousSibling();$r(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else ii(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):$r(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&ii(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&ii(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();$r(t)&&e.set(t.__key,0,"text")}}}function so(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);ao(e,n,r),ao(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function lo(e,t,n,r,o,i){if(null===e||null===n||!Di(o,e,n))return null;const a=io(e,t,Qr(i)?i.anchor:null,o);if(null===a)return null;const s=io(n,r,Qr(i)?i.focus:null,o);if(null===s)return null;if(mo("anchor",a),mo("focus",s),"element"===a.type&&"element"===s.type){const t=la(e),r=la(n);if(li(t)&&li(r))return null}return so(a,s),[a,s]}function uo(e){return ii(e)&&!e.isInline()}function co(e,t,n,r,o,i){const a=jo(),s=new Xr(Vr(e,t,o),Vr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function fo(){const e=Vr("root",0,"element"),t=Vr("root",0,"element");return new Xr(e,t,0,"")}function po(){return new Jr(new Set)}function ho(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=!xe&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Qr(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)&&Qr(e)&&!Di(n,u,c))return e.clone();const p=lo(u,d,c,f,n,e);if(null===p)return null;const[h,m]=p;let g=0,v="";if(Qr(e)){const t=e.anchor;if(h.key===t.key)g=e.format,v=e.style;else{const e=h.getNode();$r(e)?(g=e.getFormat(),v=e.getStyle()):ii(e)&&(g=e.getTextFormat(),v=e.getTextStyle())}}return new Xr(h,m,g,v)}function mo(e,t){const n=Zi(t.key);if(void 0===n&&$(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){$r(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{ii(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 go(){return jo()._selection}function vo(){return Fo()._editorState._selection}function yo(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"),bo(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")}}bo(e)}function bo(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!ii(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if($r(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(ii(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if($r(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(ii(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if($r(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function xo(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,$r(r)?(a=r.getTextContentSize(),s="text"):ii(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,$r(o)?s="text":ii(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 _o(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 wo(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function ko(e,t,n){const r=Na(e,t.getKey());if(ii(t)){const o=Qa(e).$getDOMSlot(t,r,e);return[o.element,n+o.getFirstChildOffset()]}return[r,n]}function So(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(cr)&&d!==i||null!==d&&zi(d))return;if(!Qr(t))return void(null!==e&&Di(n,s,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),m=p.getNode(),[g,v]=ko(n,h,f.offset),[y,b]=ko(n,m,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let k=g,S=y,C=!1;if("text"===f.type?(k=Ki(g),C=h.getFormat()!==x||h.getStyle()!==_):Qr(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(S=Ki(y)),null!==k&&null!==S&&(w&&(null===e||C||Qr(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){Dn=[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(pr)||i.focus({preventScroll:!0}),"element"===f.type))){if(wo(r,k,v,S,b),!K||!t.isCollapsed()||null===i||o.has(pr)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(dr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Qr(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=La(n),o=Pa(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=Ia(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=Ma(u)}}(n,t,i)}}Mn=!0}}function Co(e){let t=go()||vo();null===t&&(t=ia().selectEnd()),t.insertNodes(e)}function Eo(e){let t=e;e.isCollapsed()||t.removeText();const n=go();Qr(n)&&(t=n),Qr(t)||$("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!qa(o);){const e=o;if([o,i]=To(o,i),e.is(o))break}return i}function To(e,t){const n=e.getParent();if(!n){const e=bi();return ia().append(e),e.select(),[ia(),0]}if($r(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(!ii(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Xr(Vr(e.__key,t,"element"),Vr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Ao(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=Hs(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!Qs(l)){for(const e of l){u=!1;const{origin:t}=e;if(!li(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of Os(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(_s(e))e.origin.isInline()||(l=e);else{if(ii(e.origin))continue;li(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&li(l.origin)&&l.origin.isKeyboardSelectable()){const e=po();return e.add(l.origin.getKey()),sa(e),!0}return l=Js(l),s&&Ws(e.anchor,l),Ws(e.focus,l),u||!a}let No=null,Mo=null,Lo=!1,Ro=!1,Oo=0;const Po={characterData:!0,childList:!0,subtree:!0};function Io(){return Lo||null!==No&&No._readOnly}function zo(){Lo&&$("Cannot use method in read-only mode.")}function Do(){Oo>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 jo(){return null===No&&$(`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().${Bo()}`),No}function Fo(){return null===Mo&&$(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update(), editor.read(), or editor.getEditorState().read(..., {editor}).${Bo()}`),Mo}function Bo(){let e=0;const t=new Set,n=Ai.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Bi(r);if(ji(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 $o(){return Mo}function Ho(e,t,n){const r=t.__type,o=Ri(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 Wo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Uo(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 Ko(e){return Go(e,Fo()._nodes)}function Go(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(ii(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=Go(a[e],t);i.append(n)}return i}function Vo(e,t,n){const r=No,o=Lo,i=Mo;No=t,Lo=!0,Mo=e;try{return n()}finally{No=r,Lo=o,Mo=i}}function Yo(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 qo(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return void(e._deferred.length>0&&Xo(e,e._deferred));const i=e._editorState,a=i._selection,s=n._selection,l=0!==e._dirtyType,u=No,c=Lo,d=Mo,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){Mo=e,No=n,Lo=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=kt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),Ro)throw t;return wi(e,null,r,n),Ne(e),e._dirtyType=2,Ro=!0,qo(e,i),void(Ro=!1)}finally{p.observe(r,Po),e._updating=f,No=u,Lo=c,Mo=d}}n._readOnly||(n._readOnly=!0,Yo(n),Qr(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=ra(e)),delete r[i])}(e,n);const x=o?null:Ha(Ia(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!y.has(fr)){Mo=e,No=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&$a(t,e,r),So(a,s,e,x,y,r)}!function(e,t,n){let r=e._blockCursorElement;if(Qr(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()){Ba(i.getChildAtIndex(a-1))&&(s=!0)}else{const t=i.getChildAtIndex(a);if(null!==t&&Ba(t)){const n=t.getPreviousSibling();(null===n||Ba(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=il(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&&$a(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,Po),Mo=d,No=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),Qr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(Et,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Jo("decorator",e,!0,_)),function(e,t,n){const r=oa(t),o=oa(n);r!==o&&Jo("textcontent",e,!0,o)}(e,t||i,n),Jo("update",e,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:y}),Xo(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;ei(e,t,r)}}}(e)}function Jo(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 Qo(e,t,n,r){const o=ca(e);let i;for(let e=4;e>=0;e--)for(let a=0;a<o.length;a++){const s=o[a];if(a>0&&s._updating){i=s;break}const l=s._commands.get(t);if(void 0!==l){const t=l[e];if(t.size>0){let e=!1;if(ti(s,()=>{for(const o of t)if(o(n,r))return void(e=!0)}),e)return e}}}return i&&i.update(()=>{Qo(i,t,n,r)}),!1}function Xo(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}}}function Zo(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),Uo(e,o.tag)),null==i?ei(e,n,o):n()}}return r}function ei(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,Uo(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=di(l||s),u=!0),l._flushSync=a;const c=No,d=Lo,f=Mo,p=e._updating;No=l,Lo=!1,e._updating=!0,Mo=e;const h=e._headless||null===e.getRootElement();Mi(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Ha(Ia(e));return Qr(n)||null==n?ho(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Zo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Qr(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);$r(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&He(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=Xi(),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);$r(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&He(r),void 0!==r&&Wo(r,i)&&Ho(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){Oo++;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&&Wo(l,i)&&Ho(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,Oo++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Zo(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()||(ii(t)&&be(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(Qr(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 Zr(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 qo(e)}finally{No=c,Lo=d,Mo=f,e._updating=p,Oo=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,qo(e)):u&&Pi(()=>{qo(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function ti(e,t,n){Mo===e&&void 0===n?t():ei(e,t,n)}class ni{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new ni(this.element,e,this.after)}withAfter(e){return new ni(this.element,this.before,e)}withElement(e){return this.element===e?this:new ni(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||q);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.setProperty("display","inline","important"),e.style.setProperty("border","0px","important"),e.style.setProperty("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=ri(t,n);o.push(r);const i=ri(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 ri(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 oi extends ar{__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=Fo()._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($r(t)&&e.push(t),ii(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;ii(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;ii(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 ii(e)&&e.getLastDescendant()||e||null}const r=t[e];return ii(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Zi(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:Zi(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(),ii(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(),ii(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 Gi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){zo();const n=go();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if($r(e)||ii(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if($r(e)||ii(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Qr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):co(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){ir(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;qi(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--,qi(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=go();if(Qr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;ai(r,t,n)&&xo(r,r.getNode(),this,u,l),ai(o,t,n)&&xo(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||za(this)||this.remove()}}return o}getDOMSlot(e){return new ni(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ua(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||za(this)||this.getChildren().some($r)||(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=Qa(t).$getDOMSlot(this,e,t);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 ii(e){return e instanceof oi}function ai(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 si extends ar{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function li(e){return e instanceof si}class ui extends oi{__cachedText;static getType(){return"root"}static clone(){return new ui}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!Io()&&0!==Fo()._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)ii(e)||li(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 ia().updateFromJSON(e)}collapseAtStart(){return!0}}function ci(e){return e instanceof ui}function di(e){return new hi(new Map(e._nodeMap))}function fi(){return new hi(new Map([["root",new ui]]))}function pi(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.`),ii(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=pi(o[e]);r.push(t)}}return t}class hi{_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 Vo(t&&t.editor||null,this,e)}clone(e){const t=new hi(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Vo(null,this,()=>({root:pi(ia())}))}}class mi extends oi{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class gi extends oi{static getType(){return"paragraph"}static clone(e){return new gi(e.__key)}createDOM(e){const t=document.createElement("p"),n=wa(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:yi,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ua(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return bi().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find($r);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=bi();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||$r(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 yi(e){const t=bi();if(e.style&&(t.setFormat(e.style.textAlign),rs(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in pe&&t.setFormat(n)}return{node:t}}function bi(){return ja(new gi)}function xi(e){return e instanceof gi}const _i=0;function wi(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=fi(),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 ki(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=ls(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 ar&&e!==ar?e:void 0}}return t}const Si={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{const n=Oi(t,e.getType());return n&&void 0!==n.exportDOM?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,o)=>ii(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>(ii(e)||$(`$getDOMSlot called on a non-ElementNode (key ${e.getKey()} type ${e.getType()})`),e.getDOMSlot(t)),$shouldExclude:(e,t,n)=>ii(e)&&e.excludeFromCopy("html"),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)};function Ci(e){const t=e||{},n=$o(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=fi(),s=t.namespace||(null!==o?o._config.namespace:da()),l=t.editorState,u=[ui,Lr,xr,Wr,gi,mi,...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}ls(t);{const e=t.name,o=as(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!==ar&&(["getType","clone"].forEach(n=>{as(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!as(t,"importDOM")&&ss(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),as(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=ki(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Le(u[e]),transforms:i})}}const h=new Ai(a,o,p,{disableEvents:i,dom:{...Si,...e&&e.dom},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(Nt,Un,_i),e.registerCommand(Mt,Kn,_i),e.registerCommand(Lt,Gn,_i),e.registerCommand(Rt,Vn,_i),e.registerCommand(Ut,qn,_i)}(h),h}function Ei(e,t){const n=e.get(t);e.delete(t),n&&n()}function Ti(e,t,n){return e.set(t,n),Ei.bind(null,e,t)}class Ai{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=da(),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 Ti(this._listeners.update,e)}registerEditableListener(e){return Ti(this._listeners.editable,e)}registerDecoratorListener(e){return Ti(this._listeners.decorator,e)}registerTextContentListener(e){return Ti(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return ll(Ti(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 ye,new ye,new ye,new ye,new ye]);const o=r.get(e);void 0===o&&$(`registerCommand: Command ${String(e)} not found in command map`);const i=function(e){return 7&e}(n),a=o[i];return i!==n?a.addFront(t):a.addBack(t),()=>{a.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=es(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=es(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=Zi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ur}: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 Aa(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=wa(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,wi(this,t,e,r),null!==t&&(this._config.disableEvents||nr(t),null!=n&&t.classList.remove(...n)),null!==e){const t=Pa(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,Ne(this),this._updateTags.add(ur),qo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;An.set(e,n);const r=Nn.get(n)??0;r<1&&n.addEventListener("selectionchange",Xn),Nn.set(n,r+1),e.__lexicalEditor=t;const o=Jn(e);for(let n=0;n<kn.length;n++){const[r,i]=kn[n],a="function"==typeof i?e=>{er(e)||(Zn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(er(e))return;Zn(e);const n=t.isEditable();switch(r){case"cut":return n&&Aa(t,pn,e);case"copy":return Aa(t,fn,e);case"paste":return n&&Aa(t,Dt,e);case"dragstart":return n&&Aa(t,un,e);case"dragover":return n&&Aa(t,cn,e);case"dragend":return n&&Aa(t,dn,e);case"focus":return n&&Aa(t,bn,e);case"blur":return n&&Aa(t,xn,e);case"drop":return n&&Aa(t,sn,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(ur),qo(this);Jo("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=di(e),n._selection=e._selection?e._selection.clone():null),Ae(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),qo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||qo(this)}parseEditorState(e,t){return function(e,t,n){const r=fi(),o=No,i=Lo,a=Mo,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,No=r,Lo=!1,Mo=t,Mi(null);try{const o=t._nodes;Go(e.root,o),n&&n(),r._readOnly=!0,Yo(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,No=o,Lo=i,Mo=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return qo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):ei(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),ti(this,()=>{const r=go(),o=ia();null!==r?r.dirty||sa(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),Ra("focus"),function(e){zo();Fo()._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=Ha(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Jo("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Ai.version="0.44.0+dev.esm";let Ni=null;function Mi(e){Ni=e}let Li=1;function Ri(e,t){const n=Oi(e,t);return void 0===n&&$(`registeredNode: Type ${t} not found`),n}function Oi(e,t){return e._nodes.get(t)}const Pi="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Ii(e){return li(na(e))}function zi(e){const t=document.activeElement;if(!Ua(t))return!1;const n=t.nodeName;return li(na(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Bi(t))}function Di(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!zi(t)&&Fi(t)===e}catch(e){return!1}}function ji(e){return e instanceof Ai}function Fi(e){let t=e;for(;null!=t;){const e=Bi(t);if(ji(e))return e;t=Ma(t)}return null}function Bi(e){return e?e.__lexicalEditor:null}function $i(e){return Kr(e)||e.isToken()}function Hi(e){return $i(e)||e.isSegmented()}function Wi(e){return Ka(e)&&3===e.nodeType}function Ui(e){return Ka(e)&&9===e.nodeType}function Ki(e){let t=e;for(;null!=t;){if(Wi(t))return t;t=t.firstChild}return null}function Gi(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 Vi(e){return $r(e)||kr(e)||li(e)}function Yi(e,t){const n=function(){const e=Ni;return Ni=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=No;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);zo(),Do();const r=Fo(),o=jo(),i=""+Li++;o._nodeMap.set(i,e),ii(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function qi(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 Ji(e){Do(),ir(e)&&$(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=jo(),o=Fo(),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,ii(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function Qi(e){zo();const t=Fo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Zi(n);null!==e&&e.getWritable()}if(null!==e){const t=Zi(e);null!==t&&t.getWritable()}}}function Xi(){if(Io())return null;return Fo()._compositionKey}function Zi(e,t){const n=(t||jo())._nodeMap.get(e);return void 0===n?null:n}function ea(e,t){const n=ta(e,Fo());return void 0!==n?Zi(n,t):null}function ta(e,t){return e[`__lexicalKey_${t._key}`]}function na(e,t){let n=e;for(;null!=n;){const e=ea(n,t);if(null!==e)return e;n=Ma(n)}return null}function ra(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function oa(e){return e.read(()=>ia().getTextContent())}function ia(){return aa(jo())}function aa(e){return e._nodeMap.get("root")}function sa(e){zo();const t=jo();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 la(e){const t=Fo(),n=function(e,t){let n=e;for(;null!=n;){const e=ta(n,t);if(void 0!==e)return e;n=Ma(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Zi("root"):null}return Zi(n)}function ua(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ca(e){const t=[];for(let n=e;null!==n;n=n._parentEditor)t.push(n);return t}function da(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function fa(e){return Wi(e)?e.nodeValue:null}function pa(e,t,n){const r=Ha(Ia(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=fa(o);const r=na(o);if(null!==t&&$r(r)){if((t===le||t===ce)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&ha(r,t,i,a,e)}}}function ha(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(Qi(null),q||V||X)i.remove();else{const e=Fo();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=vo(),l=i.getTextContentSize(),u=Xi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Qr(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=go();if(!Qr(d)||null===n||null===r)return void ma(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Br(i.getTextContent());i.replace(e),i=e}ma(i,s,d)}}}function ma(e,t,n){if(e.setTextContent(t),Qr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=Ts(e,o.offset,"clamp"))}}}function ga(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function va(e,t,n){if(!function(e,t){return ga(e,t,"altKey")&&ga(e,t,"ctrlKey")&&ga(e,t,"shiftKey")&&ga(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;if(e.code.startsWith("Digit")&&/^\d$/.test(t))return e.code===`Digit${t}`;const r="Key"+t.toUpperCase();return e.code===r}const ya={ctrlKey:!U,metaKey:U},ba={altKey:U,ctrlKey:!U};function xa(e){return"Backspace"===e.key}function _a(e){return va(e,"a",ya)}function wa(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=il(o);return n[t]=e,e}return o}function ka(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 Sa(e){const t=e.getType(),n=jo();if(n._readOnly){const e=es(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 Ca(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 Ea(e,t){const n=e.offset;if("element"===e.type){return Ca(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?Ca(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function Ta(e){const t=Ia(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Aa(e,t,n){return Qo(e,t,n,e)}function Na(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&$(`Reconciliation: could not find DOM element for node key ${t}`),n}function Ma(e){const t=e.assignedSlot||e.parentElement;return Ga(t)?t.host:t}function La(e){return Ui(e)?e:Ua(e)?e.ownerDocument:null}function Ra(e){zo();Fo()._updateTags.add(e)}function Oa(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function Pa(e){const t=La(e);return t?t.defaultView:null}function Ia(e){const t=e._window;return null===t&&$("window object not found"),t}function za(e){return ci(e)||ii(e)&&e.isShadowRoot()}function Da(e,t=!1){const n=e.constructor.clone(e);return Yi(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function ja(e){const t=Fo(),n=e.getType(),r=Oi(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 Fa(e,t){!ci(e.getParent())||ii(t)||li(t)||$("Only element or decorator nodes can be inserted in to the root node")}function Ba(e){return(li(e)||ii(e)&&!e.canBeEmpty())&&!e.isInline()}function $a(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Ha(e){return H?(e||window).getSelection():null}function Wa(e){return Ua(e)&&"A"===e.tagName}function Ua(e){return Ka(e)&&1===e.nodeType}function Ka(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Ga(e){return Ka(e)&&11===e.nodeType}function Va(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 Ya(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 qa(e){if(li(e)&&!e.isInline())return!0;if(!ii(e)||za(e))return!1;const t=e.getFirstChild(),n=null===t||kr(t)||$r(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Ja(){return Fo()}function Qa(e=Ja()){return e._config.dom||Si}const Xa=new WeakMap,Za=new Map;function es(e){if(!e._readOnly&&e.isEmpty())return Za;e._readOnly||$("getCachedTypeToNodeMap called with a writable EditorState");let t=Xa.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),Xa.set(e,t)),t}function ts(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 ns(e){return function(e){return e[or]=!0,e}(ts(e))}function rs(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function os(e){return!0===e.__lexicalUnmanaged}function is(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function as(e,t){return is(e,t)&&e[t]!==ar[t]}function ss(e){return is(e.prototype,"exportDOM")}function ls(e){const t=ve in e.prototype?e.prototype[ve]():void 0,n=function(e){if(!(e===ar||e.prototype instanceof ar)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Ai.version&&(n=JSON.parse(Ai.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===si||e===oi||e===ar}(e),r=!n&&as(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&&(as(e,"getType")||(e.getType=()=>i),as(e,"clone")||(0===Lr.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=>(Mi(t),new e)),as(e,"importJSON")||(0===Lr.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))),!as(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const us=(e,t)=>{let n=e;for(;null!=n&&!ci(n);){if(t(n))return n;n=n.getParent()}return null};function cs(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=null===t?Zi(r):t.get(r);null==e&&$("$createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}const ds={next:"previous",previous:"next"};class fs{origin;constructor(e){this.origin=e}[Symbol.iterator](){return zs({hasNext:xs,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 ps extends fs{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ns(e,this.direction)}getParentCaret(e="root"){return Cs(gs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=ms(this.direction);return Cs(this.getNodeAtCaret(),e)||Ns(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof ps&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const hs={root:ci,shadowRoot:za};function ms(e){return ds[e]}function gs(e,t="root"){return hs[t](e)?null:e}class vs extends fs{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 ii(this.origin)?Ns(this.origin,this.direction):null}getParentCaret(e="root"){return Cs(gs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=ms(this.direction);return Cs(this.getNodeAtCaret(),e)||Ns(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof vs&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof vs||e instanceof ys)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ys extends fs{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Es(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return Cs(gs(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Es(this.origin,ms(this.direction),this.offset)}isSamePointCaret(e){return e instanceof ys&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof vs||e instanceof ys)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return Cs(this.origin,this.direction)}}function bs(e){return e instanceof ys}function xs(e){return e instanceof vs}function _s(e){return e instanceof ps}const ws={next:class extends ys{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ys{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ks={next:class extends vs{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends vs{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ss={next:class extends ps{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends ps{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 ks[t](e):null}function Es(e,t,n){return e?new ws[t](e,Ts(e,n)):null}function Ts(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 As(e,t){return new Rs(e,t)}function Ns(e,t){return ii(e)?new Ss[t](e):null}function Ms(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class Ls{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 Ls(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return bs(t)?function(e,t){const{direction:n,origin:r}=e,o=Ts(r,"focus"===t?ms(n):n);return As(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[As(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=bs(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=bs(n),o=t=>t.isSameNodeCaret(n)?null:Ms(t)||t.getParentCaret(e);return zs({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 Rs{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 Es(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function Os(e){return Is(e,Cs(ia(),e.direction))}function Ps(e){return Is(e,e)}function Is(e,t){return e.direction!==t.direction&&$("$getCaretRange: anchor and focus must be in the same direction"),new Ls(e,t,e.direction)}function zs(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 Ds(e,t){const n=$s(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 js(n)}}function js(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 Fs(e,t){return t.is(e)}function Bs(e){return ii(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function $s(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Bs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Bs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Fs(e,r)||$("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Fs(t,r)||$("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((ii(i)||Fs(e,i))&&(ii(o)||Fs(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 Hs(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Zi(e);return null===t&&$(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?($r(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),Es(i,t,o)):(ii(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),el(i,e.offset,t))}function Ws(e,t){const{origin:n,direction:r}=t,o="next"===r;bs(t)?e.set(n.getKey(),t.offset,"text"):xs(t)?$r(n)?e.set(n.getKey(),Ts(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(_s(t)&&ii(n)||$("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Us(e){const t=go(),n=Qr(t)?t:fo();return Ks(n,e),sa(n),n}function Ks(e,t){Ws(e.anchor,t.anchor),Ws(e.focus,t.focus)}function Gs(e){const{anchor:t,focus:n}=e,r=Hs(t,"next"),o=Hs(n,"next"),i=Ds(r,o)<=0?"next":"previous";return Is(Xs(r,i),Xs(o,i))}function Vs(e){const{direction:t,origin:n}=e,r=Cs(n,ms(t)).getNodeAtCaret();return r?Cs(r,t):Ns(n.getParentOrThrow(),t)}function Ys(e,t="root"){const n=[e];for(let r=_s(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Vs(r));return n}function qs(e){return!!e&&e.origin.isAttached()}function Js(e){const t=function(e){let t=e;for(;_s(t);){const e=Ms(t);if(!_s(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if($r(t.origin))return bs(t)?t:Es(t.origin,n,n);const r=t.getAdjacentCaret();return xs(r)&&$r(r.origin)?Es(r.origin,n,ms(n)):t}function Qs(e){return bs(e)&&e.offset!==Ts(e.origin,e.direction)}function Xs(e,t){return e.direction===t?e:e.getFlipped()}function Zs(e,t){return e.direction===t?e:Is(Xs(e.focus,t),Xs(e.anchor,t))}function el(e,t,n){let r=Ns(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Xs(r,n)}function tl(e){const{origin:t,offset:n,direction:r}=e;if(n===Ts(t,r))return e.getSiblingCaret();if(n===Ts(t,ms(r)))return Vs(e.getSiblingCaret());const[o]=t.splitText(n);return $r(o)||$("$splitTextPointCaret: splitText must return at least one TextNode"),Xs(Cs(o,"next"),r)}function nl(e,t){return!0}function rl(e,{$copyElementNode:t=Da,$splitTextPointCaretNext:n=tl,rootMode:r="shadowRoot",$shouldSplit:o=nl,removeEmptyDestination:i=!1}={}){if(bs(e))return n(e);const a=e.getParentCaret(r);if(a){const{origin:n}=a;if(_s(e)){const e=Vs(a);if(i&&n.isEmpty())return n.remove(),e;if(!n.canBeEmpty()||!o(n,"first"))return e}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||!i&&n.canBeEmpty()&&o(n,"last"))&&a.insert(t(n).splice(0,0,r))}return a}function ol(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function il(...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 al(e,...t){const n=il(...t);n.length>0&&e.classList.add(...n)}function sl(e,...t){const n=il(...t);n.length>0&&e.classList.remove(...n)}function ll(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ul(e){throw new Error(e)}function cl(e){const t=Ja().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function dl(e){return cl(ci(e)?e:e.getParentOrThrow())}function fl(e){const t=dl(e);return null!==t&&"rtl"===t.direction}function pl(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Hi(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]=to(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=ns(t)),t.__text=p)}}return t}function hl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return ii(t)||ul("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}const ml=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("$addNodeStyle is a deprecated no-op and calls should be removed");function gl(e,t){(Qr(e)?e.isCollapsed():$r(e)||ii(e))||ul("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=vr(Qr(e)?e.style:$r(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);Qr(e)||$r(e)?e.setStyle(o):e.setTextStyle(o)}function vl(e,t){if(Qr(e)&&e.isCollapsed()){gl(e,t);const n=e.anchor.getNode();ii(n)&&n.isEmpty()&&gl(n,t)}!function(e){const t=go();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Qr(t))for(const e of Gs(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!$r(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Hi(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Qr(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=>{gl(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!ii(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),gl(r,t))}}}function yl(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function bl(e){const t=xl(e);return null!==t&&"vertical-rl"===t.writingMode}function xl(e){const t=e.anchor.getNode();return ii(t)?cl(t):dl(t)}function _l(e,t){let n=bl(e)?!t:t;wl(e)&&(n=!n);const r=Hs(e.focus,n?"previous":"next");if(Qs(r))return!1;for(const e of Os(r)){if(_s(e))return!e.origin.isInline();if(!ii(e.origin)){if(li(e.origin))return!0;break}}return!1}function wl(e){const t=xl(e);return null!==t&&"rtl"===t.direction}function kl(e,t,n){const r=wl(e);let o;o=bl(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function Sl(e,t,n){const r=vr(e.getStyle());return null!==r&&r[t]||n}function Cl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,a=e.focus,s=e.isBackward(),l=s?a.getNode():i.getNode(),u=s?i.getNode():a.getNode(),c=s?a.offset:i.offset,d=s?i.offset:a.offset;if(Qr(e)&&e.isCollapsed()&&""!==e.style){const n=vr(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||!i.is(l)||!$r(i)||c!==i.getTextContentSize())&&((0===e||!i.is(u)||0!==d)&&$r(i))){const e=Sl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function El(e){throw new Error(e)}const Tl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Al=Tl&&"documentMode"in document?document.documentMode:null;function Nl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function Ml(e){const t=us(e,e=>ii(e)&&!e.isInline());return ii(t)||El(`Expected node ${e.__key} to have closest block element node.`),t}function Ll(e){const t=go()||vo();let n;if(Qr(t))n=Hs(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=Cs(r,"next"))}n=n||Ns(ia(),"previous").getFlipped().insert(bi())}const r=Rl(e,n),o=Ms(r);return Us(Ps(_s(o)?Js(o):r)),e.getLatest()}function Rl(e,t,n){let r=Xs(t,"next");bs(r)&&(0===r.offset?r=Cs(r.origin,"previous").getFlipped():r.offset===r.origin.getTextContentSize()&&(r=Cs(r.origin,"next"))),r.origin.is(e)&&(xs(r)||El(`$insertNodeToNearestRootAtCaret node ${e.getKey()} of type ${e.getType()} can not be inserted into itself`),r=Vs(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=rl(e,n))r=e;return bs(r)&&El("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?bi().append(e):e),Xs(Cs(e.getLatest(),"next"),t.direction)}function Ol(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Pl(e){const t=go();if(!Qr(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=us(o,e=>ii(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}Tl&&"InputEvent"in window&&!Al&&new window.InputEvent("input");const Il=Symbol.for("preact-signals");function zl(){if($l>1)return void $l--;let e,t=!1;for(!function(){let e=Bl;for(Bl=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==jl;){let n=jl;for(jl=void 0,Hl++;void 0!==n;){const r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Vl(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Hl=0,$l--,t)throw e}let Dl,jl;function Fl(e){const t=Dl;Dl=void 0;try{return e()}finally{Dl=t}}let Bl,$l=0,Hl=0,Wl=0;function Ul(e){if(void 0===Dl)return;let t=e.n;return void 0===t||t.t!==Dl?(t={i:0,S:e,p:Dl.s,n:void 0,t:Dl,e:void 0,x:void 0,r:t},void 0!==Dl.s&&(Dl.s.n=t),Dl.s=t,e.n=t,32&Dl.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=Dl.s,t.n=void 0,Dl.s.n=t,Dl.s=t),t):void 0}function Kl(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=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 Gl(e,t){return new Kl(e,t)}function Vl(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 Yl(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 ql(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){Kl.call(this,void 0),this.x=e,this.s=void 0,this.g=Wl-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 Ql(e){const t=e.m;if(e.m=void 0,"function"==typeof t){$l++;const n=Dl;Dl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Xl(e),t}finally{Dl=n,zl()}}}function Xl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ql(e)}function Zl(e){if(Dl!==this)throw new Error("Out-of-order effect");ql(this),Dl=e,this.f&=-2,8&this.f&&Xl(this),zl()}function eu(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function tu(e,t){const n=new eu(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function nu(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function ru(e){throw new Error(e)}function ou(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]=ou(n[e],r[e]);return e}return t}Kl.prototype.brand=Il,Kl.prototype.h=function(){return!0},Kl.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:Fl(()=>{var e;null==(e=this.W)||e.call(this)}))},Kl.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&&Fl(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Kl.prototype.subscribe=function(e){return tu(()=>{const t=this.value,n=Dl;Dl=void 0;try{e(t)}finally{Dl=n}},{name:"sub"})},Kl.prototype.valueOf=function(){return this.value},Kl.prototype.toString=function(){return this.value+""},Kl.prototype.toJSON=function(){return this.value},Kl.prototype.peek=function(){const e=Dl;Dl=void 0;try{return this.value}finally{Dl=e}},Object.defineProperty(Kl.prototype,"value",{get(){const e=Ul(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Hl>100)throw new Error("Cycle detected");!function(e){0!==$l&&0===Hl&&0!==e.l&&(e.l=0,Bl={S:e,v:e.v,i:e.i,o:Bl})}(this),this.v=e,this.i++,Wl++,$l++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{zl()}}}}),Jl.prototype=new Kl,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===Wl)return!0;if(this.g=Wl,this.f|=1,this.i>0&&!Vl(this))return this.f&=-2,!0;const e=Dl;try{Yl(this),Dl=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 Dl=e,ql(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)}Kl.prototype.S.call(this,e)},Jl.prototype.U=function(e){if(void 0!==this.t&&(Kl.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=Ul(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),eu.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.m=e)}finally{e()}},eu.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ql(this),Yl(this),$l++;const e=Dl;return Dl=this,Zl.bind(this,e)},eu.prototype.N=function(){2&this.f||(this.f|=2,this.u=jl,jl=this)},eu.prototype.d=function(){this.f|=8,1&this.f||Xl(this)},eu.prototype.dispose=function(){this.d()};const iu=0,au=1,su=2,lu=3,uu=4,cu=5,du=6,fu=7;function pu(e){return e.id===iu}function hu(e){return e.id===su}function mu(e){return function(e){return e.id===au}(e)||ru(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(au)} temporary)`),Object.assign(e,{id:su})}const gu=new Set;class vu{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:iu}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):ol;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;hu(t)||ru(`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:lu,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:uu,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==uu&&ru(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(cu)} 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:cu,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==cu&&ru(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(cu)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:du})}(n),()=>{const e=this.state;e.id!==fu&&ru(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(fu)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:cu})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==du&&ru(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(du)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:fu})}(t),n}getSignal(){return void 0===this._signal&&ru("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&ru(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=uu}(e)||ru(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(uu)} (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>=lu}(e)||ru(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(lu)} 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&&ru(`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&&ru(`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>=fu}(e)||ru(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(fu)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||gu}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>=cu})(e)||ru(`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 yu={tag:ur};function bu(){const e=ia();e.isEmpty()&&e.append(bi())}const xu={config:{setOptions:yu,updateOptions:yu},init:({$initialEditorState:e=bu})=>({$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(function(e){return e instanceof hi}(r))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:[ui,Lr,xr,Wr,gi]},_u=Symbol.for("@lexical/extension/LexicalBuilder");function wu(){}function ku(e){throw e}function Su(e){return Array.isArray(e)?e:[e]}const Cu="0.44.0+dev.esm";class Eu{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=Cu,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[Su(xu)];for(const n of e)t.push(Su(n));return new Eu(t)}static maybeFromEditor(e){const t=e[_u];return t&&(t.PACKAGE_VERSION!==Cu&&ru(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${Cu}. A project should have exactly one copy of LexicalBuilder`),t instanceof Eu||ru("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=Eu.maybeFromEditor(e);return void 0===t&&ru("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(Ci({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[_u]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=wu;function t(){try{e()}finally{e=wu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=ll(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&&ru(`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&&ru("LexicalBuilder: addExtension called after finalization");const t=Su(e),[n]=t;"string"!=typeof n.name&&ru("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&ru(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new vu(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&ru(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&ru(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Su(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(hu(o))return;const i=n.extension.name;var a;pu(o)||ru(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),pu(a=o)||ru(`LexicalBuilder: Can not apply a temporary mark from state id ${String(a.id)} (expected ${String(iu)} unmarked)`),o=Object.assign(a,{id:au}),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=mu(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())pu(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&&ru(`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 ll(...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 nu(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&ru(`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&&ou(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=ku),e}}function Tu(e,t){const n=Eu.fromEditor(e).getExtensionRep(t);return void 0===n&&ru(`getExtensionDependencyFromEditor: Extension ${t.name} was not built when creating this editor`),n.getExtensionDependency()}function Au(e){return e.canBeEmpty()}function Nu(e,t,n=Au){return ll(e.registerCommand(nn,t=>{const n=go();if(!Qr(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>uo(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=Ml(o.getNode());if(i.canIndent()){const e=i.getKey();let t=fo();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=We(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?an:on:rn;return e.dispatchCommand(r,void 0)},_i),e.registerCommand(on,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Qr(go()))return!1;const r="function"==typeof n?n:n.peek();return Pl(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 Lu extends oi{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new Lu(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),al(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Wa(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:Iu,priority:1})}}static importJSON(e){return zu().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=Ku(e);try{const t=new URL(Ku(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=Da(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Qr(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 Ru(e){const t=Hs(e,"next");return[t,t.getFlipped()]}function Ou(e,t){for(const n of t)if(n.origin.isAttached()){return void Ws(e,Js(n))}}function Pu(e){const t=go();let n=null,r=null;function o(){Qr(t)&&(Ou(t.anchor,n),Ou(t.focus,r),We(t))}Qr(t)&&(n=Ru(t.anchor),r=Ru(t.focus));let i=!1;for(const t of Ns(e,"next")){const n=t.origin;if(ii(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Da(e);t.append(...r),n.append(t),i=!0}Rl(n,Vs(t),{$shouldSplit:()=>!1})}}function a(e,t,n){const[r,o]=e,i=e=>xs(e)&&e.origin.is(t);if(!i(r)&&!i(o))return e;const a=Js(Ns(n,"next"));return[a,a.getFlipped()]}if(e.isAttached()){const t=e.getPreviousSibling();if(Du(t)&&t.shouldMergeAdjacentLink(e))return n&&(n=a(n,t,e)),r&&(r=a(r,t,e)),t.append(...e.getChildren()),e.remove(),void o();const s=e.getNextSibling();Du(s)&&e.shouldMergeAdjacentLink(s)&&(n&&(n=a(n,e,s)),r&&(r=a(r,e,s)),e.append(...s.getChildren()),s.remove(),i=!0)}if(i){if(!e.canBeEmpty()&&e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}o()}}function Iu(e){let t=null;if(Wa(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=zu(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function zu(e="",t){return ja(new Lu(e,t))}function Du(e){return e instanceof Lu}class ju extends Lu{__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 ju(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 Fu().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=Fu(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Fu(e="",t){return ja(new ju(e,t))}function Bu(e){return e instanceof ju}const $u=Ct("TOGGLE_LINK_COMMAND");function Hu(e,t){if("element"===e.type){const n=e.getNode();ii(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Wu(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=go();if(null===a||!Qr(a)&&!Zr(a))return;if(Zr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=us(e,e=>!Bu(e)&&Du(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=us(e,e=>!Bu(e)&&Du(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=zu(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=us(e,e=>!Bu(e)&&Du(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=us(t,e=>!Bu(e)&&Du(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())||ii(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=Da(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=us(e,Du);if(null!==t)return u(t)}!function(e){const t=go();if(!Qr(t))return e();const n=We(t),r=n.isBackward(),o=Hu(n.anchor,r?-1:0),i=Hu(n.focus,r?0:-1),a=e();if(o||i){const e=go();if(Qr(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")}sa(We(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=us(t,Du);if(a){u(a);continue}if(ii(t)){if(!t.isInline())continue;if(Du(t)){if(!(Bu(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();Du(s)&&s.is(e)?s.append(t):(e=zu(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Uu=/^\+?[0-9\s()-]{5,}$/;function Ku(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Uu.test(e)?`tel:${e}`:`https://${e}`}function Gu(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Vu=/[.,;\s]/;function Yu(e,t){return t.test(e)}function qu(e,t){return Yu(e[e.length-1],t)}function Ju(e,t){return Yu(e[0],t)}function Qu(e,t){let n=e.getPreviousSibling();return ii(n)&&(n=n.getLastDescendant()),null===n||kr(n)||$r(n)&&qu(n.getTextContent(),t)}function Xu(e,t){let n=e.getNextSibling();return ii(n)&&(n=n.getFirstDescendant()),null===n||kr(n)||$r(n)&&Ju(n.getTextContent(),t)}function Zu(e,t,n,r,o){if(!(e>0?Yu(r[e-1],n):Qu(o[0],n)))return!1;return t<r.length?Yu(r[t],n):Xu(o[o.length-1],n)}function ec(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 tc(e,t,n,r){const o=Fu(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=Br(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=go(),c=u?u.getNodes().find($r):void 0,d=Br(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Qr(u)?d.select(u.anchor.offset,u.focus.offset):Zr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function nc(e,t,n,r){const o=e.getChildren(),i=o.length;for(let t=0;t<i;t++){const r=o[t];if(!$r(r)||!r.isSimpleText())return rc(e),void n(null,e.getURL())}const a=e.getTextContent(),s=Gu(a,t);if(null===s||s.text!==a)return rc(e),void n(null,e.getURL());if(!Qu(e,r)||!Xu(e,r))return rc(e),void n(null,e.getURL());const l=e.getURL();if(l!==s.url&&(e.setURL(s.url),n(s.url,l)),s.attributes){const t=e.getRel();t!==s.attributes.rel&&(e.setRel(s.attributes.rel||null),n(s.attributes.rel||null,t));const r=e.getTarget();r!==s.attributes.target&&(e.setTarget(s.attributes.target||null),n(s.attributes.target||null,r))}}function rc(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 oc={changeHandlers:[],excludeParents:[],matchers:[],separatorRegex:Vu};function ic(e,t=oc){const{matchers:n,changeHandlers:r,excludeParents:o,separatorRegex:i=Vu}=t,a=(e,t)=>{for(const n of r)n(e,t)};return ll(e.registerNodeTransform(Lr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Bu(t))nc(t,n,a,i);else if(!Du(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(Ju(e.getTextContent(),i)||!Bu(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&$r(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e);!function(e,t,n,r){for(const t of e){const e=t.getParent();if(Bu(e)&&!e.getIsUnlinked())return}let o=[...e];const i=o.map(e=>e.getTextContent()).join("");let a,s=i,l=0;for(;(a=Gu(s,t))&&null!==a;){const e=a.index,t=e+a.length;if(Zu(l+e,l+t,r,i,o)){const[r,,i,u]=ec(o,l+e,l+t);let c=!1;for(const e of i){const t=e.getParent();if(Bu(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){l+=t,s=s.substring(t);continue}const d=tc(i,l+e-r,l+t-r,a);o=d?[d,...u]:u,n(a.url,null),l=0}else l+=t;s=s.substring(t)}}(t,n,a,i)}!function(e,t,n,r){const o=e.getParent(),i=e.getPreviousSibling(),a=e.getNextSibling(),s=e.getTextContent();if(!Bu(o)||o.getIsUnlinked()){if(Bu(i)&&!i.getIsUnlinked()&&i.is(e.getPreviousSibling())&&e.getParent()===i.getParent()){if(!Ju(s,r))return rc(i),void n(null,i.getURL());if(l=s,i.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(l):/^\.[a-zA-Z0-9]{1,}/.test(l)){const o=i.getTextContent()+s,a=Gu(o,t);null!==a&&a.text===o&&(i.append(e),nc(i,t,n,r),n(null,i.getURL()))}}var l;!Bu(a)||a.getIsUnlinked()||qu(s,r)||a.is(e.getNextSibling())&&e.getParent()===a.getParent()&&(rc(a),n(null,a.getURL()))}}(e,n,a,i)}}),e.registerCommand($u,e=>{const t=go();if(null!==e||!Qr(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Bu(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function ac(e){throw new Error(e)}function sc(e){let t=1,n=e.getParent();for(;null!=n;){if(Cc(n)){const e=n.getParent();if(Rc(e)){t++,n=e.getParent();continue}ac("A ListItemNode must have a ListNode for a parent.")}return t}return t}function lc(e){let t=e.getParent();Rc(t)||ac("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),Rc(n)&&(t=n);return t}function uc(e){let t=[];const n=e.getChildren().filter(Cc);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();Rc(o)?t=t.concat(uc(o)):t.push(r)}return t}function cc(e){return Cc(e)&&Rc(e.getFirstChild())}function dc(e){return Sc().append(e)}function fc(e,t){return Cc(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function pc(e){const t=go();if(null!==t){let n=t.getNodes();if(Qr(t)){const r=t.getStartEndPoints();null===r&&ac("insertList: anchor should be defined");const[o]=r,i=o.getNode(),a=i.getParent();if(za(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=bi();i.append(e),n=e.select().getNodes()}}else if(fc(i,n)){const t=Lc(e);if(za(a)){i.replace(t);const e=Sc();ii(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(Cc(i)){const e=i.getParentOrThrow();hc(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(ii(o)&&o.isEmpty()&&!Cc(o)&&!r.has(o.getKey())){mc(o,e);continue}let i=Vi(o)?o.getParent():Cc(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(Rc(i)){if(!r.has(t)){const n=Lc(e);hc(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(za(n)&&!r.has(t)){r.add(t),mc(i,e);break}i=n}}}}}function hc(e,t){e.splice(e.getChildrenSize(),0,t)}function mc(e,t){if(Rc(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Sc();let i;if(hc(o,e.getChildren()),Rc(n)&&t===n.getListType())n.append(o),Rc(r)&&t===r.getListType()&&(hc(n,r.getChildren()),r.remove()),i=n;else if(Rc(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=Lc(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=go();return Qr(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 gc(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&cc(n)&&cc(r)&&(gc(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function vc(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),Rc(r.getFirstChild())||n++)}function yc(e){const t=new Set;if(cc(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(cc(r)&&cc(o)){const n=o.getFirstChild();if(Rc(n)){n.append(e);const o=r.getFirstChild();if(Rc(o)){hc(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(cc(r)){const t=r.getFirstChild();if(Rc(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(cc(o)){const t=o.getFirstChild();Rc(t)&&t.append(e)}else if(Rc(n)){const t=Da(e),i=Da(n);t.append(i),i.append(e),o?o.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function bc(e){if(cc(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(Rc(n?n.getParent():void 0)&&Cc(n)&&Rc(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=Da(e),o=Da(t);r.append(o),e.getPreviousSiblings().forEach(e=>o.append(e));const i=Da(e),a=Da(t);i.append(a),hc(a,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(i),n.replace(e)}}}function xc(e=!1){const t=go();if(!Qr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(Cc(n)&&0===n.getChildrenSize())r=n;else if($r(n)){const e=n.getParent();Cc(e)&&e.getChildren().every(e=>$r(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=lc(r),i=r.getParent();Rc(i)||ac("A ListItemNode must have a ListNode for a parent.");const a=i.getParent();let s;if(za(a))s=bi(),o.insertAfter(s);else{if(!Cc(a))return!1;s=Da(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=Da(i).setStart(t);if(Cc(s)){const e=Da(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||!Cc(e)&&!Rc(e))break;t=e}t.remove()}(r),!0}class _c extends oi{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{const t=e.getParent();if(Rc(t))"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0);else if(t){const n=e.createParentElementNode();Rc(n)||ac("ListItemNode.createParentElementNode() must return a ListNode");const r=[e];for(const t of["previous","next"]){r.reverse();for(const{origin:n}of Cs(e,t)){if(!Cc(n))break;r.push(n)}}e.insertBefore(n),n.splice(0,0,r),za(t)||(Rl(n,Vs(Cs(n,"next")),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:oi,importDOM:{li:()=>({conversion:wc,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();!Rc(r)||"check"!==r.getListType()||Rc(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(...il(a));if(i){const e=n.getParent(),t=Rc(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=il(s);n.getChildren().some(e=>Rc(e))?r.push(...e):o.push(...e)}o.length>0&&sl(e,...o);r.length>0&&al(e,...r)}(t,n.theme,this);const r=e?e.__style:"",o=this.__style;r!==o&&br(t.style,o,r),function(e,t,n){const r=t.__textStyle,o=n?n.__textStyle:"";if(null!==n&&o===r)return;const i=vr(r);for(const t in i)e.style.setProperty(`--listitem-marker-${t}`,i[t]);if(""!==o)for(const t in vr(o))t in i||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),cc(this)?{after(e){if(Ua(e)){const t=e.previousElementSibling;if(Ua(t)&&"LI"===t.nodeName){for(;e.firstChild;)t.append(e.firstChild);e.remove()}}return e},element:t}:{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(ii(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(!Rc(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=Da(n);let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(ii(e)||ac("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(Rc(n)||ac("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=Da(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&&cc(t)&&cc(n)&&(gc(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){const n=Da(this);return this.insertAfter(n,t),n}collapseAtStart(e){const t=bi();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 Rc(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&&ac("Invalid indent value."),(e=Math.floor(e))>=0||ac("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(yc(this),t++):(bc(this),t--);return this}canInsertAfter(e){return Cc(e)}canReplaceWith(e){return Cc(e)}canMergeWith(e){return Cc(e)||xi(e)}extractWithChild(e,t){if(!Qr(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 Lc("bullet")}canMergeWhenEmpty(){return!0}}function wc(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return kc(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 kc(t.children[0]);const t=e.getAttribute("aria-checked");return{node:Sc("true"===t||"false"!==t&&void 0)}}function kc(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:Sc(e.hasAttribute("checked"))}}function Sc(e){return ja(new _c(void 0,e))}function Cc(e){return e instanceof _c}class Ec extends oi{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();Rc(t)&&e.getListType()===t.getListType()&&gc(e,t)}(e),vc(e)},extends:oi,importDOM:{ol:()=>({conversion:Nc,priority:0}),ul:()=>({conversion:Nc,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,Tc(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Tc(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 Ua(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(Cc)??this.getChildren().find(Cc),o=r?()=>Da(r):Sc;let i=n;for(let e=0;e<n.length;e++){const t=n[e];Cc(t)||(i===n&&(i=[...n]),i[e]=o().append(!ii(t)||Rc(t)||t.isInline()?t:Br(t.getTextContent())))}return super.splice(e,t,i)}extractWithChild(e){return Cc(e)}}function Tc(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=sc(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(...il(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=il(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&sl(e,...o),r.length>0&&al(e,...r)}function Ac(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=>{Rc(e)&&t.push(dc(e))})}else t.push(dc(r))}return t}function Nc(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=Lc("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(Ua(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?Lc("check"):Lc("bullet"));return{after:Ac,node:n}}const Mc={ol:"number",ul:"bullet"};function Lc(e="number",t=1){return ja(new Ec(e,t))}function Rc(e){return e instanceof Ec}const Oc=Ct("UPDATE_LIST_START_COMMAND"),Pc=Ct("INSERT_UNORDERED_LIST_COMMAND"),Ic=Ct("INSERT_ORDERED_LIST_COMMAND"),zc=Ct("REMOVE_LIST_COMMAND");function Dc(e,t){const n=ll(e.registerCommand(Ic,()=>(pc("number"),!0),1),e.registerCommand(Oc,e=>{const{listNodeKey:t,newStart:n}=e,r=Zi(t);return!!Rc(r)&&("number"===r.getListType()&&(r.setStart(n),vc(r)),!0)},1),e.registerCommand(Pc,()=>(pc("bullet"),!0),1),e.registerCommand(zc,()=>(function(){const e=go();if(Qr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(fc(r,n))t.add(lc(r));else for(let e=0;e<n.length;e++){const r=n[e];if(Vi(r)){const e=Nl(r,_c);null!=e&&t.add(lc(e))}}for(const n of t){let t=n;const r=uc(n);for(const n of r){const r=bi().setTextStyle(e.style).setTextFormat(e.format);hc(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&Ws(e.anchor,Js(Ns(r,"next"))),n.__key===e.focus.key&&Ws(e.focus,Js(Ns(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(It,()=>xc(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(_c,e=>{const t=e.getFirstChild();if(t){if($r(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=go();Qr(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(Lr,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 jc(e){const t=e=>{const t=e.getParent();if(Rc(e.getFirstChild())||!Rc(t))return;const n=us(e,e=>Cc(e)&&Rc(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(;Rc(n);){const e=n.getLastChild();if(!Cc(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(Rc(o)){const n=sc(o);n+1<sc(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(Ec,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(Rc(e))for(const r of e.getChildren())if(Cc(r)){t(r);const e=r.getFirstChild();Rc(e)&&n.push(e)}}})}const Fc=D.createContext(null);function Bc(){const e=D.useContext(Fc);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var $c,Hc,Wc={exports:{}},Uc={};var Kc=(Hc||(Hc=1,Wc.exports=function(){if($c)return Uc;$c=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 Uc.Fragment=n,Uc.jsx=a,Uc.jsxs=a,Uc}()),Wc.exports);const Gc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Vc=Gc?D.useLayoutEffect:D.useEffect,Yc={tag:ur};function qc({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=Ci({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=ia();if(t.isEmpty()){const n=bi();t.append(n);const r=Gc?document.activeElement:null;(null!==go()||null!==r&&r===e.getRootElement())&&n.select()}},Yc);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Yc);break}case"object":e.setEditorState(t,Yc);break;case"function":e.update(()=>{ia().isEmpty()&&t(e)},Yc)}}(l,i),[l,s]},[]);return Vc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Kc.jsx(Fc.Provider,{value:n,children:t})}function Jc(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(!(Qr(i)&&Qr(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||ci(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)&&$r(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!$r(u)||!$r(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 Qc(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(hr)&&(i=r,a=o,s=l),p.has(lr))return o=0,r=h,2;p.has(mr)&&s&&(r=i,o=a,l=s);const m=Jc(l,u,d,f,e.isComposing()),g=(()=>{const n=null===c||c.editor===e,i=p.has("history-push");if(!i&&n&&p.has(ur))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!(Qr(i)&&Qr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!$r(r)||!$r(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 Xc(e){e.undoStack=[],e.redoStack=[],e.current=null}function Zc(e,t,n,r=Date.now){const o=Qc(e,n,r);return ll(e.registerCommand(Ht,()=>(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(vn,!0)),0===r.length&&e.dispatchCommand(yn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:lr})}}(e,t),!0),_i),e.registerCommand(Wt,()=>(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(yn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(vn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:lr})}}(e,t),!0),_i),e.registerCommand(mn,()=>(Xc(t),!1),_i),e.registerCommand(gn,()=>(Xc(t),e.dispatchCommand(vn,!1),e.dispatchCommand(yn,!1),!0),_i),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(vn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(yn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}))}function ed({delay:e,externalHistoryState:t}){const[n]=Bc();return function(e,t,n=1e3){const r=D.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);D.useEffect(()=>Zc(e,r,n),[n,e,r])}(n,t,e),null}function td({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Bc();return D.useEffect(()=>{if(!n.hasNodes([Ec,_c]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),D.useEffect(()=>ll(Dc(n,{restoreNumbering:t}),e?jc(n):()=>{}),[n,e,t]),function(e){D.useEffect(()=>Dc(e),[e])}(n),null}function nd({maxIndent:e,$canIndent:t}){const[n]=Bc();return D.useEffect(()=>Nu(n,e,t),[n,e,t]),null}function rd(e){throw new Error(e)}let od;function id(e,t){const{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function ad(e){return od&&od.editor===e?od:void 0}function sd(e,t){if("cfg"in t){const{cfg:n,updater:r}=t;return[n,r(id(e,n))]}return t}function ld(e,t){let n=t;for(const r of e){const[e,o]=sd(n,r),i=e.key;if(n===t&&id(n,e)===o)continue;const a=n||ud(t);a[i]=o,n=a}return n}function ud(e){return Object.create(e||null)}function cd(e,t,n,r){return Object.assign(function(e,t){return new Me(e,t)}(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}const dd="@lexical/html/DOM",fd=Symbol.for("@lexical/html/DOMExportContext"),pd=()=>!0;function hd(e){const t={},{nodes:n}=function(e){const t=new Set,n=new Set;for(const r of nu(e)){const e="function"==typeof r?r:r.replace;ls(e),t.add(e.getType()),n.add(e)}return{nodes:n,types:t}}(e);for(const e of n){t[e.getType()]={klass:e,types:{}}}for(const e of Object.values(t))if(e){const n=e.klass.getType();for(let{klass:r}=e;sr(r.prototype);r=Object.getPrototypeOf(r)){const{ownNodeType:e}=ls(r),o=e&&t[e];o&&(o.types[n]=!0)}}return t}function md(e){return t=>t instanceof e}function gd(e,{nodes:t}){if("*"===t)return pd;let n={};const r=[];for(const o of t)if("getType"in o){const t=o.getType();if(n){const r=e[t];void 0===r&&rd(`Node class ${o.name} with type ${t} not registered in editor`),n=Object.assign(n,r.types)}r.push(md(o))}else n=void 0,r.push(o);return n||(1===r.length?r[0]:e=>{for(const t of r)if(t(e))return!0;return!1})}function vd(e){return(t,n,r)=>e(t,r)}function yd(e){return(t,n,r,o)=>e(t,n,o)}function bd(e){return(t,n,r,o,i)=>e(t,n,r,i)}function xd(e){return(t,n,r,o,i,a)=>e(t,n,r,o,a)}function _d(e,t){return(n,r)=>{const o=()=>e(n,r),i=t(n);return i?i(n,o,r):o()}}function wd(e,t){return(n,r,o)=>{const i=()=>e(n,r,o),a=t(n);return a?a(n,r,i,o):i()}}function kd(e,t){return(n,r,o,i)=>{const a=()=>e(n,r,o,i),s=t(n);return s?s(n,r,o,a,i):a()}}function Sd(e,t){return(n,r,o,i,a)=>{const s=()=>e(n,r,o,i,a),l=t(n);return l?l(n,r,o,i,s,a):s()}}function Cd(e,t){return(n,r,o,i)=>{e(n,r,o,i);const a=t(n);a&&a(n,r,o,i)}}function Ed(e,t,n,r,o){let i=n[t];for(const n of e[t])if("function"==typeof n[0]){const[e,t]=n;i=r(i,n=>e(n)&&t||void 0)}else{const e=n[1],t={};for(const n in e){const o=e[n];o&&(t[n]=o.reduce((e,t)=>r(e,()=>t),i))}i=r(i,e=>{const n=t[e.getType()];return n&&o(n)})}n[t]=i}function Td(e,t,n,r){if(!r)return;const o=e[t];if("function"==typeof n)o.push([n,r]);else{const e=o[o.length-1];let t;e&&"types"===e[0]?t=e[1]:(t={},o.push(["types",t]));for(const e in n){const n=t[e]||[];t[e]=n,n.push(r)}}}function Ad(e){return"*"===e.nodes}function Nd(e,t){const n=hd(e),r={$createDOM:[],$decorateDOM:[],$exportDOM:[],$extractWithChild:[],$getDOMSlot:[],$shouldExclude:[],$shouldInclude:[],$updateDOM:[]};for(const e of function(e){const t=[],n=[],r=[];for(const o of e)if(Ad(o))t.push(o);else if(Array.isArray(o.nodes))for(const e of o.nodes)sr(e.prototype)?r.push(1===o.nodes.length?o:{...o,nodes:[e]}):n.push(1===o.nodes.length?o:{...o,nodes:[e]});const o=new Map,i=e=>{let t=o.get(e);if(void 0===t){t=0;for(let n=e;sr(n.prototype);n=Object.getPrototypeOf(n))t++;o.set(e,t)}return t};return r.sort((e,t)=>i(e.nodes[0])-i(t.nodes[0])),[...r,...n,...t]}(t)){const t=gd(n,e);for(const n in r){Td(r,n,t,e[n])}}return r}function Md(e){return e}const Ld={build:(e,t,n)=>({defaults:ld(t.contextDefaults,void 0)}),config:{contextDefaults:[],overrides:[]},html:{export:new Map([[ui,()=>{const e=document.createElement("div");return e.role="textbox",{element:e}}]])},init(e,t){e.dom=function(e,{overrides:t}){const n=Nd(e,t),r={...Si,...e.dom};return Ed(n,"$createDOM",r,_d,vd),Ed(n,"$exportDOM",r,_d,vd),Ed(n,"$extractWithChild",r,Sd,xd),Ed(n,"$getDOMSlot",r,wd,yd),Ed(n,"$shouldExclude",r,wd,yd),Ed(n,"$shouldInclude",r,wd,yd),Ed(n,"$updateDOM",r,kd,bd),Ed(n,"$decorateDOM",r,Cd,Md),r}(e,t)},mergeConfig(e,t){const n=ol(e,t);for(const r of["overrides","contextDefaults"])t[r]&&(n[r]=[...e[r],...t[r]]);return n},name:dd};const Rd=(Od=Boolean,cd(fd,"isExport",Od,Pd));var Od,Pd;const Id=function(e,t=()=>{}){return(n,r=Ja())=>o=>{const i=ad(r),a=i&&i[e],s=ld(n,a||t(r));return s&&s!==a?function(e,t,n,r=Ja()){const o=od,i=ad(r);try{return od={...i,editor:r,[e]:t},n()}finally{od=o}}(e,s,o,r):o()}}(fd,function(e){const t=Eu.maybeFromEditor(e);return t&&t.hasExtensionByName(dd)?Tu(e,Ld).output.defaults:void 0});function zd(e){return e.constructor.name===CSSStyleRule.name}const Dd=new Set(["STYLE","SCRIPT"]);function jd(e,t){Ui(t)&&function(e){if(null===e.querySelector("style"))return;const t=new Map;function n(e){let n=t.get(e);if(void 0===n){n=new Set;for(let t=0;t<e.style.length;t++)n.add(e.style[t]);t.set(e,n)}return n}try{for(const t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch(e){continue}for(const t of Array.from(r)){if(!zd(t))continue;let r;try{r=e.querySelectorAll(t.selectorText)}catch(e){continue}for(const e of Array.from(r)){if(!Ua(e))continue;const r=n(e);for(let n=0;n<t.style.length;n++){const o=t.style[n];r.has(o)||e.style.setProperty(o,t.style.getPropertyValue(o),t.style.getPropertyPriority(o))}}}}}catch(e){}}(t);const n=Ui(t)?t.body.childNodes:t.childNodes,r=[],o=[];for(const t of n)if(!Dd.has(t.nodeName)){const n=$d(t,e,o,!1);if(null!==n)for(const e of n)r.push(e)}return function(e){for(const t of e)t.getParent()&&t.getNextSibling()instanceof mi&&t.insertAfter(wr());for(const t of e){const e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(o),r}function Fd(e,t=null){return("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)&&rd("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom or use withDOM from @lexical/headless/dom before calling this function."),function(e,t=null,n=Ja()){return Id([(r=Rd,o=!0,[r,o])],n)(()=>{const r=ia(),o=Qa(n),i=e.append.bind(e);for(const e of r.getChildren())Bd(n,e,i,t,o);return e});var r,o}(document.createElement("div"),t,e).innerHTML}function Bd(e,t,n,r=null,o=Qa(e)){let i=o.$shouldInclude(t,r,e);const a=o.$shouldExclude(t,r,e);let s=t;null!==r&&$r(t)&&(s=pl(r,t,"clone"));const l=o.$exportDOM(s,e),{element:u,after:c,append:d,$getChildNodes:f}=l;if(!u)return!1;const p=document.createDocumentFragment(),h=f?f():ii(s)?s.getChildren():[],m=p.append.bind(p);for(const n of h){const a=Bd(e,n,m,r,o);!i&&a&&o.$extractWithChild(t,n,r,"html",e)&&(i=!0)}if(i&&!a){if((Ua(u)||Ga(u))&&(d?d(p):u.append(p)),n(u),c){const e=c.call(s,u);e&&(Ga(u)?u.replaceChildren(e):u.replaceWith(e))}}else n(p);return i}function $d(e,t,n,r,o=new Map,i){const a=[];if(Dd.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||!za(s))&&(null!=s&&uo(s)||r);for(let e=0;e<d.length;e++)f.push(...$d(d[e],t,n,p,new Map(o),s));if(null!=c&&(f=c(f)),Ya(e)&&(f=Hd(e,f,p?()=>{const e=new mi;return n.push(e),e}:bi)),null==s)if(f.length>0)for(const e of f)a.push(e);else Ya(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return Va(e.nextSibling)&&Va(e.previousSibling)}(e)&&a.push(wr());else ii(s)&&s.append(...f);return a}function Hd(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(uo(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&uo(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Wd(e){throw new Error(e)}function Ud(e,t=go()){return null==t&&Wd("Expected valid LexicalSelection"),Qr(t)&&t.isCollapsed()||0===t.getNodes().length?"":Fd(e,t)}function Kd(e,t=go()){return null==t&&Wd("Expected valid LexicalSelection"),Qr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=ia().getChildren();for(let o=0;o<r.length;o++){Qd(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}function Gd(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=Ko(e[n]);$r(r)&&ml(r),t.push(r)}return t}(e.nodes);return Jd(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 Jd(n,jd(n,e),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Qr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=go();if(Qr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Ur()]):n.insertText(r)}}}else t.insertRawText(a)}const Vd="application/x-lexical-drag";function Yd(e){const t=function(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}(e.clientX,e.clientY);if(null===t)return null;const n=na(t.node);if(null===n)return null;if($r(n))return Es(n,"next",t.offset);if(ii(n))return el(n,t.offset,"next");const r=n.getParent();return null===r?null:el(r,n.getIndexWithinParent()+1,"next")}function qd(e,t,n){const r=e.dataTransfer;if(null===r)return!1;const o=function(e){const t=e.getData(Vd);if(!t)return null;let n;try{n=JSON.parse(t)}catch(e){return null}return null!==(r=n)&&"object"==typeof r&&"editorKey"in r&&"string"==typeof r.editorKey?n:null;var r}(r);if(null===o)return!1;const i=Yd(e);if(null===i)return!1;const a=rl(i);if(null===a)return!1;const s=o.editorKey===t.getKey(),l=go();if(s){if(!Qr(l)||l.isCollapsed())return!1;if(function(e,t){const{anchor:n,focus:r}=Zs(Gs(t),"next");return Ds(n,e)<0&&Ds(e,r)<0}(i,l))return e.preventDefault(),!0;l.removeText()}if(!a.origin.isAttached())return e.preventDefault(),!0;if(n(r,Us(Ps(a)),t),!s){const e=t.getRootElement(),n=e?e.ownerDocument:null,r=n?function(e,t){const n=t.querySelectorAll('[data-lexical-editor="true"]');for(const t of Array.from(n)){const n=t.__lexicalEditor;if(n&&n.getKey()===e)return t}return null}(o.editorKey,n):null;null!==r&&r.dispatchEvent(new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteByDrag"}))}return e.preventDefault(),!0}function Jd(e,t,n){e.dispatchCommand(Tt,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Qr(e)&&e.isCollapsed()){let t=null;const n=Hs(e.anchor,"previous");if(n)if(bs(n))t=n.origin;else{const e=Is(n,Ns(ia(),"next").getFlipped());for(const n of e){if($r(n.origin)){t=n.origin;break}if(ii(n.origin)&&!n.origin.isInline())break}}if(t&&$r(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 Qd(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=ii(n)&&n.excludeFromCopy("html");let a=n;null!==t&&$r(a)&&(a=pl(t,a,"clone"));const s=ii(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Wd(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),ii(e)){const e=t.children;Array.isArray(e)||Wd(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(a);$r(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=Qd(e,t,i,l.children);!o&&ii(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 Xd=null;async function Zd(e,t,n){if(null!==Xd)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(ef(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=Ha(o);if(null===r||null===a)return!1;const s=i.createElement("span");s.style.position="fixed",s.style.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(fn,r=>(Ol(r,ClipboardEvent)&&(a(),null!==Xd&&(o.clearTimeout(Xd),Xd=null),t(ef(e,r,n))),!0),4);Xd=o.setTimeout(()=>{a(),Xd=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function ef(e,t,n){if(void 0===n){const t=Ha(e._window),r=go();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Di(e,o,i))return!1;n=nf(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(rf(r,n),!0)}const tf=[["text/html",Ud],["application/x-lexical-editor",Kd]];function nf(e=go()){return function(e,t){const n={"text/plain":""};for(const[r,o]of Object.entries(e)){const e=af(o,t);null!==e&&(n[r]=e)}return n}(function(){const e=Ja(),t=Eu.maybeFromEditor(e);if(t&&t.hasExtensionByName(sf.name))return Tu(e,sf).output;return of}(),e)}function rf(e,t){for(const[n]of tf)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}const of={"application/x-lexical-editor":[(e,t)=>e?Kd(Ja(),e):t()],"text/html":[(e,t)=>e?Ud(Ja(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]};function af(e,t){const n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}const sf={build:(e,t,n)=>t.$exportMimeType,config:{$exportMimeType:of},mergeConfig(e,t){const n=ol(e,t);if(t.$exportMimeType){const r={...e.$exportMimeType};for(const[e,n]of Object.entries(t.$exportMimeType))r[e]=[...r[e],...n];n.$exportMimeType=r}return n},name:"@lexical/clipboard/GetClipboardData"};function lf(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 uf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,cf=uf&&"documentMode"in document?document.documentMode:null,df=uf&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ff=!(!uf||!("InputEvent"in window)||cf)&&"getTargetRanges"in new window.InputEvent("input"),pf=uf&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,hf=uf&&/Android/.test(navigator.userAgent),mf=uf&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!hf,gf=uf&&/^(?=.*Chrome).*/i.test(navigator.userAgent),vf=uf&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&df&&!gf,yf=Ct("DRAG_DROP_PASTE_FILE");class bf extends oi{static getType(){return"quote"}static clone(e){return new bf(e.__key)}createDOM(e){const t=document.createElement("blockquote");return al(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:Cf,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ua(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 xf().updateFromJSON(e)}insertNewAfter(e,t){const n=bi(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=bi();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function xf(){return ja(new bf)}function _f(e){return e instanceof bf}class wf extends oi{__tag;static getType(){return"heading"}static clone(e){return new wf(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){al(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Sf,priority:0}),h2:e=>({conversion:Sf,priority:0}),h3:e=>({conversion:Sf,priority:0}),h4:e=>({conversion:Sf,priority:0}),h5:e=>({conversion:Sf,priority:0}),h6:e=>({conversion:Sf,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&kf(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>kf(e)?{conversion:e=>({node:Ef("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ua(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 Ef(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?bi():Ef(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=bi();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?bi():Ef(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function kf(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Sf(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Ef(t),null!==e.style&&(rs(e,n),n.setFormat(e.style.textAlign))),{node:n}}function Cf(e){const t=xf();return null!==e.style&&(t.setFormat(e.style.textAlign),rs(e,t)),{node:t}}function Ef(e="h1"){return ja(new wf(e))}function Tf(e){return e instanceof wf}function Af(e){let t=null;if(Ol(e,DragEvent)?t=e.dataTransfer:Ol(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 Nf(e){return li(na(e))}function Mf(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Lf(e){const t=ll(e.registerCommand(At,e=>{const t=go();return!!Zr(t)&&(t.clear(),!0)},_i),e.registerCommand(Ot,e=>{const t=go();return Qr(t)?(t.deleteCharacter(e),!0):!!Zr(t)&&(t.deleteNodes(),!0)},_i),e.registerCommand(Ft,e=>{const t=go();return!!Qr(t)&&(t.deleteWord(e),!0)},_i),e.registerCommand(Bt,e=>{const t=go();return!!Qr(t)&&(t.deleteLine(e),!0)},_i),e.registerCommand(zt,t=>{const n=go();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)Gd(r,n,e);else if(Qr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},_i),e.registerCommand(jt,()=>{const e=go();return!!Qr(e)&&(e.removeText(),!0)},_i),e.registerCommand($t,e=>{const t=go();return!!Qr(t)&&(t.formatText(e),!0)},_i),e.registerCommand(ln,e=>{const t=go();if(!Qr(t)&&!Zr(t))return!1;const n=t.getNodes();for(const t of n){const n=us(t,e=>ii(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},_i),e.registerCommand(Pt,e=>{const t=go();return!!Qr(t)&&(t.insertLineBreak(e),!0)},_i),e.registerCommand(It,()=>{const e=go();return!!Qr(e)&&(e.insertParagraph(),!0)},_i),e.registerCommand(rn,()=>{const e=Ur(),t=go();return Qr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),Co([e]),!0},_i),e.registerCommand(on,()=>Pl(e=>{const t=e.getIndent();e.setIndent(t+1)}),_i),e.registerCommand(an,()=>Pl(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),_i),e.registerCommand(qt,e=>{const t=go();if(Zr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Qr(t)){const n=Ea(t.focus,!0);if(!e.shiftKey&&li(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},_i),e.registerCommand(Jt,e=>{const t=go();if(Zr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Qr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===ia().getChildrenSize()}(t))return e.preventDefault(),!0;const n=Ea(t.focus,!1);if(!e.shiftKey&&li(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},_i),e.registerCommand(Vt,e=>{const t=go();if(Zr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),fl(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Qr(t))return!1;if(_l(t,!0)){const n=e.shiftKey;return e.preventDefault(),kl(t,n,!0),!0}return!1},_i),e.registerCommand(Kt,e=>{const t=go();if(Zr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),fl(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Qr(t))return!1;const n=e.shiftKey;return!!_l(t,!1)&&(e.preventDefault(),kl(t,n,!1),!0)},_i),e.registerCommand(Zt,t=>{if(Nf(t.target))return!1;const n=go();if(Qr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ci(n))return!1;const r=Ml(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(an,void 0);if(pf&&"ko-KR"===navigator.language)return!1}else if(!Zr(n))return!1;return t.preventDefault(),e.dispatchCommand(Ot,!0)},_i),e.registerCommand(tn,t=>{if(Nf(t.target))return!1;const n=go();return!(!Qr(n)&&!Zr(n))&&(t.preventDefault(),e.dispatchCommand(Ot,!1))},_i),e.registerCommand(Qt,t=>{const n=go();if(!Qr(n))return!1;if(Mf(n),null!==t){if((pf||mf||vf)&&ff)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Pt,!1)}return e.dispatchCommand(It,void 0)},_i),e.registerCommand(en,()=>!!Qr(go())&&(e.blur(),!0),_i),e.registerCommand(sn,t=>{const[,n]=Af(t);if(n.length>0){const r=lf(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=na(o);if(null!==i){const e=fo();if($r(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")}sa(We(e))}e.dispatchCommand(yf,n)}return t.preventDefault(),!0}return function(e,t){return qd(e,t,Gd)}(t,e)},_i),e.registerCommand(un,t=>{const[n]=Af(t),r=go();return!(n&&!Qr(r))&&(Qr(r)&&!r.isCollapsed()&&null!==t.dataTransfer&&(rf(t.dataTransfer,nf(r)),function(e,t){const n={editorKey:t.getKey()};e.setData(Vd,JSON.stringify(n))}(t.dataTransfer,e)),!0)},_i),e.registerCommand(cn,e=>{const[t]=Af(e),n=go();if(t&&!Qr(n))return!1;const r=lf(e.clientX,e.clientY);if(null!==r){li(na(r.node))&&e.preventDefault()}return!0},_i),e.registerCommand(hn,()=>(function(e){const t=ia();if(Qr(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"),We(e),e}{const e=t.select(0,t.getChildrenSize());sa(We(e))}}(),!0),_i),e.registerCommand(fn,t=>(Zd(e,Ol(t,ClipboardEvent)?t:null),!0),_i),e.registerCommand(pn,t=>(async function(e,t){await Zd(t,Ol(e,ClipboardEvent)?e:null),t.update(()=>{const e=go();Qr(e)?e.removeText():Zr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),_i),e.registerCommand(Dt,t=>{const[,n,r]=Af(t);if(n.length>0&&!r)return e.dispatchCommand(yf,n),!0;if(Ka(t.target)&&zi(t.target))return!1;return null!==go()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=go(),r=Ol(e,InputEvent)||Ol(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&Gd(r,n,t)},{tag:"paste"})}(t,e),!0)},_i),e.registerCommand(Xt,e=>{const t=go();return Qr(t)&&Mf(t),!1},_i),e.registerCommand(nn,e=>{const t=go();return Qr(t)&&Mf(t),!1},_i));return t}function Rf(e,t,n,r){D.useEffect(()=>{e.hasNodes([ju])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),D.useEffect(()=>ic(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Of({matchers:e,onChange:t,excludeParents:n}){const[r]=Bc();return Rf(r,e,t,n),null}const Pf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function If(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function zf(){return function(e){const[t]=Bc(),n=D.useMemo(()=>e(t),[t,e]),[r,o]=D.useState(()=>n.initialValueFn()),i=D.useRef(r);return Pf(()=>{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}(If)}const Df={black:"#000",white:"#fff"},jf="#e57373",Ff="#ef5350",Bf="#f44336",$f="#d32f2f",Hf="#c62828",Wf="#f3e5f5",Uf="#ce93d8",Kf="#ba68c8",Gf="#ab47bc",Vf="#9c27b0",Yf="#7b1fa2",qf="#e3f2fd",Jf="#90caf9",Qf="#42a5f5",Xf="#1976d2",Zf="#1565c0",ep="#4fc3f7",tp="#29b6f6",np="#03a9f4",rp="#0288d1",op="#01579b",ip="#81c784",ap="#66bb6a",sp="#4caf50",lp="#388e3c",up="#2e7d32",cp="#1b5e20",dp="#ffb74d",fp="#ffa726",pp="#ff9800",hp="#f57c00",mp="#e65100",gp={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 vp(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 yp=Object.freeze({__proto__:null,default:vp}),bp="$$material";function xp(){return xp=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},xp.apply(null,arguments)}function _p(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 wp=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}(),kp="-ms-",Sp="-moz-",Cp="-webkit-",Ep="comm",Tp="rule",Ap="decl",Np="@keyframes",Mp=Math.abs,Lp=String.fromCharCode,Rp=Object.assign;function Op(e){return e.trim()}function Pp(e,t,n){return e.replace(t,n)}function Ip(e,t){return e.indexOf(t)}function zp(e,t){return 0|e.charCodeAt(t)}function Dp(e,t,n){return e.slice(t,n)}function jp(e){return e.length}function Fp(e){return e.length}function Bp(e,t){return t.push(e),e}var $p=1,Hp=1,Wp=0,Up=0,Kp=0,Gp="";function Vp(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$p,column:Hp,length:a,return:""}}function Yp(e,t){return Rp(Vp("",null,null,"",null,null,0),e,{length:-e.length},t)}function qp(){return Kp=Up>0?zp(Gp,--Up):0,Hp--,10===Kp&&(Hp=1,$p--),Kp}function Jp(){return Kp=Up<Wp?zp(Gp,Up++):0,Hp++,10===Kp&&(Hp=1,$p++),Kp}function Qp(){return zp(Gp,Up)}function Xp(){return Up}function Zp(e,t){return Dp(Gp,e,t)}function eh(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 th(e){return $p=Hp=1,Wp=jp(Gp=e),Up=0,[]}function nh(e){return Gp="",e}function rh(e){return Op(Zp(Up-1,ah(91===e?e+2:40===e?e+1:e)))}function oh(e){for(;(Kp=Qp())&&Kp<33;)Jp();return eh(e)>2||eh(Kp)>3?"":" "}function ih(e,t){for(;--t&&Jp()&&!(Kp<48||Kp>102||Kp>57&&Kp<65||Kp>70&&Kp<97););return Zp(e,Xp()+(t<6&&32==Qp()&&32==Jp()))}function ah(e){for(;Jp();)switch(Kp){case e:return Up;case 34:case 39:34!==e&&39!==e&&ah(Kp);break;case 40:41===e&&ah(e);break;case 92:Jp()}return Up}function sh(e,t){for(;Jp()&&e+Kp!==57&&(e+Kp!==84||47!==Qp()););return"/*"+Zp(t,Up-1)+"*"+Lp(47===e?e:Jp())}function lh(e){for(;!eh(Qp());)Jp();return Zp(e,Up)}function uh(e){return nh(ch("",null,null,null,[""],e=th(e),0,[0],e))}function ch(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=Jp()){case 40:if(108!=h&&58==zp(k,d-1)){-1!=Ip(k+=Pp(rh(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=rh(y);break;case 9:case 10:case 13:case 32:k+=oh(h);break;case 92:k+=ih(Xp()-1,7);continue;case 47:switch(Qp()){case 42:case 47:Bp(fh(sh(Jp(),Xp()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=jp(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=Pp(k,/\f/g,"")),p>0&&jp(k)-d&&Bp(p>32?ph(k+";",r,n,d-1):ph(Pp(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Bp(w=dh(k,t,n,u,c,o,s,b,x=[],_=[],d),i),123===y)if(0===c)ch(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===zp(k,3)?100:f){case 100:case 108:case 109:case 115:ch(e,w,w,r&&Bp(dh(e,w,w,0,0,o,s,b,o,x=[],d),_),o,_,d,s,r?x:_);break;default:ch(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+jp(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==qp())continue;switch(k+=Lp(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(jp(k)-1)*v,v=1;break;case 64:45===Qp()&&(k+=rh(Jp())),f=Qp(),c=d=jp(b=k+=lh(Xp())),y++;break;case 45:45===h&&2==jp(k)&&(m=0)}}return i}function dh(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Fp(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Dp(e,d+1,d=Mp(m=a[h])),b=e;v<p;++v)(b=Op(m>0?f[v]+" "+y:Pp(y,/&\f/g,f[v])))&&(l[g++]=b);return Vp(e,t,n,0===o?Tp:s,l,u,c)}function fh(e,t,n){return Vp(e,t,n,Ep,Lp(Kp),Dp(e,2,-2),0)}function ph(e,t,n,r){return Vp(e,t,n,Ap,Dp(e,0,r),Dp(e,r+1,-1),r)}function hh(e,t){for(var n="",r=Fp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ap:return e.return=e.return||e.value;case Ep:return"";case Np:return e.return=e.value+"{"+hh(e.children,r)+"}";case Tp:e.value=e.props.join(",")}return jp(n=hh(e.children,r))?e.return=e.value+"{"+n+"}":""}function gh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vh=function(e,t,n){for(var r=0,o=0;r=o,o=Qp(),38===r&&12===o&&(t[n]=1),!eh(o);)Jp();return Zp(e,Up)},yh=function(e,t){return nh(function(e,t){var n=-1,r=44;do{switch(eh(r)){case 0:38===r&&12===Qp()&&(t[n]=1),e[n]+=vh(Up-1,t,n);break;case 2:e[n]+=rh(r);break;case 4:if(44===r){e[++n]=58===Qp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Lp(r)}}while(r=Jp());return e}(th(e),t))},bh=new WeakMap,xh=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)||bh.get(n))&&!r){bh.set(e,!0);for(var o=[],i=yh(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]}}},_h=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},wh=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},kh=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Sh=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ch=function(e,t,n){kh(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."),Sh(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!kh(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."),Sh(e)))};function Eh(e,t){switch(function(e,t){return 45^zp(e,0)?(((t<<2^zp(e,0))<<2^zp(e,1))<<2^zp(e,2))<<2^zp(e,3):0}(e,t)){case 5103:return Cp+"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 Cp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cp+e+Sp+e+kp+e+e;case 6828:case 4268:return Cp+e+kp+e+e;case 6165:return Cp+e+kp+"flex-"+e+e;case 5187:return Cp+e+Pp(e,/(\w+).+(:[^]+)/,Cp+"box-$1$2"+kp+"flex-$1$2")+e;case 5443:return Cp+e+kp+"flex-item-"+Pp(e,/flex-|-self/,"")+e;case 4675:return Cp+e+kp+"flex-line-pack"+Pp(e,/align-content|flex-|-self/,"")+e;case 5548:return Cp+e+kp+Pp(e,"shrink","negative")+e;case 5292:return Cp+e+kp+Pp(e,"basis","preferred-size")+e;case 6060:return Cp+"box-"+Pp(e,"-grow","")+Cp+e+kp+Pp(e,"grow","positive")+e;case 4554:return Cp+Pp(e,/([^-])(transform)/g,"$1"+Cp+"$2")+e;case 6187:return Pp(Pp(Pp(e,/(zoom-|grab)/,Cp+"$1"),/(image-set)/,Cp+"$1"),e,"")+e;case 5495:case 3959:return Pp(e,/(image-set\([^]*)/,Cp+"$1$`$1");case 4968:return Pp(Pp(e,/(.+:)(flex-)?(.*)/,Cp+"box-pack:$3"+kp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cp+e+e;case 4095:case 3583:case 4068:case 2532:return Pp(e,/(.+)-inline(.+)/,Cp+"$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(jp(e)-1-t>6)switch(zp(e,t+1)){case 109:if(45!==zp(e,t+4))break;case 102:return Pp(e,/(.+:)(.+)-([^]+)/,"$1"+Cp+"$2-$3$1"+Sp+(108==zp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ip(e,"stretch")?Eh(Pp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==zp(e,t+1))break;case 6444:switch(zp(e,jp(e)-3-(~Ip(e,"!important")&&10))){case 107:return Pp(e,":",":"+Cp)+e;case 101:return Pp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cp+(45===zp(e,14)?"inline-":"")+"box$3$1"+Cp+"$2$3$1"+kp+"$2box$3")+e}break;case 5936:switch(zp(e,t+11)){case 114:return Cp+e+kp+Pp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cp+e+kp+Pp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cp+e+kp+Pp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cp+e+kp+e+e}return e}var Th,Ah=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ap:e.return=Eh(e.value,e.length);break;case Np:return hh([Yp(e,{value:Pp(e.value,"@","@"+Cp)})],r);case Tp: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 hh([Yp(e,{props:[Pp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return hh([Yp(e,{props:[Pp(t,/:(plac\w+)/,":"+Cp+"input-$1")]}),Yp(e,{props:[Pp(t,/:(plac\w+)/,":-moz-$1")]}),Yp(e,{props:[Pp(t,/:(plac\w+)/,kp+"input-$1")]})],r)}return""})}}],Nh=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Th=function(e){var t=e.match(Nh);if(t)return t[t.length-1]};var Mh,Lh,Rh,Oh,Ph=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||Ah;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=[xh,_h];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(wh(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}}),Ch);var u,c=[mh,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Ep&&u.insert(e.value+"{}"))}],d=function(e){var t=Fp(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,Th){var o=Th(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){hh(uh(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new wp({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},Ih={exports:{}},zh={};function Dh(){return Lh||(Lh=1,Ih.exports=function(){if(Mh)return zh;Mh=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 zh.AsyncMode=l,zh.ConcurrentMode=u,zh.ContextConsumer=s,zh.ContextProvider=a,zh.Element=t,zh.ForwardRef=c,zh.Fragment=r,zh.Lazy=h,zh.Memo=p,zh.Portal=n,zh.Profiler=i,zh.StrictMode=o,zh.Suspense=d,zh.isAsyncMode=function(e){return x(e)||b(e)===l},zh.isConcurrentMode=x,zh.isContextConsumer=function(e){return b(e)===s},zh.isContextProvider=function(e){return b(e)===a},zh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zh.isForwardRef=function(e){return b(e)===c},zh.isFragment=function(e){return b(e)===r},zh.isLazy=function(e){return b(e)===h},zh.isMemo=function(e){return b(e)===p},zh.isPortal=function(e){return b(e)===n},zh.isProfiler=function(e){return b(e)===i},zh.isStrictMode=function(e){return b(e)===o},zh.isSuspense=function(e){return b(e)===d},zh.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)},zh.typeOf=b,zh}()),Ih.exports}var jh=function(){if(Oh)return Rh;Oh=1;var e=Dh(),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 Rh=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},Rh}(),Fh=m(jh);function Bh(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var $h=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Hh=function(e,t,n){$h(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 Wh={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},Uh="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",Kh="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Gh=/[A-Z]|^ms/g,Vh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yh=function(e){return 45===e.charCodeAt(1)},qh=function(e){return null!=e&&"boolean"!=typeof e},Jh=gh(function(e){return Yh(e)?e:e.replace(Gh,"-$&").toLowerCase()}),Qh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Vh,function(e,t,n){return am={name:t,styles:n,next:am},t})}return 1===Wh[e]||Yh(e)||"number"!=typeof t||0===t?t:t+"px"},Xh=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Zh=["normal","none","initial","inherit","unset"],em=Qh,tm=/^-ms-/,nm=/-(.)/g,rm={};Qh=function(e,t){if("content"===e&&("string"!=typeof t||-1===Zh.indexOf(t)&&!Xh.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=em(e,t);return""===n||Yh(e)||-1===e.indexOf("-")||void 0!==rm[e]||(rm[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(tm,"ms-").replace(nm,function(e,t){return t.toUpperCase()})+"?")),n};var om="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function im(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(om);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return am={name:o.name,styles:o.styles,next:am},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)am={name:a.name,styles:a.styles,next:am},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+=im(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]+"}":qh(s)&&(r+=Jh(i)+":"+Qh(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(om);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=im(e,t,a);switch(i){case"animation":case"animationName":r+=Jh(i)+":"+l+";";break;default:"undefined"===i&&console.error(Kh),r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)qh(a[u])&&(r+=Jh(i)+":"+Qh(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=am,l=n(e);return am=s,im(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(Vh,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 am,sm=/label:\s*([^\s;{]+)\s*(;|$)/g;function lm(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="";am=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=im(n,t,i);else{var a=i;void 0===a[0]&&console.error(Uh),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=im(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(Uh),o+=l[s]}sm.lastIndex=0;for(var u,c="";null!==(u=sm.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:am,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 um=!!F.useInsertionEffect&&F.useInsertionEffect,cm=um||function(e){return e()},dm=um||D.useLayoutEffect,fm=D.createContext("undefined"!=typeof HTMLElement?Ph({key:"css"}):null);fm.displayName="EmotionCacheContext";var pm=fm.Provider,hm=function(e){return D.forwardRef(function(t,n){var r=D.useContext(fm);return e(t,r,n)})},mm=D.createContext({});mm.displayName="EmotionThemeContext";var gm={}.hasOwnProperty,vm=function(e){var t=e.split(".");return t[t.length-1]},ym=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?vm(t[1]):void 0},bm=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),xm=function(e){return e.replace(/\$/g,"-")},_m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wm="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",km=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)gm.call(t,r)&&(n[r]=t[r]);if(n[_m]=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=ym(t[n]);if(r){if(bm.has(r))break;if(/^[A-Z]/.test(r))return xm(r)}}}((new Error).stack);o&&(n[wm]=o)}return n},Sm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $h(t,n,r),cm(function(){return Hh(t,n,r)}),null},Cm=hm(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[_m],i=[r],a="";"string"==typeof e.className?a=Bh(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=lm(i,void 0,D.useContext(mm));if(-1===s.name.indexOf("-")){var l=e[wm];l&&(s=lm([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)gm.call(e,c)&&"css"!==c&&c!==_m&&c!==wm&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),D.createElement(D.Fragment,null,D.createElement(Sm,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,u))});Cm.displayName="EmotionCssPropInternal";var Em,Tm,Am=Cm,Nm=function(e,t){var n=arguments;if(null==t||!gm.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Am,o[1]=km(e,t);for(var i=2;i<r;i++)o[i]=n[i];return D.createElement.apply(null,o)};Em=Nm||(Nm={}),Tm||(Tm=Em.JSX||(Em.JSX={}));var Mm=!1,Lm=hm(function(e,t){!Mm&&("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?"),Mm=!0);var n=lm([e.styles],void 0,D.useContext(mm)),r=D.useRef();return dm(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]),dm(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Hh(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 Rm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return lm(t)}function Om(){var e=Rm.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_"}}}Lm.displayName="EmotionGlobal";var Pm=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 Im=function(e){var t=e.cache,n=e.serializedArr;return cm(function(){for(var e=0;e<n.length;e++)Hh(t,n[e],!1)}),null},zm=hm(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=lm(o,t.registered);return r.push(a),$h(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=Bh(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Pm(r))},theme:D.useContext(mm)},a=e.children(i);return n=!0,D.createElement(D.Fragment,null,D.createElement(Im,{cache:t,serializedArr:r}),a)});zm.displayName="EmotionClassNames";var Dm="undefined"!=typeof document,jm="undefined"!=typeof jest||"undefined"!=typeof vi;if(Dm&&!jm){var Fm="undefined"!=typeof globalThis?globalThis:Dm?window:global,Bm="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Fm[Bm]&&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."),Fm[Bm]=!0}var $m=/^((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)-.*))$/,Hm=gh(function(e){return $m.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wm=function(e){return"theme"!==e},Um=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Hm:Wm},Km=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},Gm="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",Vm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $h(t,n,r),cm(function(){return Hh(t,n,r)}),null},Ym=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=Km(t,n,i),l=s||Um(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(Gm),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Gm),d.push(c[h],f[h])}var m=hm(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(mm)}"string"==typeof e.className?i=Bh(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=lm(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?Um(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(Vm,{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,xp({},n,r,{shouldForwardProp:Km(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){Ym[e]=Ym(e)});var qm,Jm,Qm,Xm,Zm,eg={exports:{}};function tg(){if(Jm)return qm;Jm=1;return qm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ng(){if(Xm)return Qm;Xm=1;var e=tg();function t(){}function n(){}return n.resetWarningCache=t,Qm=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 rg(){return Zm||(Zm=1,eg.exports=ng()()),eg.exports}var og=m(rg());const ig=new Map;function ag(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 Kc.jsx(Lm,{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 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 zm(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 Im(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=zm(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=>Im(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),Vm=Hm("borderLeft",$m),Ym=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:zm(t,e)});return ym(e,e.borderRadius,n)}return null};tg.propTypes={},tg.filterProps=["borderRadius"],Bm(Wm,Um,Km,Gm,Vm,Ym,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:zm(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:zm(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:zm(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 zg(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Pg(e,t,n)}),r}var Ig,Dg,jg={exports:{}},Fg={};function Bg(){if(Ig)return Fg;Ig=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 Vg=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 Yg=["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,Yg);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 zv(e,t,n){return void 0===e||Pv(e)?t:gf({},t,{ownerState:gf({},t.ownerState,n)})}function Iv(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=Iv(r),l=Iv(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 Vv=D.createContext(void 0);function Yv({value:e,children:t}){return Mc.jsx(Vv.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(Vv)}})}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(Yv,{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:zm(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]}`]:zm(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:Vd,light:Gd,dark:Yd}}(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:zd,light:Od,dark:Id}:{main:Id,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},zy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Iy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=vf(e,zy);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=Iy();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,Vy=g(sm),Yy=g(dm),qy=g(km),Jy=g(Vg),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}(Vy),o=Yy;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=z(),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)}zg("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=zg("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rb=["center","classes","className"];let Mb,Ob,Pb,zb,Ib=e=>e;const Db=Nh(Mb||(Mb=Ib`
|
|
23
|
+
*/function sg(e,t){return Ym(e,t)}const lg=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ug=[];function cg(e){return ug[0]=e,lm(ug)}var dg=Object.freeze({__proto__:null,GlobalStyles:ag,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=D.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&ig.has(e))return ig.get(e);const r=function(e,t){const n=Ph({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 ig.set(e,r),r},[t,n]);return t||n?Kc.jsx(pm,{value:o,children:r}):r},ThemeContext:mm,css:Rm,default:sg,internal_processStyles:lg,internal_serializeStyles:cg,keyframes:Om});function fg(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 pg(e){if(D.isValidElement(e)||!fg(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=pg(e[n])}),t}function hg(e,t,n={clone:!0}){const r=n.clone?xp({},e):e;return fg(e)&&fg(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:fg(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fg(e[o])?r[o]=hg(e[o],t[o],n):n.clone?r[o]=fg(t[o])?pg(t[o]):t[o]:r[o]=t[o]}),r}var mg=Object.freeze({__proto__:null,default:hg,isPlainObject:fg});const gg=["values","unit","step"];function vg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_p(e,gg),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)=>xp({},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 xp({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 yg={borderRadius:4};function bg(e,t){return t?hg(e,t,{clone:!1}):e}const xg={xs:0,sm:600,md:900,lg:1200,xl:1536},_g={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xg[e]}px)`};function wg(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||_g;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||_g;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||xg).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function kg(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function Sg(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Cg({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 Eg(e){if("string"!=typeof e)throw new Error(vp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Tg=Object.freeze({__proto__:null,default:Eg});function Ag(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 Ng(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ag(e,n)||r,t&&(o=t(o,r,e)),o}function Mg(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=Ag(e.theme,r)||{};return wg(e,i,e=>{let r=Ng(a,o,e);return e===r&&"string"==typeof e&&(r=Ng(a,o,`${t}${"default"===e?"":Eg(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Lg={m:"margin",p:"padding"},Rg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Og={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Og[e])return[e];e=Og[e]}const[t,n]=e.split(""),r=Lg[t],o=Rg[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Ig=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Dg(e,t,n,r){var o;const i=null!=(o=Ag(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 jg(e){return Dg(e,"spacing",8)}function Fg(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 Bg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Fg(t,n),e),{})}(Pg(n),r);return wg(e,e[n],o)}function $g(e,t){const n=jg(e.theme);return Object.keys(e).map(r=>Bg(e,t,r,n)).reduce(bg,{})}function Hg(e){return $g(e,Ig)}function Wg(e){return $g(e,zg)}function Ug(...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]?bg(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Kg(e){return"number"!=typeof e?e:`${e}px solid`}function Gg(e,t){return Mg({prop:e,themeKey:"borders",transform:t})}Hg.propTypes={},Hg.filterProps=Ig,Wg.propTypes={},Wg.filterProps=zg;const Vg=Gg("border",Kg),Yg=Gg("borderTop",Kg),qg=Gg("borderRight",Kg),Jg=Gg("borderBottom",Kg),Qg=Gg("borderLeft",Kg),Xg=Gg("borderColor"),Zg=Gg("borderTopColor"),ev=Gg("borderRightColor"),tv=Gg("borderBottomColor"),nv=Gg("borderLeftColor"),rv=Gg("outline",Kg),ov=Gg("outlineColor"),iv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Dg(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Fg(t,e)});return wg(e,e.borderRadius,n)}return null};iv.propTypes={},iv.filterProps=["borderRadius"],Ug(Vg,Yg,qg,Jg,Qg,Xg,Zg,ev,tv,nv,iv,rv,ov);const av=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Dg(e.theme,"spacing",8),n=e=>({gap:Fg(t,e)});return wg(e,e.gap,n)}return null};av.propTypes={},av.filterProps=["gap"];const sv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Dg(e.theme,"spacing",8),n=e=>({columnGap:Fg(t,e)});return wg(e,e.columnGap,n)}return null};sv.propTypes={},sv.filterProps=["columnGap"];const lv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Dg(e.theme,"spacing",8),n=e=>({rowGap:Fg(t,e)});return wg(e,e.rowGap,n)}return null};lv.propTypes={},lv.filterProps=["rowGap"];function uv(e,t){return"grey"===t?t:e}Ug(av,sv,lv,Mg({prop:"gridColumn"}),Mg({prop:"gridRow"}),Mg({prop:"gridAutoFlow"}),Mg({prop:"gridAutoColumns"}),Mg({prop:"gridAutoRows"}),Mg({prop:"gridTemplateColumns"}),Mg({prop:"gridTemplateRows"}),Mg({prop:"gridTemplateAreas"}),Mg({prop:"gridArea"}));function cv(e){return e<=1&&0!==e?100*e+"%":e}Ug(Mg({prop:"color",themeKey:"palette",transform:uv}),Mg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uv}),Mg({prop:"backgroundColor",themeKey:"palette",transform:uv}));const dv=Mg({prop:"width",transform:cv}),fv=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])||xg[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:cv(t)}};return wg(e,e.maxWidth,t)}return null};fv.filterProps=["maxWidth"];const pv=Mg({prop:"minWidth",transform:cv}),hv=Mg({prop:"height",transform:cv}),mv=Mg({prop:"maxHeight",transform:cv}),gv=Mg({prop:"minHeight",transform:cv});Mg({prop:"size",cssProperty:"width",transform:cv}),Mg({prop:"size",cssProperty:"height",transform:cv});Ug(dv,fv,pv,hv,mv,gv,Mg({prop:"boxSizing"}));const vv={border:{themeKey:"borders",transform:Kg},borderTop:{themeKey:"borders",transform:Kg},borderRight:{themeKey:"borders",transform:Kg},borderBottom:{themeKey:"borders",transform:Kg},borderLeft:{themeKey:"borders",transform:Kg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kg},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:iv},color:{themeKey:"palette",transform:uv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uv},backgroundColor:{themeKey:"palette",transform:uv},p:{style:Wg},pt:{style:Wg},pr:{style:Wg},pb:{style:Wg},pl:{style:Wg},px:{style:Wg},py:{style:Wg},padding:{style:Wg},paddingTop:{style:Wg},paddingRight:{style:Wg},paddingBottom:{style:Wg},paddingLeft:{style:Wg},paddingX:{style:Wg},paddingY:{style:Wg},paddingInline:{style:Wg},paddingInlineStart:{style:Wg},paddingInlineEnd:{style:Wg},paddingBlock:{style:Wg},paddingBlockStart:{style:Wg},paddingBlockEnd:{style:Wg},m:{style:Hg},mt:{style:Hg},mr:{style:Hg},mb:{style:Hg},ml:{style:Hg},mx:{style:Hg},my:{style:Hg},margin:{style:Hg},marginTop:{style:Hg},marginRight:{style:Hg},marginBottom:{style:Hg},marginLeft:{style:Hg},marginX:{style:Hg},marginY:{style:Hg},marginInline:{style:Hg},marginInlineStart:{style:Hg},marginInlineEnd:{style:Hg},marginBlock:{style:Hg},marginBlockStart:{style:Hg},marginBlockEnd:{style:Hg},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:av},rowGap:{style:lv},columnGap:{style:sv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cv},maxWidth:{style:fv},minWidth:{transform:cv},height:{transform:cv},maxHeight:{transform:cv},minHeight:{transform:cv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yv(){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=Ag(n,s)||{};if(u)return u(o);return wg(o,t,t=>{let n=Ng(c,l,t);return t===n&&"string"==typeof t&&(n=Ng(c,l,`${e}${"default"===t?"":Eg(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:vv;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=kg(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=bg(u,e(n,o,i,s));else{const e=wg({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=bg(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=bg(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Sg(l,u)}:Sg(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const bv=yv();function xv(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:{}}bv.filterProps=["sx"];const _v=["breakpoints","palette","spacing","shape"];function wv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_p(e,_v),s=vg(n),l=function(e=8){if(e.mui)return e;const t=jg({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=hg({breakpoints:s,direction:"ltr",components:{},palette:xp({mode:"light"},r),spacing:l,shape:xp({},yg,i)},a);return u.applyStyles=xv,u=t.reduce((e,t)=>hg(e,t),u),u.unstable_sxConfig=xp({},vv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return bv({sx:e,theme:this})},u}var kv=Object.freeze({__proto__:null,default:wv,private_createBreakpoints:vg,unstable_applyStyles:xv});function Sv(e=null){const t=D.useContext(mm);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Cv=wv();function Ev(e=Cv){return Sv(e)}function Tv(e){const t=cg(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Av({styles:e,themeId:t,defaultTheme:n={}}){const r=Ev(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>Tv("function"==typeof e?e(o):e)):Tv(i)),Kc.jsx(ag,{styles:i})}const Nv=["sx"];function Mv(e){const{sx:t}=e,n=_p(e,Nv),{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:vv;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 fg(n)?xp({},r,n):r}:xp({},r,t),xp({},o,{sx:i})}var Lv=Object.freeze({__proto__:null,default:bv,extendSxProp:Mv,unstable_createStyleFunctionSx:yv,unstable_defaultSxConfig:vv});const Rv=e=>e,Ov=(()=>{let e=Rv;return{configure(t){e=t},generate:t=>e(t),reset(){e=Rv}}})();function Pv(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=Pv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Iv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pv(e))&&(r&&(r+=" "),r+=t);return r}const zv=["className","component"];const Dv={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 jv(e,t,n="Mui"){const r=Dv[t];return r?`${n}-${r}`:`${Ov.generate(e)}-${t}`}function Fv(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=jv(e,t,n)}),r}var Bv,$v,Hv={exports:{}},Wv={};function Uv(){if(Bv)return Wv;Bv=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 Wv.ContextConsumer=i,Wv.ContextProvider=a,Wv.Element=e,Wv.ForwardRef=s,Wv.Fragment=n,Wv.Lazy=d,Wv.Memo=c,Wv.Portal=t,Wv.Profiler=o,Wv.StrictMode=r,Wv.Suspense=l,Wv.SuspenseList=u,Wv.isContextConsumer=function(e){return h(e)===i},Wv.isContextProvider=function(e){return h(e)===a},Wv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Wv.isForwardRef=function(e){return h(e)===s},Wv.isFragment=function(e){return h(e)===n},Wv.isLazy=function(e){return h(e)===d},Wv.isMemo=function(e){return h(e)===c},Wv.isPortal=function(e){return h(e)===t},Wv.isProfiler=function(e){return h(e)===o},Wv.isStrictMode=function(e){return h(e)===r},Wv.isSuspense=function(e){return h(e)===l},Wv.isSuspenseList=function(e){return h(e)===u},Wv.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)},Wv.typeOf=h,Wv}function Kv(){return $v||($v=1,Hv.exports=Uv()),Hv.exports}var Gv=Kv();const Vv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yv(e){const t=`${e}`.match(Vv);return t&&t[1]||""}function qv(e,t=""){return e.displayName||e.name||Yv(e)||t}function Jv(e,t,n){const r=qv(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Qv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return qv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Gv.ForwardRef:return Jv(e,e.render,"ForwardRef");case Gv.Memo:return Jv(e,e.type,"memo");default:return}}},getFunctionName:Yv});const Xv=["ownerState"],Zv=["variants"],ey=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ty(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ny(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const ry=wv(),oy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function iy({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ay(e){return e?(t,n)=>n[e]:null}function sy(e,t,n){let{ownerState:r}=t,o=_p(t,Xv);const i="function"==typeof e?e(xp({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>sy(e,xp({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=_p(i,Zv);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(xp({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(xp({ownerState:r},o,r)):e.style;t.push(n?ny(cg(i),n):i)}}),t}return n?ny(cg(i),n):i}const ly=function(e={}){const{themeId:t,defaultTheme:n=ry,rootShouldForwardProp:r=ty,slotShouldForwardProp:o=ty}=e,i=e=>bv(xp({},e,{theme:iy(xp({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{lg(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ay(oy(l))}=a,f=_p(a,ey),p=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=ty;"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=sg(e,xp({shouldForwardProp:g,label:void 0},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||fg(e)?r=>{const o=iy({theme:r.theme,defaultTheme:n,themeId:t});return sy(e,xp({},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=iy(xp({},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]=sy(n,xp({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var r;const o=iy(xp({},e,{defaultTheme:n,themeId:t}));return sy({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},xp({},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 uy(e,t){const n=xp({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=xp({},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]=xp({},i),Object.keys(o).forEach(e=>{n[r][e]=uy(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function cy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ev(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?uy(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const dy="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function fy(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var py=Object.freeze({__proto__:null,default:fy});function hy(e){if(e.type)return e;if("#"===e.charAt(0))return hy(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(vp(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(vp(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function my(e,t){return e=hy(e),t=function(e,t=0,n=1){return fy(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 gy(e){return e&&e.ownerDocument||document}function vy(e){return gy(e).defaultView||window}function yy(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let by=0;const xy=F["useId".toString()];function _y(e){if(void 0!==xy){const t=xy();return null!=e?e:t}return function(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{null==t&&(by+=1,n(`mui-${by}`))},[t]),r}(e)}function wy(e){const t=D.useRef(e);return dy(()=>{t.current=e}),D.useRef((...e)=>(0,t.current)(...e)).current}function ky(...e){return D.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{yy(e,t)})},e)}const Sy={};const Cy=[];class Ey{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ey}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Ty(){const e=function(e,t){const n=D.useRef(Sy);return n.current===Sy&&(n.current=e(t)),n}(Ey.create).current;return function(e){D.useEffect(e,Cy)}(e.disposeEffect),e}let Ay=!0,Ny=!1;const My=new Ey,Ly={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 Ry(e){e.metaKey||e.altKey||e.ctrlKey||(Ay=!0)}function Oy(){Ay=!1}function Py(){"hidden"===this.visibilityState&&Ny&&(Ay=!0)}function Iy(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ay||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ly[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zy(){const e=D.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ry,!0),t.addEventListener("mousedown",Oy,!0),t.addEventListener("pointerdown",Oy,!0),t.addEventListener("touchstart",Oy,!0),t.addEventListener("visibilitychange",Py,!0))},[]),t=D.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Iy(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ny=!0,My.start(100,()=>{Ny=!1}),t.current=!1,!0)},ref:e}}function Dy(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 jy(e){return"string"==typeof e}function Fy(e,t,n){return void 0===e||jy(e)?t:xp({},t,{ownerState:xp({},t.ownerState,n)})}function By(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 $y(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Iv(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=xp({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=xp({},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}(xp({},o,r)),s=By(r),l=By(o),u=t(a),c=Iv(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=xp({},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=xp({},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 Hy=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wy(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 Uy=D.createContext(null);function Ky(){return D.useContext(Uy)}var Gy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vy(e){const{children:t,theme:n}=e,r=Ky(),o=D.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return xp({},e,t)}(r,n);return null!=e&&(e[Gy]=null!==r),e},[n,r]);return Kc.jsx(Uy.Provider,{value:o,children:t})}const Yy=["value"],qy=D.createContext();function Jy(e){let{value:t}=e,n=_p(e,Yy);return Kc.jsx(qy.Provider,xp({value:null==t||t},n))}const Qy=D.createContext(void 0);function Xy({value:e,children:t}){return Kc.jsx(Qy.Provider,{value:e,children:t})}function Zy({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?uy(o.defaultProps,r):o.styleOverrides||o.variants?r:uy(o,r)}({props:e,name:t,theme:{components:D.useContext(Qy)}})}const eb={};function tb(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?xp({},t,{[e]:i}):i;return r?()=>a:a}return xp({},t,e?{[e]:n}:n)},[e,t,n,r])}function nb(e){const{children:t,theme:n,themeId:r}=e,o=Sv(eb),i=Ky()||eb,a=tb(r,o,n),s=tb(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=Sv(),n=_y()||"",{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};`:"",dy(()=>{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?Kc.jsx(Av,{styles:o}):null}(a);return Kc.jsx(Vy,{theme:s,children:Kc.jsx(mm.Provider,{value:a,children:Kc.jsx(Jy,{value:l,children:Kc.jsxs(Xy,{value:null==a?void 0:a.components,children:[u,t]})})})})}function rb(e){return rb="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},rb(e)}function ob(e){var t=function(e,t){if("object"!=rb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=rb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rb(t)?t:t+""}const ib=["component","direction","spacing","divider","children","className","useFlexGap"],ab=wv(),sb=ly("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function lb(e){return cy({props:e,name:"MuiStack",defaultTheme:ab})}function ub(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 cb=({ownerState:e,theme:t})=>{let n=xp({display:"flex",flexDirection:"column"},wg({theme:t},Cg({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=jg(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=Cg({values:e.direction,base:o}),a=Cg({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=hg(n,wg({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:Fg(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]}`]:Fg(r,t)}};var o}))}return n=function(e,...t){const n=kg(e),r=[n,...t].reduce((e,t)=>hg(e,t),{});return Sg(Object.keys(n),r)}(t.breakpoints,n),n};function db(e,t){return xp({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var fb,pb={},hb={exports:{}};function mb(){return fb||(fb=1,(e=hb).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),hb.exports;var e}var gb,vb=g(yp),yb=g(py);function bb(){if(gb)return pb;gb=1;var e=mb();Object.defineProperty(pb,"__esModule",{value:!0}),pb.alpha=c,pb.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})},pb.colorChannel=void 0,pb.darken=d,pb.decomposeColor=i,pb.emphasize=p,pb.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},pb.getLuminance=u,pb.hexToRgb=o,pb.hslToRgb=l,pb.lighten=f,pb.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},pb.private_safeColorChannel=void 0,pb.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},pb.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},pb.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},pb.recomposeColor=s,pb.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(vb),n=e(yb);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(" ")};pb.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 pb.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},pb}var xb=bb();const _b=["mode","contrastThreshold","tonalOffset"],wb={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:Df.white,default:Df.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}},kb={text:{primary:Df.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:Df.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 Sb(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=xb.lighten(e.main,o):"dark"===t&&(e.dark=xb.darken(e.main,i)))}function Cb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_p(e,_b),i=e.primary||function(e="light"){return"dark"===e?{main:Jf,light:qf,dark:Qf}:{main:Xf,light:Qf,dark:Zf}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Uf,light:Wf,dark:Gf}:{main:Vf,light:Kf,dark:Yf}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Bf,light:jf,dark:$f}:{main:$f,light:Ff,dark:Hf}}(t),l=e.info||function(e="light"){return"dark"===e?{main:tp,light:ep,dark:rp}:{main:rp,light:np,dark:op}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ap,light:ip,dark:lp}:{main:up,light:sp,dark:cp}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fp,light:dp,dark:hp}:{main:"#ed6c02",light:pp,dark:mp}}(t);function d(e){return xb.getContrastRatio(e,kb.text.primary)>=n?kb.text.primary:wb.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=xp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(vp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(vp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Sb(e,"light",o,r),Sb(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:kb,light:wb};return hg(xp({common:xp({},Df),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:gp,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const Eb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Tb={textTransform:"uppercase"},Ab='"Roboto", "Helvetica", "Arial", sans-serif';function Nb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ab,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=_p(n,Eb),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,n,o,i)=>{return xp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ab?{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,Tb),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Tb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hg(xp({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function Mb(...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 Lb=["none",Mb(0,2,1,-1,0,1,1,0,0,1,3,0),Mb(0,3,1,-2,0,2,2,0,0,1,5,0),Mb(0,3,3,-2,0,3,4,0,0,1,8,0),Mb(0,2,4,-1,0,4,5,0,0,1,10,0),Mb(0,3,5,-1,0,5,8,0,0,1,14,0),Mb(0,3,5,-1,0,6,10,0,0,1,18,0),Mb(0,4,5,-2,0,7,10,1,0,2,16,1),Mb(0,5,5,-3,0,8,10,1,0,3,14,2),Mb(0,5,6,-3,0,9,12,1,0,3,16,2),Mb(0,6,6,-3,0,10,14,1,0,4,18,3),Mb(0,6,7,-4,0,11,15,1,0,4,20,3),Mb(0,7,8,-4,0,12,17,2,0,5,22,4),Mb(0,7,8,-4,0,13,19,2,0,5,24,4),Mb(0,7,9,-4,0,14,21,2,0,5,26,4),Mb(0,8,9,-5,0,15,22,2,0,6,28,5),Mb(0,8,10,-5,0,16,24,2,0,6,30,5),Mb(0,8,11,-5,0,17,26,2,0,6,32,5),Mb(0,9,11,-5,0,18,28,2,0,7,34,6),Mb(0,9,12,-6,0,19,29,2,0,7,36,6),Mb(0,10,13,-6,0,20,31,3,0,8,38,7),Mb(0,10,13,-6,0,21,33,3,0,8,40,7),Mb(0,10,14,-6,0,22,35,3,0,8,42,7),Mb(0,11,14,-7,0,23,36,3,0,9,44,8),Mb(0,11,15,-7,0,24,38,3,0,9,46,8)],Rb=["duration","easing","delay"],Ob={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)"},Pb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ib(e){return`${Math.round(e)}ms`}function zb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Db(e){const t=xp({},Ob,e.easing),n=xp({},Pb,e.duration);return xp({getAutoHeightDuration:zb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return _p(r,Rb),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ib(o)} ${i} ${"string"==typeof a?a:Ib(a)}`).join(",")}},e,{easing:t,duration:n})}const jb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Fb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_p(e,Fb);if(e.vars&&void 0===e.generateCssVars)throw new Error(vp(18));const s=Cb(r),l=wv(e);let u=hg(l,{mixins:db(l.breakpoints,n),palette:s,shadows:Lb.slice(),typography:Nb(s,i),transitions:Db(o),zIndex:xp({},jb)});return u=hg(u,a),u=t.reduce((e,t)=>hg(e,t),u),u.unstable_sxConfig=xp({},vv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return bv({sx:e,theme:this})},u}const $b=Bb();function Hb(){const e=Ev($b);return e[bp]||e}var Wb,Ub={},Kb={exports:{}};function Gb(){return Wb||(Wb=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}(Kb)),Kb.exports}var Vb,Yb={exports:{}};function qb(){return Vb||(Vb=1,(e=Yb).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),Yb.exports;var e}var Jb,Qb=g(dg),Xb=g(mg),Zb=g(Tg),ex=g(Qv),tx=g(kv),nx=g(Lv);function rx(){if(Jb)return Ub;Jb=1;var e=mb();Object.defineProperty(Ub,"__esModule",{value:!0}),Ub.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}},Ub.shouldForwardProp=d,Ub.systemDefaultTheme=void 0;var t=e(Gb()),n=e(qb()),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}(Qb),o=Xb;e(Zb),e(ex);var i=e(tx),a=e(nx);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=Ub.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 Ub}const ox=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ix=m(rx())({themeId:bp,defaultTheme:$b,rootShouldForwardProp:ox}),ax=["theme"];function sx(e){let{theme:t}=e,n=_p(e,ax);const r=t[bp];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=xp({},r,{vars:null}):t&&!t.vars&&(o=xp({},t,{vars:null}))),Kc.jsx(nb,xp({},n,{themeId:r?bp:void 0,theme:o}))}const lx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ux(e){return Zy(e)}function cx(e,t){return cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cx(e,t)}function dx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cx(e,t)}var fx=I(),px=m(fx),hx=!1,mx=j.createContext(null),gx="unmounted",vx="exited",yx="entering",bx="entered",xx="exiting",_x=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=vx,r.appearStatus=yx):o=bx:o=t.unmountOnExit||t.mountOnEnter?gx:vx,r.state={status:o},r.nextCallback=null,r}dx(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===gx?{status:vx}: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!==yx&&n!==bx&&(t=yx):n!==yx&&n!==bx||(t=xx)}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===yx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:px.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vx&&this.setState({status:gx})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[px.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||hx?this.safeSetState({status:bx},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:yx},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:bx},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:px.findDOMNode(this);t&&!hx?(this.props.onExit(r),this.safeSetState({status:xx},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:vx},function(){e.props.onExited(r)})})})):this.safeSetState({status:vx},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:px.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===gx)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=_p(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(mx.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function wx(){}function kx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sx(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 Cx(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ex(e,t,n){var r=Sx(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:Cx(a,"exit",e),enter:Cx(a,"enter",e)})):o[i]=D.cloneElement(a,{in:!1}):o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Cx(a,"exit",e),enter:Cx(a,"enter",e)})}}),o}_x.contextType=mx,_x.propTypes={},_x.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wx,onEntering:wx,onEntered:wx,onExit:wx,onExiting:wx,onExited:wx},_x.UNMOUNTED=gx,_x.EXITED=vx,_x.ENTERING=yx,_x.ENTERED=bx,_x.EXITING=xx;var Tx=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ax=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(kx(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}dx(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,Sx(n.children,function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Cx(e,"appear",n),enter:Cx(e,"enter",n),exit:Cx(e,"exit",n)})})):Ex(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Sx(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=xp({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=_p(e,["component","childFactory"]),o=this.state.contextValue,i=Tx(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(mx.Provider,{value:o},i):j.createElement(mx.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);Ax.propTypes={},Ax.defaultProps={component:"div",childFactory:function(e){return e}};function Nx(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 Mx(e){return jv("MuiPaper",e)}Fv("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 Lx=["className","component","elevation","square","variant"],Rx=ix("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 xp({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&&xp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xb.alpha("#fff",lx(t.elevation))}, ${xb.alpha("#fff",lx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ox=D.forwardRef(function(e,t){const n=ux({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=_p(n,Lx),u=xp({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Dy({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Mx,o)})(u);return Kc.jsx(Rx,xp({as:o,ownerState:u,className:Iv(c.root,r),ref:t},l))});const Px=Fv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ix=["center","classes","className"];let zx,Dx,jx,Fx,Bx=e=>e;const $x=Om(zx||(zx=Bx`
|
|
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
|
+
`)),Hx=Om(Dx||(Dx=Bx`
|
|
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
|
+
`)),Wx=Om(jx||(jx=Bx`
|
|
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
|
+
`)),Ux=ix("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Kx=ix(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=Iv(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Iv(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]),Kc.jsx("span",{className:f,style:p,children:Kc.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(Fx||(Fx=Bx`
|
|
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
|
-
`),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=zg("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"}}),Vb=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:z,onFocus:I,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",_),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=yv(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=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: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?Mc.jsx(Hb,gf({ref:P,center:o},A)):null]}))});function Yb(e){return Pg("MuiIconButton",e)}const qb=zg("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(Vb,{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)}`]},Yb,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)}zg("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=Vy;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 zx(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 Ix(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 Vx={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=zx(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)))&&Ix(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yx(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)&&Ix(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?Yx(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=Yx(r),d=c?s?bx:bx.filter(function(e){return Yx(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=Yx(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 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 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=Yx(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],z=O-g[R],I=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?zx(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-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&&Hx(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=Ux(p?Lx(P,O+K-q-Y):P,O,p?Nx(z,J):z);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:zx(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:Yx(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_,Vx,{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)}zg("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 zv(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})({}),z_=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}))}),I_=["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,I_),{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_=zg("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"],V_=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%"})),Y_=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:z,type:I="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),V=D.useContext($_),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&&(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(()=>{V&&V.setAdornedStart(Boolean(z))},[V,z]);const ee=gf({},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 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||V_,re=O.root||u.root||{},oe=P.input||l.Input||Y_;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:[z,Mc.jsx($_.Provider,{value:null,children:Mc.jsx(oe,gf({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,!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),V&&V.onBlur?V.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=>{Y.disabled?e.stopPropagation():(E&&E(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),p,R?R(gf({},Y,{startAdornment:z})):null]}))]})}),Q_=zg("MuiBox",["root"]),X_=Iy(),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=zg("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(Vb,{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=zg("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)}zg("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=zg("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=zg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),zw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Iw(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,zw),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,Iw);else if("ArrowUp"===n)e.preventDefault(),Fw(t,r,l,s,Dw);else if("Home"===n)e.preventDefault(),Fw(t,null,l,s,Iw);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,Iw,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=zg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ww=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Uw=tb(Vb,{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 Vw=zg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Yw=["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(z_,{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"] .${Vw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Vw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Vw.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"] .${Vw.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},{[`.${Vw.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"})),[`.${Vw.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"})),[`.${Vw.popper}[data-popper-placement*="top"] &`]:gf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Vw.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: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=kw,TransitionProps:q}=_,J=vf(_,Yw),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(z),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+I,()=>{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(I,()=>{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);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=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()}}:{}),ze={};L||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Ne),A||(Pe.onMouseOver=tk(ye,Pe.onMouseOver),Pe.onMouseLeave=tk(be,Pe.onMouseLeave),ie||(ze.onMouseOver=ye,ze.onMouseLeave=be)),T||(Pe.onFocus=tk(Ee,Pe.onFocus),Pe.onBlur=tk(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)),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:Y)?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=zv(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=zv(Be,gf({},q,null!=(h=K.transition)?h:C.transition),De),Ke=zv($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=zv(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:z_,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},ze,We,{popperOptions:Ie,children:({TransitionProps:e})=>Mc.jsx(Be,gf({timeout:X.transitions.duration.shorter},e,Ue,{children:Mc.jsxs($e,gf({},Ke,{children:[V,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 Ys(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")=>Iy({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:{}},zk={exports:{}};function Ik(){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}(zk)),zk.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 Vk=(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),Yk=/^\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(Yk);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 Vk.ForwardRef:return Jk(e,e.render,"ForwardRef");case Vk.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=Ik().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=Ik().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 zS,IS={};function DS(){if(zS)return IS;zS=1,Object.defineProperty(IS,"__esModule",{value:!0}),IS.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 IS.default=e,IS}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 VS(){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 YS(){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 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)},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(VS()),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"}),zC=pC({prop:"flexGrow"}),IC=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,zC,IC,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"}),VC=pC({prop:"gridAutoColumns"}),YC=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,VC,YC,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"}),zE=pC({prop:"fontWeight",themeKey:"typography"}),IE=pC({prop:"letterSpacing"}),DE=pC({prop:"lineHeight"}),jE=pC({prop:"textAlign"}),FE=hC(ME,OE,PE,zE,IE,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:zC,flexShrink:IC,flexWrap:NC,flexbox:BC,fontFamily:ME,fontSize:OE,fontStyle:PE,fontWeight:zE,grid:ZC,gridArea:XC,gridAutoColumns:VC,gridAutoFlow:GC,gridAutoRows:YC,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:IE,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,VE,YE={};function qE(){if(GE)return YE;GE=1,Object.defineProperty(YE,"__esModule",{value:!0}),YE.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return YE.default=e,YE}function JE(){if(VE)return aS;VE=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(YS()),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 YT(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 YT(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}}},zT=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),IT={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new zT(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,IT,FT,$T,UT],GT={process:!0},VT={force:!0,process:!0},YT=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,VT)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,VT)}}}},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 YT(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}
|
|
96
|
+
`),Px.rippleVisible,$x,550,({theme:e})=>e.transitions.easing.easeInOut,Px.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Px.child,Px.childLeaving,Hx,550,({theme:e})=>e.transitions.easing.easeInOut,Px.childPulsate,Wx,({theme:e})=>e.transitions.easing.easeInOut),Gx=D.forwardRef(function(e,t){const n=ux({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=_p(n,Ix),[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=Ty(),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,Kc.jsx(Kx,{classes:{ripple:Iv(o.ripple,Px.ripple),rippleVisible:Iv(o.rippleVisible,Px.rippleVisible),ripplePulsate:Iv(o.ripplePulsate,Px.ripplePulsate),child:Iv(o.child,Px.child),childLeaving:Iv(o.childLeaving,Px.childLeaving),childPulsate:Iv(o.childPulsate,Px.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]),Kc.jsx(Ux,xp({className:Iv(Px.root,o.root,i),ref:h},a,{children:Kc.jsx(Ax,{component:null,exit:!0,children:s})}))});function Vx(e){return jv("MuiButtonBase",e)}const Yx=Fv("MuiButtonBase",["root","disabled","focusVisible"]),qx=["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"],Jx=ix("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"},[`&.${Yx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qx=D.forwardRef(function(e,t){const n=ux({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:M}=n,L=_p(n,qx),R=D.useRef(null),O=D.useRef(null),P=ky(O,N),{isFocusVisibleRef:I,onFocus:z,onBlur:j,ref:F}=zy(),[B,$]=D.useState(!1);l&&B&&$(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),R.current.focus()}}),[]);const[H,W]=D.useState(!1);D.useEffect(()=>{W(!0)},[]);const U=H&&!u&&!l;function K(e,t,n=c){return wy(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===I.current&&$(!1),p&&p(e)},!1),te=wy(e=>{R.current||(R.current=e.currentTarget),z(e),!0===I.current&&($(!0),y&&y(e)),v&&v(e)}),ne=()=>{const e=R.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=D.useRef(!1),oe=wy(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=wy(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&&(L.href||L.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(L.href||L.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=ky(t,F,R),ue=xp({},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=Dy({root:["root",t&&"disabled",n&&"focusVisible"]},Vx,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Kc.jsxs(Jx,xp({as:ae,className:Iv(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:M},se,L,{children:[i,U?Kc.jsx(Gx,xp({ref:P,center:o},A)):null]}))});function Xx(e){return jv("MuiIconButton",e)}const Zx=Fv("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),e_=["edge","children","className","color","disabled","disableFocusRipple","size"],t_=ix(Qx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Eg(n.color)}`],n.edge&&t[`edge${Eg(n.edge)}`],t[`size${Eg(n.size)}`]]}})(({theme:e,ownerState:t})=>xp({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})`:xb.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 xp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&xp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":xp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xb.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)},{[`&.${Zx.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),n_=D.forwardRef(function(e,t){const n=ux({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=_p(n,e_),d=xp({},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 Dy({root:["root",n&&"disabled","default"!==r&&`color${Eg(r)}`,o&&`edge${Eg(o)}`,`size${Eg(i)}`]},Xx,t)})(d);return Kc.jsx(t_,xp({className:Iv(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function r_(e){return jv("MuiTypography",e)}Fv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const o_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],i_=ix("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${Eg(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>xp({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})),a_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},s_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},l_=D.forwardRef(function(e,t){const n=ux({props:e,name:"MuiTypography"}),r=(e=>s_[e]||e)(n.color),o=Mv(xp({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=a_}=o,p=_p(o,o_),h=xp({},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]||a_[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Dy({root:["root",i,"inherit"!==e.align&&`align${Eg(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},r_,a)})(h);return Kc.jsx(i_,xp({as:m,ref:t,ownerState:h,className:Iv(g.root,a)},p))});var u_,c_={};function d_(){if(u_)return c_;u_=1,Object.defineProperty(c_,"__esModule",{value:!0}),c_.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=Qb;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 c_.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},c_}var f_=m(d_()),p_="top",h_="bottom",m_="right",g_="left",v_="auto",y_=[p_,h_,m_,g_],b_="start",x_="end",__="viewport",w_="popper",k_=y_.reduce(function(e,t){return e.concat([t+"-"+b_,t+"-"+x_])},[]),S_=[].concat(y_,[v_]).reduce(function(e,t){return e.concat([t,t+"-"+b_,t+"-"+x_])},[]),C_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function E_(e){return e?(e.nodeName||"").toLowerCase():null}function T_(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A_(e){return e instanceof T_(e).Element||e instanceof Element}function N_(e){return e instanceof T_(e).HTMLElement||e instanceof HTMLElement}function M_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T_(e).ShadowRoot||e instanceof ShadowRoot)}var L_={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];N_(o)&&E_(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},{});N_(r)&&E_(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function R_(e){return e.split("-")[0]}var O_=Math.max,P_=Math.min,I_=Math.round;function z_(){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 D_(){return!/^((?!chrome|android).)*safari/i.test(z_())}function j_(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&N_(e)&&(o=e.offsetWidth>0&&I_(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&I_(r.height)/e.offsetHeight||1);var a=(A_(e)?T_(e):window).visualViewport,s=!D_()&&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 F_(e){var t=j_(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 B_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&M_(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $_(e){return T_(e).getComputedStyle(e)}function H_(e){return["table","td","th"].indexOf(E_(e))>=0}function W_(e){return((A_(e)?e.ownerDocument:e.document)||window.document).documentElement}function U_(e){return"html"===E_(e)?e:e.assignedSlot||e.parentNode||(M_(e)?e.host:null)||W_(e)}function K_(e){return N_(e)&&"fixed"!==$_(e).position?e.offsetParent:null}function G_(e){for(var t=T_(e),n=K_(e);n&&H_(n)&&"static"===$_(n).position;)n=K_(n);return n&&("html"===E_(n)||"body"===E_(n)&&"static"===$_(n).position)?t:n||function(e){var t=/firefox/i.test(z_());if(/Trident/i.test(z_())&&N_(e)&&"fixed"===$_(e).position)return null;var n=U_(e);for(M_(n)&&(n=n.host);N_(n)&&["html","body"].indexOf(E_(n))<0;){var r=$_(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 V_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y_(e,t,n){return O_(e,P_(t,n))}function q_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function J_(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Q_={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=R_(n.placement),l=V_(s),u=[g_,m_].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return q_("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:J_(e,y_))}(o.padding,n),d=F_(i),f="y"===l?p_:g_,p="y"===l?h_:m_,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=G_(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=Y_(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)))&&B_(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function X_(e){return e.split("-")[1]}var Z_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ew(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=g_,x=p_,_=window;if(u){var w=G_(n),k="clientHeight",S="clientWidth";if(w===T_(n)&&"static"!==$_(w=W_(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===p_||(o===g_||o===m_)&&i===x_)x=h_,m-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,m*=l?1:-1;if(o===g_||(o===p_||o===h_)&&i===x_)b=m_,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:s},u&&Z_),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:I_(n*o)/o||0,y:I_(r*o)/o||0}}({x:p,y:m},T_(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 tw={passive:!0};var nw={left:"right",right:"left",bottom:"top",top:"bottom"};function rw(e){return e.replace(/left|right|bottom|top/g,function(e){return nw[e]})}var ow={start:"end",end:"start"};function iw(e){return e.replace(/start|end/g,function(e){return ow[e]})}function aw(e){var t=T_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function sw(e){return j_(W_(e)).left+aw(e).scrollLeft}function lw(e){var t=$_(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uw(e){return["html","body","#document"].indexOf(E_(e))>=0?e.ownerDocument.body:N_(e)&&lw(e)?e:uw(U_(e))}function cw(e,t){var n;void 0===t&&(t=[]);var r=uw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=T_(r),a=o?[i].concat(i.visualViewport||[],lw(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(cw(U_(a)))}function dw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fw(e,t,n){return t===__?dw(function(e,t){var n=T_(e),r=W_(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=D_();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+sw(e),y:l}}(e,n)):A_(t)?function(e,t){var n=j_(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):dw(function(e){var t,n=W_(e),r=aw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=O_(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=O_(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+sw(e),l=-r.scrollTop;return"rtl"===$_(o||n).direction&&(s+=O_(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(W_(e)))}function pw(e,t,n,r){var o="clippingParents"===t?function(e){var t=cw(U_(e)),n=["absolute","fixed"].indexOf($_(e).position)>=0&&N_(e)?G_(e):e;return A_(n)?t.filter(function(e){return A_(e)&&B_(e,n)&&"body"!==E_(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=fw(e,n,r);return t.top=O_(o.top,t.top),t.right=P_(o.right,t.right),t.bottom=P_(o.bottom,t.bottom),t.left=O_(o.left,t.left),t},fw(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 hw(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?R_(o):null,a=o?X_(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case p_:t={x:s,y:n.y-r.height};break;case h_:t={x:s,y:n.y+n.height};break;case m_:t={x:n.x+n.width,y:l};break;case g_:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?V_(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case b_:t[u]=t[u]-(n[c]/2-r[c]/2);break;case x_:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function mw(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?__:u,d=n.elementContext,f=void 0===d?w_:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=q_("number"!=typeof g?g:J_(g,y_)),y=f===w_?"reference":w_,b=e.rects.popper,x=e.elements[h?y:f],_=pw(A_(x)?x:x.contextElement||W_(e.elements.popper),l,c,a),w=j_(e.elements.reference),k=hw({reference:w,element:b,placement:o}),S=dw(Object.assign({},b,k)),C=f===w_?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===w_&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[m_,h_].indexOf(e)>=0?1:-1,n=[p_,h_].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function gw(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?S_:l,c=X_(r),d=c?s?k_:k_.filter(function(e){return X_(e)===c}):y_,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]=mw(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[R_(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var vw={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=R_(g),y=l||(v===g||!h?[rw(g)]:function(e){if(R_(e)===v_)return[];var t=rw(e);return[iw(e),t,iw(t)]}(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(R_(n)===v_?gw(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=R_(E),A=X_(E)===b_,N=[p_,h_].indexOf(T)>=0,M=N?"width":"height",L=mw(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=N?A?m_:g_:A?h_:p_;x[M]>_[M]&&(R=rw(R));var O=rw(R),P=[];if(i&&P.push(L[T]<=0),s&&P.push(L[R]<=0,L[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 yw(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 bw(e){return[p_,m_,h_,g_].some(function(t){return e[t]>=0})}var xw={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=mw(t,{elementContext:"reference"}),s=mw(t,{altBoundary:!0}),l=yw(a,r),u=yw(s,o,i),c=bw(l),d=bw(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})}};var _w={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=S_.reduce(function(e,n){return e[n]=function(e,t,n){var r=R_(e),o=[g_,p_].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,[g_,m_].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 ww={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=hw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var kw={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=mw(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=R_(t.placement),y=X_(t.placement),b=!y,x=V_(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,M="y"===x?p_:g_,L="y"===x?h_:m_,R="y"===x?"height":"width",O=w[x],P=O+g[M],I=O-g[L],z=p?-S[R]/2:0,D=y===b_?k[R]:S[R],j=y===b_?-S[R]:-k[R],F=t.elements.arrow,B=p&&F?F_(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[M],W=$[L],U=Y_(0,k[R],B[R]),K=b?k[R]/2-z-U-H-E.mainAxis:D-U-H-E.mainAxis,G=b?-k[R]/2+z+U+W+E.mainAxis:j+U+W+E.mainAxis,V=t.elements.arrow&&G_(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=Y_(p?P_(P,O+K-q-Y):P,O,p?O_(I,J):I);w[x]=Q,A[x]=Q-O}if(s){var X,Z="x"===x?p_:g_,ee="x"===x?h_:m_,te=w[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[p_,g_].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=Y_(e,t,n);return r>n?n:r}(se,te,le):Y_(p?se:re,te,p?le:oe);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function Sw(e,t,n){void 0===n&&(n=!1);var r=N_(t),o=N_(t)&&function(e){var t=e.getBoundingClientRect(),n=I_(t.width)/e.offsetWidth||1,r=I_(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=W_(t),a=j_(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==E_(t)||lw(i))&&(s=function(e){return e!==T_(e)&&N_(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:aw(e);var t}(t)),N_(t)?((l=j_(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=sw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Cw(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 Ew(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Tw={placement:"bottom",modifiers:[],strategy:"absolute"};function Aw(){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 Nw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Tw:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tw,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:A_(e)?cw(e):e.contextElement?cw(e.contextElement):[],popper:cw(t)};var c,d,f=function(e){var t=Cw(e);return C_.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(Aw(t,n)){o.rects={reference:Sw(t,G_(n),"fixed"===o.options.strategy),popper:F_(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:Ew(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){u(),s=!0}};if(!Aw(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 Mw=Nw({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=T_(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,tw)}),s&&l.addEventListener("resize",n.update,tw),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,tw)}),s&&l.removeEventListener("resize",n.update,tw)}},data:{}},ww,{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:R_(t.placement),variation:X_(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,ew(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,ew(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:{}},L_,_w,vw,kw,Q_,xw]});const Lw=D.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=D.useState(null),s=ky(D.isValidElement(n)?Wy(n):null,t);if(dy(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),dy(()=>{if(i&&!o)return yy(t,i),()=>{yy(t,null)}},[t,i,o]),o){if(D.isValidElement(n)){const e={ref:s};return D.cloneElement(n,e)}return Kc.jsx(D.Fragment,{children:n})}return Kc.jsx(D.Fragment,{children:i?fx.createPortal(n,i):i})});function Rw(e){return jv("MuiPopper",e)}Fv("MuiPopper",["root"]);const Ow=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Pw=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Iw(e){return"function"==typeof e?e():e}const zw={},Dw=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=_p(e,Ow),g=D.useRef(null),v=ky(g,t),y=D.useRef(null),b=ky(y,d),x=D.useRef(b);dy(()=>{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(Iw(r));D.useEffect(()=>{y.current&&y.current.forceUpdate()}),D.useEffect(()=>{r&&C(Iw(r))},[r]),dy(()=>{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=Mw(S,g.current,xp({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 Dy({root:["root"]},Rw,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=_p(e,Hy),s=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:u}=$y(xp({},a,{externalSlotProps:s}));return Fy(n,xp({},l,{ref:ky(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 Kc.jsx(A,xp({},N,{children:"function"==typeof o?o(E):o}))}),jw=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=zw,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=_p(e,Pw),[y,b]=D.useState(!0);if(!s&&!u&&(!h||y))return null;let x;if(o)x=o;else if(n){const e=Iw(n);x=e&&void 0!==e.nodeType?gy(e).body:gy(null).body}const _=u||!s||h&&!y?void 0:"none",w=h?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return Kc.jsx(Lw,{disablePortal:a,container:x,children:Kc.jsx(Dw,xp({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:xp({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),Fw=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Bw=ix(jw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$w=D.forwardRef(function(e,t){var n;const r=f_(),o=ux({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=_p(o,Fw),_=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,w=xp({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Kc.jsx(Bw,xp({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=b?b:l},w,{ref:t}))}),Hw=["onChange","maxRows","minRows","style","value"];function Ww(e){return parseInt(e,10)||0}const Uw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Kw(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Gw=D.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=_p(e,Hw),{current:l}=D.useRef(null!=a),u=D.useRef(null),c=ky(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=vy(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=Ww(i.paddingBottom)+Ww(i.paddingTop),l=Ww(i.borderBottomWidth)+Ww(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=wy(()=>{const e=u.current,t=p();if(!e||!t||Kw(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||Kw(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);dy(()=>{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=vy(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]),dy(()=>{m()});return Kc.jsxs(D.Fragment,{children:[Kc.jsx("textarea",xp({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Kc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:xp({},Uw,i,{paddingTop:0,paddingBottom:0})})]})});const Vw=D.createContext(void 0);function Yw(e){return Kc.jsx(Av,xp({},e,{defaultTheme:$b,themeId:bp}))}function qw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Jw(e){return jv("MuiInputBase",e)}const Qw=Fv("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Xw=["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"],Zw=ix("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${Eg(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>xp({},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",[`&.${Qw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&xp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ek=ix("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=xp({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 xp({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] + .${Qw.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},[`&.${Qw.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"})}),tk=Kc.jsx(Yw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),nk=D.forwardRef(function(e,t){var n;const r=ux({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:M,renderSuffix:L,rows:R,slotProps:O={},slots:P={},startAdornment:I,type:z="text",value:j}=r,F=_p(r,Xw),B=null!=v.value?v.value:j,{current:$}=D.useRef(null!=B),H=D.useRef(),W=D.useCallback(e=>{},[]),U=ky(H,y,v.ref,W),[K,G]=D.useState(!1),V=D.useContext(Vw),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&&(qw(e.value)&&""!==e.value||t&&qw(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():q&&q()},[q,J]);dy(()=>{$&&Q({value:B})},[B,Q,$]);D.useEffect(()=>{Q(H.current)},[]);let X=g,Z=v;_&&"input"===X&&(Z=xp(R?{type:void 0,minRows:R,maxRows:R}:{type:void 0,maxRows:b,minRows:x},Z),X=Gw);D.useEffect(()=>{V&&V.setAdornedStart(Boolean(I))},[V,I]);const ee=xp({},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: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 Dy({root:["root",`color${Eg(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${Eg(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"]},Jw,t)})(ee),ne=P.root||l.Root||Zw,re=O.root||u.root||{},oe=P.input||l.Input||ek;return Z=xp({},Z,null!=(n=O.input)?n:u.input),Kc.jsxs(D.Fragment,{children:[!f&&tk,Kc.jsxs(ne,xp({},re,!jy(ne)&&{ownerState:xp({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),C&&C(e)}},F,{className:Iv(te.root,re.className,s,M&&"MuiInputBase-readOnly"),children:[I,Kc.jsx(Vw.Provider,{value:null,children:Kc.jsx(oe,xp({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:M,required:Y.required,rows:R,value:B,onKeyDown:T,onKeyUp:A,type:z},Z,!jy(oe)&&{as:X,ownerState:xp({},ee,Z.ownerState)},{ref:U,className:Iv(te.input,Z.className,M&&"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(vp(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,L?L(xp({},Y,{startAdornment:I})):null]}))]})}),rk=Fv("MuiBox",["root"]),ok=Bb(),ik=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=sg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(bv);return D.forwardRef(function(e,a){const s=Ev(n),l=Mv(e),{className:u,component:c="div"}=l,d=_p(l,zv);return Kc.jsx(i,xp({as:c,ref:a,className:Iv(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:bp,defaultTheme:ok,defaultClassName:rk.root,generateClassName:Ov.generate});function ak(e){return jv("MuiButton",e)}const sk=Fv("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"]),lk=D.createContext({}),uk=D.createContext(void 0),ck=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dk=e=>xp({},"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}}),fk=ix(Qx,{shouldForwardProp:e=>ox(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Eg(n.color)}`],t[`size${Eg(n.size)}`],t[`${n.variant}Size${Eg(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 xp({},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":xp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xb.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})`:xb.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})`:xb.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":xp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sk.focusVisible}`]:xp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sk.disabled}`]:xp({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 ${xb.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"},[`&.${sk.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sk.disabled}`]:{boxShadow:"none"}}),pk=ix("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Eg(n.size)}`]]}})(({ownerState:e})=>xp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},dk(e))),hk=ix("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Eg(n.size)}`]]}})(({ownerState:e})=>xp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},dk(e))),mk=D.forwardRef(function(e,t){const n=D.useContext(lk),r=D.useContext(uk),o=ux({props:uy(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=_p(o,ck),x=xp({},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 xp({},a,Dy({root:["root",i,`${i}${Eg(t)}`,`size${Eg(o)}`,`${i}Size${Eg(o)}`,`color${Eg(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Eg(o)}`],endIcon:["icon","endIcon",`iconSize${Eg(o)}`]},ak,a))})(x),w=g&&Kc.jsx(pk,{className:_.startIcon,ownerState:x,children:g}),k=f&&Kc.jsx(hk,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return Kc.jsxs(fk,xp({ownerState:x,className:Iv(n.className,_.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Iv(_.focusVisible,p),ref:t,type:v},b,{classes:_,children:[w,i,k]}))});function gk(e){return e.substring(2).toLowerCase()}function vk(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=ky(Wy(t),s),d=wy(e=>{const t=u.current;u.current=!1;const r=gy(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=gk(i),t=gy(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=gk(r),t=gy(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),Kc.jsx(D.Fragment,{children:D.cloneElement(t,p)})}function yk(e){return jv("MuiDivider",e)}const bk=Fv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xk=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],_k=ix("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})=>xp({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)`:xb.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})=>xp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>xp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>xp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>xp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wk=ix("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>xp({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)`})),kk=D.forwardRef(function(e,t){const n=ux({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=_p(n,xk),h=xp({},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 Dy({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"]},yk,r)})(h);return Kc.jsx(_k,xp({as:a,className:Iv(m.root,i),role:c,ref:t,ownerState:h},p,{children:o?Kc.jsx(wk,{className:m.wrapper,ownerState:h,children:o}):null}))});kk.muiSkipListHighlight=!0;const Sk=function(e={}){const{createStyledComponent:t=sb,useThemeProps:n=lb,componentName:r="MuiStack"}=e,o=t(cb),i=D.forwardRef(function(e,t){const i=Mv(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=_p(i,ib),h={direction:s,spacing:l,useFlexGap:f},m=Dy({root:["root"]},e=>jv(r,e),{});return Kc.jsx(o,xp({as:a,ownerState:h,ref:t,className:Iv(m.root,d)},p,{children:u?ub(c,u):c}))});return i}({createStyledComponent:ix("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ux({props:e,name:"MuiStack"})}),Ck=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ek(e){return`scale(${e}, ${e**2})`}const Tk={entering:{opacity:1,transform:Ek(1)},entered:{opacity:1,transform:"none"}},Ak="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Nk=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=_x}=e,g=_p(e,Ck),v=Ty(),y=D.useRef(),b=Hb(),x=D.useRef(null),_=ky(x,Wy(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}=Nx({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:Ak?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}=Nx({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:Ak?o:.666*o,delay:Ak?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ek(.75),c&&c(e)}),A=w(d);return Kc.jsx(m,xp({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,xp({style:xp({opacity:0,transform:Ek(.75),visibility:"exited"!==e||a?void 0:"hidden"},Tk[e],p,o.props.style),ref:_},t))}))});Nk.muiSupportAuto=!0;const Mk=D.createContext({});function Lk(e){return jv("MuiList",e)}Fv("MuiList",["root","padding","dense","subheader"]);const Rk=["children","className","component","dense","disablePadding","subheader"],Ok=ix("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})=>xp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Pk=D.forwardRef(function(e,t){const n=ux({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=_p(n,Rk),c=D.useMemo(()=>({dense:a}),[a]),d=xp({},n,{component:i,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dy({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Lk,t)})(d);return Kc.jsx(Mk.Provider,{value:c,children:Kc.jsxs(Ok,xp({as:i,className:Iv(f.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function Ik(e){return jv("MuiListItemIcon",e)}const zk=Fv("MuiListItemIcon",["root","alignItemsFlexStart"]),Dk=["className"],jk=ix("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})=>xp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Fk=D.forwardRef(function(e,t){const n=ux({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=_p(n,Dk),i=xp({},n,{alignItems:D.useContext(Mk).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Dy({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ik,n)})(i);return Kc.jsx(jk,xp({className:Iv(a.root,r),ownerState:i,ref:t},o))}),Bk=Fv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$k=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Hk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Uk(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 Kk(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")&&Uk(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Gk=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=_p(e,$k),f=D.useRef(null),p=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dy(()=>{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)}(gy(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=ky(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 Kc.jsx(Pk,xp({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=gy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Kk(t,r,l,s,Hk);else if("ArrowUp"===n)e.preventDefault(),Kk(t,r,l,s,Wk);else if("Home"===n)e.preventDefault(),Kk(t,null,l,s,Hk);else if("End"===n)e.preventDefault(),Kk(t,null,l,s,Wk);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&&Uk(r,o);o.previousKeyMatched&&(l||Kk(t,r,!1,s,Hk,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))});function Vk(e){return jv("MuiMenuItem",e)}const Yk=Fv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jk=ix(Qx,{shouldForwardProp:e=>ox(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})=>xp({},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"}},[`&.${Yk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xb.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})`:xb.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${bk.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${bk.inset}`]:{marginLeft:52},[`& .${Bk.root}`]:{marginTop:0,marginBottom:0},[`& .${Bk.inset}`]:{paddingLeft:36},[`& .${zk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&xp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${zk.root} svg`]:{fontSize:"1.25rem"}}))),Qk=D.forwardRef(function(e,t){const n=ux({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=_p(n,qk),p=D.useContext(Mk),h=D.useMemo(()=>({dense:i||p.dense||!1,disableGutters:s}),[p.dense,i,s]),m=D.useRef(null);dy(()=>{r&&m.current&&m.current.focus()},[r]);const g=xp({},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 xp({},a,Dy({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Vk,a))})(n),y=ky(m,t);let b;return n.disabled||(b=void 0!==c?c:-1),Kc.jsx(Mk.Provider,{value:h,children:Kc.jsx(Jk,xp({ref:y,role:u,tabIndex:b,component:o,focusVisibleClassName:Iv(v.focusVisible,l),className:Iv(v.root,d)},f,{ownerState:g,classes:v}))})});function Xk(e){return jv("MuiTooltip",e)}const Zk=Fv("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),eS=["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 tS=ix($w,{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})=>xp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Zk.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Zk.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Zk.arrow}`]:xp({},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"] .${Zk.arrow}`]:xp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),nS=ix("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${Eg(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return xp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xb.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},{[`.${Zk.popper}[data-popper-placement*="left"] &`]:xp({transformOrigin:"right center"},t.isRtl?xp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):xp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Zk.popper}[data-popper-placement*="right"] &`]:xp({transformOrigin:"left center"},t.isRtl?xp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):xp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Zk.popper}[data-popper-placement*="top"] &`]:xp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Zk.popper}[data-popper-placement*="bottom"] &`]:xp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),rS=ix("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:xb.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let oS=!1;const iS=new Ey;let aS={x:0,y:0};function sS(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const lS=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 _=ux({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:M=!1,enterDelay:L=100,enterNextDelay:R=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:V,TransitionComponent:Y=Nk,TransitionProps:q}=_,J=_p(_,eS),Q=D.isValidElement(k)?k:Kc.jsx("span",{children:k}),X=Hb(),Z=(()=>{const e=D.useContext(qy);return null!=e&&e})(),[ee,te]=D.useState(),[ne,re]=D.useState(null),oe=D.useRef(!1),ie=N||P,ae=Ty(),se=Ty(),le=Ty(),ue=Ty(),[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=_y(I),he=D.useRef(),me=wy(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});D.useEffect(()=>me,[me]);const ge=e=>{iS.clear(),oS=!0,de(!0),B&&!fe&&B(e)},ve=wy(e=>{iS.start(800+z,()=>{oS=!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(),L||oS&&R?se.start(oS?R:L,()=>{ge(e)}):ge(e))},be=e=>{se.clear(),le.start(z,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=zy(),[,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 Me=ky(Wy(Q),ke,te,t);V||0===V||(fe=!1);const Le=D.useRef(),Re={},Oe="string"==typeof V;E?(Re.title=fe||!Oe||A?null:V,Re["aria-describedby"]=fe?pe:null):(Re["aria-label"]=Oe?V:null,Re["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=xp({},Re,J,Q.props,{className:Iv(J.className,Q.props.className),onTouchStart:Te,ref:Me},P?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),aS={x:e.clientX,y:e.clientY},Le.current&&Le.current.update()}}:{}),Ie={};M||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Ne),A||(Pe.onMouseOver=sS(ye,Pe.onMouseOver),Pe.onMouseLeave=sS(be,Pe.onMouseLeave),ie||(Ie.onMouseOver=ye,Ie.onMouseLeave=be)),T||(Pe.onFocus=sS(Ee,Pe.onFocus),Pe.onBlur=sS(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)),xp({},U.popperOptions,{modifiers:t})},[ne,U]),De=xp({},_,{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 Dy({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Eg(i.split("-")[0])}`],arrow:["arrow"]},Xk,t)})(De),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:tS,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:S.Transition)?i:Y)?o:Nk,$e=null!=(s=null!=(l=G.tooltip)?l:S.Tooltip)?s:nS,He=null!=(u=null!=(c=G.arrow)?c:S.Arrow)?u:rS,We=Fy(Fe,xp({},U,null!=(d=K.popper)?d:C.popper,{className:Iv(je.popper,null==U?void 0:U.className,null==(f=null!=(p=K.popper)?p:C.popper)?void 0:f.className)}),De),Ue=Fy(Be,xp({},q,null!=(h=K.transition)?h:C.transition),De),Ke=Fy($e,xp({},null!=(m=K.tooltip)?m:C.tooltip,{className:Iv(je.tooltip,null==(g=null!=(v=K.tooltip)?v:C.tooltip)?void 0:g.className)}),De),Ge=Fy(He,xp({},null!=(y=K.arrow)?y:C.arrow,{className:Iv(je.arrow,null==(b=null!=(x=K.arrow)?x:C.arrow)?void 0:b.className)}),De);return Kc.jsxs(D.Fragment,{children:[D.cloneElement(Q,Pe),Kc.jsx(Fe,xp({as:null!=W?W:$w,placement:H,anchorEl:P?{getBoundingClientRect:()=>({top:aS.y,left:aS.x,right:aS.x,bottom:aS.y,width:0,height:0})}:ee,popperRef:Le,open:!!ee&&fe,id:pe,transition:!0},Ie,We,{popperOptions:ze,children:({TransitionProps:e})=>Kc.jsx(Be,xp({timeout:X.transitions.duration.shorter},e,Ue,{children:Kc.jsxs($e,xp({},Ke,{children:[V,w?Kc.jsx(He,xp({},Ge,{ref:re})):null]}))}))}))]})}),uS=(e,t)=>Kc.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:Kc.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"})}),cS=D.forwardRef(uS),dS=(e,t)=>Kc.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:Kc.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),fS=D.forwardRef(dS);function pS({validateUrl:e,attributes:t}){const[n]=Bc();return D.useEffect(()=>{if(!n.hasNodes([Lu]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),D.useEffect(()=>function(e,t){return ll(e.registerNodeTransform(Lu,Pu),e.registerCommand($u,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Wu(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Wu(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Wu(t,{...r,rel:o,target:n,title:i}),!0}},_i),tu(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Dt,t=>{const o=go();if(!Qr(o)||o.isCollapsed()||!Ol(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>ii(e))&&(e.dispatchCommand($u,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,function(e,t={}){const n={};for(const r in e){const o=t[r],i=Gl(void 0===o?e[r]:o);n[r]=i}return n}({attributes:t,validateUrl:e})),[n,e,t]),null}const hS={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)"},mS=12,gS=14,vS=16,yS=24,bS=3,xS=300,_S=400,wS=600,kS=700,SS={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function CS(e){return Kc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Kc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function ES({fontSize:e="medium",children:t=null,className:n=""}={}){return Kc.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 TS(e={}){return Kc.jsx(ES,{...e,children:Kc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Kc.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Kc.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 AS(e={}){return Kc.jsx(ES,{fontSize:"medium",...e,children:Kc.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Kc.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Kc.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 NS(e){return Kc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Kc.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 MS(e={}){return Kc.jsx(ES,{...e,children:Kc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Kc.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Kc.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Kc.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function LS(e={}){return Kc.jsx(ES,{fontSize:"medium",...e,children:Kc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Kc.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Kc.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function RS({className:e}){return Kc.jsx(ES,{fontSize:"small",className:e,children:Kc.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Kc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Kc.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Kc.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Kc.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"}),Kc.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 OS(e={}){return Kc.jsx(ES,{...e,children:Kc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Kc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Kc.jsx("rect",{stroke:hS.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var PS=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:hS.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:hS.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Kc.jsx(CS,{"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 ${hS.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:hS.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${hS.MISC_FOCUS_BORDER}`,borderRadius:bS,backgroundColor:hS.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 ${hS.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:hS.WHITE,color:hS.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:bS},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hS.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:hS.GREYSCALE_0_15,backgroundColor:hS.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:hS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hS.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:hS.GREEN_PALE},"&:active":{backgroundColor:hS.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hS.GREEN_PALE,boxShadow:`0 0 0 3px ${my(hS.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:hS.BLUE_PALE},"&:active":{backgroundColor:hS.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hS.BLUE_PALE,boxShadow:`0 0 0 3px ${my(hS.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:bS,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:hS.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hS.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:hS.GREYSCALE_0_42,backgroundColor:hS.GREYSCALE_100_60,"&:active":{backgroundColor:hS.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:hS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hS.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:hS.PURPLE,"&.Mui-focusVisible":{borderColor:hS.PURPLE,boxShadow:`0 0 0 3px ${my(hS.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:hS.GREEN,"&.Mui-focusVisible":{borderColor:hS.GREEN,boxShadow:`0 0 0 3px ${my(hS.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:hS.BLUE,"&.Mui-focusVisible":{borderColor:hS.BLUE,boxShadow:`0 0 0 3px ${my(hS.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:hS.ORANGE,"&.Mui-focusVisible":{borderColor:hS.ORANGE,boxShadow:`0 0 0 3px ${my(hS.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:hS.RED,"&.Mui-focusVisible":{borderColor:hS.RED,boxShadow:`0 0 0 3px ${my(hS.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:hS.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:hS.PURPLE_PALE},"&:active":{backgroundColor:hS.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:hS.PURPLE_PALE,boxShadow:`0 0 0 3px ${my(hS.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:hS.GREEN_PALE},"&:active":{backgroundColor:hS.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hS.GREEN_PALE,boxShadow:`0 0 0 3px ${my(hS.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:hS.BLUE_PALE},"&:active":{backgroundColor:hS.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hS.BLUE_PALE,boxShadow:`0 0 0 3px ${my(hS.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:hS.ORANGE_PALE},"&:active":{backgroundColor:hS.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:hS.ORANGE_PALE,boxShadow:`0 0 0 3px ${my(hS.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:hS.RED_PALE},"&:active":{backgroundColor:hS.RED_DARK},"&.Mui-focusVisible":{borderColor:hS.RED_PALE,boxShadow:`0 0 0 3px ${my(hS.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:hS.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:hS.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:bS,boxShadow:`inset 0 0 0 2px ${hS.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Kc.jsx(NS,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:mS,borderRadius:bS,color:hS.TEXT_PRIMARY,backgroundColor:hS.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:hS.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${hS.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:hS.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:hS.GREYSCALE_0_05,color:hS.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:hS.GREEN,borderColor:hS.GREEN},"&.MuiChip-outlinedInfo":{color:hS.BLUE,borderColor:hS.BLUE},"&.MuiChip-outlinedWarning":{color:hS.ORANGE,borderColor:hS.ORANGE},"&.MuiChip-outlinedError":{color:hS.RED,borderColor:hS.RED}},outlined:{border:`solid 1px ${hS.GREYSCALE_0_15}`,backgroundColor:hS.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:bS,boxShadow:"none",backgroundColor:hS.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:hS.GREEN,borderColor:hS.GREEN},outlinedSecondary:{color:hS.BLUE,borderColor:hS.BLUE},label:{fontFamily:SS.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Kc.jsx(NS,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Kc.jsx(CS,{"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:bS},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:bS,fontSize:gS,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:hS.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${hS.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:hS.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:hS.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:hS.GREYSCALE_0_05}}},popupIndicator:{borderRadius:bS,border:`solid 1px ${hS.GREYSCALE_0_15}`,color:hS.GREYSCALE_0_60,marginRight:0,width:yS,height:yS},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${hS.GREYSCALE_0_15}`},clearIndicator:{borderRadius:bS,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:hS.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:gS}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:mS,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:hS.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:hS.GREYSCALE_25,fontSize:mS,fontFamily:SS.FONT_FAMILY,fontWeight:wS,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:hS.TEXT_PRIMARY},"&.Mui-error":{color:hS.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:hS.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_S,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:hS.TEXT_SECONDARY,content:"'(required)'",fontWeight:_S,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:gS,lineHeight:"16px",backgroundColor:hS.WHITE,borderRadius:bS,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hS.GREYSCALE_0_05}`,borderColor:hS.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hS.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${hS.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${hS.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hS.RED}`,boxShadow:`0px 0px 0px 1px ${hS.RED}, inset 0 2px 0 0 ${hS.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hS.GREYSCALE_0_10}`,borderColor:hS.GREYSCALE_0_10,backgroundColor:hS.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:hS.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:hS.GREYSCALE_0_15,borderRadius:bS,boxShadow:`inset 0 2px 0 0 ${hS.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Kc.jsx(CS,{...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:hS.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:hS.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:hS.GREYSCALE_0_03},"&:active":{backgroundColor:hS.GREYSCALE_0_10},"&:focus":{backgroundColor:hS.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${hS.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${hS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:hS.GREYSCALE_0_30,"&:hover":{backgroundColor:hS.GREYSCALE_0_0,borderColor:hS.GREYSCALE_0_15},"& ~svg":{color:hS.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${hS.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:bS}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:hS.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${hS.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:hS.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:gS,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:mS,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:mS,fontWeight:wS,color:hS.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:wS}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${hS.GREYSCALE_0_15}, 0px 0px 0px 1px ${hS.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Kc.jsx(LS,{}),checkedIcon:Kc.jsx(AS,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:hS.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${hS.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:hS.GREEN_PALE,boxShadow:`0 0 0 3px ${my(hS.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:hS.BLUE_PALE,boxShadow:`0 0 0 3px ${my(hS.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:hS.GREYSCALE_0_20}},"&.Mui-disabled":{fill:hS.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Kc.jsx(OS,{}),checkedIcon:Kc.jsx(TS,{}),indeterminateIcon:Kc.jsx(MS,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:bS,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:hS.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:hS.GREYSCALE_0_55,color:hS.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:hS.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:hS.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:hS.GREYSCALE_0_55,"&:hover":{color:hS.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:hS.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:hS.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:gS,color:hS.TEXT_PRIMARY,lineHeight:"16px",fontWeight:wS},secondary:{fontSize:mS,color:hS.GREYSCALE_45,fontWeight:_S,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:gS,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:gS,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:hS.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:mS,borderBottom:`solid 1px ${hS.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:gS,color:hS.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:hS.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:hS.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:hS.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:hS.RED}}},"&.Mui-focusVisible":{backgroundColor:hS.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:hS.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:hS.GREEN,height:"24px","&.Mui-disabled":{color:hS.GREYSCALE_0_15}},rail:{backgroundColor:hS.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${hS.GREYSCALE_0_05}`,borderRadius:bS,boxShadow:`inset 0px 0px 0px 1px ${hS.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${hS.GREYSCALE_0_05}`,borderRadius:bS},thumb:{height:"16px",width:"16px",borderRadius:bS,backgroundColor:hS.WHITE,boxShadow:`0px 1px 2px 0px ${hS.GREYSCALE_0_15}, 0px 0px 0px 1px ${hS.GREYSCALE_0_05}`,"&:hover":{borderRadius:bS,boxShadow:`0 2px 4px 0 ${hS.GREYSCALE_0_30}, 0 0 0 1px ${hS.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${hS.GREYSCALE_0_15}, 0 0 0 1px ${hS.GREYSCALE_0_06}, 0 0 0 2px ${hS.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${hS.GREYSCALE_0_15}, 0 0 0 1px ${hS.GREYSCALE_0_06}, 0 0 0 2px ${hS.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:hS.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:hS.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:hS.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:hS.GREYSCALE_0_15},markLabel:{color:hS.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:hS.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:hS.WHITE,color:hS.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:hS.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:hS.GREEN_PALE,boxShadow:`0 0 0 3px ${my(hS.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:hS.BLUE_PALE,boxShadow:`0 0 0 3px ${my(hS.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:hS.GREYSCALE_0_15,borderRadius:bS},thumb:{height:"16px",width:"16px",borderRadius:bS,backgroundColor:hS.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:gS,fontWeight:wS,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${hS.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${hS.MISC_FOCUS_BORDER}`,backgroundColor:hS.GREYSCALE_0_03,borderRadius:bS},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:hS.GREYSCALE_25,"&.Mui-selected":{color:hS.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:gS,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:bS,"&:hover":{backgroundColor:hS.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 ${hS.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${hS.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:bS,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:hS.GREYSCALE_0_05},"&:hover":{backgroundColor:hS.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${hS.GREYSCALE_85}`,borderRight:`1px solid ${hS.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:wS,backgroundColor:hS.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:hS.GREYSCALE_98,borderBottom:`1px solid ${hS.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${hS.GREYSCALE_85}`,borderTop:`1px solid ${hS.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:hS.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:hS.GREYSCALE_0_05,"&:hover":{backgroundColor:hS.GREYSCALE_0_03}},"&&:hover":{backgroundColor:hS.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Kc.jsx(RS,{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 ${hS.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:gS,borderRadius:bS,padding:"7px 16px",border:`1px solid ${hS.GREYSCALE_0_15}`,backgroundColor:hS.GREYSCALE_100_60,color:hS.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:hS.GREYSCALE_0_10,border:`1px solid ${hS.GREYSCALE_0_30}`},"&:hover":{backgroundColor:hS.GREYSCALE_0_03,border:`1px solid ${hS.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:hS.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${hS.MISC_FOCUS_BORDER}`,border:`1px solid ${hS.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:hS.GREYSCALE_25,backgroundColor:hS.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:hS.GREYSCALE_0_10,border:`1px solid ${hS.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:mS,height:24,width:24,padding:7},sizeLarge:{fontSize:vS,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:gS,borderRadius:bS}}},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:hS.GREYSCALE_20},tooltip:{backgroundColor:hS.GREYSCALE_20,fontSize:mS,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const IS=e=>({mode:"light",primary:{ultraLight:hS.GREEN_ULTRA_LIGHT,light:hS.GREEN_PALE,main:hS.GREEN,dark:hS.GREEN_DARK,extraDark:hS.GREEN_EXTRA_DARK,contrastText:hS.WHITE},secondary:{ultraLight:hS.BLUE_ULTRA_LIGHT,light:hS.BLUE_PALE,main:hS.BLUE,dark:hS.BLUE_DARK,extraDark:hS.BLUE_EXTRA_DARK,contrastText:hS.WHITE},error:{ultraLight:hS.RED_ULTRA_LIGHT,light:hS.RED_PALE,main:hS.RED,dark:hS.RED_DARK,extraDark:hS.RED_EXTRA_DARK,contrastText:hS.WHITE},warning:{ultraLight:hS.ORANGE_ULTRA_LIGHT,light:hS.ORANGE_PALE,main:hS.ORANGE,dark:hS.ORANGE_DARK,extraDark:hS.ORANGE_EXTRA_DARK,contrastText:hS.WHITE},success:{ultraLight:hS.GREEN_ULTRA_LIGHT,light:hS.GREEN_PALE,main:hS.GREEN,dark:hS.GREEN_DARK,extraDark:hS.GREEN_EXTRA_DARK,contrastText:hS.WHITE},info:{ultraLight:hS.BLUE_ULTRA_LIGHT,light:hS.BLUE_PALE,main:hS.BLUE,dark:hS.BLUE_DARK,extraDark:hS.BLUE_EXTRA_DARK,contrastText:hS.WHITE},text:{primary:hS.TEXT_PRIMARY,secondary:hS.TEXT_SECONDARY,disabled:hS.GREYSCALE_0_30},action:{hover:hS.GREYSCALE_0_03,hoverOpacity:.03,selected:hS.GREYSCALE_0_05,selectedOpacity:.05,focus:hS.MISC_FOCUS_BORDER},amethyst:{ultraLight:hS.WHITE,main:hS.PURPLE,light:hS.PURPLE_PALE,dark:hS.PURPLE_DARK,extraDark:hS.GREYSCALE_0_0,contrastText:hS.WHITE},background:{paper:hS.WHITE,default:hS.GREYSCALE_95},divider:hS.GREYSCALE_0_15}),zS=(e="light")=>Bb({components:PS(),palette:IS(),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:gS,fontWeightLight:xS,fontWeightRegular:_S,fontWeightMedium:wS,fontWeightBold:kS,htmlFontSize:gS,fontFamily:SS.FONT_FAMILY,button:{fontWeight:wS,fontSize:gS,textTransform:"none"},body1:{fontSize:vS,lineHeight:"24px"},body2:{fontSize:gS,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:yS,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:vS,fontWeight:wS,lineHeight:"16px"},h6:{fontSize:gS,fontWeight:wS,lineHeight:"16px"},caption:{color:hS.TEXT_SECONDARY},subtitle1:{fontSize:gS,color:hS.TEXT_SECONDARY},subtitle2:{fontSize:mS,color:hS.TEXT_SECONDARY}},shape:{borderRadius:bS}});var DS,jS,FS={},BS={exports:{}},$S={exports:{}};function HS(){return DS||(DS=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}($S)),$S.exports}var WS={};function US(e,t){return function(){return null}}function KS(e){return e&&"object"===rb(e)&&e.constructor===Object}function GS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?xp({},e):e;return KS(e)&&KS(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(KS(t[o])&&o in e?r[o]=GS(e[o],t[o],n):r[o]=t[o])}),r}var VS=(og.element,function(){return null});VS.isRequired=(og.element.isRequired,function(){return null});var YS=function(){return null};var qS,JS,QS={exports:{}},XS={};var ZS=(JS||(JS=1,QS.exports=function(){if(qS)return XS;qS=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 XS.ContextConsumer=a,XS.ContextProvider=b,XS.Element=x,XS.ForwardRef=_,XS.Fragment=w,XS.Lazy=k,XS.Memo=S,XS.Portal=C,XS.Profiler=E,XS.StrictMode=T,XS.Suspense=A,XS.isAsyncMode=function(){return!1},XS.isConcurrentMode=function(){return!1},XS.isContextConsumer=function(e){return y(e)===a},XS.isContextProvider=function(e){return y(e)===i},XS.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},XS.isForwardRef=function(e){return y(e)===s},XS.isFragment=function(e){return y(e)===n},XS.isLazy=function(e){return y(e)===d},XS.isMemo=function(e){return y(e)===c},XS.isPortal=function(e){return y(e)===t},XS.isProfiler=function(e){return y(e)===o},XS.isStrictMode=function(e){return y(e)===r},XS.isSuspense=function(e){return y(e)===l},XS.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)},XS.typeOf=y,XS}()),QS.exports),eC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function tC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(eC);return t&&t[1]||""}(e)||t}function nC(e,t,n){var r=tC(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var rC,oC="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),iC=og.oneOfType([og.func,og.object]),aC=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:US,deepmerge:GS,elementAcceptingRef:VS,elementTypeAcceptingRef:YS,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 tC(e,"Component");if("object"===rb(e))switch(e.$$typeof){case ZS.ForwardRef:return nC(e,e.render,"ForwardRef");case ZS.Memo:return nC(e,e.type,"memo");default:return}}},ponyfillGlobal:oC,refType:iC}),sC=g(aC);function lC(){if(rC)return WS;rC=1,Object.defineProperty(WS,"__esModule",{value:!0}),WS.hexToRgb=n,WS.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(""))},WS.hslToRgb=r,WS.decomposeColor=o,WS.recomposeColor=i,WS.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},WS.getLuminance=a,WS.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)},WS.fade=function(e,t){return s(e,t)},WS.alpha=s,WS.darken=l,WS.lighten=u;var e=sC;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 WS}var uC,cC,dC,fC={},pC={exports:{}},hC={exports:{}},mC={exports:{}};function gC(){return uC||(uC=1,function(e){var t=HS().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}(mC)),mC.exports}function vC(){return cC||(cC=1,function(e){var t=HS().default,n=gC();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(hC)),hC.exports}function yC(){return dC||(dC=1,function(e){var t=vC();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}(pC)),pC.exports}var bC,xC={exports:{}};function _C(){return bC||(bC=1,function(e){var t=qb();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}(xC)),xC.exports}var wC,kC={};function SC(){if(wC)return kC;wC=1;var e=mb();Object.defineProperty(kC,"__esModule",{value:!0}),kC.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)},kC.keys=void 0;var t=e(Gb()),n=e(_C()),r=["xs","sm","md","lg","xl"];return kC.keys=r,kC}var CC,EC={};function TC(){if(CC)return EC;CC=1;var e=mb();Object.defineProperty(EC,"__esModule",{value:!0}),EC.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(yC()),n=e(Gb());return EC}var AC,NC={},MC={};function LC(){if(AC)return MC;AC=1,Object.defineProperty(MC,"__esModule",{value:!0}),MC.default=void 0;var e={black:"#000",white:"#fff"};return MC.default=e,MC}var RC,OC={};function PC(){if(RC)return OC;RC=1,Object.defineProperty(OC,"__esModule",{value:!0}),OC.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 OC.default=e,OC}var IC,zC={};function DC(){if(IC)return zC;IC=1,Object.defineProperty(zC,"__esModule",{value:!0}),zC.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 zC.default=e,zC}var jC,FC={};function BC(){if(jC)return FC;jC=1,Object.defineProperty(FC,"__esModule",{value:!0}),FC.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 FC.default=e,FC}var $C,HC={};function WC(){if($C)return HC;$C=1,Object.defineProperty(HC,"__esModule",{value:!0}),HC.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 HC.default=e,HC}var UC,KC={};function GC(){if(UC)return KC;UC=1,Object.defineProperty(KC,"__esModule",{value:!0}),KC.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 KC.default=e,KC}var VC,YC={};function qC(){if(VC)return YC;VC=1,Object.defineProperty(YC,"__esModule",{value:!0}),YC.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 YC.default=e,YC}var JC,QC,XC={};function ZC(){if(JC)return XC;JC=1,Object.defineProperty(XC,"__esModule",{value:!0}),XC.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 XC.default=e,XC}function eE(){if(QC)return NC;QC=1;var e=mb();Object.defineProperty(NC,"__esModule",{value:!0}),NC.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,M=e.contrastThreshold,L=void 0===M?3:M,R=e.tonalOffset,O=void 0===R?.2:R,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)>=L?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:L,getContrastText:I,augmentColor:z,tonalOffset:O},D[N]),P)},NC.dark=NC.light=void 0;var t=e(Gb()),n=e(_C()),r=sC,o=e(LC()),i=e(PC()),a=e(DC()),s=e(BC()),l=e(WC()),u=e(GC()),c=e(qC()),d=e(ZC()),f=lC(),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}};NC.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 NC.dark=h,NC}var tE,nE={};function rE(){if(tE)return nE;tE=1;var e=mb();Object.defineProperty(nE,"__esModule",{value:!0}),nE.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)},M={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:_},M),E,{clone:!1})};var t=e(Gb()),n=e(_C()),r=sC;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 nE}var oE,iE={};function aE(){if(oE)return iE;oE=1,Object.defineProperty(iE,"__esModule",{value:!0}),iE.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 iE.default=t,iE}var sE,lE={};function uE(){if(sE)return lE;sE=1,Object.defineProperty(lE,"__esModule",{value:!0}),lE.default=void 0;var e={borderRadius:4};return lE.default=e,lE}var cE={};function dE(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 fE(e,t){if(e){if("string"==typeof e)return dE(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)?dE(e,t):void 0}}function pE(e){return function(e){if(Array.isArray(e))return dE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fE(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 hE(e,t){return t?GS(e,t,{clone:!1}):e}var mE={xs:0,sm:600,md:960,lg:1280,xl:1920},gE={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(mE[e],"px)")}};function vE(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||gE;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===rb(t)){var o=e.theme.breakpoints||gE;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function yE(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function bE(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=yE(e.theme,o)||{};return vE(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=yE(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=ob(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 xE(){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?hE(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function _E(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var wE=bE({prop:"border",themeKey:"borders",transform:_E}),kE=bE({prop:"borderTop",themeKey:"borders",transform:_E}),SE=bE({prop:"borderRight",themeKey:"borders",transform:_E}),CE=bE({prop:"borderBottom",themeKey:"borders",transform:_E}),EE=bE({prop:"borderLeft",themeKey:"borders",transform:_E}),TE=bE({prop:"borderColor",themeKey:"palette"}),AE=bE({prop:"borderRadius",themeKey:"shape"}),NE=xE(wE,kE,SE,CE,EE,TE,AE);function ME(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function LE(e){var t=function(t){var n=e(t);return t.css?xp({},hE(n,e(xp({theme:t.theme},t.css))),ME(t.css,[e.filterProps])):t.sx?xp({},hE(n,e(xp({theme:t.theme},t.sx))),ME(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(pE(e.filterProps)),t}var RE=xE(bE({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),bE({prop:"display"}),bE({prop:"overflow"}),bE({prop:"textOverflow"}),bE({prop:"visibility"}),bE({prop:"whiteSpace"})),OE=bE({prop:"flexBasis"}),PE=bE({prop:"flexDirection"}),IE=bE({prop:"flexWrap"}),zE=bE({prop:"justifyContent"}),DE=bE({prop:"alignItems"}),jE=bE({prop:"alignContent"}),FE=bE({prop:"order"}),BE=bE({prop:"flex"}),$E=bE({prop:"flexGrow"}),HE=bE({prop:"flexShrink"}),WE=bE({prop:"alignSelf"}),UE=bE({prop:"justifyItems"}),KE=bE({prop:"justifySelf"}),GE=xE(OE,PE,IE,zE,DE,jE,FE,BE,$E,HE,WE,UE,KE),VE=bE({prop:"gridGap"}),YE=bE({prop:"gridColumnGap"}),qE=bE({prop:"gridRowGap"}),JE=bE({prop:"gridColumn"}),QE=bE({prop:"gridRow"}),XE=bE({prop:"gridAutoFlow"}),ZE=bE({prop:"gridAutoColumns"}),eT=bE({prop:"gridAutoRows"}),tT=bE({prop:"gridTemplateColumns"}),nT=bE({prop:"gridTemplateRows"}),rT=bE({prop:"gridTemplateAreas"}),oT=bE({prop:"gridArea"}),iT=xE(VE,YE,qE,JE,QE,XE,ZE,eT,tT,nT,rT,oT),aT=bE({prop:"color",themeKey:"palette"}),sT=bE({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),lT=xE(aT,sT),uT=bE({prop:"position"}),cT=bE({prop:"zIndex",themeKey:"zIndex"}),dT=bE({prop:"top"}),fT=bE({prop:"right"}),pT=bE({prop:"bottom"}),hT=bE({prop:"left"}),mT=xE(uT,cT,dT,fT,pT,hT),gT=bE({prop:"boxShadow",themeKey:"shadows"});function vT(e){return e<=1?"".concat(100*e,"%"):e}var yT=bE({prop:"width",transform:vT}),bT=bE({prop:"maxWidth",transform:vT}),xT=bE({prop:"minWidth",transform:vT}),_T=bE({prop:"height",transform:vT}),wT=bE({prop:"maxHeight",transform:vT}),kT=bE({prop:"minHeight",transform:vT}),ST=bE({prop:"size",cssProperty:"width",transform:vT}),CT=bE({prop:"size",cssProperty:"height",transform:vT}),ET=bE({prop:"boxSizing"}),TT=xE(yT,bT,xT,_T,wT,kT,ET);function AT(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)||fE(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 NT={m:"margin",p:"padding"},MT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},LT={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RT=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(!LT[e])return[e];e=LT[e]}var t=AT(e.split(""),2),n=t[0],r=t[1],o=NT[n],i=MT[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),OT=["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 PT(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 IT(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 zT(e){var t=PT(e.theme);return Object.keys(e).map(function(n){if(-1===OT.indexOf(n))return null;var r=IT(RT(n),t),o=e[n];return vE(e,o,r)}).reduce(hE,{})}zT.propTypes={},zT.filterProps=OT;var DT,jT=bE({prop:"fontFamily",themeKey:"typography"}),FT=bE({prop:"fontSize",themeKey:"typography"}),BT=bE({prop:"fontStyle",themeKey:"typography"}),$T=bE({prop:"fontWeight",themeKey:"typography"}),HT=bE({prop:"letterSpacing"}),WT=bE({prop:"lineHeight"}),UT=bE({prop:"textAlign"}),KT=xE(jT,FT,BT,$T,HT,WT,UT),GT=Object.freeze({__proto__:null,alignContent:jE,alignItems:DE,alignSelf:WE,bgcolor:sT,border:wE,borderBottom:CE,borderColor:TE,borderLeft:EE,borderRadius:AE,borderRight:SE,borderTop:kE,borders:NE,bottom:pT,boxSizing:ET,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||gE,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(xp({theme:t.theme},t[o]))),n},null);return hE(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(pE(e.filterProps)),t},color:aT,compose:xE,createUnarySpacing:PT,css:function(e){return LE(e)},display:RE,flex:BE,flexBasis:OE,flexDirection:PE,flexGrow:$E,flexShrink:HE,flexWrap:IE,flexbox:GE,fontFamily:jT,fontSize:FT,fontStyle:BT,fontWeight:$T,grid:iT,gridArea:oT,gridAutoColumns:ZE,gridAutoFlow:XE,gridAutoRows:eT,gridColumn:JE,gridColumnGap:YE,gridGap:VE,gridRow:QE,gridRowGap:qE,gridTemplateAreas:rT,gridTemplateColumns:tT,gridTemplateRows:nT,height:_T,justifyContent:zE,justifyItems:UE,justifySelf:KE,left:hT,letterSpacing:HT,lineHeight:WT,maxHeight:wT,maxWidth:bT,minHeight:kT,minWidth:xT,order:FE,palette:lT,position:uT,positions:mT,right:fT,shadows:gT,sizeHeight:CT,sizeWidth:ST,sizing:TT,spacing:zT,style:bE,styleFunctionSx:LE,textAlign:UT,top:dT,typography:KT,width:yT,zIndex:cT}),VT=g(GT);function YT(){if(DT)return cE;DT=1,Object.defineProperty(cE,"__esModule",{value:!0}),cE.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=VT;return cE}var qT,JT={};function QT(){if(qT)return JT;qT=1;var e=mb();Object.defineProperty(JT,"__esModule",{value:!0}),JT.default=JT.duration=JT.easing=void 0;var t=e(_C()),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)"};JT.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")}JT.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 JT.default=i,JT}var XT,ZT,eA={};function tA(){if(XT)return eA;XT=1,Object.defineProperty(eA,"__esModule",{value:!0}),eA.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return eA.default=e,eA}function nA(){if(ZT)return fC;ZT=1;var e=mb();Object.defineProperty(fC,"__esModule",{value:!0}),fC.createMuiTheme=function(){return f.apply(void 0,arguments)},fC.default=void 0,e(yC());var t=e(_C()),n=sC,r=e(SC()),o=e(TC()),i=e(eE()),a=e(rE()),s=e(aE()),l=e(uE()),u=e(YT()),c=e(QT()),d=e(tA());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 fC.default=p,fC}var rA,oA={};function iA(){if(rA)return oA;rA=1;var e=mb();Object.defineProperty(oA,"__esModule",{value:!0}),oA.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=sC,n=e(nA());return oA}var aA={},sA="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",lA=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function uA(){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!==lA.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[sA]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function cA(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 dA="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},fA="object"===("undefined"==typeof window?"undefined":dA(window))&&"object"===("undefined"==typeof document?"undefined":dA(document))&&9===document.nodeType;function pA(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,ob(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var hA={}.constructor;function mA(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(mA);if(e.constructor!==hA)return e;var t={};for(var n in e)t[n]=mA(e[n]);return t}function gA(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=mA(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var vA=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},yA=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+=vA(e[n]," ");else t=vA(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function bA(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function xA(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function _A(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=bA(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+=xA(f+":"+u+yA(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=xA(h+":"+u+yA(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=xA(g+":"+u+yA(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),xA(""+e+u+"{"+r,--i)+xA("}",i)):r}var wA=/([[\].#*$><+~=|^:(),"'`\s])/g,kA="undefined"!=typeof CSS&&CSS.escape,SA=function(e){return kA?kA(e):e.replace(wA,"\\$1")},CA=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}(),EA=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(kx(kx(o)),s),o.selectorText="."+SA(o.id)),o}dx(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]=yA(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?xp({},e,{allowEmpty:!0}):e;return _A(this.selectorText,this.style,n)},pA(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}(CA),TA={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new EA(e,t,n)}},AA={indent:1,children:!0},NA=/@([\w-]+)/,MA=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(NA);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new eN(xp({},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=AA);var t=bA(e).linebreak;if(null==e.indent&&(e.indent=AA.indent),null==e.children&&(e.children=AA.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),LA=/@container|@media|@supports\s+/,RA={onCreateRule:function(e,t,n){return LA.test(e)?new MA(e,t,n):null}},OA={indent:1,children:!0},PA=/@keyframes\s+([\w-]+)/,IA=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(PA);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:SA(a(this,i)),this.rules=new eN(xp({},n,{parent:this})),t)this.rules.add(s,t[s],xp({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=OA);var t=bA(e).linebreak;if(null==e.indent&&(e.indent=OA.indent),null==e.children&&(e.children=OA.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}(),zA=/@keyframes\s+/,DA=/\$([\w-]+)/g,jA=function(e,t){return"string"==typeof e?e.replace(DA,function(e,n){return n in t?t[n]:e}):e},FA=function(e,t,n){var r=e[t],o=jA(r,n);o!==r&&(e[t]=o)},BA={onCreateRule:function(e,t,n){return"string"==typeof e&&zA.test(e)?new IA(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&FA(e,"animation-name",n.keyframes),"animation"in e&&FA(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 jA(e,r.keyframes);default:return e}}},$A=function(e){function t(){return e.apply(this,arguments)||this}return dx(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?xp({},e,{allowEmpty:!0}):e;return _A(this.key,this.style,n)},t}(CA),HA={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new $A(e,t,n):null}},WA=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=bA(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=_A(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return _A(this.at,this.style,e)},e}(),UA=/@font-face/,KA={onCreateRule:function(e,t,n){return UA.test(e)?new WA(e,t,n):null}},GA=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 _A(this.key,this.style,e)},e}(),VA={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new GA(e,t,n):null}},YA=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}(),qA={"@charset":!0,"@import":!0,"@namespace":!0},JA={onCreateRule:function(e,t,n){return e in qA?new YA(e,t,n):null}},QA=[TA,RA,BA,HA,KA,VA,JA],XA={process:!0},ZA={force:!0,process:!0},eN=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=xp({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="."+SA(this.classes[d]));var f=gA(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=xp({},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 EA?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof IA&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof EA?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof IA&&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=XA);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,ZA)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,ZA)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=bA(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}(),tN=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=xp({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new eN(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}(),nN=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}(),rN=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=_p(t,["attached"]),o=bA(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},pA(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),oN=new rN,iN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),aN="2f1acc6c3a606b082e5eef5e54414ffb";null==iN[aN]&&(iN[aN]=0);var sN=iN[aN]++,lN=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")+sN+o+t:i+n.key+"-"+sN+(o?"-"+o:"")+"-"+t}},uN=function(e){var t;return function(){return t||(t=e()),t}},cN=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},dN=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=yA(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},fN=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},pN=function(e,t){return e.selectorText=t,e.selectorText===t},hN=uN(function(){return document.querySelector("head")});function mN(e){var t=oN.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=hN(),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 gN=uN(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vN=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]},yN=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},bN=function(){function e(e){this.getPropertyValue=cN,this.setProperty=dN,this.removeProperty=fN,this.setSelector=pN,this.hasInsertedRules=!1,this.cssRules=[],e&&oN.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=gN();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=mN(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 hN().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=yN(n,t);if(!1===(o=vN(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=yN(n,t),l=vN(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 tN&&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}(),xN=0,_N=function(){function e(e){this.id=xN++,this.version="10.10.0",this.plugins=new nN,this.options={id:{minify:!1},createGenerateId:lN,Renderer:fA?bN:null,plugins:[]},this.generateId=lN({minify:!1});for(var t=0;t<QA.length;t++)this.plugins.use(QA[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=xp({},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===oN.index?0:oN.index+1);var r=new tN(e,xp({},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(),oN.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=xp({},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=gA(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}(),wN=function(e){return new _N(e)},kN="object"==typeof CSS&&null!=CSS&&"number"in CSS;function SN(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=SN(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
|
-
*/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 YT(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-/,zA={};function IA(e){return"-"+e.toLowerCase()}function DA(e){if(zA.hasOwnProperty(e))return zA[e];var t=e.replace(OA,IA);return zA[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="",VA="",YA="",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,VA=QA[ZA];break}"Webkit"===GA&&"msHyphens"in XA&&(GA="ms",VA=QA.ms,qA="edge"),"Webkit"===GA&&"-apple-trailing-word"in XA&&(YA="apple")}var eN=GA,tN=VA,nN=YA,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 zN in PN)isNaN(zN)||(ON[PN[zN]]=PN[zN]);MN.forEach(function(e){return delete ON[e]})}function IN(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?IN(t):", "+IN(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=IN(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 VN=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},YN=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=YN(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},VN(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=YN(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,gf({link:!1},l))).attach(),o.sheetsCache&&VN(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=YN(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 zp(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 zp(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 zp(c,n),c}},withTheme:hL,withThemeCreator:fL}),gL=g(mL);
|
|
103
|
+
*/wN();var CN=Date.now(),EN="fnValues"+CN,TN="fnStyle"+ ++CN,AN="@global",NN="@global ",MN=function(){function e(e,t,n){for(var r in this.type="global",this.at=AN,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new eN(xp({},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}(),LN=function(){function e(e,t,n){this.type="global",this.at=AN,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,xp({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),RN=/\s*,\s*/g;function ON(e,t){for(var n=e.split(RN),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function PN(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===AN)return new MN(e,t,n);if("@"===e[0]&&e.substr(0,8)===NN)return new LN(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[AN]:null;if(o){for(var i in o)t.addRule(i,o[i],xp({},n,{selector:ON(i,e.selector)}));delete r[AN]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===AN){var i=ON(o.substr(7),e.selector);t.addRule(i,r[o],xp({},n,{selector:i})),delete r[o]}}(e,t))}}}var IN=/\s*,\s*/g,zN=/&/g,DN=/\$([\w-]+)/g;function jN(){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(IN),r=e.split(IN),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(zN,a):a+" "+l}return o}function n(e,t,n){if(n)return xp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=xp({},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(DN,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],xp({},a,{selector:p})):u.addRule(h,r[c],xp({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var FN=/[A-Z]/g,BN=/^ms-/,$N={};function HN(e){return"-"+e.toLowerCase()}function WN(e){if($N.hasOwnProperty(e))return $N[e];var t=e.replace(FN,HN);return $N[e]=BN.test(t)?"-"+t:t}function UN(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:WN(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(UN):t.fallbacks=UN(e.fallbacks)),t}var KN=kN&&CSS?CSS.px:"px",GN=kN&&CSS?CSS.ms:"ms",VN=kN&&CSS?CSS.percent:"%";function YN(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 qN=YN({"animation-delay":GN,"animation-duration":GN,"background-position":KN,"background-position-x":KN,"background-position-y":KN,"background-size":KN,border:KN,"border-bottom":KN,"border-bottom-left-radius":KN,"border-bottom-right-radius":KN,"border-bottom-width":KN,"border-left":KN,"border-left-width":KN,"border-radius":KN,"border-right":KN,"border-right-width":KN,"border-top":KN,"border-top-left-radius":KN,"border-top-right-radius":KN,"border-top-width":KN,"border-width":KN,"border-block":KN,"border-block-end":KN,"border-block-end-width":KN,"border-block-start":KN,"border-block-start-width":KN,"border-block-width":KN,"border-inline":KN,"border-inline-end":KN,"border-inline-end-width":KN,"border-inline-start":KN,"border-inline-start-width":KN,"border-inline-width":KN,"border-start-start-radius":KN,"border-start-end-radius":KN,"border-end-start-radius":KN,"border-end-end-radius":KN,margin:KN,"margin-bottom":KN,"margin-left":KN,"margin-right":KN,"margin-top":KN,"margin-block":KN,"margin-block-end":KN,"margin-block-start":KN,"margin-inline":KN,"margin-inline-end":KN,"margin-inline-start":KN,padding:KN,"padding-bottom":KN,"padding-left":KN,"padding-right":KN,"padding-top":KN,"padding-block":KN,"padding-block-end":KN,"padding-block-start":KN,"padding-inline":KN,"padding-inline-end":KN,"padding-inline-start":KN,"mask-position-x":KN,"mask-position-y":KN,"mask-size":KN,height:KN,width:KN,"min-height":KN,"max-height":KN,"min-width":KN,"max-width":KN,bottom:KN,left:KN,top:KN,right:KN,inset:KN,"inset-block":KN,"inset-block-end":KN,"inset-block-start":KN,"inset-inline":KN,"inset-inline-end":KN,"inset-inline-start":KN,"box-shadow":KN,"text-shadow":KN,"column-gap":KN,"column-rule":KN,"column-rule-width":KN,"column-width":KN,"font-size":KN,"font-size-delta":KN,"letter-spacing":KN,"text-decoration-thickness":KN,"text-indent":KN,"text-stroke":KN,"text-stroke-width":KN,"word-spacing":KN,motion:KN,"motion-offset":KN,outline:KN,"outline-offset":KN,"outline-width":KN,perspective:KN,"perspective-origin-x":VN,"perspective-origin-y":VN,"transform-origin":VN,"transform-origin-x":VN,"transform-origin-y":VN,"transform-origin-z":VN,"transition-delay":GN,"transition-duration":GN,"vertical-align":KN,"flex-basis":KN,"shape-margin":KN,size:KN,gap:KN,grid:KN,"grid-gap":KN,"row-gap":KN,"grid-row-gap":KN,"grid-column-gap":KN,"grid-template-rows":KN,"grid-template-columns":KN,"grid-auto-rows":KN,"grid-auto-columns":KN,"box-shadow-x":KN,"box-shadow-y":KN,"box-shadow-blur":KN,"box-shadow-spread":KN,"font-line-height":KN,"text-shadow-x":KN,"text-shadow-y":KN,"text-shadow-blur":KN});function JN(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=JN(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=JN(o,t[o],n);else for(var i in t)t[i]=JN(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||qN[e];return!a||0===t&&a===KN?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function QN(e){void 0===e&&(e={});var t=YN(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=JN(r,e[r],t);return e},onChangeValue:function(e,n){return JN(n,e,t)}}}var XN="",ZN="",eM="",tM="",nM=fA&&"ontouchstart"in document.documentElement;if(fA){var rM={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},oM=document.createElement("p").style;for(var iM in rM)if(iM+"Transform"in oM){XN=iM,ZN=rM[iM];break}"Webkit"===XN&&"msHyphens"in oM&&(XN="ms",ZN=rM.ms,tM="edge"),"Webkit"===XN&&"-apple-trailing-word"in oM&&(eM="apple")}var aM=XN,sM=ZN,lM=eM,uM=tM,cM=nM;var dM={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===aM?"-webkit-"+e:sM+e)}},fM={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===aM?sM+"print-"+e:e)}},pM=/[-\s]+(.)?/g;function hM(e,t){return t?t.toUpperCase():""}function mM(e){return e.replace(pM,hM)}function gM(e){return mM("-"+e)}var vM,yM={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===aM){var n="mask-image";if(mM(n)in t)return e;if(aM+gM(n)in t)return sM+e}return e}},bM={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==lM||cM?e:sM+e)}},xM={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:sM+e)}},_M={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:sM+e)}},wM={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===aM||"ms"===aM&&"edge"!==uM?sM+e:e)}},kM={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===aM||"ms"===aM||"apple"===lM?sM+e:e)}},SM={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===aM?"WebkitColumn"+gM(e)in t&&sM+"column-"+e:"Moz"===aM&&("page"+gM(e)in t&&"page-"+e))}},CM={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===aM)return e;var n=e.replace("-inline","");return aM+gM(n)in t&&sM+n}},EM={supportedProperty:function(e,t){return mM(e)in t&&e}},TM={supportedProperty:function(e,t){var n=gM(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:aM+n in t?sM+e:"Webkit"!==aM&&"Webkit"+n in t&&"-webkit-"+e}},AM={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===aM?""+sM+e:e)}},NM={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===aM?sM+"scroll-chaining":e)}},MM={"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"},LM={supportedProperty:function(e,t){var n=MM[e];return!!n&&(aM+gM(n)in t&&sM+n)}},RM={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"},OM=Object.keys(RM),PM=function(e){return sM+e},IM={supportedProperty:function(e,t,n){var r=n.multiple;if(OM.indexOf(e)>-1){var o=RM[e];if(!Array.isArray(o))return aM+gM(o)in t&&sM+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(aM+gM(o[0])in t))return!1;return o.map(PM)}return!1}},zM=[dM,fM,yM,bM,xM,_M,wM,kM,SM,CM,EM,TM,AM,NM,LM,IM],DM=zM.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),jM=zM.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,pE(t.noPrefill)),e},[]),FM={};if(fA){vM=document.createElement("p");var BM=window.getComputedStyle(document.documentElement,"");for(var $M in BM)isNaN($M)||(FM[BM[$M]]=BM[$M]);jM.forEach(function(e){return delete FM[e]})}function HM(e,t){if(void 0===t&&(t={}),!vM)return e;if(null!=FM[e])return FM[e];"transition"!==e&&"transform"!==e||(t[e]=e in vM.style);for(var n=0;n<DM.length&&(FM[e]=DM[n](e,vM.style,t),!FM[e]);n++);try{vM.style[e]=""}catch(e){return!1}return FM[e]}var WM,UM={},KM={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},GM=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function VM(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?HM(t):", "+HM(n);return r||(t||n)}function YM(e,t){var n=t;if(!WM||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=UM[r])return UM[r];try{WM.style[e]=n}catch(e){return UM[r]=!1,!1}if(KM[e])n=n.replace(GM,VM);else if(""===WM.style[e]&&("-ms-flex"===(n=sM+n)&&(WM.style[e]="-ms-flexbox"),WM.style[e]=n,""===WM.style[e]))return UM[r]=!1,!1;return WM.style[e]="",UM[r]=n,UM[r]}function qM(){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=HM(n);i&&i!==n&&(o=!0);var a=!1,s=YM(i,yA(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"===aM?e:"@"+sM+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return YM(t,yA(e))||e}}}function JM(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=gA(e,{},n);return r[TN]=t,r},onProcessStyle:function(e,t){if(EN in t||TN 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[EN]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[TN];i&&(o.style=i(e)||{});var a=o[EN];if(a)for(var s in a)o.prop(s,a[s](e),r)}},PN(),jN(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=UN(e[t]);return e}return UN(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=WN(t);return t===r?e:(n.prop(r,e),null)}},QN(),"undefined"==typeof window?null:qM(),(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 QM(e,t){if(null==e)return{};var n,r,o=_p(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 XM(){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=xp({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}fA&&(WM=document.createElement("p"));var ZM=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},eL=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},tL=function(e,t,n){e.get(t).delete(n)},nL=j.createContext(null);function rL(){return j.useContext(nL)}var oL,iL=wN(JM()),aL=uA(),sL=new Map,lL={disableGeneration:!1,generateClassName:aL,jss:iL,sheetsCache:null,sheetsManager:sL,sheetsRegistry:null},uL=j.createContext(lL);function cL(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=QM(e,["children","injectFirst","disableGeneration"]),s=xp({},j.useContext(uL),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!oL){var l=document.head;oL=document.createComment("mui-inject-first"),l.insertBefore(oL,l.firstChild)}s.jss=wN({plugins:JM().plugins,insertionPoint:oL})}return j.createElement(uL.Provider,{value:s},t)}var dL=-1e9;var fL={};function pL(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=eL(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ZM(o.sheetsManager,i,r,s));var l=xp({},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=eL(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,xp({link:!1},l))).attach(),o.sheetsCache&&ZM(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=SN(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,xp({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=XM({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function hL(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?fL:i,s=QM(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=xp({},o);return Object.keys(i).forEach(function(e){a[e]=GS(a[e],i[e])}),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:dL+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=rL()||a,r=xp({},j.useContext(uL),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 pL(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=eL(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(tL(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=XM({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var mL=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 pA(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new rN;var n=uA();return j.createElement(cL,xp({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",xp({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function gL(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=gL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gL(e))&&(r&&(r+=" "),r+=t);return r}function yL(){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=QM(n,["innerRef"]),a=rL()||e;return j.createElement(t,xp({theme:a,ref:o||r},i))});return Fh(n,t),n}}var bL,xL=yL(),_L=Object.freeze({__proto__:null,ServerStyleSheets:mL,StylesContext:uL,StylesProvider:cL,ThemeProvider:function(e){var t=e.children,n=e.theme,r=rL(),o=j.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):xp({},e,t)}(r,n);return null!=e&&(e[sA]=null!==r),e},[n,r]);return j.createElement(nL.Provider,{value:o},t)},createGenerateClassName:uA,createStyles:function(e){return e},getThemeProps:cA,jssPreset:JM,makeStyles:hL,mergeClasses:XM,sheetsManager:sL,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=QM(r,["name"]),a=o,s=hL("function"==typeof t?function(e){return{root:function(n){return t(xp({theme:e},n))}}}:{root:t},xp({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=QM(t,["children","className","clone","component"]),p=vL(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,xp({className:vL(l.props.className,p)},h));if("function"==typeof l)return l(xp({className:p},h));var m=d||e;return j.createElement(m,xp({ref:r,className:p},h),l)});return Fh(l,e),l}},useTheme:rL,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=QM(t,["defaultTheme","withTheme","name"]),l=a,u=hL(e,xp({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=QM(e,["classes","innerRef"]),c=u(xp({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=rL()||r,a&&(d=cA({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),j.createElement(n,xp({ref:s||t,classes:c},d))});return Fh(c,n),c}},withTheme:xL,withThemeCreator:yL}),wL=g(_L);
|
|
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 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 zL(){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 IL,DL={};function jL(){if(IL)return DL;IL=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=Ik().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(zL()),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 VL=Object.defineProperty,YL=(e,t)=>{for(var n in t)VL(e,n,{get:t[n],enumerable:!0})},qL=(e,t,n)=>((e,t,n)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),JL={};YL(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:()=>zR,doi:()=>IR,dsb:()=>DR,dv:()=>jR,dz:()=>FR,ee:()=>BR,el:()=>$R,en:()=>HR,eo:()=>WR,es:()=>UR,et:()=>KR,eu:()=>GR,fa:()=>VR,ff:()=>YR,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:()=>zM,kea:()=>IM,kk:()=>DM,kkj:()=>jM,kl:()=>FM,km:()=>BM,kn:()=>$M,ko:()=>HM,ks:()=>WM,ksb:()=>UM,ksh:()=>KM,ku:()=>GM,kw:()=>VM,ky:()=>YM,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:()=>zO,pl:()=>IO,prg:()=>DO,ps:()=>jO,pt:()=>FO,pt_PT:()=>BO,rm:()=>$O,ro:()=>HO,rof:()=>WO,ru:()=>UO,rwk:()=>KO,sah:()=>GO,saq:()=>VO,sat:()=>YO,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:()=>zP,ts:()=>IP,tzm:()=>DP,ug:()=>jP,uk:()=>FP,und:()=>BP,ur:()=>$P,uz:()=>HP,ve:()=>WP,vec:()=>UP,vi:()=>KP,vo:()=>GP,vun:()=>VP,wa:()=>YP,wae:()=>qP,wo:()=>JP,xh:()=>QP,xog:()=>XP,yi:()=>ZP,yo:()=>ez,yue:()=>tz,zh:()=>nz,zu:()=>rz});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"},zR=eR,IR=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,VR=ZL,YR=(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,zM=tR,IM=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,VM=(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"},YM=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,zO=ZL,IO=(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,VO=QL,YO=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,zP=QL,IP=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,VP=QL,YP=XL,qP=QL,JP=tR,QP=QL,XP=QL,ZP=eR,ez=tR,tz=tR,nz=tR,rz=ZL,oz={},iz=Array.prototype.slice,az=function(e){return("0"+e.toString()).substr(-2)},sz=function(e){var t=typeof e;return"function"===t||"object"===t},lz=function(e){return"function"===typeof e},uz=function(e){return null!=e},cz=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},dz=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},fz=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},pz=function(e){return!0===e||!1===e},hz=function(e){return null===e},mz=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))))},gz=function(e,t){return lz(e)?e(t):e},vz=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],dz(r)||fz(r)||pz(r)||cz(r)||hz(r)?e[n]=r:(null==e[n]&&(e[n]={}),vz(e[n],r)));return e},yz={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"]},bz={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},xz={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},_z={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},wz=[null,"kb","mb","gb","tb"],kz={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};oz.reset=function(){var e;for(e in kz)this[e]=kz[e]},oz.initializeOptions=function(){var e;for(e in kz)uz(this[e])||(this[e]=kz[e])},oz.initializeOptions(),oz.locales={},oz.locales.get=function(e){var t=this[e]||this[oz.locale]||this.default;return lz(t)&&(t=t(e)),!1===cz(t)&&(t=[t]),t},oz.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&oz.locale&&t.push(oz.locale),oz.fallbacks&&oz.defaultLocale&&t.push(oz.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),oz.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},oz.pluralization={},oz.pluralization.get=function(e){return this[e]||this[oz.locale]||this.default},oz.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},oz.currentLocale=function(){return this.locale||this.defaultLocale},oz.isSet=uz,oz.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(uz(t.defaultValue))return gz(t.defaultValue,e)},oz.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&sz(n))for(;i.length;)if(r=i.shift(),uz(n[r])){o=n[r];break}return o},oz.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()],sz(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&uz(n.defaultValue)&&(a=sz(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},oz.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:yz.meridian},oz.prepareOptions=function(){for(var e,t=iz.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(uz(n[r])||(n[r]=e[r]));return n},oz.createTranslationOptions=function(e,t){var n=[{scope:e}];return uz(t.defaults)&&(n=n.concat(t.defaults)),uz(t.defaultValue)&&n.push({message:t.defaultValue}),n},oz.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(uz(t.scope)?(o=t.scope,n=this.lookup(o,i)):uz(t.message)&&(n=gz(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):cz(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):sz(n)&&uz(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},oz.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=uz(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,"$")},oz.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))},oz.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]'},oz.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},oz.nullPlaceholder=function(){return oz.missingPlaceholder.apply(oz,arguments)},oz.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),bz);var n,r,o=e<0,i=function(e,t){return mz("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)},oz.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),xz),this.toNumber(e,t)},oz.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)}},oz.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},oz.strftime=function(e,t,n){n=this.lookup("date",n);var r=oz.meridian();if(n||(n={}),n=this.prepareOptions(n,yz),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",az(i))).replace("%e",i)).replace("%-d",i)).replace("%H",az(l))).replace("%-H",l)).replace("%k",l)).replace("%I",az(u))).replace("%-I",u)).replace("%l",u)).replace("%m",az(s))).replace("%-m",s)).replace("%M",az(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",az(d))).replace("%-S",d)).replace("%w",o)).replace("%y",az(a))).replace("%-y",az(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},oz.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},oz.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),_z),this.toNumber(e,t)},oz.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."+wz[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)},oz.getFullScope=function(e,t){return t=t||{},cz(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},oz.extend=function(e,t){return void 0===e&&void 0===t?{}:vz(e,t)},oz.t=oz.translate.bind(oz),oz.l=oz.localize.bind(oz),oz.p=oz.pluralize.bind(oz);YL({},{DEFAULT_LANGUAGE:()=>Cz,DEFAULT_LANGUAGE_SHORT:()=>Ez,flattenParams:()=>zz,flattenTranslationsJSON:()=>Nz,format:()=>Iz,formatWithKeys:()=>Dz,getLongLanguageDesc:()=>Pz,getShortLanguageDesc:()=>Oz,parseLangFromUrl:()=>Lz,resolveLocale:()=>Mz,updateLangAttribute:()=>jz});var Sz=[{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"}],Cz="en-US",Ez="en",Tz=["zh-cn","zh-tw","qps-ploc"],Az=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Nz=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),Az(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=Az(r)&&r.value;return o&&(t[n]=o),t},{}):{}),Lz=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},Rz=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(Tz.includes(e.toLocaleLowerCase()))return Sz.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return Sz.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},Mz=(...e)=>{for(const t of e){const e=Rz(t);if(e)return e.short}},Oz=e=>{const t=Rz(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${Ez}'`),Ez)},Pz=e=>{const t=Rz(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${Cz}'`),Cz)},zz=e=>Array.isArray(e[0])?e[0]:e,Iz=(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)},Dz=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),jz=e=>{const t=Oz(e);document.documentElement.setAttribute("lang",t)},Fz=class e{static configure(t,n=Cz){e.translations=t,e.language=Pz(n),e.languageShort=Oz(n),jz(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=oz,oz.missingTranslation=e=>e,oz.defaultSeparator=null,oz.locale=e.language,oz.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];oz.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=Dz(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(Fz,"translations",{}),qL(Fz,"translationsPlurals",{}),qL(Fz,"language"),qL(Fz,"languageShort"),qL(Fz,"onTranslationsChangeListeners",[]),qL(Fz,"i18nProvider"),qL(Fz,"get",(e,...t)=>{var n;const r=zz(t);let o=null!=(n=Fz.translations[e])?n:e;return r.length>0&&(o=Iz(o,...r)),o});var Bz=Fz;var $z=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=Bz.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),Bz.get},Hz=Bz;function Wz({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 Uz(e,t=!0){if(e)return!1;let n=Yi().getTextContent();return t&&(n=n.trim()),""===n}function Kz(e){return()=>function(e){if(!Uz(e,!1))return!1;const t=Yi().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 Gz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Vz({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 Gz(()=>(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 Yz=D.forwardRef(Vz);function qz(e){return e.getEditorState().read(Kz(e.isComposing()))}const Jz=D.forwardRef(Qz);function Qz(e,t){const{placeholder:n,...r}=e,[o]=Tc();return Mc.jsxs(Mc.Fragment,{children:[Mc.jsx(Yz,{editor:o,...r,ref:t}),null!=n&&Mc.jsx(Xz,{editor:o,content:n})]})}function Xz({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>qz(e));return Gz(()=>{function t(){const t=qz(e);n(t)}return t(),Ys(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 Zz=D.createContext(null),eI={didCatch:!1,error:null};class tI extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=eI}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(eI))}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(eI))}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(Zz.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function nI({children:e,onError:t}){return Mc.jsx(tI,{fallback:Mc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const rI={name:"@lexical/react/ReactProvider"};function oI(e){throw new Error(e)}const iI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function aI({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return iI(()=>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 sI({editor:e,ErrorBoundary:t}){return function(e){const t=hu.maybeFromEditor(e);if(t&&t.hasExtensionByName(rI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&oI(`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(aI,{editor:e,ErrorBoundary:t})}function lI(e){return e.getEditorState().read(Kz(e.isComposing()))}function uI(e){iI(()=>Ys(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 cI({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Tc();return uI(r),Mc.jsxs(Mc.Fragment,{children:[e,Mc.jsx(dI,{content:t}),Mc.jsx(sI,{editor:r,ErrorBoundary:n})]})}function dI({content:e}){const[t]=Tc(),n=function(e){const[t,n]=D.useState(()=>lI(e));return iI(()=>{function t(){const t=lI(e);n(t)}return t(),Ys(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Rd();return n?"function"==typeof e?e(r):e:null}const fI=(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"})}),pI=D.forwardRef(fI),hI=(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)"})]}),mI=D.forwardRef(hI),gI=(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"})}),vI=D.forwardRef(gI),yI=(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"})}),bI=D.forwardRef(yI),xI=(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"})}),_I=D.forwardRef(xI),wI=(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"})}),kI=D.forwardRef(wI),SI=(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"})}),CI=D.forwardRef(SI),EI=(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"})}),TI=D.forwardRef(EI),AI=(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"})}),NI=D.forwardRef(AI),LI=(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"})}),RI=D.forwardRef(LI),MI=(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"})}),OI=D.forwardRef(MI),PI=(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"})}),zI=D.forwardRef(PI),II=(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"})}),DI=D.forwardRef(II),jI=(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"})}),FI=D.forwardRef(jI),BI=(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"})}),$I=D.forwardRef(BI),HI=(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"})}),WI=D.forwardRef(HI);var UI,KI,GI={exports:{}},VI={};function YI(e){return YI="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},YI(e)}var qI=(KI||(KI=1,GI.exports=function(){if(UI)return VI;UI=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 VI.Fragment=n,VI.jsx=a,VI.jsxs=a,VI}()),GI.exports);const JI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,QI=[e=>{const t=JI.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 XI(){return qI.jsx(Ad,{matchers:QI})}const ZI=()=>{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(()=>Ys(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 qI.jsx(z_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>qI.jsx(kw,{...e,children:qI.jsx(Nb,{className:"tekPopperMenu",children:qI.jsxs(aD,{direction:"row",children:[qI.jsx(J_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),qI.jsx(Xb,{onClick:l,children:qI.jsx(ok,{})}),qI.jsx(Xb,{onClick:u,children:qI.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(()=>Ys(e.registerCommand(kt,()=>s(),1),e.registerCommand(Ct,()=>s(),1)),[e,s]),t?qI.jsx(sD,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function uD(){return qI.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})=>qI.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})=>qI.jsx(cD,{children:qI.jsx("div",{className:"tek__editor__Wrapper",children:qI.jsx(Ic,{initialConfig:t||dD,children:qI.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,qI.jsx(Hc,{}),qI.jsx(Wc,{}),qI.jsx(uD,{}),qI.jsx(XI,{}),qI.jsx(lD,{}),qI.jsx(ZI,{}),qI.jsx($c,{})]})})})});class pD extends Yo{__hasBorders;static getType(){return"TekCellNode"}static clone(e){return new pD(e.__hasBorders,e.__key)}static importJSON(e){return new pD(void 0===e.hasBorders||e.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 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 vD(e){return e instanceof gD}let yD=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 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=>{if(e instanceof HTMLTableElement&&e.rows.length>0){const t=e.rows[0];if(t.cells.length>0){let e=0;for(let n=0;n<t.cells.length;n++)e+=t.cells[n].getBoundingClientRect().width;if(e>0)return e}}return e.getBoundingClientRect().width||e.offsetWidth},ED=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*CD(t):0,TD=(e,t)=>{const n=CD(t),r=n>0?e/n:0;return`${Math.min(100*r,100).toFixed(2)}%`},AD=e=>e?e.getChildren().filter(e=>bD(e)):[],ND=e=>{let t=!1;return AD(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(li()),t=!0})}),t},LD=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=AD(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 ND(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=ND(o))}return t})()}if(Wr(t)){const e=t.focus.getNode();if(vD(e))return ND(e)}}return!1},RD=e=>{if(e){const t=_D(e);if(vD(t)){const n=e.getParent(),r=AD(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}},MD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),mD(t))return t;return null},OD=e=>{const t=[];return AD(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},PD=(e,t)=>{OD(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},zD=wt("UPDATE_COL_WIDTHS_COMMAND"),ID=wt("BEGIN_COL_RESIZE"),DD=wt("END_COL_RESIZE"),jD=wt("INSERT_TEK_TABLE_COMMAND"),FD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return qI.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},BD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},$D=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,HD=({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=TD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=TD(e,r),s=a.current.nxtColWidth-p,d=TD(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].getBoundingClientRect().width,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=TD(e,d),s=TD(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].getBoundingClientRect().width,60);n.push(TD(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(DD,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(zD,{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=ED(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=CD(o)*f,h=ED(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=BD("tek__leftResizerIndicator","leftGripper");r.innerText=$D(e);let o=null;return t?(o=BD("tek__rightResizerIndicator","rightGripper"),o.innerText=$D(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]),qI.jsx(qI.Fragment,{children:o&&r?o.map(e=>qI.jsx(FD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},WD="TEK_TABLE_RESIZE_NODE";let UD=class e extends Qo{__colWidths;static getType(){return WD}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:WD,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 qI.jsx(HD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const KD=e=>e instanceof UD,GD=({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(KD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),qI.jsx(qI.Fragment,{children:r.map((t,n)=>qI.jsx("col",{span:1,width:t},`${e}.${n}`))})};let VD=class e extends Qo{__colWidths;static getType(){return"TekColGroupNode"}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:"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 qI.jsx(GD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}},YD=class 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 qD=[gD,pD,yD,VD,UD],JD=(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=xD(t);if(n){const e=SD(n),t=_D(n),r=AD(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),JD(o,t)}}},XD=()=>{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}=RD(n);Ji(null),e?.remove()}}},ZD=()=>{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)}}},ej=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);if(vD(n)){const e=AD(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 JD(r,n),t}}return null},tj=tb(Xb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),nj=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Tc(),[o,i]=D.useState(null),a=$z(),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,ZD,t)},[l,t]),f=D.useCallback(e=>{l(e,ej,t)},[l,t]),p=D.useCallback(t=>{l(t,XD,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=_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(),OD(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>Ys(r.registerCommand(kt,()=>(i(null),!1),4)),[r]),qI.jsx(dw,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qI.jsxs("div",{children:[qI.jsx(tj,{size:"small",onClick:u,children:qI.jsx(GL,{height:12})}),qI.jsx(z_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:qI.jsx(Nb,{id:"tekTableMenu",className:"tekPopperMenu",children:qI.jsxs(Bw,{dense:!0,children:[qI.jsx(Kw,{onClick:g,children:a("ToggleBorders")}),qI.jsx(vw,{}),qI.jsx(Kw,{onClick:d,children:a("AddNewRow")}),qI.jsx(Kw,{onClick:f,children:a("AddNewColumn")}),qI.jsx(vw,{}),qI.jsx(Kw,{onClick:p,children:a("DeleteRow")}),qI.jsx(Kw,{onClick:h,children:a("DeleteCol")}),qI.jsx(vw,{}),qI.jsx(Kw,{onClick:m,children:a("DeleteTable")})]})})})]})})},rj=()=>{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(()=>Ys(e.registerCommand(kt,()=>(u(),!1),ci),e.registerCommand(ID,()=>(r(null),!0),4),e.registerCommand(DD,()=>(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 qI.jsx(z_,{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:qI.jsx(nj,{onDeleteAction:c,onAction:d,onClick:f})})},oj=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()})}},ij=()=>{const[e]=Tc(),t=Rd();return D.useEffect(()=>Ys(e.registerMutationListener(pD,t=>{e.update(()=>{oj(t)})}),e.registerMutationListener(yD,t=>{e.update(()=>{oj(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(jD,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new gD(!0,"100%"),n=new VD(e),r=new UD(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(zD,({colWidths:e,nodeKey:t})=>{const n=Hi(t);if(KD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof VD})(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=_D(t),r=MD(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=>LD(e),4),e.registerCommand(Xt,e=>LD(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()}}}})(RD(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=OD(e);n.push(...t)}),Wr(t)){t.getNodes().filter(e=>vD(e)).forEach(t=>{PD(t,e)});const n=t.focus.getNode();if(vD(n))return void PD(n,e)}if(Wr(t)||Kr(t)){const r=new Set(t.getNodes().map(e=>MD(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=OD(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},aj=()=>qI.jsxs(qI.Fragment,{children:[qI.jsx(ij,{}),qI.jsx(rj,{})]}),sj=()=>{const e=Rd(),t=$z();return e?qI.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):qI.jsx("div",{className:"tek__editor__logo",children:qI.jsx(pI,{height:32})})},lj=({showPlaceholder:e})=>qI.jsxs("div",{style:{position:"relative"},children:[qI.jsx(Wz,{}),qI.jsx(cI,{contentEditable:qI.jsx(Jz,{className:"tek__editor__input"}),placeholder:!1!==e?qI.jsx(sj,{}):null,ErrorBoundary:nI})]}),uj=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"}})),cj=["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"],dj="#404040",fj="16px",pj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:cj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),hj=({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(cj[0]),[d,f]=D.useState(fj),[p,h]=D.useState(dj),[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",cj[0]),m=hl(t,"font-size",fj);c(""===p?cj[0]:p),f(""!==m&&m?m:fj),h(hl(t,"color",dj))}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",dj));const t=e.getTextFormatStyle("fontSize",fj),r=e.getTextFormatStyle("fontFamily",cj[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(()=>Ys(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 qI.jsx(pj.Provider,{value:t,children:e})},mj=({children:e})=>qI.jsx(hj,{children:qI.jsx(uj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),gj=({anchorEl:e,children:t})=>{const n=Boolean(e);return qI.jsx(z_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>qI.jsx(kw,{...e,children:qI.jsx(Nb,{className:"tekPopperMenu",children:t})})})},vj=tb(ox)({fontSize:12,textOverflow:"ellipsis"}),yj=({startIcon:e,value:t,onClick:n,compact:r})=>qI.jsx(nk,{title:t,PopperProps:{disablePortal:!0},children:qI.jsx(uw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:qI.jsx(_I,{height:12}),children:r?e:qI.jsx(vj,{children:t})})}),bj=tb(Kw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),xj=[{text:"AlignLeft",align:"left",icon:()=>qI.jsx(vI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>qI.jsx(mI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>qI.jsx(bI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],_j=({compact:e=!1})=>{const[t]=Tc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(pj),i=$z(),a=D.useMemo(()=>xj.find(e=>e.align===o.align)||xj[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 qI.jsx(dw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qI.jsxs("div",{children:[qI.jsx(yj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),qI.jsx(gj,{anchorEl:n,children:qI.jsx(Bw,{dense:!0,children:xj.map(e=>qI.jsxs(bj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[qI.jsx(Ow,{children:e.icon()}),qI.jsx(vj,{children:i(e.text)})]},e.align))})})]})})},wj=({text:e,icon:t})=>qI.jsxs(qI.Fragment,{children:[qI.jsx(Ow,{children:t}),qI.jsx(vj,{children:e})]}),kj=({text:e,icon:t})=>qI.jsxs(qI.Fragment,{children:[qI.jsx(Ow,{children:qI.jsx(vj,{fontWeight:"bold",children:t})}),qI.jsx(vj,{children:e})]}),Sj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],Cj=(e,t,n)=>({icon:qI.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),Ej=({compact:e=!1})=>{const[t]=Tc(),{blockFormat:n}=D.useContext(pj),[r,o]=D.useState(null),i=$z(),a=D.useMemo(()=>{let e={icon:qI.jsx(NI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=Cj("Heading1","H1",i)),"h2"===n.blockType&&(e=Cj("Heading2","H2",i)),"h3"===n.blockType&&(e=Cj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=qI.jsx(CI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=qI.jsx(kI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=qI.jsx(TI,{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 qI.jsx(dw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qI.jsxs("div",{children:[qI.jsx(yj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),qI.jsx(gj,{anchorEl:r,children:qI.jsxs(Bw,{dense:!0,children:[qI.jsx(Kw,{dense:!0,onClick:d,children:qI.jsx(wj,{text:i("Paragraph"),icon:qI.jsx(NI,{height:12})})}),qI.jsx(Kw,{dense:!0,onClick:f,children:qI.jsx(wj,{text:i("Quote"),icon:qI.jsx(CI,{height:12})})}),Sj.map(e=>qI.jsx(Kw,{dense:!0,onClick:()=>{c(e.tag)},children:qI.jsx(kj,{text:i(e.text),icon:e.icon})},e.text)),qI.jsx(vw,{}),qI.jsx(Kw,{dense:!0,onClick:()=>{u("bullet",_c)},children:qI.jsx(wj,{text:i("UnorderedList"),icon:qI.jsx(kI,{height:12})})}),qI.jsx(Kw,{dense:!0,onClick:()=>{u("number",wc)},children:qI.jsx(wj,{text:i("OrderedList"),icon:qI.jsx(TI,{height:12})})})]})})]})})},Tj=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})),Aj=(e,t)=>{const n=n=>{const r=$z();return qI.jsx(nk,{title:r(t),PopperProps:{disablePortal:!0},children:qI.jsx("div",{children:qI.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},Nj=({format:e,icon:t,...n})=>{const r=D.useContext(pj),[o]=Tc(),i=D.useCallback(()=>{o.dispatchCommand(jt,e)},[o,e]);return qI.jsx(Tj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},Lj=Aj(Nj,"Bold"),Rj=()=>qI.jsx(Lj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:qI.jsx(RI,{height:12})}),Mj=wt("APPLY_TEXT_FORMAT"),Oj=wt("CLEAR_TEXT_FORMAT"),Pj=Aj(Tj,"ClearFormat"),zj=()=>{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(Oj,void 0)})},[e]);return qI.jsx(Pj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:qI.jsx(OI,{height:12})})};var Ij,Dj={},jj=function(){if(Ij)return Dj;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"==YI(o=function(e){if("object"!=YI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=YI(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},Dj.Color=u,Dj}();const Fj=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"})),Bj=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"})),$j=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=jy(),a=D.useCallback(e=>{o(e),n(e)},[n]);return qI.jsx(Fj,{children:e.map(e=>qI.jsx(Bj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?qI.jsx(ak,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function Hj(e,t,n){return Math.max(t,Math.min(n,e))}const Wj=(e,t)=>{const n=new jj.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"}},Uj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Hj(e.clientX-n,0,o)/o*100,s=100-Hj(e.clientY-r,0,i)/i*100,l=new jj.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Kj=tb(yw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Gj=tb(Z_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Vj=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"}),qj=tb(yw)({flexDirection:"row",alignItems:"center"}),Jj=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%)"}),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=Wj(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new jj.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Uj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new jj.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=Hj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new jj.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new jj.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 jj.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=Wj(a.current,d.current);m(e)}},[e]);return qI.jsxs(Kj,{children:[s?qI.jsx($j,{palette:r,color:o,onColorChange:x}):qI.jsxs(qI.Fragment,{children:[qI.jsx(Gj,{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=Uj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new jj.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:qI.jsx(Jj,{ref:f,style:{...h,backgroundColor:o}})}),qI.jsx(Vj,{onClick:b})]}),qI.jsxs(qj,{children:[qI.jsx(Yj,{style:{backgroundColor:o}}),qI.jsx(J_,{style:{flex:1},value:u,onChange:_}),qI.jsx(Xb,{onClick:()=>{l(!s)},children:qI.jsx(zI,{height:12})}),qI.jsx(Xb,{onClick:t,children:qI.jsx(ak,{height:12})})]})]})},Xj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Zj=Aj(uw,"Color"),eF=({colorPalette:e=Xj})=>{const[t]=Tc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(pj),i=D.useCallback((e,n)=>{t.update(()=>{const t=so();Wr(t)&&al(t,{color:e})},n),t.dispatchCommand(Mj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return qI.jsx(dw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qI.jsxs("div",{children:[qI.jsx(Zj,{variant:"text",size:"small",endIcon:qI.jsx(_I,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:qI.jsx(Z_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),qI.jsx(gj,{anchorEl:n,children:qI.jsx(Qj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};Aj(Tj,"Export");const tF=({compact:e=!1,fonts:t=cj})=>{const[n]=Tc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(pj),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||cj[0]}),n.dispatchCommand(Mj,{styleKey:"fontFamily",styleValue:t||cj[0]}),n.focus()})},[n]);return qI.jsx(dw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qI.jsxs("div",{children:[qI.jsx(yj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:qI.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),qI.jsx(gj,{anchorEl:r,children:qI.jsx(Bw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>qI.jsx(bj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:qI.jsx(vj,{children:e})},e))})})]})})},nF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],rF=(e,t)=>"px"!==t&&e.endsWith("px")?`${e.slice(0,-2)}${t}`:e,oF=e=>parseInt(e,10),iF=({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=oF(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return qI.jsxs(yw,{direction:"row",children:[qI.jsx(J_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),qI.jsx(Xb,{disabled:!oF(n),onClick:i,children:qI.jsx(ak,{height:12})})]})},aF=({compact:e=!1,unit:t="px"})=>{const[n]=Tc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(pj),a=rF(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(Mj,{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 qI.jsx(dw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qI.jsxs("div",{children:[qI.jsx(yj,{startIcon:e?qI.jsx(vj,{children:a}):void 0,value:a,onClick:s,compact:e}),qI.jsxs(gj,{anchorEl:r,children:[qI.jsx(iF,{fontSize:a,onSelected:d}),qI.jsx(vw,{}),qI.jsx(Bw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:nF.map(e=>qI.jsx(Kw,{"data-font-size":e,onClick:c,children:qI.jsx(vj,{children:rF(e,t)})},e))})]})]})})},sF=Aj(Tj,"InsertTable"),lF=()=>{const[e]=Tc(),t=D.useCallback(()=>{e.dispatchCommand(jD,void 0)},[e]);return qI.jsx(sF,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:qI.jsx(DI,{height:12})})},uF=Aj(Nj,"Italic"),cF=()=>qI.jsx(uF,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:qI.jsx(FI,{height:12})}),dF=Aj(Tj,"InsertHyperlink"),fF=()=>{const[e]=Tc(),{blockFormat:t}=D.useContext(pj),n=D.useCallback(()=>{t.isLink?e.dispatchCommand(Au,null):e.dispatchCommand(Au,rD("https://"))},[e,t.isLink]);return qI.jsx(dF,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:qI.jsx($I,{height:12})})};Aj(Tj,"Toggle");const pF=Aj(Nj,"Underline"),hF=()=>qI.jsx(pF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:qI.jsx(WI,{height:12})}),mF=()=>qI.jsx(vw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var gF={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=="}},vF={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)"}},yF={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=="}},bF={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=="}},xF={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=="}},_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:"열 추가",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=="}},kF={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=="}},SF={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=="}},CF={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=="}},EF={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=="}},TF={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=="}},AF={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 NF={de:gF,es:yF,en:vF,fr:bF,it:xF,ja:_F,ko:wF,nl:kF,pl:SF,pt:CF,ru:EF,sv:TF,tr:AF,"de-de":gF,"es-es":yF,"en-us":vF,"fr-fr":bF,"it-it":xF,"ja-jp":_F,"ko-kr":wF,"nl-nl":kF,"pl-pl":SF,"pt-br":CF,"ru-ru":EF,"sv-se":TF,"tr-tr":AF,"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 LF(e,t){return e.getEditorState().read(()=>{const e=Hi(t);return null!==e&&e.isSelected()})}function RF(e){const[t]=Tc(),[n,r]=D.useState(()=>LF(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(LF(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 MF,OF={};var PF=function(){if(MF)return OF;MF=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},OF.Color=u,OF}();function zF(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 DF,jF;var FF=function(){if(jF)return DF;jF=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},DF=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},DF}();let BF=[];const $F=new FF.EventEmitter;$F.isSelected=e=>{const t=e?.qDef?.cId;return-1!==BF.indexOf(t)},$F.setSelected=e=>{BF!==e&&(BF=e,$F.emit("change"))};function HF({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Tc(),s=Rd(),[l,u,c]=RF(n),d=D.useRef(null),[f,p]=D.useState(t),[h,m]=D.useState(t);f!==t&&(p(t),m(t));const g=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]),v=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 PF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>Ys(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:"");m(t=>({...t,...e}))}}else if(l&&Kr(r)&&IF(n,r)&&d.current){const e=zF(d.current.style);m(((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(Mj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&v.expressionColor)return!1;if(d.current&&l){const t=so();if(IF(n,t)){const t=zF(d.current?.style);t[e.styleKey]=e.styleValue,m(t)}}}),!1),ci),a.registerCommand(Oj,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=so();if(IF(n,e)){const e={};v.expressionColor&&(e.color=v.expressionColor),m(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())}),$F.setSelected(e)}),!1),1)),[a,u,c,l,n,v]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&$F.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,h)})},[h,a,n]);const y=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:{...g,...h,color:v.expressionColor?v.expressionColor:h.color},onClick:y,ref:d,id:e,children:v.value})}const WF="qlik.expression.node";class UF extends YD{__expressionId;static getType(){return WF}static clone(e){return new UF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new UF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:WF,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(HF,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function KF(e){return e instanceof UF}const GF="ImageNode",VF=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()},qF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===GF)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)qF(e,t,n);return{imageIds:t,newPropertyImages:n}},JF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function QF(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=qF(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 XF(){const[e]=Tc(),t=Rd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&QF(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 ZF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Hi(e);if(KF(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 eB(){const{layout:e,emitter:t,interactionState:n}=D.useContext(B),[r]=Tc(),o=D.useRef(new ZF),i=Rd(),a=n?.edit&&e?.permissions?.update;return D.useEffect(()=>{const e=r.registerMutationListener(UF,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(UF),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 UF(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=>{KF(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 tB=/"/g;function nB(){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(tB,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function rB(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 oB,iB="top",aB="top-right",sB="right",lB="bottom-right",uB="bottom",cB="bottom-left",dB="left",fB="top-left";rB(rB(rB(rB(rB(rB(rB(rB(rB(rB(oB={},"equal-equal",[iB,uB]),"equal-higher",[uB,lB]),"equal-lower",[iB,aB]),"equal-void",[iB,uB]),"higher-equal",[dB,cB,iB,aB]),"higher-higher-acute",[uB,cB,dB,aB]),"higher-higher-obtuse",[uB,iB]),"higher-lower-negative",[iB,aB,sB]),"higher-lower-positive",[uB,cB,dB]),"higher-void",[iB]),rB(rB(rB(rB(rB(rB(rB(rB(rB(rB(oB,"lower-equal",[iB]),"lower-higher-negative",[iB,fB]),"lower-higher-positive",[lB]),"lower-lower-acute",[iB,fB,dB,aB,sB]),"lower-lower-obtuse",[iB,uB]),"lower-void",[iB]),"void-equal",[iB]),"void-higher",[iB,uB]),"void-lower",[iB,uB,dB]),"void-void",[iB]),rB(oB,"unclassified",[iB,uB,sB,dB,aB,lB,cB,fB]);var pB,hB,mB=["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"],gB=["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 vB=function(){if(hB)return pB;hB=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 pB=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},pB}();function yB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(vB);var _B=.7,wB=1/_B,kB="\\s*([+-]?\\d+)\\s*",SB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",CB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EB=/^#([0-9a-f]{3,8})$/,TB=new RegExp(`^rgb\\(${kB},${kB},${kB}\\)$`),AB=new RegExp(`^rgb\\(${CB},${CB},${CB}\\)$`),NB=new RegExp(`^rgba\\(${kB},${kB},${kB},${SB}\\)$`),LB=new RegExp(`^rgba\\(${CB},${CB},${CB},${SB}\\)$`),RB=new RegExp(`^hsl\\(${SB},${CB},${CB}\\)$`),MB=new RegExp(`^hsla\\(${SB},${CB},${CB},${SB}\\)$`),OB={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 PB(){return this.rgb().formatHex()}function zB(){return this.rgb().formatRgb()}function IB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=EB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?DB(t):3===n?new $B(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?jB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?jB(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=TB.exec(e))?new $B(t[1],t[2],t[3],1):(t=AB.exec(e))?new $B(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=NB.exec(e))?jB(t[1],t[2],t[3],t[4]):(t=LB.exec(e))?jB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=RB.exec(e))?VB(t[1],t[2]/100,t[3]/100,1):(t=MB.exec(e))?VB(t[1],t[2]/100,t[3]/100,t[4]):OB.hasOwnProperty(e)?DB(OB[e]):"transparent"===e?new $B(NaN,NaN,NaN,0):null}function DB(e){return new $B(e>>16&255,e>>8&255,255&e,1)}function jB(e,t,n,r){return r<=0&&(e=t=n=NaN),new $B(e,t,n,r)}function FB(e){return e instanceof xB||(e=IB(e)),e?new $B((e=e.rgb()).r,e.g,e.b,e.opacity):new $B}function BB(e,t,n,r){return 1===arguments.length?FB(e):new $B(e,t,n,null==r?1:r)}function $B(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function HB(){return`#${GB(this.r)}${GB(this.g)}${GB(this.b)}`}function WB(){const e=UB(this.opacity);return`${1===e?"rgb(":"rgba("}${KB(this.r)}, ${KB(this.g)}, ${KB(this.b)}${1===e?")":`, ${e})`}`}function UB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function KB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function GB(e){return((e=KB(e))<16?"0":"")+e.toString(16)}function VB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qB(e,t,n,r)}function YB(e){if(e instanceof qB)return new qB(e.h,e.s,e.l,e.opacity);if(e instanceof xB||(e=IB(e)),!e)return new qB;if(e instanceof qB)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 qB(a,s,l,e.opacity)}function qB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function JB(e){return(e=(e||0)%360)<0?e+360:e}function QB(e){return Math.max(0,Math.min(1,e||0))}function XB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yB(xB,IB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PB,formatHex:PB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return YB(this).formatHsl()},formatRgb:zB,toString:zB}),yB($B,BB,bB(xB,{brighter(e){return e=null==e?wB:Math.pow(wB,e),new $B(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_B:Math.pow(_B,e),new $B(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $B(KB(this.r),KB(this.g),KB(this.b),UB(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:HB,formatHex:HB,formatHex8:function(){return`#${GB(this.r)}${GB(this.g)}${GB(this.b)}${GB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:WB,toString:WB})),yB(qB,function(e,t,n,r){return 1===arguments.length?YB(e):new qB(e,t,n,null==r?1:r)},bB(xB,{brighter(e){return e=null==e?wB:Math.pow(wB,e),new qB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_B:Math.pow(_B,e),new qB(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 $B(XB(e>=240?e-240:e+120,o,r),XB(e,o,r),XB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qB(JB(this.h),QB(this.s),QB(this.l),UB(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=UB(this.opacity);return`${1===e?"hsl(":"hsla("}${JB(this.h)}, ${100*QB(this.s)}%, ${100*QB(this.l)}%${1===e?")":`, ${e})`}`}}));const ZB=Math.PI/180,e$=180/Math.PI,t$=.96422,n$=.82521,r$=4/29,o$=6/29,i$=3*o$*o$,a$=o$*o$*o$;function s$(e){if(e instanceof l$)return new l$(e.l,e.a,e.b,e.opacity);if(e instanceof p$)return h$(e);e instanceof $B||(e=FB(e));var t,n,r=f$(e.r),o=f$(e.g),i=f$(e.b),a=u$((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=u$((.4360747*r+.3850649*o+.1430804*i)/t$),n=u$((.0139322*r+.0971045*o+.7141733*i)/n$)),new l$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function l$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function u$(e){return e>a$?Math.pow(e,1/3):e/i$+r$}function c$(e){return e>o$?e*e*e:i$*(e-r$)}function d$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function f$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function p$(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function h$(e){if(isNaN(e.h))return new l$(e.l,0,0,e.opacity);var t=e.h*ZB;return new l$(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yB(l$,function(e,t,n,r){return 1===arguments.length?s$(e):new l$(e,t,n,null==r?1:r)},bB(xB,{brighter(e){return new l$(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new l$(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 $B(d$(3.1338561*(t=t$*c$(t))-1.6168667*(e=1*c$(e))-.4906146*(n=n$*c$(n))),d$(-.9787684*t+1.9161415*e+.033454*n),d$(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),yB(p$,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof p$)return new p$(e.h,e.c,e.l,e.opacity);if(e instanceof l$||(e=s$(e)),0===e.a&&0===e.b)return new p$(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*e$;return new p$(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new p$(e,t,n,null==r?1:r)},bB(xB,{brighter(e){return new p$(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new p$(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return h$(this).rgb()}}));var m$=e=>()=>e;function g$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):m$(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?g$: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):m$(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=BB(e)).r,(t=BB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=g$(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 v$,y$="center",b$="bottom";function x$(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 _$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=k$)):void 0===t&&(t=w$);for(var n,r,o,i,a,s=new E$(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 E$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(C$)}function w$(e){return e.children}function k$(e){return Array.isArray(e)?e[1]:null}function S$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function C$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function E$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:y$,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:y$,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:y$,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:y$},{key:"DataRangeIncludingZero",alignment:b$},{key:"LimitedData",alignment:b$},{key:"NegativeOrZeroValues",alignment:b$}].reduce(function(e,t){return e[t.key]=t,e},{}),E$.prototype=_$.prototype={constructor:E$,count:function(){return this.eachAfter(x$)},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 _$(this).eachBefore(S$)},[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)}},v$=function(e){
|
|
108
|
+
*/function kL(){if(bL)return aA;bL=1,Object.defineProperty(aA,"__esModule",{value:!0}),aA.default=function(t){return(0,e.createStyles)(t)};var e=wL;return aA}var SL,CL,EL={},TL={};function AL(){if(SL)return TL;SL=1;var e=mb();Object.defineProperty(TL,"__esModule",{value:!0}),TL.default=void 0;var t=(0,e(nA()).default)();return TL.default=t,TL}function NL(){if(CL)return EL;CL=1;var e=mb();Object.defineProperty(EL,"__esModule",{value:!0}),EL.default=void 0;var t=e(Gb()),n=wL,r=e(AL());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 EL.default=o,EL}var ML,LL,RL={},OL={};function PL(){if(ML)return OL;ML=1;var e=mb();Object.defineProperty(OL,"__esModule",{value:!0}),OL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},OL.getUnit=n,OL.toUnitless=r,OL.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}},OL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},OL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},OL.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(yC());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return OL}function IL(){if(LL)return RL;LL=1;var e=mb();Object.defineProperty(RL,"__esModule",{value:!0}),RL.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(Gb()),n=sC,r=PL();return RL}var zL,DL={};function jL(){if(zL)return DL;zL=1;var e=mb();Object.defineProperty(DL,"__esModule",{value:!0}),DL.default=void 0;var t=e(Gb()),n=wL,r=e(AL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return DL.default=o,DL}var FL,BL={};function $L(){if(FL)return BL;FL=1;var e=mb();Object.defineProperty(BL,"__esModule",{value:!0}),BL.default=function(){return(0,t.useTheme)()||n.default};var t=wL;e(C());var n=e(AL());return BL}var HL,WL={};function UL(){if(HL)return WL;HL=1;var e=mb();Object.defineProperty(WL,"__esModule",{value:!0}),WL.default=void 0;var t=e(Gb()),n=wL,r=e(AL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return WL.default=o,WL}var KL,GL,VL={};function YL(){if(KL)return VL;KL=1;var e=mb();Object.defineProperty(VL,"__esModule",{value:!0}),VL.default=void 0;var t=wL,n=e(AL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return VL.default=r,VL}function qL(){return GL||(GL=1,function(e){var t=mb(),n=(jS||(jS=1,function(e){var t=HS().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}(BS)),BS.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=lC();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(nA()),a=t(iA()),s=t(kL()),l=t(NL()),u=t(IL()),c=t(jL()),d=QT();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($L()),p=t(UL()),h=t(YL()),m=wL}(FS)),FS}var JL=qL();JL.alpha(hS.GREYSCALE_0,.05),JL.alpha(hS.GREEN_PALE,.5),JL.alpha(hS.BLUE_PALE,.5),JL.alpha(hS.GREEN_PALE,.5),JL.alpha(hS.BLUE_PALE,.5),JL.alpha(hS.GREEN_PALE,.5),JL.alpha(hS.BLUE_PALE,.5),JL.alpha(hS.GREEN_PALE,.5),JL.alpha(hS.BLUE_PALE,.5),JL.alpha(hS.GREEN_PALE,.5),JL.alpha(hS.BLUE_PALE,.5);const QL=(e,t)=>Kc.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:Kc.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"})}),XL=D.forwardRef(QL);var ZL=Object.defineProperty,eR=(e,t)=>{for(var n in t)ZL(e,n,{get:t[n],enumerable:!0})},tR=(e,t,n)=>((e,t,n)=>t in e?ZL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),nR={};eR(nR,{af:()=>uR,ak:()=>cR,am:()=>dR,an:()=>fR,ar:()=>pR,ars:()=>hR,as:()=>mR,asa:()=>gR,ast:()=>vR,az:()=>yR,bal:()=>bR,be:()=>xR,bem:()=>_R,bez:()=>wR,bg:()=>kR,bho:()=>SR,blo:()=>CR,bm:()=>ER,bn:()=>TR,bo:()=>AR,br:()=>NR,brx:()=>MR,bs:()=>LR,ca:()=>RR,ce:()=>OR,ceb:()=>PR,cgg:()=>IR,chr:()=>zR,ckb:()=>DR,cs:()=>jR,cy:()=>FR,da:()=>BR,de:()=>$R,doi:()=>HR,dsb:()=>WR,dv:()=>UR,dz:()=>KR,ee:()=>GR,el:()=>VR,en:()=>YR,eo:()=>qR,es:()=>JR,et:()=>QR,eu:()=>XR,fa:()=>ZR,ff:()=>eO,fi:()=>tO,fil:()=>nO,fo:()=>rO,fr:()=>oO,fur:()=>iO,fy:()=>aO,ga:()=>sO,gd:()=>lO,gl:()=>uO,gsw:()=>cO,gu:()=>dO,guw:()=>fO,gv:()=>pO,ha:()=>hO,haw:()=>mO,he:()=>gO,hi:()=>vO,hnj:()=>yO,hr:()=>bO,hsb:()=>xO,hu:()=>_O,hy:()=>wO,ia:()=>kO,id:()=>SO,ig:()=>CO,ii:()=>EO,io:()=>TO,is:()=>AO,it:()=>NO,iu:()=>MO,ja:()=>LO,jbo:()=>RO,jgo:()=>OO,jmc:()=>PO,jv:()=>IO,jw:()=>zO,ka:()=>DO,kab:()=>jO,kaj:()=>FO,kcg:()=>BO,kde:()=>$O,kea:()=>HO,kk:()=>WO,kkj:()=>UO,kl:()=>KO,km:()=>GO,kn:()=>VO,ko:()=>YO,ks:()=>qO,ksb:()=>JO,ksh:()=>QO,ku:()=>XO,kw:()=>ZO,ky:()=>eP,lag:()=>tP,lb:()=>nP,lg:()=>rP,lij:()=>oP,lkt:()=>iP,ln:()=>aP,lo:()=>sP,lt:()=>lP,lv:()=>uP,mas:()=>cP,mg:()=>dP,mgo:()=>fP,mk:()=>pP,ml:()=>hP,mn:()=>mP,mo:()=>gP,mr:()=>vP,ms:()=>yP,mt:()=>bP,my:()=>xP,nah:()=>_P,naq:()=>wP,nb:()=>kP,nd:()=>SP,ne:()=>CP,nl:()=>EP,nn:()=>TP,nnh:()=>AP,no:()=>NP,nqo:()=>MP,nr:()=>LP,nso:()=>RP,ny:()=>OP,nyn:()=>PP,om:()=>IP,or:()=>zP,os:()=>DP,osa:()=>jP,pa:()=>FP,pap:()=>BP,pcm:()=>$P,pl:()=>HP,prg:()=>WP,ps:()=>UP,pt:()=>KP,pt_PT:()=>GP,rm:()=>VP,ro:()=>YP,rof:()=>qP,ru:()=>JP,rwk:()=>QP,sah:()=>XP,saq:()=>ZP,sat:()=>eI,sc:()=>tI,scn:()=>nI,sd:()=>rI,sdh:()=>oI,se:()=>iI,seh:()=>aI,ses:()=>sI,sg:()=>lI,sh:()=>uI,shi:()=>cI,si:()=>dI,sk:()=>fI,sl:()=>pI,sma:()=>hI,smi:()=>mI,smj:()=>gI,smn:()=>vI,sms:()=>yI,sn:()=>bI,so:()=>xI,sq:()=>_I,sr:()=>wI,ss:()=>kI,ssy:()=>SI,st:()=>CI,su:()=>EI,sv:()=>TI,sw:()=>AI,syr:()=>NI,ta:()=>MI,te:()=>LI,teo:()=>RI,th:()=>OI,ti:()=>PI,tig:()=>II,tk:()=>zI,tl:()=>DI,tn:()=>jI,to:()=>FI,tpi:()=>BI,tr:()=>$I,ts:()=>HI,tzm:()=>WI,ug:()=>UI,uk:()=>KI,und:()=>GI,ur:()=>VI,uz:()=>YI,ve:()=>qI,vec:()=>JI,vi:()=>QI,vo:()=>XI,vun:()=>ZI,wa:()=>ez,wae:()=>tz,wo:()=>nz,xh:()=>rz,xog:()=>oz,yi:()=>iz,yo:()=>az,yue:()=>sz,zh:()=>lz,zu:()=>uz});var rR=(e,t)=>t?"other":1==e?"one":"other",oR=(e,t)=>t?"other":0==e||1==e?"one":"other",iR=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",aR=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},sR=(e,t)=>"other",lR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",uR=rR,cR=oR,dR=iR,fR=rR,pR=(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"},hR=(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"},mR=(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",gR=rR,vR=aR,yR=(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"},bR=(e,t)=>1==e?"one":"other",xR=(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"},_R=rR,wR=rR,kR=rR,SR=oR,CR=(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"},ER=sR,TR=(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",AR=sR,NR=(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"},MR=rR,LR=(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"},RR=(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"},OR=rR,PR=(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"},IR=rR,zR=rR,DR=rR,jR=(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"},FR=(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",BR=(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"},$R=aR,HR=iR,WR=(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"},UR=rR,KR=sR,GR=rR,VR=rR,YR=(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"},qR=rR,JR=(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"},QR=aR,XR=rR,ZR=iR,eO=(e,t)=>t?"other":e>=0&&e<2?"one":"other",tO=aR,nO=(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"},rO=rR,oO=(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"},iO=rR,aO=aR,sO=(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"},lO=(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"},uO=aR,cO=rR,dO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",fO=oR,pO=(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"},hO=rR,mO=rR,gO=(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"},vO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",yO=sR,bO=(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"},xO=(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"},_O=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",wO=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",kO=aR,SO=sR,CO=sR,EO=sR,TO=aR,AO=(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"},NO=(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"},MO=lR,LO=sR,RO=sR,OO=rR,PO=rR,IO=sR,zO=sR,DO=(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"},jO=(e,t)=>t?"other":e>=0&&e<2?"one":"other",FO=rR,BO=rR,$O=sR,HO=sR,WO=(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"},UO=rR,KO=rR,GO=sR,VO=iR,YO=sR,qO=rR,JO=rR,QO=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",XO=rR,ZO=(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"},eP=rR,tP=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},nP=rR,rP=rR,oP=(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"},iP=sR,aP=oR,sP=(e,t)=>t&&1==e?"one":"other",lP=(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"},uP=(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"},cP=rR,dP=oR,fP=rR,pP=(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"},hP=rR,mP=rR,gP=(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"},vP=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",yP=(e,t)=>t&&1==e?"one":"other",bP=(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"},xP=sR,_P=rR,wP=lR,kP=rR,SP=rR,CP=(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"},EP=aR,TP=rR,AP=rR,NP=rR,MP=sR,LP=rR,RP=oR,OP=rR,PP=rR,IP=rR,zP=(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"},DP=rR,jP=sR,FP=oR,BP=rR,$P=iR,HP=(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"},WP=(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"},UP=rR,KP=(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"},GP=(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"},VP=rR,YP=(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"},qP=rR,JP=(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"},QP=rR,XP=sR,ZP=rR,eI=lR,tI=(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"},nI=(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"},rI=rR,oI=rR,iI=lR,aI=rR,sI=sR,lI=sR,uI=(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"},cI=(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"},dI=(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"},fI=(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"},pI=(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"},hI=lR,mI=lR,gI=lR,vI=lR,yI=lR,bI=rR,xI=rR,_I=(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"},wI=(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"},kI=rR,SI=rR,CI=rR,EI=sR,TI=(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"},AI=aR,NI=rR,MI=rR,LI=rR,RI=rR,OI=sR,PI=oR,II=rR,zI=(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"},DI=(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"},jI=rR,FI=sR,BI=sR,$I=rR,HI=rR,WI=(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"},UI=rR,KI=(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"},GI=sR,VI=aR,YI=rR,qI=rR,JI=(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"},QI=(e,t)=>t&&1==e?"one":"other",XI=rR,ZI=rR,ez=oR,tz=rR,nz=sR,rz=rR,oz=rR,iz=aR,az=sR,sz=sR,lz=sR,uz=iR,cz={},dz=Array.prototype.slice,fz=function(e){return("0"+e.toString()).substr(-2)},pz=function(e){var t=typeof e;return"function"===t||"object"===t},hz=function(e){return"function"===typeof e},mz=function(e){return null!=e},gz=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},vz=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},yz=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},bz=function(e){return!0===e||!1===e},xz=function(e){return null===e},_z=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))))},wz=function(e,t){return hz(e)?e(t):e},kz=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],vz(r)||yz(r)||bz(r)||gz(r)||xz(r)?e[n]=r:(null==e[n]&&(e[n]={}),kz(e[n],r)));return e},Sz={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"]},Cz={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},Ez={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},Tz={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},Az=[null,"kb","mb","gb","tb"],Nz={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};cz.reset=function(){var e;for(e in Nz)this[e]=Nz[e]},cz.initializeOptions=function(){var e;for(e in Nz)mz(this[e])||(this[e]=Nz[e])},cz.initializeOptions(),cz.locales={},cz.locales.get=function(e){var t=this[e]||this[cz.locale]||this.default;return hz(t)&&(t=t(e)),!1===gz(t)&&(t=[t]),t},cz.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&cz.locale&&t.push(cz.locale),cz.fallbacks&&cz.defaultLocale&&t.push(cz.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),cz.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},cz.pluralization={},cz.pluralization.get=function(e){return this[e]||this[cz.locale]||this.default},cz.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},cz.currentLocale=function(){return this.locale||this.defaultLocale},cz.isSet=mz,cz.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(mz(t.defaultValue))return wz(t.defaultValue,e)},cz.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&pz(n))for(;i.length;)if(r=i.shift(),mz(n[r])){o=n[r];break}return o},cz.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()],pz(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&mz(n.defaultValue)&&(a=pz(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},cz.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:Sz.meridian},cz.prepareOptions=function(){for(var e,t=dz.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(mz(n[r])||(n[r]=e[r]));return n},cz.createTranslationOptions=function(e,t){var n=[{scope:e}];return mz(t.defaults)&&(n=n.concat(t.defaults)),mz(t.defaultValue)&&n.push({message:t.defaultValue}),n},cz.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(mz(t.scope)?(o=t.scope,n=this.lookup(o,i)):mz(t.message)&&(n=wz(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):gz(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):pz(n)&&mz(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},cz.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=mz(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,"$")},cz.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))},cz.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]'},cz.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},cz.nullPlaceholder=function(){return cz.missingPlaceholder.apply(cz,arguments)},cz.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),Cz);var n,r,o=e<0,i=function(e,t){return _z("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)},cz.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),Ez),this.toNumber(e,t)},cz.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)}},cz.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},cz.strftime=function(e,t,n){n=this.lookup("date",n);var r=cz.meridian();if(n||(n={}),n=this.prepareOptions(n,Sz),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",fz(i))).replace("%e",i)).replace("%-d",i)).replace("%H",fz(l))).replace("%-H",l)).replace("%k",l)).replace("%I",fz(u))).replace("%-I",u)).replace("%l",u)).replace("%m",fz(s))).replace("%-m",s)).replace("%M",fz(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",fz(d))).replace("%-S",d)).replace("%w",o)).replace("%y",fz(a))).replace("%-y",fz(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},cz.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},cz.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),Tz),this.toNumber(e,t)},cz.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."+Az[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)},cz.getFullScope=function(e,t){return t=t||{},gz(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},cz.extend=function(e,t){return void 0===e&&void 0===t?{}:kz(e,t)},cz.t=cz.translate.bind(cz),cz.l=cz.localize.bind(cz),cz.p=cz.pluralize.bind(cz);eR({},{DEFAULT_LANGUAGE:()=>Lz,DEFAULT_LANGUAGE_SHORT:()=>Rz,flattenParams:()=>$z,flattenTranslationsJSON:()=>Iz,format:()=>Hz,formatWithKeys:()=>Wz,getLongLanguageDesc:()=>Bz,getShortLanguageDesc:()=>Fz,parseLangFromUrl:()=>zz,resolveLocale:()=>jz,updateLangAttribute:()=>Uz});var Mz=[{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"}],Lz="en-US",Rz="en",Oz=["zh-cn","zh-tw","qps-ploc"],Pz=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Iz=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),Pz(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=Pz(r)&&r.value;return o&&(t[n]=o),t},{}):{}),zz=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},Dz=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(Oz.includes(e.toLocaleLowerCase()))return Mz.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return Mz.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},jz=(...e)=>{for(const t of e){const e=Dz(t);if(e)return e.short}},Fz=e=>{const t=Dz(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${Rz}'`),Rz)},Bz=e=>{const t=Dz(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${Lz}'`),Lz)},$z=e=>Array.isArray(e[0])?e[0]:e,Hz=(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)},Wz=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),Uz=e=>{const t=Fz(e);document.documentElement.setAttribute("lang",t)},Kz=class e{static configure(t,n=Lz){e.translations=t,e.language=Bz(n),e.languageShort=Fz(n),Uz(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=cz,cz.missingTranslation=e=>e,cz.defaultSeparator=null,cz.locale=e.language,cz.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];cz.pluralization[e.language]=e=>{try{const t=nR[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=Wz(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))}}};tR(Kz,"translations",{}),tR(Kz,"translationsPlurals",{}),tR(Kz,"language"),tR(Kz,"languageShort"),tR(Kz,"onTranslationsChangeListeners",[]),tR(Kz,"i18nProvider"),tR(Kz,"get",(e,...t)=>{var n;const r=$z(t);let o=null!=(n=Kz.translations[e])?n:e;return r.length>0&&(o=Hz(o,...r)),o});var Gz=Kz;var Vz=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=Gz.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),Gz.get},Yz=Gz;function qz({defaultSelection:e}){const[t]=Bc();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 Jz(e,t=!0){if(e)return!1;let n=ia().getTextContent();return t&&(n=n.trim()),""===n}function Qz(e){return()=>function(e){if(!Jz(e,!1))return!1;const t=ia().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(li(n))return!1;if(ii(n)){if(!xi(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!$r(t[e]))return!1}}return!0}(e)}const Xz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Zz({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 Xz(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Kc.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 eD=D.forwardRef(Zz);function tD(e){return e.getEditorState().read(Qz(e.isComposing()))}const nD=D.forwardRef(rD);function rD(e,t){const{placeholder:n,...r}=e,[o]=Bc();return Kc.jsxs(Kc.Fragment,{children:[Kc.jsx(eD,{editor:o,...r,ref:t}),null!=n&&Kc.jsx(oD,{editor:o,content:n})]})}function oD({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>tD(e));return Xz(()=>{function t(){const t=tD(e);n(t)}return t(),ll(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:Kc.jsx("div",{"aria-hidden":!0,children:i})}const iD=D.createContext(null),aD={didCatch:!1,error:null};class sD extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=aD}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(aD))}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(aD))}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(iD.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function lD({children:e,onError:t}){return Kc.jsx(sD,{fallback:Kc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const uD={name:"@lexical/react/ReactProvider"};function cD(e){throw new Error(e)}const dD="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function fD({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return dD(()=>e.registerDecoratorListener(e=>{fx.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=Kc.jsx(t,{onError:t=>e._onError(t),children:Kc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(fx.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function pD({editor:e,ErrorBoundary:t}){return function(e){const t=Eu.maybeFromEditor(e);if(t&&t.hasExtensionByName(uD.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&cD(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Kc.jsx(fD,{editor:e,ErrorBoundary:t})}function hD(e){return e.getEditorState().read(Qz(e.isComposing()))}function mD(e){dD(()=>ll(Lf(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=go();if(Qr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if($r(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()),$r(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 gD({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Bc();return mD(r),Kc.jsxs(Kc.Fragment,{children:[e,Kc.jsx(vD,{content:t}),Kc.jsx(pD,{editor:r,ErrorBoundary:n})]})}function vD({content:e}){const[t]=Bc(),n=function(e){const[t,n]=D.useState(()=>hD(e));return dD(()=>{function t(){const t=hD(e);n(t)}return t(),ll(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=zf();return n?"function"==typeof e?e(r):e:null}const yD=(e,t)=>Kc.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:Kc.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"})}),bD=D.forwardRef(yD),xD=(e,t)=>Kc.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:[Kc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Kc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),_D=D.forwardRef(xD),wD=(e,t)=>Kc.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:Kc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),kD=D.forwardRef(wD),SD=(e,t)=>Kc.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:Kc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),CD=D.forwardRef(SD),ED=(e,t)=>Kc.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:Kc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),TD=D.forwardRef(ED),AD=(e,t)=>Kc.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:Kc.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"})}),ND=D.forwardRef(AD),MD=(e,t)=>Kc.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:Kc.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"})}),LD=D.forwardRef(MD),RD=(e,t)=>Kc.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:Kc.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"})}),OD=D.forwardRef(RD),PD=(e,t)=>Kc.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:Kc.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"})}),ID=D.forwardRef(PD),zD=(e,t)=>Kc.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:Kc.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"})}),DD=D.forwardRef(zD),jD=(e,t)=>Kc.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:Kc.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"})}),FD=D.forwardRef(jD),BD=(e,t)=>Kc.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:Kc.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"})}),$D=D.forwardRef(BD),HD=(e,t)=>Kc.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:Kc.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"})}),WD=D.forwardRef(HD),UD=(e,t)=>Kc.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:Kc.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"})}),KD=D.forwardRef(UD),GD=(e,t)=>Kc.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:Kc.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"})}),VD=D.forwardRef(GD),YD=(e,t)=>Kc.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:Kc.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"})}),qD=D.forwardRef(YD);var JD,QD,XD={exports:{}},ZD={};function ej(e){return ej="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},ej(e)}var tj=(QD||(QD=1,XD.exports=function(){if(JD)return ZD;JD=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 ZD.Fragment=n,ZD.jsx=a,ZD.jsxs=a,ZD}()),XD.exports);const nj=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,rj=[e=>{const t=nj.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 oj(){return tj.jsx(Of,{matchers:rj})}const ij=()=>{const[e]=Bc(),t=zf(),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(()=>ll(e.registerMutationListener(Lu,e=>{n(e)}),e.registerMutationListener(ju,e=>{n(e)}),e.registerCommand(At,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=go();let t;if(Qr(e)&&(t=e.focus.getNode().getParent()),Zr(e)&&(t=e.getNodes()[0]),Bu(t)||Du(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),_i)),[e,n]),null};function aj(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?hl(n)?r:o:hl(t)?r:o}const sj=new Set(["http:","https:","mailto:","sms:","tel:"]),lj=e=>{const t=e;return t.password="",t.username="",t};function uj(e){try{const t=new URL(e);return sj.has(t.protocol)?{url:lj(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const cj=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function dj(e){return"https://"===e||cj.test(e)}const fj=ix(Sk)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),pj=({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(uj(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 tj.jsx($w,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>tj.jsx(Nk,{...e,children:tj.jsx(Ox,{className:"tekPopperMenu",children:tj.jsxs(fj,{direction:"row",children:[tj.jsx(nk,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),tj.jsx(n_,{onClick:l,children:tj.jsx(cS,{})}),tj.jsx(n_,{onClick:u,children:tj.jsx(fS,{})})]})})})})},hj=()=>{const[e]=Bc(),t=zf(),[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=go();if(Qr(t)){const n=aj(t),o=n.getParent();if(Bu(o)||Bu(n))return r(null),i(""),!1;let a;if(Du(o)&&(a=o),Du(n)&&(a=n),Du(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($u,uj(t))},{onUpdate:()=>{r(null)}})},[e]),u=D.useCallback(()=>{r(null)},[]);return D.useEffect(()=>ll(e.registerCommand(Et,()=>s(),1),e.registerCommand(At,()=>s(),1)),[e,s]),t?tj.jsx(pj,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function mj(){return tj.jsx(pS,{validateUrl:dj})}!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 gj=({children:e})=>tj.jsx(sx,{theme:zS(),children:e}),vj={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:[wf,bf,Ec,_c,Lu,ju],onError:e=>{console.log(e)}},yj=({children:e,initialConfig:t,flags:n})=>tj.jsx(gj,{children:tj.jsx("div",{className:"tek__editor__Wrapper",children:tj.jsx(qc,{initialConfig:t||vj,children:tj.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,tj.jsx(td,{}),tj.jsx(nd,{}),tj.jsx(mj,{}),tj.jsx(oj,{}),tj.jsx(hj,{}),tj.jsx(ij,{}),tj.jsx(ed,{})]})})})});class bj extends oi{__hasBorders;static getType(){return"TekCellNode"}static clone(e){return new bj(e.__hasBorders,e.__key)}static importJSON(e){return new bj(void 0===e.hasBorders||e.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 xj=e=>new bj(e),_j=e=>e instanceof bj;let wj=class e extends oi{__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 kj(e){return e instanceof wj}let Sj=class e extends oi{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 Cj(e){return e instanceof Sj}const Ej=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),_j(t))return t;return null},Tj=e=>{let t=e;for(;null!==t;){if(kj(t))return t;t=t?.getParent()}return null},Aj=(e,t)=>{const n=Tj(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},Nj=e=>{const t=e?.getChildAtIndex(2);return t},Mj=e=>{const t=e.getParent();if(Cj(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},Lj=e=>{if(e instanceof HTMLTableElement&&e.rows.length>0){const t=e.rows[0];if(t.cells.length>0){let e=0;for(let n=0;n<t.cells.length;n++)e+=t.cells[n].getBoundingClientRect().width;if(e>0)return e}}return e.getBoundingClientRect().width||e.offsetWidth},Rj=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*Lj(t):0,Oj=(e,t)=>{const n=Lj(t),r=n>0?e/n:0;return`${Math.min(100*r,100).toFixed(2)}%`},Pj=e=>e?e.getChildren().filter(e=>Cj(e)):[],Ij=e=>{let t=!1;return Pj(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(bi()),t=!0})}),t},zj=e=>{const t=go();if(Qr(t)||Zr(t)){const n=t.getNodes().filter(e=>_j(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>kj(e)),o=Tj(n[0]),i=Pj(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Qr(t)){const e=t.focus.getNode();if(kj(e))return Ij(e)}return n.forEach(e=>{e.clear(),e.append(bi())}),(()=>{const e=go();let t=!1;if(Qr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=Tj(n);!o&&kj(r)&&(o=r),kj(o)&&(t=Ij(o))}return t})()}if(Qr(t)){const e=t.focus.getNode();if(kj(e))return Ij(e)}}return!1},Dj=e=>{if(e){const t=Tj(e);if(kj(t)){const n=e.getParent(),r=Pj(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}},jj=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),_j(t))return t;return null},Fj=e=>{const t=[];return Pj(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},Bj=(e,t)=>{Fj(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},$j=Ct("UPDATE_COL_WIDTHS_COMMAND"),Hj=Ct("BEGIN_COL_RESIZE"),Wj=Ct("END_COL_RESIZE"),Uj=Ct("INSERT_TEK_TABLE_COMMAND"),Kj=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return tj.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},Gj=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},Vj=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,Yj=({nodeKey:e,colWidths:t})=>{const[n]=Bc(),r=zf(),[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=Zi(e);if(n){const e=n.getParent();if(kj(e)){const n=Nj(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=Oj(s+p,r);if(c){const e=o+p;if(e<60)return;const t=Oj(e,r),s=a.current.nxtColWidth-p,d=Oj(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].getBoundingClientRect().width,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=Oj(e,d),s=Oj(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].getBoundingClientRect().width,60);n.push(Oj(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(Wj,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Zi(e),r=Aj(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($j,{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=Zi(t),o=Aj(r,n);if(_j(r)){const t=Mj(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=Rj(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=Lj(o)*f,h=Rj(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=Gj("tek__leftResizerIndicator","leftGripper");r.innerText=Vj(e);let o=null;return t?(o=Gj("tek__rightResizerIndicator","rightGripper"),o.innerText=Vj(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(Hj,void 0)}}})},[n,d,f]);return D.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),tj.jsx(tj.Fragment,{children:o&&r?o.map(e=>tj.jsx(Kj,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},qj="TEK_TABLE_RESIZE_NODE";let Jj=class e extends si{__colWidths;static getType(){return qj}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:qj,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 tj.jsx(Yj,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const Qj=e=>e instanceof Jj,Xj=({nodeKey:e,colWidths:t})=>{const[n]=Bc(),[r,o]=D.useState(t);return D.useEffect(()=>{n.getEditorState().read(()=>{const t=Zi(e),n=t?.getParent();if(kj(n)){const e=n.getResizeNode();if(Qj(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),tj.jsx(tj.Fragment,{children:r.map((t,n)=>tj.jsx("col",{span:1,width:t},`${e}.${n}`))})};let Zj=class e extends si{__colWidths;static getType(){return"TekColGroupNode"}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:"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 tj.jsx(Xj,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}},eF=class extends si{__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 tF=[wj,bj,Sj,Zj,Jj],nF=(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()},rF=()=>{const e=go();if(Qr(e)){const t=e.anchor.getNode(),n=Ej(t);if(n){const e=Mj(n),t=Tj(n),r=Pj(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),nF(o,t)}}},oF=()=>{const e=go();if(Qr(e)){const t=e.anchor.getNode(),n=Ej(t),r=Tj(n);if(r&&3===r.getChildren().length)return sa(null),void r.remove();if(n){const{row:e}=Dj(n);sa(null),e?.remove()}}},iF=()=>{const e=go();if(Qr(e)){const t=e.anchor.getNode(),n=Tj(t),r=Nj(n);if(Cj(r)&&n){const e=r.getChildren().length,t=new Sj;for(let r=0;r<e;r++){const e=xj(n?.__hasBorders);e.append(bi()),t.append(e)}n?.append(t)}}},aF=()=>{const e=go();if(Qr(e)){const t=e.anchor.getNode(),n=Tj(t);if(kj(n)){const e=Pj(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=xj(n.__hasBorders);o.append(bi()),e[r].append(o),t=o}return nF(r,n),t}}return null},sF=ix(n_)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),lF=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Bc(),[o,i]=D.useState(null),a=Vz(),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,iF,t)},[l,t]),f=D.useCallback(e=>{l(e,aF,t)},[l,t]),p=D.useCallback(t=>{l(t,oF,e)},[l,e]),h=D.useCallback(t=>{l(t,rF,e)},[l,e]),m=D.useCallback(()=>{r.update(()=>{(()=>{const e=go();if(Qr(e)){const t=e.anchor.getNode(),n=Tj(t);kj(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=go();if(Qr(e)){const t=e.anchor.getNode(),n=Tj(t);n&&(n.toggleBorders(),Fj(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>ll(r.registerCommand(Et,()=>(i(null),!1),4)),[r]),tj.jsx(vk,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:tj.jsxs("div",{children:[tj.jsx(sF,{size:"small",onClick:u,children:tj.jsx(XL,{height:12})}),tj.jsx($w,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:tj.jsx(Ox,{id:"tekTableMenu",className:"tekPopperMenu",children:tj.jsxs(Gk,{dense:!0,children:[tj.jsx(Qk,{onClick:g,children:a("ToggleBorders")}),tj.jsx(kk,{}),tj.jsx(Qk,{onClick:d,children:a("AddNewRow")}),tj.jsx(Qk,{onClick:f,children:a("AddNewColumn")}),tj.jsx(kk,{}),tj.jsx(Qk,{onClick:p,children:a("DeleteRow")}),tj.jsx(Qk,{onClick:h,children:a("DeleteCol")}),tj.jsx(kk,{}),tj.jsx(Qk,{onClick:m,children:a("DeleteTable")})]})})})]})})},uF=()=>{const[e]=Bc(),t=zf(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(mm),l=D.useRef(null),u=D.useCallback(()=>{o||e.update(()=>{const t=go();if(Qr(t)){const n=Ej(t.anchor.getNode());if(_j(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(()=>ll(e.registerCommand(Et,()=>(u(),!1),_i),e.registerCommand(Hj,()=>(r(null),!0),4),e.registerCommand(Wj,()=>(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 tj.jsx($w,{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:tj.jsx(lF,{onDeleteAction:c,onAction:d,onClick:f})})},cF=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Zi(n),r=e?.getParent();ci(r)&&null!==e&&t.push(e)}if(t.length>0){const e=bi();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},dF=()=>{const[e]=Bc(),t=zf();return D.useEffect(()=>ll(e.registerMutationListener(bj,t=>{e.update(()=>{cF(t)})}),e.registerMutationListener(Sj,t=>{e.update(()=>{cF(t)})}),e.registerMutationListener(wj,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Zi(e);if(kj(t)&&!t.isValid()){const e=bi();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(Uj,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new wj(!0,"100%"),n=new Zj(e),r=new Jj(e),o=[];for(let t=0;t<2;t++){const t=new Sj;for(let n=0;n<e.length;n++){const e=xj(!0),n=bi();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Ll(e)}),!0),_i),e.registerCommand($j,({colWidths:e,nodeKey:t})=>{const n=Zi(t);if(Qj(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof Zj})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Qt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=go();if(Qr(e)){const t=e.focus.getNode(),n=Tj(t),r=jj(t);if(kj(n)){const e=bi();e.append(Br("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=go();if(Qr(e)){const t=e.focus.getNode(),n=Tj(t);if(kj(n)){const e=bi();e.append(Br("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Zt,e=>zj(e),4),e.registerCommand(tn,e=>zj(e),4),e.registerCommand(nn,e=>{const t=go();if(Qr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),_j(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(Cj(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(Dj(o),!e.shiftKey),!0}return!1},_i),e.registerCommand(pn,e=>{const t=e?.target,n=go();if(t.classList.contains("tek__table")&&Qr(n)&&kj(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Qr(n)){const t=n.getNodes().some(e=>_j(e)),r=n.getNodes().some(e=>kj(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),D.useEffect(()=>e.registerCommand(Et,()=>(t&&e.update(()=>{(e=>{const t=go(),n=[];if(Sa(wj).forEach(e=>{const t=Fj(e);n.push(...t)}),Qr(t)){t.getNodes().filter(e=>kj(e)).forEach(t=>{Bj(t,e)});const n=t.focus.getNode();if(kj(n))return void Bj(n,e)}if(Qr(t)||Zr(t)){const r=new Set(t.getNodes().map(e=>jj(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=[];Sa(wj).forEach(e=>{const n=Fj(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},fF=()=>tj.jsxs(tj.Fragment,{children:[tj.jsx(dF,{}),tj.jsx(uF,{})]}),pF=()=>{const e=zf(),t=Vz();return e?tj.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):tj.jsx("div",{className:"tek__editor__logo",children:tj.jsx(bD,{height:32})})},hF=({showPlaceholder:e})=>tj.jsxs("div",{style:{position:"relative"},children:[tj.jsx(qz,{}),tj.jsx(gD,{contentEditable:tj.jsx(nD,{className:"tek__editor__input"}),placeholder:!1!==e?tj.jsx(pF,{}):null,ErrorBoundary:lD})]}),mF=ix(Sk)(({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"}})),gF=["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"],vF="#404040",yF="16px",bF=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:gF[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),xF=({children:e})=>{const t=(()=>{const[e]=Bc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(gF[0]),[d,f]=D.useState(yF),[p,h]=D.useState(vF),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback(()=>{const t=go();if(Qr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:us(r,e=>{const t=e.getParent();return null!==t&&za(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(Rc(i)){const e=Nl(r,Ec),t=e?e.getListType():i.getListType();l(t)}else{const e=Tf(i)?i.getTag():i.getType();l(e)}if(Rc(i)||Tf(i)){const e=Nl(i,gi);e&&(u=e)}const d=aj(t);if(Du(d.getParent())||Du(d)?y(!0):y(!1),xi(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=Cl(t,"font-family",gF[0]),m=Cl(t,"font-size",yF);c(""===p?gF[0]:p),f(""!==m&&m?m:yF),h(Cl(t,"color",vF))}else Zr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof eF}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",vF));const t=e.getTextFormatStyle("fontSize",yF),r=e.getTextFormatStyle("fontFamily",gF[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(Cc(e)){const t=Nl(e,Ec);return t?t.getListType():"bullet"}return Tf(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return D.useEffect(()=>ll(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(Et,()=>(e.getEditorState().read(()=>{b()}),!1),_i)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return tj.jsx(bF.Provider,{value:t,children:e})},_F=({children:e})=>tj.jsx(xF,{children:tj.jsx(mF,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),wF=({anchorEl:e,children:t})=>{const n=Boolean(e);return tj.jsx($w,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>tj.jsx(Nk,{...e,children:tj.jsx(Ox,{className:"tekPopperMenu",children:t})})})},kF=ix(l_)({fontSize:12,textOverflow:"ellipsis"}),SF=({startIcon:e,value:t,onClick:n,compact:r})=>tj.jsx(lS,{title:t,PopperProps:{disablePortal:!0},children:tj.jsx(mk,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:tj.jsx(TD,{height:12}),children:r?e:tj.jsx(kF,{children:t})})}),CF=ix(Qk,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),EF=[{text:"AlignLeft",align:"left",icon:()=>tj.jsx(kD,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>tj.jsx(_D,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>tj.jsx(CD,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],TF=({compact:e=!1})=>{const[t]=Bc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(bF),i=Vz(),a=D.useMemo(()=>EF.find(e=>e.align===o.align)||EF[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(ln,e),t.focus()},[t]);return tj.jsx(vk,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:tj.jsxs("div",{children:[tj.jsx(SF,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),tj.jsx(wF,{anchorEl:n,children:tj.jsx(Gk,{dense:!0,children:EF.map(e=>tj.jsxs(CF,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[tj.jsx(Fk,{children:e.icon()}),tj.jsx(kF,{children:i(e.text)})]},e.align))})})]})})},AF=({text:e,icon:t})=>tj.jsxs(tj.Fragment,{children:[tj.jsx(Fk,{children:t}),tj.jsx(kF,{children:e})]}),NF=({text:e,icon:t})=>tj.jsxs(tj.Fragment,{children:[tj.jsx(Fk,{children:tj.jsx(kF,{fontWeight:"bold",children:t})}),tj.jsx(kF,{children:e})]}),MF=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],LF=(e,t,n)=>({icon:tj.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),RF=({compact:e=!1})=>{const[t]=Bc(),{blockFormat:n}=D.useContext(bF),[r,o]=D.useState(null),i=Vz(),a=D.useMemo(()=>{let e={icon:tj.jsx(ID,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=LF("Heading1","H1",i)),"h2"===n.blockType&&(e=LF("Heading2","H2",i)),"h3"===n.blockType&&(e=LF("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=tj.jsx(LD,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=tj.jsx(ND,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=tj.jsx(OD,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=D.useCallback(()=>{o(null)},[]),l=D.useCallback(e=>{t.update(()=>{const n=go();Qr(n)?(vl(n,{"font-size":null}),function(e,t,n=yl){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=fo(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=us(e.getNode(),qa),a=us(t.getNode(),qa);ii(n)&&o.set(n.getKey(),n),ii(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(ii(t)&&qa(t))o.set(t.getKey(),t);else if(null===r){const e=us(t,qa);ii(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(go())&&sa(i)}(n,e)):Zr(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=go();Qr(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(()=>Ef(e))},[l]),d=D.useCallback(()=>{o(null),l(()=>bi())},[l]),f=D.useCallback(()=>{o(null),l(()=>xf())},[l]);return tj.jsx(vk,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:tj.jsxs("div",{children:[tj.jsx(SF,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),tj.jsx(wF,{anchorEl:r,children:tj.jsxs(Gk,{dense:!0,children:[tj.jsx(Qk,{dense:!0,onClick:d,children:tj.jsx(AF,{text:i("Paragraph"),icon:tj.jsx(ID,{height:12})})}),tj.jsx(Qk,{dense:!0,onClick:f,children:tj.jsx(AF,{text:i("Quote"),icon:tj.jsx(LD,{height:12})})}),MF.map(e=>tj.jsx(Qk,{dense:!0,onClick:()=>{c(e.tag)},children:tj.jsx(NF,{text:i(e.text),icon:e.icon})},e.text)),tj.jsx(kk,{}),tj.jsx(Qk,{dense:!0,onClick:()=>{u("bullet",Pc)},children:tj.jsx(AF,{text:i("UnorderedList"),icon:tj.jsx(ND,{height:12})})}),tj.jsx(Qk,{dense:!0,onClick:()=>{u("number",Ic)},children:tj.jsx(AF,{text:i("OrderedList"),icon:tj.jsx(OD,{height:12})})})]})})]})})},OF=ix(mk,{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})),PF=(e,t)=>{const n=n=>{const r=Vz();return tj.jsx(lS,{title:r(t),PopperProps:{disablePortal:!0},children:tj.jsx("div",{children:tj.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},IF=({format:e,icon:t,...n})=>{const r=D.useContext(bF),[o]=Bc(),i=D.useCallback(()=>{o.dispatchCommand($t,e)},[o,e]);return tj.jsx(OF,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},zF=PF(IF,"Bold"),DF=()=>tj.jsx(zF,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:tj.jsx(DD,{height:12})}),jF=Ct("APPLY_TEXT_FORMAT"),FF=Ct("CLEAR_TEXT_FORMAT"),BF=PF(OF,"ClearFormat"),$F=()=>{const[e]=Bc(),t=D.useCallback(()=>{e.update(()=>{const t=go();if(Qr(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($r(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),Ml(i).setFormat(""));const a=i.getParent();(Tf(a)||_f(a))&&a.replace(bi(),!0)}else(Tf(t)||_f(t))&&t.replace(bi(),!0)}catch{}})}e.dispatchCommand(FF,void 0)})},[e]);return tj.jsx(BF,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:tj.jsx(FD,{height:12})})};var HF,WF={},UF=function(){if(HF)return WF;HF=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"==ej(o=function(e){if("object"!=ej(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ej(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},WF.Color=u,WF}();const KF=ix(Sk)(({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"})),GF=ix(ik)(({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"})),VF=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=Hb(),a=D.useCallback(e=>{o(e),n(e)},[n]);return tj.jsx(KF,{children:e.map(e=>tj.jsx(GF,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?tj.jsx(fS,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function YF(e,t,n){return Math.max(t,Math.min(n,e))}const qF=(e,t)=>{const n=new UF.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"}},JF=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=YF(e.clientX-n,0,o)/o*100,s=100-YF(e.clientY-r,0,i)/i*100,l=new UF.Color(t).toHSVComponents();return l.s=a,l.v=s,l},QF=ix(Sk)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),XF=ix(ik)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),ZF=ix(ik)(({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 );"})),eB=ix(ik)({width:"16px",height:"16px",borderRadius:"2px"}),tB=ix(Sk)({flexDirection:"row",alignItems:"center"}),nB=ix(ik)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),rB=({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=qF(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new UF.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=JF(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new UF.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=YF(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new UF.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new UF.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 UF.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=qF(a.current,d.current);m(e)}},[e]);return tj.jsxs(QF,{children:[s?tj.jsx(VF,{palette:r,color:o,onColorChange:x}):tj.jsxs(tj.Fragment,{children:[tj.jsx(XF,{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=JF(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new UF.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:tj.jsx(nB,{ref:f,style:{...h,backgroundColor:o}})}),tj.jsx(ZF,{onClick:b})]}),tj.jsxs(tB,{children:[tj.jsx(eB,{style:{backgroundColor:o}}),tj.jsx(nk,{style:{flex:1},value:u,onChange:_}),tj.jsx(n_,{onClick:()=>{l(!s)},children:tj.jsx($D,{height:12})}),tj.jsx(n_,{onClick:t,children:tj.jsx(fS,{height:12})})]})]})},oB=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],iB=PF(mk,"Color"),aB=({colorPalette:e=oB})=>{const[t]=Bc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(bF),i=D.useCallback((e,n)=>{t.update(()=>{const t=go();Qr(t)&&vl(t,{color:e})},n),t.dispatchCommand(jF,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return tj.jsx(vk,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:tj.jsxs("div",{children:[tj.jsx(iB,{variant:"text",size:"small",endIcon:tj.jsx(TD,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:tj.jsx(ik,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),tj.jsx(wF,{anchorEl:n,children:tj.jsx(rB,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};PF(OF,"Export");const sB=({compact:e=!1,fonts:t=gF})=>{const[n]=Bc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(bF),a=D.useMemo(()=>t,[t]),s=D.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=go();Qr(e)&&vl(e,{"font-family":t||gF[0]}),n.dispatchCommand(jF,{styleKey:"fontFamily",styleValue:t||gF[0]}),n.focus()})},[n]);return tj.jsx(vk,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:tj.jsxs("div",{children:[tj.jsx(SF,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:tj.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),tj.jsx(wF,{anchorEl:r,children:tj.jsx(Gk,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>tj.jsx(CF,{"data-font-name":e,onClick:s,active:e===i.fontName,children:tj.jsx(kF,{children:e})},e))})})]})})},lB=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],uB=(e,t)=>"px"!==t&&e.endsWith("px")?`${e.slice(0,-2)}${t}`:e,cB=e=>parseInt(e,10),dB=({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=cB(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return tj.jsxs(Sk,{direction:"row",children:[tj.jsx(nk,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),tj.jsx(n_,{disabled:!cB(n),onClick:i,children:tj.jsx(fS,{height:12})})]})},fB=({compact:e=!1,unit:t="px"})=>{const[n]=Bc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(bF),a=uB(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=go();Qr(t)&&vl(t,{"font-size":e}),n.dispatchCommand(jF,{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 tj.jsx(vk,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:tj.jsxs("div",{children:[tj.jsx(SF,{startIcon:e?tj.jsx(kF,{children:a}):void 0,value:a,onClick:s,compact:e}),tj.jsxs(wF,{anchorEl:r,children:[tj.jsx(dB,{fontSize:a,onSelected:d}),tj.jsx(kk,{}),tj.jsx(Gk,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:lB.map(e=>tj.jsx(Qk,{"data-font-size":e,onClick:c,children:tj.jsx(kF,{children:uB(e,t)})},e))})]})]})})},pB=PF(OF,"InsertTable"),hB=()=>{const[e]=Bc(),t=D.useCallback(()=>{e.dispatchCommand(Uj,void 0)},[e]);return tj.jsx(pB,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:tj.jsx(WD,{height:12})})},mB=PF(IF,"Italic"),gB=()=>tj.jsx(mB,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:tj.jsx(KD,{height:12})}),vB=PF(OF,"InsertHyperlink"),yB=()=>{const[e]=Bc(),{blockFormat:t}=D.useContext(bF),n=D.useCallback(()=>{t.isLink?e.dispatchCommand($u,null):e.dispatchCommand($u,uj("https://"))},[e,t.isLink]);return tj.jsx(vB,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:tj.jsx(VD,{height:12})})};PF(OF,"Toggle");const bB=PF(IF,"Underline"),xB=()=>tj.jsx(bB,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:tj.jsx(qD,{height:12})}),_B=()=>tj.jsx(kk,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var wB={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=="}},kB={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)"}},SB={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=="}},CB={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=="}},EB={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=="}},TB={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=="}},AB={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=="}},NB={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=="}},MB={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=="}},LB={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=="}},RB={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=="}},OB={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=="}},PB={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 IB={de:wB,es:SB,en:kB,fr:CB,it:EB,ja:TB,ko:AB,nl:NB,pl:MB,pt:LB,ru:RB,sv:OB,tr:PB,"de-de":wB,"es-es":SB,"en-us":kB,"fr-fr":CB,"it-it":EB,"ja-jp":TB,"ko-kr":AB,"nl-nl":NB,"pl-pl":MB,"pt-br":LB,"ru-ru":RB,"sv-se":OB,"tr-tr":PB,"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 zB(e,t){return e.getEditorState().read(()=>{const e=Zi(t);return null!==e&&e.isSelected()})}function DB(e){const[t]=Bc(),[n,r]=D.useState(()=>zB(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(zB(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,D.useCallback(n=>{t.update(()=>{let t=go();Zr(t)||(t=po(),sa(t)),Zr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),D.useCallback(()=>{t.update(()=>{const e=go();Zr(e)&&e.clear()})},[t])]}var jB,FB={};var BB=function(){if(jB)return FB;jB=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},FB.Color=u,FB}();function $B(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function HB(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var WB,UB;var KB=function(){if(UB)return WB;UB=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},WB=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},WB}();let GB=[];const VB=new KB.EventEmitter;VB.isSelected=e=>{const t=e?.qDef?.cId;return-1!==GB.indexOf(t)},VB.setSelected=e=>{GB!==e&&(GB=e,VB.emit("change"))};function YB({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Bc(),s=zf(),[l,u,c]=DB(n),d=D.useRef(null),[f,p]=D.useState(t),[h,m]=D.useState(t);f!==t&&(p(t),m(t));const g=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]),v=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 BB.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>ll(a.registerCommand($t,e=>(a.update(()=>{const t=e,r=go();if(Qr(r)&&l){if(HB(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:"");m(t=>({...t,...e}))}}else if(l&&Zr(r)&&HB(n,r)&&d.current){const e=$B(d.current.style);m(((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(jF,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&v.expressionColor)return!1;if(d.current&&l){const t=go();if(HB(n,t)){const t=$B(d.current?.style);t[e.styleKey]=e.styleValue,m(t)}}}),!1),_i),a.registerCommand(FF,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=go();if(HB(n,e)){const e={};v.expressionColor&&(e.color=v.expressionColor),m(e)}}}),!1),_i),a.registerCommand(Et,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=go(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),VB.setSelected(e)}),!1),1)),[a,u,c,l,n,v]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&VB.setSelected([]))},[s,c,i]),D.useEffect(()=>{a.update(()=>{!function(e,t){const n=Zi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,h)})},[h,a,n]);const y=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=go();if(Zr(e)){const t=Zi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Kc.jsx("span",{style:{...g,...h,color:v.expressionColor?v.expressionColor:h.color},onClick:y,ref:d,id:e,children:v.value})}const qB="qlik.expression.node";class JB extends eF{__expressionId;static getType(){return qB}static clone(e){return new JB(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new JB(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:qB,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 Kc.jsx(YB,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function QB(e){return e instanceof JB}const XB="ImageNode",ZB=Ct("INSERT_IMAGE_COMMAND"),e$=()=>{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()},t$=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===XB)r.id||(r.id=e$()),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)t$(e,t,n);return{imageIds:t,newPropertyImages:n}},n$=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function r$(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=t$(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 o$(){const[e]=Bc(),t=zf(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&r$(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 i${nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Zi(e);if(QB(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 a$(){const{layout:e,emitter:t,interactionState:n}=D.useContext(B),[r]=Bc(),o=D.useRef(new i$),i=zf(),a=n?.edit&&e?.permissions?.update;return D.useEffect(()=>{const e=r.registerMutationListener(JB,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=Sa(JB),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=go(),{cId:t}=n[n.length-1],r=new JB(t,{}),o=Br(" "),i=Br("");Qr(e)?e.insertNodes([i,r,o]):Ll(r)}}})},[e,r]),D.useEffect(()=>r.registerCommand(Ut,e=>("Backspace"===e.key&&r.update(()=>{const e=go();Zr(e)&&e.getNodes().forEach(e=>{QB(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 s$=/"/g;function l$(){const{model:e,emitter:t}=D.useContext(B),[n]=Bc(),r=D.useRef(new Map);return D.useEffect(()=>{const o=n.registerMutationListener(Lr,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(s$,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function u$(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 c$,d$="top",f$="top-right",p$="right",h$="bottom-right",m$="bottom",g$="bottom-left",v$="left",y$="top-left";u$(u$(u$(u$(u$(u$(u$(u$(u$(u$(c$={},"equal-equal",[d$,m$]),"equal-higher",[m$,h$]),"equal-lower",[d$,f$]),"equal-void",[d$,m$]),"higher-equal",[v$,g$,d$,f$]),"higher-higher-acute",[m$,g$,v$,f$]),"higher-higher-obtuse",[m$,d$]),"higher-lower-negative",[d$,f$,p$]),"higher-lower-positive",[m$,g$,v$]),"higher-void",[d$]),u$(u$(u$(u$(u$(u$(u$(u$(u$(u$(c$,"lower-equal",[d$]),"lower-higher-negative",[d$,y$]),"lower-higher-positive",[h$]),"lower-lower-acute",[d$,y$,v$,f$,p$]),"lower-lower-obtuse",[d$,m$]),"lower-void",[d$]),"void-equal",[d$]),"void-higher",[d$,m$]),"void-lower",[d$,m$,v$]),"void-void",[d$]),u$(c$,"unclassified",[d$,m$,p$,v$,f$,h$,g$,y$]);var b$,x$,_$=["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"],w$=["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 k$=function(){if(x$)return b$;x$=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 b$=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},b$}();function S$(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function C$(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function E$(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(k$);var T$=.7,A$=1/T$,N$="\\s*([+-]?\\d+)\\s*",M$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",L$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R$=/^#([0-9a-f]{3,8})$/,O$=new RegExp(`^rgb\\(${N$},${N$},${N$}\\)$`),P$=new RegExp(`^rgb\\(${L$},${L$},${L$}\\)$`),I$=new RegExp(`^rgba\\(${N$},${N$},${N$},${M$}\\)$`),z$=new RegExp(`^rgba\\(${L$},${L$},${L$},${M$}\\)$`),D$=new RegExp(`^hsl\\(${M$},${L$},${L$}\\)$`),j$=new RegExp(`^hsla\\(${M$},${L$},${L$},${M$}\\)$`),F$={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 B$(){return this.rgb().formatHex()}function $$(){return this.rgb().formatRgb()}function H$(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=R$.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?W$(t):3===n?new V$(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?U$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?U$(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=O$.exec(e))?new V$(t[1],t[2],t[3],1):(t=P$.exec(e))?new V$(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=I$.exec(e))?U$(t[1],t[2],t[3],t[4]):(t=z$.exec(e))?U$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=D$.exec(e))?Z$(t[1],t[2]/100,t[3]/100,1):(t=j$.exec(e))?Z$(t[1],t[2]/100,t[3]/100,t[4]):F$.hasOwnProperty(e)?W$(F$[e]):"transparent"===e?new V$(NaN,NaN,NaN,0):null}function W$(e){return new V$(e>>16&255,e>>8&255,255&e,1)}function U$(e,t,n,r){return r<=0&&(e=t=n=NaN),new V$(e,t,n,r)}function K$(e){return e instanceof E$||(e=H$(e)),e?new V$((e=e.rgb()).r,e.g,e.b,e.opacity):new V$}function G$(e,t,n,r){return 1===arguments.length?K$(e):new V$(e,t,n,null==r?1:r)}function V$(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Y$(){return`#${X$(this.r)}${X$(this.g)}${X$(this.b)}`}function q$(){const e=J$(this.opacity);return`${1===e?"rgb(":"rgba("}${Q$(this.r)}, ${Q$(this.g)}, ${Q$(this.b)}${1===e?")":`, ${e})`}`}function J$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Q$(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X$(e){return((e=Q$(e))<16?"0":"")+e.toString(16)}function Z$(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tH(e,t,n,r)}function eH(e){if(e instanceof tH)return new tH(e.h,e.s,e.l,e.opacity);if(e instanceof E$||(e=H$(e)),!e)return new tH;if(e instanceof tH)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 tH(a,s,l,e.opacity)}function tH(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nH(e){return(e=(e||0)%360)<0?e+360:e}function rH(e){return Math.max(0,Math.min(1,e||0))}function oH(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}S$(E$,H$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:B$,formatHex:B$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eH(this).formatHsl()},formatRgb:$$,toString:$$}),S$(V$,G$,C$(E$,{brighter(e){return e=null==e?A$:Math.pow(A$,e),new V$(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?T$:Math.pow(T$,e),new V$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new V$(Q$(this.r),Q$(this.g),Q$(this.b),J$(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:Y$,formatHex:Y$,formatHex8:function(){return`#${X$(this.r)}${X$(this.g)}${X$(this.b)}${X$(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:q$,toString:q$})),S$(tH,function(e,t,n,r){return 1===arguments.length?eH(e):new tH(e,t,n,null==r?1:r)},C$(E$,{brighter(e){return e=null==e?A$:Math.pow(A$,e),new tH(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?T$:Math.pow(T$,e),new tH(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 V$(oH(e>=240?e-240:e+120,o,r),oH(e,o,r),oH(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new tH(nH(this.h),rH(this.s),rH(this.l),J$(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=J$(this.opacity);return`${1===e?"hsl(":"hsla("}${nH(this.h)}, ${100*rH(this.s)}%, ${100*rH(this.l)}%${1===e?")":`, ${e})`}`}}));const iH=Math.PI/180,aH=180/Math.PI,sH=.96422,lH=.82521,uH=4/29,cH=6/29,dH=3*cH*cH,fH=cH*cH*cH;function pH(e){if(e instanceof hH)return new hH(e.l,e.a,e.b,e.opacity);if(e instanceof bH)return xH(e);e instanceof V$||(e=K$(e));var t,n,r=yH(e.r),o=yH(e.g),i=yH(e.b),a=mH((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=mH((.4360747*r+.3850649*o+.1430804*i)/sH),n=mH((.0139322*r+.0971045*o+.7141733*i)/lH)),new hH(116*a-16,500*(t-a),200*(a-n),e.opacity)}function hH(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function mH(e){return e>fH?Math.pow(e,1/3):e/dH+uH}function gH(e){return e>cH?e*e*e:dH*(e-uH)}function vH(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yH(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bH(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xH(e){if(isNaN(e.h))return new hH(e.l,0,0,e.opacity);var t=e.h*iH;return new hH(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}S$(hH,function(e,t,n,r){return 1===arguments.length?pH(e):new hH(e,t,n,null==r?1:r)},C$(E$,{brighter(e){return new hH(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new hH(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 V$(vH(3.1338561*(t=sH*gH(t))-1.6168667*(e=1*gH(e))-.4906146*(n=lH*gH(n))),vH(-.9787684*t+1.9161415*e+.033454*n),vH(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),S$(bH,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bH)return new bH(e.h,e.c,e.l,e.opacity);if(e instanceof hH||(e=pH(e)),0===e.a&&0===e.b)return new bH(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*aH;return new bH(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bH(e,t,n,null==r?1:r)},C$(E$,{brighter(e){return new bH(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bH(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xH(this).rgb()}}));var _H=e=>()=>e;function wH(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_H(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?wH: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):_H(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=G$(e)).r,(t=G$(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=wH(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 kH,SH="center",CH="bottom";function EH(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 TH(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=NH)):void 0===t&&(t=AH);for(var n,r,o,i,a,s=new RH(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 RH(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(LH)}function AH(e){return e.children}function NH(e){return Array.isArray(e)?e[1]:null}function MH(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function LH(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function RH(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:SH,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:SH,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:SH,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:SH},{key:"DataRangeIncludingZero",alignment:CH},{key:"LimitedData",alignment:CH},{key:"NegativeOrZeroValues",alignment:CH}].reduce(function(e,t){return e[t.key]=t,e},{}),RH.prototype=TH.prototype={constructor:RH,count:function(){return this.eachAfter(EH)},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 TH(this).eachBefore(MH)},[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)}},kH=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}},v$({exports:{}});const T$=e=>`text-toolbar.${e?.id}`,A$=(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"})}),N$=D.forwardRef(A$),L$=Aj(Tj,"InsertImage"),R$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Tc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(VF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(L$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Mc.jsx(N$,{height:12})}):null};function M$(){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")?gB:mB}(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;let c="px";return"fluid"===u?c="f":"responsive"===u&&(c="r"),Mc.jsx(z_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:21},id:T$(n),children:({TransitionProps:e})=>Mc.jsx(kw,{...e,children:Mc.jsx(Nb,{sx:{borderRadius:1,padding:.25},children:Mc.jsxs(mj,{children:[Mc.jsx(Ej,{compact:!0}),Mc.jsx(mF,{}),Mc.jsx(tF,{compact:!0,fonts:s}),Mc.jsx(aF,{compact:!0,unit:c}),Mc.jsx(mF,{}),Mc.jsx(Rj,{}),Mc.jsx(cF,{}),Mc.jsx(hF,{}),Mc.jsx(fF,{}),Mc.jsx(eF,{colorPalette:l}),Mc.jsx(mF,{}),Mc.jsx(_j,{compact:!0}),Mc.jsx(mF,{}),Mc.jsx(zj,{}),Mc.jsx(mF,{}),Mc.jsx(lF,{}),Mc.jsx(R$,{})]})})})})}function O$(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))}}O$(".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");O$("/*\n * CSS variable --zoom-factor is set in RootText.tsx when responsive/fluid layout is enabled.\n * It contains the same calc() value as the zoom property to counter-scale UI elements\n * that should maintain consistent pixel sizes regardless of zoom level.\n */\n\n.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: calc(2px / var(--zoom-factor, 1)) solid var(--sprout-selected-border-default-color);\n outline-offset: calc(-3px / var(--zoom-factor, 1));\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: calc(18px / var(--zoom-factor, 1));\n height: calc(18px / var(--zoom-factor, 1));\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__visual_cue {\n display: block;\n width: calc(6px / var(--zoom-factor, 1));\n height: calc(6px / var(--zoom-factor, 1));\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n /* Center within the hitbox */\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 2;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: calc(-7px / var(--zoom-factor, 1));\n left: calc(-7px / var(--zoom-factor, 1));\n cursor: nw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: calc(-7px / var(--zoom-factor, 1));\n left: 45%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: calc(-7px / var(--zoom-factor, 1));\n right: calc(-7px / var(--zoom-factor, 1));\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 45%;\n right: calc(-7px / var(--zoom-factor, 1));\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: calc(4px - (7px / var(--zoom-factor, 1)));\n right: calc(-7px / var(--zoom-factor, 1));\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: calc(4px - (7px / var(--zoom-factor, 1)));\n left: 45%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: calc(4px - (7px / var(--zoom-factor, 1)));\n left: calc(-7px / var(--zoom-factor, 1));\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 45%;\n left: calc(-7px / var(--zoom-factor, 1));\n cursor: w-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const P$=1,z$=8,I$=2,D$=4;function j$({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{offsetWidth:n,offsetHeight:i}=o,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===P$||e===D$?"ew":e===z$||e===I$?"ns":e&z$&&e&D$||e&I$&&e&P$?"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&(P$|D$),i=r.direction&(I$|z$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&P$?-n:n;const o=F$(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&I$?-n:n;const o=F$(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&P$?-n:n;const o=F$(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,z$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,z$|P$)},children:Mc.jsx("div",{className:"tek__visual_cue tek__image_resizer_ne"})}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,I$|P$)},children:Mc.jsx("div",{className:"tek__visual_cue tek__image_resizer_se"})}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,I$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,I$|D$)},children:Mc.jsx("div",{className:"tek__visual_cue tek__image_resizer_sw"})}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,D$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,z$|D$)},children:Mc.jsx("div",{className:"tek__visual_cue tek__image_resizer_nw"})})]})}const F$=(e,t,n)=>Math.min(Math.max(e,t),n),B$=new Map,$$=({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=B$.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=>(B$.set(e,t),t)),B$.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 H$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=RF(a),[d,f]=D.useState(!1),[p]=Tc(),h=Rd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||JF(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(()=>Ys(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($$,{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(j$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Hi(a);n?.getType()===GF&&n.setWidthAndHeight(e,t)})}}):null]})})}var W$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),U$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),K$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class G$ 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 GF}static clone(e){return new G$({...e.__props,key:e.getKey()})}decorate(){return Mc.jsx(H$,{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:GF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===G$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||U$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=W$(n);a=K$(a),a=decodeURIComponent(a);return{node:V$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return V$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const V$=e=>new G$(e),Y$=document.createElement("img");function q$(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 J$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===GF?t:null}function Q$(e,t){const n=J$();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!==GF?null:r}(e);if(!r)return!1;const o=Qa(n,e=>!Tu(e)&&Su(e));if(e.preventDefault(),q$(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(VF,{...r}),o&&t.dispatchCommand(Au,o.getURL())}return!0}Y$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const X$=()=>{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(()=>Ys(e.registerCommand(VF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=V$({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()===G$.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===G$.getType()){const t={...e};return t.tempUrl=t.tempUrl||JF(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=J$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(Y$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:GF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!J$()&&(q$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>Q$(t,e),3)),[e,t,o,n]),null};const Z$=()=>((()=>{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 eH(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,yu]});return n.update(()=>{const t=new DataTransfer;t.setData("text/html",e),Jc(t,Yi().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 tH(){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"));D.useEffect(()=>{!function(e){const t=Object.entries(NF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});Hz.configure(t,e)}(t)},[t]);const l=o?.seedData,u=D.useMemo(()=>{if(void 0!==e){let r=e||void 0;const o=[...qD,UF,...n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?[G$]:[(t=GF,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}})]];return n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")&&l&&!r&&(r=eH(l,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,l]);let c;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;let t;if("fluid"===e){t=`calc(100cqmin / ${50}px)`}else if("responsive"===e){t=`calc(100vmin / ${800}px)`}c=t?{zoom:t,"--zoom-factor":t}:void 0}return u?Mc.jsx("div",{className:"hideScrollBar",style:c?{containerType:"size"}:void 0,children:Mc.jsx("div",{style:c,children:Mc.jsxs(fD,{initialConfig:u,flags:n,children:[Mc.jsx(M$,{}),Mc.jsx(lj,{showPlaceholder:s}),Mc.jsx(aj,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(X$,{}):null,Mc.jsx(eB,{}),Mc.jsx(XF,{}),Mc.jsx(nB,{}),Mc.jsx(Z$,{})]})})}):null}const nH={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:$F,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 rH({env:e}){return{definition:{type:"items",component:"accordion",items:{data:nH,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.kpi.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:"fluid",translation:"properties.fluid"},{value:"fixed",translation:"properties.fixed"}]}}}}}}}}}}}})}},exportProperties:null,importProperties:e.flags?.isEnabled("GV_1384_SN_TEXT_CONVERSION")?(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo?.qType&&(n.qInfo={qType:t.qInfo?.qType}),n.visualization=t.visualization,{qProperty:n}}:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class oH{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 iH=({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(T$(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 aH(f){const m=new oH,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:rH({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=>{!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}=iH({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(tH,{})})}))})({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{aH 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}},kH({exports:{}});const OH=e=>`text-toolbar.${e?.id}`,PH=(e,t)=>Kc.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:Kc.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"})}),IH=D.forwardRef(PH),zH=PF(OF,"InsertImage"),DH=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Bc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(ZB,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Kc.jsx(zH,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Kc.jsx(IH,{height:12})}):null};function jH(){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")?w$:_$}(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;let c="px";return"fluid"===u?c="f":"responsive"===u&&(c="r"),Kc.jsx($w,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:21},id:OH(n),children:({TransitionProps:e})=>Kc.jsx(Nk,{...e,children:Kc.jsx(Ox,{sx:{borderRadius:1,padding:.25},children:Kc.jsxs(_F,{children:[Kc.jsx(RF,{compact:!0}),Kc.jsx(_B,{}),Kc.jsx(sB,{compact:!0,fonts:s}),Kc.jsx(fB,{compact:!0,unit:c}),Kc.jsx(_B,{}),Kc.jsx(DF,{}),Kc.jsx(gB,{}),Kc.jsx(xB,{}),Kc.jsx(yB,{}),Kc.jsx(aB,{colorPalette:l}),Kc.jsx(_B,{}),Kc.jsx(TF,{compact:!0}),Kc.jsx(_B,{}),Kc.jsx($F,{}),Kc.jsx(_B,{}),Kc.jsx(hB,{}),Kc.jsx(DH,{})]})})})})}function FH(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))}}FH(".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");FH("/*\n * CSS variable --zoom-factor is set in RootText.tsx when responsive/fluid layout is enabled.\n * It contains the same calc() value as the zoom property to counter-scale UI elements\n * that should maintain consistent pixel sizes regardless of zoom level.\n */\n\n.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: calc(2px / var(--zoom-factor, 1)) solid var(--sprout-selected-border-default-color);\n outline-offset: calc(-3px / var(--zoom-factor, 1));\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: calc(18px / var(--zoom-factor, 1));\n height: calc(18px / var(--zoom-factor, 1));\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__visual_cue {\n display: block;\n width: calc(6px / var(--zoom-factor, 1));\n height: calc(6px / var(--zoom-factor, 1));\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n /* Center within the hitbox */\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 2;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: calc(-7px / var(--zoom-factor, 1));\n left: calc(-7px / var(--zoom-factor, 1));\n cursor: nw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: calc(-7px / var(--zoom-factor, 1));\n left: 45%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: calc(-7px / var(--zoom-factor, 1));\n right: calc(-7px / var(--zoom-factor, 1));\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 45%;\n right: calc(-7px / var(--zoom-factor, 1));\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: calc(4px - (7px / var(--zoom-factor, 1)));\n right: calc(-7px / var(--zoom-factor, 1));\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: calc(4px - (7px / var(--zoom-factor, 1)));\n left: 45%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: calc(4px - (7px / var(--zoom-factor, 1)));\n left: calc(-7px / var(--zoom-factor, 1));\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 45%;\n left: calc(-7px / var(--zoom-factor, 1));\n cursor: w-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const BH=1,$H=8,HH=2,WH=4;function UH({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{offsetWidth:n,offsetHeight:i}=o,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===BH||e===WH?"ew":e===$H||e===HH?"ns":e&$H&&e&WH||e&HH&&e&BH?"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&(BH|WH),i=r.direction&(HH|$H);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&BH?-n:n;const o=KH(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&HH?-n:n;const o=KH(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&BH?-n:n;const o=KH(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 Kc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,$H)}}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,$H|BH)},children:Kc.jsx("div",{className:"tek__visual_cue tek__image_resizer_ne"})}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,BH)}}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,HH|BH)},children:Kc.jsx("div",{className:"tek__visual_cue tek__image_resizer_se"})}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,HH)}}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,HH|WH)},children:Kc.jsx("div",{className:"tek__visual_cue tek__image_resizer_sw"})}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,WH)}}),Kc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,$H|WH)},children:Kc.jsx("div",{className:"tek__visual_cue tek__image_resizer_nw"})})]})}const KH=(e,t,n)=>Math.min(Math.max(e,t),n),GH=new Map,VH=({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=GH.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=>(GH.set(e,t),t)),GH.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 Kc.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 YH({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=DB(a),[d,f]=D.useState(!1),[p]=Bc(),h=zf(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||n$(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&&(sa(null),p.focus(),!0),[l,p]);D.useEffect(()=>ll(p.registerCommand(At,b,1),p.registerCommand(un,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(en,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Kc.jsx(D.Suspense,{fallback:null,children:Kc.jsxs(Kc.Fragment,{children:[Kc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Kc.jsx(VH,{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(At,e.nativeEvent)}})}),i&&l&&w?Kc.jsx(UH,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Zi(a);n?.getType()===XB&&n.setWidthAndHeight(e,t)})}}):null]})})}var qH=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),JH=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),QH=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class XH extends si{__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 XB}static clone(e){return new XH({...e.__props,key:e.getKey()})}decorate(){return Kc.jsx(YH,{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:XB,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===XH.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||JH(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=qH(n);a=QH(a),a=decodeURIComponent(a);return{node:ZH({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return ZH(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const ZH=e=>new XH(e),eW=document.createElement("img");function tW(e){const t=e.target;return!!(t&&Ua(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Ua(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function nW(){const e=go();if(!Zr(e))return null;const t=e.getNodes()[0];return t.getType()===XB?t:null}function rW(e,t){const n=nW();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!==XB?null:r}(e);if(!r)return!1;const o=us(n,e=>!Bu(e)&&Du(e));if(e.preventDefault(),tW(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=fo();null!=i&&a.applyDOMRange(i),sa(a),t.dispatchCommand(ZB,{...r}),o&&t.dispatchCommand($u,o.getURL())}return!0}eW.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const oW=({imageFromClipboardSupport:e=!1})=>{const[t]=Bc(),{emitter:n,layout:r,model:o,handlePasteData:i}=D.useContext(B),[a,s]=D.useState();return D.useEffect(()=>{"function"==typeof o?.getProperties&&o?.getProperties().then(e=>{s(e)})},[r,o]),D.useEffect(()=>ll(t.registerCommand(ZB,({id:e,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(t.update(()=>{const t=ZH({id:e,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});Co([t]),za(t.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(t,bi).selectEnd()}),!0),_i),t.registerCommand(fn,e=>{const n=go();if(!n)return!1;const o=n.getNodes().some(e=>e.getType()===XH.getType());if(!o)return!1;const i=nf(n),s=i["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===XH.getType()){const t={...e};return t.tempUrl=t.tempUrl||n$(r,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(a,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={...i,"application/x-lexical-editor":JSON.stringify(u)};return Zd(t,Ol(e,ClipboardEvent)?e:null,n),!0}return!1},3),t.registerCommand(Dt,n=>!(!(e&&n instanceof ClipboardEvent&&i)||(e=>Array.from(e.clipboardData?.types||[]).includes("application/x-lexical-editor"))(n))&&((async()=>{const e=await i(n);e?.imagePath&&t.dispatchCommand(ZB,{method:"mediaLibrary",tempUrl:e.imagePath,tempUrlDef:e.imagePath})})(),!0),1),t.registerCommand(un,e=>function(e){const t=nW();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(eW,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:XB})),!0)}(e),3),t.registerCommand(cn,e=>function(e){return!!nW()&&(tW(e)||e.preventDefault(),!1)}(e),1),t.registerCommand(sn,e=>rW(e,t),3)),[t,n,a,r,e,i]),null};const iW=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Bc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function aW(){const[e]=Bc(),{layout:t,model:n,flags:r}=D.useContext(B),o=D.useRef(!1);return D.useEffect(()=>{if(o.current)return;const r=t?.seedData;if(!r||!n)return;if(!e.getEditorState().read(()=>ia().getTextContent().trim().length>0)){o.current=!0;try{e.update(()=>{const t=(new DOMParser).parseFromString(r,"text/html"),n=jd(e,t);n.length>0&&(ia().select(),Co(n))},{discrete:!0})}catch(e){console.error("Failed to migrate seedData",e)}}},[e,t,n,r]),null}function sW(){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"));D.useEffect(()=>{!function(e){const t=Object.entries(IB[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});Yz.configure(t,e)}(t)},[t]);const l=D.useMemo(()=>{if(void 0!==e){const r=e||void 0,o=[...tF,JB,...n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?[XH]:[(t=XB,class e extends si{__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}})]];return(e=>{let t=vj.nodes;e.nodes&&(t=vj.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...vj,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n]);let u;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;let t;if("fluid"===e){t=`calc(100cqmin / ${50}px)`}else if("responsive"===e){t=`calc(100vmin / ${800}px)`}u=t?{zoom:t,"--zoom-factor":t}:void 0}return l?Kc.jsx("div",{className:"hideScrollBar",style:u?{containerType:"size"}:void 0,children:Kc.jsx("div",{style:u,children:Kc.jsxs(yj,{initialConfig:l,flags:n,children:[Kc.jsx(jH,{}),Kc.jsx(hF,{showPlaceholder:s}),Kc.jsx(fF,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Kc.jsx(oW,{imageFromClipboardSupport:n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")}):null,Kc.jsx(a$,{}),Kc.jsx(o$,{}),Kc.jsx(l$,{}),Kc.jsx(iW,{}),n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")?Kc.jsx(aW,{}):null]})})}):null}const lW={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:VB,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 uW({env:e}){return{definition:{type:"items",component:"accordion",items:{data:lW,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.kpi.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:"fluid",translation:"properties.fluid"},{value:"fixed",translation:"properties.fixed"}]}}}}}}}}}}}})}},exportProperties:null,importProperties:e.flags?.isEnabled("GV_1384_SN_TEXT_CONVERSION")?(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo?.qType&&(n.qInfo={qType:t.qInfo?.qType}),n.visualization=t.visualization,{qProperty:n}}:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class cW{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 dW=({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(OH(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 fW(f){const m=new cW,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:uW({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}=dW({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,handlePasteData:p})=>{e.render(Kc.jsx(j.StrictMode,{children:Kc.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,handlePasteData:p},children:Kc.jsx(sW,{})})}))})({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,handlePasteData:f.anything?.sense?.handlePasteData})},[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{fW as default};
|