1"use strict";(globalThis.webpackChunkstec=globalThis.webpackChunkstec||[]).push([[3905],{23820:(n,e,t)=>{t.r(e),t.d(e,{configHandlers:()=>c,configHandlers2:()=>s,isBeforeInputEventAvailable:()=>h,isFunction:()=>r,isInDoc:()=>v,isTextareaOrInput:()=>d,mergePlugins:()=>f,setMode:()=>y,uuid:()=>l});var o=t(78219),r=function(n){return"function"==typeof n},i=function(n){return n in o.eventPropTypes},a=function(n){return n.substr(2)},s=function(n,e,t,o,r,s,c){var u=Object.keys(r).filter(i),l=Object.keys(s).filter(i),d=u.filter((function(n){return void 0===s[n]})),p=l.filter((function(n){return void 0===r[n]}));d.forEach((function(n){var e=a(n),o=c[e];t(e,o),delete c[e]})),p.forEach((function(t){var r=o(n,t),i=a(t);c[i]=r,e(i,r)}))},c=function(n,e,t,o,r){return s(r,n.on.bind(n),n.off.bind(n),(function(e,t){return function(o){var r;return null===(r=e(t))||void 0===r?void 0:r(o,n)}}),e,t,o)},u=0,l=function(n){var e=Date.now();return n+"_"+Math.floor(1e9*Math.random())+ ++u+String(e)},d=function(n){return null!==n&&("textarea"===n.tagName.toLowerCase()||"input"===n.tagName.toLowerCase())},p=function(n){return void 0===n||""===n?[]:Array.isArray(n)?n:n.split(" ")},f=function(n,e){return p(n).concat(p(e))},h=function(){return window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges},v=function(n){if(!("isConnected"in Node.prototype)){for(var e=n,t=n.parentNode;null!=t;)t=(e=t).parentNode;return e===n.ownerDocument}return n.isConnected},y=function(n,e){void 0!==n&&(null!=n.mode&&"object"==typeof n.mode&&"function"==typeof n.mode.set?n.mode.set(e):n.setMode(e))}},23905:(n,e,t)=>{t.r(e),t.d(e,{Editor:()=>o.Editor});var o=t(92001)},25555:(n,e,t)=>{t.r(e),t.d(e,{ScriptLoader:()=>c});var o,r,i=t(23820),a=function(){return a=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},a.apply(this,arguments)},s=function(n,e,t){var o,r,i=n.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e.id,i.src=e.src,i.async=null!==(o=e.async)&&void 0!==o&&o,i.defer=null!==(r=e.defer)&&void 0!==r&&r;var a=function(){i.removeEventListener("load",a),i.removeEventListener("error",s),t(e.src)},s=function(n){i.removeEventListener("load",a),i.removeEventListener("error",s),t(e.src,n)};i.addEventListener("load",a),i.addEventListener("error",s),n.head&&n.head.appendChild(i)},c=(o=[],r=function(n){var e=o.find((function(e){return e.getDocument()===n}));return void 0===e&&(e=function(n){var e={},t=function(n,t){var o=e[n];o.done=!0,o.error=t;for(var r=0,i=o.handlers;r<i.length;r++)(0,i[r])(n,t);o.handlers=[]};return{loadScripts:function(o,r,c){var u=function(n){return void 0!==c?c(n):console.error(n)};if(0!==o.length)for(var l=0,d=!1,p=function(n,e){d||(e?(d=!0,u(e)):++l===o.length&&r())},f=0,h=o;f<h.length;f++){var v=h[f],y=e[v.src];if(y)y.done?p(v.src,y.error):y.handlers.push(p);else{var g=(0,i.uuid)("tiny-");e[v.src]={id:g,src:v.src,done:!1,error:null,handlers:[p]},s(n,a({id:g},v),t)}}else u(new Error("At least one script must be provided"))},deleteScripts:function(){for(var t,o=0,r=Object.values(e);o<r.length;o++){var i=r[o],a=n.getElementById(i.id);null!=a&&"SCRIPT"===a.tagName&&(null===(t=a.parentNode)||void 0===t||t.removeChild(a))}e={}},getDocument:function(){return n}}}(n),o.push(e)),e},{loadList:function(n,e,t,o,i){var a=function(){return r(n).loadScripts(e,o,i)};t>0?setTimeout(a,t):a()},reinitialize:function(){for(var n=o.pop();null!=n;n=o.pop())n.deleteScripts()}})},78219:(n,e,t)=>{t.r(e),t.d(e,{EditorPropTypes:()=>a,eventPropTypes:()=>i});var o=t(5556),r=function(){return r=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},r.apply(this,arguments)},i={onActivate:o.func,onAddUndo:o.func,onBeforeAddUndo:o.func,onBeforeExecCommand:o.func,onBeforeGetContent:o.func,onBeforeRenderUI:o.func,onBeforeSetContent:o.func,onBeforePaste:o.func,onBlur:o.func,onChange:o.func,onClearUndos:o.func,onClick:o.func,onContextMenu:o.func,onCommentChange:o.func,onCompositionEnd:o.func,onCompositionStart:o.func,onCompositionUpdate:o.func,onCopy:o.func,onCut:o.func,onDblclick:o.func,onDeactivate:o.func,onDirty:o.func,onDrag:o.func,onDragDrop:o.func,onDragEnd:o.func,onDragGesture:o.func,onDragOver:o.func,onDrop:o.func,onExecCommand:o.func,onFocus:o.func,onFocusIn:o.func,onFocusOut:o.func,onGetContent:o.func,onHide:o.func,onInit:o.func,onInput:o.func,onKeyDown:o.func,onKeyPress:o.func,onKeyUp:o.func,onLoadContent:o.func,onMouseDown:o.func,onMouseEnter:o.func,onMouseLeave:o.func,onMouseMove:o.func,onMouseOut:o.func,onMouseOver:o.func,onMouseUp:o.func,onNodeChange:o.func,onObjectResizeStart:o.func,onObjectResized:o.func,onObjectSelected:o.func,onPaste:o.func,onPostProcess:o.func,onPostRender:o.func,onPreProcess:o.func,onProgressState:o.func,onRedo:o.func,onRemove:o.func,onReset:o.func,onSaveContent:o.func,onSelectionChange:o.func,onSetAttrib:o.func,onSetContent:o.func,onShow:o.func,onSubmit:o.func,onUndo:o.func,onVisualAid:o.func,onSkinLoadError:o.func,onThemeLoadError:o.func,onModelLoadError:o.func,onPluginLoadError:o.func,onIconsLoadError:o.func,onLanguageLoadError:o.func,onScriptsLoad:o.func,onScriptsLoadError:o.func},a=r({apiKey:o.string,licenseKey:o.string,id:o.string,inline:o.bool,init:o.object,initialValue:o.string,onEditorChange:o.func,value:o.string,tagName:o.string,tabIndex:o.number,cloudChannel:o.string,plugins:o.oneOfType([o.string,o.array]),toolbar:o.oneOfType([o.string,o.array]),disabled:o.bool,textareaName:o.string,tinymceScriptSrc:o.oneOfType([o.string,o.arrayOf(o.string),o.arrayOf(o.shape({src:o.string,async:o.bool,defer:o.bool}))]),rollback:o.oneOfType([o.number,o.oneOf([!1])]),scriptLoading:o.shape({async:o.bool,defer:o.bool,delay:o.number})},i)},92001:(n,e,t)=>{t.r(e),t.d(e,{Editor:()=>d});var o,r=t(26878),i=t(25555),a=t(99508),s=t(23820),c=t(78219),u=(o=function(n,e){return o=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])},o(n,e)},function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=n}o(n,e),n.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),l=function(){return l=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},l.apply(this,arguments)},d=function(n){function e(e){var t,o,i,c=n.call(this,e)||this;return c.rollbackTimer=void 0,c.valueCursor=void 0,c.rollbackChange=function(){var n=c.editor,e=c.props.value;n&&e&&e!==c.currentContent&&n.undoManager.ignore((function(){if(n.setContent(e),c.valueCursor&&(!c.inline||n.hasFocus()))try{n.selection.moveToBookmark(c.valueCursor)}catch(n){}})),c.rollbackTimer=void 0},c.handleBeforeInput=function(n){if(void 0!==c.props.value&&c.props.value===c.currentContent&&c.editor&&(!c.inline||c.editor.hasFocus()))try{c.valueCursor=c.editor.selection.getBookmark(3)}catch(n){}},c.handleBeforeInputSpecial=function(n){"Enter"!==n.key&&"Backspace"!==n.key&&"Delete"!==n.key||c.handleBeforeInput(n)},c.handleEditorChange=function(n){var e=c.editor;if(e&&e.initialized){var t=e.getContent();void 0!==c.props.value&&c.props.value!==t&&!1!==c.props.rollback&&(c.rollbackTimer||(c.rollbackTimer=window.setTimeout(c.rollbackChange,"number"==typeof c.props.rollback?c.props.rollback:200))),t!==c.currentContent&&(c.currentContent=t,(0,s.isFunction)(c.props.onEditorChange)&&c.props.onEditorChange(t,e))}},c.handleEditorChangeSpecial=function(n){"Backspace"!==n.key&&"Delete"!==n.key||c.handleEditorChange(n)},c.initialise=function(n){var e,t,o;void 0===n&&(n=0);var r=c.elementRef.current;if(r)if((0,s.isInDoc)(r)){var i=(0,a.getTinymce)(c.view);if(!i)throw new Error("tinymce should have been loaded into global scope");var u=l(l(l(l({},c.props.init),{selector:void 0,target:r,readonly:c.props.disabled,inline:c.inline,plugins:(0,s.mergePlugins)(null===(e=c.props.init)||void 0===e?void 0:e.plugins,c.props.plugins),toolbar:null!==(t=c.props.toolbar)&&void 0!==t?t:null===(o=c.props.init)||void 0===o?void 0:o.toolbar}),c.props.licenseKey?{license_key:c.props.licenseKey}:{}),{setup:function(n){c.editor=n,c.bindHandlers({}),c.inline&&!(0,s.isTextareaOrInput)(r)&&n.once("PostRender",(function(e){n.setContent(c.getInitialValue(),{no_events:!0})})),c.props.init&&(0,s.isFunction)(c.props.init.setup)&&c.props.init.setup(n)},init_instance_callback:function(n){var e,t,o=c.getInitialValue();c.currentContent=null!==(e=c.currentContent)&&void 0!==e?e:n.getContent(),c.currentContent!==o&&(c.currentContent=o,n.setContent(o),n.undoManager.clear(),n.undoManager.add(),n.setDirty(!1));var r=null!==(t=c.props.disabled)&&void 0!==t&&t;(0,s.setMode)(c.editor,r?"readonly":"design"),c.props.init&&(0,s.isFunction)(c.props.init.init_instance_callback)&&c.props.init.init_instance_callback(n)}});c.inline||(r.style.visibility=""),(0,s.isTextareaOrInput)(r)&&(r.value=c.getInitialValue()),i.init(u)}else if(0===n)setTimeout((function(){return c.initialise(1)}),1);else{if(!(n<100))throw new Error("tinymce can only be initialised when in a document");setTimeout((function(){return c.initialise(n+1)}),100)}},c.id=c.props.id||(0,s.uuid)("tiny-react"),c.elementRef=r.createRef(),c.inline=null!==(i=null!==(t=c.props.inline)&&void 0!==t?t:null===(o=c.props.init)||void 0===o?void 0:o.inline)&&void 0!==i&&i,c.boundHandlers={},c}return u(e,n),Object.defineProperty(e.prototype,"view",{get:function(){var n,e;return null!==(e=null===(n=this.elementRef.current)||void 0===n?void 0:n.ownerDocument.defaultView)&&void 0!==e?e:window},enumerable:!1,configurable:!0}),e.prototype.componentDidUpdate=function(n){var e,t,o=this;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(n),this.editor.initialized)){if(this.currentContent=null!==(e=this.currentContent)&&void 0!==e?e:this.editor.getContent(),"string"==typeof this.props.initialValue&&this.props.initialValue!==n.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if("string"==typeof this.props.value&&this.props.value!==this.currentContent){var r=this.editor;
1r.undoManager.transact((function(){var n;if(!o.inline||r.hasFocus())try{n=r.selection.getBookmark(3)}catch(n){}var e=o.valueCursor;if(r.setContent(o.props.value),!o.inline||r.hasFocus())for(var t=0,i=[n,e];t<i.length;t++){var a=i[t];if(a)try{r.selection.moveToBookmark(a),o.valueCursor=a;break}catch(n){}}}))}if(this.props.disabled!==n.disabled){var i=null!==(t=this.props.disabled)&&void 0!==t&&t;(0,s.setMode)(this.editor,i?"readonly":"design")}}},e.prototype.componentDidMount=function(){var n,e,t,o,r,s=this;if(null!==(0,a.getTinymce)(this.view))this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&0===this.props.tinymceScriptSrc.length)null===(e=(n=this.props).onScriptsLoadError)||void 0===e||e.call(n,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(null===(t=this.elementRef.current)||void 0===t?void 0:t.ownerDocument){i.ScriptLoader.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),null!==(r=null===(o=this.props.scriptLoading)||void 0===o?void 0:o.delay)&&void 0!==r?r:0,(function(){var n,e;null===(e=(n=s.props).onScriptsLoad)||void 0===e||e.call(n),s.initialise()}),(function(n){var e,t;null===(t=(e=s.props).onScriptsLoadError)||void 0===t||t.call(e,n)}))}},e.prototype.componentWillUnmount=function(){var n=this,e=this.editor;e&&(e.off(this.changeEvents(),this.handleEditorChange),e.off(this.beforeInputEvent(),this.handleBeforeInput),e.off("keypress",this.handleEditorChangeSpecial),e.off("keydown",this.handleBeforeInputSpecial),e.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach((function(t){e.off(t,n.boundHandlers[t])})),this.boundHandlers={},e.remove(),this.editor=void 0)},e.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},e.prototype.changeEvents=function(){var n,e,t;return(null===(t=null===(e=null===(n=(0,a.getTinymce)(this.view))||void 0===n?void 0:n.Env)||void 0===e?void 0:e.browser)||void 0===t?void 0:t.isIE())?"change keyup compositionend setcontent CommentChange":"change input compositionend setcontent CommentChange"},e.prototype.beforeInputEvent=function(){return(0,s.isBeforeInputEventAvailable)()?"beforeinput SelectionChange":"SelectionChange"},e.prototype.renderInline=function(){var n=this.props.tagName,e=void 0===n?"div":n;return r.createElement(e,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},e.prototype.renderIframe=function(){return r.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},e.prototype.getScriptSources=function(){var n,e,t=null===(n=this.props.scriptLoading)||void 0===n?void 0:n.async,o=null===(e=this.props.scriptLoading)||void 0===e?void 0:e.defer;if(void 0!==this.props.tinymceScriptSrc)return"string"==typeof this.props.tinymceScriptSrc?[{src:this.props.tinymceScriptSrc,async:t,defer:o}]:this.props.tinymceScriptSrc.map((function(n){return"string"==typeof n?{src:n,async:t,defer:o}:n}));var r=this.props.cloudChannel,i=this.props.apiKey?this.props.apiKey:"no-api-key";return[{src:"https://cdn.tiny.cloud/1/".concat(i,"/tinymce/").concat(r,"/tinymce.min.js"),async:t,defer:o}]},e.prototype.getInitialValue=function(){return"string"==typeof this.props.initialValue?this.props.initialValue:"string"==typeof this.props.value?this.props.value:""},e.prototype.bindHandlers=function(n){var e=this;if(void 0!==this.editor){(0,s.configHandlers)(this.editor,n,this.props,this.boundHandlers,(function(n){return e.props[n]}));var t=function(n){return void 0!==n.onEditorChange||void 0!==n.value},o=t(n),r=t(this.props);!o&&r?(this.editor.on(this.changeEvents(),this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):o&&!r&&(this.editor.off(this.changeEvents(),this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},e.propTypes=c.EditorPropTypes,e.defaultProps={cloudChannel:"7"},e}(r.Component)},99508:(n,e,t)=>{t.r(e),t.d(e,{getTinymce:()=>o});var o=function(n){var e=n;return e&&e.tinymce?e.tinymce:null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.