@nebula.js/sn-text 1.9.1 → 1.9.2

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.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.9.1
2
+ * @nebula.js/sn-text v1.9.2
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,function(e){"use strict";function t(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 n={version:"1.9.1",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},r=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 o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 a,s,l={},u={exports:{}},c={},d={exports:{}},f={};function p(){if(a)return f;a=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,k={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)w.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:k.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 M(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,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),M(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+":",_(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=M(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=M(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return M(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 N={current:null},O={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}return f.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(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}},f.Component=v,f.Fragment=n,f.Profiler=o,f.PureComponent=b,f.StrictMode=r,f.Suspense=u,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,f.act=I,f.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=m({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.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}},f.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},f.createElement=C,f.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:l,render:e}},f.isValidElement=E,f.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:L}},f.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},f.unstable_act=I,f.useCallback=function(e,t){return N.current.useCallback(e,t)},f.useContext=function(e){return N.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return N.current.useDeferredValue(e)},f.useEffect=function(e,t){return N.current.useEffect(e,t)},f.useId=function(){return N.current.useId()},f.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return N.current.useMemo(e,t)},f.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},f.useRef=function(e){return N.current.useRef(e)},f.useState=function(e){return N.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return N.current.useTransition()},f.version="18.3.1",f}function h(){return s||(s=1,d.exports=p()),d.exports}var m,g,v,y,b,x={exports:{}},_={};function w(){return g||(g=1,x.exports=(m||(m=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,N(_);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 M(){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(M)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,L=R.port2;R.port1.onmessage=M,w=function(){L.postMessage(null)}}else w=function(){g(M,0)};function N(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,N(_))},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,N(_))),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}}}}(_)),_)),x.exports}
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,function(e){"use strict";function t(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 n={version:"1.9.2",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},r=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 o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 a,s,l={},u={exports:{}},c={},d={exports:{}},f={};function p(){if(a)return f;a=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,k={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)w.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:k.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 M(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,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),M(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+":",_(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=M(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=M(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return M(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 N={current:null},O={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}return f.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(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}},f.Component=v,f.Fragment=n,f.Profiler=o,f.PureComponent=b,f.StrictMode=r,f.Suspense=u,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,f.act=I,f.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=m({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.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}},f.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},f.createElement=C,f.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:l,render:e}},f.isValidElement=E,f.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:L}},f.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},f.unstable_act=I,f.useCallback=function(e,t){return N.current.useCallback(e,t)},f.useContext=function(e){return N.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return N.current.useDeferredValue(e)},f.useEffect=function(e,t){return N.current.useEffect(e,t)},f.useId=function(){return N.current.useId()},f.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return N.current.useMemo(e,t)},f.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},f.useRef=function(e){return N.current.useRef(e)},f.useState=function(e){return N.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return N.current.useTransition()},f.version="18.3.1",f}function h(){return s||(s=1,d.exports=p()),d.exports}var m,g,v,y,b,x={exports:{}},_={};function w(){return g||(g=1,x.exports=(m||(m=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,N(_);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 M(){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(M)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,L=R.port2;R.port1.onmessage=M,w=function(){L.postMessage(null)}}else w=function(){g(M,0)};function N(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,N(_))},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,N(_))),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}}}}(_)),_)),x.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -107,4 +107,4 @@
107
107
  * LICENSE file in the root directory of this source tree.
