@nebula.js/sn-text 1.7.1 → 1.7.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.
package/core/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-text v1.7.
|
|
2
|
+
* @nebula.js/sn-text v1.7.2
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const p={version:"1.7.1",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=N(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=N(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function I(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=I,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=I,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,L,R={exports:{}},M={};function O(){return T||(T=1,R.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function N(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(N)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=N,w=function(){R.postMessage(null)}}else w=function(){g(N,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),R.exports}
|
|
7
|
+
import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const p={version:"1.7.2",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=N(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=N(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function I(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=I,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=I,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,L,R={exports:{}},M={};function O(){return T||(T=1,R.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function N(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(N)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=N,w=function(){R.postMessage(null)}}else w=function(){g(N,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),R.exports}
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-dom.production.min.js
|
|
@@ -107,4 +107,4 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
|
|
|
107
107
|
* LICENSE file in the root directory of this source tree.
|
|
108
108
|
*/function vL(){if(pL)return eT;pL=1,Object.defineProperty(eT,"__esModule",{value:!0}),eT.default=function(t){return(0,e.createStyles)(t)};var e=gL;return eT}var yL,bL,xL={},_L={};function wL(){if(yL)return _L;yL=1;var e=dy();Object.defineProperty(_L,"__esModule",{value:!0}),_L.default=void 0;var t=(0,e(JE()).default)();return _L.default=t,_L}function kL(){if(bL)return xL;bL=1;var e=dy();Object.defineProperty(xL,"__esModule",{value:!0}),xL.default=void 0;var t=e(Hy()),n=gL,r=e(wL());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return xL.default=o,xL}var SL,CL,EL={},TL={};function AL(){if(SL)return TL;SL=1;var e=dy();Object.defineProperty(TL,"__esModule",{value:!0}),TL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},TL.getUnit=n,TL.toUnitless=r,TL.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},TL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},TL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},TL.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(fS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return TL}function NL(){if(CL)return EL;CL=1;var e=dy();Object.defineProperty(EL,"__esModule",{value:!0}),EL.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),p};var t=e(Hy()),n=tS,r=AL();return EL}var LL,RL={};function ML(){if(LL)return RL;LL=1;var e=dy();Object.defineProperty(RL,"__esModule",{value:!0}),RL.default=void 0;var t=e(Hy()),n=gL,r=e(wL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return RL.default=o,RL}var OL,PL={};function IL(){if(OL)return PL;OL=1;var e=dy();Object.defineProperty(PL,"__esModule",{value:!0}),PL.default=function(){return(0,t.useTheme)()||n.default};var t=gL;e(C());var n=e(wL());return PL}var zL,DL={};function jL(){if(zL)return DL;zL=1;var e=dy();Object.defineProperty(DL,"__esModule",{value:!0}),DL.default=void 0;var t=e(Hy()),n=gL,r=e(wL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return DL.default=o,DL}var FL,BL,$L={};function HL(){if(FL)return $L;FL=1;var e=dy();Object.defineProperty($L,"__esModule",{value:!0}),$L.default=void 0;var t=gL,n=e(wL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return $L.default=r,$L}function WL(){return BL||(BL=1,function(e){var t=dy(),n=(Mk||(Mk=1,function(e){var t=zk().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Pk)),Pk.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=nS();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(JE()),a=t(ZE()),s=t(vL()),l=t(kL()),u=t(NL()),c=t(ML()),d=KE();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var f=t(IL()),p=t(jL()),h=t(HL()),m=gL}(Ok)),Ok}var UL=WL();UL.alpha(lk.GREYSCALE_0,.05),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5),UL.alpha(lk.GREEN_PALE,.5),UL.alpha(lk.BLUE_PALE,.5);const KL=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),GL=D.forwardRef(KL);var YL=Object.defineProperty,VL=(e,t)=>{for(var n in t)YL(e,n,{get:t[n],enumerable:!0})},qL=(e,t,n)=>((e,t,n)=>t in e?YL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),JL={};VL(JL,{af:()=>rR,ak:()=>oR,am:()=>iR,an:()=>aR,ar:()=>sR,ars:()=>lR,as:()=>uR,asa:()=>cR,ast:()=>dR,az:()=>fR,bal:()=>pR,be:()=>hR,bem:()=>mR,bez:()=>gR,bg:()=>vR,bho:()=>yR,blo:()=>bR,bm:()=>xR,bn:()=>_R,bo:()=>wR,br:()=>kR,brx:()=>SR,bs:()=>CR,ca:()=>ER,ce:()=>TR,ceb:()=>AR,cgg:()=>NR,chr:()=>LR,ckb:()=>RR,cs:()=>MR,cy:()=>OR,da:()=>PR,de:()=>IR,doi:()=>zR,dsb:()=>DR,dv:()=>jR,dz:()=>FR,ee:()=>BR,el:()=>$R,en:()=>HR,eo:()=>WR,es:()=>UR,et:()=>KR,eu:()=>GR,fa:()=>YR,ff:()=>VR,fi:()=>qR,fil:()=>JR,fo:()=>QR,fr:()=>XR,fur:()=>ZR,fy:()=>eM,ga:()=>tM,gd:()=>nM,gl:()=>rM,gsw:()=>oM,gu:()=>iM,guw:()=>aM,gv:()=>sM,ha:()=>lM,haw:()=>uM,he:()=>cM,hi:()=>dM,hnj:()=>fM,hr:()=>pM,hsb:()=>hM,hu:()=>mM,hy:()=>gM,ia:()=>vM,id:()=>yM,ig:()=>bM,ii:()=>xM,io:()=>_M,is:()=>wM,it:()=>kM,iu:()=>SM,ja:()=>CM,jbo:()=>EM,jgo:()=>TM,jmc:()=>AM,jv:()=>NM,jw:()=>LM,ka:()=>RM,kab:()=>MM,kaj:()=>OM,kcg:()=>PM,kde:()=>IM,kea:()=>zM,kk:()=>DM,kkj:()=>jM,kl:()=>FM,km:()=>BM,kn:()=>$M,ko:()=>HM,ks:()=>WM,ksb:()=>UM,ksh:()=>KM,ku:()=>GM,kw:()=>YM,ky:()=>VM,lag:()=>qM,lb:()=>JM,lg:()=>QM,lij:()=>XM,lkt:()=>ZM,ln:()=>eO,lo:()=>tO,lt:()=>nO,lv:()=>rO,mas:()=>oO,mg:()=>iO,mgo:()=>aO,mk:()=>sO,ml:()=>lO,mn:()=>uO,mo:()=>cO,mr:()=>dO,ms:()=>fO,mt:()=>pO,my:()=>hO,nah:()=>mO,naq:()=>gO,nb:()=>vO,nd:()=>yO,ne:()=>bO,nl:()=>xO,nn:()=>_O,nnh:()=>wO,no:()=>kO,nqo:()=>SO,nr:()=>CO,nso:()=>EO,ny:()=>TO,nyn:()=>AO,om:()=>NO,or:()=>LO,os:()=>RO,osa:()=>MO,pa:()=>OO,pap:()=>PO,pcm:()=>IO,pl:()=>zO,prg:()=>DO,ps:()=>jO,pt:()=>FO,pt_PT:()=>BO,rm:()=>$O,ro:()=>HO,rof:()=>WO,ru:()=>UO,rwk:()=>KO,sah:()=>GO,saq:()=>YO,sat:()=>VO,sc:()=>qO,scn:()=>JO,sd:()=>QO,sdh:()=>XO,se:()=>ZO,seh:()=>eP,ses:()=>tP,sg:()=>nP,sh:()=>rP,shi:()=>oP,si:()=>iP,sk:()=>aP,sl:()=>sP,sma:()=>lP,smi:()=>uP,smj:()=>cP,smn:()=>dP,sms:()=>fP,sn:()=>pP,so:()=>hP,sq:()=>mP,sr:()=>gP,ss:()=>vP,ssy:()=>yP,st:()=>bP,su:()=>xP,sv:()=>_P,sw:()=>wP,syr:()=>kP,ta:()=>SP,te:()=>CP,teo:()=>EP,th:()=>TP,ti:()=>AP,tig:()=>NP,tk:()=>LP,tl:()=>RP,tn:()=>MP,to:()=>OP,tpi:()=>PP,tr:()=>IP,ts:()=>zP,tzm:()=>DP,ug:()=>jP,uk:()=>FP,und:()=>BP,ur:()=>$P,uz:()=>HP,ve:()=>WP,vec:()=>UP,vi:()=>KP,vo:()=>GP,vun:()=>YP,wa:()=>VP,wae:()=>qP,wo:()=>JP,xh:()=>QP,xog:()=>XP,yi:()=>ZP,yo:()=>eI,yue:()=>tI,zh:()=>nI,zu:()=>rI});var QL=(e,t)=>t?"other":1==e?"one":"other",XL=(e,t)=>t?"other":0==e||1==e?"one":"other",ZL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",eR=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},tR=(e,t)=>"other",nR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",rR=QL,oR=XL,iR=ZL,aR=QL,sR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},lR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},uR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",cR=QL,dR=eR,fR=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},pR=(e,t)=>1==e?"one":"other",hR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},mR=QL,gR=QL,vR=QL,yR=XL,bR=(e,t)=>{const n=String(e).split(".")[0];return t?0==n?"zero":1==n?"one":2==n||3==n||4==n||5==n||6==n?"few":"other":0==e?"zero":1==e?"one":"other"},xR=tR,_R=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",wR=tR,kR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},SR=QL,CR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},ER=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},TR=QL,AR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},NR=QL,LR=QL,RR=QL,MR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},OR=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",PR=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},IR=eR,zR=ZL,DR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},jR=QL,FR=tR,BR=QL,$R=QL,HR=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},WR=QL,UR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},KR=eR,GR=QL,YR=ZL,VR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",qR=eR,JR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},QR=QL,XR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},ZR=QL,eM=eR,tM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},nM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},rM=eR,oM=QL,iM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",aM=XL,sM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},lM=QL,uM=QL,cM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},dM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",fM=tR,pM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},hM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},mM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",gM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",vM=eR,yM=tR,bM=tR,xM=tR,_M=eR,wM=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),s=r.slice(-2);return t?"other":i&&1==a&&11!=s||o%10==1&&o%100!=11?"one":"other"},kM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},SM=nR,CM=tR,EM=tR,TM=QL,AM=QL,NM=tR,LM=tR,RM=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},MM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",OM=QL,PM=QL,IM=tR,zM=tR,DM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},jM=QL,FM=QL,BM=tR,$M=ZL,HM=tR,WM=QL,UM=QL,KM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",GM=QL,YM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),s=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},VM=QL,qM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},JM=QL,QM=QL,XM=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},ZM=tR,eO=XL,tO=(e,t)=>t&&1==e?"one":"other",nO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},rO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},oO=QL,iO=XL,aO=QL,sO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":i&&1==a&&11!=s||1==l&&11!=u?"one":"other"},lO=QL,uO=QL,cO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},dO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",fO=(e,t)=>t&&1==e?"one":"other",pO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},hO=tR,mO=QL,gO=nR,vO=QL,yO=QL,bO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},xO=eR,_O=QL,wO=QL,kO=QL,SO=tR,CO=QL,EO=XL,TO=QL,AO=QL,NO=QL,LO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},RO=QL,MO=tR,OO=XL,PO=QL,IO=ZL,zO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},DO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},jO=QL,FO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},BO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},$O=QL,HO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},WO=QL,UO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},KO=QL,GO=tR,YO=QL,VO=nR,qO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},JO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},QO=QL,XO=QL,ZO=nR,eP=QL,tP=tR,nP=tR,rP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},oP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},iP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},aP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},sP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},lP=nR,uP=nR,cP=nR,dP=nR,fP=nR,pP=QL,hP=QL,mP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},gP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},vP=QL,yP=QL,bP=QL,xP=tR,_P=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},wP=eR,kP=QL,SP=QL,CP=QL,EP=QL,TP=tR,AP=XL,NP=QL,LP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},RP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},MP=QL,OP=tR,PP=tR,IP=QL,zP=QL,DP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},jP=QL,FP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=s?"few":"other":o&&1==l&&11!=u?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},BP=tR,$P=eR,HP=QL,WP=QL,UP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},KP=(e,t)=>t&&1==e?"one":"other",GP=QL,YP=QL,VP=XL,qP=QL,JP=tR,QP=QL,XP=QL,ZP=eR,eI=tR,tI=tR,nI=tR,rI=ZL,oI={},iI=Array.prototype.slice,aI=function(e){return("0"+e.toString()).substr(-2)},sI=function(e){var t=typeof e;return"function"===t||"object"===t},lI=function(e){return"function"===typeof e},uI=function(e){return null!=e},cI=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},dI=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},fI=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},pI=function(e){return!0===e||!1===e},hI=function(e){return null===e},mI=function(e,t,n){return void 0===n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},gI=function(e,t){return lI(e)?e(t):e},vI=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],dI(r)||fI(r)||pI(r)||cI(r)||hI(r)?e[n]=r:(null==e[n]&&(e[n]={}),vI(e[n],r)));return e},yI={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},bI={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},xI={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},_I={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},wI=[null,"kb","mb","gb","tb"],kI={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};oI.reset=function(){var e;for(e in kI)this[e]=kI[e]},oI.initializeOptions=function(){var e;for(e in kI)uI(this[e])||(this[e]=kI[e])},oI.initializeOptions(),oI.locales={},oI.locales.get=function(e){var t=this[e]||this[oI.locale]||this.default;return lI(t)&&(t=t(e)),!1===cI(t)&&(t=[t]),t},oI.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&oI.locale&&t.push(oI.locale),oI.fallbacks&&oI.defaultLocale&&t.push(oI.defaultLocale),t.forEach(function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),oI.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},oI.pluralization={},oI.pluralization.get=function(e){return this[e]||this[oI.locale]||this.default},oI.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},oI.currentLocale=function(){return this.locale||this.defaultLocale},oI.isSet=uI,oI.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(uI(t.defaultValue))return gI(t.defaultValue,e)},oI.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&sI(n))for(;i.length;)if(r=i.shift(),uI(n[r])){o=n[r];break}return o},oI.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,s=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);s.length;)if(r=s.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],sI(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&uI(n.defaultValue)&&(a=sI(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},oI.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:yI.meridian},oI.prepareOptions=function(){for(var e,t=iI.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(uI(n[r])||(n[r]=e[r]));return n},oI.createTranslationOptions=function(e,t){var n=[{scope:e}];return uI(t.defaults)&&(n=n.concat(t.defaults)),uI(t.defaultValue)&&n.push({message:t.defaultValue}),n},oI.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some(function(t){if(uI(t.scope)?(o=t.scope,n=this.lookup(o,i)):uI(t.message)&&(n=gI(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):cI(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):sI(n)&&uI(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},oI.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=uI(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},oI.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},oI.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,function(e,t,n){return t+" "+n.toLowerCase()})}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},oI.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},oI.nullPlaceholder=function(){return oI.missingPlaceholder.apply(oI,arguments)},oI.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),bI);var n,r,o=e<0,i=function(e,t){return mI("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),s=[],l=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)s.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=s.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},oI.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),xI),this.toNumber(e,t)},oI.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},oI.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},oI.strftime=function(e,t,n){n=this.lookup("date",n);var r=oI.meridian();if(n||(n={}),n=this.prepareOptions(n,yI),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),s=e.getMonth()+1,l=e.getHours(),u=l,c=l>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[s])).replace("%B",n.month_names[s])).replace("%d",aI(i))).replace("%e",i)).replace("%-d",i)).replace("%H",aI(l))).replace("%-H",l)).replace("%k",l)).replace("%I",aI(u))).replace("%-I",u)).replace("%l",u)).replace("%m",aI(s))).replace("%-m",s)).replace("%M",aI(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",aI(d))).replace("%-S",d)).replace("%w",o)).replace("%y",aI(a))).replace("%-y",aI(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},oI.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},oI.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),_I),this.toNumber(e,t)},oI.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+wI[a],t),n=this.t(o),r=i-Math.floor(i)===0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},oI.getFullScope=function(e,t){return t=t||{},cI(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},oI.extend=function(e,t){return void 0===e&&void 0===t?{}:vI(e,t)},oI.t=oI.translate.bind(oI),oI.l=oI.localize.bind(oI),oI.p=oI.pluralize.bind(oI);VL({},{DEFAULT_LANGUAGE:()=>CI,DEFAULT_LANGUAGE_SHORT:()=>EI,flattenParams:()=>II,flattenTranslationsJSON:()=>NI,format:()=>zI,formatWithKeys:()=>DI,getLongLanguageDesc:()=>PI,getShortLanguageDesc:()=>OI,parseLangFromUrl:()=>LI,resolveLocale:()=>MI,updateLangAttribute:()=>jI});var SI=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],CI="en-US",EI="en",TI=["zh-cn","zh-tw","qps-ploc"],AI=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),NI=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),AI(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=AI(r)&&r.value;return o&&(t[n]=o),t},{}):{}),LI=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},RI=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(TI.includes(e.toLocaleLowerCase()))return SI.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return SI.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},MI=(...e)=>{for(const t of e){const e=RI(t);if(e)return e.short}},OI=e=>{const t=RI(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${EI}'`),EI)},PI=e=>{const t=RI(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${CI}'`),CI)},II=e=>Array.isArray(e[0])?e[0]:e,zI=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e)},DI=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),jI=e=>{const t=OI(e);document.documentElement.setAttribute("lang",t)},FI=class e{static configure(t,n=CI){e.translations=t,e.language=PI(n),e.languageShort=OI(n),jI(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=oI,oI.missingTranslation=e=>e,oI.defaultSeparator=null,oI.locale=e.language,oI.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];oI.pluralization[e.language]=e=>{try{const t=JL[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=DI(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,{count:n,...r})}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};qL(FI,"translations",{}),qL(FI,"translationsPlurals",{}),qL(FI,"language"),qL(FI,"languageShort"),qL(FI,"onTranslationsChangeListeners",[]),qL(FI,"i18nProvider"),qL(FI,"get",(e,...t)=>{var n;const r=II(t);let o=null!=(n=FI.translations[e])?n:e;return r.length>0&&(o=zI(o,...r)),o});var BI=FI;var $I=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=BI.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),BI.get},HI=BI;function WI({defaultSelection:e}){const[t]=Tc();return D.useEffect(()=>{t.focus(()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}function UI(e,t=!0){if(e)return!1;let n=Vi().getTextContent();return t&&(n=n.trim()),""===n}function KI(e){return()=>function(e){if(!UI(e,!1))return!1;const t=Vi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Xo(n))return!1;if(qo(n)){if(!ui(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Or(t[e]))return!1}}return!0}(e)}const GI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function YI({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:m,role:g="textbox",spellCheck:v=!0,style:y,tabIndex:b,"data-testid":x,..._},w){const[k,S]=D.useState(e.isEditable()),C=D.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),E=D.useMemo(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(w,C),[C,w]);return GI(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Mc.jsx("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===g?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":k?d:void 0,"aria-readonly":!k||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:k,"data-testid":x,id:m,ref:E,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const VI=D.forwardRef(YI);function qI(e){return e.getEditorState().read(KI(e.isComposing()))}const JI=D.forwardRef(QI);function QI(e,t){const{placeholder:n,...r}=e,[o]=Tc();return Mc.jsxs(Mc.Fragment,{children:[Mc.jsx(VI,{editor:o,...r,ref:t}),null!=n&&Mc.jsx(XI,{editor:o,content:n})]})}function XI({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>qI(e));return GI(()=>{function t(){const t=qI(e);n(t)}return t(),Vs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=D.useState(t.isEditable());if(D.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:Mc.jsx("div",{"aria-hidden":!0,children:i})}const ZI=D.createContext(null),ez={didCatch:!1,error:null};class tz extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ez}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(ez))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(ez))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=D.createElement(n,e);else{if(void 0===r)throw i;a=r}}return D.createElement(ZI.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function nz({children:e,onError:t}){return Mc.jsx(tz,{fallback:Mc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const rz={name:"@lexical/react/ReactProvider"};function oz(e){throw new Error(e)}const iz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function az({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return iz(()=>e.registerDecoratorListener(e=>{lb.flushSync(()=>{r(e)})}),[e]),D.useEffect(()=>{r(e.getDecorators())},[e]),D.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Mc.jsx(t,{onError:t=>e._onError(t),children:Mc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(lb.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function sz({editor:e,ErrorBoundary:t}){return function(e){const t=hu.maybeFromEditor(e);if(t&&t.hasExtensionByName(rz.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&oz(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Mc.jsx(az,{editor:e,ErrorBoundary:t})}function lz(e){return e.getEditorState().read(KI(e.isComposing()))}function uz(e){iz(()=>Vs(Ed(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,a,s]=t;e.update(()=>{const e=so();if(Wr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Or(l)&&r>=0&&o>=0&&(u=r,c=r+o,e.setTextNodeRange(l,u,l,c)),u===c&&""===i||(e.insertRawText(i),l=t.getNode()),Or(l)){u=a,c=a+s;const t=l.getTextContentSize();u=u>t?t:u,c=c>t?t:c,e.setTextNodeRange(l,u,l,c)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function cz({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Tc();return uz(r),Mc.jsxs(Mc.Fragment,{children:[e,Mc.jsx(dz,{content:t}),Mc.jsx(sz,{editor:r,ErrorBoundary:n})]})}function dz({content:e}){const[t]=Tc(),n=function(e){const[t,n]=D.useState(()=>lz(e));return iz(()=>{function t(){const t=lz(e);n(t)}return t(),Vs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Rd();return n?"function"==typeof e?e(r):e:null}const fz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),pz=D.forwardRef(fz),hz=(e,t)=>Mc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Mc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Mc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),mz=D.forwardRef(hz),gz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),vz=D.forwardRef(gz),yz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),bz=D.forwardRef(yz),xz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),_z=D.forwardRef(xz),wz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M2.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 12H7v-1h9zM2.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 5H7V4h9z"})}),kz=D.forwardRef(wz),Sz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),Cz=D.forwardRef(Sz),Ez=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M2.05 9q.372 0 .72.09.349.089.623.274.273.186.436.468t.163.66a1.38 1.38 0 0 1-.284.86 2.3 2.3 0 0 1-.304.333l-.174.155-.18.152-1.243 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.195-.235a.7.7 0 0 0 .122-.399.54.54 0 0 0-.182-.422.7.7 0 0 0-.486-.163.7.7 0 0 0-.52.204.83.83 0 0 0-.217.406l-.022.127L0 10.568l.031-.18q.06-.263.193-.48a1.8 1.8 0 0 1 .452-.492 2 2 0 0 1 .626-.31Q1.655 9 2.05 9M16 12H6v-1h10zM3 7H1.697V3.328l-1.022.72L0 3.208 1.807 2H3zm13-2H6V4h10z"})}),Tz=D.forwardRef(Ez),Az=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),Nz=D.forwardRef(Az),Lz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{fillRule:"evenodd",d:"M12.483 4.4c0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9H3V1h6.466c1.666 0 3.017 1.522 3.017 3.4m-6.897 2h2.91a1.6 1.6 0 0 0 0-3.2h-2.91zm0 6.4h3.1a1.9 1.9 0 0 0 0-3.8h-3.1z",clipRule:"evenodd"})}),Rz=D.forwardRef(Lz),Mz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),Oz=D.forwardRef(Mz),Pz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),Iz=D.forwardRef(Pz),zz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),Dz=D.forwardRef(zz),jz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M7.041 14.855A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255z"})}),Fz=D.forwardRef(jz),Bz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),$z=D.forwardRef(Bz),Hz=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),Wz=D.forwardRef(Hz);var Uz,Kz,Gz={exports:{}},Yz={};function Vz(e){return Vz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vz(e)}var qz=(Kz||(Kz=1,Gz.exports=function(){if(Uz)return Yz;Uz=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Yz.Fragment=n,Yz.jsx=a,Yz.jsxs=a,Yz}()),Gz.exports);const Jz=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Qz=[e=>{const t=Jz.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function Xz(){return qz.jsx(Ad,{matchers:Qz})}const Zz=()=>{const[e]=Tc(),t=Rd(),n=D.useCallback(n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read(()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)})},[t,e]);return D.useEffect(()=>Vs(e.registerMutationListener(yu,e=>{n(e)}),e.registerMutationListener(Cu,e=>{n(e)}),e.registerCommand(Ct,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=so();let t;if(Wr(e)&&(t=e.focus.getNode().getParent()),Kr(e)&&(t=e.getNodes()[0]),Tu(t)||Su(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),ci)),[e,n]),null};function eD(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?rl(n)?r:o:rl(t)?r:o}const tD=new Set(["http:","https:","mailto:","sms:","tel:"]),nD=e=>{const t=e;return t.password="",t.username="",t};function rD(e){try{const t=new URL(e);return tD.has(t.protocol)?{url:nD(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const oD=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function iD(e){return"https://"===e||oD.test(e)}const aD=tb(yw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),sD=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=D.useRef(null),[a,s]=D.useState(t);D.useEffect(()=>{s(t)},[t]);const l=D.useCallback(()=>{n(a),window.open(rD(a).url,"_blank"),r()},[a,r,n]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=D.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return qz.jsx(I_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>qz.jsx(kw,{...e,children:qz.jsx(Nb,{className:"tekPopperMenu",children:qz.jsxs(aD,{direction:"row",children:[qz.jsx(J_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),qz.jsx(Xb,{onClick:l,children:qz.jsx(ok,{})}),qz.jsx(Xb,{onClick:u,children:qz.jsx(ak,{})})]})})})})},lD=()=>{const[e]=Tc(),t=Rd(),[n,r]=D.useState(null),[o,i]=D.useState(""),a=D.useRef(!1),s=D.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=so();if(Wr(t)){const n=eD(t),o=n.getParent();if(Tu(o)||Tu(n))return r(null),i(""),!1;let a;if(Su(o)&&(a=o),Su(n)&&(a=n),Su(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=D.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(Au,rD(t))},{onUpdate:()=>{r(null)}})},[e]),u=D.useCallback(()=>{r(null)},[]);return D.useEffect(()=>Vs(e.registerCommand(kt,()=>s(),1),e.registerCommand(Ct,()=>s(),1)),[e,s]),t?qz.jsx(sD,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function uD(){return qz.jsx(sk,{validateUrl:iD})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const cD=({children:e})=>qz.jsx(rb,{theme:Lk(),children:e}),dD={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"},image:"tek__image"},nodes:[vd,hd,pc,lc,yu,Cu],onError:e=>{console.log(e)}},fD=({children:e,initialConfig:t,flags:n})=>qz.jsx(cD,{children:qz.jsx("div",{className:"tek__editor__Wrapper",children:qz.jsx(zc,{initialConfig:t||dD,children:qz.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,qz.jsx(Hc,{}),qz.jsx(Wc,{}),qz.jsx(uD,{}),qz.jsx(Xz,{}),qz.jsx(lD,{}),qz.jsx(Zz,{}),qz.jsx($c,{})]})})})});let pD=class e extends Vo{__hasBorders;static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const hD=e=>new pD(e),mD=e=>e instanceof pD;let gD=class e extends Vo{__needsUpdate;__hasBorders;__width;static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch{}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function vD(e){return e instanceof gD}let yD=class e extends Vo{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function bD(e){return e instanceof yD}const xD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),mD(t))return t;return null},_D=e=>{let t=e;for(;null!==t;){if(vD(t))return t;t=t?.getParent()}return null},wD=(e,t)=>{const n=_D(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},kD=e=>{const t=e?.getChildAtIndex(2);return t},SD=e=>{const t=e.getParent();if(bD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},CD=e=>{if(e instanceof HTMLTableElement&&e.rows.length>0){const t=e.rows[0];if(t.cells.length>0){let e=0;for(let n=0;n<t.cells.length;n++)e+=t.cells[n].getBoundingClientRect().width;if(e>0)return e}}return e.getBoundingClientRect().width||e.offsetWidth},ED=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*CD(t):0,TD=(e,t)=>{const n=CD(t),r=n>0?e/n:0;return`${Math.min(100*r,100).toFixed(2)}%`},AD=e=>e?e.getChildren().filter(e=>bD(e)):[],ND=e=>{let t=!1;return AD(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(li()),t=!0})}),t},LD=e=>{const t=so();if(Wr(t)||Kr(t)){const n=t.getNodes().filter(e=>mD(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>vD(e)),o=_D(n[0]),i=AD(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Wr(t)){const e=t.focus.getNode();if(vD(e))return ND(e)}return n.forEach(e=>{e.clear(),e.append(li())}),(()=>{const e=so();let t=!1;if(Wr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=_D(n);!o&&vD(r)&&(o=r),vD(o)&&(t=ND(o))}return t})()}if(Wr(t)){const e=t.focus.getNode();if(vD(e))return ND(e)}}return!1},RD=e=>{if(e){const t=_D(e);if(vD(t)){const n=e.getParent(),r=AD(t).findIndex(e=>e===n),o=n?.getChildren().findIndex(t=>t===e);return{i:r,j:o,tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},MD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),mD(t))return t;return null},OD=e=>{const t=[];return AD(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},PD=(e,t)=>{OD(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},ID=wt("UPDATE_COL_WIDTHS_COMMAND"),zD=wt("BEGIN_COL_RESIZE"),DD=wt("END_COL_RESIZE"),jD=wt("INSERT_TEK_TABLE_COMMAND"),FD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return qz.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},BD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},$D=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,HD=({nodeKey:e,colWidths:t})=>{const[n]=Tc(),r=Rd(),[o,i]=D.useState(null),a=D.useRef(null),s=D.useRef(null),l=D.useRef(null),u=D.useRef(null),c=D.useCallback(t=>{const n=Hi(e);if(n){const e=n.getParent();if(vD(e)){const n=kD(e);if("TekRowNode"===n?.getType()){const e=n.getChildren(),r=[];let o=0;e.forEach((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})}),i(r)}}}},[e]),d=D.useCallback(e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:s,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=TD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=TD(e,r),s=a.current.nxtColWidth-p,d=TD(s,r);if(s<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].getBoundingClientRect().width,60);60===a&&o++,i+=a;const s=a/t,l=Math.min(100*s,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=TD(e,d),s=TD(o,d);r.style.width=!n||p>0?a:s,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=a)}}},[]),f=D.useCallback(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",l.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].getBoundingClientRect().width,60);n.push(TD(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach((t,n)=>{t.setAttribute("width",e[n])}),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(DD,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Hi(e),r=wD(t,n),a=t?.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),s=[];t.forEach(e=>{s.push(e.getAttribute("width")||"0")}),a.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(s[t]),n.startX=l,n});i(e)}n.dispatchCommand(ID,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=D.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Hi(t),o=wD(r,n);if(mD(r)){const t=SD(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],s=r.length>t+1?r[t+1]:null,c=ED(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=CD(o)*f,h=ED(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=BD("tek__leftResizerIndicator","leftGripper");r.innerText=$D(e);let o=null;return t?(o=BD("tek__rightResizerIndicator","rightGripper"),o.innerText=$D(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=y.left,u.current=y.right,d.appendChild(y.left),y.right&&d.appendChild(y.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:s,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(zD,void 0)}}})},[n,d,f]);return D.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),qz.jsx(qz.Fragment,{children:o&&r?o.map(e=>qz.jsx(FD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},WD="TEK_TABLE_RESIZE_NODE";let UD=class e extends Qo{__colWidths;static getType(){return WD}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:WD,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return qz.jsx(HD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const KD=e=>e instanceof UD,GD=({nodeKey:e,colWidths:t})=>{const[n]=Tc(),[r,o]=D.useState(t);return D.useEffect(()=>{n.getEditorState().read(()=>{const t=Hi(e),n=t?.getParent();if(vD(n)){const e=n.getResizeNode();if(KD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),qz.jsx(qz.Fragment,{children:r.map((t,n)=>qz.jsx("col",{span:1,width:t},`${e}.${n}`))})};let YD=class e extends Qo{__colWidths;static getType(){return"TekColGroupNode"}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return qz.jsx(GD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}},VD=class extends Qo{__formatStyle;constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}};const qD=[gD,pD,yD,YD,UD],JD=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=t?.getChildAtIndex(0),i=t?.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),t?.markNeedsUpdate()},QD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);if(n){const e=SD(n),t=_D(n),r=AD(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),JD(o,t)}}},XD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t),r=_D(n);if(r&&3===r.getChildren().length)return Ji(null),void r.remove();if(n){const{row:e}=RD(n);Ji(null),e?.remove()}}},ZD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t),r=kD(n);if(bD(r)&&n){const e=r.getChildren().length,t=new yD;for(let r=0;r<e;r++){const e=hD(n?.__hasBorders);e.append(li()),t.append(e)}n?.append(t)}}},ej=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);if(vD(n)){const e=AD(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=hD(n.__hasBorders);o.append(li()),e[r].append(o),t=o}return JD(r,n),t}}return null},tj=tb(Xb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),nj=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Tc(),[o,i]=D.useState(null),a=$I(),s=Boolean(o),l=D.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=D.useCallback(()=>{i(null)},[]),d=D.useCallback(e=>{l(e,ZD,t)},[l,t]),f=D.useCallback(e=>{l(e,ej,t)},[l,t]),p=D.useCallback(t=>{l(t,XD,e)},[l,e]),h=D.useCallback(t=>{l(t,QD,e)},[l,e]),m=D.useCallback(()=>{r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);vD(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=_D(t);n&&(n.toggleBorders(),OD(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>Vs(r.registerCommand(kt,()=>(i(null),!1),4)),[r]),qz.jsx(dw,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(tj,{size:"small",onClick:u,children:qz.jsx(GL,{height:12})}),qz.jsx(I_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:qz.jsx(Nb,{id:"tekTableMenu",className:"tekPopperMenu",children:qz.jsxs(Bw,{dense:!0,children:[qz.jsx(Kw,{onClick:g,children:a("ToggleBorders")}),qz.jsx(vw,{}),qz.jsx(Kw,{onClick:d,children:a("AddNewRow")}),qz.jsx(Kw,{onClick:f,children:a("AddNewColumn")}),qz.jsx(vw,{}),qz.jsx(Kw,{onClick:p,children:a("DeleteRow")}),qz.jsx(Kw,{onClick:h,children:a("DeleteCol")}),qz.jsx(vw,{}),qz.jsx(Kw,{onClick:m,children:a("DeleteTable")})]})})})]})})},rj=()=>{const[e]=Tc(),t=Rd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(dh),l=D.useRef(null),u=D.useCallback(()=>{o||e.update(()=>{const t=so();if(Wr(t)){const n=xD(t.anchor.getNode());if(mD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);D.useEffect(()=>{const e=e=>{0!==e.buttons?null===l.current&&(l.current=setTimeout(()=>{i(!0),r(null)},300)):(i(!1),clearTimeout(l.current),l.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[]),D.useEffect(()=>Vs(e.registerCommand(kt,()=>(u(),!1),ci),e.registerCommand(zD,()=>(r(null),!0),4),e.registerCommand(DD,()=>(u(),!0),4)),[e,u]),D.useEffect(()=>{r(null)},[t]);const c=D.useCallback(()=>{r(null)},[]),d=D.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=D.useCallback(()=>{clearTimeout(l.current)},[]);return qz.jsx(I_,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:qz.jsx(nj,{onDeleteAction:c,onAction:d,onClick:f})})},oj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Hi(n),r=e?.getParent();ei(r)&&null!==e&&t.push(e)}if(t.length>0){const e=li();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},ij=()=>{const[e]=Tc(),t=Rd();return D.useEffect(()=>Vs(e.registerMutationListener(pD,t=>{e.update(()=>{oj(t)})}),e.registerMutationListener(yD,t=>{e.update(()=>{oj(t)})}),e.registerMutationListener(gD,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Hi(e);if(vD(t)&&!t.isValid()){const e=li();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(jD,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new gD(!0,"100%"),n=new YD(e),r=new UD(e),o=[];for(let t=0;t<2;t++){const t=new yD;for(let n=0;n<e.length;n++){const e=hD(!0),n=li();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();xl(e)}),!0),ci),e.registerCommand(ID,({colWidths:e,nodeKey:t})=>{const n=Hi(t);if(KD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof YD})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Vt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=_D(t),r=MD(t);if(vD(n)){const e=li();e.append(Mr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=_D(t);if(vD(n)){const e=li();e.append(Mr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Jt,e=>LD(e),4),e.registerCommand(Xt,e=>LD(e),4),e.registerCommand(Zt,e=>{const t=so();if(Wr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),mD(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const s=o.getChildAtIndex(n+2+a);if(bD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(RD(o),!e.shiftKey),!0}return!1},ci),e.registerCommand(cn,e=>{const t=e?.target,n=so();if(t.classList.contains("tek__table")&&Wr(n)&&vD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Wr(n)){const t=n.getNodes().some(e=>mD(e)),r=n.getNodes().some(e=>vD(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),D.useEffect(()=>e.registerCommand(kt,()=>(t&&e.update(()=>{(e=>{const t=so(),n=[];if(pa(gD).forEach(e=>{const t=OD(e);n.push(...t)}),Wr(t)){t.getNodes().filter(e=>vD(e)).forEach(t=>{PD(t,e)});const n=t.focus.getNode();if(vD(n))return void PD(n,e)}if(Wr(t)||Kr(t)){const r=new Set(t.getNodes().map(e=>MD(e)));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?o?.classList.add("tek__tekCellHighlight"):o?.classList.remove("tek__tekCellHighlight")}}})(e)},{tag:"history-merge"}),!1),4),[e,t]),D.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];pa(gD).forEach(e=>{const n=OD(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},aj=()=>qz.jsxs(qz.Fragment,{children:[qz.jsx(ij,{}),qz.jsx(rj,{})]}),sj=()=>{const e=Rd(),t=$I();return e?qz.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):qz.jsx("div",{className:"tek__editor__logo",children:qz.jsx(pz,{height:32})})},lj=({showPlaceholder:e})=>qz.jsxs("div",{style:{position:"relative"},children:[qz.jsx(WI,{}),qz.jsx(cz,{contentEditable:qz.jsx(JI,{className:"tek__editor__input"}),placeholder:!1!==e?qz.jsx(sj,{}):null,ErrorBoundary:nz})]}),uj=tb(yw)(({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}})),cj=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],dj="#404040",fj="16px",pj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:cj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),hj=({children:e})=>{const t=(()=>{const[e]=Tc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(cj[0]),[d,f]=D.useState(fj),[p,h]=D.useState(dj),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback(()=>{const t=so();if(Wr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Qa(r,e=>{const t=e.getParent();return null!==t&&Ca(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(bc(i)){const e=yl(r,pc),t=e?e.getListType():i.getListType();l(t)}else{const e=wd(i)?i.getTag():i.getType();l(e)}if(bc(i)||wd(i)){const e=yl(i,ai);e&&(u=e)}const d=eD(t);if(Su(d.getParent())||Su(d)?y(!0):y(!1),ui(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=hl(t,"font-family",cj[0]),m=hl(t,"font-size",fj);c(""===p?cj[0]:p),f(""!==m&&m?m:fj),h(hl(t,"color",dj))}else Kr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof VD}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",dj));const t=e.getTextFormatStyle("fontSize",fj),r=e.getTextFormatStyle("fontFamily",cj[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(fc(e)){const t=yl(e,pc);return t?t.getListType():"bullet"}return wd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return D.useEffect(()=>Vs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(kt,()=>(e.getEditorState().read(()=>{b()}),!1),ci)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return qz.jsx(pj.Provider,{value:t,children:e})},mj=({children:e})=>qz.jsx(hj,{children:qz.jsx(uj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),gj=({anchorEl:e,children:t})=>{const n=Boolean(e);return qz.jsx(I_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>qz.jsx(kw,{...e,children:qz.jsx(Nb,{className:"tekPopperMenu",children:t})})})},vj=tb(ox)({fontSize:12,textOverflow:"ellipsis"}),yj=({startIcon:e,value:t,onClick:n,compact:r})=>qz.jsx(nk,{title:t,PopperProps:{disablePortal:!0},children:qz.jsx(uw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:qz.jsx(_z,{height:12}),children:r?e:qz.jsx(vj,{children:t})})}),bj=tb(Kw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),xj=[{text:"AlignLeft",align:"left",icon:()=>qz.jsx(vz,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>qz.jsx(mz,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>qz.jsx(bz,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],_j=({compact:e=!1})=>{const[t]=Tc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(pj),i=$I(),a=D.useMemo(()=>xj.find(e=>e.align===o.align)||xj[0],[o.align]),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=D.useCallback(()=>{r(null)},[]),u=D.useCallback(e=>{r(null),t.dispatchCommand(on,e),t.focus()},[t]);return qz.jsx(dw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(yj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),qz.jsx(gj,{anchorEl:n,children:qz.jsx(Bw,{dense:!0,children:xj.map(e=>qz.jsxs(bj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[qz.jsx(Ow,{children:e.icon()}),qz.jsx(vj,{children:i(e.text)})]},e.align))})})]})})},wj=({text:e,icon:t})=>qz.jsxs(qz.Fragment,{children:[qz.jsx(Ow,{children:t}),qz.jsx(vj,{children:e})]}),kj=({text:e,icon:t})=>qz.jsxs(qz.Fragment,{children:[qz.jsx(Ow,{children:qz.jsx(vj,{fontWeight:"bold",children:t})}),qz.jsx(vj,{children:e})]}),Sj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],Cj=(e,t,n)=>({icon:qz.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),Ej=({compact:e=!1})=>{const[t]=Tc(),{blockFormat:n}=D.useContext(pj),[r,o]=D.useState(null),i=$I(),a=D.useMemo(()=>{let e={icon:qz.jsx(Nz,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=Cj("Heading1","H1",i)),"h2"===n.blockType&&(e=Cj("Heading2","H2",i)),"h3"===n.blockType&&(e=Cj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=qz.jsx(Cz,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=qz.jsx(kz,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=qz.jsx(Tz,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=D.useCallback(()=>{o(null)},[]),l=D.useCallback(e=>{t.update(()=>{const n=so();Wr(n)?(al(n,{"font-size":null}),function(e,t,n=sl){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=ro(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Qa(e.getNode(),ja),a=Qa(t.getNode(),ja);qo(n)&&o.set(n.getKey(),n),qo(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(qo(t)&&ja(t))o.set(t.getKey(),t);else if(null===r){const e=Qa(t,ja);qo(e)&&o.set(e.getKey(),e)}for(const[e,r]of o){const o=t();n(r,o),r.replace(o,!0),i&&(e===i.anchor.key&&i.anchor.set(o.getKey(),i.anchor.offset,i.anchor.type),e===i.focus.key&&i.focus.set(o.getKey(),i.focus.offset,i.focus.type))}i&&e.is(so())&&Ji(i)}(n,e)):Kr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=D.useCallback((e,n)=>{o(null),t.update(()=>{const r=so();Wr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=D.useCallback(e=>{o(null),l(()=>_d(e))},[l]),d=D.useCallback(()=>{o(null),l(()=>li())},[l]),f=D.useCallback(()=>{o(null),l(()=>md())},[l]);return qz.jsx(dw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(yj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),qz.jsx(gj,{anchorEl:r,children:qz.jsxs(Bw,{dense:!0,children:[qz.jsx(Kw,{dense:!0,onClick:d,children:qz.jsx(wj,{text:i("Paragraph"),icon:qz.jsx(Nz,{height:12})})}),qz.jsx(Kw,{dense:!0,onClick:f,children:qz.jsx(wj,{text:i("Quote"),icon:qz.jsx(Cz,{height:12})})}),Sj.map(e=>qz.jsx(Kw,{dense:!0,onClick:()=>{c(e.tag)},children:qz.jsx(kj,{text:i(e.text),icon:e.icon})},e.text)),qz.jsx(vw,{}),qz.jsx(Kw,{dense:!0,onClick:()=>{u("bullet",_c)},children:qz.jsx(wj,{text:i("UnorderedList"),icon:qz.jsx(kz,{height:12})})}),qz.jsx(Kw,{dense:!0,onClick:()=>{u("number",wc)},children:qz.jsx(wj,{text:i("OrderedList"),icon:qz.jsx(Tz,{height:12})})})]})})]})})},Tj=tb(uw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0})),Aj=(e,t)=>{const n=n=>{const r=$I();return qz.jsx(nk,{title:r(t),PopperProps:{disablePortal:!0},children:qz.jsx("div",{children:qz.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},Nj=({format:e,icon:t,...n})=>{const r=D.useContext(pj),[o]=Tc(),i=D.useCallback(()=>{o.dispatchCommand(jt,e)},[o,e]);return qz.jsx(Tj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},Lj=Aj(Nj,"Bold"),Rj=()=>qz.jsx(Lj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:qz.jsx(Rz,{height:12})}),Mj=wt("APPLY_TEXT_FORMAT"),Oj=wt("CLEAR_TEXT_FORMAT"),Pj=Aj(Tj,"ClearFormat"),Ij=()=>{const[e]=Tc(),t=D.useCallback(()=>{e.update(()=>{const t=so();if(Wr(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach((t,o)=>{try{if(Or(t)){let i=t;0===o&&0!==e.offset&&(i=i.splitText(e.offset)[1]||i),o===r.length-1&&(i=i.splitText(n.offset)[0]||i),""!==i.__style&&i.setStyle(""),0!==i.__format&&(i.setFormat(0),bl(i).setFormat(""));const a=i.getParent();(wd(a)||gd(a))&&a.replace(li(),!0)}else(wd(t)||gd(t))&&t.replace(li(),!0)}catch{}})}e.dispatchCommand(Oj,void 0)})},[e]);return qz.jsx(Pj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:qz.jsx(Oz,{height:12})})};var zj,Dj={},jj=function(){if(zj)return Dj;zj=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==Vz(o=function(e){if("object"!=Vz(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},Dj.Color=u,Dj}();const Fj=tb(yw)(({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"})),Bj=tb(Z_)(({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"})),$j=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=jy(),a=D.useCallback(e=>{o(e),n(e)},[n]);return qz.jsx(Fj,{children:e.map(e=>qz.jsx(Bj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?qz.jsx(ak,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function Hj(e,t,n){return Math.max(t,Math.min(n,e))}const Wj=(e,t)=>{const n=new jj.Color(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},Uj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Hj(e.clientX-n,0,o)/o*100,s=100-Hj(e.clientY-r,0,i)/i*100,l=new jj.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Kj=tb(yw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Gj=tb(Z_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Yj=tb(Z_)(({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"})),Vj=tb(Z_)({width:"16px",height:"16px",borderRadius:"2px"}),qj=tb(yw)({flexDirection:"row",alignItems:"center"}),Jj=tb(Z_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),Qj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),a=D.useRef(n),[s,l]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=D.useState({left:"0",top:"0"});D.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const g=D.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=Wj(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new jj.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Uj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new jj.Color(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)},[e]),b=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Hj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new jj.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new jj.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=D.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=D.useCallback(t=>{if(c(t.target.value),!new jj.Color(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=Wj(a.current,d.current);m(e)}},[e]);return qz.jsxs(Kj,{children:[s?qz.jsx($j,{palette:r,color:o,onColorChange:x}):qz.jsxs(qz.Fragment,{children:[qz.jsx(Gj,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,s=Uj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new jj.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:qz.jsx(Jj,{ref:f,style:{...h,backgroundColor:o}})}),qz.jsx(Yj,{onClick:b})]}),qz.jsxs(qj,{children:[qz.jsx(Vj,{style:{backgroundColor:o}}),qz.jsx(J_,{style:{flex:1},value:u,onChange:_}),qz.jsx(Xb,{onClick:()=>{l(!s)},children:qz.jsx(Iz,{height:12})}),qz.jsx(Xb,{onClick:t,children:qz.jsx(ak,{height:12})})]})]})},Xj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Zj=Aj(uw,"Color"),eF=({colorPalette:e=Xj})=>{const[t]=Tc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(pj),i=D.useCallback((e,n)=>{t.update(()=>{const t=so();Wr(t)&&al(t,{color:e})},n),t.dispatchCommand(Mj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return qz.jsx(dw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(Zj,{variant:"text",size:"small",endIcon:qz.jsx(_z,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:qz.jsx(Z_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),qz.jsx(gj,{anchorEl:n,children:qz.jsx(Qj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};Aj(Tj,"Export");const tF=({compact:e=!1,fonts:t=cj})=>{const[n]=Tc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(pj),a=D.useMemo(()=>t,[t]),s=D.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=so();Wr(e)&&al(e,{"font-family":t||cj[0]}),n.dispatchCommand(Mj,{styleKey:"fontFamily",styleValue:t||cj[0]}),n.focus()})},[n]);return qz.jsx(dw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(yj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:qz.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),qz.jsx(gj,{anchorEl:r,children:qz.jsx(Bw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>qz.jsx(bj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:qz.jsx(vj,{children:e})},e))})})]})})},nF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],rF=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,oF=e=>parseInt(e,10),iF=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=D.useCallback(()=>{const e=oF(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return qz.jsxs(yw,{direction:"row",children:[qz.jsx(J_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),qz.jsx(Xb,{disabled:!oF(n),onClick:i,children:qz.jsx(ak,{height:12})})]})},aF=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Tc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(pj),a=rF(i.fontSize,t),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=D.useCallback(()=>{o(null)},[]),u=D.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=so();Wr(t)&&al(t,{"font-size":e}),n.dispatchCommand(Mj,{styleKey:"fontSize",styleValue:e})})},[n]),c=D.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=D.useCallback(e=>{u(e)},[u]);return qz.jsx(dw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:qz.jsxs("div",{children:[qz.jsx(yj,{startIcon:e?qz.jsx(vj,{children:a}):void 0,value:a,onClick:s,compact:e}),qz.jsxs(gj,{anchorEl:r,children:[qz.jsx(iF,{fontSize:a,onSelected:d}),qz.jsx(vw,{}),qz.jsx(Bw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:nF.map(e=>qz.jsx(Kw,{"data-font-size":e,onClick:c,children:qz.jsx(vj,{children:rF(e,t)})},e))})]})]})})},sF=Aj(Tj,"InsertTable"),lF=()=>{const[e]=Tc(),t=D.useCallback(()=>{e.dispatchCommand(jD,void 0)},[e]);return qz.jsx(sF,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:qz.jsx(Dz,{height:12})})},uF=Aj(Nj,"Italic"),cF=()=>qz.jsx(uF,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:qz.jsx(Fz,{height:12})}),dF=Aj(Tj,"InsertHyperlink"),fF=()=>{const[e]=Tc(),{blockFormat:t}=D.useContext(pj),n=D.useCallback(()=>{t.isLink?e.dispatchCommand(Au,null):e.dispatchCommand(Au,rD("https://"))},[e,t.isLink]);return qz.jsx(dF,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:qz.jsx($z,{height:12})})};Aj(Tj,"Toggle");const pF=Aj(Nj,"Underline"),hF=()=>qz.jsx(pF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:qz.jsx(Wz,{height:12})}),mF=()=>qz.jsx(vw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var gF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},vF={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"},InsertTable:{value:"Insert table",comment:"Label for toolbar menu option to insert a table. (tew 260205)"},InsertImage:{value:"Insert image",comment:"Label for toolbar menu option to insert an image. (tew 260205)"}},yF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},bF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},xF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},_F={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},wF={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},kF={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},SF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},CF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},EF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},TF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},AF={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const NF={de:gF,es:yF,en:vF,fr:bF,it:xF,ja:_F,ko:wF,nl:kF,pl:SF,pt:CF,ru:EF,sv:TF,tr:AF,"de-de":gF,"es-es":yF,"en-us":vF,"fr-fr":bF,"it-it":xF,"ja-jp":_F,"ko-kr":wF,"nl-nl":kF,"pl-pl":SF,"pt-br":CF,"ru-ru":EF,"sv-se":TF,"tr-tr":AF,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function LF(e,t){return e.getEditorState().read(()=>{const e=Hi(t);return null!==e&&e.isSelected()})}function RF(e){const[t]=Tc(),[n,r]=D.useState(()=>LF(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(LF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,D.useCallback(n=>{t.update(()=>{let t=so();Kr(t)||(t=oo(),Ji(t)),Kr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),D.useCallback(()=>{t.update(()=>{const e=so();Kr(e)&&e.clear()})},[t])]}var MF,OF={};var PF=function(){if(MF)return OF;MF=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},OF.Color=u,OF}();function IF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function zF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var DF,jF;var FF=function(){if(jF)return DF;jF=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},DF=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},DF}();let BF=[];const $F=new FF.EventEmitter;$F.isSelected=e=>{const t=e?.qDef?.cId;return-1!==BF.indexOf(t)},$F.setSelected=e=>{BF!==e&&(BF=e,$F.emit("change"))};function HF({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Tc(),s=Rd(),[l,u,c]=RF(n),d=D.useRef(null),[f,p]=D.useState(t);D.useEffect(()=>{p(t)},[t]);const h=D.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),m=D.useMemo(()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){const t=n.qMeasureInfo?.findIndex(t=>t.cId===e);if(void 0!==t&&-1!==t){const e=n?.qDataPages?.[0]?.qMatrix?.[0][t];if(1===e?.qAttrExps?.qValues?.length){const t=e.qAttrExps.qValues[0]?.qText;if(t){const n=new PF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>Vs(a.registerCommand(jt,e=>(a.update(()=>{const t=e,r=so();if(Wr(r)&&l){if(zF(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p(t=>({...t,...e}))}}else if(l&&Kr(r)&&zF(n,r)&&d.current){const e=IF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),a.registerCommand(Mj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&l){const t=so();if(zF(n,t)){const t=IF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),ci),a.registerCommand(Oj,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=so();if(zF(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}}),!1),ci),a.registerCommand(kt,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=so(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),$F.setSelected(e)}),!1),1)),[a,u,c,l,n,m]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&$F.setSelected([]))},[s,c,i]),D.useEffect(()=>{a.update(()=>{!function(e,t){const n=Hi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const g=D.useCallback(e=>{if(s){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update(()=>{const e=so();if(Kr(e)){const t=Hi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Mc.jsx("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e,children:m.value})}const WF="qlik.expression.node";class UF extends VD{__expressionId;static getType(){return WF}static clone(e){return new UF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new UF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:WF,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return Mc.jsx(HF,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function KF(e){return e instanceof UF}const GF="ImageNode",YF=wt("INSERT_IMAGE_COMMAND"),VF=()=>{const e={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};return e.id()},qF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===GF)r.id||(r.id=VF()),t.add(r.id),r.tempUrlDef&&(n.add({id:r.id,url:{qStaticContentUrlDef:{qUrl:r.tempUrlDef}}}),delete r.tempUrl,delete r.tempUrlDef);else if("children"in r&&Array.isArray(r.children))for(const e of r.children)qF(e,t,n);return{imageIds:t,newPropertyImages:n}},JF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function QF(e,t,n){try{const r=await t.getProperties();if(r.text=JSON.stringify(e),n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const{images:t,jsonData:n}=((e,t)=>{const n=e,r=t.images||[];let o=new Set;if(n.root){const e=qF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],a=new Set;return r.forEach(e=>{o.has(e.id)&&!a.has(e.id)&&(a.add(e.id),i.push(e))}),{images:i,jsonData:n}})(e,r);r.images=t,r.text=JSON.stringify(n)}await t.setProperties(r)}catch(e){console.error(e)}}function XF(){const[e]=Tc(),t=Rd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&QF(e.getEditorState().toJSON(),r,i)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return o?.on("saveDocument",t),o?.on("reloadData",n),()=>{o?.removeListener("saveDocument",t),o?.removeListener("reloadData",n)}},[o,r]),D.useEffect(()=>{e.setEditable(n)},[n]),D.useEffect(()=>{t&&e.focus()},[t,e]),null}class ZF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Hi(e);if(KF(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex(e=>n.getExpressionId()===e);-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function eB(){const{layout:e,emitter:t,interactionState:n}=D.useContext(B),[r]=Tc(),o=D.useRef(new ZF),i=Rd(),a=n?.edit&&e?.permissions?.update;return D.useEffect(()=>{const e=r.registerMutationListener(UF,e=>{r.getEditorState().read(()=>{for(const[t,n]of e)o.current.update(t,n)})});return()=>{e()}},[r]),D.useEffect(()=>{e&&r.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=pa(UF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=so(),{cId:t}=n[n.length-1],r=new UF(t,{}),o=Mr(" "),i=Mr("");Wr(e)?e.insertNodes([i,r,o]):xl(r)}}})},[e,r]),D.useEffect(()=>r.registerCommand($t,e=>("Backspace"===e.key&&r.update(()=>{const e=so();Kr(e)&&e.getNodes().forEach(e=>{KF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[r]),D.useEffect(()=>{if(!i&&a){const e=o.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[i,a,t]),null}const tB=/"/g;function nB(){const{model:e,emitter:t}=D.useContext(B),[n]=Tc(),r=D.useRef(new Map);return D.useEffect(()=>{const o=n.registerMutationListener(kr,e=>{e.forEach((e,t)=>{if("destroyed"===e)r.current.delete(t);else{const e=n.getElementByKey(t)?.style.fontFamily;e&&r.current.set(t,e)}})});async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map(e=>e.replace(tB,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function rB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oB,iB="top",aB="top-right",sB="right",lB="bottom-right",uB="bottom",cB="bottom-left",dB="left",fB="top-left";rB(rB(rB(rB(rB(rB(rB(rB(rB(rB(oB={},"equal-equal",[iB,uB]),"equal-higher",[uB,lB]),"equal-lower",[iB,aB]),"equal-void",[iB,uB]),"higher-equal",[dB,cB,iB,aB]),"higher-higher-acute",[uB,cB,dB,aB]),"higher-higher-obtuse",[uB,iB]),"higher-lower-negative",[iB,aB,sB]),"higher-lower-positive",[uB,cB,dB]),"higher-void",[iB]),rB(rB(rB(rB(rB(rB(rB(rB(rB(rB(oB,"lower-equal",[iB]),"lower-higher-negative",[iB,fB]),"lower-higher-positive",[lB]),"lower-lower-acute",[iB,fB,dB,aB,sB]),"lower-lower-obtuse",[iB,uB]),"lower-void",[iB]),"void-equal",[iB]),"void-higher",[iB,uB]),"void-lower",[iB,uB,dB]),"void-void",[iB]),rB(oB,"unclassified",[iB,uB,sB,dB,aB,lB,cB,fB]);var pB,hB,mB=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],gB=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var vB=function(){if(hB)return pB;hB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return pB=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},pB}();function yB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function bB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(vB);var _B=.7,wB=1/_B,kB="\\s*([+-]?\\d+)\\s*",SB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",CB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EB=/^#([0-9a-f]{3,8})$/,TB=new RegExp(`^rgb\\(${kB},${kB},${kB}\\)$`),AB=new RegExp(`^rgb\\(${CB},${CB},${CB}\\)$`),NB=new RegExp(`^rgba\\(${kB},${kB},${kB},${SB}\\)$`),LB=new RegExp(`^rgba\\(${CB},${CB},${CB},${SB}\\)$`),RB=new RegExp(`^hsl\\(${SB},${CB},${CB}\\)$`),MB=new RegExp(`^hsla\\(${SB},${CB},${CB},${SB}\\)$`),OB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function PB(){return this.rgb().formatHex()}function IB(){return this.rgb().formatRgb()}function zB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=EB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?DB(t):3===n?new $B(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?jB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?jB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=TB.exec(e))?new $B(t[1],t[2],t[3],1):(t=AB.exec(e))?new $B(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=NB.exec(e))?jB(t[1],t[2],t[3],t[4]):(t=LB.exec(e))?jB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=RB.exec(e))?YB(t[1],t[2]/100,t[3]/100,1):(t=MB.exec(e))?YB(t[1],t[2]/100,t[3]/100,t[4]):OB.hasOwnProperty(e)?DB(OB[e]):"transparent"===e?new $B(NaN,NaN,NaN,0):null}function DB(e){return new $B(e>>16&255,e>>8&255,255&e,1)}function jB(e,t,n,r){return r<=0&&(e=t=n=NaN),new $B(e,t,n,r)}function FB(e){return e instanceof xB||(e=zB(e)),e?new $B((e=e.rgb()).r,e.g,e.b,e.opacity):new $B}function BB(e,t,n,r){return 1===arguments.length?FB(e):new $B(e,t,n,null==r?1:r)}function $B(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function HB(){return`#${GB(this.r)}${GB(this.g)}${GB(this.b)}`}function WB(){const e=UB(this.opacity);return`${1===e?"rgb(":"rgba("}${KB(this.r)}, ${KB(this.g)}, ${KB(this.b)}${1===e?")":`, ${e})`}`}function UB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function KB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function GB(e){return((e=KB(e))<16?"0":"")+e.toString(16)}function YB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qB(e,t,n,r)}function VB(e){if(e instanceof qB)return new qB(e.h,e.s,e.l,e.opacity);if(e instanceof xB||(e=zB(e)),!e)return new qB;if(e instanceof qB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new qB(a,s,l,e.opacity)}function qB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function JB(e){return(e=(e||0)%360)<0?e+360:e}function QB(e){return Math.max(0,Math.min(1,e||0))}function XB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yB(xB,zB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PB,formatHex:PB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return VB(this).formatHsl()},formatRgb:IB,toString:IB}),yB($B,BB,bB(xB,{brighter(e){return e=null==e?wB:Math.pow(wB,e),new $B(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_B:Math.pow(_B,e),new $B(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $B(KB(this.r),KB(this.g),KB(this.b),UB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:HB,formatHex:HB,formatHex8:function(){return`#${GB(this.r)}${GB(this.g)}${GB(this.b)}${GB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:WB,toString:WB})),yB(qB,function(e,t,n,r){return 1===arguments.length?VB(e):new qB(e,t,n,null==r?1:r)},bB(xB,{brighter(e){return e=null==e?wB:Math.pow(wB,e),new qB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_B:Math.pow(_B,e),new qB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $B(XB(e>=240?e-240:e+120,o,r),XB(e,o,r),XB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qB(JB(this.h),QB(this.s),QB(this.l),UB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=UB(this.opacity);return`${1===e?"hsl(":"hsla("}${JB(this.h)}, ${100*QB(this.s)}%, ${100*QB(this.l)}%${1===e?")":`, ${e})`}`}}));const ZB=Math.PI/180,e$=180/Math.PI,t$=.96422,n$=.82521,r$=4/29,o$=6/29,i$=3*o$*o$,a$=o$*o$*o$;function s$(e){if(e instanceof l$)return new l$(e.l,e.a,e.b,e.opacity);if(e instanceof p$)return h$(e);e instanceof $B||(e=FB(e));var t,n,r=f$(e.r),o=f$(e.g),i=f$(e.b),a=u$((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=u$((.4360747*r+.3850649*o+.1430804*i)/t$),n=u$((.0139322*r+.0971045*o+.7141733*i)/n$)),new l$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function l$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function u$(e){return e>a$?Math.pow(e,1/3):e/i$+r$}function c$(e){return e>o$?e*e*e:i$*(e-r$)}function d$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function f$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function p$(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function h$(e){if(isNaN(e.h))return new l$(e.l,0,0,e.opacity);var t=e.h*ZB;return new l$(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yB(l$,function(e,t,n,r){return 1===arguments.length?s$(e):new l$(e,t,n,null==r?1:r)},bB(xB,{brighter(e){return new l$(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new l$(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new $B(d$(3.1338561*(t=t$*c$(t))-1.6168667*(e=1*c$(e))-.4906146*(n=n$*c$(n))),d$(-.9787684*t+1.9161415*e+.033454*n),d$(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),yB(p$,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof p$)return new p$(e.h,e.c,e.l,e.opacity);if(e instanceof l$||(e=s$(e)),0===e.a&&0===e.b)return new p$(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*e$;return new p$(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new p$(e,t,n,null==r?1:r)},bB(xB,{brighter(e){return new p$(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new p$(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return h$(this).rgb()}}));var m$=e=>()=>e;function g$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):m$(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?g$:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):m$(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=BB(e)).r,(t=BB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=g$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var v$,y$="center",b$="bottom";function x$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function _$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=k$)):void 0===t&&(t=w$);for(var n,r,o,i,a,s=new E$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new E$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(C$)}function w$(e){return e.children}function k$(e){return Array.isArray(e)?e[1]:null}function S$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function C$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function E$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:y$,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:y$,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:y$,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:y$},{key:"DataRangeIncludingZero",alignment:b$},{key:"LimitedData",alignment:b$},{key:"NegativeOrZeroValues",alignment:b$}].reduce(function(e,t){return e[t.key]=t,e},{}),E$.prototype=_$.prototype={constructor:E$,count:function(){return this.eachAfter(x$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return _$(this).eachBefore(S$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},v$=function(e){
|
|
109
109
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
110
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},v$({exports:{}});const T$=e=>`text-toolbar.${e?.id}`,A$=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),N$=D.forwardRef(A$),L$=Aj(Tj,"InsertImage"),R$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Tc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(YF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(L$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Mc.jsx(N$,{height:12})}):null};function M$(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=D.useContext(B),a=D.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=D.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?gB:mB}(r),[r]),l=D.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]),u=r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior,c="responsive"===u;return Mc.jsx(I_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:T$(n),children:({TransitionProps:e})=>Mc.jsx(kw,{...e,children:Mc.jsx(Nb,{sx:{borderRadius:1,padding:.25},children:Mc.jsxs(mj,{children:[Mc.jsx(Ej,{compact:!0}),Mc.jsx(mF,{}),Mc.jsx(tF,{compact:!0,fonts:s}),Mc.jsx(aF,{compact:!0,hidePixels:c}),Mc.jsx(mF,{}),Mc.jsx(Rj,{}),Mc.jsx(cF,{}),Mc.jsx(hF,{}),Mc.jsx(fF,{}),Mc.jsx(eF,{colorPalette:l}),Mc.jsx(mF,{}),Mc.jsx(_j,{compact:!0}),Mc.jsx(mF,{}),Mc.jsx(Ij,{}),Mc.jsx(mF,{}),Mc.jsx(lF,{}),Mc.jsx(R$,{})]})})})})}function O$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}O$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");O$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const P$=1,I$=8,z$=2,D$=4;function j$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===P$||e===D$?"ew":e===I$||e===z$?"ns":e&I$&&e&D$||e&z$&&e&P$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(P$|D$),i=r.direction&(z$|I$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&P$?-n:n;const o=F$(r.startWidth+n,20,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&z$?-n:n;const o=F$(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&P$?-n:n;const o=F$(r.startWidth+n,20,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Mc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,I$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,I$|P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,z$|P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,z$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,z$|D$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,D$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,I$|D$)}})]})}const F$=(e,t,n)=>Math.min(Math.max(e,t),n),B$=new Map,$$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=B$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}}).then(t=>(B$.set(e,t),t)),B$.set(e,t),t;throw t})(r);D.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Mc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function H$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=RF(a),[d,f]=D.useState(!1),[p]=Tc(),h=Rd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||JF(m,t),[e,m,t]);D.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=D.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=D.useCallback(()=>!!l&&(Ji(null),p.focus(),!0),[l,p]);D.useEffect(()=>Vs(p.registerCommand(Ct,b,1),p.registerCommand(an,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Qt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Mc.jsx(D.Suspense,{fallback:null,children:Mc.jsxs(Mc.Fragment,{children:[Mc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Mc.jsx($$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>g?.resolve(t,!1),onError:()=>g?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Ct,e.nativeEvent)}})}),i&&l&&w?Mc.jsx(j$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Hi(a);n?.getType()===GF&&n.setWidthAndHeight(e,t)})}}):null]})})}var W$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),U$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),K$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class G$ extends Qo{__props;constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return GF}static clone(e){return new G$({...e.__props,key:e.getKey()})}decorate(){return Mc.jsx(H$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:GF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===G$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||U$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=W$(n);a=K$(a),a=decodeURIComponent(a);return{node:Y$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return Y$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const Y$=e=>new G$(e),V$=document.createElement("img");function q$(e){const t=e.target;return!!(t&&Oa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Oa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function J$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===GF?t:null}function Q$(e,t){const n=J$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==GF?null:r}(e);if(!r)return!1;const o=Qa(n,e=>!Tu(e)&&Su(e));if(e.preventDefault(),q$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=ro();null!=i&&a.applyDOMRange(i),Ji(a),t.dispatchCommand(YF,{...r}),o&&t.dispatchCommand(Au,o.getURL())}return!0}V$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const X$=()=>{const[e]=Tc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),D.useEffect(()=>Vs(e.registerCommand(YF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=Y$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});vo([e]),Ca(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,li).selectEnd()}),!0),ci),e.registerCommand(un,t=>{const r=so();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===G$.getType());if(!i)return!1;const a=rd(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===G$.getType()){const t={...e};return t.tempUrl=t.tempUrl||JF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return ed(e,wl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(an,e=>function(e){const t=J$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(V$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:GF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!J$()&&(q$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>Q$(t,e),3)),[e,t,o,n]),null};const Z$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Tc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function eH(e,t){try{const n=function(e){const t=pi(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw new Error(`${e} is not supported in headless mode`)}}),t}({nodes:[...t||[],vd,hd,pc,lc]});return n.update(()=>{const t=new DataTransfer;t.setData("text/html",e),Jc(t,Vi().select(0,0),n)},{discrete:!0}),JSON.stringify(n.getEditorState().toJSON())}catch(e){console.error("Failed to convert seed data to editor state",e)}}function tH(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=D.useContext(B),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));let l;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;if("responsive"===e){const e=o?.components?.find(e=>"scaleFactor"===e.key)?.scaleFactor||1;l=`calc((${"100cqmin / 480px"}) * ${e})`}}D.useEffect(()=>{!function(e){const t=Object.entries(NF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});HI.configure(t,e)}(t)},[t]);const u=o?.seedData,c=D.useMemo(()=>{if(void 0!==e){let r=e||void 0;const o=[...qD,UF];return n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(G$):o.push((t=GF,class e extends Qo{__data;constructor(e={},t){super(t),this.__data=e}static getType(){return t}static clone(t){return new e(t.__data,t.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:t,version:1}}static importJSON(t){return new e(t)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")&&u&&!r&&(r=eH(u,o)),(e=>{let t=dD.nodes;e.nodes&&(t=dD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...dD,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n,u]),d=Mc.jsxs(fD,{initialConfig:c,flags:n,children:[Mc.jsx(M$,{}),Mc.jsx(lj,{showPlaceholder:s}),Mc.jsx(aj,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(X$,{}):null,Mc.jsx(eB,{}),Mc.jsx(XF,{}),Mc.jsx(nB,{}),Mc.jsx(Z$,{})]});return c?Mc.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Mc.jsx("div",{style:{zoom:l},children:d}):d}):null}const nH={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:$F,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}};function rH({env:e}){return{definition:{type:"items",component:"accordion",items:{data:nH,settings:(t=e.flags,{uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,...t?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&{items:{layoutBehavior:{translation:"properties.layoutBehavior",component:"panel-section",items:{layoutBehaviorSection:{component:"items",ref:"components",key:"layoutBehavior",items:{layoutBehaviorItems:{component:"dropdown",ref:"layoutBehavior",defaultValue:"fixed",options:[{value:"responsive",translation:"properties.responsive"},{value:"fixed",translation:"properties.fixed"}]}}}}},scaleFactor:{translation:"MediaTool.Toolbar.FontSize",component:"panel-section",items:{scaleFactor:{component:"items",ref:"components",key:"scaleFactor",items:{scaleFactorItems:{translation:"MediaTool.Toolbar.FontSize",component:"slider",ref:"scaleFactor",min:.2,max:2,step:.05,defaultValue:1,schemaIgnore:!0}}}},show:(e,t)=>{const n=t.layout.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;return"responsive"===n}}}}}}}}})}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class oH{selectedModelId;getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const iH=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t(()=>{2===g&&f.edit&&f.select&&x(!0)},[g,f]),t(()=>{const t=()=>{f.edit&&f.select&&v(e=>e+1)},n=e=>{const t=document.getElementById(T$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}},[u,f,d]),t(()=>{!h&&y&&p.emit("saveDocument")},[h,p,y]),{edit:h}};function aH(f){const m=new oH,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:rH({env:f}),component(){const p=o(),h=(n=>{const r=e(()=>z.createRoot(n),[n]);return t(()=>()=>{r?.unmount()},[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r(()=>new Promise(t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&n.add(e.id)}),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}),[]),t(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}})({layout:v,flags:g});t(()=>{const e=e=>{!async function(e,t){try{if(e){const n=await e.getProperties(),{qHyperCubeDef:r}=n;if(r){const o=new Set(t),i=r.qMeasures?.filter(e=>!e?.qDef?.cId||!o.has(e.qDef.cId));if(r.qMeasures?.length!==i?.length){r.qMeasures=i,r.qInterColumnSortOrder=[];const t={...n,qHyperCubeDef:r};await e.setProperties(t)}}}}catch(e){console.error(e)}}(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}},[x,y]),t(()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))},[v,S]);const{edit:A}=iH({propertyPanelHandlerData:m,flags:g});t(()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(Mc.jsx(j.StrictMode,{children:Mc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f,interactionState:c},children:Mc.jsx(tH,{})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})},[v,h,y,p,A,p,S,x,g,E,b]),t(()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}},[v,_,x]),d(()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}}),[])}}}export{aH as default};
|
|
110
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},v$({exports:{}});const T$=e=>`text-toolbar.${e?.id}`,A$=(e,t)=>Mc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Mc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),N$=D.forwardRef(A$),L$=Aj(Tj,"InsertImage"),R$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Tc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(YF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(L$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Mc.jsx(N$,{height:12})}):null};function M$(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=D.useContext(B),a=D.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=D.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?gB:mB}(r),[r]),l=D.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]),u=r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior,c="responsive"===u;return Mc.jsx(I_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:21},id:T$(n),children:({TransitionProps:e})=>Mc.jsx(kw,{...e,children:Mc.jsx(Nb,{sx:{borderRadius:1,padding:.25},children:Mc.jsxs(mj,{children:[Mc.jsx(Ej,{compact:!0}),Mc.jsx(mF,{}),Mc.jsx(tF,{compact:!0,fonts:s}),Mc.jsx(aF,{compact:!0,hidePixels:c}),Mc.jsx(mF,{}),Mc.jsx(Rj,{}),Mc.jsx(cF,{}),Mc.jsx(hF,{}),Mc.jsx(fF,{}),Mc.jsx(eF,{colorPalette:l}),Mc.jsx(mF,{}),Mc.jsx(_j,{compact:!0}),Mc.jsx(mF,{}),Mc.jsx(Ij,{}),Mc.jsx(mF,{}),Mc.jsx(lF,{}),Mc.jsx(R$,{})]})})})})}function O$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}O$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");O$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const P$=1,I$=8,z$=2,D$=4;function j$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===P$||e===D$?"ew":e===I$||e===z$?"ns":e&I$&&e&D$||e&z$&&e&P$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(P$|D$),i=r.direction&(z$|I$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&P$?-n:n;const o=F$(r.startWidth+n,20,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&z$?-n:n;const o=F$(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&P$?-n:n;const o=F$(r.startWidth+n,20,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Mc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,I$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,I$|P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,z$|P$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,z$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,z$|D$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,D$)}}),Mc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Mc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,I$|D$)}})]})}const F$=(e,t,n)=>Math.min(Math.max(e,t),n),B$=new Map,$$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=B$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}}).then(t=>(B$.set(e,t),t)),B$.set(e,t),t;throw t})(r);D.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Mc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function H$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=RF(a),[d,f]=D.useState(!1),[p]=Tc(),h=Rd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||JF(m,t),[e,m,t]);D.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=D.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=D.useCallback(()=>!!l&&(Ji(null),p.focus(),!0),[l,p]);D.useEffect(()=>Vs(p.registerCommand(Ct,b,1),p.registerCommand(an,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Qt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Mc.jsx(D.Suspense,{fallback:null,children:Mc.jsxs(Mc.Fragment,{children:[Mc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Mc.jsx($$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>g?.resolve(t,!1),onError:()=>g?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Ct,e.nativeEvent)}})}),i&&l&&w?Mc.jsx(j$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Hi(a);n?.getType()===GF&&n.setWidthAndHeight(e,t)})}}):null]})})}var W$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),U$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),K$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class G$ extends Qo{__props;constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return GF}static clone(e){return new G$({...e.__props,key:e.getKey()})}decorate(){return Mc.jsx(H$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:GF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===G$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||U$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=W$(n);a=K$(a),a=decodeURIComponent(a);return{node:Y$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return Y$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const Y$=e=>new G$(e),V$=document.createElement("img");function q$(e){const t=e.target;return!!(t&&Oa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Oa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function J$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===GF?t:null}function Q$(e,t){const n=J$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==GF?null:r}(e);if(!r)return!1;const o=Qa(n,e=>!Tu(e)&&Su(e));if(e.preventDefault(),q$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=ro();null!=i&&a.applyDOMRange(i),Ji(a),t.dispatchCommand(YF,{...r}),o&&t.dispatchCommand(Au,o.getURL())}return!0}V$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const X$=()=>{const[e]=Tc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),D.useEffect(()=>Vs(e.registerCommand(YF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=Y$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});vo([e]),Ca(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,li).selectEnd()}),!0),ci),e.registerCommand(un,t=>{const r=so();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===G$.getType());if(!i)return!1;const a=rd(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===G$.getType()){const t={...e};return t.tempUrl=t.tempUrl||JF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return ed(e,wl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(an,e=>function(e){const t=J$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(V$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:GF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!J$()&&(q$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>Q$(t,e),3)),[e,t,o,n]),null};const Z$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Tc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function eH(e,t){try{const n=function(e){const t=pi(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw new Error(`${e} is not supported in headless mode`)}}),t}({nodes:[...t||[],vd,hd,pc,lc]});return n.update(()=>{const t=new DataTransfer;t.setData("text/html",e),Jc(t,Vi().select(0,0),n)},{discrete:!0}),JSON.stringify(n.getEditorState().toJSON())}catch(e){console.error("Failed to convert seed data to editor state",e)}}function tH(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=D.useContext(B),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));let l;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;if("responsive"===e){const e=o?.components?.find(e=>"scaleFactor"===e.key)?.scaleFactor||1;l=`calc((${"100cqmin / 480px"}) * ${e})`}}D.useEffect(()=>{!function(e){const t=Object.entries(NF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});HI.configure(t,e)}(t)},[t]);const u=o?.seedData,c=D.useMemo(()=>{if(void 0!==e){let r=e||void 0;const o=[...qD,UF];return n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(G$):o.push((t=GF,class e extends Qo{__data;constructor(e={},t){super(t),this.__data=e}static getType(){return t}static clone(t){return new e(t.__data,t.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:t,version:1}}static importJSON(t){return new e(t)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),n?.isEnabled("GVC_141_PASTE_IMAGE_AND_TEXT_TO_CREATE_OBJECT")&&u&&!r&&(r=eH(u,o)),(e=>{let t=dD.nodes;e.nodes&&(t=dD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...dD,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n,u]),d=Mc.jsxs(fD,{initialConfig:c,flags:n,children:[Mc.jsx(M$,{}),Mc.jsx(lj,{showPlaceholder:s}),Mc.jsx(aj,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Mc.jsx(X$,{}):null,Mc.jsx(eB,{}),Mc.jsx(XF,{}),Mc.jsx(nB,{}),Mc.jsx(Z$,{})]});return c?Mc.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Mc.jsx("div",{style:{zoom:l},children:d}):d}):null}const nH={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:$F,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}};function rH({env:e}){return{definition:{type:"items",component:"accordion",items:{data:nH,settings:(t=e.flags,{uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,...t?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&{items:{layoutBehavior:{translation:"properties.layoutBehavior",component:"panel-section",items:{layoutBehaviorSection:{component:"items",ref:"components",key:"layoutBehavior",items:{layoutBehaviorItems:{component:"dropdown",ref:"layoutBehavior",defaultValue:"fixed",options:[{value:"responsive",translation:"properties.responsive"},{value:"fixed",translation:"properties.fixed"}]}}}}},scaleFactor:{translation:"MediaTool.Toolbar.FontSize",component:"panel-section",items:{scaleFactor:{component:"items",ref:"components",key:"scaleFactor",items:{scaleFactorItems:{translation:"MediaTool.Toolbar.FontSize",component:"slider",ref:"scaleFactor",min:.2,max:2,step:.05,defaultValue:1,schemaIgnore:!0}}}},show:(e,t)=>{const n=t.layout.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;return"responsive"===n}}}}}}}}})}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class oH{selectedModelId;getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const iH=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t(()=>{2===g&&f.edit&&f.select&&x(!0)},[g,f]),t(()=>{const t=()=>{f.edit&&f.select&&v(e=>e+1)},n=e=>{const t=document.getElementById(T$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}},[u,f,d]),t(()=>{!h&&y&&p.emit("saveDocument")},[h,p,y]),{edit:h}};function aH(f){const m=new oH,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:rH({env:f}),component(){const p=o(),h=(n=>{const r=e(()=>z.createRoot(n),[n]);return t(()=>()=>{r?.unmount()},[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r(()=>new Promise(t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&n.add(e.id)}),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}),[]),t(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}})({layout:v,flags:g});t(()=>{const e=e=>{!async function(e,t){try{if(e){const n=await e.getProperties(),{qHyperCubeDef:r}=n;if(r){const o=new Set(t),i=r.qMeasures?.filter(e=>!e?.qDef?.cId||!o.has(e.qDef.cId));if(r.qMeasures?.length!==i?.length){r.qMeasures=i,r.qInterColumnSortOrder=[];const t={...n,qHyperCubeDef:r};await e.setProperties(t)}}}}catch(e){console.error(e)}}(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}},[x,y]),t(()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))},[v,S]);const{edit:A}=iH({propertyPanelHandlerData:m,flags:g});t(()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(Mc.jsx(j.StrictMode,{children:Mc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f,interactionState:c},children:Mc.jsx(tH,{})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})},[v,h,y,p,A,p,S,x,g,E,b]),t(()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}},[v,_,x]),d(()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}}),[])}}}export{aH as default};
|