Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-react

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-react - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

dist/ckeditor.js

@@ -5,3 +5,3 @@ /*!

*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.CKEditor=e(require("react")):t.CKEditor=e(t.React)}(self,(t=>(()=>{var e={703:(t,e,r)=>{"use strict";var o=r(414);function n(){}function i(){}i.resetWarningCache=n,t.exports=function(){function t(t,e,r,n,i,s){if(s!==o){var c=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 c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},787:e=>{"use strict";e.exports=t}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";o.r(n),o.d(n,{CKEditor:()=>Zr,CKEditorContext:()=>Jr});var t=o(787),e=o.n(t),r=o(697),i=o.n(r);const s=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const c="object"==typeof global&&global&&global.Object===Object&&global;var a="object"==typeof self&&self&&self.Object===Object&&self;const u=c||a||Function("return this")();const h=function(){return u.Date.now()};var d=/\s/;const l=function(t){for(var e=t.length;e--&&d.test(t.charAt(e)););return e};var p=/^\s+/;const f=function(t){return t?t.slice(0,l(t)+1).replace(p,""):t};const _=u.Symbol;var y=Object.prototype,g=y.hasOwnProperty,b=y.toString,m=_?_.toStringTag:void 0;const v=function(t){var e=g.call(t,m),r=t[m];try{t[m]=void 0;var o=!0}catch(t){}var n=b.call(t);return o&&(e?t[m]=r:delete t[m]),n};var j=Object.prototype.toString;const w=function(t){return j.call(t)};var x=_?_.toStringTag:void 0;const E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?v(t):w(t)};const O=function(t){return null!=t&&"object"==typeof t};const C=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==E(t)};var P=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,T=/^0o[0-7]+$/i,R=parseInt;const S=function(t){if("number"==typeof t)return t;if(C(t))return NaN;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f(t);var r=A.test(t);return r||T.test(t)?R(t.slice(2),r?2:8):P.test(t)?NaN:+t};var W=Math.max,I=Math.min;const D=function(t,e,r){var o,n,i,c,a,u,d=0,l=!1,p=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(e){var r=o,i=n;return o=n=void 0,d=e,c=t.apply(i,r)}function y(t){return d=t,a=setTimeout(b,e),l?_(t):c}function g(t){var r=t-u;return void 0===u||r>=e||r<0||p&&t-d>=i}function b(){var t=h();if(g(t))return m(t);a=setTimeout(b,function(t){var r=e-(t-u);return p?I(r,i-(t-d)):r}(t))}function m(t){return a=void 0,f&&o?_(t):(o=n=void 0,c)}function v(){var t=h(),r=g(t);if(o=arguments,n=this,u=t,r){if(void 0===a)return y(u);if(p)return clearTimeout(a),a=setTimeout(b,e),_(u)}return void 0===a&&(a=setTimeout(b,e)),c}return e=S(e)||0,s(r)&&(l=!!r.leading,i=(p="maxWait"in r)?W(S(r.maxWait)||0,e):i,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==a&&clearTimeout(a),d=0,o=u=n=a=void 0},v.flush=function(){return void 0===a?c:m(h())},v};const z=function(t,e,r){var o=!0,n=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return s(r)&&(o="leading"in r?!!r.leading:o,n="trailing"in r?!!r.trailing:n),D(t,e,{leading:o,maxWait:e,trailing:n})};const M=function(){this.__data__=[],this.size=0};const N=function(t,e){return t===e||t!=t&&e!=e};const U=function(t,e){for(var r=t.length;r--;)if(N(t[r][0],e))return r;return-1};var F=Array.prototype.splice;const L=function(t){var e=this.__data__,r=U(e,t);return!(r<0)&&(r==e.length-1?e.pop():F.call(e,r,1),--this.size,!0)};const k=function(t){var e=this.__data__,r=U(e,t);return r<0?void 0:e[r][1]};const q=function(t){return U(this.__data__,t)>-1};const B=function(t,e){var r=this.__data__,o=U(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function $(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=M,$.prototype.delete=L,$.prototype.get=k,$.prototype.has=q,$.prototype.set=B;const H=$;const Q=function(){this.__data__=new H,this.size=0};const V=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const K=function(t){return this.__data__.get(t)};const G=function(t){return this.__data__.has(t)};const Y=function(t){if(!s(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const J=u["__core-js_shared__"];var X=function(){var t=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const Z=function(t){return!!X&&X in t};var tt=Function.prototype.toString;const et=function(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var rt=/^\[object .+?Constructor\]$/,ot=Function.prototype,nt=Object.prototype,it=ot.toString,st=nt.hasOwnProperty,ct=RegExp("^"+it.call(st).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const at=function(t){return!(!s(t)||Z(t))&&(Y(t)?ct:rt).test(et(t))};const ut=function(t,e){return null==t?void 0:t[e]};const ht=function(t,e){var r=ut(t,e);return at(r)?r:void 0};const dt=ht(u,"Map");const lt=ht(Object,"create");const pt=function(){this.__data__=lt?lt(null):{},this.size=0};const ft=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var _t=Object.prototype.hasOwnProperty;const yt=function(t){var e=this.__data__;if(lt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return _t.call(e,t)?e[t]:void 0};var gt=Object.prototype.hasOwnProperty;const bt=function(t){var e=this.__data__;return lt?void 0!==e[t]:gt.call(e,t)};const mt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=lt&&void 0===e?"__lodash_hash_undefined__":e,this};function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=pt,vt.prototype.delete=ft,vt.prototype.get=yt,vt.prototype.has=bt,vt.prototype.set=mt;const jt=vt;const wt=function(){this.size=0,this.__data__={hash:new jt,map:new(dt||H),string:new jt}};const xt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Et=function(t,e){var r=t.__data__;return xt(e)?r["string"==typeof e?"string":"hash"]:r.map};const Ot=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e};const Ct=function(t){return Et(this,t).get(t)};const Pt=function(t){return Et(this,t).has(t)};const At=function(t,e){var r=Et(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};function Tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}Tt.prototype.clear=wt,Tt.prototype.delete=Ot,Tt.prototype.get=Ct,Tt.prototype.has=Pt,Tt.prototype.set=At;const Rt=Tt;const St=function(t,e){var r=this.__data__;if(r instanceof H){var o=r.__data__;if(!dt||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new Rt(o)}return r.set(t,e),this.size=r.size,this};function Wt(t){var e=this.__data__=new H(t);this.size=e.size}Wt.prototype.clear=Q,Wt.prototype.delete=V,Wt.prototype.get=K,Wt.prototype.has=G,Wt.prototype.set=St;const It=Wt;const Dt=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););return t};const zt=function(){try{var t=ht(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Mt=function(t,e,r){"__proto__"==e&&zt?zt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var Nt=Object.prototype.hasOwnProperty;const Ut=function(t,e,r){var o=t[e];Nt.call(t,e)&&N(o,r)&&(void 0!==r||e in t)||Mt(t,e,r)};const Ft=function(t,e,r,o){var n=!r;r||(r={});for(var i=-1,s=e.length;++i<s;){var c=e[i],a=o?o(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),n?Mt(r,c,a):Ut(r,c,a)}return r};const Lt=function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o};const kt=function(t){return O(t)&&"[object Arguments]"==E(t)};var qt=Object.prototype,Bt=qt.hasOwnProperty,$t=qt.propertyIsEnumerable;const Ht=kt(function(){return arguments}())?kt:function(t){return O(t)&&Bt.call(t,"callee")&&!$t.call(t,"callee")};const Qt=Array.isArray;const Vt=function(){return!1};var Kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gt=Kt&&"object"==typeof module&&module&&!module.nodeType&&module,Yt=Gt&&Gt.exports===Kt?u.Buffer:void 0;const Jt=(Yt?Yt.isBuffer:void 0)||Vt;var Xt=/^(?:0|[1-9]\d*)$/;const Zt=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Xt.test(t))&&t>-1&&t%1==0&&t<e};const te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ee={};ee["[object Float32Array]"]=ee["[object Float64Array]"]=ee["[object Int8Array]"]=ee["[object Int16Array]"]=ee["[object Int32Array]"]=ee["[object Uint8Array]"]=ee["[object Uint8ClampedArray]"]=ee["[object Uint16Array]"]=ee["[object Uint32Array]"]=!0,ee["[object Arguments]"]=ee["[object Array]"]=ee["[object ArrayBuffer]"]=ee["[object Boolean]"]=ee["[object DataView]"]=ee["[object Date]"]=ee["[object Error]"]=ee["[object Function]"]=ee["[object Map]"]=ee["[object Number]"]=ee["[object Object]"]=ee["[object RegExp]"]=ee["[object Set]"]=ee["[object String]"]=ee["[object WeakMap]"]=!1;const re=function(t){return O(t)&&te(t.length)&&!!ee[E(t)]};const oe=function(t){return function(e){return t(e)}};var ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,ie=ne&&"object"==typeof module&&module&&!module.nodeType&&module,se=ie&&ie.exports===ne&&c.process;const ce=function(){try{var t=ie&&ie.require&&ie.require("util").types;return t||se&&se.binding&&se.binding("util")}catch(t){}}();var ae=ce&&ce.isTypedArray;const ue=ae?oe(ae):re;var he=Object.prototype.hasOwnProperty;const de=function(t,e){var r=Qt(t),o=!r&&Ht(t),n=!r&&!o&&Jt(t),i=!r&&!o&&!n&&ue(t),s=r||o||n||i,c=s?Lt(t.length,String):[],a=c.length;for(var u in t)!e&&!he.call(t,u)||s&&("length"==u||n&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Zt(u,a))||c.push(u);return c};var le=Object.prototype;const pe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||le)};const fe=function(t,e){return function(r){return t(e(r))}};const _e=fe(Object.keys,Object);var ye=Object.prototype.hasOwnProperty;const ge=function(t){if(!pe(t))return _e(t);var e=[];for(var r in Object(t))ye.call(t,r)&&"constructor"!=r&&e.push(r);return e};const be=function(t){return null!=t&&te(t.length)&&!Y(t)};const me=function(t){return be(t)?de(t):ge(t)};const ve=function(t,e){return t&&Ft(e,me(e),t)};const je=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var we=Object.prototype.hasOwnProperty;const xe=function(t){if(!s(t))return je(t);var e=pe(t),r=[];for(var o in t)("constructor"!=o||!e&&we.call(t,o))&&r.push(o);return r};const Ee=function(t){return be(t)?de(t,!0):xe(t)};const Oe=function(t,e){return t&&Ft(e,Ee(e),t)};var Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Ae=Pe&&Pe.exports===Ce?u.Buffer:void 0,Te=Ae?Ae.allocUnsafe:void 0;const Re=function(t,e){if(e)return t.slice();var r=t.length,o=Te?Te(r):new t.constructor(r);return t.copy(o),o};const Se=function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e};const We=function(t,e){for(var r=-1,o=null==t?0:t.length,n=0,i=[];++r<o;){var s=t[r];e(s,r,t)&&(i[n++]=s)}return i};const Ie=function(){return[]};var De=Object.prototype.propertyIsEnumerable,ze=Object.getOwnPropertySymbols;const Me=ze?function(t){return null==t?[]:(t=Object(t),We(ze(t),(function(e){return De.call(t,e)})))}:Ie;const Ne=function(t,e){return Ft(t,Me(t),e)};const Ue=function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t};const Fe=fe(Object.getPrototypeOf,Object);const Le=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ue(e,Me(t)),t=Fe(t);return e}:Ie;const ke=function(t,e){return Ft(t,Le(t),e)};const qe=function(t,e,r){var o=e(t);return Qt(t)?o:Ue(o,r(t))};const Be=function(t){return qe(t,me,Me)};const $e=function(t){return qe(t,Ee,Le)};const He=ht(u,"DataView");const Qe=ht(u,"Promise");const Ve=ht(u,"Set");const Ke=ht(u,"WeakMap");var Ge="[object Map]",Ye="[object Promise]",Je="[object Set]",Xe="[object WeakMap]",Ze="[object DataView]",tr=et(He),er=et(dt),rr=et(Qe),or=et(Ve),nr=et(Ke),ir=E;(He&&ir(new He(new ArrayBuffer(1)))!=Ze||dt&&ir(new dt)!=Ge||Qe&&ir(Qe.resolve())!=Ye||Ve&&ir(new Ve)!=Je||Ke&&ir(new Ke)!=Xe)&&(ir=function(t){var e=E(t),r="[object Object]"==e?t.constructor:void 0,o=r?et(r):"";if(o)switch(o){case tr:return Ze;case er:return Ge;case rr:return Ye;case or:return Je;case nr:return Xe}return e});const sr=ir;var cr=Object.prototype.hasOwnProperty;const ar=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&cr.call(t,"index")&&(r.index=t.index,r.input=t.input),r};const ur=u.Uint8Array;const hr=function(t){var e=new t.constructor(t.byteLength);return new ur(e).set(new ur(t)),e};const dr=function(t,e){var r=e?hr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var lr=/\w*$/;const pr=function(t){var e=new t.constructor(t.source,lr.exec(t));return e.lastIndex=t.lastIndex,e};var fr=_?_.prototype:void 0,_r=fr?fr.valueOf:void 0;const yr=function(t){return _r?Object(_r.call(t)):{}};const gr=function(t,e){var r=e?hr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};const br=function(t,e,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return hr(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return dr(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return gr(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return pr(t);case"[object Symbol]":return yr(t)}};var mr=Object.create;const vr=function(){function t(){}return function(e){if(!s(e))return{};if(mr)return mr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const jr=function(t){return"function"!=typeof t.constructor||pe(t)?{}:vr(Fe(t))};const wr=function(t){return O(t)&&"[object Map]"==sr(t)};var xr=ce&&ce.isMap;const Er=xr?oe(xr):wr;const Or=function(t){return O(t)&&"[object Set]"==sr(t)};var Cr=ce&&ce.isSet;const Pr=Cr?oe(Cr):Or;var Ar="[object Arguments]",Tr="[object Function]",Rr="[object Object]",Sr={};Sr[Ar]=Sr["[object Array]"]=Sr["[object ArrayBuffer]"]=Sr["[object DataView]"]=Sr["[object Boolean]"]=Sr["[object Date]"]=Sr["[object Float32Array]"]=Sr["[object Float64Array]"]=Sr["[object Int8Array]"]=Sr["[object Int16Array]"]=Sr["[object Int32Array]"]=Sr["[object Map]"]=Sr["[object Number]"]=Sr["[object Object]"]=Sr["[object RegExp]"]=Sr["[object Set]"]=Sr["[object String]"]=Sr["[object Symbol]"]=Sr["[object Uint8Array]"]=Sr["[object Uint8ClampedArray]"]=Sr["[object Uint16Array]"]=Sr["[object Uint32Array]"]=!0,Sr["[object Error]"]=Sr[Tr]=Sr["[object WeakMap]"]=!1;const Wr=function t(e,r,o,n,i,c){var a,u=1&r,h=2&r,d=4&r;if(o&&(a=i?o(e,n,i,c):o(e)),void 0!==a)return a;if(!s(e))return e;var l=Qt(e);if(l){if(a=ar(e),!u)return Se(e,a)}else{var p=sr(e),f=p==Tr||"[object GeneratorFunction]"==p;if(Jt(e))return Re(e,u);if(p==Rr||p==Ar||f&&!i){if(a=h||f?{}:jr(e),!u)return h?ke(e,Oe(a,e)):Ne(e,ve(a,e))}else{if(!Sr[p])return i?e:{};a=br(e,p,u)}}c||(c=new It);var _=c.get(e);if(_)return _;c.set(e,a),Pr(e)?e.forEach((function(n){a.add(t(n,r,o,n,e,c))})):Er(e)&&e.forEach((function(n,i){a.set(i,t(n,r,o,i,e,c))}));var y=l?void 0:(d?h?$e:Be:h?Ee:me)(e);return Dt(y||e,(function(n,i){y&&(n=e[i=n]),Ut(a,i,t(n,r,o,i,e,c))})),a};const Ir=function(t,e){return Wr(t,5,e="function"==typeof e?e:void 0)};var Dr=Function.prototype,zr=Object.prototype,Mr=Dr.toString,Nr=zr.hasOwnProperty,Ur=Mr.call(Object);const Fr=function(t){if(!O(t)||"[object Object]"!=E(t))return!1;var e=Fe(t);if(null===e)return!0;var r=Nr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Mr.call(r)==Ur};const Lr=function(t){return O(t)&&1===t.nodeType&&!Fr(t)};function kr(t,e=new Set){const r=[t],o=new Set;let n=0;for(;r.length>n;){const t=r[n++];if(!(o.has(t)||qr(t)||e.has(t)))if(o.add(t),t[Symbol.iterator])try{for(const e of t)r.push(e)}catch(t){}else for(const e in t)"defaultValue"!==e&&r.push(t[e])}return o}function qr(t){const e=Object.prototype.toString.call(t),r=typeof t;return"number"===r||"boolean"===r||"string"===r||"symbol"===r||"function"===r||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t instanceof EventTarget||t instanceof Event}function Br(t,e,r=new Set){if(t===e&&("object"==typeof(o=t)&&null!==o))return!0;var o;const n=kr(t,r),i=kr(e,r);for(const t of n)if(i.has(t))return!0;return!1}class $r{constructor(t){if(this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{const e=t.error||t.reason;e instanceof Error&&this._handleError(e,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter((t=>t!==e))}_fire(t,...e){const r=this._listeners[t]||[];for(const t of r)t.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e.filename,lineno:e.lineno,colno:e.colno,date:this._now()});const r=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:r}),r?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}class Hr extends $r{constructor(t,e={}){super(e),this._editor=null,this._throttledSave=z(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),this._creator=(e,r)=>t.create(e,r),this._destructor=t=>t.destroy()}get editor(){return this._editor}get _item(){return this._editor}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((t=>{console.error("An error happened during the editor destroying.",t)})).then((()=>{if("string"==typeof this._elementOrData)return this.create(this._data,this._config,this._config.context);{const t=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,t,t.context)}})).then((()=>{this._fire("restart")}))}create(t=this._elementOrData,e=this._config,r){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=t,this._config=this._cloneEditorConfiguration(e)||{},this._config.context=r,this._creator(t,this._config)))).then((t=>{this._editor=t,t.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=t.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.flush();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)}))}_save(){const t=this._editor.model.document.version;if(t!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t={};for(const e of this._editor.model.document.getRootNames())t[e]=this._editor.data.get({rootName:e});return t}_isErrorComingFromThisItem(t){return Br(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return Ir(t,((t,e)=>Lr(t)||"context"===e?t:void 0))}}const Qr=new Array(256).fill().map(((t,e)=>("0"+e.toString(16)).slice(-2)));class Vr extends $r{constructor(t,e={}){super(e),this._watchdogs=new Map,this._watchdogConfig=e,this._context=null,this._contextProps=new Set,this._actionQueue=new Kr,this._creator=e=>t.create(e),this._destructor=t=>t.destroy(),this._actionQueue.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}get context(){return this._context}create(t={}){return this._actionQueue.enqueue((()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=Gr(t);return this._actionQueue.enqueue((()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");return Promise.all(e.map((t=>{let e;if(this._watchdogs.has(t.id))throw new Error(`Item with the given id is already added: '${t.id}'.`);if("editor"===t.type)return e=new Hr(this._watchdogConfig),e.setCreator(t.creator),e._setExcludedProperties(this._contextProps),t.destructor&&e.setDestructor(t.destructor),this._watchdogs.set(t.id,e),e.on("error",((r,{error:o,causesRestart:n})=>{this._fire("itemError",{itemId:t.id,error:o}),n&&this._actionQueue.enqueue((()=>new Promise((r=>{e.on("restart",function o(){e.off("restart",o),this._fire("itemRestart",{itemId:t.id}),r()}.bind(this))}))))})),e.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))}))}remove(t){const e=Gr(t);return this._actionQueue.enqueue((()=>Promise.all(e.map((t=>{const e=this._getWatchdog(t);return this._watchdogs.delete(t),e.destroy()})))))}destroy(){return this._actionQueue.enqueue((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueue.enqueue((()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((t=>{console.error("An error happened during destroying the context or items.",t)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((t=>(this._context=t,this._contextProps=kr(this._context),Promise.all(Array.from(this._watchdogs.values()).map((t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((t=>t.destroy()))).then((()=>this._destructor(t)))}))}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return Br(this._context,t.context)}}class Kr{constructor(){this._promiseQueue=Promise.resolve(),this._onEmptyCallbacks=[]}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t){let e;const r=this._promiseQueue.then(t).then((()=>{this._promiseQueue===e&&this._onEmptyCallbacks.forEach((t=>t()))}));return e=this._promiseQueue=r.catch((()=>{})),r}}function Gr(t){return Array.isArray(t)?t:[t]}const Yr=e().createContext("contextWatchdog");class Jr extends e().Component{constructor(t,e){super(t,e),this.contextWatchdog=null,this.props.isLayoutReady&&this._initializeContextWatchdog(this.props.config)}shouldComponentUpdate(t){return t.id!==this.props.id&&(this.contextWatchdog&&this.contextWatchdog.destroy(),this._initializeContextWatchdog(t.config)),t.isLayoutReady&&!this.contextWatchdog?(this._initializeContextWatchdog(t.config),!0):this.props.children!==t.children}render(){return e().createElement(Yr.Provider,{value:this.contextWatchdog},this.props.children)}componentWillUnmount(){this._destroyContext()}_initializeContextWatchdog(t){this.contextWatchdog=new Vr(this.props.context),this.contextWatchdog.create(t).catch((t=>{this.props.onError(t,{phase:"initialization",willContextRestart:!1})})),this.contextWatchdog.on("error",((t,e)=>{this.props.onError(e.error,{phase:"runtime",willContextRestart:e.causesRestart})})),this.contextWatchdog.on("stateChange",(()=>{"ready"===this.contextWatchdog.state&&this.props.onReady&&this.props.onReady(this.contextWatchdog.context)}))}async _destroyContext(){this.contextWatchdog&&(await this.contextWatchdog.destroy(),this.contextWatchdog=null)}}Jr.defaultProps={isLayoutReady:!0,onError:(t,e)=>console.error(t,e)},Jr.propTypes={id:i().string,isLayoutReady:i().bool,context:i().func,config:i().object,onReady:i().func,onError:i().func};const Xr="Lock from React integration (@ckeditor/ckeditor5-react)";class Zr extends e().Component{constructor(t){super(t),this.domContainer=e().createRef(),this.watchdog=null;const{CKEDITOR_VERSION:r}=window;if(r){const[t]=r.split(".").map(Number);t<34&&console.warn("The <CKEditor> component requires using CKEditor 5 in version 34 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}get editor(){return this.watchdog?this.watchdog.editor:null}shouldComponentUpdate(t){return!!this.editor&&(t.id!==this.props.id||(this._shouldUpdateEditor(t)&&this.editor.setData(t.data),"disabled"in t&&(t.disabled?this.editor.enableReadOnlyMode(Xr):this.editor.disableReadOnlyMode(Xr)),!1))}componentDidMount(){this._initializeEditor()}componentDidUpdate(){this._destroyEditor(),this._initializeEditor()}componentWillUnmount(){this._destroyEditor()}render(){return e().createElement("div",{ref:this.domContainer})}_initializeEditor(){this.context instanceof Vr?this.watchdog=new to(this.context):this.watchdog=new Zr._EditorWatchdog(this.props.editor),this.watchdog.setCreator(((t,e)=>this._createEditor(t,e))),this.watchdog.on("error",((t,{error:e,causesRestart:r})=>{this.props.onError(e,{phase:"runtime",willEditorRestart:r})})),this.watchdog.create(this.domContainer.current,this._getConfig()).catch((t=>this.props.onError(t,{phase:"initialization",willEditorRestart:!1})))}_createEditor(t,e){return this.props.editor.create(t,e).then((t=>{"disabled"in this.props&&this.props.disabled&&t.enableReadOnlyMode(Xr);const e=t.model.document,r=t.editing.view.document;return e.on("change:data",(e=>{this.props.onChange&&this.props.onChange(e,t)})),r.on("focus",(e=>{this.props.onFocus&&this.props.onFocus(e,t)})),r.on("blur",(e=>{this.props.onBlur&&this.props.onBlur(e,t)})),setTimeout((()=>{this.props.onReady&&this.props.onReady(this.editor)})),t}))}_destroyEditor(){this.watchdog&&(this.watchdog.destroy(),this.watchdog=null)}_shouldUpdateEditor(t){return this.props.data!==t.data&&this.editor.getData()!==t.data}_getConfig(){return this.props.data&&this.props.config.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `data` properties. The config property is over the data value and the first one will be used when specified both."),{...this.props.config,initialData:this.props.config.initialData||this.props.data||""}}}class to{constructor(t){this._contextWatchdog=t,this._id=function(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+Qr[t>>0&255]+Qr[t>>8&255]+Qr[t>>16&255]+Qr[t>>24&255]+Qr[e>>0&255]+Qr[e>>8&255]+Qr[e>>16&255]+Qr[e>>24&255]+Qr[r>>0&255]+Qr[r>>8&255]+Qr[r>>16&255]+Qr[r>>24&255]+Qr[o>>0&255]+Qr[o>>8&255]+Qr[o>>16&255]+Qr[o>>24&255]}()}setCreator(t){this._creator=t}create(t,e){return this._contextWatchdog.add({sourceElementOrData:t,config:e,creator:this._creator,id:this._id,type:"editor"})}on(t,e){this._contextWatchdog.on("itemError",((t,{itemId:r,causesRestart:o,error:n})=>{r===this._id&&e(null,{error:n,causesRestart:o})}))}destroy(){this._contextWatchdog.remove(this._id)}get editor(){return this._contextWatchdog.getItem(this._id)}}Zr.contextType=Yr,Zr.propTypes={editor:i().func.isRequired,data:i().string,config:i().object,onChange:i().func,onReady:i().func,onFocus:i().func,onBlur:i().func,onError:i().func,disabled:i().bool,onInit:(t,e)=>{if(t[e])return new Error('The "onInit" property is not supported anymore by the CKEditor component. Use the "onReady" property instead.')}},Zr.defaultProps={config:{},onError:(t,e)=>console.error(t,e)},Zr._EditorWatchdog=Hr})(),n})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.CKEditor=e(require("react")):t.CKEditor=e(t.React)}(self,(t=>(()=>{var e={703:(t,e,r)=>{"use strict";var o=r(414);function n(){}function i(){}i.resetWarningCache=n,t.exports=function(){function t(t,e,r,n,i,s){if(s!==o){var a=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 a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},787:e=>{"use strict";e.exports=t}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";o.r(n),o.d(n,{CKEditor:()=>Zr,CKEditorContext:()=>Jr});var t=o(787),e=o.n(t),r=o(697),i=o.n(r);const s=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const a="object"==typeof global&&global&&global.Object===Object&&global;var c="object"==typeof self&&self&&self.Object===Object&&self;const u=a||c||Function("return this")();const h=function(){return u.Date.now()};var d=/\s/;const l=function(t){for(var e=t.length;e--&&d.test(t.charAt(e)););return e};var p=/^\s+/;const f=function(t){return t?t.slice(0,l(t)+1).replace(p,""):t};const _=u.Symbol;var y=Object.prototype,g=y.hasOwnProperty,b=y.toString,m=_?_.toStringTag:void 0;const v=function(t){var e=g.call(t,m),r=t[m];try{t[m]=void 0;var o=!0}catch(t){}var n=b.call(t);return o&&(e?t[m]=r:delete t[m]),n};var j=Object.prototype.toString;const w=function(t){return j.call(t)};var x=_?_.toStringTag:void 0;const E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?v(t):w(t)};const O=function(t){return null!=t&&"object"==typeof t};const C=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==E(t)};var P=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,T=/^0o[0-7]+$/i,R=parseInt;const S=function(t){if("number"==typeof t)return t;if(C(t))return NaN;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f(t);var r=A.test(t);return r||T.test(t)?R(t.slice(2),r?2:8):P.test(t)?NaN:+t};var W=Math.max,I=Math.min;const D=function(t,e,r){var o,n,i,a,c,u,d=0,l=!1,p=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(e){var r=o,i=n;return o=n=void 0,d=e,a=t.apply(i,r)}function y(t){return d=t,c=setTimeout(b,e),l?_(t):a}function g(t){var r=t-u;return void 0===u||r>=e||r<0||p&&t-d>=i}function b(){var t=h();if(g(t))return m(t);c=setTimeout(b,function(t){var r=e-(t-u);return p?I(r,i-(t-d)):r}(t))}function m(t){return c=void 0,f&&o?_(t):(o=n=void 0,a)}function v(){var t=h(),r=g(t);if(o=arguments,n=this,u=t,r){if(void 0===c)return y(u);if(p)return clearTimeout(c),c=setTimeout(b,e),_(u)}return void 0===c&&(c=setTimeout(b,e)),a}return e=S(e)||0,s(r)&&(l=!!r.leading,i=(p="maxWait"in r)?W(S(r.maxWait)||0,e):i,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==c&&clearTimeout(c),d=0,o=u=n=c=void 0},v.flush=function(){return void 0===c?a:m(h())},v};const z=function(t,e,r){var o=!0,n=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return s(r)&&(o="leading"in r?!!r.leading:o,n="trailing"in r?!!r.trailing:n),D(t,e,{leading:o,maxWait:e,trailing:n})};const M=function(){this.__data__=[],this.size=0};const N=function(t,e){return t===e||t!=t&&e!=e};const U=function(t,e){for(var r=t.length;r--;)if(N(t[r][0],e))return r;return-1};var F=Array.prototype.splice;const L=function(t){var e=this.__data__,r=U(e,t);return!(r<0)&&(r==e.length-1?e.pop():F.call(e,r,1),--this.size,!0)};const k=function(t){var e=this.__data__,r=U(e,t);return r<0?void 0:e[r][1]};const q=function(t){return U(this.__data__,t)>-1};const B=function(t,e){var r=this.__data__,o=U(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function $(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=M,$.prototype.delete=L,$.prototype.get=k,$.prototype.has=q,$.prototype.set=B;const H=$;const Q=function(){this.__data__=new H,this.size=0};const V=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const K=function(t){return this.__data__.get(t)};const G=function(t){return this.__data__.has(t)};const Y=function(t){if(!s(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const J=u["__core-js_shared__"];var X=function(){var t=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const Z=function(t){return!!X&&X in t};var tt=Function.prototype.toString;const et=function(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var rt=/^\[object .+?Constructor\]$/,ot=Function.prototype,nt=Object.prototype,it=ot.toString,st=nt.hasOwnProperty,at=RegExp("^"+it.call(st).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ct=function(t){return!(!s(t)||Z(t))&&(Y(t)?at:rt).test(et(t))};const ut=function(t,e){return null==t?void 0:t[e]};const ht=function(t,e){var r=ut(t,e);return ct(r)?r:void 0};const dt=ht(u,"Map");const lt=ht(Object,"create");const pt=function(){this.__data__=lt?lt(null):{},this.size=0};const ft=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var _t=Object.prototype.hasOwnProperty;const yt=function(t){var e=this.__data__;if(lt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return _t.call(e,t)?e[t]:void 0};var gt=Object.prototype.hasOwnProperty;const bt=function(t){var e=this.__data__;return lt?void 0!==e[t]:gt.call(e,t)};const mt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=lt&&void 0===e?"__lodash_hash_undefined__":e,this};function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}vt.prototype.clear=pt,vt.prototype.delete=ft,vt.prototype.get=yt,vt.prototype.has=bt,vt.prototype.set=mt;const jt=vt;const wt=function(){this.size=0,this.__data__={hash:new jt,map:new(dt||H),string:new jt}};const xt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Et=function(t,e){var r=t.__data__;return xt(e)?r["string"==typeof e?"string":"hash"]:r.map};const Ot=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e};const Ct=function(t){return Et(this,t).get(t)};const Pt=function(t){return Et(this,t).has(t)};const At=function(t,e){var r=Et(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};function Tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}Tt.prototype.clear=wt,Tt.prototype.delete=Ot,Tt.prototype.get=Ct,Tt.prototype.has=Pt,Tt.prototype.set=At;const Rt=Tt;const St=function(t,e){var r=this.__data__;if(r instanceof H){var o=r.__data__;if(!dt||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new Rt(o)}return r.set(t,e),this.size=r.size,this};function Wt(t){var e=this.__data__=new H(t);this.size=e.size}Wt.prototype.clear=Q,Wt.prototype.delete=V,Wt.prototype.get=K,Wt.prototype.has=G,Wt.prototype.set=St;const It=Wt;const Dt=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););return t};const zt=function(){try{var t=ht(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Mt=function(t,e,r){"__proto__"==e&&zt?zt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var Nt=Object.prototype.hasOwnProperty;const Ut=function(t,e,r){var o=t[e];Nt.call(t,e)&&N(o,r)&&(void 0!==r||e in t)||Mt(t,e,r)};const Ft=function(t,e,r,o){var n=!r;r||(r={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=o?o(r[a],t[a],a,r,t):void 0;void 0===c&&(c=t[a]),n?Mt(r,a,c):Ut(r,a,c)}return r};const Lt=function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o};const kt=function(t){return O(t)&&"[object Arguments]"==E(t)};var qt=Object.prototype,Bt=qt.hasOwnProperty,$t=qt.propertyIsEnumerable;const Ht=kt(function(){return arguments}())?kt:function(t){return O(t)&&Bt.call(t,"callee")&&!$t.call(t,"callee")};const Qt=Array.isArray;const Vt=function(){return!1};var Kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gt=Kt&&"object"==typeof module&&module&&!module.nodeType&&module,Yt=Gt&&Gt.exports===Kt?u.Buffer:void 0;const Jt=(Yt?Yt.isBuffer:void 0)||Vt;var Xt=/^(?:0|[1-9]\d*)$/;const Zt=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Xt.test(t))&&t>-1&&t%1==0&&t<e};const te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ee={};ee["[object Float32Array]"]=ee["[object Float64Array]"]=ee["[object Int8Array]"]=ee["[object Int16Array]"]=ee["[object Int32Array]"]=ee["[object Uint8Array]"]=ee["[object Uint8ClampedArray]"]=ee["[object Uint16Array]"]=ee["[object Uint32Array]"]=!0,ee["[object Arguments]"]=ee["[object Array]"]=ee["[object ArrayBuffer]"]=ee["[object Boolean]"]=ee["[object DataView]"]=ee["[object Date]"]=ee["[object Error]"]=ee["[object Function]"]=ee["[object Map]"]=ee["[object Number]"]=ee["[object Object]"]=ee["[object RegExp]"]=ee["[object Set]"]=ee["[object String]"]=ee["[object WeakMap]"]=!1;const re=function(t){return O(t)&&te(t.length)&&!!ee[E(t)]};const oe=function(t){return function(e){return t(e)}};var ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,ie=ne&&"object"==typeof module&&module&&!module.nodeType&&module,se=ie&&ie.exports===ne&&a.process;const ae=function(){try{var t=ie&&ie.require&&ie.require("util").types;return t||se&&se.binding&&se.binding("util")}catch(t){}}();var ce=ae&&ae.isTypedArray;const ue=ce?oe(ce):re;var he=Object.prototype.hasOwnProperty;const de=function(t,e){var r=Qt(t),o=!r&&Ht(t),n=!r&&!o&&Jt(t),i=!r&&!o&&!n&&ue(t),s=r||o||n||i,a=s?Lt(t.length,String):[],c=a.length;for(var u in t)!e&&!he.call(t,u)||s&&("length"==u||n&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Zt(u,c))||a.push(u);return a};var le=Object.prototype;const pe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||le)};const fe=function(t,e){return function(r){return t(e(r))}};const _e=fe(Object.keys,Object);var ye=Object.prototype.hasOwnProperty;const ge=function(t){if(!pe(t))return _e(t);var e=[];for(var r in Object(t))ye.call(t,r)&&"constructor"!=r&&e.push(r);return e};const be=function(t){return null!=t&&te(t.length)&&!Y(t)};const me=function(t){return be(t)?de(t):ge(t)};const ve=function(t,e){return t&&Ft(e,me(e),t)};const je=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var we=Object.prototype.hasOwnProperty;const xe=function(t){if(!s(t))return je(t);var e=pe(t),r=[];for(var o in t)("constructor"!=o||!e&&we.call(t,o))&&r.push(o);return r};const Ee=function(t){return be(t)?de(t,!0):xe(t)};const Oe=function(t,e){return t&&Ft(e,Ee(e),t)};var Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Ae=Pe&&Pe.exports===Ce?u.Buffer:void 0,Te=Ae?Ae.allocUnsafe:void 0;const Re=function(t,e){if(e)return t.slice();var r=t.length,o=Te?Te(r):new t.constructor(r);return t.copy(o),o};const Se=function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e};const We=function(t,e){for(var r=-1,o=null==t?0:t.length,n=0,i=[];++r<o;){var s=t[r];e(s,r,t)&&(i[n++]=s)}return i};const Ie=function(){return[]};var De=Object.prototype.propertyIsEnumerable,ze=Object.getOwnPropertySymbols;const Me=ze?function(t){return null==t?[]:(t=Object(t),We(ze(t),(function(e){return De.call(t,e)})))}:Ie;const Ne=function(t,e){return Ft(t,Me(t),e)};const Ue=function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t};const Fe=fe(Object.getPrototypeOf,Object);const Le=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ue(e,Me(t)),t=Fe(t);return e}:Ie;const ke=function(t,e){return Ft(t,Le(t),e)};const qe=function(t,e,r){var o=e(t);return Qt(t)?o:Ue(o,r(t))};const Be=function(t){return qe(t,me,Me)};const $e=function(t){return qe(t,Ee,Le)};const He=ht(u,"DataView");const Qe=ht(u,"Promise");const Ve=ht(u,"Set");const Ke=ht(u,"WeakMap");var Ge="[object Map]",Ye="[object Promise]",Je="[object Set]",Xe="[object WeakMap]",Ze="[object DataView]",tr=et(He),er=et(dt),rr=et(Qe),or=et(Ve),nr=et(Ke),ir=E;(He&&ir(new He(new ArrayBuffer(1)))!=Ze||dt&&ir(new dt)!=Ge||Qe&&ir(Qe.resolve())!=Ye||Ve&&ir(new Ve)!=Je||Ke&&ir(new Ke)!=Xe)&&(ir=function(t){var e=E(t),r="[object Object]"==e?t.constructor:void 0,o=r?et(r):"";if(o)switch(o){case tr:return Ze;case er:return Ge;case rr:return Ye;case or:return Je;case nr:return Xe}return e});const sr=ir;var ar=Object.prototype.hasOwnProperty;const cr=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&ar.call(t,"index")&&(r.index=t.index,r.input=t.input),r};const ur=u.Uint8Array;const hr=function(t){var e=new t.constructor(t.byteLength);return new ur(e).set(new ur(t)),e};const dr=function(t,e){var r=e?hr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var lr=/\w*$/;const pr=function(t){var e=new t.constructor(t.source,lr.exec(t));return e.lastIndex=t.lastIndex,e};var fr=_?_.prototype:void 0,_r=fr?fr.valueOf:void 0;const yr=function(t){return _r?Object(_r.call(t)):{}};const gr=function(t,e){var r=e?hr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};const br=function(t,e,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return hr(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return dr(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return gr(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return pr(t);case"[object Symbol]":return yr(t)}};var mr=Object.create;const vr=function(){function t(){}return function(e){if(!s(e))return{};if(mr)return mr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const jr=function(t){return"function"!=typeof t.constructor||pe(t)?{}:vr(Fe(t))};const wr=function(t){return O(t)&&"[object Map]"==sr(t)};var xr=ae&&ae.isMap;const Er=xr?oe(xr):wr;const Or=function(t){return O(t)&&"[object Set]"==sr(t)};var Cr=ae&&ae.isSet;const Pr=Cr?oe(Cr):Or;var Ar="[object Arguments]",Tr="[object Function]",Rr="[object Object]",Sr={};Sr[Ar]=Sr["[object Array]"]=Sr["[object ArrayBuffer]"]=Sr["[object DataView]"]=Sr["[object Boolean]"]=Sr["[object Date]"]=Sr["[object Float32Array]"]=Sr["[object Float64Array]"]=Sr["[object Int8Array]"]=Sr["[object Int16Array]"]=Sr["[object Int32Array]"]=Sr["[object Map]"]=Sr["[object Number]"]=Sr["[object Object]"]=Sr["[object RegExp]"]=Sr["[object Set]"]=Sr["[object String]"]=Sr["[object Symbol]"]=Sr["[object Uint8Array]"]=Sr["[object Uint8ClampedArray]"]=Sr["[object Uint16Array]"]=Sr["[object Uint32Array]"]=!0,Sr["[object Error]"]=Sr[Tr]=Sr["[object WeakMap]"]=!1;const Wr=function t(e,r,o,n,i,a){var c,u=1&r,h=2&r,d=4&r;if(o&&(c=i?o(e,n,i,a):o(e)),void 0!==c)return c;if(!s(e))return e;var l=Qt(e);if(l){if(c=cr(e),!u)return Se(e,c)}else{var p=sr(e),f=p==Tr||"[object GeneratorFunction]"==p;if(Jt(e))return Re(e,u);if(p==Rr||p==Ar||f&&!i){if(c=h||f?{}:jr(e),!u)return h?ke(e,Oe(c,e)):Ne(e,ve(c,e))}else{if(!Sr[p])return i?e:{};c=br(e,p,u)}}a||(a=new It);var _=a.get(e);if(_)return _;a.set(e,c),Pr(e)?e.forEach((function(n){c.add(t(n,r,o,n,e,a))})):Er(e)&&e.forEach((function(n,i){c.set(i,t(n,r,o,i,e,a))}));var y=l?void 0:(d?h?$e:Be:h?Ee:me)(e);return Dt(y||e,(function(n,i){y&&(n=e[i=n]),Ut(c,i,t(n,r,o,i,e,a))})),c};const Ir=function(t,e){return Wr(t,5,e="function"==typeof e?e:void 0)};var Dr=Function.prototype,zr=Object.prototype,Mr=Dr.toString,Nr=zr.hasOwnProperty,Ur=Mr.call(Object);const Fr=function(t){if(!O(t)||"[object Object]"!=E(t))return!1;var e=Fe(t);if(null===e)return!0;var r=Nr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Mr.call(r)==Ur};const Lr=function(t){return O(t)&&1===t.nodeType&&!Fr(t)};function kr(t,e=new Set){const r=[t],o=new Set;let n=0;for(;r.length>n;){const t=r[n++];if(!(o.has(t)||qr(t)||e.has(t)))if(o.add(t),t[Symbol.iterator])try{for(const e of t)r.push(e)}catch(t){}else for(const e in t)"defaultValue"!==e&&r.push(t[e])}return o}function qr(t){const e=Object.prototype.toString.call(t),r=typeof t;return"number"===r||"boolean"===r||"string"===r||"symbol"===r||"function"===r||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t instanceof EventTarget||t instanceof Event}function Br(t,e,r=new Set){if(t===e&&("object"==typeof(o=t)&&null!==o))return!0;var o;const n=kr(t,r),i=kr(e,r);for(const t of n)if(i.has(t))return!0;return!1}class $r{constructor(t){if(this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{const e=t.error||t.reason;e instanceof Error&&this._handleError(e,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter((t=>t!==e))}_fire(t,...e){const r=this._listeners[t]||[];for(const t of r)t.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e.filename,lineno:e.lineno,colno:e.colno,date:this._now()});const r=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:r}),r?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}class Hr extends $r{constructor(t,e={}){super(e),this._editor=null,this._throttledSave=z(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),this._creator=(e,r)=>t.create(e,r),this._destructor=t=>t.destroy()}get editor(){return this._editor}get _item(){return this._editor}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((t=>{console.error("An error happened during the editor destroying.",t)})).then((()=>{if("string"==typeof this._elementOrData)return this.create(this._data,this._config,this._config.context);{const t=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,t,t.context)}})).then((()=>{this._fire("restart")}))}create(t=this._elementOrData,e=this._config,r){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=t,this._config=this._cloneEditorConfiguration(e)||{},this._config.context=r,this._creator(t,this._config)))).then((t=>{this._editor=t,t.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=t.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.flush();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)}))}_save(){const t=this._editor.model.document.version;if(t!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t={};for(const e of this._editor.model.document.getRootNames())t[e]=this._editor.data.get({rootName:e});return t}_isErrorComingFromThisItem(t){return Br(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return Ir(t,((t,e)=>Lr(t)||"context"===e?t:void 0))}}const Qr=new Array(256).fill().map(((t,e)=>("0"+e.toString(16)).slice(-2)));class Vr extends $r{constructor(t,e={}){super(e),this._watchdogs=new Map,this._watchdogConfig=e,this._context=null,this._contextProps=new Set,this._actionQueue=new Kr,this._creator=e=>t.create(e),this._destructor=t=>t.destroy(),this._actionQueue.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}get context(){return this._context}create(t={}){return this._actionQueue.enqueue((()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=Gr(t);return this._actionQueue.enqueue((()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");return Promise.all(e.map((t=>{let e;if(this._watchdogs.has(t.id))throw new Error(`Item with the given id is already added: '${t.id}'.`);if("editor"===t.type)return e=new Hr(this._watchdogConfig),e.setCreator(t.creator),e._setExcludedProperties(this._contextProps),t.destructor&&e.setDestructor(t.destructor),this._watchdogs.set(t.id,e),e.on("error",((r,{error:o,causesRestart:n})=>{this._fire("itemError",{itemId:t.id,error:o}),n&&this._actionQueue.enqueue((()=>new Promise((r=>{e.on("restart",function o(){e.off("restart",o),this._fire("itemRestart",{itemId:t.id}),r()}.bind(this))}))))})),e.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))}))}remove(t){const e=Gr(t);return this._actionQueue.enqueue((()=>Promise.all(e.map((t=>{const e=this._getWatchdog(t);return this._watchdogs.delete(t),e.destroy()})))))}destroy(){return this._actionQueue.enqueue((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueue.enqueue((()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((t=>{console.error("An error happened during destroying the context or items.",t)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((t=>(this._context=t,this._contextProps=kr(this._context),Promise.all(Array.from(this._watchdogs.values()).map((t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((t=>t.destroy()))).then((()=>this._destructor(t)))}))}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return Br(this._context,t.context)}}class Kr{constructor(){this._promiseQueue=Promise.resolve(),this._onEmptyCallbacks=[]}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t){let e;const r=this._promiseQueue.then(t).then((()=>{this._promiseQueue===e&&this._onEmptyCallbacks.forEach((t=>t()))}));return e=this._promiseQueue=r.catch((()=>{})),r}}function Gr(t){return Array.isArray(t)?t:[t]}const Yr=e().createContext("contextWatchdog");class Jr extends e().Component{constructor(t,e){super(t,e),this.contextWatchdog=null,this.props.isLayoutReady&&this._initializeContextWatchdog(this.props.config)}async shouldComponentUpdate(t){return t.id!==this.props.id&&(this.contextWatchdog&&await this.contextWatchdog.destroy(),await this._initializeContextWatchdog(t.config)),t.isLayoutReady&&!this.contextWatchdog?(await this._initializeContextWatchdog(t.config),!0):this.props.children!==t.children}render(){return e().createElement(Yr.Provider,{value:this.contextWatchdog},this.props.children)}async componentWillUnmount(){await this._destroyContext()}async _initializeContextWatchdog(t){this.contextWatchdog=new Vr(this.props.context),this.contextWatchdog.on("error",((t,e)=>{this.props.onError(e.error,{phase:"runtime",willContextRestart:e.causesRestart})})),this.contextWatchdog.on("stateChange",(()=>{"ready"===this.contextWatchdog.state&&this.props.onReady&&this.props.onReady(this.contextWatchdog.context)})),await this.contextWatchdog.create(t).catch((t=>{this.props.onError(t,{phase:"initialization",willContextRestart:!1})}))}async _destroyContext(){this.contextWatchdog&&(await this.contextWatchdog.destroy(),this.contextWatchdog=null)}}Jr.defaultProps={isLayoutReady:!0,onError:(t,e)=>console.error(t,e)},Jr.propTypes={id:i().string,isLayoutReady:i().bool,context:i().func,config:i().object,onReady:i().func,onError:i().func};const Xr="Lock from React integration (@ckeditor/ckeditor5-react)";class Zr extends e().Component{constructor(t){super(t),this.domContainer=e().createRef(),this.watchdog=null;const{CKEDITOR_VERSION:r}=window;if(r){const[t]=r.split(".").map(Number);t<34&&console.warn("The <CKEditor> component requires using CKEditor 5 in version 34 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}get editor(){return this.watchdog?this.watchdog.editor:null}shouldComponentUpdate(t){return!!this.editor&&(t.id!==this.props.id||(this._shouldUpdateEditor(t)&&this.editor.setData(t.data),"disabled"in t&&(t.disabled?this.editor.enableReadOnlyMode(Xr):this.editor.disableReadOnlyMode(Xr)),!1))}async componentDidMount(){await this._initializeEditor()}async componentDidUpdate(){await this._destroyEditor(),await this._initializeEditor()}async componentWillUnmount(){await this._destroyEditor()}render(){return e().createElement("div",{ref:this.domContainer})}async _initializeEditor(){this.watchdog||(this.context instanceof Vr?this.watchdog=new to(this.context):this.watchdog=new Zr._EditorWatchdog(this.props.editor),this.watchdog.setCreator(((t,e)=>this._createEditor(t,e))),this.watchdog.on("error",((t,{error:e,causesRestart:r})=>{this.props.onError(e,{phase:"runtime",willEditorRestart:r})})),await this.watchdog.create(this.domContainer.current,this._getConfig()).catch((t=>this.props.onError(t,{phase:"initialization",willEditorRestart:!1}))))}_createEditor(t,e){return this.props.editor.create(t,e).then((t=>{"disabled"in this.props&&this.props.disabled&&t.enableReadOnlyMode(Xr);const e=t.model.document,r=t.editing.view.document;return e.on("change:data",(e=>{this.props.onChange&&this.props.onChange(e,t)})),r.on("focus",(e=>{this.props.onFocus&&this.props.onFocus(e,t)})),r.on("blur",(e=>{this.props.onBlur&&this.props.onBlur(e,t)})),setTimeout((()=>{this.props.onReady&&this.props.onReady(this.editor)})),t}))}async _destroyEditor(){this.editor&&(await this.watchdog.destroy(),this.watchdog=null)}_shouldUpdateEditor(t){return this.props.data!==t.data&&this.editor.getData()!==t.data}_getConfig(){return this.props.data&&this.props.config.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `data` properties. The config property is over the data value and the first one will be used when specified both."),{...this.props.config,initialData:this.props.config.initialData||this.props.data||""}}}class to{constructor(t){this._contextWatchdog=t,this._id=function(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+Qr[t>>0&255]+Qr[t>>8&255]+Qr[t>>16&255]+Qr[t>>24&255]+Qr[e>>0&255]+Qr[e>>8&255]+Qr[e>>16&255]+Qr[e>>24&255]+Qr[r>>0&255]+Qr[r>>8&255]+Qr[r>>16&255]+Qr[r>>24&255]+Qr[o>>0&255]+Qr[o>>8&255]+Qr[o>>16&255]+Qr[o>>24&255]}()}setCreator(t){this._creator=t}create(t,e){return this._contextWatchdog.add({sourceElementOrData:t,config:e,creator:this._creator,id:this._id,type:"editor"})}on(t,e){this._contextWatchdog.on("itemError",((t,{itemId:r,causesRestart:o,error:n})=>{r===this._id&&e(null,{error:n,causesRestart:o})}))}destroy(){this._contextWatchdog.remove(this._id)}get editor(){return this._contextWatchdog.getItem(this._id)}}Zr.contextType=Yr,Zr.propTypes={editor:i().func.isRequired,data:i().string,config:i().object,onChange:i().func,onReady:i().func,onFocus:i().func,onBlur:i().func,onError:i().func,disabled:i().bool,onInit:(t,e)=>{if(t[e])return new Error('The "onInit" property is not supported anymore by the CKEditor component. Use the "onReady" property instead.')}},Zr.defaultProps={config:{},onError:(t,e)=>console.error(t,e)},Zr._EditorWatchdog=Hr})(),n})()));
//# sourceMappingURL=ckeditor.js.map
{
"name": "@ckeditor/ckeditor5-react",
"version": "5.0.0",
"version": "5.0.1",
"main": "dist/ckeditor.js",

@@ -5,0 +5,0 @@ "description": "Official React component for CKEditor 5 – the best browser-based rich text editor.",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc