var l={exports:{}},y,v;function R(){if(v)return y;v=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return y=e,y}var m,b;function w(){if(b)return m;b=1;var e=R();function o(){}function r(){}return r.resetWarningCache=o,m=function(){function t(i,p,f,g,h,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}t.isRequired=t;function c(){return t}var u={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:c,element:t,elementType:t,instanceOf:c,node:t,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:r,resetWarningCache:o};return u.PropTypes=u,u},m}var E;function D(){return E||(E=1,l.exports=w()()),l.exports}var n=D();const O={onActivate:n.func,onAddUndo:n.func,onBeforeAddUndo:n.func,onBeforeExecCommand:n.func,onBeforeGetContent:n.func,onBeforeRenderUI:n.func,onBeforeSetContent:n.func,onBeforePaste:n.func,onBlur:n.func,onChange:n.func,onClearUndos:n.func,onClick:n.func,onContextMenu:n.func,onCommentChange:n.func,onCompositionEnd:n.func,onCompositionStart:n.func,onCompositionUpdate:n.func,onCopy:n.func,onCut:n.func,onDblclick:n.func,onDeactivate:n.func,onDirty:n.func,onDrag:n.func,onDragDrop:n.func,onDragEnd:n.func,onDragGesture:n.func,onDragOver:n.func,onDrop:n.func,onExecCommand:n.func,onFocus:n.func,onFocusIn:n.func,onFocusOut:n.func,onGetContent:n.func,onHide:n.func,onInit:n.func,onInput:n.func,onKeyDown:n.func,onKeyPress:n.func,onKeyUp:n.func,onLoadContent:n.func,onMouseDown:n.func,onMouseEnter:n.func,onMouseLeave:n.func,onMouseMove:n.func,onMouseOut:n.func,onMouseOver:n.func,onMouseUp:n.func,onNodeChange:n.func,onObjectResizeStart:n.func,onObjectResized:n.func,onObjectSelected:n.func,onPaste:n.func,onPostProcess:n.func,onPostRender:n.func,onPreProcess:n.func,onProgressState:n.func,onRedo:n.func,onRemove:n.func,onReset:n.func,onSaveContent:n.func,onSelectionChange:n.func,onSetAttrib:n.func,onSetContent:n.func,onShow:n.func,onSubmit:n.func,onUndo:n.func,onVisualAid:n.func,onSkinLoadError:n.func,onThemeLoadError:n.func,onModelLoadError:n.func,onPluginLoadError:n.func,onIconsLoadError:n.func,onLanguageLoadError:n.func,onScriptsLoad:n.func,onScriptsLoadError:n.func},L={apiKey:n.string,licenseKey:n.string,id:n.string,inline:n.bool,init:n.object,initialValue:n.string,onEditorChange:n.func,value:n.string,tagName:n.string,tabIndex:n.number,cloudChannel:n.string,plugins:n.oneOfType([n.string,n.array]),toolbar:n.oneOfType([n.string,n.array]),disabled:n.bool,textareaName:n.string,tinymceScriptSrc:n.oneOfType([n.string,n.arrayOf(n.string),n.arrayOf(n.shape({src:n.string,async:n.bool,defer:n.bool}))]),rollback:n.oneOfType([n.number,n.oneOf([!1])]),scriptLoading:n.shape({async:n.bool,defer:n.bool,delay:n.number}),...O},N=e=>typeof e=="function",T=e=>e in O,C=e=>e.substr(2),x=(e,o,r,t,c,u,i)=>{const p=Object.keys(c).filter(T),f=Object.keys(u).filter(T),g=p.filter(a=>u[a]===void 0),h=f.filter(a=>c[a]===void 0);g.forEach(a=>{const s=C(a),d=i[s];r(s,d),delete i[s]}),h.forEach(a=>{const s=t(e,a),d=C(a);i[d]=s,o(d,s)})},I=(e,o,r,t,c)=>x(c,e.on.bind(e),e.off.bind(e),(u,i)=>p=>{var f;return(f=u(i))==null?void 0:f(p,e)},o,r,t);let P=0;const M=e=>{const o=Date.now(),r=Math.floor(Math.random()*1e9);return P++,e+"_"+r+P+String(o)},A=e=>e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input"),S=e=>typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" "),_=(e,o)=>S(e).concat(S(o)),F=()=>window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function",U=e=>{if(!("isConnected"in Node.prototype)){let o=e,r=e.parentNode;for(;r!=null;)o=r,r=o.parentNode;return o===e.ownerDocument}return e.isConnected},j=(e,o)=>{e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(o):e.setMode(o))},k=e=>{const o=e.replace(/\s+/g,"");return/^(\+2519\d{8}|09\d{8})$/.test(o)||/^(\+2517\d{8}|07\d{8})$/.test(o)},B=e=>{const o=e.replace(/\s+/g,"");return/^(\+2519\d{8}|09\d{8})$/.test(o)||/^(\+2517\d{8}|07\d{8})$/.test(o)},K=e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/.test(e);export{L as E,K as a,k as b,F as c,I as d,N as e,U as f,A as g,B as i,_ as m,j as s,M as u};