108
108
  */function aR(){if(nR)return $E;nR=1,Object.defineProperty($E,"__esModule",{value:!0}),$E.default=function(t){return(0,e.createStyles)(t)};var e=iR;return $E}var sR,lR,uR={},cR={};function dR(){if(sR)return cR;sR=1;var e=ey();Object.defineProperty(cR,"__esModule",{value:!0}),cR.default=void 0;var t=(0,e(FE()).default)();return cR.default=t,cR}function fR(){if(lR)return uR;lR=1;var e=ey();Object.defineProperty(uR,"__esModule",{value:!0}),uR.default=void 0;var t=e(Ly()),n=iR,r=e(dR());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 uR.default=o,uR}var pR,hR,mR={},gR={};function vR(){if(pR)return gR;pR=1;var e=ey();Object.defineProperty(gR,"__esModule",{value:!0}),gR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gR.getUnit=n,gR.toUnitless=r,gR.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}},gR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},gR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},gR.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(tS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return gR}function yR(){if(hR)return mR;hR=1;var e=ey();Object.defineProperty(mR,"__esModule",{value:!0}),mR.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(Ly()),n=Uk,r=vR();return mR}var bR,xR={};function _R(){if(bR)return xR;bR=1;var e=ey();Object.defineProperty(xR,"__esModule",{value:!0}),xR.default=void 0;var t=e(Ly()),n=iR,r=e(dR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return xR.default=o,xR}var wR,kR={};function SR(){if(wR)return kR;wR=1;var e=ey();Object.defineProperty(kR,"__esModule",{value:!0}),kR.default=function(){return(0,t.useTheme)()||n.default};var t=iR;e(h());var n=e(dR());return kR}var CR,ER={};function TR(){if(CR)return ER;CR=1;var e=ey();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=e(Ly()),n=iR,r=e(dR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return ER.default=o,ER}var AR,MR,RR={};function LR(){if(AR)return RR;AR=1;var e=ey();Object.defineProperty(RR,"__esModule",{value:!0}),RR.default=void 0;var t=iR,n=e(dR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return RR.default=r,RR}function NR(){return MR||(MR=1,function(e){var t=ey(),n=(_k||(_k=1,function(e){var t=Ck().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}(kk)),kk.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=Kk();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(FE()),a=t(WE()),s=t(aR()),l=t(fR()),u=t(yR()),c=t(_R()),d=PE();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(SR()),p=t(TR()),h=t(LR()),m=iR}(wk)),wk}var OR=NR();OR.alpha(Jw.GREYSCALE_0,.05),OR.alpha(Jw.GREEN_PALE,.5),OR.alpha(Jw.BLUE_PALE,.5),OR.alpha(Jw.GREEN_PALE,.5),OR.alpha(Jw.BLUE_PALE,.5),OR.alpha(Jw.GREEN_PALE,.5),OR.alpha(Jw.BLUE_PALE,.5),OR.alpha(Jw.GREEN_PALE,.5),OR.alpha(Jw.BLUE_PALE,.5),OR.alpha(Jw.GREEN_PALE,.5),OR.alpha(Jw.BLUE_PALE,.5);const PR=(e,t)=>cc.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:cc.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"})}),IR=E.forwardRef(PR);var zR=Object.defineProperty,DR=(e,t)=>{for(var n in t)zR(e,n,{get:t[n],enumerable:!0})},jR=(e,t,n)=>((e,t,n)=>t in e?zR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),FR={};DR(FR,{af:()=>GR,ak:()=>VR,am:()=>YR,an:()=>qR,ar:()=>QR,ars:()=>JR,as:()=>XR,asa:()=>ZR,ast:()=>eL,az:()=>tL,bal:()=>nL,be:()=>rL,bem:()=>oL,bez:()=>iL,bg:()=>aL,bho:()=>sL,blo:()=>lL,bm:()=>uL,bn:()=>cL,bo:()=>dL,br:()=>fL,brx:()=>pL,bs:()=>hL,ca:()=>mL,ce:()=>gL,ceb:()=>vL,cgg:()=>yL,chr:()=>bL,ckb:()=>xL,cs:()=>_L,cy:()=>wL,da:()=>kL,de:()=>SL,doi:()=>CL,dsb:()=>EL,dv:()=>TL,dz:()=>AL,ee:()=>ML,el:()=>RL,en:()=>LL,eo:()=>NL,es:()=>OL,et:()=>PL,eu:()=>IL,fa:()=>zL,ff:()=>DL,fi:()=>jL,fil:()=>FL,fo:()=>BL,fr:()=>HL,fur:()=>WL,fy:()=>$L,ga:()=>UL,gd:()=>KL,gl:()=>GL,gsw:()=>VL,gu:()=>YL,guw:()=>qL,gv:()=>QL,ha:()=>JL,haw:()=>XL,he:()=>ZL,hi:()=>eN,hnj:()=>tN,hr:()=>nN,hsb:()=>rN,hu:()=>oN,hy:()=>iN,ia:()=>aN,id:()=>sN,ig:()=>lN,ii:()=>uN,io:()=>cN,is:()=>dN,it:()=>fN,iu:()=>pN,ja:()=>hN,jbo:()=>mN,jgo:()=>gN,jmc:()=>vN,jv:()=>yN,jw:()=>bN,ka:()=>xN,kab:()=>_N,kaj:()=>wN,kcg:()=>kN,kde:()=>SN,kea:()=>CN,kk:()=>EN,kkj:()=>TN,kl:()=>AN,km:()=>MN,kn:()=>RN,ko:()=>LN,ks:()=>NN,ksb:()=>ON,ksh:()=>PN,ku:()=>IN,kw:()=>zN,ky:()=>DN,lag:()=>jN,lb:()=>FN,lg:()=>BN,lij:()=>HN,lkt:()=>WN,ln:()=>$N,lo:()=>UN,lt:()=>KN,lv:()=>GN,mas:()=>VN,mg:()=>YN,mgo:()=>qN,mk:()=>QN,ml:()=>JN,mn:()=>XN,mo:()=>ZN,mr:()=>eO,ms:()=>tO,mt:()=>nO,my:()=>rO,nah:()=>oO,naq:()=>iO,nb:()=>aO,nd:()=>sO,ne:()=>lO,nl:()=>uO,nn:()=>cO,nnh:()=>dO,no:()=>fO,nqo:()=>pO,nr:()=>hO,nso:()=>mO,ny:()=>gO,nyn:()=>vO,om:()=>yO,or:()=>bO,os:()=>xO,osa:()=>_O,pa:()=>wO,pap:()=>kO,pcm:()=>SO,pl:()=>CO,prg:()=>EO,ps:()=>TO,pt:()=>AO,pt_PT:()=>MO,rm:()=>RO,ro:()=>LO,rof:()=>NO,ru:()=>OO,rwk:()=>PO,sah:()=>IO,saq:()=>zO,sat:()=>DO,sc:()=>jO,scn:()=>FO,sd:()=>BO,sdh:()=>HO,se:()=>WO,seh:()=>$O,ses:()=>UO,sg:()=>KO,sh:()=>GO,shi:()=>VO,si:()=>YO,sk:()=>qO,sl:()=>QO,sma:()=>JO,smi:()=>XO,smj:()=>ZO,smn:()=>eP,sms:()=>tP,sn:()=>nP,so:()=>rP,sq:()=>oP,sr:()=>iP,ss:()=>aP,ssy:()=>sP,st:()=>lP,su:()=>uP,sv:()=>cP,sw:()=>dP,syr:()=>fP,ta:()=>pP,te:()=>hP,teo:()=>mP,th:()=>gP,ti:()=>vP,tig:()=>yP,tk:()=>bP,tl:()=>xP,tn:()=>_P,to:()=>wP,tpi:()=>kP,tr:()=>SP,ts:()=>CP,tzm:()=>EP,ug:()=>TP,uk:()=>AP,und:()=>MP,ur:()=>RP,uz:()=>LP,ve:()=>NP,vec:()=>OP,vi:()=>PP,vo:()=>IP,vun:()=>zP,wa:()=>DP,wae:()=>jP,wo:()=>FP,xh:()=>BP,xog:()=>HP,yi:()=>WP,yo:()=>$P,yue:()=>UP,zh:()=>KP,zu:()=>GP});var BR=(e,t)=>t?"other":1==e?"one":"other",HR=(e,t)=>t?"other":0==e||1==e?"one":"other",WR=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",$R=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},UR=(e,t)=>"other",KR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",GR=BR,VR=HR,YR=WR,qR=BR,QR=(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"},JR=(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"},XR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",ZR=BR,eL=$R,tL=(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"},nL=(e,t)=>1==e?"one":"other",rL=(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"},oL=BR,iL=BR,aL=BR,sL=HR,lL=(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"},uL=UR,cL=(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",dL=UR,fL=(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"},pL=BR,hL=(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"},mL=(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"},gL=BR,vL=(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"},yL=BR,bL=BR,xL=BR,_L=(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"},wL=(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",kL=(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"},SL=$R,CL=WR,EL=(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"},TL=BR,AL=UR,ML=BR,RL=BR,LL=(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"},NL=BR,OL=(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"},PL=$R,IL=BR,zL=WR,DL=(e,t)=>t?"other":e>=0&&e<2?"one":"other",jL=$R,FL=(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"},BL=BR,HL=(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"},WL=BR,$L=$R,UL=(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"},KL=(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"},GL=$R,VL=BR,YL=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",qL=HR,QL=(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"},JL=BR,XL=BR,ZL=(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"},eN=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",tN=UR,nN=(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"},rN=(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"},oN=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",iN=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",aN=$R,sN=UR,lN=UR,uN=UR,cN=$R,dN=(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"},fN=(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"},pN=KR,hN=UR,mN=UR,gN=BR,vN=BR,yN=UR,bN=UR,xN=(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"},_N=(e,t)=>t?"other":e>=0&&e<2?"one":"other",wN=BR,kN=BR,SN=UR,CN=UR,EN=(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"},TN=BR,AN=BR,MN=UR,RN=WR,LN=UR,NN=BR,ON=BR,PN=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",IN=BR,zN=(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"},DN=BR,jN=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},FN=BR,BN=BR,HN=(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"},WN=UR,$N=HR,UN=(e,t)=>t&&1==e?"one":"other",KN=(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"},GN=(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"},VN=BR,YN=HR,qN=BR,QN=(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"},JN=BR,XN=BR,ZN=(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"},eO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",tO=(e,t)=>t&&1==e?"one":"other",nO=(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"},rO=UR,oO=BR,iO=KR,aO=BR,sO=BR,lO=(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"},uO=$R,cO=BR,dO=BR,fO=BR,pO=UR,hO=BR,mO=HR,gO=BR,vO=BR,yO=BR,bO=(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"},xO=BR,_O=UR,wO=HR,kO=BR,SO=WR,CO=(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"},EO=(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"},TO=BR,AO=(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"},MO=(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"},RO=BR,LO=(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"},NO=BR,OO=(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"},PO=BR,IO=UR,zO=BR,DO=KR,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"},FO=(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"},BO=BR,HO=BR,WO=KR,$O=BR,UO=UR,KO=UR,GO=(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"},VO=(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"},YO=(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"},qO=(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"},QO=(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"},JO=KR,XO=KR,ZO=KR,eP=KR,tP=KR,nP=BR,rP=BR,oP=(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"},iP=(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"},aP=BR,sP=BR,lP=BR,uP=UR,cP=(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"},dP=$R,fP=BR,pP=BR,hP=BR,mP=BR,gP=UR,vP=HR,yP=BR,bP=(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"},xP=(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"},_P=BR,wP=UR,kP=UR,SP=BR,CP=BR,EP=(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"},TP=BR,AP=(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"},MP=UR,RP=$R,LP=BR,NP=BR,OP=(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"},PP=(e,t)=>t&&1==e?"one":"other",IP=BR,zP=BR,DP=HR,jP=BR,FP=UR,BP=BR,HP=BR,WP=$R,$P=UR,UP=UR,KP=UR,GP=WR,VP={},YP=Array.prototype.slice,qP=function(e){return("0"+e.toString()).substr(-2)},QP=function(e){var t=typeof e;return"function"===t||"object"===t},JP=function(e){return"function"===typeof e},XP=function(e){return null!=e},ZP=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},eI=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},tI=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},nI=function(e){return!0===e||!1===e},rI=function(e){return null===e},oI=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))))},iI=function(e,t){return JP(e)?e(t):e},aI=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],eI(r)||tI(r)||nI(r)||ZP(r)||rI(r)?e[n]=r:(null==e[n]&&(e[n]={}),aI(e[n],r)));return e},sI={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"]},lI={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},uI={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},cI={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},dI=[null,"kb","mb","gb","tb"],fI={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};VP.reset=function(){var e;for(e in fI)this[e]=fI[e]},VP.initializeOptions=function(){var e;for(e in fI)XP(this[e])||(this[e]=fI[e])},VP.initializeOptions(),VP.locales={},VP.locales.get=function(e){var t=this[e]||this[VP.locale]||this.default;return JP(t)&&(t=t(e)),!1===ZP(t)&&(t=[t]),t},VP.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&VP.locale&&t.push(VP.locale),VP.fallbacks&&VP.defaultLocale&&t.push(VP.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),VP.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},VP.pluralization={},VP.pluralization.get=function(e){return this[e]||this[VP.locale]||this.default},VP.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},VP.currentLocale=function(){return this.locale||this.defaultLocale},VP.isSet=XP,VP.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(XP(t.defaultValue))return iI(t.defaultValue,e)},VP.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&QP(n))for(;i.length;)if(r=i.shift(),XP(n[r])){o=n[r];break}return o},VP.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()],QP(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&XP(n.defaultValue)&&(a=QP(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},VP.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:sI.meridian},VP.prepareOptions=function(){for(var e,t=YP.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(XP(n[r])||(n[r]=e[r]));return n},VP.createTranslationOptions=function(e,t){var n=[{scope:e}];return XP(t.defaults)&&(n=n.concat(t.defaults)),XP(t.defaultValue)&&n.push({message:t.defaultValue}),n},VP.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(XP(t.scope)?(o=t.scope,n=this.lookup(o,i)):XP(t.message)&&(n=iI(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):ZP(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):QP(n)&&XP(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},VP.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=XP(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,"$")},VP.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))},VP.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]'},VP.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},VP.nullPlaceholder=function(){return VP.missingPlaceholder.apply(VP,arguments)},VP.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),lI);var n,r,o=e<0,i=function(e,t){return oI("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)},VP.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),uI),this.toNumber(e,t)},VP.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)}},VP.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},VP.strftime=function(e,t,n){n=this.lookup("date",n);var r=VP.meridian();if(n||(n={}),n=this.prepareOptions(n,sI),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",qP(i))).replace("%e",i)).replace("%-d",i)).replace("%H",qP(l))).replace("%-H",l)).replace("%k",l)).replace("%I",qP(u))).replace("%-I",u)).replace("%l",u)).replace("%m",qP(s))).replace("%-m",s)).replace("%M",qP(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",qP(d))).replace("%-S",d)).replace("%w",o)).replace("%y",qP(a))).replace("%-y",qP(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},VP.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},VP.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),cI),this.toNumber(e,t)},VP.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."+dI[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)},VP.getFullScope=function(e,t){return t=t||{},ZP(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},VP.extend=function(e,t){return void 0===e&&void 0===t?{}:aI(e,t)},VP.t=VP.translate.bind(VP),VP.l=VP.localize.bind(VP),VP.p=VP.pluralize.bind(VP);DR({},{DEFAULT_LANGUAGE:()=>hI,DEFAULT_LANGUAGE_SHORT:()=>mI,flattenParams:()=>SI,flattenTranslationsJSON:()=>yI,format:()=>CI,formatWithKeys:()=>EI,getLongLanguageDesc:()=>kI,getShortLanguageDesc:()=>wI,parseLangFromUrl:()=>bI,resolveLocale:()=>_I,updateLangAttribute:()=>TI});var pI=[{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"}],hI="en-US",mI="en",gI=["zh-cn","zh-tw","qps-ploc"],vI=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),yI=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),vI(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=vI(r)&&r.value;return o&&(t[n]=o),t},{}):{}),bI=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},xI=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(gI.includes(e.toLocaleLowerCase()))return pI.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return pI.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},_I=(...e)=>{for(const t of e){const e=xI(t);if(e)return e.short}},wI=e=>{const t=xI(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${mI}'`),mI)},kI=e=>{const t=xI(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${hI}'`),hI)},SI=e=>Array.isArray(e[0])?e[0]:e,CI=(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)},EI=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),TI=e=>{const t=wI(e);document.documentElement.setAttribute("lang",t)},AI=class e{static configure(t,n=hI){e.translations=t,e.language=kI(n),e.languageShort=wI(n),TI(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=VP,VP.missingTranslation=e=>e,VP.defaultSeparator=null,VP.locale=e.language,VP.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];VP.pluralization[e.language]=e=>{try{const t=FR[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=EI(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))}}};jR(AI,"translations",{}),jR(AI,"translationsPlurals",{}),jR(AI,"language"),jR(AI,"languageShort"),jR(AI,"onTranslationsChangeListeners",[]),jR(AI,"i18nProvider"),jR(AI,"get",(e,...t)=>{var n;const r=SI(t);let o=null!=(n=AI.translations[e])?n:e;return r.length>0&&(o=CI(o,...r)),o});var MI=AI;var RI=function(){const[e,t]=E.useState(0);return E.useEffect(()=>{const n=MI.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),MI.get},LI=MI;function NI({defaultSelection:e}){const[t]=ic();return E.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 OI(e,t=!0){if(e)return!1;let n=Fi().getTextContent();return t&&(n=n.trim()),""===n}function PI(e){return()=>function(e){if(!OI(e,!1))return!1;const t=Fi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Uo(n))return!1;if(Ho(n)){if(!ti(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Tr(t[e]))return!1}}return!0}(e)}const II="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function zI({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]=E.useState(e.isEditable()),C=E.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),T=E.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 II(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),cc.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:T,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const DI=E.forwardRef(zI);function jI(e){return e.getEditorState().read(PI(e.isComposing()))}const FI=E.forwardRef(BI);function BI(e,t){const{placeholder:n,...r}=e,[o]=ic();return cc.jsxs(cc.Fragment,{children:[cc.jsx(DI,{editor:o,...r,ref:t}),null!=n&&cc.jsx(HI,{editor:o,content:n})]})}function HI({content:e,editor:t}){const n=function(e){const[t,n]=E.useState(()=>jI(e));return II(()=>{function t(){const t=jI(e);n(t)}return t(),Fs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=E.useState(t.isEditable());if(E.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:cc.jsx("div",{"aria-hidden":!0,children:i})}const WI=E.createContext(null),$I={didCatch:!1,error:null};class UI extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=$I}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($I))}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($I))}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=E.createElement(n,e);else{if(void 0===r)throw i;a=r}}return E.createElement(WI.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function KI({children:e,onError:t}){return cc.jsx(UI,{fallback:cc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const GI={name:"@lexical/react/ReactProvider"};function VI(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const YI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function qI({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=E.useState(()=>e.getDecorators());return YI(()=>e.registerDecoratorListener(e=>{Jy.flushSync(()=>{r(e)})}),[e]),E.useEffect(()=>{r(e.getDecorators())},[e]),E.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=cc.jsx(t,{onError:t=>e._onError(t),children:cc.jsx(E.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(Jy.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function QI({editor:e,ErrorBoundary:t}){return function(e){const t=ql.maybeFromEditor(e);if(t&&t.hasExtensionByName(GI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&VI(320,e);return!0}return!1}(e)?null:cc.jsx(qI,{editor:e,ErrorBoundary:t})}function JI(e){return e.getEditorState().read(PI(e.isComposing()))}function XI({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=ic();return function(e){YI(()=>Fs(Kd(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=eo();if(Dr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Tr(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()),Tr(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])}(r),cc.jsxs(cc.Fragment,{children:[e,cc.jsx(ZI,{content:t}),cc.jsx(QI,{editor:r,ErrorBoundary:n})]})}function ZI({content:e}){const[t]=ic(),n=function(e){const[t,n]=E.useState(()=>JI(e));return YI(()=>{function t(){const t=JI(e);n(t)}return t(),Fs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Qd();return n?"function"==typeof e?e(r):e:null}const ez=(e,t)=>cc.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:cc.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"})}),tz=E.forwardRef(ez),nz=(e,t)=>cc.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:[cc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),cc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),rz=E.forwardRef(nz),oz=(e,t)=>cc.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:cc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),iz=E.forwardRef(oz),az=(e,t)=>cc.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:cc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),sz=E.forwardRef(az),lz=(e,t)=>cc.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:cc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),uz=E.forwardRef(lz),cz=(e,t)=>cc.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:cc.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"})}),dz=E.forwardRef(cz),fz=(e,t)=>cc.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:cc.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"})}),pz=E.forwardRef(fz),hz=(e,t)=>cc.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:cc.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"})}),mz=E.forwardRef(hz),gz=(e,t)=>cc.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:cc.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"})}),vz=E.forwardRef(gz),yz=(e,t)=>cc.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:cc.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"})}),bz=E.forwardRef(yz),xz=(e,t)=>cc.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:cc.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"})}),_z=E.forwardRef(xz),wz=(e,t)=>cc.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:cc.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"})}),kz=E.forwardRef(wz),Sz=(e,t)=>cc.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:cc.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"})}),Cz=E.forwardRef(Sz),Ez=(e,t)=>cc.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:cc.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"})}),Tz=E.forwardRef(Ez),Az=(e,t)=>cc.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:cc.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"})}),Mz=E.forwardRef(Az),Rz=(e,t)=>cc.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:cc.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"})}),Lz=E.forwardRef(Rz);var Nz,Oz,Pz={exports:{}},Iz={};function zz(e){return zz="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},zz(e)}var Dz=(Oz||(Oz=1,Pz.exports=function(){if(Nz)return Iz;Nz=1;var e=T,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 Iz.Fragment=n,Iz.jsx=a,Iz.jsxs=a,Iz}()),Pz.exports);const jz=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Fz=[e=>{const t=jz.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function Bz(){return Dz.jsx(Vd,{matchers:Fz})}const Hz=()=>{const[e]=ic(),t=Qd(),n=E.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 E.useEffect(()=>Fs(e.registerMutationListener(Zl,e=>{n(e)}),e.registerMutationListener(au,e=>{n(e)}),e.registerCommand(gt,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=eo();let t;if(Dr(e)&&(t=e.focus.getNode().getParent()),Fr(e)&&(t=e.getNodes()[0]),lu(t)||iu(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),0)),[e,n]),null};function Wz(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Ks(n)?r:o:Ks(t)?r:o}const $z=new Set(["http:","https:","mailto:","sms:","tel:"]),Uz=e=>{const t=e;return t.password="",t.username="",t};function Kz(e){try{const t=new URL(e);return $z.has(t.protocol)?{url:Uz(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const Gz=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Vz(e){return"https://"===e||Gz.test(e)}const Yz=Uy(sw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),qz=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=E.useRef(null),[a,s]=E.useState(t);E.useEffect(()=>{s(t)},[t]);const l=E.useCallback(()=>{n(a),window.open(Kz(a).url,"_blank"),r()},[a,r,n]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=E.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return Dz.jsx(S_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>Dz.jsx(fw,{...e,children:Dz.jsx(yb,{className:"tekPopperMenu",children:Dz.jsxs(Yz,{direction:"row",children:[Dz.jsx(F_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),Dz.jsx(Hb,{onClick:l,children:Dz.jsx(Vw,{})}),Dz.jsx(Hb,{onClick:u,children:Dz.jsx(qw,{})})]})})})})},Qz=()=>{const[e]=ic(),t=Qd(),[n,r]=E.useState(null),[o,i]=E.useState(""),a=E.useRef(!1),s=E.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=eo();if(Dr(t)){const n=Wz(t),o=n.getParent();if(lu(o)||lu(n))return r(null),i(""),!1;let a;if(iu(o)&&(a=o),iu(n)&&(a=n),iu(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=E.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(uu,Kz(t))},{onUpdate:()=>{r(null)}})},[e]),u=E.useCallback(()=>{r(null)},[]);return E.useEffect(()=>Fs(e.registerCommand(ht,()=>s(),1),e.registerCommand(gt,()=>s(),1)),[e,s]),t?Dz.jsx(qz,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function Jz(){return Dz.jsx(Qw,{validateUrl:Vz})}!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 Xz=({children:e})=>Dz.jsx(Gy,{theme:bk(),children:e}),Zz={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:[zd,Od,Gu,Hu,Zl,au],onError:e=>{console.log(e)}},eD=({children:e,initialConfig:t,flags:n})=>Dz.jsx(Xz,{children:Dz.jsx("div",{className:"tek__editor__Wrapper",children:Dz.jsx(hc,{initialConfig:t||Zz,children:Dz.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,Dz.jsx(xc,{}),Dz.jsx(_c,{}),Dz.jsx(Jz,{}),Dz.jsx(Bz,{}),Dz.jsx(Qz,{}),Dz.jsx(Hz,{}),Dz.jsx(bc,{})]})})})});class tD extends Bo{__hasBorders;static getType(){return"TekCellNode"}static clone(e){return new tD(e.__hasBorders,e.__key)}static importJSON(e){return new tD(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 nD=e=>new tD(e),rD=e=>e instanceof tD;let oD=class e extends Bo{__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 iD(e){return e instanceof oD}let aD=class e extends Bo{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 sD(e){return e instanceof aD}const lD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),rD(t))return t;return null},uD=e=>{let t=e;for(;null!==t;){if(iD(t))return t;t=t?.getParent()}return null},cD=(e,t)=>{const n=uD(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},dD=e=>{const t=e?.getChildAtIndex(2);return t},fD=e=>{const t=e.getParent();if(sD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},pD=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},hD=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*pD(t):0,mD=(e,t)=>{const n=pD(t),r=n>0?e/n:0;return`${Math.min(100*r,100).toFixed(2)}%`},gD=e=>e?e.getChildren().filter(e=>sD(e)):[],vD=e=>{let t=!1;return gD(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(ei()),t=!0})}),t},yD=e=>{const t=eo();if(Dr(t)||Fr(t)){const n=t.getNodes().filter(e=>rD(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>iD(e)),o=uD(n[0]),i=gD(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Dr(t)){const e=t.focus.getNode();if(iD(e))return vD(e)}return n.forEach(e=>{e.clear(),e.append(ei())}),(()=>{const e=eo();let t=!1;if(Dr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=uD(n);!o&&iD(r)&&(o=r),iD(o)&&(t=vD(o))}return t})()}if(Dr(t)){const e=t.focus.getNode();if(iD(e))return vD(e)}}return!1},bD=e=>{if(e){const t=uD(e);if(iD(t)){const n=e.getParent(),r=gD(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}},xD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),rD(t))return t;return null},_D=e=>{const t=[];return gD(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},wD=(e,t)=>{_D(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},kD=pt("UPDATE_COL_WIDTHS_COMMAND"),SD=pt("BEGIN_COL_RESIZE"),CD=pt("END_COL_RESIZE"),ED=pt("INSERT_TEK_TABLE_COMMAND"),TD=({colKey:e,startX:t,onMouseDown:n})=>{const r=E.useCallback(t=>{n(t,e)},[e,n]);return Dz.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},AD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},MD=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,RD=({nodeKey:e,colWidths:t})=>{const[n]=ic(),r=Qd(),[o,i]=E.useState(null),a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),u=E.useRef(null),c=E.useCallback(t=>{const n=Oi(e);if(n){const e=n.getParent();if(iD(e)){const n=dD(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=E.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=mD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=mD(e,r),s=a.current.nxtColWidth-p,d=mD(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=mD(e,d),s=mD(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=E.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(mD(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(CD,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Oi(e),r=cD(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(kD,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=E.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Oi(t),o=cD(r,n);if(rD(r)){const t=fD(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=hD(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=pD(o)*f,h=hD(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=AD("tek__leftResizerIndicator","leftGripper");r.innerText=MD(e);let o=null;return t?(o=AD("tek__rightResizerIndicator","rightGripper"),o.innerText=MD(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(SD,void 0)}}})},[n,d,f]);return E.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),Dz.jsx(Dz.Fragment,{children:o&&r?o.map(e=>Dz.jsx(TD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},LD="TEK_TABLE_RESIZE_NODE";let ND=class e extends $o{__colWidths;static getType(){return LD}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:LD,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 Dz.jsx(RD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const OD=e=>e instanceof ND,PD=({nodeKey:e,colWidths:t})=>{const[n]=ic(),[r,o]=E.useState(t);return E.useEffect(()=>{n.getEditorState().read(()=>{const t=Oi(e),n=t?.getParent();if(iD(n)){const e=n.getResizeNode();if(OD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),Dz.jsx(Dz.Fragment,{children:r.map((t,n)=>Dz.jsx("col",{span:1,width:t},`${e}.${n}`))})};let ID=class e extends $o{__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 Dz.jsx(PD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}},zD=class extends $o{__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 DD=[oD,tD,aD,ID,ND],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()},FD=()=>{const e=eo();if(Dr(e)){const t=e.anchor.getNode(),n=lD(t);if(n){const e=fD(n),t=uD(n),r=gD(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)}}},BD=()=>{const e=eo();if(Dr(e)){const t=e.anchor.getNode(),n=lD(t),r=uD(n);if(r&&3===r.getChildren().length)return Hi(null),void r.remove();if(n){const{row:e}=bD(n);Hi(null),e?.remove()}}},HD=()=>{const e=eo();if(Dr(e)){const t=e.anchor.getNode(),n=uD(t),r=dD(n);if(sD(r)&&n){const e=r.getChildren().length,t=new aD;for(let r=0;r<e;r++){const e=nD(n?.__hasBorders);e.append(ei()),t.append(e)}n?.append(t)}}},WD=()=>{const e=eo();if(Dr(e)){const t=e.anchor.getNode(),n=uD(t);if(iD(n)){const e=gD(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=nD(n.__hasBorders);o.append(ei()),e[r].append(o),t=o}return jD(r,n),t}}return null},$D=Uy(Hb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),UD=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=ic(),[o,i]=E.useState(null),a=RI(),s=Boolean(o),l=E.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=E.useCallback(()=>{i(null)},[]),d=E.useCallback(e=>{l(e,HD,t)},[l,t]),f=E.useCallback(e=>{l(e,WD,t)},[l,t]),p=E.useCallback(t=>{l(t,BD,e)},[l,e]),h=E.useCallback(t=>{l(t,FD,e)},[l,e]),m=E.useCallback(()=>{r.update(()=>{(()=>{const e=eo();if(Dr(e)){const t=e.anchor.getNode(),n=uD(t);iD(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=eo();if(Dr(e)){const t=e.anchor.getNode(),n=uD(t);n&&(n.toggleBorders(),_D(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return E.useEffect(()=>Fs(r.registerCommand(ht,()=>(i(null),!1),4)),[r]),Dz.jsx(ew,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Dz.jsxs("div",{children:[Dz.jsx($D,{size:"small",onClick:u,children:Dz.jsx(IR,{height:12})}),Dz.jsx(S_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:Dz.jsx(yb,{id:"tekTableMenu",className:"tekPopperMenu",children:Dz.jsxs(Mw,{dense:!0,children:[Dz.jsx(Pw,{onClick:g,children:a("ToggleBorders")}),Dz.jsx(aw,{}),Dz.jsx(Pw,{onClick:d,children:a("AddNewRow")}),Dz.jsx(Pw,{onClick:f,children:a("AddNewColumn")}),Dz.jsx(aw,{}),Dz.jsx(Pw,{onClick:p,children:a("DeleteRow")}),Dz.jsx(Pw,{onClick:h,children:a("DeleteCol")}),Dz.jsx(aw,{}),Dz.jsx(Pw,{onClick:m,children:a("DeleteTable")})]})})})]})})},KD=()=>{const[e]=ic(),t=Qd(),[n,r]=E.useState(null),[o,i]=E.useState(!1),a=Boolean(n),s=E.useContext(vh),l=E.useRef(null),u=E.useCallback(()=>{o||e.update(()=>{const t=eo();if(Dr(t)){const n=lD(t.anchor.getNode());if(rD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);E.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)}},[]),E.useEffect(()=>Fs(e.registerCommand(ht,()=>(u(),!1),0),e.registerCommand(SD,()=>(r(null),!0),4),e.registerCommand(CD,()=>(u(),!0),4)),[e,u]),E.useEffect(()=>{r(null)},[t]);const c=E.useCallback(()=>{r(null)},[]),d=E.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=E.useCallback(()=>{clearTimeout(l.current)},[]);return Dz.jsx(S_,{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:Dz.jsx(UD,{onDeleteAction:c,onAction:d,onClick:f})})},GD=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Oi(n),r=e?.getParent();Go(r)&&null!==e&&t.push(e)}if(t.length>0){const e=ei();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},VD=()=>{const[e]=ic(),t=Qd();return E.useEffect(()=>Fs(e.registerMutationListener(tD,t=>{e.update(()=>{GD(t)})}),e.registerMutationListener(aD,t=>{e.update(()=>{GD(t)})}),e.registerMutationListener(oD,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Oi(e);if(iD(t)&&!t.isValid()){const e=ei();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(ED,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new oD(!0,"100%"),n=new ID(e),r=new ND(e),o=[];for(let t=0;t<2;t++){const t=new aD;for(let n=0;n<e.length;n++){const e=nD(!0),n=ei();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();sl(e)}),!0),0),e.registerCommand(kD,({colWidths:e,nodeKey:t})=>{const n=Oi(t);if(OD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof ID})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Ft,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=eo();if(Dr(e)){const t=e.focus.getNode(),n=uD(t),r=xD(t);if(iD(n)){const e=ei();e.append(Er("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=eo();if(Dr(e)){const t=e.focus.getNode(),n=uD(t);if(iD(n)){const e=ei();e.append(Er("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Ht,e=>yD(e),4),e.registerCommand($t,e=>yD(e),4),e.registerCommand(Ut,e=>{const t=eo();if(Dr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),rD(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(sD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(bD(o),!e.shiftKey),!0}return!1},0),e.registerCommand(en,e=>{const t=e?.target,n=eo();if(t.classList.contains("tek__table")&&Dr(n)&&iD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Dr(n)){const t=n.getNodes().some(e=>rD(e)),r=n.getNodes().some(e=>iD(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),E.useEffect(()=>e.registerCommand(ht,()=>(t&&e.update(()=>{(e=>{const t=eo(),n=[];if(oa(oD).forEach(e=>{const t=_D(e);n.push(...t)}),Dr(t)){t.getNodes().filter(e=>iD(e)).forEach(t=>{wD(t,e)});const n=t.focus.getNode();if(iD(n))return void wD(n,e)}if(Dr(t)||Fr(t)){const r=new Set(t.getNodes().map(e=>xD(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]),E.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];oa(oD).forEach(e=>{const n=_D(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},YD=()=>Dz.jsxs(Dz.Fragment,{children:[Dz.jsx(VD,{}),Dz.jsx(KD,{})]}),qD=()=>{const e=Qd(),t=RI();return e?Dz.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):Dz.jsx("div",{className:"tek__editor__logo",children:Dz.jsx(tz,{height:32})})},QD=({showPlaceholder:e})=>Dz.jsxs("div",{style:{position:"relative"},children:[Dz.jsx(NI,{}),Dz.jsx(XI,{contentEditable:Dz.jsx(FI,{className:"tek__editor__input"}),placeholder:!1!==e?Dz.jsx(qD,{}):null,ErrorBoundary:KI})]}),JD=Uy(sw)(({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"}})),XD=["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"],ZD="#404040",ej="16px",tj=E.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:XD[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),nj=({children:e})=>{const t=(()=>{const[e]=ic(),[t,n]=E.useState(!1),[r,o]=E.useState(!1),[i,a]=E.useState(!1),[s,l]=E.useState("paragraph"),[u,c]=E.useState(XD[0]),[d,f]=E.useState(ej),[p,h]=E.useState(ZD),[m,g]=E.useState("left"),[v,y]=E.useState(!1),b=E.useCallback(()=>{const t=eo();if(Dr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Ba(r,e=>{const t=e.getParent();return null!==t&&ga(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(Xu(i)){const e=il(r,Gu),t=e?e.getListType():i.getListType();l(t)}else{const e=Hd(i)?i.getTag():i.getType();l(e)}if(Xu(i)||Hd(i)){const e=il(i,Xo);e&&(u=e)}const d=Wz(t);if(iu(d.getParent())||iu(d)?y(!0):y(!1),ti(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=tl(t,"font-family",XD[0]),m=tl(t,"font-size",ej);c(""===p?XD[0]:p),f(""!==m&&m?m:ej),h(tl(t,"color",ZD))}else Fr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof zD}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",ZD));const t=e.getTextFormatStyle("fontSize",ej),r=e.getTextFormatStyle("fontFamily",XD[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(Ku(e)){const t=il(e,Gu);return t?t.getListType():"bullet"}return Hd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return E.useEffect(()=>Fs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(ht,()=>(e.getEditorState().read(()=>{b()}),!1),0)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return Dz.jsx(tj.Provider,{value:t,children:e})},rj=({children:e})=>Dz.jsx(nj,{children:Dz.jsx(JD,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),oj=({anchorEl:e,children:t})=>{const n=Boolean(e);return Dz.jsx(S_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>Dz.jsx(fw,{...e,children:Dz.jsx(yb,{className:"tekPopperMenu",children:t})})})},ij=Uy(Vb)({fontSize:12,textOverflow:"ellipsis"}),aj=({startIcon:e,value:t,onClick:n,compact:r})=>Dz.jsx(Kw,{title:t,PopperProps:{disablePortal:!0},children:Dz.jsx(X_,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:Dz.jsx(uz,{height:12}),children:r?e:Dz.jsx(ij,{children:t})})}),sj=Uy(Pw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),lj=[{text:"AlignLeft",align:"left",icon:()=>Dz.jsx(iz,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>Dz.jsx(rz,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>Dz.jsx(sz,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],uj=({compact:e=!1})=>{const[t]=ic(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(tj),i=RI(),a=E.useMemo(()=>lj.find(e=>e.align===o.align)||lj[0],[o.align]),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=E.useCallback(()=>{r(null)},[]),u=E.useCallback(e=>{r(null),t.dispatchCommand(qt,e),t.focus()},[t]);return Dz.jsx(ew,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Dz.jsxs("div",{children:[Dz.jsx(aj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),Dz.jsx(oj,{anchorEl:n,children:Dz.jsx(Mw,{dense:!0,children:lj.map(e=>Dz.jsxs(sj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[Dz.jsx(ww,{children:e.icon()}),Dz.jsx(ij,{children:i(e.text)})]},e.align))})})]})})},cj=({text:e,icon:t})=>Dz.jsxs(Dz.Fragment,{children:[Dz.jsx(ww,{children:t}),Dz.jsx(ij,{children:e})]}),dj=({text:e,icon:t})=>Dz.jsxs(Dz.Fragment,{children:[Dz.jsx(ww,{children:Dz.jsx(ij,{fontWeight:"bold",children:t})}),Dz.jsx(ij,{children:e})]}),fj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],pj=(e,t,n)=>({icon:Dz.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),hj=({compact:e=!1})=>{const[t]=ic(),{blockFormat:n}=E.useContext(tj),[r,o]=E.useState(null),i=RI(),a=E.useMemo(()=>{let e={icon:Dz.jsx(vz,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=pj("Heading1","H1",i)),"h2"===n.blockType&&(e=pj("Heading2","H2",i)),"h3"===n.blockType&&(e=pj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=Dz.jsx(pz,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=Dz.jsx(dz,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=Dz.jsx(mz,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=E.useCallback(()=>{o(null)},[]),l=E.useCallback(e=>{t.update(()=>{const n=eo();Dr(n)?(Vs(n,{"font-size":null}),function(e,t,n=Ys){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=Jr(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Ba(e.getNode(),Ma),a=Ba(t.getNode(),Ma);Ho(n)&&o.set(n.getKey(),n),Ho(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(Ho(t)&&Ma(t))o.set(t.getKey(),t);else if(null===r){const e=Ba(t,Ma);Ho(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(eo())&&Hi(i)}(n,e)):Fr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=E.useCallback((e,n)=>{o(null),t.update(()=>{const r=eo();Dr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=E.useCallback(e=>{o(null),l(()=>Bd(e))},[l]),d=E.useCallback(()=>{o(null),l(()=>ei())},[l]),f=E.useCallback(()=>{o(null),l(()=>Pd())},[l]);return Dz.jsx(ew,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Dz.jsxs("div",{children:[Dz.jsx(aj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),Dz.jsx(oj,{anchorEl:r,children:Dz.jsxs(Mw,{dense:!0,children:[Dz.jsx(Pw,{dense:!0,onClick:d,children:Dz.jsx(cj,{text:i("Paragraph"),icon:Dz.jsx(vz,{height:12})})}),Dz.jsx(Pw,{dense:!0,onClick:f,children:Dz.jsx(cj,{text:i("Quote"),icon:Dz.jsx(pz,{height:12})})}),fj.map(e=>Dz.jsx(Pw,{dense:!0,onClick:()=>{c(e.tag)},children:Dz.jsx(dj,{text:i(e.text),icon:e.icon})},e.text)),Dz.jsx(aw,{}),Dz.jsx(Pw,{dense:!0,onClick:()=>{u("bullet",ec)},children:Dz.jsx(cj,{text:i("UnorderedList"),icon:Dz.jsx(dz,{height:12})})}),Dz.jsx(Pw,{dense:!0,onClick:()=>{u("number",tc)},children:Dz.jsx(cj,{text:i("OrderedList"),icon:Dz.jsx(mz,{height:12})})})]})})]})})},mj=Uy(X_,{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})),gj=(e,t)=>{const n=n=>{const r=RI();return Dz.jsx(Kw,{title:r(t),PopperProps:{disablePortal:!0},children:Dz.jsx("div",{children:Dz.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},vj=({format:e,icon:t,...n})=>{const r=E.useContext(tj),[o]=ic(),i=E.useCallback(()=>{o.dispatchCommand(Mt,e)},[o,e]);return Dz.jsx(mj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},yj=gj(vj,"Bold"),bj=()=>Dz.jsx(yj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:Dz.jsx(bz,{height:12})}),xj=pt("APPLY_TEXT_FORMAT"),_j=pt("CLEAR_TEXT_FORMAT"),wj=gj(mj,"ClearFormat"),kj=()=>{const[e]=ic(),t=E.useCallback(()=>{e.update(()=>{const t=eo();if(Dr(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(Tr(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),al(i).setFormat(""));const a=i.getParent();(Hd(a)||Id(a))&&a.replace(ei(),!0)}else(Hd(t)||Id(t))&&t.replace(ei(),!0)}catch{}})}e.dispatchCommand(_j,void 0)})},[e]);return Dz.jsx(wj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:Dz.jsx(_z,{height:12})})};var Sj,Cj={},Ej=function(){if(Sj)return Cj;Sj=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"==zz(o=function(e){if("object"!=zz(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zz(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},Cj.Color=u,Cj}();const Tj=Uy(sw)(({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"})),Aj=Uy(W_)(({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"})),Mj=({palette:e,color:t,onColorChange:n})=>{const[r,o]=E.useState(t),i=Ty(),a=E.useCallback(e=>{o(e),n(e)},[n]);return Dz.jsx(Tj,{children:e.map(e=>Dz.jsx(Aj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?Dz.jsx(qw,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function Rj(e,t,n){return Math.max(t,Math.min(n,e))}const Lj=(e,t)=>{const n=new Ej.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"}},Nj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Rj(e.clientX-n,0,o)/o*100,s=100-Rj(e.clientY-r,0,i)/i*100,l=new Ej.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Oj=Uy(sw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Pj=Uy(W_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Ij=Uy(W_)(({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 );"})),zj=Uy(W_)({width:"16px",height:"16px",borderRadius:"2px"}),Dj=Uy(sw)({flexDirection:"row",alignItems:"center"}),jj=Uy(W_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),Fj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=E.useState(n),a=E.useRef(n),[s,l]=E.useState(!0),[u,c]=E.useState(o),d=E.useRef(null),f=E.useRef(null),p=E.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=E.useState({left:"0",top:"0"});E.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const g=E.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=Lj(o,e);m(t)}},[o]),v=E.useMemo(()=>`hsl(${new Ej.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Nj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ej.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=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Rj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new Ej.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ej.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=E.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=E.useCallback(t=>{if(c(t.target.value),!new Ej.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=Lj(a.current,d.current);m(e)}},[e]);return Dz.jsxs(Oj,{children:[s?Dz.jsx(Mj,{palette:r,color:o,onColorChange:x}):Dz.jsxs(Dz.Fragment,{children:[Dz.jsx(Pj,{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=Nj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new Ej.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:Dz.jsx(jj,{ref:f,style:{...h,backgroundColor:o}})}),Dz.jsx(Ij,{onClick:b})]}),Dz.jsxs(Dj,{children:[Dz.jsx(zj,{style:{backgroundColor:o}}),Dz.jsx(F_,{style:{flex:1},value:u,onChange:_}),Dz.jsx(Hb,{onClick:()=>{l(!s)},children:Dz.jsx(kz,{height:12})}),Dz.jsx(Hb,{onClick:t,children:Dz.jsx(qw,{height:12})})]})]})},Bj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Hj=gj(X_,"Color"),Wj=({colorPalette:e=Bj})=>{const[t]=ic(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(tj),i=E.useCallback((e,n)=>{t.update(()=>{const t=eo();Dr(t)&&Vs(t,{color:e})},n),t.dispatchCommand(xj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return Dz.jsx(ew,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Dz.jsxs("div",{children:[Dz.jsx(Hj,{variant:"text",size:"small",endIcon:Dz.jsx(uz,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:Dz.jsx(W_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),Dz.jsx(oj,{anchorEl:n,children:Dz.jsx(Fj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};gj(mj,"Export");const $j=({compact:e=!1,fonts:t=XD})=>{const[n]=ic(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(tj),a=E.useMemo(()=>t,[t]),s=E.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=eo();Dr(e)&&Vs(e,{"font-family":t||XD[0]}),n.dispatchCommand(xj,{styleKey:"fontFamily",styleValue:t||XD[0]}),n.focus()})},[n]);return Dz.jsx(ew,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Dz.jsxs("div",{children:[Dz.jsx(aj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:Dz.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),Dz.jsx(oj,{anchorEl:r,children:Dz.jsx(Mw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>Dz.jsx(sj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:Dz.jsx(ij,{children:e})},e))})})]})})},Uj=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],Kj=(e,t)=>"px"!==t&&e.endsWith("px")?`${e.slice(0,-2)}${t}`:e,Gj=e=>parseInt(e,10),Vj=({fontSize:e,onSelected:t})=>{const[n,r]=E.useState(""),o=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=E.useCallback(()=>{const e=Gj(n);e&&t(`${e}px`)},[t,n]),a=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return Dz.jsxs(sw,{direction:"row",children:[Dz.jsx(F_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),Dz.jsx(Hb,{disabled:!Gj(n),onClick:i,children:Dz.jsx(qw,{height:12})})]})},Yj=({compact:e=!1,unit:t="px"})=>{const[n]=ic(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(tj),a=Kj(i.fontSize,t),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=E.useCallback(()=>{o(null)},[]),u=E.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=eo();Dr(t)&&Vs(t,{"font-size":e}),n.dispatchCommand(xj,{styleKey:"fontSize",styleValue:e})})},[n]),c=E.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=E.useCallback(e=>{u(e)},[u]);return Dz.jsx(ew,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Dz.jsxs("div",{children:[Dz.jsx(aj,{startIcon:e?Dz.jsx(ij,{children:a}):void 0,value:a,onClick:s,compact:e}),Dz.jsxs(oj,{anchorEl:r,children:[Dz.jsx(Vj,{fontSize:a,onSelected:d}),Dz.jsx(aw,{}),Dz.jsx(Mw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:Uj.map(e=>Dz.jsx(Pw,{"data-font-size":e,onClick:c,children:Dz.jsx(ij,{children:Kj(e,t)})},e))})]})]})})},qj=gj(mj,"InsertTable"),Qj=()=>{const[e]=ic(),t=E.useCallback(()=>{e.dispatchCommand(ED,void 0)},[e]);return Dz.jsx(qj,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:Dz.jsx(Cz,{height:12})})},Jj=gj(vj,"Italic"),Xj=()=>Dz.jsx(Jj,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:Dz.jsx(Tz,{height:12})}),Zj=gj(mj,"InsertHyperlink"),eF=()=>{const[e]=ic(),{blockFormat:t}=E.useContext(tj),n=E.useCallback(()=>{t.isLink?e.dispatchCommand(uu,null):e.dispatchCommand(uu,Kz("https://"))},[e,t.isLink]);return Dz.jsx(Zj,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:Dz.jsx(Mz,{height:12})})};gj(mj,"Toggle");const tF=gj(vj,"Underline"),nF=()=>Dz.jsx(tF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:Dz.jsx(Lz,{height:12})}),rF=()=>Dz.jsx(aw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var oF={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=="}},iF={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)"}},aF={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=="}},sF={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=="}},lF={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=="}},uF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},cF={AddNewColumn:{value:"열 추가",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=="}},dF={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=="}},fF={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=="}},pF={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=="}},hF={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=="}},mF={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=="}},gF={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 vF={de:oF,es:aF,en:iF,fr:sF,it:lF,ja:uF,ko:cF,nl:dF,pl:fF,pt:pF,ru:hF,sv:mF,tr:gF,"de-de":oF,"es-es":aF,"en-us":iF,"fr-fr":sF,"it-it":lF,"ja-jp":uF,"ko-kr":cF,"nl-nl":dF,"pl-pl":fF,"pt-br":pF,"ru-ru":hF,"sv-se":mF,"tr-tr":gF,"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 yF(e,t){return e.getEditorState().read(()=>{const e=Oi(t);return null!==e&&e.isSelected()})}function bF(e){const[t]=ic(),[n,r]=E.useState(()=>yF(t,e));return E.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(yF(t,e))});return()=>{n=!1,o()}},[t,e]),[n,E.useCallback(n=>{t.update(()=>{let t=eo();Fr(t)||(t=Xr(),Hi(t)),Fr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),E.useCallback(()=>{t.update(()=>{const e=eo();Fr(e)&&e.clear()})},[t])]}var xF,_F={};var wF=function(){if(xF)return _F;xF=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},_F.Color=u,_F}();function kF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function SF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var CF,EF;var TF=function(){if(EF)return CF;EF=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},CF=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},CF}();let AF=[];const MF=new TF.EventEmitter;MF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==AF.indexOf(t)},MF.setSelected=e=>{AF!==e&&(AF=e,MF.emit("change"))};function RF({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=E.useContext(M),[a]=ic(),s=Qd(),[l,u,c]=bF(n),d=E.useRef(null),[f,p]=E.useState(t),[h,m]=E.useState(t);f!==t&&(p(t),m(t));const g=E.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=E.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 wF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);E.useEffect(()=>Fs(a.registerCommand(Mt,e=>(a.update(()=>{const t=e,r=eo();if(Dr(r)&&l){if(SF(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&&Fr(r)&&SF(n,r)&&d.current){const e=kF(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(xj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&v.expressionColor)return!1;if(d.current&&l){const t=eo();if(SF(n,t)){const t=kF(d.current?.style);t[e.styleKey]=e.styleValue,m(t)}}}),!1),0),a.registerCommand(_j,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=eo();if(SF(n,e)){const e={};v.expressionColor&&(e.color=v.expressionColor),m(e)}}}),!1),0),a.registerCommand(ht,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=eo(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),MF.setSelected(e)}),!1),1)),[a,u,c,l,n,v]),E.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&MF.setSelected([]))},[s,c,i]),E.useEffect(()=>{a.update(()=>{!function(e,t){const n=Oi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,h)})},[h,a,n]);const y=E.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=eo();if(Fr(e)){const t=Oi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return cc.jsx("span",{style:{...g,...h,color:v.expressionColor?v.expressionColor:h.color},onClick:y,ref:d,id:e,children:v.value})}const LF="qlik.expression.node";class NF extends zD{__expressionId;static getType(){return LF}static clone(e){return new NF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new NF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:LF,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 cc.jsx(RF,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function OF(e){return e instanceof NF}const PF="ImageNode",IF=pt("INSERT_IMAGE_COMMAND"),zF=()=>{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()},DF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===PF)r.id||(r.id=zF()),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)DF(e,t,n);return{imageIds:t,newPropertyImages:n}},jF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function FF(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=DF(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)}n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")&&"seedData"in r&&delete r.seedData,await t.setProperties(r)}catch(e){console.error(e)}}function BF(){const[e]=ic(),t=Qd(),{edit:n,model:r,emitter:o,flags:i}=E.useContext(M);return E.useEffect(()=>{const t=()=>{r&&FF(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]),E.useEffect(()=>{e.setEditable(n)},[n]),E.useEffect(()=>{t&&e.focus()},[t,e]),null}class HF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Oi(e);if(OF(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 WF(){const{layout:e,emitter:t,interactionState:n}=E.useContext(M),[r]=ic(),o=E.useRef(new HF),i=Qd(),a=n?.edit&&e?.permissions?.update;return E.useEffect(()=>{const e=r.registerMutationListener(NF,e=>{r.getEditorState().read(()=>{for(const[t,n]of e)o.current.update(t,n)})});return()=>{e()}},[r]),E.useEffect(()=>{e&&r.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=oa(NF),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=eo(),{cId:t}=n[n.length-1],r=new NF(t,{}),o=Er(" "),i=Er("");Dr(e)?e.insertNodes([i,r,o]):sl(r)}}})},[e,r]),E.useEffect(()=>r.registerCommand(Nt,e=>("Backspace"===e.key&&r.update(()=>{const e=eo();Fr(e)&&e.getNodes().forEach(e=>{OF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[r]),E.useEffect(()=>{if(!i&&a){const e=o.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[i,a,t]),null}const $F=/"/g;function UF(){const{model:e,emitter:t}=E.useContext(M),[n]=ic(),r=E.useRef(new Map);return E.useEffect(()=>{const o=n.registerMutationListener(vr,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($F,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function KF(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 GF,VF="top",YF="top-right",qF="right",QF="bottom-right",JF="bottom",XF="bottom-left",ZF="left",eB="top-left";KF(KF(KF(KF(KF(KF(KF(KF(KF(KF(GF={},"equal-equal",[VF,JF]),"equal-higher",[JF,QF]),"equal-lower",[VF,YF]),"equal-void",[VF,JF]),"higher-equal",[ZF,XF,VF,YF]),"higher-higher-acute",[JF,XF,ZF,YF]),"higher-higher-obtuse",[JF,VF]),"higher-lower-negative",[VF,YF,qF]),"higher-lower-positive",[JF,XF,ZF]),"higher-void",[VF]),KF(KF(KF(KF(KF(KF(KF(KF(KF(KF(GF,"lower-equal",[VF]),"lower-higher-negative",[VF,eB]),"lower-higher-positive",[QF]),"lower-lower-acute",[VF,eB,ZF,YF,qF]),"lower-lower-obtuse",[VF,JF]),"lower-void",[VF]),"void-equal",[VF]),"void-higher",[VF,JF]),"void-lower",[VF,JF,ZF]),"void-void",[VF]),KF(GF,"unclassified",[VF,JF,qF,ZF,YF,QF,XF,eB]);var tB,nB,rB=["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"],oB=["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 iB=function(){if(nB)return tB;nB=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 tB=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},tB}();function aB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(iB);var uB=.7,cB=1/uB,dB="\\s*([+-]?\\d+)\\s*",fB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hB=/^#([0-9a-f]{3,8})$/,mB=new RegExp(`^rgb\\(${dB},${dB},${dB}\\)$`),gB=new RegExp(`^rgb\\(${pB},${pB},${pB}\\)$`),vB=new RegExp(`^rgba\\(${dB},${dB},${dB},${fB}\\)$`),yB=new RegExp(`^rgba\\(${pB},${pB},${pB},${fB}\\)$`),bB=new RegExp(`^hsl\\(${fB},${pB},${pB}\\)$`),xB=new RegExp(`^hsla\\(${fB},${pB},${pB},${fB}\\)$`),_B={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 wB(){return this.rgb().formatHex()}function kB(){return this.rgb().formatRgb()}function SB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=hB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?CB(t):3===n?new MB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?EB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?EB(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=mB.exec(e))?new MB(t[1],t[2],t[3],1):(t=gB.exec(e))?new MB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vB.exec(e))?EB(t[1],t[2],t[3],t[4]):(t=yB.exec(e))?EB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=bB.exec(e))?IB(t[1],t[2]/100,t[3]/100,1):(t=xB.exec(e))?IB(t[1],t[2]/100,t[3]/100,t[4]):_B.hasOwnProperty(e)?CB(_B[e]):"transparent"===e?new MB(NaN,NaN,NaN,0):null}function CB(e){return new MB(e>>16&255,e>>8&255,255&e,1)}function EB(e,t,n,r){return r<=0&&(e=t=n=NaN),new MB(e,t,n,r)}function TB(e){return e instanceof lB||(e=SB(e)),e?new MB((e=e.rgb()).r,e.g,e.b,e.opacity):new MB}function AB(e,t,n,r){return 1===arguments.length?TB(e):new MB(e,t,n,null==r?1:r)}function MB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function RB(){return`#${PB(this.r)}${PB(this.g)}${PB(this.b)}`}function LB(){const e=NB(this.opacity);return`${1===e?"rgb(":"rgba("}${OB(this.r)}, ${OB(this.g)}, ${OB(this.b)}${1===e?")":`, ${e})`}`}function NB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function OB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function PB(e){return((e=OB(e))<16?"0":"")+e.toString(16)}function IB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new DB(e,t,n,r)}function zB(e){if(e instanceof DB)return new DB(e.h,e.s,e.l,e.opacity);if(e instanceof lB||(e=SB(e)),!e)return new DB;if(e instanceof DB)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 DB(a,s,l,e.opacity)}function DB(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 FB(e){return Math.max(0,Math.min(1,e||0))}function BB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}aB(lB,SB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wB,formatHex:wB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zB(this).formatHsl()},formatRgb:kB,toString:kB}),aB(MB,AB,sB(lB,{brighter(e){return e=null==e?cB:Math.pow(cB,e),new MB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?uB:Math.pow(uB,e),new MB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new MB(OB(this.r),OB(this.g),OB(this.b),NB(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:RB,formatHex:RB,formatHex8:function(){return`#${PB(this.r)}${PB(this.g)}${PB(this.b)}${PB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:LB,toString:LB})),aB(DB,function(e,t,n,r){return 1===arguments.length?zB(e):new DB(e,t,n,null==r?1:r)},sB(lB,{brighter(e){return e=null==e?cB:Math.pow(cB,e),new DB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?uB:Math.pow(uB,e),new DB(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 MB(BB(e>=240?e-240:e+120,o,r),BB(e,o,r),BB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new DB(jB(this.h),FB(this.s),FB(this.l),NB(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=NB(this.opacity);return`${1===e?"hsl(":"hsla("}${jB(this.h)}, ${100*FB(this.s)}%, ${100*FB(this.l)}%${1===e?")":`, ${e})`}`}}));const HB=Math.PI/180,WB=180/Math.PI,$B=.96422,UB=.82521,KB=4/29,GB=6/29,VB=3*GB*GB,YB=GB*GB*GB;function qB(e){if(e instanceof QB)return new QB(e.l,e.a,e.b,e.opacity);if(e instanceof tH)return nH(e);e instanceof MB||(e=TB(e));var t,n,r=eH(e.r),o=eH(e.g),i=eH(e.b),a=JB((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=JB((.4360747*r+.3850649*o+.1430804*i)/$B),n=JB((.0139322*r+.0971045*o+.7141733*i)/UB)),new QB(116*a-16,500*(t-a),200*(a-n),e.opacity)}function QB(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function JB(e){return e>YB?Math.pow(e,1/3):e/VB+KB}function XB(e){return e>GB?e*e*e:VB*(e-KB)}function ZB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function eH(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tH(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nH(e){if(isNaN(e.h))return new QB(e.l,0,0,e.opacity);var t=e.h*HB;return new QB(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}aB(QB,function(e,t,n,r){return 1===arguments.length?qB(e):new QB(e,t,n,null==r?1:r)},sB(lB,{brighter(e){return new QB(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new QB(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 MB(ZB(3.1338561*(t=$B*XB(t))-1.6168667*(e=1*XB(e))-.4906146*(n=UB*XB(n))),ZB(-.9787684*t+1.9161415*e+.033454*n),ZB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),aB(tH,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof tH)return new tH(e.h,e.c,e.l,e.opacity);if(e instanceof QB||(e=qB(e)),0===e.a&&0===e.b)return new tH(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*WB;return new tH(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new tH(e,t,n,null==r?1:r)},sB(lB,{brighter(e){return new tH(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new tH(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nH(this).rgb()}}));var rH=e=>()=>e;function oH(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):rH(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?oH: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):rH(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=AB(e)).r,(t=AB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=oH(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 iH,aH="center",sH="bottom";function lH(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 uH(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dH)):void 0===t&&(t=cH);for(var n,r,o,i,a,s=new hH(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 hH(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(pH)}function cH(e){return e.children}function dH(e){return Array.isArray(e)?e[1]:null}function fH(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function pH(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function hH(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:aH,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:aH,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:aH,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:aH},{key:"DataRangeIncludingZero",alignment:sH},{key:"LimitedData",alignment:sH},{key:"NegativeOrZeroValues",alignment:sH}].reduce(function(e,t){return e[t.key]=t,e},{}),hH.prototype=uH.prototype={constructor:hH,count:function(){return this.eachAfter(lH)},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 uH(this).eachBefore(fH)},[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)}},iH=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}},iH({exports:{}});const mH=e=>`text-toolbar.${e?.id}`,gH=(e,t)=>cc.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:cc.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"})}),vH=E.forwardRef(gH),yH=gj(mj,"InsertImage"),bH=()=>{const{flags:e,showMediaLibrary:t}=E.useContext(M),[n]=ic(),r=E.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(IF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?cc.jsx(yH,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:cc.jsx(vH,{height:12})}):null};function xH(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=E.useContext(M),a=E.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=E.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?oB:rB}(r),[r]),l=E.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"),cc.jsx(S_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:21},id:mH(n),children:({TransitionProps:e})=>cc.jsx(fw,{...e,children:cc.jsx(yb,{sx:{borderRadius:1,padding:.25},children:cc.jsxs(rj,{children:[cc.jsx(hj,{compact:!0}),cc.jsx(rF,{}),cc.jsx($j,{compact:!0,fonts:s}),cc.jsx(Yj,{compact:!0,unit:c}),cc.jsx(rF,{}),cc.jsx(bj,{}),cc.jsx(Xj,{}),cc.jsx(nF,{}),cc.jsx(eF,{}),cc.jsx(Wj,{colorPalette:l}),cc.jsx(rF,{}),cc.jsx(uj,{compact:!0}),cc.jsx(rF,{}),cc.jsx(kj,{}),cc.jsx(rF,{}),cc.jsx(Qj,{}),cc.jsx(bH,{})]})})})})}function _H(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))}}_H(".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");_H("/*\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 wH=1,kH=8,SH=2,CH=4;function EH({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=E.useRef(null),a=E.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=E.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===wH||e===CH?"ew":e===kH||e===SH?"ns":e&kH&&e&CH||e&SH&&e&wH?"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&(wH|CH),i=r.direction&(SH|kH);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&wH?-n:n;const o=TH(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&SH?-n:n;const o=TH(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&wH?-n:n;const o=TH(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 cc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,kH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,kH|wH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_ne"})}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,wH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,SH|wH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_se"})}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,SH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,SH|CH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_sw"})}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,CH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,kH|CH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_nw"})})]})}const TH=(e,t,n)=>Math.min(Math.max(e,t),n),AH=new Map,MH=({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=AH.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=>(AH.set(e,t),t)),AH.set(e,t),t;throw t})(r);E.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 cc.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 RH({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=E.useRef(null),[l,u,c]=bF(a),[d,f]=E.useState(!1),[p]=ic(),h=Qd(),{layout:m,printingStatus:g}=E.useContext(M),v=void 0,y=E.useMemo(()=>e||jF(m,t),[e,m,t]);E.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=E.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=E.useCallback(()=>!!l&&(Hi(null),p.focus(),!0),[l,p]);E.useEffect(()=>Fs(p.registerCommand(gt,b,1),p.registerCommand(Qt,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Wt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return cc.jsx(E.Suspense,{fallback:null,children:cc.jsxs(cc.Fragment,{children:[cc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:cc.jsx(MH,{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(gt,e.nativeEvent)}})}),i&&l&&w?cc.jsx(EH,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Oi(a);n?.getType()===PF&&n.setWidthAndHeight(e,t)})}}):null]})})}var LH=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),NH=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),OH=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class PH extends $o{__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 PF}static clone(e){return new PH({...e.__props,key:e.getKey()})}decorate(){return cc.jsx(RH,{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:PF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===PH.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||NH(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=LH(n);a=OH(a),a=decodeURIComponent(a);return{node:IH({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return IH(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const IH=e=>new PH(e),zH=document.createElement("img");function DH(e){const t=e.target;return!!(t&&Sa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Sa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function jH(){const e=eo();if(!Fr(e))return null;const t=e.getNodes()[0];return t.getType()===PF?t:null}function FH(e,t){const n=jH();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!==PF?null:r}(e);if(!r)return!1;const o=Ba(n,e=>!lu(e)&&iu(e));if(e.preventDefault(),DH(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=Jr();null!=i&&a.applyDOMRange(i),Hi(a),t.dispatchCommand(IF,{...r}),o&&t.dispatchCommand(uu,o.getURL())}return!0}zH.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const BH=({imageFromClipboardSupport:e=!1})=>{const[t]=ic(),{emitter:n,layout:r,model:o,handlePasteData:i}=E.useContext(M),[a,s]=E.useState();return E.useEffect(()=>{"function"==typeof o?.getProperties&&o?.getProperties().then(e=>{s(e)})},[r,o]),E.useEffect(()=>Fs(t.registerCommand(IF,({id:e,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(t.update(()=>{const t=IH({id:e,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});lo([t]),ga(t.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(t,ei).selectEnd()}),!0),0),t.registerCommand(Zt,e=>{const n=eo();if(!n)return!1;const o=n.getNodes().some(e=>e.getType()===PH.getType());if(!o)return!1;const i=vd(n),s=i["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===PH.getType()){const t={...e};return t.tempUrl=t.tempUrl||jF(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 hd(t,ul(e,ClipboardEvent)?e:null,n),!0}return!1},3),t.registerCommand(Ct,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(IF,{method:"mediaLibrary",tempUrl:e.imagePath,tempUrlDef:e.imagePath})})(),!0),1),t.registerCommand(Qt,e=>function(e){const t=jH();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(zH,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:PF})),!0)}(e),3),t.registerCommand(Jt,e=>function(e){return!!jH()&&(DH(e)||e.preventDefault(),!1)}(e),1),t.registerCommand(Yt,e=>FH(e,t),3)),[t,n,a,r,e,i]),null};const HH=()=>((()=>{const e=E.useRef(null),{printingStatus:t}=E.useContext(M),[n]=ic();E.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function WH(){const[e]=ic(),{layout:t,model:n,flags:r,interactionState:o}=E.useContext(M),i=E.useRef(!1),a=Qd(),s=o?.edit&&t?.permissions?.update;return E.useEffect(()=>{const o=t?.seedData;if(!i.current&&o&&n){i.current=!0;try{e.update(()=>{const t=(new DOMParser).parseFromString(o,"text/html"),n=td(e,t);n.length>0&&(Fi().select(),lo(n))},{discrete:!0}),s&&a&&FF(e.getEditorState().toJSON(),n,r)}catch{}}},[e,t,n,r,s,a]),null}function $H(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=E.useContext(M),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));E.useEffect(()=>{!function(e){const t=Object.entries(vF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});LI.configure(t,e)}(t)},[t]);const l=E.useMemo(()=>{if(void 0!==e){const r=e||void 0,o=[...DD,NF,...n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?[PH]:[(t=PF,class e extends $o{__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=Zz.nodes;e.nodes&&(t=Zz.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...Zz,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?cc.jsx("div",{className:"hideScrollBar",style:u?{containerType:"size"}:void 0,children:cc.jsx("div",{style:u,children:cc.jsxs(eD,{initialConfig:l,flags:n,children:[cc.jsx(xH,{}),cc.jsx(QD,{showPlaceholder:s}),cc.jsx(YD,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?cc.jsx(BH,{imageFromClipboardSupport:n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")}):null,cc.jsx(WF,{}),cc.jsx(BF,{}),cc.jsx(UF,{}),cc.jsx(HH,{}),n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")?cc.jsx(WH,{}):null]})})}):null}const UH={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:MF,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 KH({env:e}){return{definition:{type:"items",component:"accordion",items:{data:UH,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 GH{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 VH=({propertyPanelHandlerData:t,flags:n})=>{const r=e.useElement(),o=e.useStaleLayout(),i=e.useModel(),a=e.useInteractionState(),s=e.useEmitter(),[l,u]=e.useState(!1),[c,d]=e.useState(1),[f,p]=e.useState(!1),h=e=>{e||d(0),(e=>!!e.qExtendsId)(o)||(e&&p(!0),u(e),s.emit("njs-internal-edit-change",e))};return e.useEffect(()=>{2===c&&a.edit&&a.select&&h(!0)},[c,a]),e.useEffect(()=>{const e=()=>{a.edit&&a.select&&d(e=>e+1)},o=e=>{const t=document.getElementById(mH(i));r.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(n?.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)||h(!1)};if(!a.edit||!a.select){h(!1);const e=i?.id&&t.getSnTexts()[i.id]?.propertiesHaveBeenModified;i&&(f||e)&&(s.emit("saveDocument"),t.setPropertiesHaveBeenModified(i.id,!1))}return r.addEventListener("click",e),document.addEventListener("mousedown",o),()=>{r.removeEventListener("click",e),document.removeEventListener("mousedown",o)}},[r,a,i]),e.useEffect(()=>{!l&&f&&s.emit("saveDocument")},[l,s,f]),{edit:l}};return function(t){const o=new GH,{flags:i}=t;return{qae:{properties:n,data:r(o)},ext:KH({env:t}),component(){const n=e.useElement(),r=(t=>{const n=e.useMemo(()=>C.createRoot(t),[t]);return e.useEffect(()=>()=>{n?.unmount()},[n]),n})(n),a=e.useStaleLayout(),s=e.useModel(),l=e.useInteractionState(),u=e.useEmitter(),[c,d]=e.useState(null),f=e.useTranslator(),[p,h]=e.useState(void 0),m=e.useTheme(),{printingStatus:g}=(({layout:t,flags:n})=>{const[r,o]=e.useState(null);return e.usePromise(()=>new Promise(e=>{const r=new Set;n.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&t.images&&t.images.forEach(e=>{e.id&&r.add(e.id)}),o({resolve:(t,n)=>{t&&r.delete(t),(0===r.size||n)&&(o(null),e?.(t))}})}),[]),e.useEffect(()=>{let e;return r&&(e=setTimeout(()=>{r.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[r]),{printingStatus:r}})({layout:a,flags:i});e.useEffect(()=>{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)}}(s,e)};return u.on("onNodeDestroyed",e),()=>{u.removeListener("onNodeDestroyed",e)}},[u,s]),e.useEffect(()=>{a&&void 0===p&&(h(a.text||null),d(a?.text))},[a,p]);const{edit:v}=VH({propertyPanelHandlerData:o,flags:i});e.useEffect(()=>{(({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(cc.jsx(T.StrictMode,{children:cc.jsx(M.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:cc.jsx($H,{})})}))})({rootElement:r,layout:a,model:s,element:n,edit:v,initialData:p,emitter:u,lang:f.language(),flags:i,theme:m,interactionState:l,printingStatus:g,showMediaLibrary:t.anything?.sense?.showMediaLibrary,handlePasteData:t.anything?.sense?.handlePasteData})},[a,r,s,n,v,n,p,u,i,m,l]),e.useEffect(()=>{if(a){const e=a;e.text&&e.text!==c&&(d(e.text),u.emit("reloadData",e.text))}},[a,c,u]),e.useImperativeHandle(()=>({updateActiveState(e){e?o.setSelectedModelId(s?.id):s?.id===o.getSelectedModelId()&&o.setSelectedModelId(void 0)}}),[])}}}});
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}},iH({exports:{}});const mH=e=>`text-toolbar.${e?.id}`,gH=(e,t)=>cc.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:cc.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"})}),vH=E.forwardRef(gH),yH=gj(mj,"InsertImage"),bH=()=>{const{flags:e,showMediaLibrary:t}=E.useContext(M),[n]=ic(),r=E.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(IF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?cc.jsx(yH,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:cc.jsx(vH,{height:12})}):null};function xH(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=E.useContext(M),a=E.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=E.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?oB:rB}(r),[r]),l=E.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"),cc.jsx(S_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:21},id:mH(n),children:({TransitionProps:e})=>cc.jsx(fw,{...e,children:cc.jsx(yb,{sx:{borderRadius:1,padding:.25},children:cc.jsxs(rj,{children:[cc.jsx(hj,{compact:!0}),cc.jsx(rF,{}),cc.jsx($j,{compact:!0,fonts:s}),cc.jsx(Yj,{compact:!0,unit:c}),cc.jsx(rF,{}),cc.jsx(bj,{}),cc.jsx(Xj,{}),cc.jsx(nF,{}),cc.jsx(eF,{}),cc.jsx(Wj,{colorPalette:l}),cc.jsx(rF,{}),cc.jsx(uj,{compact:!0}),cc.jsx(rF,{}),cc.jsx(kj,{}),cc.jsx(rF,{}),cc.jsx(Qj,{}),cc.jsx(bH,{})]})})})})}function _H(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))}}_H(".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");_H("/*\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 wH=1,kH=8,SH=2,CH=4;function EH({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=E.useRef(null),a=E.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=E.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===wH||e===CH?"ew":e===kH||e===SH?"ns":e&kH&&e&CH||e&SH&&e&wH?"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&(wH|CH),i=r.direction&(SH|kH);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&wH?-n:n;const o=TH(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&SH?-n:n;const o=TH(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&wH?-n:n;const o=TH(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 cc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,kH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,kH|wH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_ne"})}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,wH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,SH|wH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_se"})}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,SH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,SH|CH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_sw"})}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,CH)}}),cc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,kH|CH)},children:cc.jsx("div",{className:"tek__visual_cue tek__image_resizer_nw"})})]})}const TH=(e,t,n)=>Math.min(Math.max(e,t),n),AH=new Map,MH=({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=AH.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=>(AH.set(e,t),t)),AH.set(e,t),t;throw t})(r);E.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 cc.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 RH({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=E.useRef(null),[l,u,c]=bF(a),[d,f]=E.useState(!1),[p]=ic(),h=Qd(),{layout:m,printingStatus:g}=E.useContext(M),v=void 0,y=E.useMemo(()=>e||jF(m,t),[e,m,t]);E.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=E.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=E.useCallback(()=>!!l&&(Hi(null),p.focus(),!0),[l,p]);E.useEffect(()=>Fs(p.registerCommand(gt,b,1),p.registerCommand(Qt,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Wt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return cc.jsx(E.Suspense,{fallback:null,children:cc.jsxs(cc.Fragment,{children:[cc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:cc.jsx(MH,{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(gt,e.nativeEvent)}})}),i&&l&&w?cc.jsx(EH,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Oi(a);n?.getType()===PF&&n.setWidthAndHeight(e,t)})}}):null]})})}var LH=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),NH=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),OH=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class PH extends $o{__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 PF}static clone(e){return new PH({...e.__props,key:e.getKey()})}decorate(){return cc.jsx(RH,{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:PF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===PH.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||NH(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=LH(n);a=OH(a),a=decodeURIComponent(a);return{node:IH({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return IH(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const IH=e=>new PH(e),zH=document.createElement("img");function DH(e){const t=e.target;return!!(t&&Sa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Sa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function jH(){const e=eo();if(!Fr(e))return null;const t=e.getNodes()[0];return t.getType()===PF?t:null}function FH(e,t){const n=jH();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!==PF?null:r}(e);if(!r)return!1;const o=Ba(n,e=>!lu(e)&&iu(e));if(e.preventDefault(),DH(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=Jr();null!=i&&a.applyDOMRange(i),Hi(a),t.dispatchCommand(IF,{...r}),o&&t.dispatchCommand(uu,o.getURL())}return!0}zH.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const BH=({imageFromClipboardSupport:e=!1})=>{const[t]=ic(),{emitter:n,layout:r,model:o,handlePasteData:i}=E.useContext(M),[a,s]=E.useState();return E.useEffect(()=>{"function"==typeof o?.getProperties&&o?.getProperties().then(e=>{s(e)})},[r,o]),E.useEffect(()=>Fs(t.registerCommand(IF,({id:e,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(t.update(()=>{const t=IH({id:e,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});lo([t]),ga(t.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(t,ei).selectEnd()}),!0),0),t.registerCommand(Zt,e=>{const n=eo();if(!n)return!1;const o=n.getNodes().some(e=>e.getType()===PH.getType());if(!o)return!1;const i=vd(n),s=i["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===PH.getType()){const t={...e};return t.tempUrl=t.tempUrl||jF(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 hd(t,ul(e,ClipboardEvent)?e:null,n),!0}return!1},3),t.registerCommand(Ct,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(IF,{method:"mediaLibrary",tempUrl:e.imagePath,tempUrlDef:e.imagePath})})(),!0),1),t.registerCommand(Qt,e=>function(e){const t=jH();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(zH,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:PF})),!0)}(e),3),t.registerCommand(Jt,e=>function(e){return!!jH()&&(DH(e)||e.preventDefault(),!1)}(e),1),t.registerCommand(Yt,e=>FH(e,t),3)),[t,n,a,r,e,i]),null};const HH=()=>((()=>{const e=E.useRef(null),{printingStatus:t}=E.useContext(M),[n]=ic();E.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function WH(){const[e]=ic(),{layout:t,model:n,flags:r}=E.useContext(M),o=E.useRef(!1);return E.useEffect(()=>{const r=t?.seedData;if(!o.current&&r&&n){o.current=!0;try{if("application/x-lexical-editor"===r.type){const t=JSON.parse(r.data);if(t.nodes&&Array.isArray(t.nodes)){const n={root:{children:[{children:t.nodes,direction:"ltr",format:"",indent:0,type:"paragraph",version:1}],direction:"ltr",format:"",indent:0,type:"root",version:1}};queueMicrotask(()=>{const t=e.parseEditorState(JSON.stringify(n));e.setEditorState(t)})}}else e.update(()=>{const t=(new DOMParser).parseFromString(r.data,"text/html"),n=td(e,t);n.length>0&&(Fi().select(),lo(n))},{discrete:!0})}catch{}}},[e,t,n,r]),null}function $H(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=E.useContext(M),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));E.useEffect(()=>{!function(e){const t=Object.entries(vF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});LI.configure(t,e)}(t)},[t]);const l=E.useMemo(()=>{if(void 0!==e){const r=e||void 0,o=[...DD,NF,...n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?[PH]:[(t=PF,class e extends $o{__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=Zz.nodes;e.nodes&&(t=Zz.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...Zz,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?cc.jsx("div",{className:"hideScrollBar",style:u?{containerType:"size"}:void 0,children:cc.jsx("div",{style:u,children:cc.jsxs(eD,{initialConfig:l,flags:n,children:[cc.jsx(xH,{}),cc.jsx(QD,{showPlaceholder:s}),cc.jsx(YD,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?cc.jsx(BH,{imageFromClipboardSupport:n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")}):null,cc.jsx(WF,{}),cc.jsx(BF,{}),cc.jsx(UF,{}),cc.jsx(HH,{}),n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")?cc.jsx(WH,{}):null]})})}):null}const UH={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:MF,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 KH({env:e}){return{definition:{type:"items",component:"accordion",items:{data:UH,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 GH{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 VH=({propertyPanelHandlerData:t,flags:n})=>{const r=e.useElement(),o=e.useStaleLayout(),i=e.useModel(),a=e.useInteractionState(),s=e.useEmitter(),[l,u]=e.useState(!1),[c,d]=e.useState(1),[f,p]=e.useState(!1),h=e=>{e||d(0),(e=>!!e.qExtendsId)(o)||(e&&p(!0),u(e),s.emit("njs-internal-edit-change",e))};return e.useEffect(()=>{2===c&&a.edit&&a.select&&h(!0)},[c,a]),e.useEffect(()=>{const e=()=>{a.edit&&a.select&&d(e=>e+1)},o=e=>{const t=document.getElementById(mH(i));r.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(n?.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)||h(!1)};if(!a.edit||!a.select){h(!1);const e=i?.id&&t.getSnTexts()[i.id]?.propertiesHaveBeenModified;i&&(f||e)&&(s.emit("saveDocument"),t.setPropertiesHaveBeenModified(i.id,!1))}return r.addEventListener("click",e),document.addEventListener("mousedown",o),()=>{r.removeEventListener("click",e),document.removeEventListener("mousedown",o)}},[r,a,i]),e.useEffect(()=>{!l&&f&&s.emit("saveDocument")},[l,s,f]),{edit:l}};return function(t){const o=new GH,{flags:i}=t;return{qae:{properties:n,data:r(o)},ext:KH({env:t}),component(){const n=e.useElement(),r=(t=>{const n=e.useMemo(()=>C.createRoot(t),[t]);return e.useEffect(()=>()=>{n?.unmount()},[n]),n})(n),a=e.useStaleLayout(),s=e.useModel(),l=e.useInteractionState(),u=e.useEmitter(),[c,d]=e.useState(null),f=e.useTranslator(),[p,h]=e.useState(void 0),m=e.useTheme(),{printingStatus:g}=(({layout:t,flags:n})=>{const[r,o]=e.useState(null);return e.usePromise(()=>new Promise(e=>{const r=new Set;n.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&t.images&&t.images.forEach(e=>{e.id&&r.add(e.id)}),o({resolve:(t,n)=>{t&&r.delete(t),(0===r.size||n)&&(o(null),e?.(t))}})}),[]),e.useEffect(()=>{let e;return r&&(e=setTimeout(()=>{r.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[r]),{printingStatus:r}})({layout:a,flags:i});e.useEffect(()=>{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)}}(s,e)};return u.on("onNodeDestroyed",e),()=>{u.removeListener("onNodeDestroyed",e)}},[u,s]),e.useEffect(()=>{a&&void 0===p&&(h(a.text||null),d(a?.text))},[a,p]);const{edit:v}=VH({propertyPanelHandlerData:o,flags:i});e.useEffect(()=>{(({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(cc.jsx(T.StrictMode,{children:cc.jsx(M.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:cc.jsx($H,{})})}))})({rootElement:r,layout:a,model:s,element:n,edit:v,initialData:p,emitter:u,lang:f.language(),flags:i,theme:m,interactionState:l,printingStatus:g,showMediaLibrary:t.anything?.sense?.showMediaLibrary,handlePasteData:t.anything?.sense?.handlePasteData})},[a,r,s,n,v,n,p,u,i,m,l]),e.useEffect(()=>{if(a){const e=a;e.text&&e.text!==c&&(d(e.text),u.emit("reloadData",e.text))}},[a,c,u]),e.useImperativeHandle(()=>({updateActiveState(e){e?o.setSelectedModelId(s?.id):s?.id===o.getSelectedModelId()&&o.setSelectedModelId(void 0)}}),[])}}}});