@gyramais/gyra-design 0.2.2 → 0.2.21

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.
Files changed (39) hide show
  1. package/dist/components/Filter/index.js +6 -6
  2. package/dist/components/Filter/index.js.map +1 -1
  3. package/dist/components/Input/index.js +1 -1
  4. package/dist/components/Input/index.js.map +1 -1
  5. package/dist/components/MultiSelectPicker/MultiSelectPicker.d.ts +0 -3
  6. package/dist/components/MultiSelectPicker/index.js +1 -1
  7. package/dist/components/MultiSelectPicker/index.js.map +1 -1
  8. package/dist/components/RichInput/index.js +3 -3
  9. package/dist/components/RichInput/index.js.map +1 -1
  10. package/dist/components/SelectTree/index.js +1 -1
  11. package/dist/components/SelectTree/index.js.map +1 -1
  12. package/dist/components/TourGuide/TourGuide.d.ts +39 -0
  13. package/dist/components/TourGuide/index.d.ts +1 -0
  14. package/dist/components/TourGuide/index.js +7 -0
  15. package/dist/components/TourGuide/index.js.map +1 -0
  16. package/dist/index.css +164 -220
  17. package/package.json +1 -1
  18. package/dist/components/AiParecer/AiParecer.d.ts +0 -75
  19. package/dist/components/AiParecer/index.d.ts +0 -1
  20. package/dist/components/AiParecer/index.js +0 -7
  21. package/dist/components/AiParecer/index.js.map +0 -1
  22. package/dist/components/Email/Email.d.ts +0 -25
  23. package/dist/components/Email/index.d.ts +0 -2
  24. package/dist/components/Email/index.js +0 -2
  25. package/dist/components/Email/index.js.map +0 -1
  26. package/dist/components/EmailBalanceSheetFinalized/EmailBalanceSheetFinalized.d.ts +0 -18
  27. package/dist/components/EmailBalanceSheetFinalized/index.d.ts +0 -2
  28. package/dist/components/EmailBalanceSheetFinalized/index.js +0 -2
  29. package/dist/components/EmailBalanceSheetFinalized/index.js.map +0 -1
  30. package/dist/emails/balance-sheet-finalized/index.d.ts +0 -33
  31. package/dist/emails/balance-sheet-finalized/index.esm.js +0 -2
  32. package/dist/emails/balance-sheet-finalized/index.esm.js.map +0 -1
  33. package/dist/emails/balance-sheet-finalized/index.js +0 -2
  34. package/dist/emails/balance-sheet-finalized/index.js.map +0 -1
  35. package/dist/emails/email/index.d.ts +0 -94
  36. package/dist/emails/email/index.esm.js +0 -2
  37. package/dist/emails/email/index.esm.js.map +0 -1
  38. package/dist/emails/email/index.js +0 -2
  39. package/dist/emails/email/index.js.map +0 -1
@@ -1,12 +1,12 @@
1
- "use client";import t,{useState as e}from"react";import n from"react-dom";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),n}var a,c={exports:{}};
1
+ "use client";import t,{useState as e}from"react";import n from"react-dom";import r from"immutable";var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var a,c={exports:{}};
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */a=c,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=r(t,n(o)))}return t}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)t.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(t,e){return e?t?t+" "+e:t+e:t}a.exports?(e.default=e,a.exports=e):window.classNames=e}();var s=o(c.exports),u={exports:{}};u.exports=function(){var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:W(t)}function r(t){return c(t)?t:Z(t)}function o(t){return s(t)?t:V(t)}function i(t){return a(t)&&!u(t)?t:G(t)}function a(t){return!(!t||!t[p])}function c(t){return!(!t||!t[f])}function s(t){return!(!t||!t[d])}function u(t){return c(t)||s(t)}function l(t){return!(!t||!t[h])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=c,n.isIndexed=s,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var p="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",y="delete",g=5,m=1<<g,v=m-1,b={},_={value:!1},w={value:!1};function S(t){return t.value=!1,t}function M(t){t&&(t.value=!0)}function E(){}function j(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function k(t){return void 0===t.size&&(t.size=t.__iterate(O)),t.size}function C(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?k(t)+e:e}function O(){return!0}function D(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function A(t,e){return x(t,e,0)}function N(t,e){return x(t,e,e)}function x(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var I=0,L=1,T=2,z="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",B=z||R;function P(t){this.next=t}function U(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function K(t){return!!Q(t)}function Y(t){return t&&"function"==typeof t.next}function H(t){var e=Q(t);return e&&e.call(t)}function Q(t){var e=t&&(z&&t[z]||t[R]);if("function"==typeof e)return e}function q(t){return t&&"number"==typeof t.length}function W(t){return null==t?at():a(t)?t.toSeq():ut(t)}function Z(t){return null==t?at().toKeyedSeq():a(t)?c(t)?t.toSeq():t.fromEntrySeq():ct(t)}function V(t){return null==t?at():a(t)?c(t)?t.entrySeq():t.toIndexedSeq():st(t)}function G(t){return(null==t?at():a(t)?c(t)?t.entrySeq():t:st(t)).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=I,P.VALUES=L,P.ENTRIES=T,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[B]=function(){return this},e(W,n),W.of=function(){return W(arguments)},W.prototype.toSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq {","}")},W.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},W.prototype.__iterate=function(t,e){return pt(this,t,e,!0)},W.prototype.__iterator=function(t,e){return ft(this,t,e,!0)},e(Z,W),Z.prototype.toKeyedSeq=function(){return this},e(V,W),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(t,e){return pt(this,t,e,!1)},V.prototype.__iterator=function(t,e){return ft(this,t,e,!1)},e(G,W),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},W.isSeq=it,W.Keyed=Z,W.Set=G,W.Indexed=V;var J,X,$,tt="@@__IMMUTABLE_SEQ__@@";function et(t){this._array=t,this.size=t.length}function nt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function rt(t){this._iterable=t,this.size=t.length||t.size}function ot(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[tt])}function at(){return J||(J=new et([]))}function ct(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():Y(t)?new ot(t).fromEntrySeq():K(t)?new rt(t).fromEntrySeq():"object"==typeof t?new nt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=lt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ut(t){var e=lt(t)||"object"==typeof t&&new nt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function lt(t){return q(t)?new et(t):Y(t)?new ot(t):K(t)?new rt(t):void 0}function pt(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var c=o[n?i-a:a];if(!1===e(c[1],r?c[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function ft(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new P(function(){var t=o[n?i-a:a];return a++>i?F():U(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function dt(t,e){return e?ht(e,t,"",{"":t}):yt(t)}function ht(t,e,n,r){return Array.isArray(e)?t.call(r,n,V(e).map(function(n,r){return ht(t,n,r,e)})):gt(e)?t.call(r,n,Z(e).map(function(n,r){return ht(t,n,r,e)})):e}function yt(t){return Array.isArray(t)?V(t).map(yt).toList():gt(t)?Z(t).map(yt).toMap():t}function gt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function mt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function vt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||c(t)!==c(e)||s(t)!==s(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&mt(o[1],t)&&(n||mt(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var p=!0,f=e.__iterate(function(e,r){if(n?!t.has(e):o?!mt(e,t.get(r,b)):!mt(t.get(r,b),e))return p=!1,!1});return p&&t.size===f}function bt(t,e){if(!(this instanceof bt))return new bt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(X)return X;X=this}}function _t(t,e){if(!t)throw new Error(e)}function wt(t,e,n){if(!(this instanceof wt))return new wt(t,e,n);if(_t(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if($)return $;$=this}}function St(){throw TypeError("Abstract")}function Mt(){}function Et(){}function jt(){}W.prototype[tt]=!0,e(et,V),et.prototype.get=function(t,e){return this.has(t)?this._array[C(this,t)]:e},et.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},et.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new P(function(){return o>r?F():U(t,o,n[e?r-o++:o++])})},e(nt,Z),nt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},nt.prototype.has=function(t){return this._object.hasOwnProperty(t)},nt.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},nt.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new P(function(){var a=r[e?o-i:i];return i++>o?F():U(t,a,n[a])})},nt.prototype[h]=!0,e(rt,V),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=H(this._iterable),r=0;if(Y(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=H(this._iterable);if(!Y(n))return new P(F);var r=0;return new P(function(){var e=n.next();return e.done?e:U(t,r++,e.value)})},e(ot,V),ot.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},ot.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new P(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return U(t,o,r[o++])})},e(bt,V),bt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},bt.prototype.get=function(t,e){return this.has(t)?this._value:e},bt.prototype.includes=function(t){return mt(this._value,t)},bt.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:new bt(this._value,N(e,n)-A(t,n))},bt.prototype.reverse=function(){return this},bt.prototype.indexOf=function(t){return mt(this._value,t)?0:-1},bt.prototype.lastIndexOf=function(t){return mt(this._value,t)?this.size:-1},bt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},bt.prototype.__iterator=function(t,e){var n=this,r=0;return new P(function(){return r<n.size?U(t,r++,n._value):F()})},bt.prototype.equals=function(t){return t instanceof bt?mt(this._value,t._value):vt(t)},e(wt,V),wt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},wt.prototype.get=function(t,e){return this.has(t)?this._start+C(this,t)*this._step:e},wt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},wt.prototype.slice=function(t,e){return D(t,e,this.size)?this:(t=A(t,this.size),(e=N(e,this.size))<=t?new wt(0,0):new wt(this.get(t,this._end),this.get(e,this._end),this._step))},wt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},wt.prototype.lastIndexOf=function(t){return this.indexOf(t)},wt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},wt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new P(function(){var a=o;return o+=e?-r:r,i>n?F():U(t,i++,a)})},wt.prototype.equals=function(t){return t instanceof wt?this._start===t._start&&this._end===t._end&&this._step===t._step:vt(this,t)},e(St,n),e(Mt,St),e(Et,St),e(jt,St),St.Keyed=Mt,St.Indexed=Et,St.Set=jt;var kt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function Ct(t){return t>>>1&1073741824|3221225471&t}function Ot(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return Ct(n)}if("string"===e)return t.length>Pt?Dt(t):At(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return Nt(t);if("function"==typeof t.toString)return At(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Dt(t){var e=Kt[t];return void 0===e&&(e=At(t),Ft===Ut&&(Ft=0,Kt={}),Ft++,Kt[t]=e),e}function At(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return Ct(e)}function Nt(t){var e;if(zt&&void 0!==(e=Tt.get(t)))return e;if(void 0!==(e=t[Bt]))return e;if(!It){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Bt]))return e;if(void 0!==(e=Lt(t)))return e}if(e=++Rt,1073741824&Rt&&(Rt=0),zt)Tt.set(t,e);else{if(void 0!==xt&&!1===xt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(It)Object.defineProperty(t,Bt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Bt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Bt]=e}}return e}var xt=Object.isExtensible,It=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function Lt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Tt,zt="function"==typeof WeakMap;zt&&(Tt=new WeakMap);var Rt=0,Bt="__immutablehash__";"function"==typeof Symbol&&(Bt=Symbol(Bt));var Pt=16,Ut=255,Ft=0,Kt={};function Yt(t){_t(t!==1/0,"Cannot perform this action with an infinite size.")}function Ht(t){return null==t?oe():Qt(t)&&!l(t)?t:oe().withMutations(function(e){var n=r(t);Yt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Qt(t){return!(!t||!t[Wt])}e(Ht,Mt),Ht.prototype.toString=function(){return this.__toString("Map {","}")},Ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Ht.prototype.set=function(t,e){return ie(this,t,e)},Ht.prototype.setIn=function(t,e){return this.updateIn(t,b,function(){return e})},Ht.prototype.remove=function(t){return ie(this,t,b)},Ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return b})},Ht.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Ht.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=ge(this,Sn(t),e,n);return r===b?void 0:r},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):oe()},Ht.prototype.merge=function(){return fe(this,void 0,arguments)},Ht.prototype.mergeWith=function(e){return fe(this,e,t.call(arguments,1))},Ht.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,oe(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},Ht.prototype.mergeDeep=function(){return fe(this,de,arguments)},Ht.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return fe(this,he(e),n)},Ht.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,oe(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},Ht.prototype.sort=function(t){return Ke(pn(this,t))},Ht.prototype.sortBy=function(t,e){return Ke(pn(this,e,t))},Ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},Ht.prototype.asImmutable=function(){return this.__ensureOwner()},Ht.prototype.wasAltered=function(){return this.__altered},Ht.prototype.__iterator=function(t,e){return new te(this,t,e)},Ht.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Ht.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?re(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ht.isMap=Qt;var qt,Wt="@@__IMMUTABLE_MAP__@@",Zt=Ht.prototype;function Vt(t,e){this.ownerID=t,this.entries=e}function Gt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Jt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Xt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function $t(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function te(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&ne(t._root)}function ee(t,e){return U(t,e[0],e[1])}function ne(t,e){return{node:t,index:0,__prev:e}}function re(t,e,n,r){var o=Object.create(Zt);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function oe(){return qt||(qt=re(0))}function ie(t,e,n){var r,o;if(t._root){var i=S(_),a=S(w);if(r=ae(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===b?-1:1:0)}else{if(n===b)return t;o=1,r=new Vt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?re(o,r):oe()}function ae(t,e,n,r,o,i,a,c){return t?t.update(e,n,r,o,i,a,c):i===b?t:(M(c),M(a),new $t(e,r,[o,i]))}function ce(t){return t.constructor===$t||t.constructor===Xt}function se(t,e,n,r,o){if(t.keyHash===r)return new Xt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&v,c=(0===n?r:r>>>n)&v;return new Gt(e,1<<a|1<<c,a===c?[se(t,e,n+g,r,o)]:(i=new $t(e,r,o),a<c?[t,i]:[i,t]))}function ue(t,e,n,r){t||(t=new E);for(var o=new $t(t,Ot(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}function le(t,e,n,r){for(var o=0,i=0,a=new Array(n),c=0,s=1,u=e.length;c<u;c++,s<<=1){var l=e[c];void 0!==l&&c!==r&&(o|=s,a[i++]=l)}return new Gt(t,o,a)}function pe(t,e,n,r,o){for(var i=0,a=new Array(m),c=0;0!==n;c++,n>>>=1)a[c]=1&n?e[i++]:void 0;return a[r]=o,new Jt(t,i+1,a)}function fe(t,e,n){for(var o=[],i=0;i<n.length;i++){var c=n[i],s=r(c);a(c)||(s=s.map(function(t){return dt(t)})),o.push(s)}return ye(t,e,o)}function de(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):mt(t,e)?t:e}function he(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return mt(e,o)?e:o}}function ye(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,b,function(t){return t===b?n:e(t,n,r)})}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)}):t.constructor(n[0])}function ge(t,e,n,r){var o=t===b,i=e.next();if(i.done){var a=o?n:t,c=r(a);return c===a?t:c}_t(o||t&&t.set,"invalid keyPath");var s=i.value,u=o?b:t.get(s,b),l=ge(u,e,n,r);return l===u?t:l===b?t.remove(s):(o?oe():t).set(s,l)}function me(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ve(t,e,n,r){var o=r?t:j(t);return o[e]=n,o}function be(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,c=0;c<o;c++)c===e?(i[c]=n,a=-1):i[c]=t[c+a];return i}function _e(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}Zt[Wt]=!0,Zt[y]=Zt.remove,Zt.removeIn=Zt.deleteIn,Vt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(mt(n,o[i][0]))return o[i][1];return r},Vt.prototype.update=function(t,e,n,r,o,i,a){for(var c=o===b,s=this.entries,u=0,l=s.length;u<l&&!mt(r,s[u][0]);u++);var p=u<l;if(p?s[u][1]===o:c)return this;if(M(a),(c||!p)&&M(i),!c||1!==s.length){if(!p&&!c&&s.length>=we)return ue(t,s,r,o);var f=t&&t===this.ownerID,d=f?s:j(s);return p?c?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new Vt(t,d)}},Gt.prototype.get=function(t,e,n,r){void 0===e&&(e=Ot(n));var o=1<<((0===t?e:e>>>t)&v),i=this.bitmap;return 0===(i&o)?r:this.nodes[me(i&o-1)].get(t+g,e,n,r)},Gt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Ot(r));var c=(0===e?n:n>>>e)&v,s=1<<c,u=this.bitmap,l=0!==(u&s);if(!l&&o===b)return this;var p=me(u&s-1),f=this.nodes,d=l?f[p]:void 0,h=ae(d,t,e+g,n,r,o,i,a);if(h===d)return this;if(!l&&h&&f.length>=Se)return pe(t,f,u,c,h);if(l&&!h&&2===f.length&&ce(f[1^p]))return f[1^p];if(l&&h&&1===f.length&&ce(h))return h;var y=t&&t===this.ownerID,m=l?h?u:u^s:u|s,_=l?h?ve(f,p,h,y):_e(f,p,y):be(f,p,h,y);return y?(this.bitmap=m,this.nodes=_,this):new Gt(t,m,_)},Jt.prototype.get=function(t,e,n,r){void 0===e&&(e=Ot(n));var o=(0===t?e:e>>>t)&v,i=this.nodes[o];return i?i.get(t+g,e,n,r):r},Jt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Ot(r));var c=(0===e?n:n>>>e)&v,s=o===b,u=this.nodes,l=u[c];if(s&&!l)return this;var p=ae(l,t,e+g,n,r,o,i,a);if(p===l)return this;var f=this.count;if(l){if(!p&&--f<Me)return le(t,u,f,c)}else f++;var d=t&&t===this.ownerID,h=ve(u,c,p,d);return d?(this.count=f,this.nodes=h,this):new Jt(t,f,h)},Xt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(mt(n,o[i][0]))return o[i][1];return r},Xt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Ot(r));var c=o===b;if(n!==this.keyHash)return c?this:(M(a),M(i),se(this,t,e,n,[r,o]));for(var s=this.entries,u=0,l=s.length;u<l&&!mt(r,s[u][0]);u++);var p=u<l;if(p?s[u][1]===o:c)return this;if(M(a),(c||!p)&&M(i),c&&2===l)return new $t(t,this.keyHash,s[1^u]);var f=t&&t===this.ownerID,d=f?s:j(s);return p?c?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new Xt(t,this.keyHash,d)},$t.prototype.get=function(t,e,n,r){return mt(n,this.entry[0])?this.entry[1]:r},$t.prototype.update=function(t,e,n,r,o,i,a){var c=o===b,s=mt(r,this.entry[0]);return(s?o===this.entry[1]:c)?this:(M(a),c?void M(i):s?t&&t===this.ownerID?(this.entry[1]=o,this):new $t(t,this.keyHash,[r,o]):(M(i),se(this,t,e,Ot(r),[r,o])))},Vt.prototype.iterate=Xt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Gt.prototype.iterate=Jt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},$t.prototype.iterate=function(t,e){return t(this.entry)},e(te,P),te.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return ee(t,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return ee(t,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return ee(t,i.entry);e=this._stack=ne(i,e)}continue}e=this._stack=this._stack.__prev}return F()};var we=m/4,Se=m/2,Me=m/4;function Ee(t){var e=Le();if(null==t)return e;if(je(t))return t;var n=o(t),r=n.size;return 0===r?e:(Yt(r),r>0&&r<m?Ie(0,r,g,null,new Oe(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function je(t){return!(!t||!t[ke])}e(Ee,Et),Ee.of=function(){return this(arguments)},Ee.prototype.toString=function(){return this.__toString("List [","]")},Ee.prototype.get=function(t,e){if((t=C(this,t))>=0&&t<this.size){var n=Be(this,t+=this._origin);return n&&n.array[t&v]}return e},Ee.prototype.set=function(t,e){return Te(this,t,e)},Ee.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Ee.prototype.insert=function(t,e){return this.splice(t,0,e)},Ee.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Le()},Ee.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Pe(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},Ee.prototype.pop=function(){return Pe(this,0,-1)},Ee.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Pe(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},Ee.prototype.shift=function(){return Pe(this,1)},Ee.prototype.merge=function(){return Ue(this,void 0,arguments)},Ee.prototype.mergeWith=function(e){return Ue(this,e,t.call(arguments,1))},Ee.prototype.mergeDeep=function(){return Ue(this,de,arguments)},Ee.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Ue(this,he(e),n)},Ee.prototype.setSize=function(t){return Pe(this,0,t)},Ee.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:Pe(this,A(t,n),N(e,n))},Ee.prototype.__iterator=function(t,e){var n=0,r=xe(this,e);return new P(function(){var e=r();return e===Ne?F():U(t,n++,e)})},Ee.prototype.__iterate=function(t,e){for(var n,r=0,o=xe(this,e);(n=o())!==Ne&&!1!==t(n,r++,this););return r},Ee.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ie(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Ee.isList=je;var ke="@@__IMMUTABLE_LIST__@@",Ce=Ee.prototype;function Oe(t,e){this.array=t,this.ownerID=e}Ce[ke]=!0,Ce[y]=Ce.remove,Ce.setIn=Zt.setIn,Ce.deleteIn=Ce.removeIn=Zt.removeIn,Ce.update=Zt.update,Ce.updateIn=Zt.updateIn,Ce.mergeIn=Zt.mergeIn,Ce.mergeDeepIn=Zt.mergeDeepIn,Ce.withMutations=Zt.withMutations,Ce.asMutable=Zt.asMutable,Ce.asImmutable=Zt.asImmutable,Ce.wasAltered=Zt.wasAltered,Oe.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&v;if(r>=this.array.length)return new Oe([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-g,n))===a&&i)return this}if(i&&!o)return this;var c=Re(this,t);if(!i)for(var s=0;s<r;s++)c.array[s]=void 0;return o&&(c.array[r]=o),c},Oe.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&v;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-g,n))===i&&o===this.array.length-1)return this}var a=Re(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var De,Ae,Ne={};function xe(t,e){var n=t._origin,r=t._capacity,o=Fe(r),i=t._tail;return a(t._root,t._level,0);function a(t,e,n){return 0===e?c(t,n):s(t,e,n)}function c(t,a){var c=a===o?i&&i.array:t&&t.array,s=a>n?0:n-a,u=r-a;return u>m&&(u=m),function(){if(s===u)return Ne;var t=e?--u:s++;return c&&c[t]}}function s(t,o,i){var c,s=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>m&&(l=m),function(){for(;;){if(c){var t=c();if(t!==Ne)return t;c=null}if(u===l)return Ne;var n=e?--l:u++;c=a(s&&s[n],o-g,i+(n<<o))}}}}function Ie(t,e,n,r,o,i,a){var c=Object.create(Ce);return c.size=e-t,c._origin=t,c._capacity=e,c._level=n,c._root=r,c._tail=o,c.__ownerID=i,c.__hash=a,c.__altered=!1,c}function Le(){return De||(De=Ie(0,0,g))}function Te(t,e,n){if((e=C(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Pe(t,e).set(0,n):Pe(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=S(w);return e>=Fe(t._capacity)?r=ze(r,t.__ownerID,0,e,n,i):o=ze(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Ie(t._origin,t._capacity,t._level,o,r):t}function ze(t,e,n,r,o,i){var a,c=r>>>n&v,s=t&&c<t.array.length;if(!s&&void 0===o)return t;if(n>0){var u=t&&t.array[c],l=ze(u,e,n-g,r,o,i);return l===u?t:((a=Re(t,e)).array[c]=l,a)}return s&&t.array[c]===o?t:(M(i),a=Re(t,e),void 0===o&&c===a.array.length-1?a.array.pop():a.array[c]=o,a)}function Re(t,e){return e&&t&&e===t.ownerID?t:new Oe(t?t.array.slice():[],e)}function Be(t,e){if(e>=Fe(t._capacity))return t._tail;if(e<1<<t._level+g){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&v],r-=g;return n}}function Pe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new E,o=t._origin,i=t._capacity,a=o+e,c=void 0===n?i:n<0?i+n:o+n;if(a===o&&c===i)return t;if(a>=c)return t.clear();for(var s=t._level,u=t._root,l=0;a+l<0;)u=new Oe(u&&u.array.length?[void 0,u]:[],r),l+=1<<(s+=g);l&&(a+=l,o+=l,c+=l,i+=l);for(var p=Fe(i),f=Fe(c);f>=1<<s+g;)u=new Oe(u&&u.array.length?[u]:[],r),s+=g;var d=t._tail,h=f<p?Be(t,c-1):f>p?new Oe([],r):d;if(d&&f>p&&a<i&&d.array.length){for(var y=u=Re(u,r),m=s;m>g;m-=g){var b=p>>>m&v;y=y.array[b]=Re(y.array[b],r)}y.array[p>>>g&v]=d}if(c<i&&(h=h&&h.removeAfter(r,0,c)),a>=f)a-=f,c-=f,s=g,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<p){for(l=0;u;){var _=a>>>s&v;if(_!==f>>>s&v)break;_&&(l+=(1<<s)*_),s-=g,u=u.array[_]}u&&a>o&&(u=u.removeBefore(r,s,a-l)),u&&f<p&&(u=u.removeAfter(r,s,f-l)),l&&(a-=l,c-=l)}return t.__ownerID?(t.size=c-a,t._origin=a,t._capacity=c,t._level=s,t._root=u,t._tail=h,t.__hash=void 0,t.__altered=!0,t):Ie(a,c,s,u,h)}function Ue(t,e,n){for(var r=[],i=0,c=0;c<n.length;c++){var s=n[c],u=o(s);u.size>i&&(i=u.size),a(s)||(u=u.map(function(t){return dt(t)})),r.push(u)}return i>t.size&&(t=t.setSize(i)),ye(t,e,r)}function Fe(t){return t<m?0:t-1>>>g<<g}function Ke(t){return null==t?Qe():Ye(t)?t:Qe().withMutations(function(e){var n=r(t);Yt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Ye(t){return Qt(t)&&l(t)}function He(t,e,n,r){var o=Object.create(Ke.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Qe(){return Ae||(Ae=He(oe(),Le()))}function qe(t,e,n){var r,o,i=t._map,a=t._list,c=i.get(e),s=void 0!==c;if(n===b){if(!s)return t;a.size>=m&&a.size>=2*i.size?(r=(o=a.filter(function(t,e){return void 0!==t&&c!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=c===a.size-1?a.pop():a.set(c,void 0))}else if(s){if(n===a.get(c)[1])return t;r=i,o=a.set(c,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):He(r,o)}function We(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ze(t){this._iter=t,this.size=t.size}function Ve(t){this._iter=t,this.size=t.size}function Ge(t){this._iter=t,this.size=t.size}function Je(t){var e=bn(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=_n,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===T){var r=t.__iterator(e,n);return new P(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===L?I:L,n)},e}function Xe(t,e,n){var r=bn(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,b);return i===b?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(T,o);return new P(function(){var o=i.next();if(o.done)return o;var a=o.value,c=a[0];return U(r,c,e.call(n,a[1],c,t),o)})},r}function $e(t,e){var n=bn(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Je(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=_n,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function tn(t,e,n,r){var o=bn(t);return r&&(o.has=function(r){var o=t.get(r,b);return o!==b&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,b);return i!==b&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,c=0;return t.__iterate(function(t,i,s){if(e.call(n,t,i,s))return c++,o(t,r?i:c-1,a)},i),c},o.__iteratorUncached=function(o,i){var a=t.__iterator(T,i),c=0;return new P(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],l=s[1];if(e.call(n,l,u,t))return U(o,r?u:c++,l,i)}})},o}function en(t,e,n){var r=Ht().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}function nn(t,e,n){var r=c(t),o=(l(t)?Ke():Ht()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return(t=t||[]).push(r?[a,i]:i),t})});var i=vn(t);return o.map(function(e){return yn(t,i(e))})}function rn(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),D(e,n,o))return t;var i=A(e,o),a=N(n,o);if(i!=i||a!=a)return rn(t.toSeq().cacheResult(),e,n,r);var c,s=a-i;s==s&&(c=s<0?0:s);var u=bn(t);return u.size=0===c?c:t.size&&c||void 0,!r&&it(t)&&c>=0&&(u.get=function(e,n){return(e=C(this,e))>=0&&e<c?t.get(e+i,n):n}),u.__iterateUncached=function(e,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,s=!0,u=0;return t.__iterate(function(t,n){if(!s||!(s=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==c}),u},u.__iteratorUncached=function(e,n){if(0!==c&&n)return this.cacheResult().__iterator(e,n);var o=0!==c&&t.__iterator(e,n),a=0,s=0;return new P(function(){for(;a++<i;)o.next();if(++s>c)return F();var t=o.next();return r||e===L?t:U(e,s-1,e===I?void 0:t.value[1],t)})},u}function on(t,e,n){var r=bn(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,c){return e.call(n,t,o,c)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(T,o),c=!0;return new P(function(){if(!c)return F();var t=a.next();if(t.done)return t;var o=t.value,s=o[0],u=o[1];return e.call(n,u,s,i)?r===T?t:U(r,s,u,t):(c=!1,F())})},r}function an(t,e,n,r){var o=bn(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var c=!0,s=0;return t.__iterate(function(t,i,u){if(!c||!(c=e.call(n,t,i,u)))return s++,o(t,r?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var c=t.__iterator(T,i),s=!0,u=0;return new P(function(){var t,i,l;do{if((t=c.next()).done)return r||o===L?t:U(o,u++,o===I?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],s&&(s=e.call(n,l,i,a))}while(s);return o===T?t:U(o,i,l,t)})},o}function cn(t,e){var n=c(t),o=[t].concat(e).map(function(t){return a(t)?n&&(t=r(t)):t=n?ct(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&c(i)||s(t)&&s(i))return i}var u=new et(o);return n?u=u.toKeyedSeq():s(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),u}function sn(t,e,n){var r=bn(t);return r.__iterateUncached=function(r,o){var i=0,c=!1;function s(t,u){var l=this;t.__iterate(function(t,o){return(!e||u<e)&&a(t)?s(t,u+1):!1===r(t,n?o:i++,l)&&(c=!0),!c},o)}return s(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),c=[],s=0;return new P(function(){for(;i;){var t=i.next();if(!1===t.done){var u=t.value;if(r===T&&(u=u[1]),e&&!(c.length<e)||!a(u))return n?t:U(r,s++,u,t);c.push(i),i=u.__iterator(r,o)}else i=c.pop()}return F()})},r}function un(t,e,n){var r=vn(t);return t.toSeq().map(function(o,i){return r(e.call(n,o,i,t))}).flatten(!0)}function ln(t,e){var n=bn(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate(function(t,r){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(L,r),a=0;return new P(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?U(n,a++,e):U(n,a++,o.value,o)})},n}function pn(t,e,n){e||(e=wn);var r=c(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?Z(i):s(t)?V(i):G(i)}function fn(t,e,n){if(e||(e=wn),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return dn(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return dn(e,t,n)?n:t})}function dn(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function hn(t,e,r){var o=bn(t);return o.size=new et(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(L,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=n(t),H(o?t.reverse():t)}),a=0,c=!1;return new P(function(){var n;return c||(n=i.map(function(t){return t.next()}),c=n.some(function(t){return t.done})),c?F():U(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function yn(t,e){return it(t)?e:t.constructor(e)}function gn(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function mn(t){return Yt(t.size),k(t)}function vn(t){return c(t)?r:s(t)?o:i}function bn(t){return Object.create((c(t)?Z:s(t)?V:G).prototype)}function _n(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function wn(t,e){return t>e?1:t<e?-1:0}function Sn(t){var e=H(t);if(!e){if(!q(t))throw new TypeError("Expected iterable or array-like: "+t);e=H(n(t))}return e}function Mn(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);Cn(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=Ht(i)},o=r.prototype=Object.create(En);return o.constructor=r,r}e(Ke,Ht),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Qe()},Ke.prototype.set=function(t,e){return qe(this,t,e)},Ke.prototype.remove=function(t){return qe(this,t,b)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Ke.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ke.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?He(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Ke.isOrderedMap=Ye,Ke.prototype[h]=!0,Ke.prototype[y]=Ke.prototype.remove,e(We,Z),We.prototype.get=function(t,e){return this._iter.get(t,e)},We.prototype.has=function(t){return this._iter.has(t)},We.prototype.valueSeq=function(){return this._iter.valueSeq()},We.prototype.reverse=function(){var t=this,e=$e(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},We.prototype.map=function(t,e){var n=this,r=Xe(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},We.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?mn(this):0,function(o){return t(o,e?--n:n++,r)}),e)},We.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(L,e),r=e?mn(this):0;return new P(function(){var o=n.next();return o.done?o:U(t,e?--r:r++,o.value,o)})},We.prototype[h]=!0,e(Ze,V),Ze.prototype.includes=function(t){return this._iter.includes(t)},Ze.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(L,e),r=0;return new P(function(){var e=n.next();return e.done?e:U(t,r++,e.value,e)})},e(Ve,G),Ve.prototype.has=function(t){return this._iter.includes(t)},Ve.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Ve.prototype.__iterator=function(t,e){var n=this._iter.__iterator(L,e);return new P(function(){var e=n.next();return e.done?e:U(t,e.value,e.value,e)})},e(Ge,Z),Ge.prototype.entrySeq=function(){return this._iter.toSeq()},Ge.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){gn(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Ge.prototype.__iterator=function(t,e){var n=this._iter.__iterator(L,e);return new P(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){gn(r);var o=a(r);return U(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},Ze.prototype.cacheResult=We.prototype.cacheResult=Ve.prototype.cacheResult=Ge.prototype.cacheResult=_n,e(Mn,Mt),Mn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Mn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Mn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},Mn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=jn(this,oe()))},Mn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+kn(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:jn(this,n)},Mn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:jn(this,e)},Mn.prototype.wasAltered=function(){return this._map.wasAltered()},Mn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Mn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Mn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?jn(this,e,t):(this.__ownerID=t,this._map=e,this)};var En=Mn.prototype;function jn(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function kn(t){return t._name||t.constructor.name||"Record"}function Cn(t,e){try{e.forEach(On.bind(void 0,t))}catch(t){}}function On(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){_t(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Dn(t){return null==t?zn():An(t)&&!l(t)?t:zn().withMutations(function(e){var n=i(t);Yt(n.size),n.forEach(function(t){return e.add(t)})})}function An(t){return!(!t||!t[xn])}En[y]=En.remove,En.deleteIn=En.removeIn=Zt.removeIn,En.merge=Zt.merge,En.mergeWith=Zt.mergeWith,En.mergeIn=Zt.mergeIn,En.mergeDeep=Zt.mergeDeep,En.mergeDeepWith=Zt.mergeDeepWith,En.mergeDeepIn=Zt.mergeDeepIn,En.setIn=Zt.setIn,En.update=Zt.update,En.updateIn=Zt.updateIn,En.withMutations=Zt.withMutations,En.asMutable=Zt.asMutable,En.asImmutable=Zt.asImmutable,e(Dn,jt),Dn.of=function(){return this(arguments)},Dn.fromKeys=function(t){return this(r(t).keySeq())},Dn.prototype.toString=function(){return this.__toString("Set {","}")},Dn.prototype.has=function(t){return this._map.has(t)},Dn.prototype.add=function(t){return Ln(this,this._map.set(t,!0))},Dn.prototype.remove=function(t){return Ln(this,this._map.remove(t))},Dn.prototype.clear=function(){return Ln(this,this._map.clear())},Dn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Dn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},Dn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},Dn.prototype.merge=function(){return this.union.apply(this,arguments)},Dn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},Dn.prototype.sort=function(t){return Rn(pn(this,t))},Dn.prototype.sortBy=function(t,e){return Rn(pn(this,e,t))},Dn.prototype.wasAltered=function(){return this._map.wasAltered()},Dn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Dn.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Dn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Dn.isSet=An;var Nn,xn="@@__IMMUTABLE_SET__@@",In=Dn.prototype;function Ln(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Tn(t,e){var n=Object.create(In);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function zn(){return Nn||(Nn=Tn(oe()))}function Rn(t){return null==t?Kn():Bn(t)?t:Kn().withMutations(function(e){var n=i(t);Yt(n.size),n.forEach(function(t){return e.add(t)})})}function Bn(t){return An(t)&&l(t)}In[xn]=!0,In[y]=In.remove,In.mergeDeep=In.merge,In.mergeDeepWith=In.mergeWith,In.withMutations=Zt.withMutations,In.asMutable=Zt.asMutable,In.asImmutable=Zt.asImmutable,In.__empty=zn,In.__make=Tn,e(Rn,Dn),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(t){return this(r(t).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=Bn;var Pn,Un=Rn.prototype;function Fn(t,e){var n=Object.create(Un);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Kn(){return Pn||(Pn=Fn(Qe()))}function Yn(t){return null==t?Vn():Hn(t)?t:Vn().unshiftAll(t)}function Hn(t){return!(!t||!t[qn])}Un[h]=!0,Un.__empty=Kn,Un.__make=Fn,e(Yn,Et),Yn.of=function(){return this(arguments)},Yn.prototype.toString=function(){return this.__toString("Stack [","]")},Yn.prototype.get=function(t,e){var n=this._head;for(t=C(this,t);n&&t--;)n=n.next;return n?n.value:e},Yn.prototype.peek=function(){return this._head&&this._head.value},Yn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Zn(t,e)},Yn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Yt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Zn(e,n)},Yn.prototype.pop=function(){return this.slice(1)},Yn.prototype.unshift=function(){return this.push.apply(this,arguments)},Yn.prototype.unshiftAll=function(t){return this.pushAll(t)},Yn.prototype.shift=function(){return this.pop.apply(this,arguments)},Yn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Vn()},Yn.prototype.slice=function(t,e){if(D(t,e,this.size))return this;var n=A(t,this.size);if(N(e,this.size)!==this.size)return Et.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Zn(r,o)},Yn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Zn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Yn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Yn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new P(function(){if(r){var e=r.value;return r=r.next,U(t,n++,e)}return F()})},Yn.isStack=Hn;var Qn,qn="@@__IMMUTABLE_STACK__@@",Wn=Yn.prototype;function Zn(t,e,n,r){var o=Object.create(Wn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Vn(){return Qn||(Qn=Zn(0))}function Gn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Wn[qn]=!0,Wn.withMutations=Zt.withMutations,Wn.asMutable=Zt.asMutable,Wn.asImmutable=Zt.asImmutable,Wn.wasAltered=Zt.wasAltered,n.Iterator=P,Gn(n,{toArray:function(){Yt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Ze(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new We(this,!0)},toMap:function(){return Ht(this.toKeyedSeq())},toObject:function(){Yt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Rn(c(this)?this.valueSeq():this)},toSet:function(){return Dn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Ve(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Yn(c(this)?this.valueSeq():this)},toList:function(){return Ee(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return yn(this,cn(this,t.call(arguments,0)))},includes:function(t){return this.some(function(e){return mt(e,t)})},entries:function(){return this.__iterator(T)},every:function(t,e){Yt(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return yn(this,tn(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Yt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Yt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(I)},map:function(t,e){return yn(this,Xe(this,t,e))},reduce:function(t,e,n){var r,o;return Yt(this.size),arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return yn(this,$e(this,!0))},slice:function(t,e){return yn(this,rn(this,t,e,!0))},some:function(t,e){return!this.every(er(t),e)},sort:function(t){return yn(this,pn(this,t))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return k(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return en(this,t,e)},equals:function(t){return vt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(tr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(er(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(O)},flatMap:function(t,e){return yn(this,un(this,t,e))},flatten:function(t){return yn(this,sn(this,t,!0))},fromEntrySeq:function(){return new Ge(this)},get:function(t,e){return this.find(function(e,n){return mt(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,o=Sn(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return e}return r},groupBy:function(t,e){return nn(this,t,e)},has:function(t){return this.get(t,b)!==b},hasIn:function(t){return this.getIn(t,b)!==b},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return fn(this,t)},maxBy:function(t,e){return fn(this,e,t)},min:function(t){return fn(this,t?nr(t):ir)},minBy:function(t,e){return fn(this,e?nr(e):ir,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return yn(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return yn(this,an(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(er(t),e)},sortBy:function(t,e){return yn(this,pn(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return yn(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return yn(this,on(this,t,e))},takeUntil:function(t,e){return this.takeWhile(er(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Jn=n.prototype;Jn[p]=!0,Jn[B]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=rr,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Gn(r,{flip:function(){return yn(this,Je(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return mt(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return mt(e,t)})},mapEntries:function(t,e){var n=this,r=0;return yn(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return yn(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var Xn=r.prototype;function $n(t,e){return e}function tr(t,e){return[e,t]}function er(t){return function(){return!t.apply(this,arguments)}}function nr(t){return function(){return-t.apply(this,arguments)}}function rr(t){return"string"==typeof t?JSON.stringify(t):t}function or(){return j(arguments)}function ir(t,e){return t<e?1:t>e?-1:0}function ar(t){if(t.size===1/0)return 0;var e=l(t),n=c(t),r=e?1:0;return cr(t.__iterate(n?e?function(t,e){r=31*r+sr(Ot(t),Ot(e))|0}:function(t,e){r=r+sr(Ot(t),Ot(e))|0}:e?function(t){r=31*r+Ot(t)|0}:function(t){r=r+Ot(t)|0}),r)}function cr(t,e){return e=kt(e,3432918353),e=kt(e<<15|e>>>-15,461845907),e=kt(e<<13|e>>>-13,5),e=kt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Ct((e=kt(e^e>>>13,3266489909))^e>>>16)}function sr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Xn[f]=!0,Xn[B]=Jn.entries,Xn.__toJS=Jn.toObject,Xn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rr(t)},Gn(o,{toKeyedSeq:function(){return new We(this,!1)},filter:function(t,e){return yn(this,tn(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return yn(this,$e(this,!1))},slice:function(t,e){return yn(this,rn(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=A(t,t<0?this.count():this.size);var r=this.slice(0,t);return yn(this,1===n?r:r.concat(j(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return yn(this,sn(this,t,!1))},get:function(t,e){return(t=C(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=C(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return yn(this,ln(this,t))},interleave:function(){var t=[this].concat(j(arguments)),e=hn(this.toSeq(),V.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),yn(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return yn(this,an(this,t,e,!1))},zip:function(){return yn(this,hn(this,or,[this].concat(j(arguments))))},zipWith:function(t){var e=j(arguments);return e[0]=this,yn(this,hn(this,t,e))}}),o.prototype[d]=!0,o.prototype[h]=!0,Gn(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Jn.includes,Gn(Z,r.prototype),Gn(V,o.prototype),Gn(G,i.prototype),Gn(Mt,r.prototype),Gn(Et,o.prototype),Gn(jt,i.prototype);var ur={Iterable:n,Seq:W,Collection:St,Map:Ht,OrderedMap:Ke,List:Ee,Stack:Yn,Set:Dn,OrderedSet:Rn,Record:Mn,Range:wt,Repeat:bt,is:mt,fromJS:dt};return ur}();var l=u.exports,p=l.OrderedMap,f={createFromArray:function(t){return p(t.map(function(t){return[t.getKey(),t]}))}};var d=l,h=d.Map,y=d.OrderedSet,g=d.Record,m=y(),v={style:m,entity:null},b=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(t){return this.getStyle().includes(t)},r.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return r.create(n)},r.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return r.create(n)},r.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return r.create(n)},r.create=function(t){if(!t)return _;var e=h({style:m,entity:null}).merge(t),n=w.get(e);if(n)return n;var o=new r(e);return w=w.set(e,o),o},r.fromJS=function(t){var e=t.style,n=t.entity;return new r({style:Array.isArray(e)?y(e):e,entity:Array.isArray(n)?y(n):n})},r}(g(v)),_=new b,w=h([[h(v),_]]);b.EMPTY=_;var S=b;var M=function(t,e,n,r){if(t.size){var o=0;t.reduce(function(t,i,a){return e(t,i)||(n(t)&&r(o,a),o=a),i}),n(t.last())&&r(o,t.count())}};var E=S,j=M,k=l,C=k.List,O=k.Map,D=k.OrderedSet,A=k.Record,N=k.Repeat,x=D(),I=A({key:"",type:"unstyled",text:"",characterList:C(),depth:0,data:O()}),L=function(t){var e,n;function r(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=C(N(E.EMPTY,n.length))),t}(e))||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():x},o.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},o.findStyleRanges=function(t,e){j(this.getCharacterList(),T,t,e)},o.findEntityRanges=function(t,e){j(this.getCharacterList(),z,t,e)},r}(I);function T(t,e){return t.getStyle()===e.getStyle()}function z(t,e){return t.getEntity()===e.getEntity()}var R=L;var B=S,P=M,U=l,F=U.List,K=U.Map,Y=U.OrderedSet,H=U.Record,Q=U.Repeat,q=Y(),W={parent:null,characterList:F(),data:K(),depth:0,key:"",text:"",type:"unstyled",children:F(),prevSibling:null,nextSibling:null},Z=function(t,e){return t.getStyle()===e.getStyle()},V=function(t,e){return t.getEntity()===e.getEntity()},G=function(t){var e,n;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W;return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=F(Q(B.EMPTY,n.length))),t}(e))||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():q},o.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(t,e){P(this.getCharacterList(),Z,t,e)},o.findEntityRanges=function(t,e){P(this.getCharacterList(),V,t,e)},r}(H(W)),J=G,X=S,$=l.Map;function tt(t,e,n,r){var o=t.getBlockMap(),i=e.getStartKey(),a=e.getStartOffset(),c=e.getEndKey(),s=e.getEndOffset(),u=o.skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===c}).concat($([[c,o.get(c)]])).map(function(t,e){var o,u;i===c?(o=a,u=s):(o=e===i?a:0,u=e===c?s:t.getLength());for(var l,p=t.getCharacterList();o<u;)l=p.get(o),p=p.set(o,r?X.applyStyle(l,n):X.removeStyle(l,n)),o++;return t.set("characterList",p)});return t.merge({blockMap:o.merge(u),selectionBefore:e,selectionAfter:e})}var et={add:function(t,e,n){return tt(t,e,n,!0)},remove:function(t,e,n){return tt(t,e,n,!1)}},nt=S;var rt=function(t,e,n,r){for(var o=e,i=t.getCharacterList();o<n;)i=i.set(o,nt.applyEntity(i.get(o),r)),o++;return t.set("characterList",i)},ot=l;var it=function(t,e,n){var r=t.getBlockMap(),o=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),c=e.getEndOffset(),s=r.skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===a}).toOrderedMap().merge(ot.OrderedMap([[a,r.get(a)]])).map(function(t,e){var r=e===o?i:0,s=e===a?c:t.getLength();return rt(t,r,s,n)});return t.merge({blockMap:r.merge(s),selectionBefore:e,selectionAfter:e})},at={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map(function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t});for(var a,c=r,s=null,u=null,l=0;l<i.length;l++){if(t<(a=c+i[l].length)&&c<e)null!==s||(s=c),u=a;else if(null!==s)break;c=a}var p=r+n.length,f=s===r,d=u===p;return(!f&&d||f&&!d)&&("forward"===o?u!==p&&u++:s!==r&&s--),{start:s,end:u}}},ct="production"!==process.env.NODE_ENV?function(t){if(void 0===t)throw new Error("invariant(...): Second argument must be a string.")}:function(t){};var st=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(ct(e),!t){var i;if(void 0===e)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(e.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}},ut=st;var lt=at,pt=function(t,e){var n=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){n.push({start:t,end:e})}),n.length||("production"!==process.env.NODE_ENV?ut(!1,"Entity key not found in this range."):ut(!1)),n},ft=st;function dt(t,e,n,r,o,i,a){var c=n.getStartOffset(),s=n.getEndOffset(),u=t.__get(o).getMutability(),l=a?c:s;if("MUTABLE"===u)return n;var p=pt(e,o).filter(function(t){return l<=t.end&&l>=t.start});1!=p.length&&("production"!==process.env.NODE_ENV?ft(!1,"There should only be one entity range within this removal range."):ft(!1));var f=p[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:c=f.start);var d=lt.getRemovalRange(c,s,e.getText().slice(f.start,f.end),f.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var ht=function(t,e,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),c=e.getEntityAt(i),s=n.getEntityAt(a-1);if(!c&&!s)return r;var u=r;if(c&&c===s)u=dt(t,e,u,o,c,!0,!0);else if(c&&s){var l=dt(t,e,u,o,c,!1,!0),p=dt(t,n,u,o,s,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var f=dt(t,e,u,o,c,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var d=dt(t,n,u,o,s,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},yt={},gt=Math.pow(2,24);var mt=function(){for(var t;void 0===t||yt.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*gt).toString(32);return yt[t]=!0,t},vt=J,bt=mt,_t=l.OrderedMap,wt=function(t){return t.first()instanceof vt?function(t){var e,n={};return _t(t.withMutations(function(t){t.forEach(function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),s=r.getChildKeys(),u=r.getParentKey(),l=bt();if(n[i]=l,a&&(t.get(a)?t.setIn([a,"prevSibling"],l):t.setIn([i,"nextSibling"],null)),c&&(t.get(c)?t.setIn([c,"nextSibling"],l):t.setIn([i,"prevSibling"],null)),u&&t.get(u)){var p=t.get(u).getChildKeys();t.setIn([u,"children"],p.set(p.indexOf(r.getKey()),l))}else t.setIn([i,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],l),t.setIn([i,"prevSibling"],n[e.getKey()])),e=t.get(i);s.forEach(function(e){t.get(e)?t.setIn([e,"parent"],l):t.setIn([i,"children"],r.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]}))}(t):function(t){return _t(t.toArray().map(function(t){var e=bt();return[e,t.set("key",e)]}))}(t)},St=S,Mt=M,Et=st;function jt(t,e,n){var r=e.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,c=i?i.getEntity():void 0;if(c&&c===a&&"MUTABLE"!==t.__get(c).getMutability()){for(var s,u=function(t,e,n){var r;return Mt(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(r={start:t,end:e})}),"object"!=typeof r&&("production"!==process.env.NODE_ENV?Et(!1,"Removal range must exist within character list."):Et(!1)),r}(r,c,n),l=u.start,p=u.end;l<p;)s=r.get(l),r=r.set(l,St.applyEntity(s,null)),l++;return e.set("characterList",r)}return e}var kt=function(t,e){var n=t.getBlockMap(),r=t.getEntityMap(),o={},i=e.getStartKey(),a=e.getStartOffset(),c=n.get(i),s=jt(r,c,a);s!==c&&(o[i]=s);var u=e.getEndKey(),l=e.getEndOffset(),p=n.get(u);i===u&&(p=s);var f=jt(r,p,l);return f!==p&&(o[u]=f),Object.keys(o).length?t.merge({blockMap:n.merge(o),selectionAfter:e}):t.set("selectionAfter",e)},Ct=wt,Ot=kt,Dt=function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=e.getEndKey(),i=e.getEndOffset(),a=Ot(t,e).getBlockMap(),c=a.keySeq(),s=c.indexOf(n),u=c.indexOf(o)+1;return Ct(a.slice(s,u).map(function(t,e){var a=t.getText(),c=t.getCharacterList();return n===o?t.merge({text:a.slice(r,i),characterList:c.slice(r,i)}):e===n?t.merge({text:a.slice(r),characterList:c.slice(r)}):e===o?t.merge({text:a.slice(0,i),characterList:c.slice(0,i)}):t}))};var At=function(t,e,n){var r=t;if(n===r.count())e.forEach(function(t){r=r.push(t)});else if(0===n)e.reverse().forEach(function(t){r=r.unshift(t)});else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(e,i).toList()}return r},Nt=f,xt=J,It=At,Lt=st,Tt=wt,zt=l.List,Rt=function(t,e,n,r,o,i){var a=n.first()instanceof xt,c=[],s=r.size,u=n.get(o),l=r.first(),p=r.last(),f=p.getLength(),d=p.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach(function(t,e){e===o?(h?c.push(t):c.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),c=n.first();return t.merge({text:i+c.getText(),characterList:a.concat(c.getCharacterList()),type:i?t.getType():c.getType(),data:c.getData()})}(t,i,r)),r.slice(h?0:1,s-1).forEach(function(t){return c.push(t)}),c.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),c=o.slice(e,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(c),data:s.getData()})}(t,i,r))):c.push(t)});var y=Nt.createFromArray(c);return a&&(y=function(t,e,n,r){return t.withMutations(function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),c=n.getParentKey(),s=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),u=s[s.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([u,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],u),s.forEach(function(t){return e.setIn([t,"parent"],c)}),c){var l=t.get(c).getChildKeys(),p=l.indexOf(o)+1,f=l.toArray();f.splice.apply(f,[p,0].concat(s)),e.setIn([c,"children"],zt(f))}})}(y,0,u,l)),t.merge({blockMap:y,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})})},Bt=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||("production"!==process.env.NODE_ENV?Lt(!1,"`insertFragment` should only be called with a collapsed selection state."):Lt(!1));var o=t.getBlockMap(),i=Tt(n),a=e.getStartKey(),c=e.getStartOffset(),s=o.get(a);return s instanceof xt&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Lt(!1,"`insertFragment` should not be called when a container node is selected."):Lt(!1))),1===i.size?function(t,e,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),s=c.getText(),u=c.getCharacterList(),l=o,p=i+r.getText().length,f=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var d=c.getType();s&&"unstyled"===d&&(d=r.getType());var h=c.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:It(u,r.getCharacterList(),i),type:d,data:f});return t.merge({blockMap:n.set(o,h),selectionBefore:e,selectionAfter:e.merge({anchorKey:l,anchorOffset:p,focusKey:l,focusOffset:p,isBackward:!1})})}(t,e,o,i.first(),a,c,r):Rt(t,e,o,i,a,c)},Pt=At,Ut=st,Ft=l.Repeat;var Kt=function(t,e,n,r){e.isCollapsed()||("production"!==process.env.NODE_ENV?Ut(!1,"`insertText` should only be called with a collapsed range."):Ut(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return t;var i=t.getBlockMap(),a=e.getStartKey(),c=e.getStartOffset(),s=i.get(a),u=s.getText(),l=s.merge({text:u.slice(0,c)+n+u.slice(c,s.getLength()),characterList:Pt(s.getCharacterList(),Ft(r,o).toList(),c)}),p=c+o;return t.merge({blockMap:i.set(a,l),selectionAfter:e.merge({anchorOffset:p,focusOffset:p})})},Yt=l.Map;var Ht=function(t,e,n){var r=e.getStartKey(),o=e.getEndKey(),i=t.getBlockMap(),a=i.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===o}).concat(Yt([[o,i.get(o)]])).map(n);return t.merge({blockMap:i.merge(a),selectionBefore:e,selectionAfter:e})},Qt=J,qt=function(t,e){if(!(t instanceof Qt))return null;var n=t.getNextSiblingKey();if(n)return n;var r=t.getParentKey();if(!r)return null;for(var o=e.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?e.get(i):null}return o?o.getNextSiblingKey():null},Wt=J,Zt=qt,Vt=l;Vt.List;var Gt=Vt.Map,Jt=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},Xt=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},$t=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},te=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},ee=function(t,e,n,r){return t.withMutations(function(o){if(Jt(e.getKey(),o,function(t){return t.merge({nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})}),Jt(n.getKey(),o,function(t){return t.merge({nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})}),Xt(e.getKey(),r).forEach(function(t){return Jt(t,o,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return o.get(t)}),nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})})}),Jt(e.getNextSiblingKey(),o,function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}),Jt(e.getPrevSiblingKey(),o,function(t){return t.merge({nextSibling:$t(t,o,r)})}),Jt(n.getNextSiblingKey(),o,function(t){return t.merge({prevSibling:te(t,o,r)})}),Jt(n.getPrevSiblingKey(),o,function(t){return t.merge({nextSibling:n.getNextSiblingKey()})}),Xt(n.getKey(),r).forEach(function(t){Jt(t,o,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return o.get(t)}),nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})})}),function(t,e){var n=[];if(!t)return n;for(var r=Zt(t,e);r&&e.get(r);){var o=e.get(r);n.push(r),r=o.getParentKey()?Zt(o,e):null}return n}(n,r).forEach(function(t){return Jt(t,o,function(t){return t.merge({nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})})}),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var i=e.getPrevSiblingKey();Jt(n.getKey(),o,function(t){return t.merge({prevSibling:i})}),Jt(i,o,function(t){return t.merge({nextSibling:n.getKey()})});var a=i?t.get(i):null,c=a?a.getParentKey():null;if(e.getChildKeys().forEach(function(t){Jt(t,o,function(t){return t.merge({parent:c})})}),null!=c){var s=t.get(c);Jt(c,o,function(t){return t.merge({children:s.getChildKeys().concat(e.getChildKeys())})})}Jt(e.getChildKeys().find(function(e){return null===t.get(e).getNextSiblingKey()}),o,function(t){return t.merge({nextSibling:e.getNextSiblingKey()})})}})},ne=function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t},re=function(t,e){if(e.isCollapsed())return t;var n,r=t.getBlockMap(),o=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),c=e.getEndOffset(),s=r.get(o),u=r.get(a),l=s instanceof Wt,p=[];if(l){var f=u.getChildKeys(),d=Xt(a,r);u.getNextSiblingKey()&&(p=p.concat(d)),f.isEmpty()||(p=p.concat(d.concat([a]))),p=p.concat(Xt(Zt(u,r),r))}n=s===u?ne(s.getCharacterList(),i,c):s.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(c));var h=s.merge({text:s.getText().slice(0,i)+u.getText().slice(c),characterList:n}),y=l&&0===i&&0===c&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?Gt([[o,null]]):r.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===a}).filter(function(t,e){return-1===p.indexOf(e)}).concat(Gt([[a,null]])).map(function(t,e){return e===o?h:null}),g=r.merge(y).filter(function(t){return!!t});return l&&s!==u&&(g=ee(g,s,u,r)),t.merge({blockMap:g,selectionBefore:e,selectionAfter:e.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},oe=J,ie=mt,ae=l,ce=st,se=Ht,ue=ae.List,le=ae.Map,pe=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},fe=S,de=et,he=it,ye=ht,ge=Dt,me=Bt,ve=Kt,be=st,_e=Ht,we=kt,Se=re,Me=function(t,e){e.isCollapsed()||("production"!==process.env.NODE_ENV?ce(!1,"Selection range must be collapsed."):ce(!1));var n=e.getAnchorKey(),r=t.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return se(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var c=e.getAnchorOffset(),s=o.getCharacterList(),u=ie(),l=o instanceof oe,p=o.merge({text:i.slice(0,c),characterList:s.slice(0,c)}),f=p.merge({key:u,text:i.slice(c),characterList:s.slice(c),data:le()}),d=r.toSeq().takeUntil(function(t){return t===o}),h=r.toSeq().skipUntil(function(t){return t===o}).rest(),y=d.concat([[n,p],[u,f]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?ce(!1,"ContentBlockNode must not have children"):ce(!1)),y=function(t,e,n){return t.withMutations(function(t){var r=e.getKey(),o=n.getKey();pe(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:ue(i)})}),pe(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:o})}),pe(r,t,function(t){return t.merge({nextSibling:o})}),pe(o,t,function(t){return t.merge({prevSibling:r})})})}(y,p,f)),t.merge({blockMap:y,selectionBefore:e,selectionAfter:e.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},Ee=l.OrderedSet,je={replaceText:function(t,e,n,r,o){var i=we(t,e),a=Se(i,e),c=fe.create({style:r||Ee(),entity:o||null});return ve(a,a.getSelectionAfter(),n,c)},insertText:function(t,e,n,r,o){return e.isCollapsed()||("production"!==process.env.NODE_ENV?be(!1,"Target range must be collapsed for `insertText`."):be(!1)),je.replaceText(t,e,n,r,o)},moveText:function(t,e,n){var r=ge(t,e),o=je.removeRange(t,e,"backward");return je.replaceWithFragment(o,n,r)},replaceWithFragment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=we(t,e),i=Se(o,e);return me(i,i.getSelectionAfter(),n,r)},removeRange:function(t,e,n){var r,o,i,a;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(r),a=t.getBlockForKey(o);var c=e.getStartOffset(),s=e.getEndOffset(),u=i.getEntityAt(c),l=a.getEntityAt(s-1);if(r===o&&u&&u===l){var p=ye(t.getEntityMap(),i,a,e,n);return Se(t,p)}var f=we(t,e);return Se(f,e)},splitBlock:function(t,e){var n=we(t,e),r=Se(n,e);return Me(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return de.add(t,e,n)},removeInlineStyle:function(t,e,n){return de.remove(t,e,n)},setBlockType:function(t,e,n){return _e(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return _e(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return _e(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var r=we(t,e);return he(r,e,n)}},ke=je;var Ce=function(t){return Object.keys(t).map(function(e){return t[e]})};function Oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=M,Ae=Ce,Ne=l,xe=Ne.List,Ie=Ne.Repeat,Le=Ne.Record,Te=function(){return!0},ze=Le({start:null,end:null}),Re=Le({start:null,end:null,decoratorKey:null,leaves:null});function Be(t,e){var n=[],r=t.map(function(t){return t.getStyle()}).toList();return De(r,Pe,Te,function(t,r){n.push(new ze({start:t+e,end:r+e}))}),xe(n)}function Pe(t,e){return t===e}var Ue={generate:function(t,e,n){var r=e.getLength();if(!r)return xe.of(new Re({start:0,end:0,decoratorKey:null,leaves:xe.of(new ze({start:0,end:0}))}));var o=[],i=n?n.getDecorations(e,t):xe(Ie(null,r)),a=e.getCharacterList();return De(i,Pe,Te,function(t,e){o.push(new Re({start:t,end:e,decoratorKey:i.get(t),leaves:Be(a.slice(t,e).toList(),t)}))}),xe(o)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["leaves"]);return new Re(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Oe(t,e,n[e])})}return t}({},n,{leaves:null!=e?xe(Array.isArray(e)?e:Ae(e)).map(function(t){return ze(t)}):null}))}};var Fe=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,l.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),Ke=Fe;function Ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var He=Ke,Qe=st,qe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},We=(0,l.Map)(),Ze=qe();function Ve(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var Ge={getLastCreatedEntityKey:function(){return Ve("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Ge.__getLastCreatedEntityKey()},create:function(t,e,n){return Ve("DraftEntity.create","contentState.createEntity"),Ge.__create(t,e,n)},add:function(t){return Ve("DraftEntity.add","contentState.addEntity"),Ge.__add(t)},get:function(t){return Ve("DraftEntity.get","contentState.getEntity"),Ge.__get(t)},__getAll:function(){return We},__loadWithEntities:function(t){We=t,Ze=qe()},mergeData:function(t,e){return Ve("DraftEntity.mergeData","contentState.mergeEntityData"),Ge.__mergeData(t,e)},replaceData:function(t,e){return Ve("DraftEntity.replaceData","contentState.replaceEntityData"),Ge.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return Ze},__create:function(t,e,n){return Ge.__add(new He({type:t,mutability:e,data:n||{}}))},__add:function(t){return Ze=qe(),We=We.set(Ze,t),Ze},__get:function(t){var e=We.get(t);return e||("production"!==process.env.NODE_ENV?Qe(!1,"Unknown DraftEntity key: %s.",t):Qe(!1)),e},__mergeData:function(t,e){var n=Ge.__get(t),r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ye(t,e,n[e])})}return t}({},n.getData(),e),o=n.set("data",r);return We=We.set(t,o),o},__replaceData:function(t,e){var n=Ge.__get(t).set("data",e);return We=We.set(t,n),n}},Je=Ge;var Xe=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(t,e,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=n||e<=a&&a<=n}if(t!==r&&t!==o)return!1;var c=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=c&&n>=c},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(t){return new r({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,l.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),$e=Xe,tn=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]},en=new RegExp("\r","g");var nn=function(t){return t.replace(en,"")};function rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){on(t,e,n[e])})}return t}function on(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var an=f,cn=S,sn=R,un=J,ln=Je,pn=$e,fn=mt,dn=Ce,hn=tn,yn=l,gn=nn,mn=yn.List,vn=yn.Record,bn=yn.Repeat,_n=yn.Map,wn=yn.OrderedMap,Sn=vn({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),Mn=hn("draft_tree_data_support")?un:sn,En=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return ln},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(t){return this.getBlockMap().get(t)},o.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},o.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},o.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,n){return n===t}).skip(1).first()},o.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},o.getLastCreatedEntityKey=function(){return ln.__getLastCreatedEntityKey()},o.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(t,e,n){return ln.__create(t,e,n),this},o.mergeEntityData=function(t,e){return ln.__mergeData(t,e),this},o.replaceEntityData=function(t,e){return ln.__replaceData(t,e),this},o.addEntity=function(t){return ln.__add(t),this},o.getEntity=function(t){return ln.__get(t)},o.getAllEntities=function(){return ln.__getAll()},o.loadWithEntities=function(t){return ln.__loadWithEntities(t)},r.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,o=an.createFromArray(n),i=o.isEmpty()?new pn:pn.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:e||ln,selectionBefore:i,selectionAfter:i})},r.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e).map(function(t){return t=gn(t),new Mn({key:fn(),text:t,type:"unstyled",characterList:mn(bn(cn.EMPTY,t.length))})});return r.createFromBlockArray(n)},r.fromJS=function(t){return new r(rn({},t,{blockMap:wn(t.blockMap).map(r.createContentBlockFromJS),selectionBefore:new pn(t.selectionBefore),selectionAfter:new pn(t.selectionAfter)}))},r.createContentBlockFromJS=function(t){var e=t.characterList;return new Mn(rn({},t,{data:_n(t.data),characterList:null!=e?mn((Array.isArray(e)?e:dn(e)).map(function(t){return cn.fromJS(t)})):void 0}))},r}(Sn),jn=En,kn=st,Cn="LTR",On=null;function Dn(t){return t===Cn||"RTL"===t}function An(t){return Dn(t)||("production"!==process.env.NODE_ENV?kn(!1,"`dir` must be a strong direction to be converted to HTML Direction"):kn(!1)),t===Cn?"ltr":"rtl"}function Nn(t){On=t}var xn={NEUTRAL:"NEUTRAL",LTR:Cn,RTL:"RTL",isStrong:Dn,getHTMLDir:An,getHTMLDirIfDifferent:function(t,e){return Dn(t)||("production"!==process.env.NODE_ENV?kn(!1,"`dir` must be a strong direction to be converted to HTML Direction"):kn(!1)),Dn(e)||("production"!==process.env.NODE_ENV?kn(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):kn(!1)),t===e?null:An(t)},setGlobalDir:Nn,initGlobalDir:function(){Nn(Cn)},getGlobalDir:function(){return On||this.initGlobalDir(),On||("production"!==process.env.NODE_ENV?kn(!1,"Global direction not set."):kn(!1)),On}},In=xn,Ln=st,Tn="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",zn="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",Rn=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+Tn+zn+"]"),Bn=new RegExp("["+Tn+zn+"]");function Pn(t){var e=Rn.exec(t);return null==e?null:e[0]}function Un(t){var e=Pn(t);return null==e?In.NEUTRAL:Bn.exec(e)?In.RTL:In.LTR}function Fn(t,e){if(e=e||In.NEUTRAL,!t.length)return e;var n=Un(t);return n===In.NEUTRAL?e:n}function Kn(t,e){return e||(e=In.getGlobalDir()),In.isStrong(e)||("production"!==process.env.NODE_ENV?Ln(!1,"Fallback direction must be a strong direction"):Ln(!1)),Fn(t,e)}var Yn={firstStrongChar:Pn,firstStrongCharDir:Un,resolveBlockDir:Fn,getDirection:Kn,isDirectionLTR:function(t,e){return Kn(t,e)===In.LTR},isDirectionRTL:function(t,e){return Kn(t,e)===In.RTL}};function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qn,qn=Yn,Wn=xn,Zn=st,Vn=function(){function t(t){Hn(this,"_defaultDir",void 0),Hn(this,"_lastDir",void 0),t?Wn.isStrong(t)||("production"!==process.env.NODE_ENV?Zn(!1,"Default direction must be a strong direction (LTR or RTL)"):Zn(!1)):t=Wn.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=qn.getDirection(t,this._lastDir),this._lastDir},t}(),Gn=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")},Jn=Vn,Xn=l,$n=Gn,tr=Xn.OrderedMap;function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){nr(t,e,n[e])})}return t}function nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rr=Ue,or=jn,ir={getDirectionMap:function(t,e){Qn?Qn.reset():Qn=new Jn;var n=t.getBlockMap(),r=n.valueSeq().map(function(t){return $n(Qn).getDirection(t.getText())}),o=tr(n.keySeq().zip(r));return null!=e&&Xn.is(e,o)?e:o}},ar=$e,cr=l,sr=cr.OrderedSet,ur=cr.Record,lr=cr.Stack,pr=cr.OrderedMap,fr=cr.List,dr=ur({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:lr(),selection:null,treeMap:null,undoStack:lr()}),hr=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,n){return e.createWithContent(or.createFromText(t),n)},e.createWithContent=function(t,n){if(0===t.getBlockMap().count())return e.createEmpty(n);var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:lr(),redoStack:lr(),decorator:n||null,selection:ar.createEmpty(r)})},e.create=function(t){var n=t.currentContent,r=er({},t,{treeMap:gr(n,t.decorator),directionMap:ir.getDirectionMap(n)});return new e(new dr(r))},e.fromJS=function(t){return new e(new dr(er({},t,{directionMap:null!=t.directionMap?pr(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?sr(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?or.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?lr(t.redoStack.map(function(t){return or.fromJS(t)})):t.redoStack,selection:null!=t.selection?new ar(t.selection):t.selection,treeMap:null!=t.treeMap?pr(t.treeMap).map(function(t){return fr(t).map(function(t){return rr.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?lr(t.undoStack.map(function(t){return or.fromJS(t)})):t.undoStack,currentContent:or.fromJS(t.currentContent)})))},e.set=function(t,n){return new e(t.getImmutable().withMutations(function(e){var r=e.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||t.getCurrentContent();if(o!==r){var a,c=e.get("treeMap");return a=o&&r?function(t,e,n,r,o){return n.merge(e.toSeq().filter(function(e){return r.getDecorations(e,t)!==o.getDecorations(e,t)}).map(function(e){return rr.generate(t,e,r)}))}(i,i.getBlockMap(),c,o,r):gr(i,o),void e.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==t.getCurrentContent()&&e.set("treeMap",function(t,e,n,r){var o=t.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=t.getImmutable().get("treeMap");return a.merge(e.toSeq().filter(function(t,e){return t!==i.get(e)}).map(function(t){return rr.generate(o,t,r)}))}(t,i.getBlockMap(),i.getEntityMap(),o)),e.merge(n)}))};var t=e.prototype;function e(t){nr(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return mr(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return mr(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return yr(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),yr(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new ar({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var i=ir.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),c=t.getCurrentContent(),s=t.getUndoStack(),u=n;a!==c.getSelectionAfter()||function(t,e){var n=t.getLastChangeType();return e!==n||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,r)?(s=s.push(c),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",c.getSelectionBefore()));var l=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var p={currentContent:u,directionMap:i,undoStack:s,redoStack:lr(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=ir.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=ir.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function yr(t,e,n){return hr.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function gr(t,e){return t.getBlockMap().map(function(n){return rr.generate(t,n,e)}).toOrderedMap()}function mr(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):sr()}var vr=hr,br=J,_r=qt,wr=l,Sr=st,Mr=wr.OrderedMap,Er=wr.List,jr=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},kr=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),c=n.getKey(),s=e.getParentKey(),u=e.getNextSiblingKey(),l=e.getPrevSiblingKey(),p=n.getParentKey(),f=i?n.getNextSiblingKey():c,d=i?c:n.getPrevSiblingKey();return t.withMutations(function(t){jr(s,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})}),jr(l,t,function(t){return t.merge({nextSibling:u})}),jr(u,t,function(t){return t.merge({prevSibling:l})}),jr(f,t,function(t){return t.merge({prevSibling:a})}),jr(d,t,function(t){return t.merge({nextSibling:a})}),jr(p,t,function(t){var e=t.getChildKeys(),n=e.indexOf(c),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:Er(o)})}),jr(a,t,function(t){return t.merge({nextSibling:f,prevSibling:d,parent:p})})})};function Cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Or(t,e,n[e])})}return t}function Or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dr=f,Ar=S,Nr=R,xr=J,Ir=ke,Lr=vr,Tr=mt,zr=l,Rr=function(t,e,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?Sr(!1,"Replacing blocks is not supported."):Sr(!1));var o=n.getKey(),i=e.getKey();i===o&&("production"!==process.env.NODE_ENV?Sr(!1,"Block cannot be moved next to itself."):Sr(!1));var a=t.getBlockMap(),c=e instanceof br,s=[e],u=a.delete(i);c&&(s=[],u=a.withMutations(function(t){var n=e.getNextSiblingKey(),r=_r(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===i}).takeWhile(function(t){var e=t.getKey(),o=e===i,a=n&&e!==n,c=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||a||c)}).forEach(function(e){s.push(e),t.delete(e.getKey())})}));var l=u.toSeq().takeUntil(function(t){return t===n}),p=u.toSeq().skipUntil(function(t){return t===n}).skip(1),f=s.map(function(t){return[t.getKey(),t]}),d=Mr();if("before"===r){var h=t.getBlockBefore(o);h&&h.getKey()===e.getKey()&&("production"!==process.env.NODE_ENV?Sr(!1,"Block cannot be moved next to itself."):Sr(!1)),d=l.concat([].concat(f,[[o,n]]),p).toOrderedMap()}else if("after"===r){var y=t.getBlockAfter(o);y&&y.getKey()===i&&("production"!==process.env.NODE_ENV?Sr(!1,"Block cannot be moved next to itself."):Sr(!1)),d=l.concat([[o,n]].concat(f),p).toOrderedMap()}return t.merge({blockMap:kr(d,e,n,r,c),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},Br=tn("draft_tree_data_support"),Pr=Br?xr:Nr,Ur=zr.List,Fr=zr.Repeat,Kr={insertAtomicBlock:function(t,e,n){var r=t.getCurrentContent(),o=t.getSelection(),i=Ir.removeRange(r,o,"backward"),a=i.getSelectionAfter(),c=Ir.splitBlock(i,a),s=c.getSelectionAfter(),u=Ir.setBlockType(c,s,"atomic"),l=Ar.create({entity:e}),p={key:Tr(),type:"atomic",text:n,characterList:Ur(Fr(l,n.length))},f={key:Tr(),type:"unstyled"};Br&&(p=Cr({},p,{nextSibling:f.key}),f=Cr({},f,{prevSibling:p.key}));var d=[new Pr(p),new Pr(f)],h=Dr.createFromArray(d),y=Ir.replaceWithFragment(u,s,h),g=y.merge({selectionBefore:o,selectionAfter:y.getSelectionAfter().set("hasFocus",!0)});return Lr.push(t,g,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=Rr(i,e,c,r)}else{var s=Ir.removeRange(i,n,"backward"),u=s.getSelectionAfter(),l=s.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=Rr(s,e,l,"before");else if(u.getEndOffset()===l.getLength())o=Rr(s,e,l,"after");else{var p=Ir.splitBlock(s,u),f=p.getSelectionAfter(),d=p.getBlockForKey(f.getFocusKey());o=Rr(p,e,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return Lr.push(t,h,"move-block")}};var Yr=l.List,Hr=function(){function t(t){var e,n,r;r=void 0,(n="_decorators")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach(function(r,o){var i=0;(0,r.strategy)(t,function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(!function(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}(n,t,e,o+"."+i),i++)},e)}),Yr(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();var Qr=Hr;function qr(t){return t.replace(/\//g,"-")}var Wr=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(qr).join(" "):Array.prototype.map.call(arguments,qr).join(" ")},Zr=t,Vr=Wr,Gr=(0,l.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Zr.createElement("ul",{className:Vr("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:Zr.createElement("ol",{className:Vr("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Zr.createElement("pre",{className:Vr("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),Jr={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Xr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable;var eo=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))$r.call(n,a)&&(o[a]=n[a]);if(Xr){r=Xr(n);for(var c=0;c<r.length;c++)to.call(n,r[c])&&(o[r[c]]=n[r[c]])}}return o},no={exports:{}};!function(t,e){!function(n,r){var o="function",i="undefined",a="object",c="string",s="major",u="model",l="name",p="type",f="vendor",d="version",h="architecture",y="console",g="mobile",m="tablet",v="smarttv",b="wearable",_="embedded",w="Amazon",S="Apple",M="ASUS",E="BlackBerry",j="Browser",k="Chrome",C="Firefox",O="Google",D="Honor",A="Huawei",N="LG",x="Microsoft",I="Motorola",L="Nvidia",T="OnePlus",z="Opera",R="OPPO",B="Samsung",P="Sharp",U="Sony",F="Xiaomi",K="Zebra",Y="Facebook",H="Chromium OS",Q="Mac OS",q=" Browser",W=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},Z=function(t,e){return typeof t===c&&-1!==V(e).indexOf(V(t))},V=function(t){return t.toLowerCase()},G=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===i?t:t.substring(0,500)},J=function(t,e){for(var n,i,c,s,u,l,p=0;p<e.length&&!u;){var f=e[p],d=e[p+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(t))for(c=0;c<d.length;c++)l=u[++i],typeof(s=d[c])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):r:this[s[0]]=l?s[1].call(this,l,s[2]):r:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):r):this[s]=l||r;p+=2}},X=function(t,e){for(var n in e)if(typeof e[n]===a&&e[n].length>0){for(var o=0;o<e[n].length;o++)if(Z(e[n][o],t))return"?"===n?r:n}else if(Z(e[n],t))return"?"===n?r:n;return e.hasOwnProperty("*")?e["*"]:t},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},tt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+j],d],[/\bfocus\/([\w\.]+)/i],[d,[l,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,C]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+q],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,B+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,Y],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,k+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,X,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[h,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[h,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[h,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[h,/ower/,"",V]],[/ sun4\w[;\)]/i],[[h,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[h,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,B],[p,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,B],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,S],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,S],[p,m]],[/(macintosh);/i],[u,[f,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,P],[p,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[f,D],[p,m]],[/honor([-\w ]+)[;\)]/i],[u,[f,D],[p,g]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[f,A],[p,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,A],[p,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[f,F],[p,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[f,F],[p,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,R],[p,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[f,X,{OnePlus:["304","403","203"],"*":R}],[p,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[p,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,I],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,I],[p,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,N],[p,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,N],[p,g]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[f,"Lenovo"],[p,m]],[/(nokia) (t[12][01])/i],[f,u,[p,m]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[p,g],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[f,O],[p,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,O],[p,g]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,U],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,U],[p,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,T],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[p,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[p,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,E],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,M],[p,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,M],[p,g]],[/(nexus 9)/i],[u,[f,"HTC"],[p,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[p,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[f,"TCL"],[p,m]],[/(itel) ((\w+))/i],[[f,V],u,[p,X,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[p,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[p,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[f,"Ulefone"],[p,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[f,"Energizer"],[p,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[f,"Cat"],[p,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[f,"Smartfren"],[p,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[f,"Nothing"],[p,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[f,"Archos"],[p,m]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[f,"Archos"],[p,g]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,u,[p,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[p,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[p,m]],[/(surface duo)/i],[u,[f,x],[p,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[p,g]],[/(u304aa)/i],[u,[f,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[p,m]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[p,m]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[p,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[p,m]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[p,m]],[/\b(k88) b/i],[u,[f,"ZTE"],[p,m]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[p,m]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[p,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[p,m]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[p,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[p,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[p,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[p,m]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[p,m]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[p,m]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[f,L],[p,m]],[/(sprint) (\w+)/i],[f,u,[p,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,x],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,K],[p,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,K],[p,g]],[/smart-tv.+(samsung)/i],[f,[p,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,B],[p,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,N],[p,v]],[/(apple) ?tv/i],[f,[u,S+" TV"],[p,v]],[/crkey/i],[[u,k+"cast"],[f,O],[p,v]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,w],[p,v]],[/(shield \w+ tv)/i],[u,[f,L],[p,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,P],[p,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,U],[p,v]],[/(mi(tv|box)-?\w+) bui/i],[u,[f,F],[p,v]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[p,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,G],[u,G],[p,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[p,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[p,y]],[/droid.+; (shield)( bui|\))/i],[u,[f,L],[p,y]],[/(playstation \w+)/i],[u,[f,U],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,x],[p,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[f,B],[p,b]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,u,[p,b]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[f,R],[p,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,S],[p,b]],[/(opwwe\d{3})/i],[u,[f,T],[p,b]],[/(moto 360)/i],[u,[f,I],[p,b]],[/(smartwatch 3)/i],[u,[f,U],[p,b]],[/(g watch r)/i],[u,[f,N],[p,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,K],[p,b]],[/droid.+; (glass) \d/i],[u,[f,O],[p,b]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,u,[p,b]],[/; (quest( \d| pro)?)/i],[u,[f,Y],[p,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,_]],[/(aeobc)\b/i],[u,[f,w],[p,_]],[/(homepod).+mac os/i],[u,[f,S],[p,_]],[/windows iot/i],[[p,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[p,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,X,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,X,$],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,E]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,H],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},et=function(t,e){if(typeof t===a&&(e=t,t=r),!(this instanceof et))return new et(t,e).getResult();var y=typeof n!==i&&n.navigator?n.navigator:r,v=t||(y&&y.userAgent?y.userAgent:""),b=y&&y.userAgentData?y.userAgentData:r,_=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(tt,e):tt,w=y&&y.userAgent==v;return this.getBrowser=function(){var t={};return t[l]=r,t[d]=r,J.call(t,v,_.browser),t[s]=function(t){return typeof t===c?t.replace(/[^\d\.]/g,"").split(".")[0]:r}(t[d]),w&&y&&y.brave&&typeof y.brave.isBrave==o&&(t[l]="Brave"),t},this.getCPU=function(){var t={};return t[h]=r,J.call(t,v,_.cpu),t},this.getDevice=function(){var t={};return t[f]=r,t[u]=r,t[p]=r,J.call(t,v,_.device),w&&!t[p]&&b&&b.mobile&&(t[p]=g),w&&"Macintosh"==t[u]&&y&&typeof y.standalone!==i&&y.maxTouchPoints&&y.maxTouchPoints>2&&(t[u]="iPad",t[p]=m),t},this.getEngine=function(){var t={};return t[l]=r,t[d]=r,J.call(t,v,_.engine),t},this.getOS=function(){var t={};return t[l]=r,t[d]=r,J.call(t,v,_.os),w&&!t[l]&&b&&b.platform&&"Unknown"!=b.platform&&(t[l]=b.platform.replace(/chrome os/i,H).replace(/macos/i,Q)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(t){return v=typeof t===c&&t.length>500?G(t,500):t,this},this.setUA(v),this};et.VERSION="0.7.41",et.BROWSER=W([l,d,s]),et.CPU=W([h]),et.DEVICE=W([u,f,p,y,g,v,m,b,_]),et.ENGINE=et.OS=W([l,d]),t.exports&&(e=t.exports=et),e.UAParser=et;var nt=typeof n!==i&&(n.jQuery||n.Zepto);if(nt&&!nt.ua){var rt=new et;nt.ua=rt.getResult(),nt.ua.get=function(){return rt.getUA()},nt.ua.set=function(t){rt.setUA(t);var e=rt.getResult();for(var n in e)nt.ua[n]=e[n]}}}("object"==typeof window?window:r)}(no,no.exports);var ro="Unknown",oo={"Mac OS":"Mac OS X"};var io,ao=(new(0,no.exports)).getResult(),co=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(ao.browser.version),so={browserArchitecture:ao.cpu.architecture||ro,browserFullVersion:ao.browser.version||ro,browserMinorVersion:co.minor||ro,browserName:ao.browser.name||ro,browserVersion:ao.browser.major||ro,deviceName:ao.device.model||ro,engineName:ao.engine.name||ro,engineVersion:ao.engine.version||ro,platformArchitecture:ao.cpu.architecture||ro,platformName:(io=ao.os.name,oo[io]||io||ro),platformVersion:ao.os.version||ro,platformFullVersion:ao.os.version||ro},uo=st,lo=/\./,po=/\|\|/,fo=/\s+\-\s+/,ho=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,yo=/^(\d*)(.*)/;function go(t,e){var n=t.split(po);return n.length>1?n.some(function(t){return Co.contains(t,e)}):function(t,e){var n=t.split(fo);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?uo(!1,'the "-" operator expects exactly 2 operands'):uo(!1)),1===n.length)return mo(n[0],e);var r=n[0],o=n[1];return So(r)&&So(o)||("production"!==process.env.NODE_ENV?uo(!1,'operands to the "-" operator must be simple (no modifiers)'):uo(!1)),mo(">="+r,e)&&mo("<="+o,e)}(t=n[0].trim(),e)}function mo(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(lo),o=_o(t),i=o.modifier,a=o.rangeComponents;switch(i){case"<":return vo(r,a);case"<=":return-1===(n=ko(r,a))||0===n;case">=":return bo(r,a);case">":return function(t,e){return 1===ko(t,e)}(r,a);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);wo(i)&&(r[o]=i+1+"");return bo(t,n)&&vo(t,r)}(r,a);default:return function(t,e){return 0===ko(t,e)}(r,a)}}function vo(t,e){return-1===ko(t,e)}function bo(t,e){var n=ko(t,e);return 1===n||0===n}function _o(t){var e=t.split(lo),n=e[0].match(ho);return n||("production"!==process.env.NODE_ENV?uo(!1,"expected regex to match but it did not"):uo(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function wo(t){return!isNaN(t)&&isFinite(t)}function So(t){return!_o(t).modifier}function Mo(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function Eo(t,e){var n=t.match(yo)[1],r=e.match(yo)[1],o=parseInt(n,10),i=parseInt(r,10);return wo(o)&&wo(i)&&o!==i?jo(o,i):jo(t,e)}function jo(t,e){return typeof t!=typeof e&&("production"!==process.env.NODE_ENV?uo(!1,'"a" and "b" must be of the same type'):uo(!1)),t>e?1:t<e?-1:0}function ko(t,e){for(var n=function(t,e){Mo(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var o=n;o<t.length;o++)t[o]="0"}return Mo(e,t.length),[t,e]}(t,e),r=n[0],o=n[1],i=0;i<o.length;i++){var a=Eo(r[i],o[i]);if(a)return a}return 0}var Co={contains:function(t,e){return go(t.trim(),e.trim())}},Oo=Co,Do=Object.prototype.hasOwnProperty;var Ao=function(t,e,n){if(!t)return null;var r={};for(var o in t)Do.call(t,o)&&(r[o]=e.call(n,t[o],o,t));return r};var No=so,xo=Oo;function Io(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var o=n.slice(t.length);return!!e&&(o=r?r(o):o,xo.contains(o,e))}function Lo(t){return"Windows"===No.platformName?t.replace(/^\s*NT/,""):t}var To=Ao({isBrowser:function(t){return Io(No.browserName,No.browserFullVersion,t)},isBrowserArchitecture:function(t){return Io(No.browserArchitecture,null,t)},isDevice:function(t){return Io(No.deviceName,null,t)},isEngine:function(t){return Io(No.engineName,No.engineVersion,t)},isPlatform:function(t){return Io(No.platformName,No.platformFullVersion,t,Lo)},isPlatformArchitecture:function(t){return Io(No.platformArchitecture,null,t)}},function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}});var zo=function(t){return t&&t.ownerDocument?t.ownerDocument:document};var Ro=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE},Bo=Ro;var Po=function t(e){if(Bo(e)){var n=e,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=t(n.childNodes[o]);if(i)return i}}return null},Uo=zo,Fo=Po;var Ko=function(t){for(var e=t;e&&e!==Uo(t).documentElement;){var n=Fo(e);if(null!=n)return n;e=e.parentNode}return null};var Yo=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window};function Ho(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qo=To,qo=Ko,Wo=Yo,Zo=st,Vo=Gn,Go=l.Map,Jo={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Xo=Qo.isBrowser("IE <= 11"),$o=function(){function t(t){var e=this;Ho(this,"observer",void 0),Ho(this,"container",void 0),Ho(this,"mutations",void 0),Ho(this,"onCharData",void 0),this.container=t,this.mutations=Go();var n=Wo(t);n.MutationObserver&&!Xo?this.observer=new n.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||("production"!==process.env.NODE_ENV?Zo(!1,"Expected target to be an instance of Node"):Zo(!1)),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,Jo):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=Go(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,r=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return Xo?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=Vo(qo(t.target));this.mutations=this.mutations.set(n,e)}},t}(),ti="-",ei={encode:function(t,e,n){return t+ti+e+ti+n},decode:function(t){var e=t.split(ti).reverse(),n=e[0],r=e[1];return{blockKey:e.slice(2).reverse().join(ti),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},ni={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},ri={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var oi=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)},ii=st,ai=oi;var ci=function(t){var e=t.editorContainer;return e||("production"!==process.env.NODE_ENV?ii(!1,"Missing editorNode"):ii(!1)),ai(e.firstChild)||("production"!==process.env.NODE_ENV?ii(!1,"editorNode.firstChild is not an HTMLElement"):ii(!1)),e.firstChild},si=ei,ui=Gn;var li=function(t,e,n,r,o){var i=ui(t.getSelection());if(!e||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,t.toJS()),i;var a=si.decode(e),c=a.blockKey,s=t.getBlockTree(c),u=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),l=si.decode(r),p=l.blockKey,f=t.getBlockTree(p),d=f&&f.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,t.toJS()),i;var h=u.get("start"),y=d.get("start"),g=u?h+n:null,m=d?y+o:null;if(i.getAnchorKey()===c&&i.getAnchorOffset()===g&&i.getFocusKey()===p&&i.getFocusOffset()===m)return i;var v=!1;if(c===p){var b=u.get("end"),_=d.get("end");v=y===h&&_===b?o<n:y<h}else{v=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===p}).first()===p}return i.merge({anchorKey:c,anchorOffset:g,focusKey:p,focusOffset:m,isBackward:v})},pi=Ko,fi=Po,di=li,hi=st,yi=Ro,gi=Gn;function mi(t,e,n){var r=e,o=pi(r);(null!=o||t&&(t===r||t.firstChild===r)||("production"!==process.env.NODE_ENV?hi(!1,"Unknown node in selection range."):hi(!1)),t===r)&&(r=r.firstChild,yi(r)||("production"!==process.env.NODE_ENV?hi(!1,"Invalid DraftEditorContents node."):hi(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?hi(!1,"Invalid DraftEditorContents structure."):hi(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(t){for(;t.firstChild&&(yi(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||fi(t.firstChild));)t=t.firstChild;return t}(r);i=gi(fi(a))}return{key:i,offset:0}}var c=r.childNodes[n-1],s=null,u=null;if(fi(c)){var l=function(t){for(;t.lastChild&&(yi(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||fi(t.lastChild));)t=t.lastChild;return t}(c);s=gi(fi(l)),u=vi(l)}else s=gi(o),u=vi(c);return{key:s,offset:u}}function vi(t){var e=t.textContent;return"\n"===e?0:e.length}var bi=function(t,e,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,c=o.nodeType===Node.TEXT_NODE;if(a&&c)return{selectionState:di(t,gi(pi(n)),r,gi(pi(o)),i),needsRecovery:!1};var s=null,u=null,l=!0;return a?(s={key:gi(pi(n)),offset:r},u=mi(e,o,i)):c?(u={key:gi(pi(o)),offset:i},s=mi(e,n,r)):(s=mi(e,n,r),u=mi(e,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:di(t,s.key,s.offset,u.key,u.offset),needsRecovery:l}},_i=bi;var wi=function(t,e){var n=e.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:_i(t,e,r,o,i,a)},Si=ri,Mi=vr,Ei=ci,ji=wi;var ki=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();Si.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var n=t.props.editorState,r=ji(n,Ei(t)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?Mi.forceSelection(n,o):Mi.acceptSelection(n,o),t.update(n))}};var Ci={notEmptyKey:function(t){return null!=t&&""!=t}},Oi=Ci.notEmptyKey;function Di(t,e){return Oi(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}var Ai=function(t,e){var n;if(e.isCollapsed()){var r=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(n=t.getBlockForKey(r).getEntityAt(o-1))!==t.getBlockForKey(r).getEntityAt(o)?null:Di(t.getEntityMap(),n):null}var i=e.getStartKey(),a=e.getStartOffset(),c=t.getBlockForKey(i);return n=a===c.getLength()?null:c.getEntityAt(a),Di(t.getEntityMap(),n)},Ni=$o,xi=ke,Ii=ei,Li=vr,Ti=ni,zi=ki,Ri=ci,Bi=wi,Pi=Ai,Ui=Gn,Fi=To.isBrowser("IE"),Ki=!1,Yi=!1,Hi=null;var Qi,qi,Wi={onCompositionStart:function(t){Yi=!0,function(t){Hi||(Hi=new Ni(Ri(t))).start()}(t)},onCompositionEnd:function(t){Ki=!1,Yi=!1,setTimeout(function(){Ki||Wi.resolveComposition(t)},20)},onSelect:zi,onKeyDown:function(t,e){if(!Yi)return Wi.resolveComposition(t),void t._onKeyDown(e);e.which!==Ti.RIGHT&&e.which!==Ti.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===Ti.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!Yi){var e=Ui(Hi).stopAndFlushMutations();Hi=null,Ki=!0;var n=Li.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach(function(t,e){var o=Ii.decode(e),i=o.blockKey,a=o.decoratorKey,c=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",c]),u=s.start,l=s.end,p=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),f=Pi(r,p),d=r.getBlockForKey(i).getInlineStyleAt(u);r=xi.replaceText(r,p,t,d,f),n=Li.set(n,{currentContent:r})});var o=Bi(n,Ri(t)).selectionState;t.restoreEditorDOM();var i=Fi?Li.forceSelection(n,o):Li.acceptSelection(n,o);t.update(Li.push(i,r,"insert-characters"))}else t.update(n)}}},Zi=Wi;function Vi(){if(qi)return Qi;qi=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}var r=ei,o=t,i=Yn,a=xn,c=function(t){var e,c;function s(){return t.apply(this,arguments)||this}return c=t,(e=s).prototype=Object.create(c.prototype),e.prototype.constructor=e,e.__proto__=c,s.prototype.render=function(){var t=this.props,e=t.block,c=t.children,s=t.contentState,u=t.decorator,l=t.decoratorKey,p=t.direction,f=t.leafSet,d=t.text,h=e.getKey(),y=f.get("leaves"),g=u.getComponentForKey(l),m=u.getPropsForKey(l),v=r.encode(h,parseInt(l,10),0),b=d.slice(y.first().get("start"),y.last().get("end")),_=a.getHTMLDirIfDifferent(i.getDirection(b),p);return o.createElement(g,n({},m,{contentState:s,decoratedText:b,dir:_,key:v,entityKey:e.getEntityAt(f.get("start")),offsetKey:v}),c)},s}(o.Component);return Qi=c}function Gi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xi=t,$i=st,ta=Ro,ea=To.isBrowser("IE <= 11");var na=function(t){var e,n;function r(e){var n;return Ji(Gi(n=t.call(this,e)||this),"_forceFlag",void 0),Ji(Gi(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;ta(e)||("production"!==process.env.NODE_ENV?$i(!1,"node is not an Element"):$i(!1));var r=e;return n?!function(t){return ea?"\n"===t.textContent:"BR"===t.tagName}(r):r.textContent!==t.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},ea?Xi.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):Xi.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return ea?Xi.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):Xi.createElement("br",{key:"B","data-text":"true",ref:t})}(function(t){return e._node=t}):Xi.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},r}(Xi.Component),ra=na,oa=Ro;var ia=function(t){return!(!t||!t.ownerDocument)&&(oa(t)&&"BR"===t.nodeName)},aa={initODS:function(){},handleExtensionCausedError:function(){}};var ca=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))};var sa=function(t){return ca(t)&&3==t.nodeType};var ua=function t(e,n){return!(!e||!n)&&(e===n||!sa(e)&&(sa(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))};var la=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}},pa=aa,fa=ri,da=ua,ha=la,ya=zo,ga=st,ma=Ro,va=To.isBrowser("IE");function ba(t,e){if(!t)return"[empty]";var n=_a(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(ma(n)||("production"!==process.env.NODE_ENV?ga(!1,"Node must be an Element if it is not a text node."):ga(!1)),n.outerHTML)}function _a(t,e){var n=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var r=t.textContent.length;return ya(t).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=t.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=t.childNodes,a=0;a<i.length;a++)o.appendChild(_a(i[a],e));return o}function wa(t,e){for(var n=t,r=n;n;){if(ma(n)&&r.hasAttribute("contenteditable"))return ba(n,e);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function Sa(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function Ma(t,e,n,r){var o=ha();if(t.extend&&null!=e&&da(o,e)){n>Sa(e)&&fa.logSelectionStateFailure({anonymizedDom:wa(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(a){throw fa.logSelectionStateFailure({anonymizedDom:wa(e,function(e){var n=[];return e===o&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:i,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var a=t.getRangeAt(0);a.setEnd(e,n),t.addRange(a.cloneRange())}}function Ea(t,e,n,r){var o=ya(e).createRange();if(n>Sa(e)&&(fa.logSelectionStateFailure({anonymizedDom:wa(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),pa.handleExtensionCausedError()),o.setStart(e,n),va)try{t.addRange(o)}catch(t){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",t)}else t.addRange(o)}var ja=eo;var ka,Ca,Oa=ra,Da=t,Aa=st,Na=ia,xa=function(t,e,n,r,o){var i=ya(e);if(da(i.documentElement,e)){var a=i.defaultView.getSelection(),c=t.getAnchorKey(),s=t.getAnchorOffset(),u=t.getFocusKey(),l=t.getFocusOffset(),p=t.getIsBackward();if(!a.extend&&p){var f=c,d=s;c=u,s=l,u=f,l=d,p=!1}var h=c===n&&r<=s&&o>=s,y=u===n&&r<=l&&o>=l;if(h&&y)return a.removeAllRanges(),Ea(a,e,s-r,t),void Ma(a,e,l-r,t);if(p){if(y&&(a.removeAllRanges(),Ea(a,e,l-r,t)),h){var g=a.focusNode,m=a.focusOffset;a.removeAllRanges(),Ea(a,e,s-r,t),Ma(a,g,m,t)}}else h&&(a.removeAllRanges(),Ea(a,e,s-r,t)),y&&Ma(a,e,l-r,t)}},Ia=function(t){var e,n;function r(){for(var e,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a))||this,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,r=e.start,o=e.text,i=n.getKey(),a=r+o.length;if(t.hasEdgeWithin(i,r,a)){var c=this.leaf;c||("production"!==process.env.NODE_ENV?Aa(!1,"Missing node"):Aa(!1));var s,u=c.firstChild;u||("production"!==process.env.NODE_ENV?Aa(!1,"Missing child"):Aa(!1)),u.nodeType===Node.TEXT_NODE?s=u:Na(u)?s=c:(s=u.firstChild)||("production"!==process.env.NODE_ENV?Aa(!1,"Missing targetNode"):Aa(!1)),xa(t,s,i,r,a)}}},o.shouldComponentUpdate=function(t){var e=this.leaf;return e||("production"!==process.env.NODE_ENV?Aa(!1,"Missing leafNode"):Aa(!1)),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var t=this,e=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,c=r.styleSet,s=c.reduce(function(t,e){var n={},r=o[e];return void 0!==r&&t.textDecoration!==r.textDecoration&&(n.textDecoration=[t.textDecoration,r.textDecoration].join(" ").trim()),ja(t,r,n)},{});if(i){var u=i(c,e);s=ja(s,u)}return Da.createElement("span",{"data-offset-key":a,ref:function(e){return t.leaf=e},style:s},Da.createElement(Oa,null,n))},r}(Da.Component),La=Ia;function Ta(){if(Ca)return ka;Ca=1;var e=Vi(),n=La,r=ei,o=t,i=Wr;l.List;var a=function(t){var a,c;function s(){return t.apply(this,arguments)||this}return c=t,(a=s).prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c,s.prototype.render=function(){var t=this.props,a=t.block,c=t.contentState,s=t.customStyleFn,u=t.customStyleMap,l=t.decorator,p=t.direction,f=t.forceSelection,d=t.hasSelection,h=t.selection,y=t.tree,g=a.getKey(),m=a.getText(),v=y.size-1,b=this.props.children||y.map(function(t,i){var y=t.get("decoratorKey"),b=t.get("leaves"),_=b.size-1,w=b.map(function(t,e){var c=r.encode(g,i,e),l=t.get("start"),p=t.get("end");return o.createElement(n,{key:c,offsetKey:c,block:a,start:l,selection:d?h:null,forceSelection:f,text:m.slice(l,p),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:s,isLast:y===v&&e===_})}).toArray();return y&&l?o.createElement(e,{block:a,children:w,contentState:c,decorator:l,decoratorKey:y,direction:p,leafSet:t,text:m,key:i}):w}).toArray();return o.createElement("div",{"data-offset-key":r.encode(g,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},s}(o.Component);return ka=a}function za(t,e){return!!e&&(t===e.documentElement||t===e.body)}var Ra={getTop:function(t){var e=t.ownerDocument;return za(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var n=t.ownerDocument;za(t,n)?n.body.scrollTop=n.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return za(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var n=t.ownerDocument;za(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=e:t.scrollLeft=e}},Ba=/-(.)/g;var Pa=/([A-Z])/g;var Ua=function(t){return t.replace(Ba,function(t,e){return e.toUpperCase()})},Fa=function(t){return t.replace(Pa,"-$1").toLowerCase()};function Ka(t){return null==t?t:String(t)}var Ya=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return Ka(n.getPropertyValue(Fa(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return Ka(n.getPropertyValue(Fa(e)));if("display"===e)return"none"}return t.currentStyle?Ka("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[Ua(e)]):Ka(t.style&&t.style[Ua(e)])};function Ha(t,e){var n=Qa.get(t,e);return"auto"===n||"scroll"===n}var Qa={get:Ya,getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(Ha(t,"overflow")||Ha(t,"overflowY")||Ha(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}},qa=Qa,Wa=ua;var Za=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!Wa(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}};var Va=function(t){var e=Za(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}},Ga="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Ja=function(t){return(t=t||document).scrollingElement?t.scrollingElement:Ga||"CSS1Compat"!==t.compatMode?t.body:t.documentElement},Xa=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}};var $a=function(t){var e=Ja(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=Xa(t),r=t===e?t.ownerDocument.documentElement:t,o=t.scrollWidth-r.clientWidth,i=t.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function tc(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function ec(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function nc(){return{width:window.innerWidth||tc(),height:window.innerHeight||ec()}}nc.withoutScrollbars=function(){return{width:tc(),height:ec()}};var rc,oc,ic,ac,cc=nc;function sc(){if(oc)return rc;oc=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=Ta(),a=ei,c=t,s=Ra,u=qa,p=Va,f=$a,d=cc,h=st,y=oi;l.List;var g=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},m=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),r=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:r}},v=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},b=function(t,e,n,o,i,a){var c={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:a},s=o(t);return s&&(c.className=s),void 0!==i.customEditable&&(c=r({},c,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),c},_=function(t){var e,l;function _(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(r))||this),"wrapperRef",c.createRef()),e}l=t,(e=_).prototype=Object.create(l.prototype),e.prototype.constructor=e,e.__proto__=l;var w=_.prototype;return w.shouldComponentUpdate=function(t){var e=this.props,n=e.block,r=e.direction,o=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||o!==t.tree||r!==t.direction||g(t.selection,t.block.getKey())&&t.forceSelection;return i||a},w.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=u.getScrollParent(n),i=f(o);if(o===window){var a=p(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{y(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var c=n;(r=c.offsetHeight+c.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},w.render=function(){var t=this,e=this.props,o=e.block,s=e.blockRenderMap,u=e.blockRendererFn,l=e.blockStyleFn,p=e.contentState,f=e.decorator,d=e.editorKey,h=e.editorState,y=e.customStyleFn,w=e.customStyleMap,S=e.direction,M=e.forceSelection,E=e.selection,j=e.tree,k=null;o.children.size&&(k=o.children.reduce(function(e,n){var o=a.encode(n,0,0),i=p.getBlockForKey(n),f=v(i,u),y=f.CustomComponent||_,g=m(i,s),w=g.Element,S=g.wrapperTemplate,M=b(i,d,o,l,f,null),E=r({},t.props,{tree:h.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:i});return e.push(c.createElement(w,M,c.createElement(y,E))),!S||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(i,p)||function(t,e,n){var r=[],o=!0,i=!1,s=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var p=u.value;if(p.type!==e)break;r.push(p)}}catch(t){i=!0,s=t}finally{try{o||null==l.return||l.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(c.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},f))}(S,w,e),e},[]));var C=o.getKey(),O=a.encode(C,0,0),D=v(o,u),A=D.CustomComponent,N=null!=A?c.createElement(A,n({},this.props,{tree:h.getBlockTree(C),blockProps:D.customProps,offsetKey:O,block:o})):c.createElement(i,{block:o,children:k,contentState:p,customStyleFn:y,customStyleMap:w,decorator:f,direction:S,forceSelection:M,hasSelection:g(E,C),selection:E,tree:j});if(o.getParentKey())return N;var x=m(o,s).Element,I=b(o,d,O,l,D,this.wrapperRef);return c.createElement(x,I,N)},_}(c.Component);return rc=_}var uc=eo;function lc(){return lc=uc||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lc.apply(this,arguments)}var pc,fc,dc,hc,yc=La,gc=ei,mc=t,vc=Ra,bc=qa,_c=Yn,wc=xn,Sc=Wr,Mc=Va,Ec=$a,jc=cc,kc=st,Cc=oi,Oc=Gn,Dc=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},Ac=function(t){var e,n;function r(){for(var e,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a))||this,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||Dc(t.selection,t.block.getKey())&&t.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=bc.getScrollParent(n),i=Ec(o);if(o===window){var a=Mc(n);(r=a.y+a.height-jc().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{Cc(n)||("production"!==process.env.NODE_ENV?kc(!1,"blockNode is not an HTMLElement"):kc(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&vc.setTop(o,vc.getTop(o)+r+10)}}}}},o._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),r=e.getText(),o=this.props.tree.size-1,i=Dc(this.props.selection,n);return this.props.tree.map(function(a,c){var s=a.get("leaves");if(0===s.size)return null;var u=s.size-1,l=s.map(function(a,s){var l=gc.encode(n,c,s),p=a.get("start"),f=a.get("end");return mc.createElement(yc,{key:l,offsetKey:l,block:e,start:p,selection:i?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(p,f),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:c===o&&s===u})}).toArray(),p=a.get("decoratorKey");if(null==p)return l;if(!t.props.decorator)return l;var f=Oc(t.props.decorator),d=f.getComponentForKey(p);if(!d)return l;var h=f.getPropsForKey(p),y=gc.encode(n,c,0),g=s.first().get("start"),m=s.last().get("end"),v=r.slice(g,m),b=e.getEntityAt(a.get("start")),_=wc.getHTMLDirIfDifferent(_c.getDirection(v),t.props.direction),w={contentState:t.props.contentState,decoratedText:v,dir:_,start:g,end:m,blockKey:n,entityKey:b,offsetKey:y};return mc.createElement(d,lc({},h,w,{key:y}),l)}).toArray()},o.render=function(){var t=this,e=this.props,n=e.direction,r=e.offsetKey,o=Sc({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return mc.createElement("div",{"data-offset-key":r,className:o,ref:function(e){return t._node=e}},this._renderChildren())},r}(mc.Component),Nc=Ac;var xc=tn("draft_tree_data_support")?function(){if(ac)return ic;ac=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}var r=sc(),o=ei,i=t,a=Gn,c=function(t){var e,c;function s(){return t.apply(this,arguments)||this}c=t,(e=s).prototype=Object.create(c.prototype),e.prototype.constructor=e,e.__proto__=c;var u=s.prototype;return u.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),c=n.getCurrentContent(),s=e.getDecorator(),u=n.getDecorator();return o!==i||a!==c||s!==u||n.mustForceSelection()},u.render=function(){for(var t=this.props,e=t.blockRenderMap,c=t.blockRendererFn,s=t.blockStyleFn,u=t.customStyleMap,l=t.customStyleFn,p=t.editorState,f=t.editorKey,d=t.textDirectionality,h=p.getCurrentContent(),y=p.getSelection(),g=p.mustForceSelection(),m=p.getDecorator(),v=a(p.getDirectionMap()),b=[],_=h.getBlocksAsArray()[0];_;){var w=_.getKey(),S={blockRenderMap:e,blockRendererFn:c,blockStyleFn:s,contentState:h,customStyleFn:l,customStyleMap:u,decorator:m,editorKey:f,editorState:p,forceSelection:g,selection:y,block:_,direction:d||v.get(w),tree:p.getBlockTree(w)},M=(e.get(_.getType())||e.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:w},S)),wrapperTemplate:M,key:w,offsetKey:o.encode(w,0,0)});var E=_.getNextSiblingKey();_=E?h.getBlockForKey(E):null}for(var j=[],k=0;k<b.length;){var C=b[k];if(C.wrapperTemplate){var O=[];do{O.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===C.wrapperTemplate);var D=i.cloneElement(C.wrapperTemplate,{key:C.key+"-wrap","data-offset-key":C.offsetKey},O);j.push(D)}else j.push(C.block),k++}return i.createElement("div",{"data-contents":"true"},j)},s}(i.Component);return ic=c}():function(){if(hc)return dc;hc=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=Nc,a=ei,c=t,s=Wr,u=(fc||(fc=1,pc=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(e=(e?e+" ":"")+o)}return e}),pc),l=Gn,p=function(t,e,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(t){var e,o;function s(){return t.apply(this,arguments)||this}o=t,(e=s).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o;var f=s.prototype;return f.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),c=n.getCurrentContent(),s=e.getDecorator(),u=n.getDecorator();return o!==i||a!==c||s!==u||n.mustForceSelection()},f.render=function(){for(var t=this.props,e=t.blockRenderMap,o=t.blockRendererFn,s=t.blockStyleFn,f=t.customStyleMap,d=t.customStyleFn,h=t.editorState,y=t.editorKey,g=t.preventScroll,m=t.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),_=h.mustForceSelection(),w=h.getDecorator(),S=l(h.getDirectionMap()),M=v.getBlocksAsArray(),E=[],j=null,k=null,C=0;C<M.length;C++){var O=M[C],D=O.getKey(),A=O.getType(),N=o(O),x=void 0,I=void 0,L=void 0;N&&(x=N.component,I=N.props,L=N.editable);var T=m||S.get(D),z=a.encode(D,0,0),R={contentState:v,block:O,blockProps:I,blockStyleFn:s,customStyleMap:f,customStyleFn:d,decorator:w,direction:T,forceSelection:_,offsetKey:z,preventScroll:g,selection:b,tree:h.getBlockTree(D)},B=e.get(A)||e.get("unstyled"),P=B.wrapper,U=B.element||e.get("unstyled").element,F=O.getDepth(),K="";if(s&&(K=s(O)),"li"===U)K=u(K,p(A,F,k!==P||null===j||F>j,T));var Y=x||i,H={className:K,"data-block":!0,"data-editor":y,"data-offset-key":z,key:D};void 0!==L&&(H=r({},H,{contentEditable:L,suppressContentEditableWarning:!0}));var Q=c.createElement(U,H,c.createElement(Y,n({},R,{key:D})));E.push({block:Q,wrapperTemplate:P,key:D,offsetKey:z}),j=P?O.getDepth():null,k=P}for(var q=[],W=0;W<E.length;){var Z=E[W];if(Z.wrapperTemplate){var V=[];do{V.push(E[W].block),W++}while(W<E.length&&E[W].wrapperTemplate===Z.wrapperTemplate);var G=c.cloneElement(Z.wrapperTemplate,{key:Z.key+"-wrap","data-offset-key":Z.offsetKey},V);q.push(G)}else q.push(Z.block),W++}return c.createElement("div",{"data-contents":"true"},q)},s}(c.Component);return dc=f}(),Ic={isImage:function(t){return"image"===Lc(t)[0]},isJpeg:function(t){var e=Lc(t);return Ic.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};function Lc(t){return t.split("/")}var Tc=Ic,zc=st;var Rc=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&("production"!==process.env.NODE_ENV?zc(!1,"toArray: Array-like object expected"):zc(!1)),"number"!=typeof e&&("production"!==process.env.NODE_ENV?zc(!1,"toArray: Object needs a length property"):zc(!1)),0===e||e-1 in t||("production"!==process.env.NODE_ENV?zc(!1,"toArray: Object should have keys for indices"):zc(!1)),"function"==typeof t.callee&&("production"!==process.env.NODE_ENV?zc(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):zc(!1)),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}(t):[t]};function Bc(t){return function(){return t}}var Pc=function(){};Pc.thatReturns=Bc,Pc.thatReturnsFalse=Bc(!1),Pc.thatReturnsTrue=Bc(!0),Pc.thatReturnsNull=Bc(null),Pc.thatReturnsThis=function(){return this},Pc.thatReturnsArgument=function(t){return t};var Uc=Pc,Fc=Tc,Kc=Rc,Yc=Uc,Hc=new RegExp("\r\n","g"),Qc={"text/rtf":1,"text/html":1};function qc(t){if("file"==t.kind)return t.getAsFile()}var Wc=function(){function t(t){this.data=t,this.types=t.types?Kc(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(t){return Qc[t]})},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(Hc,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some(function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some(function(t){return-1!=t.indexOf("application/x-moz-file")});if(t)return!0;for(var e=this.getFiles(),n=0;n<e.length;n++){var r=e[n].type;if(!Fc.isImage(r))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(qc).filter(Yc.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}(),Zc=Wc,Vc=st,Gc=/\.textClipping$/,Jc={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Xc=function(t,e){var n=0,o=[];t.forEach(function(i){!function(t,e){if(!r.FileReader||t.type&&!(t.type in Jc))return void e("");if(""===t.type){var n="";return Gc.test(t.name)&&(n=t.name.replace(Gc,"")),void e(n)}var o=new FileReader;o.onload=function(){var t=o.result;"string"!=typeof t&&("production"!==process.env.NODE_ENV?Vc(!1,'We should be calling "FileReader.readAsText" which returns a string'):Vc(!1)),e(t)},o.onerror=function(){e("")},o.readAsText(t)}(i,function(r){n++,r&&o.push(r.slice(0,5e3)),n==t.length&&e(o.join("\r"))})})};var $c=function(t){return"handled"===t||!0===t},ts=Zc,es=ke,ns=vr,rs=Ko,os=zo,is=Xc,as=li,cs=Yo,ss=$c,us=Gn;function ls(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:cs(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function ps(t,e,n){var r=es.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return ns.push(t,r,"insert-fragment")}var fs={onDragEnd:function(t){t.exitCurrentMode(),ls(t)},onDrop:function(t,e){var n=new ts(e.nativeEvent.dataTransfer),r=t._latestEditorState,o=function(t,e){var n=null,r=null,o=os(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=us(n),r=us(r);var a=us(rs(n));return as(e,a,r,a,r)}(e.nativeEvent,r);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(t.props.handleDroppedFiles&&ss(t.props.handleDroppedFiles(o,i)))return;is(i,function(e){e&&t.update(ps(r,o,e))})}else{var a=t._internalDrag?"internal":"external";t.props.handleDrop&&ss(t.props.handleDrop(o,n,a))||(t._internalDrag?t.update(function(t,e){var n=es.moveText(t.getCurrentContent(),t.getSelection(),e);return ns.push(t,n,"insert-fragment")}(r,o)):t.update(ps(r,o,n.getText()))),ls(t)}}}};var ds=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some(function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return o===e&&(i=!0,!0)})}),i};!function(t){if(!t.setImmediate){var e,n,r,o,i,a=1,c={},s=!1,u=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?e=function(t){process.nextTick(function(){f(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){f(t.data)},e=function(t){r.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,e=function(t){var e=u.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):e=function(t){setTimeout(f,0,t)}:(o="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),e=function(e){t.postMessage(o+e,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:t,args:n};return c[a]=o,e(a),a++},l.clearImmediate=p}function p(t){delete c[t]}function f(t){if(s)setTimeout(f,0,t);else{var e=c[t];if(e){s=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),s=!1}}}}}("undefined"==typeof self?r:self);var hs=r.setImmediate,ys=ke,gs=vr,ms=Ai,vs=$c,bs=ds,_s=Gn,ws=hs,Ss=To.isBrowser("Firefox");function Ms(t,e,n,r,o){var i=ys.replaceText(t.getCurrentContent(),t.getSelection(),e,n,r);return gs.push(t,i,"insert-characters",o)}var Es=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,r=e.data;if(r)if(t.props.handleBeforeInput&&vs(t.props.handleBeforeInput(r,n,e.timeStamp)))e.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return e.preventDefault(),void t.update(Ms(n,r,n.getCurrentInlineStyle(),ms(n.getCurrentContent(),n.getSelection()),!0));var c,s=Ms(n,r,n.getCurrentInlineStyle(),ms(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=bs(t._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),p=s.getBlockTree(a);u=l.size!==p.size||l.zip(p).some(function(t){var e=t[0],n=t[1],o=e.get("start"),a=o+(o>=i?r.length:0),c=e.get("end"),s=c+(c>=i?r.length:0),u=n.get("start"),l=n.get("end"),p=n.get("decoratorKey");return e.get("decoratorKey")!==p||e.get("leaves").size!==n.get("leaves").size||a!==u||s!==l||null!=p&&l-u!==c-o})}if(u||(c=r,u=Ss&&("'"==c||"/"==c)),u||(u=_s(s.getDirectionMap()).get(a)!==_s(n.getDirectionMap()).get(a)),u)return e.preventDefault(),s=gs.set(s,{forceSelection:!0}),void t.update(s);s=gs.set(s,{nativelyRenderedContent:s.getCurrentContent()}),t._pendingStateFromBeforeInput=s,ws(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}},js=vr,ks=ua,Cs=la;var Os=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&Cs(n)===n.body){var r=n.defaultView.getSelection(),o=t.editor;1===r.rangeCount&&ks(o,r.anchorNode)&&ks(o,r.focusNode)&&r.removeAllRanges()}var i=t._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var c=a.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(js.acceptSelection(i,c))}},Ds=vr;var As=function(t,e){t.setMode("composite"),t.update(Ds.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)},Ns=Dt;var xs=function(t){var e=t.getSelection();return e.isCollapsed()?null:Ns(t.getCurrentContent(),e)},Is=xs;var Ls=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(Is(t._latestEditorState))};var Ts=ke,zs=vr,Rs=qa,Bs=xs,Ps=$a,Us=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1};var Fs=function(t,e){var n,r=t._latestEditorState,o=r.getSelection(),i=e.target;if(o.isCollapsed())e.preventDefault();else{if(Us(i)){var a=i;n=Ps(Rs.getScrollParent(a))}var c=Bs(r);t.setClipboard(c),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=Ts.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return zs.push(t,e,"remove-range")}(r))},0)}};var Ks=function(t,e){t.setMode("drag"),e.preventDefault()};var Ys=function(t){t._internalDrag=!0,t.setMode("drag")},Hs=vr,Qs=To;var qs=function(t,e){var n=t._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),Qs.isBrowser("Chrome < 60.0.3081.0")?t.update(Hs.forceSelection(n,o)):t.update(Hs.acceptSelection(n,o))}},Ws=st,Zs=/[\uD800-\uDFFF]/;function Vs(t){return 55296<=t&&t<=57343}function Gs(t){return Zs.test(t)}function Js(t,e){return 1+Vs(t.charCodeAt(e))}function Xs(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!Gs(t))return t.substr(e,n);var r=t.length;if(r<=0||e>r||n<=0)return"";var o=0;if(e>0){for(;e>0&&o<r;e--)o+=Js(t,o);if(o>=r)return""}else if(e<0){for(o=r;e<0&&0<o;e++)o-=Js(t,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=Js(t,i);return t.substring(o,i)}var $s={getCodePoints:function(t){for(var e=[],n=0;n<t.length;n+=Js(t,n))e.push(t.codePointAt(n));return e},getUTF16Length:Js,hasSurrogateUnit:Gs,isCodeUnitInSurrogateRange:Vs,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||("production"!==process.env.NODE_ENV?Ws(!1,"isSurrogatePair: Invalid index %s for string length %s.",e,t.length):Ws(!1)),e+1===t.length)return!1;var n=t.charCodeAt(e),r=t.charCodeAt(e+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(t){if(!Gs(t))return t.length;for(var e=0,n=0;n<t.length;n+=Js(t,n))e++;return e},substring:function(t,e,n){(e=e||0)<0&&(e=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-e);return Xs(t,e=e<n?e:n,r)},substr:Xs},tu=Uc;function eu(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}}var nu="production"!==process.env.NODE_ENV?function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];eu.apply(void 0,[e].concat(r))}}:tu,ru=nu;var ou=function(t,e){var n=t.getSelection();"production"!==process.env.NODE_ENV&&ru(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=t.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,c=0;if(e>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,c=r.getBlockForKey(s).getText().length}else c=i-e;return n.merge({focusKey:a,focusOffset:c,isBackward:!0})},iu=ke,au=tn("draft_tree_data_support");var cu=function(t,e,n){var r=t.getSelection(),o=t.getCurrentContent(),i=r,a=r.getAnchorKey(),c=r.getFocusKey(),s=o.getBlockForKey(a);if(au&&"forward"===n&&a!==c)return o;if(r.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return o;if(au)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(s.nextSibling);if(!u||0===u.getLength())return o}}else if(t.isSelectionAtStartOfContent())return o;if((i=e(t))===r)return o}return iu.removeRange(o,i,n)},su=vr,uu=$s,lu=ou,pu=cu;var fu=function(t){var e=pu(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),o=e.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return lu(t,i?uu.getUTF16Length(i,0):1)},"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return su.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},du=ke,hu=ei,yu=vr,gu=Ci.notEmptyKey,mu=Ko,vu=fu,bu=Gn,_u=To.isEngine("Gecko");var wu=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var c=a.firstChild;null!=c;c=c.nextSibling)c!==r&&a.removeChild(c)}var s=r.textContent,u=t._latestEditorState,l=bu(mu(r)),p=hu.decode(l),f=p.blockKey,d=p.decoratorKey,h=p.leafKey,y=u.getBlockTree(f).getIn([d,"leaves",h]),g=y.start,m=y.end,v=u.getCurrentContent(),b=v.getBlockForKey(f),_=b.getText().slice(g,m);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==_){var w,S,M,E,j=u.getSelection(),k=j.merge({anchorOffset:g,focusOffset:m,isBackward:!1}),C=b.getEntityAt(g),O=gu(C)?v.getEntity(C):null,D="MUTABLE"===(null!=O?O.getMutability():null),A=D?"spellcheck-change":"apply-entity",N=du.replaceText(v,k,s,b.getInlineStyleAt(g),D?b.getEntityAt(g):null);if(_u)w=n.anchorOffset,S=n.focusOffset,E=(M=g+Math.min(w,S))+Math.abs(w-S),w=M,S=E;else{var x=s.length-_.length;M=j.getStartOffset(),E=j.getEndOffset(),w=o?E+x:M,S=E+x}var I=N.merge({selectionBefore:v.getSelectionAfter(),selectionAfter:j.merge({anchorOffset:w,focusOffset:S})});t.update(yu.push(u,I,A))}else{var L=e.nativeEvent.inputType;if(L){var T=function(t,e){return"deleteContentBackward"===t?vu(e):e}(L,u);if(T!==u)return t.restoreEditorDOM(),void t.update(T)}}}},Su=ni;var Mu=function(t){return t.which===Su.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},Eu=To.isPlatform("Mac OS X"),ju={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return Eu&&t.altKey},usesMacOSHeuristics:function(){return Eu},hasCommandModifier:function(t){return Eu?!!t.metaKey&&!t.altKey:ju.isCtrlKeyCommand(t)},isSoftNewlineEvent:Mu},ku=ju,Cu=ke,Ou=vr,Du=Dt,Au=Gn,Nu=null,xu={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=e.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=e.getKeyAfter(o);if(null==a)return t;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=Au(r),Nu=Du(e,r);var c=Cu.removeRange(e,r,"forward");return c===e?t:Ou.push(t,c,"remove-range")},paste:function(t){if(!Nu)return t;var e=Cu.replaceWithFragment(t.getCurrentContent(),t.getSelection(),Nu);return Ou.push(t,e,"insert-fragment")}},Iu=st;var Lu=To.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var o=r===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var i,a=Array.from(e.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);e.setEndBefore(r)}"production"!==process.env.NODE_ENV?Iu(!1,"Found an unexpected detached subtree when getting range client rects."):Iu(!1)}:function(t){return Array.from(t.getClientRects())},Tu=$s,zu=zo,Ru=Lu,Bu=st;function Pu(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var c=t[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<e&&i-r<e}function Uu(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}var Fu=vr,Ku=function(t){t.collapsed||("production"!==process.env.NODE_ENV?Bu(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):Bu(!1));var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=zu(t),r=n.createElement("div");r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?Bu(!1,"Missing document.body"):Bu(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(e),r=t.endContainer,o=t.endOffset;for(t.setStart(t.startContainer,0);Pu(Ru(t),n)&&(r=t.startContainer,o=t.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?Bu(!1,"Found unexpected detached subtree when traversing."):Bu(!1)),t.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var c=i.nodeValue,s=a;s>=0;s--)if(!(null!=c&&s>0&&Tu.isSurrogatePair(c,s-1))){if(t.setStart(i,s),!Pu(Ru(t),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=Uu(i=i.childNodes[s])}return t.setStart(r,o),t},Yu=bi,Hu=ou,Qu=cu;var qu=function(t,e){var n=Qu(t,function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Hu(t,1);var r=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Ku(r),Yu(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return n===t.getCurrentContent()?t:Fu.push(t,n,"remove-range")},Wu="['‘’]",Zu="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Vu=new RegExp("^(?:"+Zu+")*(?:"+Wu+"|(?!"+Zu+").)*(?:(?!"+Zu+").)"),Gu=new RegExp("(?:(?!"+Zu+").)(?:"+Wu+"|(?!"+Zu+").)*(?:"+Zu+")*$");function Ju(t,e){var n=e?Gu.exec(t):Vu.exec(t);return n?n[0]:t}var Xu={getBackward:function(t){return Ju(t,!0)},getForward:function(t){return Ju(t,!1)}},$u=Xu,tl=vr,el=ou,nl=cu;var rl=nu;var ol=function(t,e){var n=t.getSelection();"production"!==process.env.NODE_ENV&&rl(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=t.getCurrentContent(),c=o;return e>a.getBlockForKey(o).getText().length-i?(c=a.getKeyAfter(o),r=0):r=i+e,n.merge({focusKey:c,focusOffset:r})},il=Xu,al=vr,cl=ol,sl=cu;var ul=ke,ll=vr;var pl=vr;var fl=vr;var dl=vr,hl=$s,yl=ol,gl=cu;var ml=ke,vl=vr,bl=Dt;var _l=vr;var wl=ke,Sl=vr,Ml=ni,El=xu,jl=To,kl=$c,Cl=qu,Ol=function(t){var e=nl(t,function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return el(t,1);var r=e.getStartKey(),o=t.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=$u.getBackward(o);return el(t,i.length||1)},"backward");return e===t.getCurrentContent()?t:tl.push(t,e,"remove-range")},Dl=function(t){var e=sl(t,function(t){var e=t.getSelection(),n=e.getStartOffset(),r=e.getStartKey(),o=t.getCurrentContent().getBlockForKey(r).getText().slice(n),i=il.getForward(o);return cl(t,i.length||1)},"forward");return e===t.getCurrentContent()?t:al.push(t,e,"remove-range")},Al=function(t){var e=ul.splitBlock(t.getCurrentContent(),t.getSelection());return ll.push(t,e,"split-block")},Nl=function(t){var e=t.getSelection(),n=e.getEndKey(),r=t.getCurrentContent().getBlockForKey(n).getLength();return pl.set(t,{selection:e.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},xl=function(t){var e=t.getSelection(),n=e.getStartKey();return fl.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Il=fu,Ll=function(t){var e=gl(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),o=e.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return yl(t,i?hl.getUTF16Length(i,0):1)},"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return dl.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},Tl=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var r,o,i=e.getAnchorKey(),a=t.getCurrentContent(),c=a.getBlockForKey(i).getLength();if(c<=1)return t;n===c?(r=e.set("anchorOffset",n-1),o=e):o=(r=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var s=bl(a,r),u=ml.removeRange(a,r,"backward"),l=u.getSelectionAfter(),p=l.getAnchorOffset()-1,f=l.merge({anchorOffset:p,focusOffset:p}),d=ml.replaceWithFragment(u,f,s),h=vl.push(t,d,"insert-fragment");return vl.acceptSelection(h,o)},zl=function(t,e,n){var r=_l.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(_l.set(e,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)):n(r);else{var o=r.getCurrentContent();n(_l.set(r,{nativelyRenderedContent:o}))}},Rl=ku.isOptionKeyCommand,Bl=jl.isBrowser("Chrome");var Pl=function(t,e){var n=e.which,r=t._latestEditorState;function o(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case Ml.RETURN:if(e.preventDefault(),t.props.handleReturn&&kl(t.props.handleReturn(e,r)))return;break;case Ml.ESC:if(e.preventDefault(),o("onEscape"))return;break;case Ml.TAB:if(o("onTab"))return;break;case Ml.UP:if(o("onUpArrow"))return;break;case Ml.RIGHT:if(o("onRightArrow"))return;break;case Ml.DOWN:if(o("onDownArrow"))return;break;case Ml.LEFT:if(o("onLeftArrow"))return;break;case Ml.SPACE:Bl&&Rl(e)&&e.preventDefault()}var i=t.props.keyBindingFn(e);if(null!=i&&""!==i)if("undo"!==i){if(e.preventDefault(),!t.props.handleKeyCommand||!kl(t.props.handleKeyCommand(i,r,e.timeStamp))){var a=function(t,e,n){switch(t){case"redo":return Sl.redo(e);case"delete":return Ll(e);case"delete-word":return Dl(e);case"backspace":return Il(e);case"backspace-word":return Ol(e);case"backspace-to-start-of-line":return Cl(e,n);case"split-block":return Al(e);case"transpose-characters":return Tl(e);case"move-selection-to-start-of-block":return xl(e);case"move-selection-to-end-of-block":return Nl(e);case"secondary-cut":return El.cut(e);case"secondary-paste":return El.paste(e);default:return e}}(i,r,e);a!==r&&t.update(a)}}else zl(e,r,t.update);else if(n===Ml.SPACE&&Bl&&Rl(e)){var c=wl.replaceText(r.getCurrentContent(),r.getSelection()," ");t.update(Sl.push(r,c,"insert-characters"))}};var Ul=function(){function t(t){var e,n,r;r=void 0,(n="_uri")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._uri=t}return t.prototype.toString=function(){return this._uri},t}(),Fl=Ul,Kl=st,Yl=To.isBrowser("IE <= 9");var Hl=function(t){var e,n=null;return!Yl&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Kl(!1,"Missing doc.documentElement"):Kl(!1)),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n},Ql=Ro;var ql=function(t){return!(!t||!t.ownerDocument)&&(Ql(t)&&"A"===t.nodeName)},Wl=Ro;var Zl,Vl=function(t){return!(!t||!t.ownerDocument)&&(Wl(t)&&"IMG"===t.nodeName)};function Gl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Jl(t,e,n[e])})}return t}function Jl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xl=S,$l=R,tp=J,ep=Gr,np=Je,rp=Fl,op=Wr,ip=mt,ap=Hl,cp=tn,sp=l,up=sp.List,lp=sp.Map,pp=sp.OrderedSet,fp=ql,dp=ia,hp=oi,yp=Vl,gp=cp("draft_tree_data_support"),mp=new RegExp("\r","g"),vp=new RegExp("\n","g"),bp=new RegExp("^\n","g"),_p=new RegExp("&nbsp;","g"),wp=new RegExp("&#13;?","g"),Sp=new RegExp("&#8203;?","g"),Mp=["bold","bolder","500","600","700","800","900"],Ep=["light","lighter","normal","100","200","300","400"],jp=["className","href","rel","target","title"],kp=["alt","className","height","src","width"],Cp=(Jl(Zl={},op("public/DraftStyleDefault/depth0"),0),Jl(Zl,op("public/DraftStyleDefault/depth1"),1),Jl(Zl,op("public/DraftStyleDefault/depth2"),2),Jl(Zl,op("public/DraftStyleDefault/depth3"),3),Jl(Zl,op("public/DraftStyleDefault/depth4"),4),Zl),Op=lp({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Dp=function(t){if(hp(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},Ap=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(Cp).some(function(n){t.classList.contains(n)&&(e=Cp[n])}),e},Np=function(t){if(!fp(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new rp(e.href);return!0}catch(t){return!1}},xp=function(t){if(!yp(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},Ip=function(t,e){if(!hp(t))return e;var n=t,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return e.withMutations(function(t){Mp.indexOf(r)>=0?t.add("BOLD"):Ep.indexOf(r)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},Lp=function(t){return"ul"===t||"ol"===t},Tp=function(){function t(t,e){Jl(this,"characterList",up()),Jl(this,"currentBlockType","unstyled"),Jl(this,"currentDepth",0),Jl(this,"currentEntity",null),Jl(this,"currentText",""),Jl(this,"wrapper",null),Jl(this,"blockConfigs",[]),Jl(this,"contentBlocks",[]),Jl(this,"entityMap",np),Jl(this,"blockTypeMap",void 0),Jl(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=up(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=np,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],pp())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(gp?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Gl({key:t.key||ip(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:up(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=up(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=o.nodeName.toLowerCase();if("body"===i||Lp(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,c=this.wrapper;Lp(i)&&(this.wrapper=i,Lp(c)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),e)),this.currentDepth=a,this.wrapper=c}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(xp(o))this._addImgNode(o,e);else if(Np(o))this._addAnchorNode(o,n,e);else{var u=e;Op.has(i)&&(u=u.add(Op.get(i))),u=Ip(o,u);var l=Dp(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,e);else this._addTextNode(o,e);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var p=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!gp&&hp(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var d=o;this.currentDepth=Ap(d,this.currentDepth)}var h=ip(),y=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:y,type:s})),this.currentDepth=p,this.wrapper=f}}}return n},e._appendText=function(t,e){var n;this.currentText+=t;var r=Xl.create({style:e,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(r))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==r?Math.min(e,r[0]):e)>(n=void 0!==(r=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(n,t-r[0]):n)?(this.currentText="",this.characterList=up()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(bp,"")).replace(vp," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){dp(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(yp(t)){var n=t,r={};kp.forEach(function(t){var e=n.getAttribute(t);e&&(r[t]=e)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),cp("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(fp(t)){var r=t,o={};jp.forEach(function(t){var e=r.getAttribute(t);e&&(o[t]=e)}),o.url=new rp(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,r=0;r<=n;r++){var o=t[r];o.parent=e,o.prevSibling=r>0?t[r-1].key:null,o.nextSibling=r<n?t[r+1].key:null,o.children=up(o.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new tp(Gl({},o))),this._toContentBlocks(o.childConfigs,o.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return up(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var n=e._extractTextFromBlockConfigs(t.childConfigs),r=n.text,o=n.characterList;e.contentBlocks.push(new $l(Gl({},t,{text:t.text+r,characterList:t.characterList.concat(o)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,n="",r=up(),o=0;o<=e;o++){var i=t[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},t}(),zp=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ep,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ap)(t=t.trim().replace(mp,"").replace(_p," ").replace(wp,"").replace(Sp,""));if(!n)return null;var r=function(t){var e={};return t.mapKeys(function(t,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){void 0===e[n]?e[n]=t:"string"==typeof e[n]?e[n]=[e[n],t]:e[n].push(t)})}),lp(e)}(e);return new Tp(r,function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()};function Rp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bp=R,Pp=J,Up=zp,Fp=mt,Kp=Hl,Yp=tn,Hp=l,Qp=nn,qp=Hp.List,Wp=Hp.Repeat,Zp=Yp("draft_tree_data_support"),Vp=Zp?Pp:Bp;var Gp=ke,Jp=vr,Xp=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),c=a.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat([[i,a.get(i)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return a=a.merge(c),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})},$p=Gn,tf={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return tf.toggleInlineStyle(t,"BOLD");case"italic":return tf.toggleInlineStyle(t,"ITALIC");case"underline":return tf.toggleInlineStyle(t,"UNDERLINE");case"code":return tf.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return tf.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return tf.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=Gp.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=Jp.push(t,e,"insert-characters");return Jp.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:e});if(a!==n)return Jp.push(t,a,"remove-range")}var c=tf.tryToRemoveBlockStyle(t);return c?Jp.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockForKey(r).getLength();if(e.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=e.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),c=Gp.removeRange(n,a,"forward");return c!==n?Jp.push(t,c,"remove-range"):null},onTab:function(t,e,n){var r=e.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return e;var i=e.getCurrentContent(),a=i.getBlockForKey(o),c=a.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var s=a.getDepth();if(!t.shiftKey&&s===n)return e;var u=Xp(i,r,t.shiftKey?-1:1,n);return Jp.push(e,u,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=t.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var c=$p(i.getBlockBefore(o));o=c.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:c.getLength(),isBackward:!1})}if(i.getBlockMap().skipWhile(function(t,e){return e!==r}).reverse().skipWhile(function(t,e){return e!==o}).some(function(t){return"atomic"===t.getType()}))return t;var s=i.getBlockForKey(r).getType()===e?"unstyled":e;return Jp.push(t,Gp.setBlockType(i,a,s),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?tf.toggleBlockType(t,"code-block"):tf.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),r=t.getCurrentInlineStyle();if(n.isCollapsed())return Jp.setInlineStyleOverride(t,r.has(e)?r.remove(e):r.add(e));var o,i=t.getCurrentContent();return o=r.has(e)?Gp.removeInlineStyle(i,n,e):Gp.applyInlineStyle(i,n,e),Jp.push(t,o,"change-inline-style")},toggleLink:function(t,e,n){var r=Gp.applyEntity(t.getCurrentContent(),e,n);return Jp.push(t,r,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var r=e.getAnchorKey(),o=t.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return Gp.setBlockType(o,e,"unstyled")}return null}},ef=tf,nf=/\r\n?|\n/g;var rf=f,of=S,af=Zc,cf=ke,sf={processHTML:function(t,e){return Up(t,Kp,e)},processText:function(t,e,n){return t.reduce(function(t,r,o){r=Qp(r);var i=Fp(),a={key:i,type:n,text:r,characterList:qp(Wp(e,r.length))};if(Zp&&0!==o){var c=o-1;a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Rp(t,e,n[e])})}return t}({},a,{prevSibling:(t[c]=t[c].merge({nextSibling:i})).getKey()})}return t.push(new Vp(a)),t},[])}},uf=vr,lf=ef,pf=Ai,ff=Xc,df=$c,hf=function(t){return t.split(nf)};function yf(t,e,n){var r=cf.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return uf.push(t,r.set("entityMap",n),"insert-fragment")}var gf=To,mf=Es,vf=Os,bf=As,_f=Ls,wf=Fs,Sf=Ks,Mf=Ys,Ef=qs,jf=wu,kf=Pl,Cf=function(t,e){e.preventDefault();var n=new af(e.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(t.props.handlePastedFiles&&df(t.props.handlePastedFiles(r)))return;return void ff(r,function(e){if(e=e||o){var n=t._latestEditorState,r=hf(e),i=of.create({style:n.getCurrentInlineStyle(),entity:pf(n.getCurrentContent(),n.getSelection())}),a=lf.getCurrentBlockType(n),c=sf.processText(r,i,a),s=rf.createFromArray(c),u=cf.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);t.update(uf.push(n,u,"insert-fragment"))}})}}var i=[],a=n.getText(),c=n.getHTML(),s=t._latestEditorState;if(t.props.formatPastedText){var u=t.props.formatPastedText(a,c);a=u.text,c=u.html}if(!t.props.handlePastedText||!df(t.props.handlePastedText(a,c,s))){if(a&&(i=hf(a)),!t.props.stripPastedStyles){var l,p=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&p){if(-1!==(null===(l=c)||void 0===l?void 0:l.indexOf(t.getEditorKey()))||1===i.length&&1===p.size&&p.first().getText()===a)return void t.update(yf(t._latestEditorState,p))}else if(p&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}(i,p))return void t.update(yf(t._latestEditorState,p));if(c){var f=sf.processHTML(c,t.props.blockRenderMap);if(f){var d=f.contentBlocks,h=f.entityMap;if(d){var y=rf.createFromArray(d);return void t.update(yf(t._latestEditorState,y,h))}}}t.setClipboard(null)}if(i.length){var g=of.create({style:s.getCurrentInlineStyle(),entity:pf(s.getCurrentContent(),s.getSelection())}),m=lf.getCurrentBlockType(s),v=sf.processText(i,g,m),b=rf.createFromArray(v);t.update(yf(t._latestEditorState,b))}}},Of=ki,Df=gf.isBrowser("Chrome"),Af=gf.isBrowser("Firefox"),Nf=Df||Af?Of:function(t){},xf={onBeforeInput:mf,onBlur:vf,onCompositionStart:bf,onCopy:_f,onCut:wf,onDragOver:Sf,onDragStart:Mf,onFocus:Ef,onInput:jf,onKeyDown:kf,onPaste:Cf,onSelect:Of,onMouseUp:Nf,onKeyUp:Nf},If=n.unstable_flushControlled;var Lf=t,Tf=Wr,zf=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},o.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=Tf({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return Lf.createElement("div",{className:e},Lf.createElement("div",{className:Tf("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(Lf.Component),Rf=zf,Bf=ku,Pf=ni,Uf=To,Ff=Uf.isPlatform("Mac OS X"),Kf=Ff&&Uf.isBrowser("Firefox < 29"),Yf=Bf.hasCommandModifier,Hf=Bf.isCtrlKeyCommand;function Qf(t){return Ff&&t.altKey||Hf(t)}var qf=function(t){switch(t.keyCode){case 66:return Yf(t)?"bold":null;case 68:return Hf(t)?"delete":null;case 72:return Hf(t)?"backspace":null;case 73:return Yf(t)?"italic":null;case 74:return Yf(t)?"code":null;case 75:return Ff&&Hf(t)?"secondary-cut":null;case 77:case 79:return Hf(t)?"split-block":null;case 84:return Ff&&Hf(t)?"transpose-characters":null;case 85:return Yf(t)?"underline":null;case 87:return Ff&&Hf(t)?"backspace-word":null;case 89:return Hf(t)?Ff?"secondary-paste":"redo":null;case 90:return function(t){return Yf(t)?t.shiftKey?"redo":"undo":null}(t)||null;case Pf.RETURN:return"split-block";case Pf.DELETE:return function(t){return!Ff&&t.shiftKey?null:Qf(t)?"delete-word":"delete"}(t);case Pf.BACKSPACE:return function(t){return Yf(t)&&Ff?"backspace-to-start-of-line":Qf(t)?"backspace-word":"backspace"}(t);case Pf.LEFT:return Kf&&Yf(t)?"move-selection-to-start-of-block":null;case Pf.RIGHT:return Kf&&Yf(t)?"move-selection-to-end-of-block":null;default:return null}},Wf=eo;function Zf(){return Zf=Wf||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zf.apply(this,arguments)}function Vf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Jf(t,e,n[e])})}return t}function Gf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var $f=Gr,td=Jr,ed=Zi,nd=xc,rd=fs,od=xf,id=If,ad=Rf,cd=aa,sd=vr,ud=t,ld=Ra,pd=qa,fd=Wr,dd=mt,hd=qf,yd=$a,gd=tn,md=st,vd=oi,bd=Gn,_d=To.isBrowser("IE"),wd=!_d,Sd={edit:od,composite:ed,drag:rd,cut:null,render:null},Md=!1,Ed=function(t){function e(){return t.apply(this,arguments)||this}Xf(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(ud.Component),jd=function(t){function e(e){var n;return Jf(Gf(n=t.call(this,e)||this),"_blockSelectEvents",void 0),Jf(Gf(n),"_clipboard",void 0),Jf(Gf(n),"_handler",void 0),Jf(Gf(n),"_dragCount",void 0),Jf(Gf(n),"_internalDrag",void 0),Jf(Gf(n),"_editorKey",void 0),Jf(Gf(n),"_placeholderAccessibilityID",void 0),Jf(Gf(n),"_latestEditorState",void 0),Jf(Gf(n),"_latestCommittedEditorState",void 0),Jf(Gf(n),"_pendingStateFromBeforeInput",void 0),Jf(Gf(n),"_onBeforeInput",void 0),Jf(Gf(n),"_onBlur",void 0),Jf(Gf(n),"_onCharacterData",void 0),Jf(Gf(n),"_onCompositionEnd",void 0),Jf(Gf(n),"_onCompositionStart",void 0),Jf(Gf(n),"_onCopy",void 0),Jf(Gf(n),"_onCut",void 0),Jf(Gf(n),"_onDragEnd",void 0),Jf(Gf(n),"_onDragOver",void 0),Jf(Gf(n),"_onDragStart",void 0),Jf(Gf(n),"_onDrop",void 0),Jf(Gf(n),"_onInput",void 0),Jf(Gf(n),"_onFocus",void 0),Jf(Gf(n),"_onKeyDown",void 0),Jf(Gf(n),"_onKeyPress",void 0),Jf(Gf(n),"_onKeyUp",void 0),Jf(Gf(n),"_onMouseDown",void 0),Jf(Gf(n),"_onMouseUp",void 0),Jf(Gf(n),"_onPaste",void 0),Jf(Gf(n),"_onSelect",void 0),Jf(Gf(n),"editor",void 0),Jf(Gf(n),"editorContainer",void 0),Jf(Gf(n),"focus",void 0),Jf(Gf(n),"blur",void 0),Jf(Gf(n),"setMode",void 0),Jf(Gf(n),"exitCurrentMode",void 0),Jf(Gf(n),"restoreEditorDOM",void 0),Jf(Gf(n),"setClipboard",void 0),Jf(Gf(n),"getClipboard",void 0),Jf(Gf(n),"getEditorKey",void 0),Jf(Gf(n),"update",void 0),Jf(Gf(n),"onDragEnter",void 0),Jf(Gf(n),"onDragLeave",void 0),Jf(Gf(n),"_handleEditorContainerRef",function(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null}),Jf(Gf(n),"focus",function(t){var e=n.props.editorState,r=e.getSelection().getHasFocus(),o=n.editor;if(o){var i=pd.getScrollParent(o),a=t||yd(i),c=a.x,s=a.y;vd(o)||("production"!==process.env.NODE_ENV?md(!1,"editorNode is not an HTMLElement"):md(!1)),o.focus(),i===window?window.scrollTo(c,s):ld.setTop(i,s),r||n.update(sd.forceSelection(e,e.getSelection()))}}),Jf(Gf(n),"blur",function(){var t=n.editor;t&&(vd(t)||("production"!==process.env.NODE_ENV?md(!1,"editorNode is not an HTMLElement"):md(!1)),t.blur())}),Jf(Gf(n),"setMode",function(t){var e=n.props,r=e.onPaste,o=e.onCut,i=e.onCopy,a=Vf({},Sd.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var c=Vf({},Sd,{edit:a});n._handler=c[t]}),Jf(Gf(n),"exitCurrentMode",function(){n.setMode("edit")}),Jf(Gf(n),"restoreEditorDOM",function(t){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(t)})}),Jf(Gf(n),"setClipboard",function(t){n._clipboard=t}),Jf(Gf(n),"getClipboard",function(){return n._clipboard}),Jf(Gf(n),"update",function(t){n._latestEditorState=t,n.props.onChange(t)}),Jf(Gf(n),"onDragEnter",function(){n._dragCount++}),Jf(Gf(n),"onDragLeave",function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()}),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=e.editorKey||dd(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach(function(t){e.hasOwnProperty(t)&&console.warn("Supplying an `".concat(t,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")}),n.state={contentsKey:0},n}Xf(e,t);var n=e.prototype;return n._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&(id?id(function(){return r(e,n)}):r(e,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:bd(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return ud.createElement(ad,t)}return null},n._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},n.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,o=t.customStyleFn,i=t.customStyleMap,a=t.editorState,c=t.preventScroll,s=t.readOnly,u=t.textAlignment,l=t.textDirectionality,p=fd({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),f=this.props.role||"textbox",d="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,customStyleMap:Vf({},td,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:c,textDirectionality:l};return ud.createElement("div",{className:p},this._renderPlaceholder(),ud.createElement("div",{className:fd("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},ud.createElement("div",{"aria-activedescendant":s?null:this.props.ariaActiveDescendantID,"aria-autocomplete":s?null:this.props.ariaAutoComplete,"aria-controls":s?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":s?null:d,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":s?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:fd({notranslate:!s,"public/DraftEditor/content":!0}),contentEditable:!s,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:s?null:f,spellCheck:wd&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},ud.createElement(Ed,{editor:this,editorState:a}),ud.createElement(nd,Zf({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Md&&gd("draft_ods_enabled")&&(Md=!0,cd.initODS()),this.setMode("edit"),_d&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(ud.Component);Jf(jd,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:$f,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:hd,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var kd=jd,Cd={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},Od=Cd,Dd=$s.strlen;var Ad=$s,Nd=M,xd=function(t,e){return t===e},Id=function(t){return!!t},Ld=[];function Td(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zd=R,Rd=J,Bd=Cd,Pd=function(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(r,o){var i=t.getText(),a=t.getEntityAt(r);n.push({offset:Dd(i.slice(0,r)),length:Dd(i.slice(r,o)),key:Number(e[Od.stringify(a)])})}),n},Ud=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return function(t,e,n){var r=[],o=e.map(function(t){return t.has(n)}).toList();return Nd(o,xd,Id,function(e,o){var i=t.getText();r.push({offset:Ad.strlen(i.slice(0,e)),length:Ad.strlen(i.slice(e,o)),style:n})}),r}(t,e,n)});return Array.prototype.concat.apply(Ld,n.toJS())},Fd=st,Kd=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:Ud(t),entityRanges:Pd(t,e),data:t.getData().toObject()}},Yd=function(t,e,n,r){if(t instanceof zd)n.push(Kd(t,e));else{t instanceof Rd||("production"!==process.env.NODE_ENV?Fd(!1,"block is not a BlockNode"):Fd(!1));var o=t.getParentKey(),i=r[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Td(t,e,n[e])})}return t}({},Kd(t,e),{children:[]});o?r[o].children.push(i):n.push(i)}},Hd=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,r=[],o={},i={},a=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var r=t.getEntityAt(e),o=Bd.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)}),Yd(t,n,r,o)}),{blocks:r,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach(function(e,n){var r=t.getEntity(Bd.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:o}}(t,e),e};function Qd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){qd(t,e,n[e])})}return t}function qd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wd=mt,Zd=st,Vd=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},Gd={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||("production"!==process.env.NODE_ENV?Zd(!1,"Invalid raw state"):Zd(!1)),Array.isArray(e)&&e.length?(function(t,e){for(var n=[].concat(t).reverse();n.length;){var r=n.pop();e(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Zd(!1,"Invalid tree raw block"):Zd(!1)),n=n.concat([].concat(o.reverse()))}}(e,function(t){var e=Qd({},t);Vd(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?Qd({},e,{depth:(t.depth||0)+1}):e}))}(t),null!=t.children&&t.children.length>0)||(delete e.children,n.push(e))}),t.blocks=n,Qd({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach(function(t){var r=Vd(t),o=t.depth||0,i=Qd({},t,{children:[]});if(r){var a=n[0];if(null==a&&0===o)e.push(i);else if(null==a||a.depth<o-1){var c={key:Wd(),text:"",depth:o-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(c),1===o?e.push(c):null!=a&&a.children.push(c),c.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):e.push(i)}}else e.push(i)}),Qd({},t,{blocks:e})}},Jd=Gd,Xd=nu,$d={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Xd(!0,"Tree is missing parent -> child pointer on %s",n),!1;if(!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===n}))return"production"!==process.env.NODE_ENV&&Xd(!0,"Tree is missing child -> parent pointer on %s",n),!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Xd(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var i=t.getNextSiblingKey();if(null!=i&&e.get(i).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Xd(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==i&&null!==o&&o===i?("production"!==process.env.NODE_ENV&&Xd(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=t.text&&t.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Xd(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return"production"!==process.env.NODE_ENV&&Xd(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&o.unshift(c);var s=a.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==s)return"production"!==process.env.NODE_ENV&&Xd(!0,"%s has no first child",r),!1;r=s.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size||("production"!==process.env.NODE_ENV&&Xd(!0,"Tree is not connected. %s nodes were seen instead of %s",n,t.size),!1)},isValidTree:function(t){var e=this;return!!t.toArray().every(function(n){return e.isValidBlock(n,t)})&&this.isConnectedTree(t)}},th=S,eh=l.List;var nh=function(t,e){var n=t.map(function(t,n){var r=e[n];return th.create({style:t,entity:r})});return eh(n)},rh=$s.substr;var oh=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var r=rh(t,0,e.offset).length,o=r+rh(t,e.offset,e.length).length,i=r;i<o;i++)n[i]=e.key}),n},ih=$s,ah=l.OrderedSet,ch=ih.substr,sh=ah();function uh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){lh(t,e,n[e])})}return t}function lh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ph=R,fh=J,dh=jn,hh=Je,yh=Jd,gh=$d,mh=$e,vh=nh,bh=oh,_h=function(t,e){var n=Array(t.length).fill(sh);return e&&e.forEach(function(e){for(var r=ch(t,0,e.offset).length,o=r+ch(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++}),n},wh=mt,Sh=l,Mh=st,Eh=tn("draft_tree_data_support"),jh=Sh.List,kh=Sh.Map,Ch=Sh.OrderedMap,Oh=function(t,e){var n=t.key,r=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||wh(),data:kh(o),characterList:Dh(t,e)}},Dh=function(t,e){var n=t.text,r=t.entityRanges,o=t.inlineStyleRanges,i=r||[];return vh(_h(n,o||[]),bh(n,i.filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return uh({},t,{key:e[t.key]})})))},Ah=function(t){return uh({},t,{key:t.key||wh()})},Nh=function(t,e,n){var r=e.map(function(t){return uh({},t,{parentRef:n})});return t.concat(r.reverse())},xh=function(t,e){var n=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),r=Eh&&!n?yh.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!Eh)return function(t,e){return Ch(t.map(function(t){var n=new ph(Oh(t,e));return[n.getKey(),n]}))}(n?yh.fromRawTreeStateToRawState(t).blocks:r,e);var o=function(t,e){return t.map(Ah).reduce(function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?Mh(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Mh(!1));var i=r.children.map(Ah),a=new fh(uh({},Oh(r,e),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:jh(i.map(function(t){return t.key}))}));n=n.set(a.getKey(),a);for(var c=Nh([],i,a);c.length>0;){var s=c.pop(),u=s.parentRef,l=u.getChildKeys(),p=l.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?Mh(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Mh(!1));break}var d=s.children.map(Ah),h=new fh(uh({},Oh(s,e),{parent:u.getKey(),children:jh(d.map(function(t){return t.key})),prevSibling:0===p?null:l.get(p-1),nextSibling:p===l.size-1?null:l.get(p+1)}));n=n.set(h.getKey(),h),c=Nh(c,d,h)}return n},Ch())}(r,e);return"production"!==process.env.NODE_ENV&&(gh.isValidTree(o)||("production"!==process.env.NODE_ENV?Mh(!1,"Should be a valid tree"):Mh(!1))),o},Ih=Lu;var Lh=function(t){var e=Ih(t),n=0,r=0,o=0,i=0;if(e.length){if(e.length>1&&0===e[0].width){var a=e[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var c=e[0];n=c.top,r=c.right,o=c.bottom,i=c.left}for(var s=1;s<e.length;s++){var u=e[s];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}};var Th={Editor:kd,EditorBlock:Nc,EditorState:vr,CompositeDecorator:Qr,Entity:Je,EntityInstance:Ke,BlockMapBuilder:f,CharacterMetadata:S,ContentBlock:R,ContentState:jn,RawDraftContentState:{},SelectionState:$e,AtomicBlockUtils:Kr,KeyBindingUtil:ku,Modifier:ke,RichUtils:ef,DefaultDraftBlockRenderMap:Gr,DefaultDraftInlineStyle:Jr,convertFromHTML:zp,convertFromRaw:function(t){Array.isArray(t.blocks)||("production"!==process.env.NODE_ENV?Mh(!1,"invalid RawDraftContentState"):Mh(!1));var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var r=e[t],o=r.type,i=r.mutability,a=r.data;n[t]=hh.__create(o,i,a||{})}),n}(t),n=xh(t,e),r=n.isEmpty()?new mh:mh.createEmpty(n.first().getKey());return new dh({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})},convertToRaw:Hd,genKey:mt,getDefaultKeyBinding:qf,getVisibleSelectionRect:function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.getRangeAt(0),r=Lh(n),o=r.top,i=r.right,a=r.bottom,c=r.left;return 0===o&&0===i&&0===a&&0===c?null:r}},zh={exports:{}},Rh="delete",Bh=32,Ph=31,Uh={};function Fh(t){t&&(t.value=!0)}function Kh(){}function Yh(t){return void 0===t.size&&(t.size=t.__iterate(Qh)),t.size}function Hh(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?Yh(t)+e:e}function Qh(){return!0}function qh(t,e,n){return(0===t&&!Gh(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function Wh(t,e){return Vh(t,e,0)}function Zh(t,e){return Vh(t,e,e)}function Vh(t,e,n){return void 0===t?n:Gh(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function Gh(t){return t<0||0===t&&1/t==-1/0}var Jh="@@__IMMUTABLE_ITERABLE__@@";function Xh(t){return Boolean(t&&t[Jh])}var $h="@@__IMMUTABLE_KEYED__@@";function ty(t){return Boolean(t&&t[$h])}var ey="@@__IMMUTABLE_INDEXED__@@";function ny(t){return Boolean(t&&t[ey])}function ry(t){return ty(t)||ny(t)}var oy=function(t){return Xh(t)?t:Cy(t)},iy=function(t){function e(t){return ty(t)?t:Oy(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(oy),ay=function(t){function e(t){return ny(t)?t:Dy(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(oy),cy=function(t){function e(t){return Xh(t)&&!ry(t)?t:Ay(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(oy);oy.Keyed=iy,oy.Indexed=ay,oy.Set=cy;var sy="@@__IMMUTABLE_SEQ__@@";function uy(t){return Boolean(t&&t[sy])}var ly="@@__IMMUTABLE_RECORD__@@";function py(t){return Boolean(t&&t[ly])}function fy(t){return Xh(t)||py(t)}var dy="@@__IMMUTABLE_ORDERED__@@";function hy(t){return Boolean(t&&t[dy])}var yy="function"==typeof Symbol&&Symbol.iterator,gy="@@iterator",my=yy||gy,vy=function(t){this.next=t};function by(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function _y(){return{value:void 0,done:!0}}function wy(t){return!!Array.isArray(t)||!!Ey(t)}function Sy(t){return t&&"function"==typeof t.next}function My(t){var e=Ey(t);return e&&e.call(t)}function Ey(t){var e=t&&(yy&&t[yy]||t[gy]);if("function"==typeof e)return e}vy.prototype.toString=function(){return"[Iterator]"},vy.KEYS=0,vy.VALUES=1,vy.ENTRIES=2,vy.prototype.inspect=vy.prototype.toSource=function(){return this.toString()},vy.prototype[my]=function(){return this};var jy=Object.prototype.hasOwnProperty;function ky(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Cy=function(t){function e(t){return null==t?Ty():fy(t)?t.toSeq():function(t){var e=By(t);if(e)return(r=Ey(n=t))&&r===n.entries?e.fromEntrySeq():function(t){var e=Ey(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var n,r;if("object"==typeof t)return new xy(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[e?r-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var r=n.length,o=0;return new vy(function(){if(o===r)return{value:void 0,done:!0};var i=n[e?r-++o:o++];return by(t,i[0],i[1])})}return this.__iteratorUncached(t,e)},e}(oy),Oy=function(t){function e(t){return null==t?Ty().toKeyedSeq():Xh(t)?ty(t)?t.toSeq():t.fromEntrySeq():py(t)?t.toSeq():zy(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Cy),Dy=function(t){function e(t){return null==t?Ty():Xh(t)?ty(t)?t.entrySeq():t.toIndexedSeq():py(t)?t.toSeq().entrySeq():Ry(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Cy),Ay=function(t){function e(t){return(Xh(t)&&!ry(t)?t:Dy(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Cy);Cy.isSeq=uy,Cy.Keyed=Oy,Cy.Set=Ay,Cy.Indexed=Dy,Cy.prototype[sy]=!0;var Ny=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[Hh(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,o=0;o!==r;){var i=e?r-++o:o++;if(!1===t(n[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,o=0;return new vy(function(){if(o===r)return{value:void 0,done:!0};var i=e?r-++o:o++;return by(t,i,n[i])})},e}(Dy),xy=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return jy.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[e?o-++i:i++];if(!1===t(n[a],a,this))break}return i},e.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length,i=0;return new vy(function(){if(i===o)return{value:void 0,done:!0};var a=r[e?o-++i:i++];return by(t,a,n[a])})},e}(Oy);xy.prototype[dy]=!0;var Iy,Ly=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=My(this._collection),r=0;if(Sy(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=My(this._collection);if(!Sy(n))return new vy(_y);var r=0;return new vy(function(){var e=n.next();return e.done?e:by(t,r++,e.value)})},e}(Dy);function Ty(){return Iy||(Iy=new Ny([]))}function zy(t){var e=By(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new xy(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function Ry(t){var e=By(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function By(t){return ky(t)?new Ny(t):wy(t)?new Ly(t):void 0}var Py="@@__IMMUTABLE_MAP__@@";function Uy(t){return Boolean(t&&t[Py])}function Fy(t){return Uy(t)&&hy(t)}function Ky(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function Yy(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(Ky(t)&&Ky(e)&&t.equals(e))}var Hy="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function Qy(t){return t>>>1&1073741824|3221225471&t}var qy=Object.prototype.valueOf;function Wy(t){if(null==t)return Zy(t);if("function"==typeof t.hashCode)return Qy(t.hashCode(t));var e,n=(e=t).valueOf!==qy&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==n)return Zy(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return Qy(e)}(n);case"string":return n.length>og?function(t){var e=cg[t];void 0===e&&(e=Vy(t),ag===ig&&(ag=0,cg={}),ag++,cg[t]=e);return e}(n):Vy(n);case"object":case"function":return function(t){var e;if(tg&&void 0!==(e=$y.get(t)))return e;if(e=t[rg],void 0!==e)return e;if(!Jy){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[rg]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=Xy(),tg)$y.set(t,e);else{if(void 0!==Gy&&!1===Gy(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Jy)Object.defineProperty(t,rg,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[rg]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[rg]=e}}return e}(n);case"symbol":return function(t){var e=eg[t];if(void 0!==e)return e;return e=Xy(),eg[t]=e,e}(n);default:if("function"==typeof n.toString)return Vy(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function Zy(t){return null===t?1108378658:1108378659}function Vy(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return Qy(e)}var Gy=Object.isExtensible,Jy=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function Xy(){var t=++ng;return 1073741824&ng&&(ng=0),t}var $y,tg="function"==typeof WeakMap;tg&&($y=new WeakMap);var eg=Object.create(null),ng=0,rg="__immutablehash__";"function"==typeof Symbol&&(rg=Symbol(rg));var og=16,ig=255,ag=0,cg={},sg=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=hg(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,r=dg(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e,r){return t(e,r,n)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Oy);sg.prototype[dy]=!0;var ug=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return e&&Yh(this),this._iter.__iterate(function(o){return t(o,e?n.size-++r:r++,n)},e)},e.prototype.__iterator=function(t,e){var n=this,r=this._iter.__iterator(1,e),o=0;return e&&Yh(this),new vy(function(){var i=r.next();return i.done?i:by(t,e?n.size-++o:o++,i.value,i)})},e}(Dy),lg=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new vy(function(){var e=n.next();return e.done?e:by(t,e.value,e.value,e)})},e}(Ay),pg=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Eg(e);var r=Xh(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new vy(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Eg(r);var o=Xh(r);return by(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},e}(Oy);function fg(t){var e=kg(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Cg,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new vy(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,n)},e}function dg(t,e,n){var r=kg(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,Uh);return i===Uh?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new vy(function(){var o=i.next();if(o.done)return o;var a=o.value,c=a[0];return by(r,c,e.call(n,a[1],c,t),o)})},r}function hg(t,e){var n=this,r=kg(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=fg(t);return e.reverse=function(){return t.flip()},e}),r.get=function(n,r){return t.get(e?n:-1-n,r)},r.has=function(n){return t.has(e?n:-1-n)},r.includes=function(e){return t.includes(e)},r.cacheResult=Cg,r.__iterate=function(n,r){var o=this,i=0;return r&&Yh(t),t.__iterate(function(t,a){return n(t,e?a:r?o.size-++i:i++,o)},!r)},r.__iterator=function(r,o){var i=0;o&&Yh(t);var a=t.__iterator(2,!o);return new vy(function(){var t=a.next();if(t.done)return t;var c=t.value;return by(r,e?c[0]:o?n.size-++i:i++,c[1],t)})},r}function yg(t,e,n,r){var o=kg(t);return r&&(o.has=function(r){var o=t.get(r,Uh);return o!==Uh&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,Uh);return i!==Uh&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,c=0;return t.__iterate(function(t,i,s){if(e.call(n,t,i,s))return c++,o(t,r?i:c-1,a)},i),c},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),c=0;return new vy(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],l=s[1];if(e.call(n,l,u,t))return by(o,r?u:c++,l,i)}})},o}function gg(t,e,n,r){var o=t.size;if(qh(e,n,o))return t;if(void 0===o&&(e<0||n<0))return gg(t.toSeq().cacheResult(),e,n,r);var i,a=Wh(e,o),c=Zh(n,o)-a;c==c&&(i=c<0?0:c);var s=kg(t);return s.size=0===i?i:t.size&&i||void 0,!r&&uy(t)&&i>=0&&(s.get=function(e,n){return(e=Hh(this,e))>=0&&e<i?t.get(e+a,n):n}),s.__iterateUncached=function(e,n){var o=this;if(0===i)return 0;if(n)return this.cacheResult().__iterate(e,n);var c=0,s=!0,u=0;return t.__iterate(function(t,n){if(!s||!(s=c++<a))return u++,!1!==e(t,r?n:u-1,o)&&u!==i}),u},s.__iteratorUncached=function(e,n){if(0!==i&&n)return this.cacheResult().__iterator(e,n);if(0===i)return new vy(_y);var o=t.__iterator(e,n),c=0,s=0;return new vy(function(){for(;c++<a;)o.next();if(++s>i)return{value:void 0,done:!0};var t=o.next();return r||1===e||t.done?t:by(e,s-1,0===e?void 0:t.value[1],t)})},s}function mg(t,e,n,r){var o=kg(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var c=!0,s=0;return t.__iterate(function(t,i,u){if(!c||!(c=e.call(n,t,i,u)))return s++,o(t,r?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var c=t.__iterator(2,i),s=!0,u=0;return new vy(function(){var t,i,l;do{if((t=c.next()).done)return r||1===o?t:by(o,u++,0===o?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],s&&(s=e.call(n,l,i,a))}while(s);return 2===o?t:by(o,i,l,t)})},o}function vg(t,e,n){var r=kg(t);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,c=!1;return function t(s,u){s.__iterate(function(i,s){return(!e||u<e)&&Xh(i)?t(i,u+1):(a++,!1===o(i,n?s:a-1,r)&&(c=!0)),!c},i)}(t,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=t.__iterator(r,o),a=[],c=0;return new vy(function(){for(;i;){var t=i.next();if(!1===t.done){var s=t.value;if(2===r&&(s=s[1]),e&&!(a.length<e)||!Xh(s))return n?t:by(r,c++,s,t);a.push(i),i=s.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}})},r}function bg(t,e,n){e||(e=Og);var r=ty(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).valueSeq().toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?Oy(i):ny(t)?Dy(i):Ay(i)}function _g(t,e,n){if(e||(e=Og),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return wg(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return wg(e,t,n)?n:t})}function wg(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Sg(t,e,n,r){var o=kg(t),i=new Ny(n).map(function(t){return t.size});return o.size=r?i.max():i.min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map(function(t){return t=oy(t),My(o?t.reverse():t)}),a=0,c=!1;return new vy(function(){var n;return c||(n=i.map(function(t){return t.next()}),c=r?n.every(function(t){return t.done}):n.some(function(t){return t.done})),c?{value:void 0,done:!0}:by(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function Mg(t,e){return t===e?t:uy(t)?e:t.constructor(e)}function Eg(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function jg(t){return ty(t)?iy:ny(t)?ay:cy}function kg(t){return Object.create((ty(t)?Oy:ny(t)?Dy:Ay).prototype)}function Cg(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Cy.prototype.cacheResult.call(this)}function Og(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Dg(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function Ag(t,e){if(!t)throw new Error(e)}function Ng(t){Ag(t!==1/0,"Cannot perform this action with an infinite size.")}function xg(t){if(ky(t)&&"string"!=typeof t)return t;if(hy(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}ug.prototype.cacheResult=sg.prototype.cacheResult=lg.prototype.cacheResult=pg.prototype.cacheResult=Cg;var Ig=Object.prototype.toString;function Lg(t){if(!t||"object"!=typeof t||"[object Object]"!==Ig.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,r=Object.getPrototypeOf(e);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===e}function Tg(t){return"object"==typeof t&&(fy(t)||Array.isArray(t)||Lg(t))}function zg(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function Rg(t,e){return fy(t)?t.has(e):Tg(t)&&jy.call(t,e)}function Bg(t,e,n){return fy(t)?t.get(e,n):Rg(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function Pg(t){return"string"==typeof t&&("__proto__"===t||"constructor"===t)}function Ug(t){if(Array.isArray(t))return Dg(t);var e={};for(var n in t)Pg(n)||jy.call(t,n)&&(e[n]=t[n]);return e}function Fg(t,e){if(!Tg(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(fy(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!jy.call(t,e))return t;var n=Ug(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}function Kg(t,e,n){if(Pg(e))return t;if(!Tg(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(fy(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(jy.call(t,e)&&n===t[e])return t;var r=Ug(t);return r[e]=n,r}function Yg(t,e,n,r){r||(r=n,n=void 0);var o=Hg(fy(t),t,xg(e),0,n,r);return o===Uh?n:o}function Hg(t,e,n,r,o,i){var a=e===Uh;if(r===n.length){var c=a?o:e,s=i(c);return s===c?e:s}if(!a&&!Tg(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(zg)+"]: "+e);var u=n[r],l=a?Uh:Bg(e,u,Uh),p=Hg(l===Uh?t:fy(l),l,n,r+1,o,i);return p===l?e:p===Uh?Fg(e,u):Kg(a?t?Cm():{}:e,u,p)}function Qg(t,e,n){return Yg(t,e,Uh,function(){return n})}function qg(t,e){return Qg(this,t,e)}function Wg(t,e){return Yg(t,e,function(){return Uh})}function Zg(t){return Wg(this,t)}function Vg(t,e,n,r){return Yg(t,[e],n,r)}function Gg(t,e,n){return 1===arguments.length?t(this):Vg(this,t,e,n)}function Jg(t,e,n){return Yg(this,t,e,n)}function Xg(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return tm(this,t)}function $g(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return tm(this,e,t)}function tm(t,e,n){for(var r=[],o=0;o<e.length;o++){var i=iy(e[o]);0!==i.size&&r.push(i)}return 0===r.length?t:0!==t.toSeq().size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var e=n?function(e,r){Vg(t,r,Uh,function(t){return t===Uh?e:n(t,e,r)})}:function(e,n){t.set(n,e)},o=0;o<r.length;o++)r[o].forEach(e)}):t.constructor(r[0])}function em(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return am(t,e)}function nm(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return am(e,n,t)}function rm(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return im(t,e)}function om(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return im(e,n,t)}function im(t,e,n){return am(t,e,function(t){function e(n,r,o){return Tg(n)&&Tg(r)&&(i=r,a=Cy(n),c=Cy(i),ny(a)===ny(c)&&ty(a)===ty(c))?am(n,[r],e):t?t(n,r,o):r;var i,a,c}return e}(n))}function am(t,e,n){if(!Tg(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(fy(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var r=Array.isArray(t),o=t,i=r?ay:iy,a=r?function(e){o===t&&(o=Ug(o)),o.push(e)}:function(e,r){if(!Pg(r)){var i=jy.call(o,r),a=i&&n?n(o[r],e,r):e;i&&a===o[r]||(o===t&&(o=Ug(o)),o[r]=a)}},c=0;c<e.length;c++)i(e[c]).forEach(a);return o}function cm(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return im(this,t)}function sm(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return im(this,e,t)}function um(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Yg(this,t,Cm(),function(t){return am(t,e)})}function lm(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Yg(this,t,Cm(),function(t){return im(t,e)})}function pm(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function fm(){return this.__ownerID?this:this.__ensureOwner(new Kh)}function dm(){return this.__ensureOwner()}function hm(){return this.__altered}var ym=function(t){function e(e){return null==e?Cm():Uy(e)&&!hy(e)?e:Cm().withMutations(function(n){var r=t(e);Ng(r.size),r.forEach(function(t,e){return n.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Cm().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Om(this,t,e)},e.prototype.remove=function(t){return Om(this,t,Uh)},e.prototype.deleteAll=function(t){var e=oy(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Cm()},e.prototype.sort=function(t){return $m(bg(this,t))},e.prototype.sortBy=function(t,e){return $m(bg(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations(function(r){r.forEach(function(o,i){r.set(i,t.call(e,o,i,n))})})},e.prototype.__iterator=function(t,e){return new Mm(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?km(this.size,this._root,t,this.__hash):0===this.size?Cm():(this.__ownerID=t,this.__altered=!1,this)},e}(iy);ym.isMap=Uy;var gm=ym.prototype;gm[Py]=!0,gm[Rh]=gm.remove,gm.removeAll=gm.deleteAll,gm.setIn=qg,gm.removeIn=gm.deleteIn=Zg,gm.update=Gg,gm.updateIn=Jg,gm.merge=gm.concat=Xg,gm.mergeWith=$g,gm.mergeDeep=cm,gm.mergeDeepWith=sm,gm.mergeIn=um,gm.mergeDeepIn=lm,gm.withMutations=pm,gm.wasAltered=hm,gm.asImmutable=dm,gm["@@transducer/init"]=gm.asMutable=fm,gm["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},gm["@@transducer/result"]=function(t){return t.asImmutable()};var mm=function(t,e){this.ownerID=t,this.entries=e};mm.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Yy(n,o[i][0]))return o[i][1];return r},mm.prototype.update=function(t,e,n,r,o,i,a){for(var c=o===Uh,s=this.entries,u=0,l=s.length;u<l&&!Yy(r,s[u][0]);u++);var p=u<l;if(p?s[u][1]===o:c)return this;if(Fh(a),(c||!p)&&Fh(i),!c||1!==s.length){if(!p&&!c&&s.length>=Lm)return function(t,e,n,r){t||(t=new Kh);for(var o=new wm(t,Wy(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,s,r,o);var f=t&&t===this.ownerID,d=f?s:Dg(s);return p?c?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new mm(t,d)}};var vm=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};vm.prototype.get=function(t,e,n,r){void 0===e&&(e=Wy(n));var o=1<<((0===t?e:e>>>t)&Ph),i=this.bitmap;return 0===(i&o)?r:this.nodes[xm(i&o-1)].get(t+5,e,n,r)},vm.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Wy(r));var c=(0===e?n:n>>>e)&Ph,s=1<<c,u=this.bitmap,l=0!==(u&s);if(!l&&o===Uh)return this;var p=xm(u&s-1),f=this.nodes,d=l?f[p]:void 0,h=Dm(d,t,e+5,n,r,o,i,a);if(h===d)return this;if(!l&&h&&f.length>=Tm)return function(t,e,n,r,o){for(var i=0,a=new Array(Bh),c=0;0!==n;c++,n>>>=1)a[c]=1&n?e[i++]:void 0;return a[r]=o,new bm(t,i+1,a)}(t,f,u,c,h);if(l&&!h&&2===f.length&&Am(f[1^p]))return f[1^p];if(l&&h&&1===f.length&&Am(h))return h;var y=t&&t===this.ownerID,g=l?h?u:u^s:u|s,m=l?h?Im(f,p,h,y):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(f,p,y):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,c=0;c<o;c++)c===e?(i[c]=n,a=-1):i[c]=t[c+a];return i}(f,p,h,y);return y?(this.bitmap=g,this.nodes=m,this):new vm(t,g,m)};var bm=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};bm.prototype.get=function(t,e,n,r){void 0===e&&(e=Wy(n));var o=(0===t?e:e>>>t)&Ph,i=this.nodes[o];return i?i.get(t+5,e,n,r):r},bm.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Wy(r));var c=(0===e?n:n>>>e)&Ph,s=o===Uh,u=this.nodes,l=u[c];if(s&&!l)return this;var p=Dm(l,t,e+5,n,r,o,i,a);if(p===l)return this;var f=this.count;if(l){if(!p&&--f<zm)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),c=0,s=1,u=e.length;c<u;c++,s<<=1){var l=e[c];void 0!==l&&c!==r&&(o|=s,a[i++]=l)}return new vm(t,o,a)}(t,u,f,c)}else f++;var d=t&&t===this.ownerID,h=Im(u,c,p,d);return d?(this.count=f,this.nodes=h,this):new bm(t,f,h)};var _m=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};_m.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Yy(n,o[i][0]))return o[i][1];return r},_m.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Wy(r));var c=o===Uh;if(n!==this.keyHash)return c?this:(Fh(a),Fh(i),Nm(this,t,e,n,[r,o]));for(var s=this.entries,u=0,l=s.length;u<l&&!Yy(r,s[u][0]);u++);var p=u<l;if(p?s[u][1]===o:c)return this;if(Fh(a),(c||!p)&&Fh(i),c&&2===l)return new wm(t,this.keyHash,s[1^u]);var f=t&&t===this.ownerID,d=f?s:Dg(s);return p?c?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new _m(t,this.keyHash,d)};var wm=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};wm.prototype.get=function(t,e,n,r){return Yy(n,this.entry[0])?this.entry[1]:r},wm.prototype.update=function(t,e,n,r,o,i,a){var c=o===Uh,s=Yy(r,this.entry[0]);return(s?o===this.entry[1]:c)?this:(Fh(a),c?void Fh(i):s?t&&t===this.ownerID?(this.entry[1]=o,this):new wm(t,this.keyHash,[r,o]):(Fh(i),Nm(this,t,e,Wy(r),[r,o])))},mm.prototype.iterate=_m.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},vm.prototype.iterate=bm.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},wm.prototype.iterate=function(t,e){return t(this.entry)};var Sm,Mm=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&jm(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,r=e.index++,o=void 0;if(n.entry){if(0===r)return Em(t,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Em(t,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Em(t,i.entry);e=this._stack=jm(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(vy);function Em(t,e){return by(t,e[0],e[1])}function jm(t,e){return{node:t,index:0,__prev:e}}function km(t,e,n,r){var o=Object.create(gm);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Cm(){return Sm||(Sm=km(0))}function Om(t,e,n){var r,o;if(t._root){var i={value:!1},a={value:!1};if(r=Dm(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===Uh?-1:1:0)}else{if(n===Uh)return t;o=1,r=new mm(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?km(o,r):Cm()}function Dm(t,e,n,r,o,i,a,c){return t?t.update(e,n,r,o,i,a,c):i===Uh?t:(Fh(c),Fh(a),new wm(e,r,[o,i]))}function Am(t){return t.constructor===wm||t.constructor===_m}function Nm(t,e,n,r,o){if(t.keyHash===r)return new _m(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&Ph,c=(0===n?r:r>>>n)&Ph,s=a===c?[Nm(t,e,n+5,r,o)]:(i=new wm(e,r,o),a<c?[t,i]:[i,t]);return new vm(e,1<<a|1<<c,s)}function xm(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Im(t,e,n,r){var o=r?t:Dg(t);return o[e]=n,o}var Lm=8,Tm=16,zm=8,Rm="@@__IMMUTABLE_LIST__@@";function Bm(t){return Boolean(t&&t[Rm])}var Pm=function(t){function e(e){var n=qm();if(null==e)return n;if(Bm(e))return e;var r=t(e),o=r.size;return 0===o?n:(Ng(o),o>0&&o<Bh?Qm(0,o,5,null,new Fm(r.toArray())):n.withMutations(function(t){t.setSize(o),r.forEach(function(e,n){return t.set(n,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=Hh(this,t))>=0&&t<this.size){var n=Vm(this,t+=this._origin);return n&&n.array[t&Ph]}return e},e.prototype.set=function(t,e){return function(t,e,n){if(e=Hh(t,e),e!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Gm(t,e).set(0,n):Gm(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i={value:!1};e>=Jm(t._capacity)?r=Wm(r,t.__ownerID,0,e,n,i):o=Wm(o,t.__ownerID,t._level,e,n,i);if(!i.value)return t;if(t.__ownerID)return t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t;return Qm(t._origin,t._capacity,t._level,o,r)}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):qm()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Gm(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},e.prototype.pop=function(){return Gm(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Gm(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},e.prototype.shift=function(){return Gm(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],r=0;r<arguments.length;r++){var o=e[r],i=t("string"!=typeof o&&wy(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){n.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(n[0])},e.prototype.setSize=function(t){return Gm(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations(function(r){for(var o=0;o<n.size;o++)r.set(o,t.call(e,r.get(o),o,n))})},e.prototype.slice=function(t,e){var n=this.size;return qh(t,e,n)?this:Gm(this,Wh(t,n),Zh(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,r=Hm(this,e);return new vy(function(){var o=r();return o===Ym?{value:void 0,done:!0}:by(t,e?--n:n++,o)})},e.prototype.__iterate=function(t,e){for(var n,r=e?this.size:0,o=Hm(this,e);(n=o())!==Ym&&!1!==t(n,e?--r:r++,this););return r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qm(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?qm():(this.__ownerID=t,this.__altered=!1,this)},e}(ay);Pm.isList=Bm;var Um=Pm.prototype;Um[Rm]=!0,Um[Rh]=Um.remove,Um.merge=Um.concat,Um.setIn=qg,Um.deleteIn=Um.removeIn=Zg,Um.update=Gg,Um.updateIn=Jg,Um.mergeIn=um,Um.mergeDeepIn=lm,Um.withMutations=pm,Um.wasAltered=hm,Um.asImmutable=dm,Um["@@transducer/init"]=Um.asMutable=fm,Um["@@transducer/step"]=function(t,e){return t.push(e)},Um["@@transducer/result"]=function(t){return t.asImmutable()};var Fm=function(t,e){this.array=t,this.ownerID=e};Fm.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&Ph;if(r>=this.array.length)return new Fm([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var c=Zm(this,t);if(!i)for(var s=0;s<r;s++)c.array[s]=void 0;return o&&(c.array[r]=o),c},Fm.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&Ph;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=Zm(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Km,Ym={};function Hm(t,e){var n=t._origin,r=t._capacity,o=Jm(r),i=t._tail;return a(t._root,t._level,0);function a(t,c,s){return 0===c?function(t,a){var c=a===o?i&&i.array:t&&t.array,s=a>n?0:n-a,u=r-a;u>Bh&&(u=Bh);return function(){if(s===u)return Ym;var t=e?--u:s++;return c&&c[t]}}(t,s):function(t,o,i){var c,s=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);l>Bh&&(l=Bh);return function(){for(;;){if(c){var t=c();if(t!==Ym)return t;c=null}if(u===l)return Ym;var n=e?--l:u++;c=a(s&&s[n],o-5,i+(n<<o))}}}(t,c,s)}}function Qm(t,e,n,r,o,i,a){var c=Object.create(Um);return c.size=e-t,c._origin=t,c._capacity=e,c._level=n,c._root=r,c._tail=o,c.__ownerID=i,c.__hash=a,c.__altered=!1,c}function qm(){return Km||(Km=Qm(0,0,5))}function Wm(t,e,n,r,o,i){var a,c=r>>>n&Ph,s=t&&c<t.array.length;if(!s&&void 0===o)return t;if(n>0){var u=t&&t.array[c],l=Wm(u,e,n-5,r,o,i);return l===u?t:((a=Zm(t,e)).array[c]=l,a)}return s&&t.array[c]===o?t:(i&&Fh(i),a=Zm(t,e),void 0===o&&c===a.array.length-1?a.array.pop():a.array[c]=o,a)}function Zm(t,e){return e&&t&&e===t.ownerID?t:new Fm(t?t.array.slice():[],e)}function Vm(t,e){if(e>=Jm(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&Ph],r-=5;return n}}function Gm(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new Kh,o=t._origin,i=t._capacity,a=o+e,c=void 0===n?i:n<0?i+n:o+n;if(a===o&&c===i)return t;if(a>=c)return t.clear();for(var s=t._level,u=t._root,l=0;a+l<0;)u=new Fm(u&&u.array.length?[void 0,u]:[],r),l+=1<<(s+=5);l&&(a+=l,o+=l,c+=l,i+=l);for(var p=Jm(i),f=Jm(c);f>=1<<s+5;)u=new Fm(u&&u.array.length?[u]:[],r),s+=5;var d=t._tail,h=f<p?Vm(t,c-1):f>p?new Fm([],r):d;if(d&&f>p&&a<i&&d.array.length){for(var y=u=Zm(u,r),g=s;g>5;g-=5){var m=p>>>g&Ph;y=y.array[m]=Zm(y.array[m],r)}y.array[p>>>5&Ph]=d}if(c<i&&(h=h&&h.removeAfter(r,0,c)),a>=f)a-=f,c-=f,s=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<p){for(l=0;u;){var v=a>>>s&Ph;if(v!==f>>>s&Ph)break;v&&(l+=(1<<s)*v),s-=5,u=u.array[v]}u&&a>o&&(u=u.removeBefore(r,s,a-l)),u&&f<p&&(u=u.removeAfter(r,s,f-l)),l&&(a-=l,c-=l)}return t.__ownerID?(t.size=c-a,t._origin=a,t._capacity=c,t._level=s,t._root=u,t._tail=h,t.__hash=void 0,t.__altered=!0,t):Qm(a,c,s,u,h)}function Jm(t){return t<Bh?0:t-1>>>5<<5}var Xm,$m=function(t){function e(t){return null==t?ev():Fy(t)?t:ev().withMutations(function(e){var n=iy(t);Ng(n.size),n.forEach(function(t,n){return e.set(n,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ev()},e.prototype.set=function(t,e){return nv(this,t,e)},e.prototype.remove=function(t){return nv(this,t,Uh)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?tv(e,n,t,this.__hash):0===this.size?ev():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(ym);function tv(t,e,n,r){var o=Object.create($m.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ev(){return Xm||(Xm=tv(Cm(),qm()))}function nv(t,e,n){var r,o,i=t._map,a=t._list,c=i.get(e),s=void 0!==c;if(n===Uh){if(!s)return t;a.size>=Bh&&a.size>=2*i.size?(r=(o=a.filter(function(t,e){return void 0!==t&&c!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=c===a.size-1?a.pop():a.set(c,void 0))}else if(s){if(n===a.get(c)[1])return t;r=i,o=a.set(c,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t.__altered=!0,t):tv(r,o)}$m.isOrderedMap=Fy,$m.prototype[dy]=!0,$m.prototype[Rh]=$m.prototype.remove;var rv="@@__IMMUTABLE_STACK__@@";function ov(t){return Boolean(t&&t[rv])}var iv=function(t){function e(t){return null==t?uv():ov(t)?t:uv().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=Hh(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):sv(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&ov(e))return e;Ng(e.size);var n=this.size,r=this._head;return e.__iterate(function(t){n++,r={value:t,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):sv(n,r)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):uv()},e.prototype.slice=function(e,n){if(qh(e,n,this.size))return this;var r=Wh(e,this.size);if(Zh(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):sv(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?sv(this.size,this._head,t,this.__hash):0===this.size?uv():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new Ny(this.toArray()).__iterate(function(e,r){return t(e,r,n)},e);for(var r=0,o=this._head;o&&!1!==t(o.value,r++,this);)o=o.next;return r},e.prototype.__iterator=function(t,e){if(e)return new Ny(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new vy(function(){if(r){var e=r.value;return r=r.next,by(t,n++,e)}return{value:void 0,done:!0}})},e}(ay);iv.isStack=ov;var av,cv=iv.prototype;function sv(t,e,n,r){var o=Object.create(cv);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function uv(){return av||(av=sv(0))}cv[rv]=!0,cv.shift=cv.pop,cv.unshift=cv.push,cv.unshiftAll=cv.pushAll,cv.withMutations=pm,cv.wasAltered=hm,cv.asImmutable=dm,cv["@@transducer/init"]=cv.asMutable=fm,cv["@@transducer/step"]=function(t,e){return t.unshift(e)},cv["@@transducer/result"]=function(t){return t.asImmutable()};var lv="@@__IMMUTABLE_SET__@@";function pv(t){return Boolean(t&&t[lv])}function fv(t){return pv(t)&&hy(t)}function dv(t,e){if(t===e)return!0;if(!Xh(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||ty(t)!==ty(e)||ny(t)!==ny(e)||hy(t)!==hy(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!ry(t);if(hy(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&Yy(o[1],t)&&(n||Yy(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var a=!0,c=e.__iterate(function(e,r){if(n?!t.has(e):o?!Yy(e,t.get(r,Uh)):!Yy(t.get(r,Uh),e))return a=!1,!1});return a&&t.size===c}function hv(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function yv(t){if(!t||"object"!=typeof t)return t;if(!Xh(t)){if(!Tg(t))return t;t=Cy(t)}if(ty(t)){var e={};return t.__iterate(function(t,n){Pg(n)||(e[n]=yv(t))}),e}var n=[];return t.__iterate(function(t){n.push(yv(t))}),n}var gv=function(t){function e(e){return null==e?wv():pv(e)&&!hy(e)?e:wv().withMutations(function(n){var r=t(e);Ng(r.size),r.forEach(function(t){return n.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(iy(t).keySeq())},e.intersect=function(t){return(t=oy(t).toArray()).length?vv.intersect.apply(e(t.pop()),t):wv()},e.union=function(t){return(t=oy(t).toArray()).length?vv.union.apply(e(t.pop()),t):wv()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return bv(this,this._map.set(t,t))},e.prototype.remove=function(t){return bv(this,this._map.remove(t))},e.prototype.clear=function(){return bv(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=!1,o=bv(this,this._map.mapEntries(function(o){var i=o[1],a=t.call(e,i,i,n);return a!==i&&(r=!0),[a,a]},e));return r?o:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(n){for(var r=0;r<e.length;r++)"string"==typeof e[r]?n.add(e[r]):t(e[r]).forEach(function(t){return n.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map(function(e){return t(e)});var r=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||r.push(t)}),this.withMutations(function(t){r.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map(function(e){return t(e)});var r=[];return this.forEach(function(t){e.some(function(e){return e.includes(t)})&&r.push(t)}),this.withMutations(function(t){r.forEach(function(e){t.remove(e)})})},e.prototype.sort=function(t){return Uv(bg(this,t))},e.prototype.sortBy=function(t,e){return Uv(bg(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e){return t(e,e,n)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(cy);gv.isSet=pv;var mv,vv=gv.prototype;function bv(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function _v(t,e){var n=Object.create(vv);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function wv(){return mv||(mv=_v(Cm()))}vv[lv]=!0,vv[Rh]=vv.remove,vv.merge=vv.concat=vv.union,vv.withMutations=pm,vv.asImmutable=dm,vv["@@transducer/init"]=vv.asMutable=fm,vv["@@transducer/step"]=function(t,e){return t.add(e)},vv["@@transducer/result"]=function(t){return t.asImmutable()},vv.__empty=wv,vv.__make=_v;var Sv,Mv=function(t){function e(t,n,r){if(!(this instanceof e))return new e(t,n,r);if(Ag(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<t&&(r=-r),this._start=t,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-t)/r-1)+1),0===this.size){if(Sv)return Sv;Sv=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+Hh(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return qh(t,n,this.size)?this:(t=Wh(t,this.size),(n=Zh(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==t(o,e?n-++i:i++,this);)o+=e?-r:r;return i},e.prototype.__iterator=function(t,e){var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;return new vy(function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=e?-r:r,by(t,e?n-++i:i++,a)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:dv(this,t)},e}(Dy);function Ev(t,e,n){for(var r=xg(e),o=0;o!==r.length;)if((t=Bg(t,r[o++],Uh))===Uh)return n;return t}function jv(t,e){return Ev(this,t,e)}function kv(t,e){return Ev(t,e,Uh)!==Uh}function Cv(){Ng(this.size);var t={};return this.__iterate(function(e,n){Pg(n)||(t[n]=e)}),t}oy.isIterable=Xh,oy.isKeyed=ty,oy.isIndexed=ny,oy.isAssociative=ry,oy.isOrdered=hy,oy.Iterator=vy,hv(oy,{toArray:function(){Ng(this.size);var t=new Array(this.size||0),e=ty(this),n=0;return this.__iterate(function(r,o){t[n++]=e?[o,r]:r}),t},toIndexedSeq:function(){return new ug(this)},toJS:function(){return yv(this)},toKeyedSeq:function(){return new sg(this,!0)},toMap:function(){return ym(this.toKeyedSeq())},toObject:Cv,toOrderedMap:function(){return $m(this.toKeyedSeq())},toOrderedSet:function(){return Uv(ty(this)?this.valueSeq():this)},toSet:function(){return gv(ty(this)?this.valueSeq():this)},toSetSeq:function(){return new lg(this)},toSeq:function(){return ny(this)?this.toIndexedSeq():ty(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return iv(ty(this)?this.valueSeq():this)},toList:function(){return Pm(ty(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Mg(this,function(t,e){var n=ty(t),r=[t].concat(e).map(function(t){return Xh(t)?n&&(t=iy(t)):t=n?zy(t):Ry(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===r.length)return t;if(1===r.length){var o=r[0];if(o===t||n&&ty(o)||ny(t)&&ny(o))return o}var i=new Ny(r);return n?i=i.toKeyedSeq():ny(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),i}(this,t))},includes:function(t){return this.some(function(e){return Yy(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){Ng(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Mg(this,yg(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var r=ty(t),o=[[],[]];t.__iterate(function(i,a){o[e.call(n,i,a,t)?1:0].push(r?[a,i]:i)});var i=jg(t);return o.map(function(e){return Mg(t,i(e))})}(this,t,e)},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Ng(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ng(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Mg(this,dg(this,t,e))},reduce:function(t,e,n){return xv(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return xv(this,t,e,n,arguments.length<2,!0)},reverse:function(){return Mg(this,hg(this,!0))},slice:function(t,e){return Mg(this,gg(this,t,e,!0))},some:function(t,e){Ng(this.size);var n=!1;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=!0,!1}),n},sort:function(t){return Mg(this,bg(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return Yh(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=ym().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return dv(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Ny(t._cache);var e=t.toSeq().map(Lv).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Tv(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(Qh,null,t)},flatMap:function(t,e){return Mg(this,function(t,e,n){var r=jg(t);return t.toSeq().map(function(o,i){return r(e.call(n,o,i,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Mg(this,vg(this,t,!0))},fromEntrySeq:function(){return new pg(this)},get:function(t,e){return this.find(function(e,n){return Yy(n,t)},void 0,e)},getIn:jv,groupBy:function(t,e){return function(t,e,n){var r=ty(t),o=(hy(t)?$m():ym()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return(t=t||[]).push(r?[a,i]:i),t})});var i=jg(t);return o.map(function(e){return Mg(t,i(e))}).asImmutable()}(this,t,e)},has:function(t){return this.get(t,Uh)!==Uh},hasIn:function(t){return kv(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:oy(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:oy(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return Yy(e,t)})},keySeq:function(){return this.toSeq().map(Iv).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return _g(this,t)},maxBy:function(t,e){return _g(this,e,t)},min:function(t){return _g(this,t?zv(t):Bv)},minBy:function(t,e){return _g(this,e?zv(e):Bv,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Mg(this,mg(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Tv(t),e)},sortBy:function(t,e){return Mg(this,bg(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Mg(this,function(t,e,n){var r=kg(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,c){return e.call(n,t,o,c)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),c=!0;return new vy(function(){if(!c)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,s=o[0],u=o[1];return e.call(n,u,s,i)?2===r?t:by(r,s,u,t):(c=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Tv(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=hy(t),n=ty(t),r=e?1:0;return function(t,e){return e=Hy(e,3432918353),e=Hy(e<<15|e>>>-15,461845907),e=Hy(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Hy(e^e>>>16,2246822507),e=Hy(e^e>>>13,3266489909),e=Qy(e^e>>>16),e}(t.__iterate(n?e?function(t,e){r=31*r+Pv(Wy(t),Wy(e))|0}:function(t,e){r=r+Pv(Wy(t),Wy(e))|0}:e?function(t){r=31*r+Wy(t)|0}:function(t){r=r+Wy(t)|0}),r)}(this))}});var Ov=oy.prototype;Ov[Jh]=!0,Ov[my]=Ov.values,Ov.toJSON=Ov.toArray,Ov.__toStringMapper=zg,Ov.inspect=Ov.toSource=function(){return this.toString()},Ov.chain=Ov.flatMap,Ov.contains=Ov.includes,hv(iy,{flip:function(){return Mg(this,fg(this))},mapEntries:function(t,e){var n=this,r=0;return Mg(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Mg(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var Dv=iy.prototype;Dv[$h]=!0,Dv[my]=Ov.entries,Dv.toJSON=Cv,Dv.__toStringMapper=function(t,e){return zg(e)+": "+zg(t)},hv(ay,{toKeyedSeq:function(){return new sg(this,!1)},filter:function(t,e){return Mg(this,yg(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Mg(this,hg(this,!1))},slice:function(t,e){return Mg(this,gg(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=Wh(t,t<0?this.count():this.size);var r=this.slice(0,t);return Mg(this,1===n?r:r.concat(Dg(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Mg(this,vg(this,t,!1))},get:function(t,e){return(t=Hh(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=Hh(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Mg(this,function(t,e){var n=kg(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate(function(t){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new vy(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?by(n,a++,e):by(n,a++,o.value,o)})},n}(this,t))},interleave:function(){var t=[this].concat(Dg(arguments)),e=Sg(this.toSeq(),Dy.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Mg(this,n)},keySeq:function(){return Mv(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Mg(this,mg(this,t,e,!1))},zip:function(){return Mg(this,Sg(this,Rv,[this].concat(Dg(arguments))))},zipAll:function(){return Mg(this,Sg(this,Rv,[this].concat(Dg(arguments)),!0))},zipWith:function(t){var e=Dg(arguments);return e[0]=this,Mg(this,Sg(this,t,e))}});var Av=ay.prototype;Av[ey]=!0,Av[dy]=!0,hv(cy,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Nv=cy.prototype;function xv(t,e,n,r,o,i){return Ng(t.size),t.__iterate(function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)},i),n}function Iv(t,e){return e}function Lv(t,e){return[e,t]}function Tv(t){return function(){return!t.apply(this,arguments)}}function zv(t){return function(){return-t.apply(this,arguments)}}function Rv(){return Dg(arguments)}function Bv(t,e){return t<e?1:t>e?-1:0}function Pv(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Nv.has=Ov.includes,Nv.contains=Nv.includes,Nv.keys=Nv.values,hv(Oy,Dv),hv(Dy,Av),hv(Ay,Nv);var Uv=function(t){function e(t){return null==t?Hv():fv(t)?t:Hv().withMutations(function(e){var n=cy(t);Ng(n.size),n.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(iy(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(gv);Uv.isOrderedSet=fv;var Fv,Kv=Uv.prototype;function Yv(t,e){var n=Object.create(Kv);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Hv(){return Fv||(Fv=Yv(ev()))}Kv[dy]=!0,Kv.zip=Av.zip,Kv.zipWith=Av.zipWith,Kv.zipAll=Av.zipAll,Kv.__empty=Hv,Kv.__make=Yv;var Qv={LeftThenRight:-1,RightThenLeft:1};var qv=function(t,e){var n;!function(t){if(py(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(fy(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var c=Object.keys(t),s=o._indices={};o._name=e,o._keys=c,o._defaultValues=t;for(var u=0;u<c.length;u++){var l=c[u];s[l]=u,o[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Vv(this)+' with property "'+l+'" since that property name is part of the Record API.'):Jv(o,l)}}return this.__ownerID=void 0,this._values=Pm().withMutations(function(t){t.setSize(a._keys.length),iy(i).forEach(function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)})}),this},o=r.prototype=Object.create(Wv);return o.constructor=r,e&&(r.displayName=e),r};qv.prototype.toString=function(){for(var t,e=Vv(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)e+=(r?", ":"")+(t=n[r])+": "+zg(this.get(t));return e+" }"},qv.prototype.equals=function(t){return this===t||py(t)&&Gv(this).equals(Gv(t))},qv.prototype.hashCode=function(){return Gv(this).hashCode()},qv.prototype.has=function(t){return this._indices.hasOwnProperty(t)},qv.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],r=this._values.get(n);return void 0===r?this._defaultValues[t]:r},qv.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return Zv(this,n)}return this},qv.prototype.remove=function(t){return this.set(t)},qv.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Zv(this,t)},qv.prototype.wasAltered=function(){return this._values.wasAltered()},qv.prototype.toSeq=function(){return Gv(this)},qv.prototype.toJS=function(){return yv(this)},qv.prototype.entries=function(){return this.__iterator(2)},qv.prototype.__iterator=function(t,e){return Gv(this).__iterator(t,e)},qv.prototype.__iterate=function(t,e){return Gv(this).__iterate(t,e)},qv.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?Zv(this,e,t):(this.__ownerID=t,this._values=e,this)},qv.isRecord=py,qv.getDescriptiveName=Vv;var Wv=qv.prototype;function Zv(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._values=e,r.__ownerID=n,r}function Vv(t){return t.constructor.displayName||t.constructor.name||"Record"}function Gv(t){return zy(t._keys.map(function(e){return[e,t.get(e)]}))}function Jv(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Ag(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}Wv[ly]=!0,Wv[Rh]=Wv.remove,Wv.deleteIn=Wv.removeIn=Zg,Wv.getIn=jv,Wv.hasIn=Ov.hasIn,Wv.merge=Xg,Wv.mergeWith=$g,Wv.mergeIn=um,Wv.mergeDeep=cm,Wv.mergeDeepWith=sm,Wv.mergeDeepIn=lm,Wv.setIn=qg,Wv.update=Gg,Wv.updateIn=Jg,Wv.withMutations=pm,Wv.asMutable=fm,Wv.asImmutable=dm,Wv[my]=Wv.entries,Wv.toJSON=Wv.toObject=Ov.toObject,Wv.inspect=Wv.toSource=function(){return this.toString()};var Xv,$v=function(t){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this._value=t,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Xv)return Xv;Xv=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return Yy(this._value,t)},e.prototype.slice=function(t,n){var r=this.size;return qh(t,n,r)?this:new e(this._value,Zh(n,r)-Wh(t,r))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return Yy(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return Yy(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var n=this.size,r=0;r!==n&&!1!==t(this._value,e?n-++r:r++,this););return r},e.prototype.__iterator=function(t,e){var n=this,r=this.size,o=0;return new vy(function(){return o===r?{value:void 0,done:!0}:by(t,e?r-++o:o++,n._value)})},e.prototype.equals=function(t){return t instanceof e?Yy(this._value,t._value):dv(this,t)},e}(Dy);function tb(t,e){return eb([],e||nb,t,"",e&&e.length>2?[]:void 0,{"":t})}function eb(t,e,n,r,o,i){if("string"!=typeof n&&!fy(n)&&(ky(n)||wy(n)||Lg(n))){if(~t.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");t.push(n),o&&""!==r&&o.push(r);var a=e.call(i,r,Cy(n).map(function(r,i){return eb(t,e,r,i,o,n)}),o&&o.slice());return t.pop(),o&&o.pop(),a}return n}function nb(t,e){return ny(e)?e.toList():ty(e)?e.toMap():e.toSet()}var rb="4.3.8",ob={version:rb,Collection:oy,Iterable:oy,Seq:Cy,Map:ym,OrderedMap:$m,List:Pm,Stack:iv,Set:gv,OrderedSet:Uv,PairSorting:Qv,Record:qv,Range:Mv,Repeat:$v,is:Yy,fromJS:tb,hash:Wy,isImmutable:fy,isCollection:Xh,isKeyed:ty,isIndexed:ny,isAssociative:ry,isOrdered:hy,isValueObject:Ky,isPlainObject:Lg,isSeq:uy,isList:Bm,isMap:Uy,isOrderedMap:Fy,isStack:ov,isSet:pv,isOrderedSet:fv,isRecord:py,get:Bg,getIn:Ev,has:Rg,hasIn:kv,merge:em,mergeDeep:rm,mergeWith:nm,mergeDeepWith:om,remove:Fg,removeIn:Wg,set:Kg,setIn:Qg,update:Vg,updateIn:Yg},ib=oy;window;var ab=zh.exports=function(t,e,n){return i={},r.m=o=[function(t,e,n){t.exports=n(10)()},function(e,n){e.exports=t},function(t,e,n){var r;
6
+ */a=c,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=r(t,n(o)))}return t}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)t.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(t,e){return e?t?t+" "+e:t+e:t}a.exports?(e.default=e,a.exports=e):window.classNames=e}();var s=i(c.exports),l={exports:{}};l.exports=function(){var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:Z(t)}function r(t){return c(t)?t:V(t)}function o(t){return s(t)?t:G(t)}function i(t){return a(t)&&!l(t)?t:q(t)}function a(t){return!(!t||!t[p])}function c(t){return!(!t||!t[f])}function s(t){return!(!t||!t[d])}function l(t){return c(t)||s(t)}function u(t){return!(!t||!t[g])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=c,n.isIndexed=s,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var p="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",g="@@__IMMUTABLE_ORDERED__@@",y="delete",h=5,m=1<<h,v=m-1,b={},w={value:!1},S={value:!1};function M(t){return t.value=!1,t}function E(t){t&&(t.value=!0)}function k(){}function C(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function j(t){return void 0===t.size&&(t.size=t.__iterate(D)),t.size}function _(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?j(t)+e:e}function D(){return!0}function O(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function A(t,e){return x(t,e,0)}function N(t,e){return x(t,e,e)}function x(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var L=0,I=1,T=2,z="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",B=z||R;function P(t){this.next=t}function F(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function U(){return{value:void 0,done:!0}}function K(t){return!!Q(t)}function Y(t){return t&&"function"==typeof t.next}function H(t){var e=Q(t);return e&&e.call(t)}function Q(t){var e=t&&(z&&t[z]||t[R]);if("function"==typeof e)return e}function W(t){return t&&"number"==typeof t.length}function Z(t){return null==t?at():a(t)?t.toSeq():lt(t)}function V(t){return null==t?at().toKeyedSeq():a(t)?c(t)?t.toSeq():t.fromEntrySeq():ct(t)}function G(t){return null==t?at():a(t)?c(t)?t.entrySeq():t.toIndexedSeq():st(t)}function q(t){return(null==t?at():a(t)?c(t)?t.entrySeq():t:st(t)).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=L,P.VALUES=I,P.ENTRIES=T,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[B]=function(){return this},e(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(t,e){return pt(this,t,e,!0)},Z.prototype.__iterator=function(t,e){return ft(this,t,e,!0)},e(V,Z),V.prototype.toKeyedSeq=function(){return this},e(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return pt(this,t,e,!1)},G.prototype.__iterator=function(t,e){return ft(this,t,e,!1)},e(q,Z),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},Z.isSeq=it,Z.Keyed=V,Z.Set=q,Z.Indexed=G;var J,X,$,tt="@@__IMMUTABLE_SEQ__@@";function et(t){this._array=t,this.size=t.length}function nt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function rt(t){this._iterable=t,this.size=t.length||t.size}function ot(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[tt])}function at(){return J||(J=new et([]))}function ct(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():Y(t)?new ot(t).fromEntrySeq():K(t)?new rt(t).fromEntrySeq():"object"==typeof t?new nt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=ut(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function lt(t){var e=ut(t)||"object"==typeof t&&new nt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function ut(t){return W(t)?new et(t):Y(t)?new ot(t):K(t)?new rt(t):void 0}function pt(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var c=o[n?i-a:a];if(!1===e(c[1],r?c[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function ft(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new P(function(){var t=o[n?i-a:a];return a++>i?U():F(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function dt(t,e){return e?gt(e,t,"",{"":t}):yt(t)}function gt(t,e,n,r){return Array.isArray(e)?t.call(r,n,G(e).map(function(n,r){return gt(t,n,r,e)})):ht(e)?t.call(r,n,V(e).map(function(n,r){return gt(t,n,r,e)})):e}function yt(t){return Array.isArray(t)?G(t).map(yt).toList():ht(t)?V(t).map(yt).toMap():t}function ht(t){return t&&(t.constructor===Object||void 0===t.constructor)}function mt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function vt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||c(t)!==c(e)||s(t)!==s(e)||u(t)!==u(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!l(t);if(u(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&mt(o[1],t)&&(n||mt(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var p=!0,f=e.__iterate(function(e,r){if(n?!t.has(e):o?!mt(e,t.get(r,b)):!mt(t.get(r,b),e))return p=!1,!1});return p&&t.size===f}function bt(t,e){if(!(this instanceof bt))return new bt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(X)return X;X=this}}function wt(t,e){if(!t)throw new Error(e)}function St(t,e,n){if(!(this instanceof St))return new St(t,e,n);if(wt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if($)return $;$=this}}function Mt(){throw TypeError("Abstract")}function Et(){}function kt(){}function Ct(){}Z.prototype[tt]=!0,e(et,G),et.prototype.get=function(t,e){return this.has(t)?this._array[_(this,t)]:e},et.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},et.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new P(function(){return o>r?U():F(t,o,n[e?r-o++:o++])})},e(nt,V),nt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},nt.prototype.has=function(t){return this._object.hasOwnProperty(t)},nt.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},nt.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new P(function(){var a=r[e?o-i:i];return i++>o?U():F(t,a,n[a])})},nt.prototype[g]=!0,e(rt,G),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=H(this._iterable),r=0;if(Y(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=H(this._iterable);if(!Y(n))return new P(U);var r=0;return new P(function(){var e=n.next();return e.done?e:F(t,r++,e.value)})},e(ot,G),ot.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},ot.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new P(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return F(t,o,r[o++])})},e(bt,G),bt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},bt.prototype.get=function(t,e){return this.has(t)?this._value:e},bt.prototype.includes=function(t){return mt(this._value,t)},bt.prototype.slice=function(t,e){var n=this.size;return O(t,e,n)?this:new bt(this._value,N(e,n)-A(t,n))},bt.prototype.reverse=function(){return this},bt.prototype.indexOf=function(t){return mt(this._value,t)?0:-1},bt.prototype.lastIndexOf=function(t){return mt(this._value,t)?this.size:-1},bt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},bt.prototype.__iterator=function(t,e){var n=this,r=0;return new P(function(){return r<n.size?F(t,r++,n._value):U()})},bt.prototype.equals=function(t){return t instanceof bt?mt(this._value,t._value):vt(t)},e(St,G),St.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},St.prototype.get=function(t,e){return this.has(t)?this._start+_(this,t)*this._step:e},St.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},St.prototype.slice=function(t,e){return O(t,e,this.size)?this:(t=A(t,this.size),(e=N(e,this.size))<=t?new St(0,0):new St(this.get(t,this._end),this.get(e,this._end),this._step))},St.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},St.prototype.lastIndexOf=function(t){return this.indexOf(t)},St.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},St.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new P(function(){var a=o;return o+=e?-r:r,i>n?U():F(t,i++,a)})},St.prototype.equals=function(t){return t instanceof St?this._start===t._start&&this._end===t._end&&this._step===t._step:vt(this,t)},e(Mt,n),e(Et,Mt),e(kt,Mt),e(Ct,Mt),Mt.Keyed=Et,Mt.Indexed=kt,Mt.Set=Ct;var jt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function _t(t){return t>>>1&1073741824|3221225471&t}function Dt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return _t(n)}if("string"===e)return t.length>Pt?Ot(t):At(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return Nt(t);if("function"==typeof t.toString)return At(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Ot(t){var e=Kt[t];return void 0===e&&(e=At(t),Ut===Ft&&(Ut=0,Kt={}),Ut++,Kt[t]=e),e}function At(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return _t(e)}function Nt(t){var e;if(zt&&void 0!==(e=Tt.get(t)))return e;if(void 0!==(e=t[Bt]))return e;if(!Lt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Bt]))return e;if(void 0!==(e=It(t)))return e}if(e=++Rt,1073741824&Rt&&(Rt=0),zt)Tt.set(t,e);else{if(void 0!==xt&&!1===xt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Lt)Object.defineProperty(t,Bt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Bt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Bt]=e}}return e}var xt=Object.isExtensible,Lt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function It(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Tt,zt="function"==typeof WeakMap;zt&&(Tt=new WeakMap);var Rt=0,Bt="__immutablehash__";"function"==typeof Symbol&&(Bt=Symbol(Bt));var Pt=16,Ft=255,Ut=0,Kt={};function Yt(t){wt(t!==1/0,"Cannot perform this action with an infinite size.")}function Ht(t){return null==t?oe():Qt(t)&&!u(t)?t:oe().withMutations(function(e){var n=r(t);Yt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Qt(t){return!(!t||!t[Zt])}e(Ht,Et),Ht.prototype.toString=function(){return this.__toString("Map {","}")},Ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Ht.prototype.set=function(t,e){return ie(this,t,e)},Ht.prototype.setIn=function(t,e){return this.updateIn(t,b,function(){return e})},Ht.prototype.remove=function(t){return ie(this,t,b)},Ht.prototype.deleteIn=function(t){return this.updateIn(t,function(){return b})},Ht.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Ht.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=he(this,Mn(t),e,n);return r===b?void 0:r},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):oe()},Ht.prototype.merge=function(){return fe(this,void 0,arguments)},Ht.prototype.mergeWith=function(e){return fe(this,e,t.call(arguments,1))},Ht.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,oe(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},Ht.prototype.mergeDeep=function(){return fe(this,de,arguments)},Ht.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return fe(this,ge(e),n)},Ht.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,oe(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},Ht.prototype.sort=function(t){return Ke(pn(this,t))},Ht.prototype.sortBy=function(t,e){return Ke(pn(this,e,t))},Ht.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Ht.prototype.asImmutable=function(){return this.__ensureOwner()},Ht.prototype.wasAltered=function(){return this.__altered},Ht.prototype.__iterator=function(t,e){return new te(this,t,e)},Ht.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Ht.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?re(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ht.isMap=Qt;var Wt,Zt="@@__IMMUTABLE_MAP__@@",Vt=Ht.prototype;function Gt(t,e){this.ownerID=t,this.entries=e}function qt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Jt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Xt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function $t(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function te(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&ne(t._root)}function ee(t,e){return F(t,e[0],e[1])}function ne(t,e){return{node:t,index:0,__prev:e}}function re(t,e,n,r){var o=Object.create(Vt);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function oe(){return Wt||(Wt=re(0))}function ie(t,e,n){var r,o;if(t._root){var i=M(w),a=M(S);if(r=ae(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===b?-1:1:0)}else{if(n===b)return t;o=1,r=new Gt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?re(o,r):oe()}function ae(t,e,n,r,o,i,a,c){return t?t.update(e,n,r,o,i,a,c):i===b?t:(E(c),E(a),new $t(e,r,[o,i]))}function ce(t){return t.constructor===$t||t.constructor===Xt}function se(t,e,n,r,o){if(t.keyHash===r)return new Xt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&v,c=(0===n?r:r>>>n)&v;return new qt(e,1<<a|1<<c,a===c?[se(t,e,n+h,r,o)]:(i=new $t(e,r,o),a<c?[t,i]:[i,t]))}function le(t,e,n,r){t||(t=new k);for(var o=new $t(t,Dt(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}function ue(t,e,n,r){for(var o=0,i=0,a=new Array(n),c=0,s=1,l=e.length;c<l;c++,s<<=1){var u=e[c];void 0!==u&&c!==r&&(o|=s,a[i++]=u)}return new qt(t,o,a)}function pe(t,e,n,r,o){for(var i=0,a=new Array(m),c=0;0!==n;c++,n>>>=1)a[c]=1&n?e[i++]:void 0;return a[r]=o,new Jt(t,i+1,a)}function fe(t,e,n){for(var o=[],i=0;i<n.length;i++){var c=n[i],s=r(c);a(c)||(s=s.map(function(t){return dt(t)})),o.push(s)}return ye(t,e,o)}function de(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):mt(t,e)?t:e}function ge(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return mt(e,o)?e:o}}function ye(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,b,function(t){return t===b?n:e(t,n,r)})}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)}):t.constructor(n[0])}function he(t,e,n,r){var o=t===b,i=e.next();if(i.done){var a=o?n:t,c=r(a);return c===a?t:c}wt(o||t&&t.set,"invalid keyPath");var s=i.value,l=o?b:t.get(s,b),u=he(l,e,n,r);return u===l?t:u===b?t.remove(s):(o?oe():t).set(s,u)}function me(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ve(t,e,n,r){var o=r?t:C(t);return o[e]=n,o}function be(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,c=0;c<o;c++)c===e?(i[c]=n,a=-1):i[c]=t[c+a];return i}function we(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}Vt[Zt]=!0,Vt[y]=Vt.remove,Vt.removeIn=Vt.deleteIn,Gt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(mt(n,o[i][0]))return o[i][1];return r},Gt.prototype.update=function(t,e,n,r,o,i,a){for(var c=o===b,s=this.entries,l=0,u=s.length;l<u&&!mt(r,s[l][0]);l++);var p=l<u;if(p?s[l][1]===o:c)return this;if(E(a),(c||!p)&&E(i),!c||1!==s.length){if(!p&&!c&&s.length>=Se)return le(t,s,r,o);var f=t&&t===this.ownerID,d=f?s:C(s);return p?c?l===u-1?d.pop():d[l]=d.pop():d[l]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new Gt(t,d)}},qt.prototype.get=function(t,e,n,r){void 0===e&&(e=Dt(n));var o=1<<((0===t?e:e>>>t)&v),i=this.bitmap;return 0===(i&o)?r:this.nodes[me(i&o-1)].get(t+h,e,n,r)},qt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Dt(r));var c=(0===e?n:n>>>e)&v,s=1<<c,l=this.bitmap,u=0!==(l&s);if(!u&&o===b)return this;var p=me(l&s-1),f=this.nodes,d=u?f[p]:void 0,g=ae(d,t,e+h,n,r,o,i,a);if(g===d)return this;if(!u&&g&&f.length>=Me)return pe(t,f,l,c,g);if(u&&!g&&2===f.length&&ce(f[1^p]))return f[1^p];if(u&&g&&1===f.length&&ce(g))return g;var y=t&&t===this.ownerID,m=u?g?l:l^s:l|s,w=u?g?ve(f,p,g,y):we(f,p,y):be(f,p,g,y);return y?(this.bitmap=m,this.nodes=w,this):new qt(t,m,w)},Jt.prototype.get=function(t,e,n,r){void 0===e&&(e=Dt(n));var o=(0===t?e:e>>>t)&v,i=this.nodes[o];return i?i.get(t+h,e,n,r):r},Jt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Dt(r));var c=(0===e?n:n>>>e)&v,s=o===b,l=this.nodes,u=l[c];if(s&&!u)return this;var p=ae(u,t,e+h,n,r,o,i,a);if(p===u)return this;var f=this.count;if(u){if(!p&&--f<Ee)return ue(t,l,f,c)}else f++;var d=t&&t===this.ownerID,g=ve(l,c,p,d);return d?(this.count=f,this.nodes=g,this):new Jt(t,f,g)},Xt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(mt(n,o[i][0]))return o[i][1];return r},Xt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=Dt(r));var c=o===b;if(n!==this.keyHash)return c?this:(E(a),E(i),se(this,t,e,n,[r,o]));for(var s=this.entries,l=0,u=s.length;l<u&&!mt(r,s[l][0]);l++);var p=l<u;if(p?s[l][1]===o:c)return this;if(E(a),(c||!p)&&E(i),c&&2===u)return new $t(t,this.keyHash,s[1^l]);var f=t&&t===this.ownerID,d=f?s:C(s);return p?c?l===u-1?d.pop():d[l]=d.pop():d[l]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new Xt(t,this.keyHash,d)},$t.prototype.get=function(t,e,n,r){return mt(n,this.entry[0])?this.entry[1]:r},$t.prototype.update=function(t,e,n,r,o,i,a){var c=o===b,s=mt(r,this.entry[0]);return(s?o===this.entry[1]:c)?this:(E(a),c?void E(i):s?t&&t===this.ownerID?(this.entry[1]=o,this):new $t(t,this.keyHash,[r,o]):(E(i),se(this,t,e,Dt(r),[r,o])))},Gt.prototype.iterate=Xt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},qt.prototype.iterate=Jt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},$t.prototype.iterate=function(t,e){return t(this.entry)},e(te,P),te.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return ee(t,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return ee(t,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return ee(t,i.entry);e=this._stack=ne(i,e)}continue}e=this._stack=this._stack.__prev}return U()};var Se=m/4,Me=m/2,Ee=m/4;function ke(t){var e=Ie();if(null==t)return e;if(Ce(t))return t;var n=o(t),r=n.size;return 0===r?e:(Yt(r),r>0&&r<m?Le(0,r,h,null,new De(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function Ce(t){return!(!t||!t[je])}e(ke,kt),ke.of=function(){return this(arguments)},ke.prototype.toString=function(){return this.__toString("List [","]")},ke.prototype.get=function(t,e){if((t=_(this,t))>=0&&t<this.size){var n=Be(this,t+=this._origin);return n&&n.array[t&v]}return e},ke.prototype.set=function(t,e){return Te(this,t,e)},ke.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ke.prototype.insert=function(t,e){return this.splice(t,0,e)},ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ie()},ke.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Pe(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},ke.prototype.pop=function(){return Pe(this,0,-1)},ke.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Pe(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},ke.prototype.shift=function(){return Pe(this,1)},ke.prototype.merge=function(){return Fe(this,void 0,arguments)},ke.prototype.mergeWith=function(e){return Fe(this,e,t.call(arguments,1))},ke.prototype.mergeDeep=function(){return Fe(this,de,arguments)},ke.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Fe(this,ge(e),n)},ke.prototype.setSize=function(t){return Pe(this,0,t)},ke.prototype.slice=function(t,e){var n=this.size;return O(t,e,n)?this:Pe(this,A(t,n),N(e,n))},ke.prototype.__iterator=function(t,e){var n=0,r=xe(this,e);return new P(function(){var e=r();return e===Ne?U():F(t,n++,e)})},ke.prototype.__iterate=function(t,e){for(var n,r=0,o=xe(this,e);(n=o())!==Ne&&!1!==t(n,r++,this););return r},ke.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Le(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ke.isList=Ce;var je="@@__IMMUTABLE_LIST__@@",_e=ke.prototype;function De(t,e){this.array=t,this.ownerID=e}_e[je]=!0,_e[y]=_e.remove,_e.setIn=Vt.setIn,_e.deleteIn=_e.removeIn=Vt.removeIn,_e.update=Vt.update,_e.updateIn=Vt.updateIn,_e.mergeIn=Vt.mergeIn,_e.mergeDeepIn=Vt.mergeDeepIn,_e.withMutations=Vt.withMutations,_e.asMutable=Vt.asMutable,_e.asImmutable=Vt.asImmutable,_e.wasAltered=Vt.wasAltered,De.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&v;if(r>=this.array.length)return new De([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-h,n))===a&&i)return this}if(i&&!o)return this;var c=Re(this,t);if(!i)for(var s=0;s<r;s++)c.array[s]=void 0;return o&&(c.array[r]=o),c},De.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&v;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-h,n))===i&&o===this.array.length-1)return this}var a=Re(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Oe,Ae,Ne={};function xe(t,e){var n=t._origin,r=t._capacity,o=Ue(r),i=t._tail;return a(t._root,t._level,0);function a(t,e,n){return 0===e?c(t,n):s(t,e,n)}function c(t,a){var c=a===o?i&&i.array:t&&t.array,s=a>n?0:n-a,l=r-a;return l>m&&(l=m),function(){if(s===l)return Ne;var t=e?--l:s++;return c&&c[t]}}function s(t,o,i){var c,s=t&&t.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>m&&(u=m),function(){for(;;){if(c){var t=c();if(t!==Ne)return t;c=null}if(l===u)return Ne;var n=e?--u:l++;c=a(s&&s[n],o-h,i+(n<<o))}}}}function Le(t,e,n,r,o,i,a){var c=Object.create(_e);return c.size=e-t,c._origin=t,c._capacity=e,c._level=n,c._root=r,c._tail=o,c.__ownerID=i,c.__hash=a,c.__altered=!1,c}function Ie(){return Oe||(Oe=Le(0,0,h))}function Te(t,e,n){if((e=_(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Pe(t,e).set(0,n):Pe(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=M(S);return e>=Ue(t._capacity)?r=ze(r,t.__ownerID,0,e,n,i):o=ze(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Le(t._origin,t._capacity,t._level,o,r):t}function ze(t,e,n,r,o,i){var a,c=r>>>n&v,s=t&&c<t.array.length;if(!s&&void 0===o)return t;if(n>0){var l=t&&t.array[c],u=ze(l,e,n-h,r,o,i);return u===l?t:((a=Re(t,e)).array[c]=u,a)}return s&&t.array[c]===o?t:(E(i),a=Re(t,e),void 0===o&&c===a.array.length-1?a.array.pop():a.array[c]=o,a)}function Re(t,e){return e&&t&&e===t.ownerID?t:new De(t?t.array.slice():[],e)}function Be(t,e){if(e>=Ue(t._capacity))return t._tail;if(e<1<<t._level+h){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&v],r-=h;return n}}function Pe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new k,o=t._origin,i=t._capacity,a=o+e,c=void 0===n?i:n<0?i+n:o+n;if(a===o&&c===i)return t;if(a>=c)return t.clear();for(var s=t._level,l=t._root,u=0;a+u<0;)l=new De(l&&l.array.length?[void 0,l]:[],r),u+=1<<(s+=h);u&&(a+=u,o+=u,c+=u,i+=u);for(var p=Ue(i),f=Ue(c);f>=1<<s+h;)l=new De(l&&l.array.length?[l]:[],r),s+=h;var d=t._tail,g=f<p?Be(t,c-1):f>p?new De([],r):d;if(d&&f>p&&a<i&&d.array.length){for(var y=l=Re(l,r),m=s;m>h;m-=h){var b=p>>>m&v;y=y.array[b]=Re(y.array[b],r)}y.array[p>>>h&v]=d}if(c<i&&(g=g&&g.removeAfter(r,0,c)),a>=f)a-=f,c-=f,s=h,l=null,g=g&&g.removeBefore(r,0,a);else if(a>o||f<p){for(u=0;l;){var w=a>>>s&v;if(w!==f>>>s&v)break;w&&(u+=(1<<s)*w),s-=h,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,s,a-u)),l&&f<p&&(l=l.removeAfter(r,s,f-u)),u&&(a-=u,c-=u)}return t.__ownerID?(t.size=c-a,t._origin=a,t._capacity=c,t._level=s,t._root=l,t._tail=g,t.__hash=void 0,t.__altered=!0,t):Le(a,c,s,l,g)}function Fe(t,e,n){for(var r=[],i=0,c=0;c<n.length;c++){var s=n[c],l=o(s);l.size>i&&(i=l.size),a(s)||(l=l.map(function(t){return dt(t)})),r.push(l)}return i>t.size&&(t=t.setSize(i)),ye(t,e,r)}function Ue(t){return t<m?0:t-1>>>h<<h}function Ke(t){return null==t?Qe():Ye(t)?t:Qe().withMutations(function(e){var n=r(t);Yt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Ye(t){return Qt(t)&&u(t)}function He(t,e,n,r){var o=Object.create(Ke.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Qe(){return Ae||(Ae=He(oe(),Ie()))}function We(t,e,n){var r,o,i=t._map,a=t._list,c=i.get(e),s=void 0!==c;if(n===b){if(!s)return t;a.size>=m&&a.size>=2*i.size?(r=(o=a.filter(function(t,e){return void 0!==t&&c!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=c===a.size-1?a.pop():a.set(c,void 0))}else if(s){if(n===a.get(c)[1])return t;r=i,o=a.set(c,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):He(r,o)}function Ze(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ve(t){this._iter=t,this.size=t.size}function Ge(t){this._iter=t,this.size=t.size}function qe(t){this._iter=t,this.size=t.size}function Je(t){var e=bn(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=wn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===T){var r=t.__iterator(e,n);return new P(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===I?L:I,n)},e}function Xe(t,e,n){var r=bn(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,b);return i===b?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(T,o);return new P(function(){var o=i.next();if(o.done)return o;var a=o.value,c=a[0];return F(r,c,e.call(n,a[1],c,t),o)})},r}function $e(t,e){var n=bn(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Je(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=wn,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function tn(t,e,n,r){var o=bn(t);return r&&(o.has=function(r){var o=t.get(r,b);return o!==b&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,b);return i!==b&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,c=0;return t.__iterate(function(t,i,s){if(e.call(n,t,i,s))return c++,o(t,r?i:c-1,a)},i),c},o.__iteratorUncached=function(o,i){var a=t.__iterator(T,i),c=0;return new P(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,l=s[0],u=s[1];if(e.call(n,u,l,t))return F(o,r?l:c++,u,i)}})},o}function en(t,e,n){var r=Ht().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}function nn(t,e,n){var r=c(t),o=(u(t)?Ke():Ht()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return(t=t||[]).push(r?[a,i]:i),t})});var i=vn(t);return o.map(function(e){return yn(t,i(e))})}function rn(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),O(e,n,o))return t;var i=A(e,o),a=N(n,o);if(i!=i||a!=a)return rn(t.toSeq().cacheResult(),e,n,r);var c,s=a-i;s==s&&(c=s<0?0:s);var l=bn(t);return l.size=0===c?c:t.size&&c||void 0,!r&&it(t)&&c>=0&&(l.get=function(e,n){return(e=_(this,e))>=0&&e<c?t.get(e+i,n):n}),l.__iterateUncached=function(e,n){var o=this;if(0===c)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,s=!0,l=0;return t.__iterate(function(t,n){if(!s||!(s=a++<i))return l++,!1!==e(t,r?n:l-1,o)&&l!==c}),l},l.__iteratorUncached=function(e,n){if(0!==c&&n)return this.cacheResult().__iterator(e,n);var o=0!==c&&t.__iterator(e,n),a=0,s=0;return new P(function(){for(;a++<i;)o.next();if(++s>c)return U();var t=o.next();return r||e===I?t:F(e,s-1,e===L?void 0:t.value[1],t)})},l}function on(t,e,n){var r=bn(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,c){return e.call(n,t,o,c)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(T,o),c=!0;return new P(function(){if(!c)return U();var t=a.next();if(t.done)return t;var o=t.value,s=o[0],l=o[1];return e.call(n,l,s,i)?r===T?t:F(r,s,l,t):(c=!1,U())})},r}function an(t,e,n,r){var o=bn(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var c=!0,s=0;return t.__iterate(function(t,i,l){if(!c||!(c=e.call(n,t,i,l)))return s++,o(t,r?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var c=t.__iterator(T,i),s=!0,l=0;return new P(function(){var t,i,u;do{if((t=c.next()).done)return r||o===I?t:F(o,l++,o===L?void 0:t.value[1],t);var p=t.value;i=p[0],u=p[1],s&&(s=e.call(n,u,i,a))}while(s);return o===T?t:F(o,i,u,t)})},o}function cn(t,e){var n=c(t),o=[t].concat(e).map(function(t){return a(t)?n&&(t=r(t)):t=n?ct(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&c(i)||s(t)&&s(i))return i}var l=new et(o);return n?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}function sn(t,e,n){var r=bn(t);return r.__iterateUncached=function(r,o){var i=0,c=!1;function s(t,l){var u=this;t.__iterate(function(t,o){return(!e||l<e)&&a(t)?s(t,l+1):!1===r(t,n?o:i++,u)&&(c=!0),!c},o)}return s(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),c=[],s=0;return new P(function(){for(;i;){var t=i.next();if(!1===t.done){var l=t.value;if(r===T&&(l=l[1]),e&&!(c.length<e)||!a(l))return n?t:F(r,s++,l,t);c.push(i),i=l.__iterator(r,o)}else i=c.pop()}return U()})},r}function ln(t,e,n){var r=vn(t);return t.toSeq().map(function(o,i){return r(e.call(n,o,i,t))}).flatten(!0)}function un(t,e){var n=bn(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate(function(t,r){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(I,r),a=0;return new P(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,e):F(n,a++,o.value,o)})},n}function pn(t,e,n){e||(e=Sn);var r=c(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?V(i):s(t)?G(i):q(i)}function fn(t,e,n){if(e||(e=Sn),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return dn(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return dn(e,t,n)?n:t})}function dn(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function gn(t,e,r){var o=bn(t);return o.size=new et(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(I,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=n(t),H(o?t.reverse():t)}),a=0,c=!1;return new P(function(){var n;return c||(n=i.map(function(t){return t.next()}),c=n.some(function(t){return t.done})),c?U():F(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function yn(t,e){return it(t)?e:t.constructor(e)}function hn(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function mn(t){return Yt(t.size),j(t)}function vn(t){return c(t)?r:s(t)?o:i}function bn(t){return Object.create((c(t)?V:s(t)?G:q).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function Sn(t,e){return t>e?1:t<e?-1:0}function Mn(t){var e=H(t);if(!e){if(!W(t))throw new TypeError("Expected iterable or array-like: "+t);e=H(n(t))}return e}function En(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);_n(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=Ht(i)},o=r.prototype=Object.create(kn);return o.constructor=r,r}e(Ke,Ht),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Qe()},Ke.prototype.set=function(t,e){return We(this,t,e)},Ke.prototype.remove=function(t){return We(this,t,b)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Ke.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ke.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?He(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Ke.isOrderedMap=Ye,Ke.prototype[g]=!0,Ke.prototype[y]=Ke.prototype.remove,e(Ze,V),Ze.prototype.get=function(t,e){return this._iter.get(t,e)},Ze.prototype.has=function(t){return this._iter.has(t)},Ze.prototype.valueSeq=function(){return this._iter.valueSeq()},Ze.prototype.reverse=function(){var t=this,e=$e(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Ze.prototype.map=function(t,e){var n=this,r=Xe(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Ze.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?mn(this):0,function(o){return t(o,e?--n:n++,r)}),e)},Ze.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(I,e),r=e?mn(this):0;return new P(function(){var o=n.next();return o.done?o:F(t,e?--r:r++,o.value,o)})},Ze.prototype[g]=!0,e(Ve,G),Ve.prototype.includes=function(t){return this._iter.includes(t)},Ve.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Ve.prototype.__iterator=function(t,e){var n=this._iter.__iterator(I,e),r=0;return new P(function(){var e=n.next();return e.done?e:F(t,r++,e.value,e)})},e(Ge,q),Ge.prototype.has=function(t){return this._iter.includes(t)},Ge.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Ge.prototype.__iterator=function(t,e){var n=this._iter.__iterator(I,e);return new P(function(){var e=n.next();return e.done?e:F(t,e.value,e.value,e)})},e(qe,V),qe.prototype.entrySeq=function(){return this._iter.toSeq()},qe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){hn(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},qe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(I,e);return new P(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){hn(r);var o=a(r);return F(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},Ve.prototype.cacheResult=Ze.prototype.cacheResult=Ge.prototype.cacheResult=qe.prototype.cacheResult=wn,e(En,Et),En.prototype.toString=function(){return this.__toString(jn(this)+" {","}")},En.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},En.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},En.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Cn(this,oe()))},En.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+jn(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Cn(this,n)},En.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Cn(this,e)},En.prototype.wasAltered=function(){return this._map.wasAltered()},En.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},En.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},En.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Cn(this,e,t):(this.__ownerID=t,this._map=e,this)};var kn=En.prototype;function Cn(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function jn(t){return t._name||t.constructor.name||"Record"}function _n(t,e){try{e.forEach(Dn.bind(void 0,t))}catch(t){}}function Dn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){wt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function On(t){return null==t?zn():An(t)&&!u(t)?t:zn().withMutations(function(e){var n=i(t);Yt(n.size),n.forEach(function(t){return e.add(t)})})}function An(t){return!(!t||!t[xn])}kn[y]=kn.remove,kn.deleteIn=kn.removeIn=Vt.removeIn,kn.merge=Vt.merge,kn.mergeWith=Vt.mergeWith,kn.mergeIn=Vt.mergeIn,kn.mergeDeep=Vt.mergeDeep,kn.mergeDeepWith=Vt.mergeDeepWith,kn.mergeDeepIn=Vt.mergeDeepIn,kn.setIn=Vt.setIn,kn.update=Vt.update,kn.updateIn=Vt.updateIn,kn.withMutations=Vt.withMutations,kn.asMutable=Vt.asMutable,kn.asImmutable=Vt.asImmutable,e(On,Ct),On.of=function(){return this(arguments)},On.fromKeys=function(t){return this(r(t).keySeq())},On.prototype.toString=function(){return this.__toString("Set {","}")},On.prototype.has=function(t){return this._map.has(t)},On.prototype.add=function(t){return In(this,this._map.set(t,!0))},On.prototype.remove=function(t){return In(this,this._map.remove(t))},On.prototype.clear=function(){return In(this,this._map.clear())},On.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},On.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},On.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},On.prototype.merge=function(){return this.union.apply(this,arguments)},On.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},On.prototype.sort=function(t){return Rn(pn(this,t))},On.prototype.sortBy=function(t,e){return Rn(pn(this,e,t))},On.prototype.wasAltered=function(){return this._map.wasAltered()},On.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},On.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},On.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},On.isSet=An;var Nn,xn="@@__IMMUTABLE_SET__@@",Ln=On.prototype;function In(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Tn(t,e){var n=Object.create(Ln);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function zn(){return Nn||(Nn=Tn(oe()))}function Rn(t){return null==t?Kn():Bn(t)?t:Kn().withMutations(function(e){var n=i(t);Yt(n.size),n.forEach(function(t){return e.add(t)})})}function Bn(t){return An(t)&&u(t)}Ln[xn]=!0,Ln[y]=Ln.remove,Ln.mergeDeep=Ln.merge,Ln.mergeDeepWith=Ln.mergeWith,Ln.withMutations=Vt.withMutations,Ln.asMutable=Vt.asMutable,Ln.asImmutable=Vt.asImmutable,Ln.__empty=zn,Ln.__make=Tn,e(Rn,On),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(t){return this(r(t).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=Bn;var Pn,Fn=Rn.prototype;function Un(t,e){var n=Object.create(Fn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Kn(){return Pn||(Pn=Un(Qe()))}function Yn(t){return null==t?Gn():Hn(t)?t:Gn().unshiftAll(t)}function Hn(t){return!(!t||!t[Wn])}Fn[g]=!0,Fn.__empty=Kn,Fn.__make=Un,e(Yn,kt),Yn.of=function(){return this(arguments)},Yn.prototype.toString=function(){return this.__toString("Stack [","]")},Yn.prototype.get=function(t,e){var n=this._head;for(t=_(this,t);n&&t--;)n=n.next;return n?n.value:e},Yn.prototype.peek=function(){return this._head&&this._head.value},Yn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Vn(t,e)},Yn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Yt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Vn(e,n)},Yn.prototype.pop=function(){return this.slice(1)},Yn.prototype.unshift=function(){return this.push.apply(this,arguments)},Yn.prototype.unshiftAll=function(t){return this.pushAll(t)},Yn.prototype.shift=function(){return this.pop.apply(this,arguments)},Yn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Yn.prototype.slice=function(t,e){if(O(t,e,this.size))return this;var n=A(t,this.size);if(N(e,this.size)!==this.size)return kt.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Vn(r,o)},Yn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Vn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Yn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Yn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new P(function(){if(r){var e=r.value;return r=r.next,F(t,n++,e)}return U()})},Yn.isStack=Hn;var Qn,Wn="@@__IMMUTABLE_STACK__@@",Zn=Yn.prototype;function Vn(t,e,n,r){var o=Object.create(Zn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Qn||(Qn=Vn(0))}function qn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Zn[Wn]=!0,Zn.withMutations=Vt.withMutations,Zn.asMutable=Vt.asMutable,Zn.asImmutable=Vt.asImmutable,Zn.wasAltered=Vt.wasAltered,n.Iterator=P,qn(n,{toArray:function(){Yt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Ve(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Ze(this,!0)},toMap:function(){return Ht(this.toKeyedSeq())},toObject:function(){Yt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return Rn(c(this)?this.valueSeq():this)},toSet:function(){return On(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Yn(c(this)?this.valueSeq():this)},toList:function(){return ke(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return yn(this,cn(this,t.call(arguments,0)))},includes:function(t){return this.some(function(e){return mt(e,t)})},entries:function(){return this.__iterator(T)},every:function(t,e){Yt(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return yn(this,tn(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Yt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Yt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(L)},map:function(t,e){return yn(this,Xe(this,t,e))},reduce:function(t,e,n){var r,o;return Yt(this.size),arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return yn(this,$e(this,!0))},slice:function(t,e){return yn(this,rn(this,t,e,!0))},some:function(t,e){return!this.every(er(t),e)},sort:function(t){return yn(this,pn(this,t))},values:function(){return this.__iterator(I)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return j(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return en(this,t,e)},equals:function(t){return vt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(tr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(er(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(D)},flatMap:function(t,e){return yn(this,ln(this,t,e))},flatten:function(t){return yn(this,sn(this,t,!0))},fromEntrySeq:function(){return new qe(this)},get:function(t,e){return this.find(function(e,n){return mt(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,o=Mn(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return e}return r},groupBy:function(t,e){return nn(this,t,e)},has:function(t){return this.get(t,b)!==b},hasIn:function(t){return this.getIn(t,b)!==b},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return fn(this,t)},maxBy:function(t,e){return fn(this,e,t)},min:function(t){return fn(this,t?nr(t):ir)},minBy:function(t,e){return fn(this,e?nr(e):ir,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return yn(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return yn(this,an(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(er(t),e)},sortBy:function(t,e){return yn(this,pn(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return yn(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return yn(this,on(this,t,e))},takeUntil:function(t,e){return this.takeWhile(er(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Jn=n.prototype;Jn[p]=!0,Jn[B]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=rr,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),qn(r,{flip:function(){return yn(this,Je(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return mt(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return mt(e,t)})},mapEntries:function(t,e){var n=this,r=0;return yn(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return yn(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var Xn=r.prototype;function $n(t,e){return e}function tr(t,e){return[e,t]}function er(t){return function(){return!t.apply(this,arguments)}}function nr(t){return function(){return-t.apply(this,arguments)}}function rr(t){return"string"==typeof t?JSON.stringify(t):t}function or(){return C(arguments)}function ir(t,e){return t<e?1:t>e?-1:0}function ar(t){if(t.size===1/0)return 0;var e=u(t),n=c(t),r=e?1:0;return cr(t.__iterate(n?e?function(t,e){r=31*r+sr(Dt(t),Dt(e))|0}:function(t,e){r=r+sr(Dt(t),Dt(e))|0}:e?function(t){r=31*r+Dt(t)|0}:function(t){r=r+Dt(t)|0}),r)}function cr(t,e){return e=jt(e,3432918353),e=jt(e<<15|e>>>-15,461845907),e=jt(e<<13|e>>>-13,5),e=jt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=_t((e=jt(e^e>>>13,3266489909))^e>>>16)}function sr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Xn[f]=!0,Xn[B]=Jn.entries,Xn.__toJS=Jn.toObject,Xn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rr(t)},qn(o,{toKeyedSeq:function(){return new Ze(this,!1)},filter:function(t,e){return yn(this,tn(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return yn(this,$e(this,!1))},slice:function(t,e){return yn(this,rn(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=A(t,t<0?this.count():this.size);var r=this.slice(0,t);return yn(this,1===n?r:r.concat(C(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return yn(this,sn(this,t,!1))},get:function(t,e){return(t=_(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=_(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return yn(this,un(this,t))},interleave:function(){var t=[this].concat(C(arguments)),e=gn(this.toSeq(),G.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),yn(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return yn(this,an(this,t,e,!1))},zip:function(){return yn(this,gn(this,or,[this].concat(C(arguments))))},zipWith:function(t){var e=C(arguments);return e[0]=this,yn(this,gn(this,t,e))}}),o.prototype[d]=!0,o.prototype[g]=!0,qn(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Jn.includes,qn(V,r.prototype),qn(G,o.prototype),qn(q,i.prototype),qn(Et,r.prototype),qn(kt,o.prototype),qn(Ct,i.prototype);var lr={Iterable:n,Seq:Z,Collection:Mt,Map:Ht,OrderedMap:Ke,List:ke,Stack:Yn,Set:On,OrderedSet:Rn,Record:En,Range:St,Repeat:bt,is:mt,fromJS:dt};return lr}();var u=l.exports,p=u.OrderedMap,f={createFromArray:function(t){return p(t.map(function(t){return[t.getKey(),t]}))}};var d=u,g=d.Map,y=d.OrderedSet,h=d.Record,m=y(),v={style:m,entity:null},b=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(t){return this.getStyle().includes(t)},r.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return r.create(n)},r.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return r.create(n)},r.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return r.create(n)},r.create=function(t){if(!t)return w;var e=g({style:m,entity:null}).merge(t),n=S.get(e);if(n)return n;var o=new r(e);return S=S.set(e,o),o},r.fromJS=function(t){var e=t.style,n=t.entity;return new r({style:Array.isArray(e)?y(e):e,entity:Array.isArray(n)?y(n):n})},r}(h(v)),w=new b,S=g([[g(v),w]]);b.EMPTY=w;var M=b;var E=function(t,e,n,r){if(t.size){var o=0;t.reduce(function(t,i,a){return e(t,i)||(n(t)&&r(o,a),o=a),i}),n(t.last())&&r(o,t.count())}};var k=M,C=E,j=u,_=j.List,D=j.Map,O=j.OrderedSet,A=j.Record,N=j.Repeat,x=O(),L=A({key:"",type:"unstyled",text:"",characterList:_(),depth:0,data:D()}),I=function(t){var e,n;function r(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=_(N(k.EMPTY,n.length))),t}(e))||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():x},o.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},o.findStyleRanges=function(t,e){C(this.getCharacterList(),T,t,e)},o.findEntityRanges=function(t,e){C(this.getCharacterList(),z,t,e)},r}(L);function T(t,e){return t.getStyle()===e.getStyle()}function z(t,e){return t.getEntity()===e.getEntity()}var R=I;var B=M,P=E,F=u,U=F.List,K=F.Map,Y=F.OrderedSet,H=F.Record,Q=F.Repeat,W=Y(),Z={parent:null,characterList:U(),data:K(),depth:0,key:"",text:"",type:"unstyled",children:U(),prevSibling:null,nextSibling:null},V=function(t,e){return t.getStyle()===e.getStyle()},G=function(t,e){return t.getEntity()===e.getEntity()},q=function(t){var e,n;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=U(Q(B.EMPTY,n.length))),t}(e))||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():W},o.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(t,e){P(this.getCharacterList(),V,t,e)},o.findEntityRanges=function(t,e){P(this.getCharacterList(),G,t,e)},r}(H(Z)),J=q,X=M,$=u.Map;function tt(t,e,n,r){var o=t.getBlockMap(),i=e.getStartKey(),a=e.getStartOffset(),c=e.getEndKey(),s=e.getEndOffset(),l=o.skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===c}).concat($([[c,o.get(c)]])).map(function(t,e){var o,l;i===c?(o=a,l=s):(o=e===i?a:0,l=e===c?s:t.getLength());for(var u,p=t.getCharacterList();o<l;)u=p.get(o),p=p.set(o,r?X.applyStyle(u,n):X.removeStyle(u,n)),o++;return t.set("characterList",p)});return t.merge({blockMap:o.merge(l),selectionBefore:e,selectionAfter:e})}var et={add:function(t,e,n){return tt(t,e,n,!0)},remove:function(t,e,n){return tt(t,e,n,!1)}},nt=M;var rt=function(t,e,n,r){for(var o=e,i=t.getCharacterList();o<n;)i=i.set(o,nt.applyEntity(i.get(o),r)),o++;return t.set("characterList",i)},ot=u;var it=function(t,e,n){var r=t.getBlockMap(),o=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),c=e.getEndOffset(),s=r.skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===a}).toOrderedMap().merge(ot.OrderedMap([[a,r.get(a)]])).map(function(t,e){var r=e===o?i:0,s=e===a?c:t.getLength();return rt(t,r,s,n)});return t.merge({blockMap:r.merge(s),selectionBefore:e,selectionAfter:e})},at={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map(function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t});for(var a,c=r,s=null,l=null,u=0;u<i.length;u++){if(t<(a=c+i[u].length)&&c<e)null!==s||(s=c),l=a;else if(null!==s)break;c=a}var p=r+n.length,f=s===r,d=l===p;return(!f&&d||f&&!d)&&("forward"===o?l!==p&&l++:s!==r&&s--),{start:s,end:l}}},ct="production"!==process.env.NODE_ENV?function(t){if(void 0===t)throw new Error("invariant(...): Second argument must be a string.")}:function(t){};var st=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(ct(e),!t){var i;if(void 0===e)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(e.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}},lt=st;var ut=at,pt=function(t,e){var n=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){n.push({start:t,end:e})}),n.length||("production"!==process.env.NODE_ENV?lt(!1,"Entity key not found in this range."):lt(!1)),n},ft=st;function dt(t,e,n,r,o,i,a){var c=n.getStartOffset(),s=n.getEndOffset(),l=t.__get(o).getMutability(),u=a?c:s;if("MUTABLE"===l)return n;var p=pt(e,o).filter(function(t){return u<=t.end&&u>=t.start});1!=p.length&&("production"!==process.env.NODE_ENV?ft(!1,"There should only be one entity range within this removal range."):ft(!1));var f=p[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:c=f.start);var d=ut.getRemovalRange(c,s,e.getText().slice(f.start,f.end),f.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var gt=function(t,e,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),c=e.getEntityAt(i),s=n.getEntityAt(a-1);if(!c&&!s)return r;var l=r;if(c&&c===s)l=dt(t,e,l,o,c,!0,!0);else if(c&&s){var u=dt(t,e,l,o,c,!1,!0),p=dt(t,n,l,o,s,!1,!1);l=l.merge({anchorOffset:u.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var f=dt(t,e,l,o,c,!1,!0);l=l.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var d=dt(t,n,l,o,s,!1,!1);l=l.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return l},yt={},ht=Math.pow(2,24);var mt=function(){for(var t;void 0===t||yt.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*ht).toString(32);return yt[t]=!0,t},vt=J,bt=mt,wt=u.OrderedMap,St=function(t){return t.first()instanceof vt?function(t){var e,n={};return wt(t.withMutations(function(t){t.forEach(function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),s=r.getChildKeys(),l=r.getParentKey(),u=bt();if(n[i]=u,a&&(t.get(a)?t.setIn([a,"prevSibling"],u):t.setIn([i,"nextSibling"],null)),c&&(t.get(c)?t.setIn([c,"nextSibling"],u):t.setIn([i,"prevSibling"],null)),l&&t.get(l)){var p=t.get(l).getChildKeys();t.setIn([l,"children"],p.set(p.indexOf(r.getKey()),u))}else t.setIn([i,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],u),t.setIn([i,"prevSibling"],n[e.getKey()])),e=t.get(i);s.forEach(function(e){t.get(e)?t.setIn([e,"parent"],u):t.setIn([i,"children"],r.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]}))}(t):function(t){return wt(t.toArray().map(function(t){var e=bt();return[e,t.set("key",e)]}))}(t)},Mt=M,Et=E,kt=st;function Ct(t,e,n){var r=e.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,c=i?i.getEntity():void 0;if(c&&c===a&&"MUTABLE"!==t.__get(c).getMutability()){for(var s,l=function(t,e,n){var r;return Et(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(r={start:t,end:e})}),"object"!=typeof r&&("production"!==process.env.NODE_ENV?kt(!1,"Removal range must exist within character list."):kt(!1)),r}(r,c,n),u=l.start,p=l.end;u<p;)s=r.get(u),r=r.set(u,Mt.applyEntity(s,null)),u++;return e.set("characterList",r)}return e}var jt=function(t,e){var n=t.getBlockMap(),r=t.getEntityMap(),o={},i=e.getStartKey(),a=e.getStartOffset(),c=n.get(i),s=Ct(r,c,a);s!==c&&(o[i]=s);var l=e.getEndKey(),u=e.getEndOffset(),p=n.get(l);i===l&&(p=s);var f=Ct(r,p,u);return f!==p&&(o[l]=f),Object.keys(o).length?t.merge({blockMap:n.merge(o),selectionAfter:e}):t.set("selectionAfter",e)},_t=St,Dt=jt,Ot=function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=e.getEndKey(),i=e.getEndOffset(),a=Dt(t,e).getBlockMap(),c=a.keySeq(),s=c.indexOf(n),l=c.indexOf(o)+1;return _t(a.slice(s,l).map(function(t,e){var a=t.getText(),c=t.getCharacterList();return n===o?t.merge({text:a.slice(r,i),characterList:c.slice(r,i)}):e===n?t.merge({text:a.slice(r),characterList:c.slice(r)}):e===o?t.merge({text:a.slice(0,i),characterList:c.slice(0,i)}):t}))};var At=function(t,e,n){var r=t;if(n===r.count())e.forEach(function(t){r=r.push(t)});else if(0===n)e.reverse().forEach(function(t){r=r.unshift(t)});else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(e,i).toList()}return r},Nt=f,xt=J,Lt=At,It=st,Tt=St,zt=u.List,Rt=function(t,e,n,r,o,i){var a=n.first()instanceof xt,c=[],s=r.size,l=n.get(o),u=r.first(),p=r.last(),f=p.getLength(),d=p.getKey(),g=a&&(!l.getChildKeys().isEmpty()||!u.getChildKeys().isEmpty());n.forEach(function(t,e){e===o?(g?c.push(t):c.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),c=n.first();return t.merge({text:i+c.getText(),characterList:a.concat(c.getCharacterList()),type:i?t.getType():c.getType(),data:c.getData()})}(t,i,r)),r.slice(g?0:1,s-1).forEach(function(t){return c.push(t)}),c.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),c=o.slice(e,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(c),data:s.getData()})}(t,i,r))):c.push(t)});var y=Nt.createFromArray(c);return a&&(y=function(t,e,n,r){return t.withMutations(function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),c=n.getParentKey(),s=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),l=s[s.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),s.forEach(function(t){return e.setIn([t,"parent"],c)}),c){var u=t.get(c).getChildKeys(),p=u.indexOf(o)+1,f=u.toArray();f.splice.apply(f,[p,0].concat(s)),e.setIn([c,"children"],zt(f))}})}(y,0,l,u)),t.merge({blockMap:y,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})})},Bt=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||("production"!==process.env.NODE_ENV?It(!1,"`insertFragment` should only be called with a collapsed selection state."):It(!1));var o=t.getBlockMap(),i=Tt(n),a=e.getStartKey(),c=e.getStartOffset(),s=o.get(a);return s instanceof xt&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?It(!1,"`insertFragment` should not be called when a container node is selected."):It(!1))),1===i.size?function(t,e,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),s=c.getText(),l=c.getCharacterList(),u=o,p=i+r.getText().length,f=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var d=c.getType();s&&"unstyled"===d&&(d=r.getType());var g=c.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:Lt(l,r.getCharacterList(),i),type:d,data:f});return t.merge({blockMap:n.set(o,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:u,anchorOffset:p,focusKey:u,focusOffset:p,isBackward:!1})})}(t,e,o,i.first(),a,c,r):Rt(t,e,o,i,a,c)},Pt=At,Ft=st,Ut=u.Repeat;var Kt=function(t,e,n,r){e.isCollapsed()||("production"!==process.env.NODE_ENV?Ft(!1,"`insertText` should only be called with a collapsed range."):Ft(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return t;var i=t.getBlockMap(),a=e.getStartKey(),c=e.getStartOffset(),s=i.get(a),l=s.getText(),u=s.merge({text:l.slice(0,c)+n+l.slice(c,s.getLength()),characterList:Pt(s.getCharacterList(),Ut(r,o).toList(),c)}),p=c+o;return t.merge({blockMap:i.set(a,u),selectionAfter:e.merge({anchorOffset:p,focusOffset:p})})},Yt=u.Map;var Ht=function(t,e,n){var r=e.getStartKey(),o=e.getEndKey(),i=t.getBlockMap(),a=i.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===o}).concat(Yt([[o,i.get(o)]])).map(n);return t.merge({blockMap:i.merge(a),selectionBefore:e,selectionAfter:e})},Qt=J,Wt=function(t,e){if(!(t instanceof Qt))return null;var n=t.getNextSiblingKey();if(n)return n;var r=t.getParentKey();if(!r)return null;for(var o=e.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?e.get(i):null}return o?o.getNextSiblingKey():null},Zt=J,Vt=Wt,Gt=u;Gt.List;var qt=Gt.Map,Jt=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},Xt=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},$t=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},te=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},ee=function(t,e,n,r){return t.withMutations(function(o){if(Jt(e.getKey(),o,function(t){return t.merge({nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})}),Jt(n.getKey(),o,function(t){return t.merge({nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})}),Xt(e.getKey(),r).forEach(function(t){return Jt(t,o,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return o.get(t)}),nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})})}),Jt(e.getNextSiblingKey(),o,function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}),Jt(e.getPrevSiblingKey(),o,function(t){return t.merge({nextSibling:$t(t,o,r)})}),Jt(n.getNextSiblingKey(),o,function(t){return t.merge({prevSibling:te(t,o,r)})}),Jt(n.getPrevSiblingKey(),o,function(t){return t.merge({nextSibling:n.getNextSiblingKey()})}),Xt(n.getKey(),r).forEach(function(t){Jt(t,o,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return o.get(t)}),nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})})}),function(t,e){var n=[];if(!t)return n;for(var r=Vt(t,e);r&&e.get(r);){var o=e.get(r);n.push(r),r=o.getParentKey()?Vt(o,e):null}return n}(n,r).forEach(function(t){return Jt(t,o,function(t){return t.merge({nextSibling:$t(t,o,r),prevSibling:te(t,o,r)})})}),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var i=e.getPrevSiblingKey();Jt(n.getKey(),o,function(t){return t.merge({prevSibling:i})}),Jt(i,o,function(t){return t.merge({nextSibling:n.getKey()})});var a=i?t.get(i):null,c=a?a.getParentKey():null;if(e.getChildKeys().forEach(function(t){Jt(t,o,function(t){return t.merge({parent:c})})}),null!=c){var s=t.get(c);Jt(c,o,function(t){return t.merge({children:s.getChildKeys().concat(e.getChildKeys())})})}Jt(e.getChildKeys().find(function(e){return null===t.get(e).getNextSiblingKey()}),o,function(t){return t.merge({nextSibling:e.getNextSiblingKey()})})}})},ne=function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t},re=function(t,e){if(e.isCollapsed())return t;var n,r=t.getBlockMap(),o=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),c=e.getEndOffset(),s=r.get(o),l=r.get(a),u=s instanceof Zt,p=[];if(u){var f=l.getChildKeys(),d=Xt(a,r);l.getNextSiblingKey()&&(p=p.concat(d)),f.isEmpty()||(p=p.concat(d.concat([a]))),p=p.concat(Xt(Vt(l,r),r))}n=s===l?ne(s.getCharacterList(),i,c):s.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(c));var g=s.merge({text:s.getText().slice(0,i)+l.getText().slice(c),characterList:n}),y=u&&0===i&&0===c&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?qt([[o,null]]):r.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===a}).filter(function(t,e){return-1===p.indexOf(e)}).concat(qt([[a,null]])).map(function(t,e){return e===o?g:null}),h=r.merge(y).filter(function(t){return!!t});return u&&s!==l&&(h=ee(h,s,l,r)),t.merge({blockMap:h,selectionBefore:e,selectionAfter:e.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},oe=J,ie=mt,ae=u,ce=st,se=Ht,le=ae.List,ue=ae.Map,pe=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},fe=M,de=et,ge=it,ye=gt,he=Ot,me=Bt,ve=Kt,be=st,we=Ht,Se=jt,Me=re,Ee=function(t,e){e.isCollapsed()||("production"!==process.env.NODE_ENV?ce(!1,"Selection range must be collapsed."):ce(!1));var n=e.getAnchorKey(),r=t.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return se(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var c=e.getAnchorOffset(),s=o.getCharacterList(),l=ie(),u=o instanceof oe,p=o.merge({text:i.slice(0,c),characterList:s.slice(0,c)}),f=p.merge({key:l,text:i.slice(c),characterList:s.slice(c),data:ue()}),d=r.toSeq().takeUntil(function(t){return t===o}),g=r.toSeq().skipUntil(function(t){return t===o}).rest(),y=d.concat([[n,p],[l,f]],g).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?ce(!1,"ContentBlockNode must not have children"):ce(!1)),y=function(t,e,n){return t.withMutations(function(t){var r=e.getKey(),o=n.getKey();pe(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:le(i)})}),pe(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:o})}),pe(r,t,function(t){return t.merge({nextSibling:o})}),pe(o,t,function(t){return t.merge({prevSibling:r})})})}(y,p,f)),t.merge({blockMap:y,selectionBefore:e,selectionAfter:e.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},ke=u.OrderedSet,Ce={replaceText:function(t,e,n,r,o){var i=Se(t,e),a=Me(i,e),c=fe.create({style:r||ke(),entity:o||null});return ve(a,a.getSelectionAfter(),n,c)},insertText:function(t,e,n,r,o){return e.isCollapsed()||("production"!==process.env.NODE_ENV?be(!1,"Target range must be collapsed for `insertText`."):be(!1)),Ce.replaceText(t,e,n,r,o)},moveText:function(t,e,n){var r=he(t,e),o=Ce.removeRange(t,e,"backward");return Ce.replaceWithFragment(o,n,r)},replaceWithFragment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=Se(t,e),i=Me(o,e);return me(i,i.getSelectionAfter(),n,r)},removeRange:function(t,e,n){var r,o,i,a;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(r),a=t.getBlockForKey(o);var c=e.getStartOffset(),s=e.getEndOffset(),l=i.getEntityAt(c),u=a.getEntityAt(s-1);if(r===o&&l&&l===u){var p=ye(t.getEntityMap(),i,a,e,n);return Me(t,p)}var f=Se(t,e);return Me(f,e)},splitBlock:function(t,e){var n=Se(t,e),r=Me(n,e);return Ee(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return de.add(t,e,n)},removeInlineStyle:function(t,e,n){return de.remove(t,e,n)},setBlockType:function(t,e,n){return we(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return we(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return we(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var r=Se(t,e);return ge(r,e,n)}},je=Ce;var _e=function(t){return Object.keys(t).map(function(e){return t[e]})};function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Oe=E,Ae=_e,Ne=u,xe=Ne.List,Le=Ne.Repeat,Ie=Ne.Record,Te=function(){return!0},ze=Ie({start:null,end:null}),Re=Ie({start:null,end:null,decoratorKey:null,leaves:null});function Be(t,e){var n=[],r=t.map(function(t){return t.getStyle()}).toList();return Oe(r,Pe,Te,function(t,r){n.push(new ze({start:t+e,end:r+e}))}),xe(n)}function Pe(t,e){return t===e}var Fe={generate:function(t,e,n){var r=e.getLength();if(!r)return xe.of(new Re({start:0,end:0,decoratorKey:null,leaves:xe.of(new ze({start:0,end:0}))}));var o=[],i=n?n.getDecorations(e,t):xe(Le(null,r)),a=e.getCharacterList();return Oe(i,Pe,Te,function(t,e){o.push(new Re({start:t,end:e,decoratorKey:i.get(t),leaves:Be(a.slice(t,e).toList(),t)}))}),xe(o)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["leaves"]);return new Re(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){De(t,e,n[e])})}return t}({},n,{leaves:null!=e?xe(Array.isArray(e)?e:Ae(e)).map(function(t){return ze(t)}):null}))}};var Ue=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,u.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),Ke=Ue;function Ye(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var He=Ke,Qe=st,We=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},Ze=(0,u.Map)(),Ve=We();function Ge(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var qe={getLastCreatedEntityKey:function(){return Ge("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),qe.__getLastCreatedEntityKey()},create:function(t,e,n){return Ge("DraftEntity.create","contentState.createEntity"),qe.__create(t,e,n)},add:function(t){return Ge("DraftEntity.add","contentState.addEntity"),qe.__add(t)},get:function(t){return Ge("DraftEntity.get","contentState.getEntity"),qe.__get(t)},__getAll:function(){return Ze},__loadWithEntities:function(t){Ze=t,Ve=We()},mergeData:function(t,e){return Ge("DraftEntity.mergeData","contentState.mergeEntityData"),qe.__mergeData(t,e)},replaceData:function(t,e){return Ge("DraftEntity.replaceData","contentState.replaceEntityData"),qe.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return Ve},__create:function(t,e,n){return qe.__add(new He({type:t,mutability:e,data:n||{}}))},__add:function(t){return Ve=We(),Ze=Ze.set(Ve,t),Ve},__get:function(t){var e=Ze.get(t);return e||("production"!==process.env.NODE_ENV?Qe(!1,"Unknown DraftEntity key: %s.",t):Qe(!1)),e},__mergeData:function(t,e){var n=qe.__get(t),r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ye(t,e,n[e])})}return t}({},n.getData(),e),o=n.set("data",r);return Ze=Ze.set(t,o),o},__replaceData:function(t,e){var n=qe.__get(t).set("data",e);return Ze=Ze.set(t,n),n}},Je=qe;var Xe=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(t,e,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=n||e<=a&&a<=n}if(t!==r&&t!==o)return!1;var c=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=c&&n>=c},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(t){return new r({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,u.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),$e=Xe,tn=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]},en=new RegExp("\r","g");var nn=function(t){return t.replace(en,"")};function rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){on(t,e,n[e])})}return t}function on(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var an=f,cn=M,sn=R,ln=J,un=Je,pn=$e,fn=mt,dn=_e,gn=tn,yn=u,hn=nn,mn=yn.List,vn=yn.Record,bn=yn.Repeat,wn=yn.Map,Sn=yn.OrderedMap,Mn=vn({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),En=gn("draft_tree_data_support")?ln:sn,kn=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return un},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(t){return this.getBlockMap().get(t)},o.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},o.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},o.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,n){return n===t}).skip(1).first()},o.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},o.getLastCreatedEntityKey=function(){return un.__getLastCreatedEntityKey()},o.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(t,e,n){return un.__create(t,e,n),this},o.mergeEntityData=function(t,e){return un.__mergeData(t,e),this},o.replaceEntityData=function(t,e){return un.__replaceData(t,e),this},o.addEntity=function(t){return un.__add(t),this},o.getEntity=function(t){return un.__get(t)},o.getAllEntities=function(){return un.__getAll()},o.loadWithEntities=function(t){return un.__loadWithEntities(t)},r.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,o=an.createFromArray(n),i=o.isEmpty()?new pn:pn.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:e||un,selectionBefore:i,selectionAfter:i})},r.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e).map(function(t){return t=hn(t),new En({key:fn(),text:t,type:"unstyled",characterList:mn(bn(cn.EMPTY,t.length))})});return r.createFromBlockArray(n)},r.fromJS=function(t){return new r(rn({},t,{blockMap:Sn(t.blockMap).map(r.createContentBlockFromJS),selectionBefore:new pn(t.selectionBefore),selectionAfter:new pn(t.selectionAfter)}))},r.createContentBlockFromJS=function(t){var e=t.characterList;return new En(rn({},t,{data:wn(t.data),characterList:null!=e?mn((Array.isArray(e)?e:dn(e)).map(function(t){return cn.fromJS(t)})):void 0}))},r}(Mn),Cn=kn,jn=st,_n="LTR",Dn=null;function On(t){return t===_n||"RTL"===t}function An(t){return On(t)||("production"!==process.env.NODE_ENV?jn(!1,"`dir` must be a strong direction to be converted to HTML Direction"):jn(!1)),t===_n?"ltr":"rtl"}function Nn(t){Dn=t}var xn={NEUTRAL:"NEUTRAL",LTR:_n,RTL:"RTL",isStrong:On,getHTMLDir:An,getHTMLDirIfDifferent:function(t,e){return On(t)||("production"!==process.env.NODE_ENV?jn(!1,"`dir` must be a strong direction to be converted to HTML Direction"):jn(!1)),On(e)||("production"!==process.env.NODE_ENV?jn(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):jn(!1)),t===e?null:An(t)},setGlobalDir:Nn,initGlobalDir:function(){Nn(_n)},getGlobalDir:function(){return Dn||this.initGlobalDir(),Dn||("production"!==process.env.NODE_ENV?jn(!1,"Global direction not set."):jn(!1)),Dn}},Ln=xn,In=st,Tn="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",zn="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",Rn=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+Tn+zn+"]"),Bn=new RegExp("["+Tn+zn+"]");function Pn(t){var e=Rn.exec(t);return null==e?null:e[0]}function Fn(t){var e=Pn(t);return null==e?Ln.NEUTRAL:Bn.exec(e)?Ln.RTL:Ln.LTR}function Un(t,e){if(e=e||Ln.NEUTRAL,!t.length)return e;var n=Fn(t);return n===Ln.NEUTRAL?e:n}function Kn(t,e){return e||(e=Ln.getGlobalDir()),Ln.isStrong(e)||("production"!==process.env.NODE_ENV?In(!1,"Fallback direction must be a strong direction"):In(!1)),Un(t,e)}var Yn={firstStrongChar:Pn,firstStrongCharDir:Fn,resolveBlockDir:Un,getDirection:Kn,isDirectionLTR:function(t,e){return Kn(t,e)===Ln.LTR},isDirectionRTL:function(t,e){return Kn(t,e)===Ln.RTL}};function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qn,Wn=Yn,Zn=xn,Vn=st,Gn=function(){function t(t){Hn(this,"_defaultDir",void 0),Hn(this,"_lastDir",void 0),t?Zn.isStrong(t)||("production"!==process.env.NODE_ENV?Vn(!1,"Default direction must be a strong direction (LTR or RTL)"):Vn(!1)):t=Zn.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=Wn.getDirection(t,this._lastDir),this._lastDir},t}(),qn=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")},Jn=Gn,Xn=u,$n=qn,tr=Xn.OrderedMap;function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){nr(t,e,n[e])})}return t}function nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rr=Fe,or=Cn,ir={getDirectionMap:function(t,e){Qn?Qn.reset():Qn=new Jn;var n=t.getBlockMap(),r=n.valueSeq().map(function(t){return $n(Qn).getDirection(t.getText())}),o=tr(n.keySeq().zip(r));return null!=e&&Xn.is(e,o)?e:o}},ar=$e,cr=u,sr=cr.OrderedSet,lr=cr.Record,ur=cr.Stack,pr=cr.OrderedMap,fr=cr.List,dr=lr({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:ur(),selection:null,treeMap:null,undoStack:ur()}),gr=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,n){return e.createWithContent(or.createFromText(t),n)},e.createWithContent=function(t,n){if(0===t.getBlockMap().count())return e.createEmpty(n);var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:ur(),redoStack:ur(),decorator:n||null,selection:ar.createEmpty(r)})},e.create=function(t){var n=t.currentContent,r=er({},t,{treeMap:hr(n,t.decorator),directionMap:ir.getDirectionMap(n)});return new e(new dr(r))},e.fromJS=function(t){return new e(new dr(er({},t,{directionMap:null!=t.directionMap?pr(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?sr(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?or.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?ur(t.redoStack.map(function(t){return or.fromJS(t)})):t.redoStack,selection:null!=t.selection?new ar(t.selection):t.selection,treeMap:null!=t.treeMap?pr(t.treeMap).map(function(t){return fr(t).map(function(t){return rr.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?ur(t.undoStack.map(function(t){return or.fromJS(t)})):t.undoStack,currentContent:or.fromJS(t.currentContent)})))},e.set=function(t,n){return new e(t.getImmutable().withMutations(function(e){var r=e.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||t.getCurrentContent();if(o!==r){var a,c=e.get("treeMap");return a=o&&r?function(t,e,n,r,o){return n.merge(e.toSeq().filter(function(e){return r.getDecorations(e,t)!==o.getDecorations(e,t)}).map(function(e){return rr.generate(t,e,r)}))}(i,i.getBlockMap(),c,o,r):hr(i,o),void e.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==t.getCurrentContent()&&e.set("treeMap",function(t,e,n,r){var o=t.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=t.getImmutable().get("treeMap");return a.merge(e.toSeq().filter(function(t,e){return t!==i.get(e)}).map(function(t){return rr.generate(o,t,r)}))}(t,i.getBlockMap(),i.getEntityMap(),o)),e.merge(n)}))};var t=e.prototype;function e(t){nr(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return mr(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return mr(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return yr(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),yr(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new ar({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var i=ir.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),c=t.getCurrentContent(),s=t.getUndoStack(),l=n;a!==c.getSelectionAfter()||function(t,e){var n=t.getLastChangeType();return e!==n||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,r)?(s=s.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",c.getSelectionBefore()));var u=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var p={currentContent:l,directionMap:i,undoStack:s,redoStack:ur(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=ir.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=ir.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function yr(t,e,n){return gr.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function hr(t,e){return t.getBlockMap().map(function(n){return rr.generate(t,n,e)}).toOrderedMap()}function mr(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):sr()}var vr=gr,br=J,wr=Wt,Sr=u,Mr=st,Er=Sr.OrderedMap,kr=Sr.List,Cr=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},jr=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),c=n.getKey(),s=e.getParentKey(),l=e.getNextSiblingKey(),u=e.getPrevSiblingKey(),p=n.getParentKey(),f=i?n.getNextSiblingKey():c,d=i?c:n.getPrevSiblingKey();return t.withMutations(function(t){Cr(s,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})}),Cr(u,t,function(t){return t.merge({nextSibling:l})}),Cr(l,t,function(t){return t.merge({prevSibling:u})}),Cr(f,t,function(t){return t.merge({prevSibling:a})}),Cr(d,t,function(t){return t.merge({nextSibling:a})}),Cr(p,t,function(t){var e=t.getChildKeys(),n=e.indexOf(c),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:kr(o)})}),Cr(a,t,function(t){return t.merge({nextSibling:f,prevSibling:d,parent:p})})})};function _r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Dr(t,e,n[e])})}return t}function Dr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Or=f,Ar=M,Nr=R,xr=J,Lr=je,Ir=vr,Tr=mt,zr=u,Rr=function(t,e,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?Mr(!1,"Replacing blocks is not supported."):Mr(!1));var o=n.getKey(),i=e.getKey();i===o&&("production"!==process.env.NODE_ENV?Mr(!1,"Block cannot be moved next to itself."):Mr(!1));var a=t.getBlockMap(),c=e instanceof br,s=[e],l=a.delete(i);c&&(s=[],l=a.withMutations(function(t){var n=e.getNextSiblingKey(),r=wr(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===i}).takeWhile(function(t){var e=t.getKey(),o=e===i,a=n&&e!==n,c=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||a||c)}).forEach(function(e){s.push(e),t.delete(e.getKey())})}));var u=l.toSeq().takeUntil(function(t){return t===n}),p=l.toSeq().skipUntil(function(t){return t===n}).skip(1),f=s.map(function(t){return[t.getKey(),t]}),d=Er();if("before"===r){var g=t.getBlockBefore(o);g&&g.getKey()===e.getKey()&&("production"!==process.env.NODE_ENV?Mr(!1,"Block cannot be moved next to itself."):Mr(!1)),d=u.concat([].concat(f,[[o,n]]),p).toOrderedMap()}else if("after"===r){var y=t.getBlockAfter(o);y&&y.getKey()===i&&("production"!==process.env.NODE_ENV?Mr(!1,"Block cannot be moved next to itself."):Mr(!1)),d=u.concat([[o,n]].concat(f),p).toOrderedMap()}return t.merge({blockMap:jr(d,e,n,r,c),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},Br=tn("draft_tree_data_support"),Pr=Br?xr:Nr,Fr=zr.List,Ur=zr.Repeat,Kr={insertAtomicBlock:function(t,e,n){var r=t.getCurrentContent(),o=t.getSelection(),i=Lr.removeRange(r,o,"backward"),a=i.getSelectionAfter(),c=Lr.splitBlock(i,a),s=c.getSelectionAfter(),l=Lr.setBlockType(c,s,"atomic"),u=Ar.create({entity:e}),p={key:Tr(),type:"atomic",text:n,characterList:Fr(Ur(u,n.length))},f={key:Tr(),type:"unstyled"};Br&&(p=_r({},p,{nextSibling:f.key}),f=_r({},f,{prevSibling:p.key}));var d=[new Pr(p),new Pr(f)],g=Or.createFromArray(d),y=Lr.replaceWithFragment(l,s,g),h=y.merge({selectionBefore:o,selectionAfter:y.getSelectionAfter().set("hasFocus",!0)});return Ir.push(t,h,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=Rr(i,e,c,r)}else{var s=Lr.removeRange(i,n,"backward"),l=s.getSelectionAfter(),u=s.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=Rr(s,e,u,"before");else if(l.getEndOffset()===u.getLength())o=Rr(s,e,u,"after");else{var p=Lr.splitBlock(s,l),f=p.getSelectionAfter(),d=p.getBlockForKey(f.getFocusKey());o=Rr(p,e,d,"before")}}var g=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return Ir.push(t,g,"move-block")}};var Yr=u.List,Hr=function(){function t(t){var e,n,r;r=void 0,(n="_decorators")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach(function(r,o){var i=0;(0,r.strategy)(t,function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(!function(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}(n,t,e,o+"."+i),i++)},e)}),Yr(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();var Qr=Hr;function Wr(t){return t.replace(/\//g,"-")}var Zr=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(Wr).join(" "):Array.prototype.map.call(arguments,Wr).join(" ")},Vr=t,Gr=Zr,qr=(0,u.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Vr.createElement("ul",{className:Gr("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:Vr.createElement("ol",{className:Gr("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Vr.createElement("pre",{className:Gr("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),Jr={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Xr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable;var eo=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))$r.call(n,a)&&(o[a]=n[a]);if(Xr){r=Xr(n);for(var c=0;c<r.length;c++)to.call(n,r[c])&&(o[r[c]]=n[r[c]])}}return o},no={exports:{}};!function(t,e){!function(n,r){var o="function",i="undefined",a="object",c="string",s="major",l="model",u="name",p="type",f="vendor",d="version",g="architecture",y="console",h="mobile",m="tablet",v="smarttv",b="wearable",w="embedded",S="Amazon",M="Apple",E="ASUS",k="BlackBerry",C="Browser",j="Chrome",_="Firefox",D="Google",O="Honor",A="Huawei",N="LG",x="Microsoft",L="Motorola",I="Nvidia",T="OnePlus",z="Opera",R="OPPO",B="Samsung",P="Sharp",F="Sony",U="Xiaomi",K="Zebra",Y="Facebook",H="Chromium OS",Q="Mac OS",W=" Browser",Z=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},V=function(t,e){return typeof t===c&&-1!==G(e).indexOf(G(t))},G=function(t){return t.toLowerCase()},q=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===i?t:t.substring(0,500)},J=function(t,e){for(var n,i,c,s,l,u,p=0;p<e.length&&!l;){var f=e[p],d=e[p+1];for(n=i=0;n<f.length&&!l&&f[n];)if(l=f[n++].exec(t))for(c=0;c<d.length;c++)u=l[++i],typeof(s=d[c])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):r:this[s[0]]=u?s[1].call(this,u,s[2]):r:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):r):this[s]=u||r;p+=2}},X=function(t,e){for(var n in e)if(typeof e[n]===a&&e[n].length>0){for(var o=0;o<e[n].length;o++)if(V(e[n][o],t))return"?"===n?r:n}else if(V(e[n],t))return"?"===n?r:n;return e.hasOwnProperty("*")?e["*"]:t},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},tt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,d],[/opios[\/ ]+([\w\.]+)/i],[d,[u,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[u,z+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[u,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[u,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[u,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[u,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[u,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+C],d],[/\bfocus\/([\w\.]+)/i],[d,[u,_+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[u,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[u,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[u,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[d,[u,_]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[u,"360"]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+W],d],[/samsungbrowser\/([\w\.]+)/i],[d,[u,B+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[u,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Y],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[u,j+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,j+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[u,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[d,X,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[u,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[u,_+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[u,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",G]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[f,B],[p,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[f,B],[p,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[f,M],[p,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[f,M],[p,m]],[/(macintosh);/i],[l,[f,M]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[f,P],[p,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[f,O],[p,m]],[/honor([-\w ]+)[;\)]/i],[l,[f,O],[p,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[f,A],[p,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[f,A],[p,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[f,U],[p,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[f,U],[p,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[f,R],[p,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[f,X,{OnePlus:["304","403","203"],"*":R}],[p,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[f,"Vivo"],[p,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[f,"Realme"],[p,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[f,L],[p,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[f,L],[p,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[f,N],[p,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[f,N],[p,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[f,"Lenovo"],[p,m]],[/(nokia) (t[12][01])/i],[f,l,[p,m]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[p,h],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[f,D],[p,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[f,D],[p,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[f,F],[p,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[f,F],[p,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[f,T],[p,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[f,S],[p,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[f,S],[p,h]],[/(playbook);[-\w\),; ]+(rim)/i],[l,f,[p,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[f,k],[p,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[f,E],[p,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[f,E],[p,h]],[/(nexus 9)/i],[l,[f,"HTC"],[p,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[l,/_/g," "],[p,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[f,"TCL"],[p,m]],[/(itel) ((\w+))/i],[[f,G],l,[p,X,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[f,"Acer"],[p,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[f,"Meizu"],[p,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[f,"Ulefone"],[p,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[f,"Energizer"],[p,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[f,"Cat"],[p,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[f,"Smartfren"],[p,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[f,"Nothing"],[p,h]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[f,"Archos"],[p,m]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[f,"Archos"],[p,h]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,l,[p,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,l,[p,h]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,l,[p,m]],[/(surface duo)/i],[l,[f,x],[p,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[f,"Fairphone"],[p,h]],[/(u304aa)/i],[l,[f,"AT&T"],[p,h]],[/\bsie-(\w*)/i],[l,[f,"Siemens"],[p,h]],[/\b(rct\w+) b/i],[l,[f,"RCA"],[p,m]],[/\b(venue[\d ]{2,7}) b/i],[l,[f,"Dell"],[p,m]],[/\b(q(?:mv|ta)\w+) b/i],[l,[f,"Verizon"],[p,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[f,"Barnes & Noble"],[p,m]],[/\b(tm\d{3}\w+) b/i],[l,[f,"NuVision"],[p,m]],[/\b(k88) b/i],[l,[f,"ZTE"],[p,m]],[/\b(nx\d{3}j) b/i],[l,[f,"ZTE"],[p,h]],[/\b(gen\d{3}) b.+49h/i],[l,[f,"Swiss"],[p,h]],[/\b(zur\d{3}) b/i],[l,[f,"Swiss"],[p,m]],[/\b((zeki)?tb.*\b) b/i],[l,[f,"Zeki"],[p,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],l,[p,m]],[/\b(ns-?\w{0,9}) b/i],[l,[f,"Insignia"],[p,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[f,"NextBook"],[p,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],l,[p,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],l,[p,h]],[/\b(ph-1) /i],[l,[f,"Essential"],[p,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[f,"Envizen"],[p,m]],[/\b(trio[-\w\. ]+) b/i],[l,[f,"MachSpeed"],[p,m]],[/\btu_(1491) b/i],[l,[f,"Rotor"],[p,m]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[f,I],[p,m]],[/(sprint) (\w+)/i],[f,l,[p,h]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[f,x],[p,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[f,K],[p,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[f,K],[p,h]],[/smart-tv.+(samsung)/i],[f,[p,v]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[f,B],[p,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,N],[p,v]],[/(apple) ?tv/i],[f,[l,M+" TV"],[p,v]],[/crkey/i],[[l,j+"cast"],[f,D],[p,v]],[/droid.+aft(\w+)( bui|\))/i],[l,[f,S],[p,v]],[/(shield \w+ tv)/i],[l,[f,I],[p,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[f,P],[p,v]],[/(bravia[\w ]+)( bui|\))/i],[l,[f,F],[p,v]],[/(mi(tv|box)-?\w+) bui/i],[l,[f,U],[p,v]],[/Hbbtv.*(technisat) (.*);/i],[f,l,[p,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,q],[l,q],[p,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[p,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,l,[p,y]],[/droid.+; (shield)( bui|\))/i],[l,[f,I],[p,y]],[/(playstation \w+)/i],[l,[f,F],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[f,x],[p,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[f,B],[p,b]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,l,[p,b]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[f,R],[p,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[f,M],[p,b]],[/(opwwe\d{3})/i],[l,[f,T],[p,b]],[/(moto 360)/i],[l,[f,L],[p,b]],[/(smartwatch 3)/i],[l,[f,F],[p,b]],[/(g watch r)/i],[l,[f,N],[p,b]],[/droid.+; (wt63?0{2,3})\)/i],[l,[f,K],[p,b]],[/droid.+; (glass) \d/i],[l,[f,D],[p,b]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,l,[p,b]],[/; (quest( \d| pro)?)/i],[l,[f,Y],[p,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,w]],[/(aeobc)\b/i],[l,[f,S],[p,w]],[/(homepod).+mac os/i],[l,[f,M],[p,w]],[/windows iot/i],[[p,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[p,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,h]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[u,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[u,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,d],[/ladybird\//i],[[u,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[u,[d,X,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,X,$],[u,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,Q],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,u],[/(ubuntu) ([\w\.]+) like android/i],[[u,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[u,d],[/\(bb(10);/i],[d,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[u,_+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[u,j+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,H],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,d],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,d]]},et=function(t,e){if(typeof t===a&&(e=t,t=r),!(this instanceof et))return new et(t,e).getResult();var y=typeof n!==i&&n.navigator?n.navigator:r,v=t||(y&&y.userAgent?y.userAgent:""),b=y&&y.userAgentData?y.userAgentData:r,w=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(tt,e):tt,S=y&&y.userAgent==v;return this.getBrowser=function(){var t,e={};return e[u]=r,e[d]=r,J.call(e,v,w.browser),e[s]=typeof(t=e[d])===c?t.replace(/[^\d\.]/g,"").split(".")[0]:r,S&&y&&y.brave&&typeof y.brave.isBrave==o&&(e[u]="Brave"),e},this.getCPU=function(){var t={};return t[g]=r,J.call(t,v,w.cpu),t},this.getDevice=function(){var t={};return t[f]=r,t[l]=r,t[p]=r,J.call(t,v,w.device),S&&!t[p]&&b&&b.mobile&&(t[p]=h),S&&"Macintosh"==t[l]&&y&&typeof y.standalone!==i&&y.maxTouchPoints&&y.maxTouchPoints>2&&(t[l]="iPad",t[p]=m),t},this.getEngine=function(){var t={};return t[u]=r,t[d]=r,J.call(t,v,w.engine),t},this.getOS=function(){var t={};return t[u]=r,t[d]=r,J.call(t,v,w.os),S&&!t[u]&&b&&b.platform&&"Unknown"!=b.platform&&(t[u]=b.platform.replace(/chrome os/i,H).replace(/macos/i,Q)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(t){return v=typeof t===c&&t.length>500?q(t,500):t,this},this.setUA(v),this};et.VERSION="0.7.41",et.BROWSER=Z([u,d,s]),et.CPU=Z([g]),et.DEVICE=Z([l,f,p,y,h,v,m,b,w]),et.ENGINE=et.OS=Z([u,d]),t.exports&&(e=t.exports=et),e.UAParser=et;var nt=typeof n!==i&&(n.jQuery||n.Zepto);if(nt&&!nt.ua){var rt=new et;nt.ua=rt.getResult(),nt.ua.get=function(){return rt.getUA()},nt.ua.set=function(t){rt.setUA(t);var e=rt.getResult();for(var n in e)nt.ua[n]=e[n]}}}("object"==typeof window?window:o)}(no,no.exports);var ro="Unknown",oo={"Mac OS":"Mac OS X"};var io,ao=(new(0,no.exports)).getResult(),co=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(ao.browser.version),so={browserArchitecture:ao.cpu.architecture||ro,browserFullVersion:ao.browser.version||ro,browserMinorVersion:co.minor||ro,browserName:ao.browser.name||ro,browserVersion:ao.browser.major||ro,deviceName:ao.device.model||ro,engineName:ao.engine.name||ro,engineVersion:ao.engine.version||ro,platformArchitecture:ao.cpu.architecture||ro,platformName:(io=ao.os.name,oo[io]||io||ro),platformVersion:ao.os.version||ro,platformFullVersion:ao.os.version||ro},lo=st,uo=/\./,po=/\|\|/,fo=/\s+\-\s+/,go=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,yo=/^(\d*)(.*)/;function ho(t,e){var n=t.split(po);return n.length>1?n.some(function(t){return _o.contains(t,e)}):function(t,e){var n=t.split(fo);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?lo(!1,'the "-" operator expects exactly 2 operands'):lo(!1)),1===n.length)return mo(n[0],e);var r=n[0],o=n[1];return Mo(r)&&Mo(o)||("production"!==process.env.NODE_ENV?lo(!1,'operands to the "-" operator must be simple (no modifiers)'):lo(!1)),mo(">="+r,e)&&mo("<="+o,e)}(t=n[0].trim(),e)}function mo(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(uo),o=wo(t),i=o.modifier,a=o.rangeComponents;switch(i){case"<":return vo(r,a);case"<=":return-1===(n=jo(r,a))||0===n;case">=":return bo(r,a);case">":return function(t,e){return 1===jo(t,e)}(r,a);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);So(i)&&(r[o]=i+1+"");return bo(t,n)&&vo(t,r)}(r,a);default:return function(t,e){return 0===jo(t,e)}(r,a)}}function vo(t,e){return-1===jo(t,e)}function bo(t,e){var n=jo(t,e);return 1===n||0===n}function wo(t){var e=t.split(uo),n=e[0].match(go);return n||("production"!==process.env.NODE_ENV?lo(!1,"expected regex to match but it did not"):lo(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function So(t){return!isNaN(t)&&isFinite(t)}function Mo(t){return!wo(t).modifier}function Eo(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function ko(t,e){var n=t.match(yo)[1],r=e.match(yo)[1],o=parseInt(n,10),i=parseInt(r,10);return So(o)&&So(i)&&o!==i?Co(o,i):Co(t,e)}function Co(t,e){return typeof t!=typeof e&&("production"!==process.env.NODE_ENV?lo(!1,'"a" and "b" must be of the same type'):lo(!1)),t>e?1:t<e?-1:0}function jo(t,e){for(var n=function(t,e){Eo(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var o=n;o<t.length;o++)t[o]="0"}return Eo(e,t.length),[t,e]}(t,e),r=n[0],o=n[1],i=0;i<o.length;i++){var a=ko(r[i],o[i]);if(a)return a}return 0}var _o={contains:function(t,e){return ho(t.trim(),e.trim())}},Do=_o,Oo=Object.prototype.hasOwnProperty;var Ao=function(t,e,n){if(!t)return null;var r={};for(var o in t)Oo.call(t,o)&&(r[o]=e.call(n,t[o],o,t));return r};var No=so,xo=Do;function Lo(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var o=n.slice(t.length);return!!e&&(o=r?r(o):o,xo.contains(o,e))}function Io(t){return"Windows"===No.platformName?t.replace(/^\s*NT/,""):t}var To=Ao({isBrowser:function(t){return Lo(No.browserName,No.browserFullVersion,t)},isBrowserArchitecture:function(t){return Lo(No.browserArchitecture,null,t)},isDevice:function(t){return Lo(No.deviceName,null,t)},isEngine:function(t){return Lo(No.engineName,No.engineVersion,t)},isPlatform:function(t){return Lo(No.platformName,No.platformFullVersion,t,Io)},isPlatformArchitecture:function(t){return Lo(No.platformArchitecture,null,t)}},function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}});var zo=function(t){return t&&t.ownerDocument?t.ownerDocument:document};var Ro=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE},Bo=Ro;var Po=function t(e){if(Bo(e)){var n=e,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=t(n.childNodes[o]);if(i)return i}}return null},Fo=zo,Uo=Po;var Ko=function(t){for(var e=t;e&&e!==Fo(t).documentElement;){var n=Uo(e);if(null!=n)return n;e=e.parentNode}return null};var Yo=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window};function Ho(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qo=To,Wo=Ko,Zo=Yo,Vo=st,Go=qn,qo=u.Map,Jo={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Xo=Qo.isBrowser("IE <= 11"),$o=function(){function t(t){var e=this;Ho(this,"observer",void 0),Ho(this,"container",void 0),Ho(this,"mutations",void 0),Ho(this,"onCharData",void 0),this.container=t,this.mutations=qo();var n=Zo(t);n.MutationObserver&&!Xo?this.observer=new n.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||("production"!==process.env.NODE_ENV?Vo(!1,"Expected target to be an instance of Node"):Vo(!1)),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,Jo):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=qo(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,r=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return Xo?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=Go(Wo(t.target));this.mutations=this.mutations.set(n,e)}},t}(),ti="-",ei={encode:function(t,e,n){return t+ti+e+ti+n},decode:function(t){var e=t.split(ti).reverse(),n=e[0],r=e[1];return{blockKey:e.slice(2).reverse().join(ti),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},ni={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},ri={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var oi=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)},ii=st,ai=oi;var ci=function(t){var e=t.editorContainer;return e||("production"!==process.env.NODE_ENV?ii(!1,"Missing editorNode"):ii(!1)),ai(e.firstChild)||("production"!==process.env.NODE_ENV?ii(!1,"editorNode.firstChild is not an HTMLElement"):ii(!1)),e.firstChild},si=ei,li=qn;var ui=function(t,e,n,r,o){var i=li(t.getSelection());if(!e||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,t.toJS()),i;var a=si.decode(e),c=a.blockKey,s=t.getBlockTree(c),l=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),u=si.decode(r),p=u.blockKey,f=t.getBlockTree(p),d=f&&f.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!l||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,t.toJS()),i;var g=l.get("start"),y=d.get("start"),h=l?g+n:null,m=d?y+o:null;if(i.getAnchorKey()===c&&i.getAnchorOffset()===h&&i.getFocusKey()===p&&i.getFocusOffset()===m)return i;var v=!1;if(c===p){var b=l.get("end"),w=d.get("end");v=y===g&&w===b?o<n:y<g}else{v=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===p}).first()===p}return i.merge({anchorKey:c,anchorOffset:h,focusKey:p,focusOffset:m,isBackward:v})},pi=Ko,fi=Po,di=ui,gi=st,yi=Ro,hi=qn;function mi(t,e,n){var r=e,o=pi(r);(null!=o||t&&(t===r||t.firstChild===r)||("production"!==process.env.NODE_ENV?gi(!1,"Unknown node in selection range."):gi(!1)),t===r)&&(r=r.firstChild,yi(r)||("production"!==process.env.NODE_ENV?gi(!1,"Invalid DraftEditorContents node."):gi(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?gi(!1,"Invalid DraftEditorContents structure."):gi(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(t){for(;t.firstChild&&(yi(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||fi(t.firstChild));)t=t.firstChild;return t}(r);i=hi(fi(a))}return{key:i,offset:0}}var c=r.childNodes[n-1],s=null,l=null;if(fi(c)){var u=function(t){for(;t.lastChild&&(yi(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||fi(t.lastChild));)t=t.lastChild;return t}(c);s=hi(fi(u)),l=vi(u)}else s=hi(o),l=vi(c);return{key:s,offset:l}}function vi(t){var e=t.textContent;return"\n"===e?0:e.length}var bi=function(t,e,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,c=o.nodeType===Node.TEXT_NODE;if(a&&c)return{selectionState:di(t,hi(pi(n)),r,hi(pi(o)),i),needsRecovery:!1};var s=null,l=null,u=!0;return a?(s={key:hi(pi(n)),offset:r},l=mi(e,o,i)):c?(l={key:hi(pi(o)),offset:i},s=mi(e,n,r)):(s=mi(e,n,r),l=mi(e,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:di(t,s.key,s.offset,l.key,l.offset),needsRecovery:u}},wi=bi;var Si=function(t,e){var n=e.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:wi(t,e,r,o,i,a)},Mi=ri,Ei=vr,ki=ci,Ci=Si;var ji=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();Mi.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var n=t.props.editorState,r=Ci(n,ki(t)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?Ei.forceSelection(n,o):Ei.acceptSelection(n,o),t.update(n))}};var _i={notEmptyKey:function(t){return null!=t&&""!=t}},Di=_i.notEmptyKey;function Oi(t,e){return Di(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}var Ai=function(t,e){var n;if(e.isCollapsed()){var r=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(n=t.getBlockForKey(r).getEntityAt(o-1))!==t.getBlockForKey(r).getEntityAt(o)?null:Oi(t.getEntityMap(),n):null}var i=e.getStartKey(),a=e.getStartOffset(),c=t.getBlockForKey(i);return n=a===c.getLength()?null:c.getEntityAt(a),Oi(t.getEntityMap(),n)},Ni=$o,xi=je,Li=ei,Ii=vr,Ti=ni,zi=ji,Ri=ci,Bi=Si,Pi=Ai,Fi=qn,Ui=To.isBrowser("IE"),Ki=!1,Yi=!1,Hi=null;var Qi,Wi,Zi={onCompositionStart:function(t){Yi=!0,function(t){Hi||(Hi=new Ni(Ri(t))).start()}(t)},onCompositionEnd:function(t){Ki=!1,Yi=!1,setTimeout(function(){Ki||Zi.resolveComposition(t)},20)},onSelect:zi,onKeyDown:function(t,e){if(!Yi)return Zi.resolveComposition(t),void t._onKeyDown(e);e.which!==Ti.RIGHT&&e.which!==Ti.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===Ti.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!Yi){var e=Fi(Hi).stopAndFlushMutations();Hi=null,Ki=!0;var n=Ii.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach(function(t,e){var o=Li.decode(e),i=o.blockKey,a=o.decoratorKey,c=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",c]),l=s.start,u=s.end,p=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:u,isBackward:!1}),f=Pi(r,p),d=r.getBlockForKey(i).getInlineStyleAt(l);r=xi.replaceText(r,p,t,d,f),n=Ii.set(n,{currentContent:r})});var o=Bi(n,Ri(t)).selectionState;t.restoreEditorDOM();var i=Ui?Ii.forceSelection(n,o):Ii.acceptSelection(n,o);t.update(Ii.push(i,r,"insert-characters"))}else t.update(n)}}},Vi=Zi;function Gi(){if(Wi)return Qi;Wi=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}var r=ei,o=t,i=Yn,a=xn,c=function(t){var e,c;function s(){return t.apply(this,arguments)||this}return c=t,(e=s).prototype=Object.create(c.prototype),e.prototype.constructor=e,e.__proto__=c,s.prototype.render=function(){var t=this.props,e=t.block,c=t.children,s=t.contentState,l=t.decorator,u=t.decoratorKey,p=t.direction,f=t.leafSet,d=t.text,g=e.getKey(),y=f.get("leaves"),h=l.getComponentForKey(u),m=l.getPropsForKey(u),v=r.encode(g,parseInt(u,10),0),b=d.slice(y.first().get("start"),y.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),p);return o.createElement(h,n({},m,{contentState:s,decoratedText:b,dir:w,key:v,entityKey:e.getEntityAt(f.get("start")),offsetKey:v}),c)},s}(o.Component);return Qi=c}function qi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xi=t,$i=st,ta=Ro,ea=To.isBrowser("IE <= 11");var na=function(t){var e,n;function r(e){var n;return Ji(qi(n=t.call(this,e)||this),"_forceFlag",void 0),Ji(qi(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;ta(e)||("production"!==process.env.NODE_ENV?$i(!1,"node is not an Element"):$i(!1));var r=e;return n?!function(t){return ea?"\n"===t.textContent:"BR"===t.tagName}(r):r.textContent!==t.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},ea?Xi.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):Xi.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return ea?Xi.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):Xi.createElement("br",{key:"B","data-text":"true",ref:t})}(function(t){return e._node=t}):Xi.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},r}(Xi.Component),ra=na,oa=Ro;var ia=function(t){return!(!t||!t.ownerDocument)&&(oa(t)&&"BR"===t.nodeName)},aa={initODS:function(){},handleExtensionCausedError:function(){}};var ca=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))};var sa=function(t){return ca(t)&&3==t.nodeType};var la=function t(e,n){return!(!e||!n)&&(e===n||!sa(e)&&(sa(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))};var ua=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}},pa=aa,fa=ri,da=la,ga=ua,ya=zo,ha=st,ma=Ro,va=To.isBrowser("IE");function ba(t,e){if(!t)return"[empty]";var n=wa(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(ma(n)||("production"!==process.env.NODE_ENV?ha(!1,"Node must be an Element if it is not a text node."):ha(!1)),n.outerHTML)}function wa(t,e){var n=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var r=t.textContent.length;return ya(t).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=t.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=t.childNodes,a=0;a<i.length;a++)o.appendChild(wa(i[a],e));return o}function Sa(t,e){for(var n=t,r=n;n;){if(ma(n)&&r.hasAttribute("contenteditable"))return ba(n,e);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function Ma(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function Ea(t,e,n,r){var o=ga();if(t.extend&&null!=e&&da(o,e)){n>Ma(e)&&fa.logSelectionStateFailure({anonymizedDom:Sa(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(a){throw fa.logSelectionStateFailure({anonymizedDom:Sa(e,function(e){var n=[];return e===o&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:i,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var a=t.getRangeAt(0);a.setEnd(e,n),t.addRange(a.cloneRange())}}function ka(t,e,n,r){var o=ya(e).createRange();if(n>Ma(e)&&(fa.logSelectionStateFailure({anonymizedDom:Sa(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),pa.handleExtensionCausedError()),o.setStart(e,n),va)try{t.addRange(o)}catch(t){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",t)}else t.addRange(o)}var Ca=eo;var ja,_a,Da=ra,Oa=t,Aa=st,Na=ia,xa=function(t,e,n,r,o){var i=ya(e);if(da(i.documentElement,e)){var a=i.defaultView.getSelection(),c=t.getAnchorKey(),s=t.getAnchorOffset(),l=t.getFocusKey(),u=t.getFocusOffset(),p=t.getIsBackward();if(!a.extend&&p){var f=c,d=s;c=l,s=u,l=f,u=d,p=!1}var g=c===n&&r<=s&&o>=s,y=l===n&&r<=u&&o>=u;if(g&&y)return a.removeAllRanges(),ka(a,e,s-r,t),void Ea(a,e,u-r,t);if(p){if(y&&(a.removeAllRanges(),ka(a,e,u-r,t)),g){var h=a.focusNode,m=a.focusOffset;a.removeAllRanges(),ka(a,e,s-r,t),Ea(a,h,m,t)}}else g&&(a.removeAllRanges(),ka(a,e,s-r,t)),y&&Ea(a,e,u-r,t)}},La=function(t){var e,n;function r(){for(var e,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a))||this,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,r=e.start,o=e.text,i=n.getKey(),a=r+o.length;if(t.hasEdgeWithin(i,r,a)){var c=this.leaf;c||("production"!==process.env.NODE_ENV?Aa(!1,"Missing node"):Aa(!1));var s,l=c.firstChild;l||("production"!==process.env.NODE_ENV?Aa(!1,"Missing child"):Aa(!1)),l.nodeType===Node.TEXT_NODE?s=l:Na(l)?s=c:(s=l.firstChild)||("production"!==process.env.NODE_ENV?Aa(!1,"Missing targetNode"):Aa(!1)),xa(t,s,i,r,a)}}},o.shouldComponentUpdate=function(t){var e=this.leaf;return e||("production"!==process.env.NODE_ENV?Aa(!1,"Missing leafNode"):Aa(!1)),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var t=this,e=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,c=r.styleSet,s=c.reduce(function(t,e){var n={},r=o[e];return void 0!==r&&t.textDecoration!==r.textDecoration&&(n.textDecoration=[t.textDecoration,r.textDecoration].join(" ").trim()),Ca(t,r,n)},{});if(i){var l=i(c,e);s=Ca(s,l)}return Oa.createElement("span",{"data-offset-key":a,ref:function(e){return t.leaf=e},style:s},Oa.createElement(Da,null,n))},r}(Oa.Component),Ia=La;function Ta(){if(_a)return ja;_a=1;var e=Gi(),n=Ia,r=ei,o=t,i=Zr;u.List;var a=function(t){var a,c;function s(){return t.apply(this,arguments)||this}return c=t,(a=s).prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c,s.prototype.render=function(){var t=this.props,a=t.block,c=t.contentState,s=t.customStyleFn,l=t.customStyleMap,u=t.decorator,p=t.direction,f=t.forceSelection,d=t.hasSelection,g=t.selection,y=t.tree,h=a.getKey(),m=a.getText(),v=y.size-1,b=this.props.children||y.map(function(t,i){var y=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,S=b.map(function(t,e){var c=r.encode(h,i,e),u=t.get("start"),p=t.get("end");return o.createElement(n,{key:c,offsetKey:c,block:a,start:u,selection:d?g:null,forceSelection:f,text:m.slice(u,p),styleSet:a.getInlineStyleAt(u),customStyleMap:l,customStyleFn:s,isLast:y===v&&e===w})}).toArray();return y&&u?o.createElement(e,{block:a,children:S,contentState:c,decorator:u,decoratorKey:y,direction:p,leafSet:t,text:m,key:i}):S}).toArray();return o.createElement("div",{"data-offset-key":r.encode(h,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},s}(o.Component);return ja=a}function za(t,e){return!!e&&(t===e.documentElement||t===e.body)}var Ra={getTop:function(t){var e=t.ownerDocument;return za(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var n=t.ownerDocument;za(t,n)?n.body.scrollTop=n.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return za(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var n=t.ownerDocument;za(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=e:t.scrollLeft=e}},Ba=/-(.)/g;var Pa=/([A-Z])/g;var Fa=function(t){return t.replace(Ba,function(t,e){return e.toUpperCase()})},Ua=function(t){return t.replace(Pa,"-$1").toLowerCase()};function Ka(t){return null==t?t:String(t)}var Ya=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return Ka(n.getPropertyValue(Ua(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return Ka(n.getPropertyValue(Ua(e)));if("display"===e)return"none"}return t.currentStyle?Ka("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[Fa(e)]):Ka(t.style&&t.style[Fa(e)])};function Ha(t,e){var n=Qa.get(t,e);return"auto"===n||"scroll"===n}var Qa={get:Ya,getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(Ha(t,"overflow")||Ha(t,"overflowY")||Ha(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}},Wa=Qa,Za=la;var Va=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!Za(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}};var Ga=function(t){var e=Va(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}},qa="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Ja=function(t){return(t=t||document).scrollingElement?t.scrollingElement:qa||"CSS1Compat"!==t.compatMode?t.body:t.documentElement},Xa=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}};var $a=function(t){var e=Ja(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=Xa(t),r=t===e?t.ownerDocument.documentElement:t,o=t.scrollWidth-r.clientWidth,i=t.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function tc(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function ec(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function nc(){return{width:window.innerWidth||tc(),height:window.innerHeight||ec()}}nc.withoutScrollbars=function(){return{width:tc(),height:ec()}};var rc,oc,ic,ac,cc=nc;function sc(){if(oc)return rc;oc=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=Ta(),a=ei,c=t,s=Ra,l=Wa,p=Ga,f=$a,d=cc,g=st,y=oi;u.List;var h=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},m=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),r=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:r}},v=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},b=function(t,e,n,o,i,a){var c={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:a},s=o(t);return s&&(c.className=s),void 0!==i.customEditable&&(c=r({},c,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),c},w=function(t){var e,u;function w(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(r))||this),"wrapperRef",c.createRef()),e}u=t,(e=w).prototype=Object.create(u.prototype),e.prototype.constructor=e,e.__proto__=u;var S=w.prototype;return S.shouldComponentUpdate=function(t){var e=this.props,n=e.block,r=e.direction,o=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||o!==t.tree||r!==t.direction||h(t.selection,t.block.getKey())&&t.forceSelection;return i||a},S.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=f(o);if(o===window){var a=p(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{y(n)||("production"!==process.env.NODE_ENV?g(!1,"blockNode is not an HTMLElement"):g(!1));var c=n;(r=c.offsetHeight+c.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},S.render=function(){var t=this,e=this.props,o=e.block,s=e.blockRenderMap,l=e.blockRendererFn,u=e.blockStyleFn,p=e.contentState,f=e.decorator,d=e.editorKey,g=e.editorState,y=e.customStyleFn,S=e.customStyleMap,M=e.direction,E=e.forceSelection,k=e.selection,C=e.tree,j=null;o.children.size&&(j=o.children.reduce(function(e,n){var o=a.encode(n,0,0),i=p.getBlockForKey(n),f=v(i,l),y=f.CustomComponent||w,h=m(i,s),S=h.Element,M=h.wrapperTemplate,E=b(i,d,o,u,f,null),k=r({},t.props,{tree:g.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:i});return e.push(c.createElement(S,E,c.createElement(y,k))),!M||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(i,p)||function(t,e,n){var r=[],o=!0,i=!1,s=void 0;try{for(var l,u=n.reverse()[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var p=l.value;if(p.type!==e)break;r.push(p)}}catch(t){i=!0,s=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(c.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},f))}(M,S,e),e},[]));var _=o.getKey(),D=a.encode(_,0,0),O=v(o,l),A=O.CustomComponent,N=null!=A?c.createElement(A,n({},this.props,{tree:g.getBlockTree(_),blockProps:O.customProps,offsetKey:D,block:o})):c.createElement(i,{block:o,children:j,contentState:p,customStyleFn:y,customStyleMap:S,decorator:f,direction:M,forceSelection:E,hasSelection:h(k,_),selection:k,tree:C});if(o.getParentKey())return N;var x=m(o,s).Element,L=b(o,d,D,u,O,this.wrapperRef);return c.createElement(x,L,N)},w}(c.Component);return rc=w}var lc=eo;function uc(){return uc=lc||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},uc.apply(this,arguments)}var pc,fc,dc,gc,yc=Ia,hc=ei,mc=t,vc=Ra,bc=Wa,wc=Yn,Sc=xn,Mc=Zr,Ec=Ga,kc=$a,Cc=cc,jc=st,_c=oi,Dc=qn,Oc=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},Ac=function(t){var e,n;function r(){for(var e,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a))||this,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||Oc(t.selection,t.block.getKey())&&t.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=bc.getScrollParent(n),i=kc(o);if(o===window){var a=Ec(n);(r=a.y+a.height-Cc().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{_c(n)||("production"!==process.env.NODE_ENV?jc(!1,"blockNode is not an HTMLElement"):jc(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&vc.setTop(o,vc.getTop(o)+r+10)}}}}},o._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),r=e.getText(),o=this.props.tree.size-1,i=Oc(this.props.selection,n);return this.props.tree.map(function(a,c){var s=a.get("leaves");if(0===s.size)return null;var l=s.size-1,u=s.map(function(a,s){var u=hc.encode(n,c,s),p=a.get("start"),f=a.get("end");return mc.createElement(yc,{key:u,offsetKey:u,block:e,start:p,selection:i?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(p,f),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:c===o&&s===l})}).toArray(),p=a.get("decoratorKey");if(null==p)return u;if(!t.props.decorator)return u;var f=Dc(t.props.decorator),d=f.getComponentForKey(p);if(!d)return u;var g=f.getPropsForKey(p),y=hc.encode(n,c,0),h=s.first().get("start"),m=s.last().get("end"),v=r.slice(h,m),b=e.getEntityAt(a.get("start")),w=Sc.getHTMLDirIfDifferent(wc.getDirection(v),t.props.direction),S={contentState:t.props.contentState,decoratedText:v,dir:w,start:h,end:m,blockKey:n,entityKey:b,offsetKey:y};return mc.createElement(d,uc({},g,S,{key:y}),u)}).toArray()},o.render=function(){var t=this,e=this.props,n=e.direction,r=e.offsetKey,o=Mc({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return mc.createElement("div",{"data-offset-key":r,className:o,ref:function(e){return t._node=e}},this._renderChildren())},r}(mc.Component),Nc=Ac;var xc=tn("draft_tree_data_support")?function(){if(ac)return ic;ac=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}var r=sc(),o=ei,i=t,a=qn,c=function(t){var e,c;function s(){return t.apply(this,arguments)||this}c=t,(e=s).prototype=Object.create(c.prototype),e.prototype.constructor=e,e.__proto__=c;var l=s.prototype;return l.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),c=n.getCurrentContent(),s=e.getDecorator(),l=n.getDecorator();return o!==i||a!==c||s!==l||n.mustForceSelection()},l.render=function(){for(var t=this.props,e=t.blockRenderMap,c=t.blockRendererFn,s=t.blockStyleFn,l=t.customStyleMap,u=t.customStyleFn,p=t.editorState,f=t.editorKey,d=t.textDirectionality,g=p.getCurrentContent(),y=p.getSelection(),h=p.mustForceSelection(),m=p.getDecorator(),v=a(p.getDirectionMap()),b=[],w=g.getBlocksAsArray()[0];w;){var S=w.getKey(),M={blockRenderMap:e,blockRendererFn:c,blockStyleFn:s,contentState:g,customStyleFn:u,customStyleMap:l,decorator:m,editorKey:f,editorState:p,forceSelection:h,selection:y,block:w,direction:d||v.get(S),tree:p.getBlockTree(S)},E=(e.get(w.getType())||e.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:S},M)),wrapperTemplate:E,key:S,offsetKey:o.encode(S,0,0)});var k=w.getNextSiblingKey();w=k?g.getBlockForKey(k):null}for(var C=[],j=0;j<b.length;){var _=b[j];if(_.wrapperTemplate){var D=[];do{D.push(b[j].block),j++}while(j<b.length&&b[j].wrapperTemplate===_.wrapperTemplate);var O=i.cloneElement(_.wrapperTemplate,{key:_.key+"-wrap","data-offset-key":_.offsetKey},D);C.push(O)}else C.push(_.block),j++}return i.createElement("div",{"data-contents":"true"},C)},s}(i.Component);return ic=c}():function(){if(gc)return dc;gc=1;var e=eo;function n(){return n=e||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=Nc,a=ei,c=t,s=Zr,l=(fc||(fc=1,pc=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(e=(e?e+" ":"")+o)}return e}),pc),u=qn,p=function(t,e,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(t){var e,o;function s(){return t.apply(this,arguments)||this}o=t,(e=s).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o;var f=s.prototype;return f.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),c=n.getCurrentContent(),s=e.getDecorator(),l=n.getDecorator();return o!==i||a!==c||s!==l||n.mustForceSelection()},f.render=function(){for(var t=this.props,e=t.blockRenderMap,o=t.blockRendererFn,s=t.blockStyleFn,f=t.customStyleMap,d=t.customStyleFn,g=t.editorState,y=t.editorKey,h=t.preventScroll,m=t.textDirectionality,v=g.getCurrentContent(),b=g.getSelection(),w=g.mustForceSelection(),S=g.getDecorator(),M=u(g.getDirectionMap()),E=v.getBlocksAsArray(),k=[],C=null,j=null,_=0;_<E.length;_++){var D=E[_],O=D.getKey(),A=D.getType(),N=o(D),x=void 0,L=void 0,I=void 0;N&&(x=N.component,L=N.props,I=N.editable);var T=m||M.get(O),z=a.encode(O,0,0),R={contentState:v,block:D,blockProps:L,blockStyleFn:s,customStyleMap:f,customStyleFn:d,decorator:S,direction:T,forceSelection:w,offsetKey:z,preventScroll:h,selection:b,tree:g.getBlockTree(O)},B=e.get(A)||e.get("unstyled"),P=B.wrapper,F=B.element||e.get("unstyled").element,U=D.getDepth(),K="";if(s&&(K=s(D)),"li"===F)K=l(K,p(A,U,j!==P||null===C||U>C,T));var Y=x||i,H={className:K,"data-block":!0,"data-editor":y,"data-offset-key":z,key:O};void 0!==I&&(H=r({},H,{contentEditable:I,suppressContentEditableWarning:!0}));var Q=c.createElement(F,H,c.createElement(Y,n({},R,{key:O})));k.push({block:Q,wrapperTemplate:P,key:O,offsetKey:z}),C=P?D.getDepth():null,j=P}for(var W=[],Z=0;Z<k.length;){var V=k[Z];if(V.wrapperTemplate){var G=[];do{G.push(k[Z].block),Z++}while(Z<k.length&&k[Z].wrapperTemplate===V.wrapperTemplate);var q=c.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},G);W.push(q)}else W.push(V.block),Z++}return c.createElement("div",{"data-contents":"true"},W)},s}(c.Component);return dc=f}(),Lc={isImage:function(t){return"image"===Ic(t)[0]},isJpeg:function(t){var e=Ic(t);return Lc.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};function Ic(t){return t.split("/")}var Tc=Lc,zc=st;var Rc=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&("production"!==process.env.NODE_ENV?zc(!1,"toArray: Array-like object expected"):zc(!1)),"number"!=typeof e&&("production"!==process.env.NODE_ENV?zc(!1,"toArray: Object needs a length property"):zc(!1)),0===e||e-1 in t||("production"!==process.env.NODE_ENV?zc(!1,"toArray: Object should have keys for indices"):zc(!1)),"function"==typeof t.callee&&("production"!==process.env.NODE_ENV?zc(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):zc(!1)),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}(t):[t]};function Bc(t){return function(){return t}}var Pc=function(){};Pc.thatReturns=Bc,Pc.thatReturnsFalse=Bc(!1),Pc.thatReturnsTrue=Bc(!0),Pc.thatReturnsNull=Bc(null),Pc.thatReturnsThis=function(){return this},Pc.thatReturnsArgument=function(t){return t};var Fc=Pc,Uc=Tc,Kc=Rc,Yc=Fc,Hc=new RegExp("\r\n","g"),Qc={"text/rtf":1,"text/html":1};function Wc(t){if("file"==t.kind)return t.getAsFile()}var Zc=function(){function t(t){this.data=t,this.types=t.types?Kc(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(t){return Qc[t]})},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(Hc,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some(function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some(function(t){return-1!=t.indexOf("application/x-moz-file")});if(t)return!0;for(var e=this.getFiles(),n=0;n<e.length;n++){var r=e[n].type;if(!Uc.isImage(r))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Wc).filter(Yc.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}(),Vc=Zc,Gc=st,qc=/\.textClipping$/,Jc={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Xc=function(t,e){var n=0,r=[];t.forEach(function(i){!function(t,e){if(!o.FileReader||t.type&&!(t.type in Jc))return void e("");if(""===t.type){var n="";return qc.test(t.name)&&(n=t.name.replace(qc,"")),void e(n)}var r=new FileReader;r.onload=function(){var t=r.result;"string"!=typeof t&&("production"!==process.env.NODE_ENV?Gc(!1,'We should be calling "FileReader.readAsText" which returns a string'):Gc(!1)),e(t)},r.onerror=function(){e("")},r.readAsText(t)}(i,function(o){n++,o&&r.push(o.slice(0,5e3)),n==t.length&&e(r.join("\r"))})})};var $c=function(t){return"handled"===t||!0===t},ts=Vc,es=je,ns=vr,rs=Ko,os=zo,is=Xc,as=ui,cs=Yo,ss=$c,ls=qn;function us(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:cs(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function ps(t,e,n){var r=es.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return ns.push(t,r,"insert-fragment")}var fs={onDragEnd:function(t){t.exitCurrentMode(),us(t)},onDrop:function(t,e){var n=new ts(e.nativeEvent.dataTransfer),r=t._latestEditorState,o=function(t,e){var n=null,r=null,o=os(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=ls(n),r=ls(r);var a=ls(rs(n));return as(e,a,r,a,r)}(e.nativeEvent,r);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(t.props.handleDroppedFiles&&ss(t.props.handleDroppedFiles(o,i)))return;is(i,function(e){e&&t.update(ps(r,o,e))})}else{var a=t._internalDrag?"internal":"external";t.props.handleDrop&&ss(t.props.handleDrop(o,n,a))||(t._internalDrag?t.update(function(t,e){var n=es.moveText(t.getCurrentContent(),t.getSelection(),e);return ns.push(t,n,"insert-fragment")}(r,o)):t.update(ps(r,o,n.getText()))),us(t)}}}};var ds=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some(function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return o===e&&(i=!0,!0)})}),i};!function(t){if(!t.setImmediate){var e,n,r,o,i,a=1,c={},s=!1,l=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,"[object process]"==={}.toString.call(t.process)?e=function(t){process.nextTick(function(){f(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){f(t.data)},e=function(t){r.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,e=function(t){var e=l.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):e=function(t){setTimeout(f,0,t)}:(o="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),e=function(e){t.postMessage(o+e,"*")}),u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:t,args:n};return c[a]=o,e(a),a++},u.clearImmediate=p}function p(t){delete c[t]}function f(t){if(s)setTimeout(f,0,t);else{var e=c[t];if(e){s=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),s=!1}}}}}("undefined"==typeof self?o:self);var gs=o.setImmediate,ys=je,hs=vr,ms=Ai,vs=$c,bs=ds,ws=qn,Ss=gs,Ms=To.isBrowser("Firefox");function Es(t,e,n,r,o){var i=ys.replaceText(t.getCurrentContent(),t.getSelection(),e,n,r);return hs.push(t,i,"insert-characters",o)}var ks=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,r=e.data;if(r)if(t.props.handleBeforeInput&&vs(t.props.handleBeforeInput(r,n,e.timeStamp)))e.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return e.preventDefault(),void t.update(Es(n,r,n.getCurrentInlineStyle(),ms(n.getCurrentContent(),n.getSelection()),!0));var c,s=Es(n,r,n.getCurrentInlineStyle(),ms(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=bs(t._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),p=s.getBlockTree(a);l=u.size!==p.size||u.zip(p).some(function(t){var e=t[0],n=t[1],o=e.get("start"),a=o+(o>=i?r.length:0),c=e.get("end"),s=c+(c>=i?r.length:0),l=n.get("start"),u=n.get("end"),p=n.get("decoratorKey");return e.get("decoratorKey")!==p||e.get("leaves").size!==n.get("leaves").size||a!==l||s!==u||null!=p&&u-l!==c-o})}if(l||(c=r,l=Ms&&("'"==c||"/"==c)),l||(l=ws(s.getDirectionMap()).get(a)!==ws(n.getDirectionMap()).get(a)),l)return e.preventDefault(),s=hs.set(s,{forceSelection:!0}),void t.update(s);s=hs.set(s,{nativelyRenderedContent:s.getCurrentContent()}),t._pendingStateFromBeforeInput=s,Ss(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}},Cs=vr,js=la,_s=ua;var Ds=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&_s(n)===n.body){var r=n.defaultView.getSelection(),o=t.editor;1===r.rangeCount&&js(o,r.anchorNode)&&js(o,r.focusNode)&&r.removeAllRanges()}var i=t._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var c=a.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(Cs.acceptSelection(i,c))}},Os=vr;var As=function(t,e){t.setMode("composite"),t.update(Os.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)},Ns=Ot;var xs=function(t){var e=t.getSelection();return e.isCollapsed()?null:Ns(t.getCurrentContent(),e)},Ls=xs;var Is=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(Ls(t._latestEditorState))};var Ts=je,zs=vr,Rs=Wa,Bs=xs,Ps=$a,Fs=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1};var Us=function(t,e){var n,r=t._latestEditorState,o=r.getSelection(),i=e.target;if(o.isCollapsed())e.preventDefault();else{if(Fs(i)){var a=i;n=Ps(Rs.getScrollParent(a))}var c=Bs(r);t.setClipboard(c),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=Ts.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return zs.push(t,e,"remove-range")}(r))},0)}};var Ks=function(t,e){t.setMode("drag"),e.preventDefault()};var Ys=function(t){t._internalDrag=!0,t.setMode("drag")},Hs=vr,Qs=To;var Ws=function(t,e){var n=t._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),Qs.isBrowser("Chrome < 60.0.3081.0")?t.update(Hs.forceSelection(n,o)):t.update(Hs.acceptSelection(n,o))}},Zs=st,Vs=/[\uD800-\uDFFF]/;function Gs(t){return 55296<=t&&t<=57343}function qs(t){return Vs.test(t)}function Js(t,e){return 1+Gs(t.charCodeAt(e))}function Xs(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!qs(t))return t.substr(e,n);var r=t.length;if(r<=0||e>r||n<=0)return"";var o=0;if(e>0){for(;e>0&&o<r;e--)o+=Js(t,o);if(o>=r)return""}else if(e<0){for(o=r;e<0&&0<o;e++)o-=Js(t,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=Js(t,i);return t.substring(o,i)}var $s={getCodePoints:function(t){for(var e=[],n=0;n<t.length;n+=Js(t,n))e.push(t.codePointAt(n));return e},getUTF16Length:Js,hasSurrogateUnit:qs,isCodeUnitInSurrogateRange:Gs,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||("production"!==process.env.NODE_ENV?Zs(!1,"isSurrogatePair: Invalid index %s for string length %s.",e,t.length):Zs(!1)),e+1===t.length)return!1;var n=t.charCodeAt(e),r=t.charCodeAt(e+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(t){if(!qs(t))return t.length;for(var e=0,n=0;n<t.length;n+=Js(t,n))e++;return e},substring:function(t,e,n){(e=e||0)<0&&(e=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-e);return Xs(t,e=e<n?e:n,r)},substr:Xs},tl=Fc;function el(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}}var nl="production"!==process.env.NODE_ENV?function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];el.apply(void 0,[e].concat(r))}}:tl,rl=nl;var ol=function(t,e){var n=t.getSelection();"production"!==process.env.NODE_ENV&&rl(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=t.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,c=0;if(e>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,c=r.getBlockForKey(s).getText().length}else c=i-e;return n.merge({focusKey:a,focusOffset:c,isBackward:!0})},il=je,al=tn("draft_tree_data_support");var cl=function(t,e,n){var r=t.getSelection(),o=t.getCurrentContent(),i=r,a=r.getAnchorKey(),c=r.getFocusKey(),s=o.getBlockForKey(a);if(al&&"forward"===n&&a!==c)return o;if(r.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return o;if(al)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(s.nextSibling);if(!l||0===l.getLength())return o}}else if(t.isSelectionAtStartOfContent())return o;if((i=e(t))===r)return o}return il.removeRange(o,i,n)},sl=vr,ll=$s,ul=ol,pl=cl;var fl=function(t){var e=pl(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),o=e.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return ul(t,i?ll.getUTF16Length(i,0):1)},"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return sl.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},dl=je,gl=ei,yl=vr,hl=_i.notEmptyKey,ml=Ko,vl=fl,bl=qn,wl=To.isEngine("Gecko");var Sl=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var c=a.firstChild;null!=c;c=c.nextSibling)c!==r&&a.removeChild(c)}var s=r.textContent,l=t._latestEditorState,u=bl(ml(r)),p=gl.decode(u),f=p.blockKey,d=p.decoratorKey,g=p.leafKey,y=l.getBlockTree(f).getIn([d,"leaves",g]),h=y.start,m=y.end,v=l.getCurrentContent(),b=v.getBlockForKey(f),w=b.getText().slice(h,m);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==w){var S,M,E,k,C=l.getSelection(),j=C.merge({anchorOffset:h,focusOffset:m,isBackward:!1}),_=b.getEntityAt(h),D=hl(_)?v.getEntity(_):null,O="MUTABLE"===(null!=D?D.getMutability():null),A=O?"spellcheck-change":"apply-entity",N=dl.replaceText(v,j,s,b.getInlineStyleAt(h),O?b.getEntityAt(h):null);if(wl)S=n.anchorOffset,M=n.focusOffset,k=(E=h+Math.min(S,M))+Math.abs(S-M),S=E,M=k;else{var x=s.length-w.length;E=C.getStartOffset(),k=C.getEndOffset(),S=o?k+x:E,M=k+x}var L=N.merge({selectionBefore:v.getSelectionAfter(),selectionAfter:C.merge({anchorOffset:S,focusOffset:M})});t.update(yl.push(l,L,A))}else{var I=e.nativeEvent.inputType;if(I){var T=function(t,e){return"deleteContentBackward"===t?vl(e):e}(I,l);if(T!==l)return t.restoreEditorDOM(),void t.update(T)}}}},Ml=ni;var El=function(t){return t.which===Ml.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))},kl=To.isPlatform("Mac OS X"),Cl={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return kl&&t.altKey},usesMacOSHeuristics:function(){return kl},hasCommandModifier:function(t){return kl?!!t.metaKey&&!t.altKey:Cl.isCtrlKeyCommand(t)},isSoftNewlineEvent:El},jl=Cl,_l=je,Dl=vr,Ol=Ot,Al=qn,Nl=null,xl={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=e.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=e.getKeyAfter(o);if(null==a)return t;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=Al(r),Nl=Ol(e,r);var c=_l.removeRange(e,r,"forward");return c===e?t:Dl.push(t,c,"remove-range")},paste:function(t){if(!Nl)return t;var e=_l.replaceWithFragment(t.getCurrentContent(),t.getSelection(),Nl);return Dl.push(t,e,"insert-fragment")}},Ll=st;var Il=To.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var o=r===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var i,a=Array.from(e.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);e.setEndBefore(r)}"production"!==process.env.NODE_ENV?Ll(!1,"Found an unexpected detached subtree when getting range client rects."):Ll(!1)}:function(t){return Array.from(t.getClientRects())},Tl=$s,zl=zo,Rl=Il,Bl=st;function Pl(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var c=t[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<e&&i-r<e}function Fl(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}var Ul=vr,Kl=function(t){t.collapsed||("production"!==process.env.NODE_ENV?Bl(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):Bl(!1));var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=zl(t),r=n.createElement("div");r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?Bl(!1,"Missing document.body"):Bl(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(e),r=t.endContainer,o=t.endOffset;for(t.setStart(t.startContainer,0);Pl(Rl(t),n)&&(r=t.startContainer,o=t.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?Bl(!1,"Found unexpected detached subtree when traversing."):Bl(!1)),t.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var c=i.nodeValue,s=a;s>=0;s--)if(!(null!=c&&s>0&&Tl.isSurrogatePair(c,s-1))){if(t.setStart(i,s),!Pl(Rl(t),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=Fl(i=i.childNodes[s])}return t.setStart(r,o),t},Yl=bi,Hl=ol,Ql=cl;var Wl=function(t,e){var n=Ql(t,function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Hl(t,1);var r=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Kl(r),Yl(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return n===t.getCurrentContent()?t:Ul.push(t,n,"remove-range")},Zl="['‘’]",Vl="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Gl=new RegExp("^(?:"+Vl+")*(?:"+Zl+"|(?!"+Vl+").)*(?:(?!"+Vl+").)"),ql=new RegExp("(?:(?!"+Vl+").)(?:"+Zl+"|(?!"+Vl+").)*(?:"+Vl+")*$");function Jl(t,e){var n=e?ql.exec(t):Gl.exec(t);return n?n[0]:t}var Xl={getBackward:function(t){return Jl(t,!0)},getForward:function(t){return Jl(t,!1)}},$l=Xl,tu=vr,eu=ol,nu=cl;var ru=nl;var ou=function(t,e){var n=t.getSelection();"production"!==process.env.NODE_ENV&&ru(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=t.getCurrentContent(),c=o;return e>a.getBlockForKey(o).getText().length-i?(c=a.getKeyAfter(o),r=0):r=i+e,n.merge({focusKey:c,focusOffset:r})},iu=Xl,au=vr,cu=ou,su=cl;var lu=je,uu=vr;var pu=vr;var fu=vr;var du=vr,gu=$s,yu=ou,hu=cl;var mu=je,vu=vr,bu=Ot;var wu=vr;var Su=je,Mu=vr,Eu=ni,ku=xl,Cu=To,ju=$c,_u=Wl,Du=function(t){var e=nu(t,function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return eu(t,1);var r=e.getStartKey(),o=t.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=$l.getBackward(o);return eu(t,i.length||1)},"backward");return e===t.getCurrentContent()?t:tu.push(t,e,"remove-range")},Ou=function(t){var e=su(t,function(t){var e=t.getSelection(),n=e.getStartOffset(),r=e.getStartKey(),o=t.getCurrentContent().getBlockForKey(r).getText().slice(n),i=iu.getForward(o);return cu(t,i.length||1)},"forward");return e===t.getCurrentContent()?t:au.push(t,e,"remove-range")},Au=function(t){var e=lu.splitBlock(t.getCurrentContent(),t.getSelection());return uu.push(t,e,"split-block")},Nu=function(t){var e=t.getSelection(),n=e.getEndKey(),r=t.getCurrentContent().getBlockForKey(n).getLength();return pu.set(t,{selection:e.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},xu=function(t){var e=t.getSelection(),n=e.getStartKey();return fu.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Lu=fl,Iu=function(t){var e=hu(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),o=e.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return yu(t,i?gu.getUTF16Length(i,0):1)},"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return du.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},Tu=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var r,o,i=e.getAnchorKey(),a=t.getCurrentContent(),c=a.getBlockForKey(i).getLength();if(c<=1)return t;n===c?(r=e.set("anchorOffset",n-1),o=e):o=(r=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var s=bu(a,r),l=mu.removeRange(a,r,"backward"),u=l.getSelectionAfter(),p=u.getAnchorOffset()-1,f=u.merge({anchorOffset:p,focusOffset:p}),d=mu.replaceWithFragment(l,f,s),g=vu.push(t,d,"insert-fragment");return vu.acceptSelection(g,o)},zu=function(t,e,n){var r=wu.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(wu.set(e,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)):n(r);else{var o=r.getCurrentContent();n(wu.set(r,{nativelyRenderedContent:o}))}},Ru=jl.isOptionKeyCommand,Bu=Cu.isBrowser("Chrome");var Pu=function(t,e){var n=e.which,r=t._latestEditorState;function o(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case Eu.RETURN:if(e.preventDefault(),t.props.handleReturn&&ju(t.props.handleReturn(e,r)))return;break;case Eu.ESC:if(e.preventDefault(),o("onEscape"))return;break;case Eu.TAB:if(o("onTab"))return;break;case Eu.UP:if(o("onUpArrow"))return;break;case Eu.RIGHT:if(o("onRightArrow"))return;break;case Eu.DOWN:if(o("onDownArrow"))return;break;case Eu.LEFT:if(o("onLeftArrow"))return;break;case Eu.SPACE:Bu&&Ru(e)&&e.preventDefault()}var i=t.props.keyBindingFn(e);if(null!=i&&""!==i)if("undo"!==i){if(e.preventDefault(),!t.props.handleKeyCommand||!ju(t.props.handleKeyCommand(i,r,e.timeStamp))){var a=function(t,e,n){switch(t){case"redo":return Mu.redo(e);case"delete":return Iu(e);case"delete-word":return Ou(e);case"backspace":return Lu(e);case"backspace-word":return Du(e);case"backspace-to-start-of-line":return _u(e,n);case"split-block":return Au(e);case"transpose-characters":return Tu(e);case"move-selection-to-start-of-block":return xu(e);case"move-selection-to-end-of-block":return Nu(e);case"secondary-cut":return ku.cut(e);case"secondary-paste":return ku.paste(e);default:return e}}(i,r,e);a!==r&&t.update(a)}}else zu(e,r,t.update);else if(n===Eu.SPACE&&Bu&&Ru(e)){var c=Su.replaceText(r.getCurrentContent(),r.getSelection()," ");t.update(Mu.push(r,c,"insert-characters"))}};var Fu=function(){function t(t){var e,n,r;r=void 0,(n="_uri")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this._uri=t}return t.prototype.toString=function(){return this._uri},t}(),Uu=Fu,Ku=st,Yu=To.isBrowser("IE <= 9");var Hu=function(t){var e,n=null;return!Yu&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Ku(!1,"Missing doc.documentElement"):Ku(!1)),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n},Qu=Ro;var Wu=function(t){return!(!t||!t.ownerDocument)&&(Qu(t)&&"A"===t.nodeName)},Zu=Ro;var Vu,Gu=function(t){return!(!t||!t.ownerDocument)&&(Zu(t)&&"IMG"===t.nodeName)};function qu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ju(t,e,n[e])})}return t}function Ju(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xu=M,$u=R,tp=J,ep=qr,np=Je,rp=Uu,op=Zr,ip=mt,ap=Hu,cp=tn,sp=u,lp=sp.List,up=sp.Map,pp=sp.OrderedSet,fp=Wu,dp=ia,gp=oi,yp=Gu,hp=cp("draft_tree_data_support"),mp=new RegExp("\r","g"),vp=new RegExp("\n","g"),bp=new RegExp("^\n","g"),wp=new RegExp("&nbsp;","g"),Sp=new RegExp("&#13;?","g"),Mp=new RegExp("&#8203;?","g"),Ep=["bold","bolder","500","600","700","800","900"],kp=["light","lighter","normal","100","200","300","400"],Cp=["className","href","rel","target","title"],jp=["alt","className","height","src","width"],_p=(Ju(Vu={},op("public/DraftStyleDefault/depth0"),0),Ju(Vu,op("public/DraftStyleDefault/depth1"),1),Ju(Vu,op("public/DraftStyleDefault/depth2"),2),Ju(Vu,op("public/DraftStyleDefault/depth3"),3),Ju(Vu,op("public/DraftStyleDefault/depth4"),4),Vu),Dp=up({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Op=function(t){if(gp(t)&&t.style.fontFamily.includes("monospace"))return"CODE";return null},Ap=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(_p).some(function(n){t.classList.contains(n)&&(e=_p[n])}),e},Np=function(t){if(!fp(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new rp(e.href);return!0}catch(t){return!1}},xp=function(t){if(!yp(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},Lp=function(t,e){if(!gp(t))return e;var n=t,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return e.withMutations(function(t){Ep.indexOf(r)>=0?t.add("BOLD"):kp.indexOf(r)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},Ip=function(t){return"ul"===t||"ol"===t},Tp=function(){function t(t,e){Ju(this,"characterList",lp()),Ju(this,"currentBlockType","unstyled"),Ju(this,"currentDepth",0),Ju(this,"currentEntity",null),Ju(this,"currentText",""),Ju(this,"wrapper",null),Ju(this,"blockConfigs",[]),Ju(this,"contentBlocks",[]),Ju(this,"entityMap",np),Ju(this,"blockTypeMap",void 0),Ju(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=lp(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=np,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],pp())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(hp?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=qu({key:t.key||ip(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:lp(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=lp(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=o.nodeName.toLowerCase();if("body"===i||Ip(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,c=this.wrapper;Ip(i)&&(this.wrapper=i,Ip(c)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),e)),this.currentDepth=a,this.wrapper=c}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(xp(o))this._addImgNode(o,e);else if(Np(o))this._addAnchorNode(o,n,e);else{var l=e;Dp.has(i)&&(l=l.add(Dp.get(i))),l=Lp(o,l);var u=Op(o);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,e);else this._addTextNode(o,e);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var p=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!hp&&gp(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var d=o;this.currentDepth=Ap(d,this.currentDepth)}var g=ip(),y=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),n.push(this._makeBlockConfig({key:g,childConfigs:y,type:s})),this.currentDepth=p,this.wrapper=f}}}return n},e._appendText=function(t,e){var n;this.currentText+=t;var r=Xu.create({style:e,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(r))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==r?Math.min(e,r[0]):e)>(n=void 0!==(r=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(n,t-r[0]):n)?(this.currentText="",this.characterList=lp()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(bp,"")).replace(vp," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){dp(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(yp(t)){var n=t,r={};jp.forEach(function(t){var e=n.getAttribute(t);e&&(r[t]=e)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),cp("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(fp(t)){var r=t,o={};Cp.forEach(function(t){var e=r.getAttribute(t);e&&(o[t]=e)}),o.url=new rp(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,r=0;r<=n;r++){var o=t[r];o.parent=e,o.prevSibling=r>0?t[r-1].key:null,o.nextSibling=r<n?t[r+1].key:null,o.children=lp(o.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new tp(qu({},o))),this._toContentBlocks(o.childConfigs,o.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return lp(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var n=e._extractTextFromBlockConfigs(t.childConfigs),r=n.text,o=n.characterList;e.contentBlocks.push(new $u(qu({},t,{text:t.text+r,characterList:t.characterList.concat(o)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,n="",r=lp(),o=0;o<=e;o++){var i=t[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},t}(),zp=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ep,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ap)(t=t.trim().replace(mp,"").replace(wp," ").replace(Sp,"").replace(Mp,""));if(!n)return null;var r=function(t){var e={};return t.mapKeys(function(t,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){void 0===e[n]?e[n]=t:"string"==typeof e[n]?e[n]=[e[n],t]:e[n].push(t)})}),up(e)}(e);return new Tp(r,function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()};function Rp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bp=R,Pp=J,Fp=zp,Up=mt,Kp=Hu,Yp=tn,Hp=u,Qp=nn,Wp=Hp.List,Zp=Hp.Repeat,Vp=Yp("draft_tree_data_support"),Gp=Vp?Pp:Bp;var qp=je,Jp=vr,Xp=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),c=a.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat([[i,a.get(i)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return a=a.merge(c),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})},$p=qn,tf={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return tf.toggleInlineStyle(t,"BOLD");case"italic":return tf.toggleInlineStyle(t,"ITALIC");case"underline":return tf.toggleInlineStyle(t,"UNDERLINE");case"code":return tf.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return tf.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return tf.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=qp.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=Jp.push(t,e,"insert-characters");return Jp.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:e});if(a!==n)return Jp.push(t,a,"remove-range")}var c=tf.tryToRemoveBlockStyle(t);return c?Jp.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockForKey(r).getLength();if(e.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=e.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),c=qp.removeRange(n,a,"forward");return c!==n?Jp.push(t,c,"remove-range"):null},onTab:function(t,e,n){var r=e.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return e;var i=e.getCurrentContent(),a=i.getBlockForKey(o),c=a.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var s=a.getDepth();if(!t.shiftKey&&s===n)return e;var l=Xp(i,r,t.shiftKey?-1:1,n);return Jp.push(e,l,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=t.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var c=$p(i.getBlockBefore(o));o=c.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:c.getLength(),isBackward:!1})}if(i.getBlockMap().skipWhile(function(t,e){return e!==r}).reverse().skipWhile(function(t,e){return e!==o}).some(function(t){return"atomic"===t.getType()}))return t;var s=i.getBlockForKey(r).getType()===e?"unstyled":e;return Jp.push(t,qp.setBlockType(i,a,s),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?tf.toggleBlockType(t,"code-block"):tf.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),r=t.getCurrentInlineStyle();if(n.isCollapsed())return Jp.setInlineStyleOverride(t,r.has(e)?r.remove(e):r.add(e));var o,i=t.getCurrentContent();return o=r.has(e)?qp.removeInlineStyle(i,n,e):qp.applyInlineStyle(i,n,e),Jp.push(t,o,"change-inline-style")},toggleLink:function(t,e,n){var r=qp.applyEntity(t.getCurrentContent(),e,n);return Jp.push(t,r,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var r=e.getAnchorKey(),o=t.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return qp.setBlockType(o,e,"unstyled")}return null}},ef=tf,nf=/\r\n?|\n/g;var rf=f,of=M,af=Vc,cf=je,sf={processHTML:function(t,e){return Fp(t,Kp,e)},processText:function(t,e,n){return t.reduce(function(t,r,o){r=Qp(r);var i=Up(),a={key:i,type:n,text:r,characterList:Wp(Zp(e,r.length))};if(Vp&&0!==o){var c=o-1;a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Rp(t,e,n[e])})}return t}({},a,{prevSibling:(t[c]=t[c].merge({nextSibling:i})).getKey()})}return t.push(new Gp(a)),t},[])}},lf=vr,uf=ef,pf=Ai,ff=Xc,df=$c,gf=function(t){return t.split(nf)};function yf(t,e,n){var r=cf.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return lf.push(t,r.set("entityMap",n),"insert-fragment")}var hf=To,mf=ks,vf=Ds,bf=As,wf=Is,Sf=Us,Mf=Ks,Ef=Ys,kf=Ws,Cf=Sl,jf=Pu,_f=function(t,e){e.preventDefault();var n=new af(e.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(t.props.handlePastedFiles&&df(t.props.handlePastedFiles(r)))return;return void ff(r,function(e){if(e=e||o){var n=t._latestEditorState,r=gf(e),i=of.create({style:n.getCurrentInlineStyle(),entity:pf(n.getCurrentContent(),n.getSelection())}),a=uf.getCurrentBlockType(n),c=sf.processText(r,i,a),s=rf.createFromArray(c),l=cf.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);t.update(lf.push(n,l,"insert-fragment"))}})}}var i=[],a=n.getText(),c=n.getHTML(),s=t._latestEditorState;if(t.props.formatPastedText){var l=t.props.formatPastedText(a,c);a=l.text,c=l.html}if(!t.props.handlePastedText||!df(t.props.handlePastedText(a,c,s))){if(a&&(i=gf(a)),!t.props.stripPastedStyles){var u,p=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&p){if(-1!==(null===(u=c)||void 0===u?void 0:u.indexOf(t.getEditorKey()))||1===i.length&&1===p.size&&p.first().getText()===a)return void t.update(yf(t._latestEditorState,p))}else if(p&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}(i,p))return void t.update(yf(t._latestEditorState,p));if(c){var f=sf.processHTML(c,t.props.blockRenderMap);if(f){var d=f.contentBlocks,g=f.entityMap;if(d){var y=rf.createFromArray(d);return void t.update(yf(t._latestEditorState,y,g))}}}t.setClipboard(null)}if(i.length){var h=of.create({style:s.getCurrentInlineStyle(),entity:pf(s.getCurrentContent(),s.getSelection())}),m=uf.getCurrentBlockType(s),v=sf.processText(i,h,m),b=rf.createFromArray(v);t.update(yf(t._latestEditorState,b))}}},Df=ji,Of=hf.isBrowser("Chrome"),Af=hf.isBrowser("Firefox"),Nf=Of||Af?Df:function(t){},xf={onBeforeInput:mf,onBlur:vf,onCompositionStart:bf,onCopy:wf,onCut:Sf,onDragOver:Mf,onDragStart:Ef,onFocus:kf,onInput:Cf,onKeyDown:jf,onPaste:_f,onSelect:Df,onMouseUp:Nf,onKeyUp:Nf},Lf=n.unstable_flushControlled;var If=t,Tf=Zr,zf=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},o.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=Tf({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return If.createElement("div",{className:e},If.createElement("div",{className:Tf("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(If.Component),Rf=zf,Bf=jl,Pf=ni,Ff=To,Uf=Ff.isPlatform("Mac OS X"),Kf=Uf&&Ff.isBrowser("Firefox < 29"),Yf=Bf.hasCommandModifier,Hf=Bf.isCtrlKeyCommand;function Qf(t){return Uf&&t.altKey||Hf(t)}var Wf=function(t){switch(t.keyCode){case 66:return Yf(t)?"bold":null;case 68:return Hf(t)?"delete":null;case 72:return Hf(t)?"backspace":null;case 73:return Yf(t)?"italic":null;case 74:return Yf(t)?"code":null;case 75:return Uf&&Hf(t)?"secondary-cut":null;case 77:case 79:return Hf(t)?"split-block":null;case 84:return Uf&&Hf(t)?"transpose-characters":null;case 85:return Yf(t)?"underline":null;case 87:return Uf&&Hf(t)?"backspace-word":null;case 89:return Hf(t)?Uf?"secondary-paste":"redo":null;case 90:return function(t){return Yf(t)?t.shiftKey?"redo":"undo":null}(t)||null;case Pf.RETURN:return"split-block";case Pf.DELETE:return function(t){return!Uf&&t.shiftKey?null:Qf(t)?"delete-word":"delete"}(t);case Pf.BACKSPACE:return function(t){return Yf(t)&&Uf?"backspace-to-start-of-line":Qf(t)?"backspace-word":"backspace"}(t);case Pf.LEFT:return Kf&&Yf(t)?"move-selection-to-start-of-block":null;case Pf.RIGHT:return Kf&&Yf(t)?"move-selection-to-end-of-block":null;default:return null}},Zf=eo;function Vf(){return Vf=Zf||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vf.apply(this,arguments)}function Gf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Jf(t,e,n[e])})}return t}function qf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var $f=qr,td=Jr,ed=Vi,nd=xc,rd=fs,od=xf,id=Lf,ad=Rf,cd=aa,sd=vr,ld=t,ud=Ra,pd=Wa,fd=Zr,dd=mt,gd=Wf,yd=$a,hd=tn,md=st,vd=oi,bd=qn,wd=To.isBrowser("IE"),Sd=!wd,Md={edit:od,composite:ed,drag:rd,cut:null,render:null},Ed=!1,kd=function(t){function e(){return t.apply(this,arguments)||this}Xf(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(ld.Component),Cd=function(t){function e(e){var n;return Jf(qf(n=t.call(this,e)||this),"_blockSelectEvents",void 0),Jf(qf(n),"_clipboard",void 0),Jf(qf(n),"_handler",void 0),Jf(qf(n),"_dragCount",void 0),Jf(qf(n),"_internalDrag",void 0),Jf(qf(n),"_editorKey",void 0),Jf(qf(n),"_placeholderAccessibilityID",void 0),Jf(qf(n),"_latestEditorState",void 0),Jf(qf(n),"_latestCommittedEditorState",void 0),Jf(qf(n),"_pendingStateFromBeforeInput",void 0),Jf(qf(n),"_onBeforeInput",void 0),Jf(qf(n),"_onBlur",void 0),Jf(qf(n),"_onCharacterData",void 0),Jf(qf(n),"_onCompositionEnd",void 0),Jf(qf(n),"_onCompositionStart",void 0),Jf(qf(n),"_onCopy",void 0),Jf(qf(n),"_onCut",void 0),Jf(qf(n),"_onDragEnd",void 0),Jf(qf(n),"_onDragOver",void 0),Jf(qf(n),"_onDragStart",void 0),Jf(qf(n),"_onDrop",void 0),Jf(qf(n),"_onInput",void 0),Jf(qf(n),"_onFocus",void 0),Jf(qf(n),"_onKeyDown",void 0),Jf(qf(n),"_onKeyPress",void 0),Jf(qf(n),"_onKeyUp",void 0),Jf(qf(n),"_onMouseDown",void 0),Jf(qf(n),"_onMouseUp",void 0),Jf(qf(n),"_onPaste",void 0),Jf(qf(n),"_onSelect",void 0),Jf(qf(n),"editor",void 0),Jf(qf(n),"editorContainer",void 0),Jf(qf(n),"focus",void 0),Jf(qf(n),"blur",void 0),Jf(qf(n),"setMode",void 0),Jf(qf(n),"exitCurrentMode",void 0),Jf(qf(n),"restoreEditorDOM",void 0),Jf(qf(n),"setClipboard",void 0),Jf(qf(n),"getClipboard",void 0),Jf(qf(n),"getEditorKey",void 0),Jf(qf(n),"update",void 0),Jf(qf(n),"onDragEnter",void 0),Jf(qf(n),"onDragLeave",void 0),Jf(qf(n),"_handleEditorContainerRef",function(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null}),Jf(qf(n),"focus",function(t){var e=n.props.editorState,r=e.getSelection().getHasFocus(),o=n.editor;if(o){var i=pd.getScrollParent(o),a=t||yd(i),c=a.x,s=a.y;vd(o)||("production"!==process.env.NODE_ENV?md(!1,"editorNode is not an HTMLElement"):md(!1)),o.focus(),i===window?window.scrollTo(c,s):ud.setTop(i,s),r||n.update(sd.forceSelection(e,e.getSelection()))}}),Jf(qf(n),"blur",function(){var t=n.editor;t&&(vd(t)||("production"!==process.env.NODE_ENV?md(!1,"editorNode is not an HTMLElement"):md(!1)),t.blur())}),Jf(qf(n),"setMode",function(t){var e=n.props,r=e.onPaste,o=e.onCut,i=e.onCopy,a=Gf({},Md.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var c=Gf({},Md,{edit:a});n._handler=c[t]}),Jf(qf(n),"exitCurrentMode",function(){n.setMode("edit")}),Jf(qf(n),"restoreEditorDOM",function(t){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(t)})}),Jf(qf(n),"setClipboard",function(t){n._clipboard=t}),Jf(qf(n),"getClipboard",function(){return n._clipboard}),Jf(qf(n),"update",function(t){n._latestEditorState=t,n.props.onChange(t)}),Jf(qf(n),"onDragEnter",function(){n._dragCount++}),Jf(qf(n),"onDragLeave",function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()}),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=e.editorKey||dd(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach(function(t){e.hasOwnProperty(t)&&console.warn("Supplying an `".concat(t,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")}),n.state={contentsKey:0},n}Xf(e,t);var n=e.prototype;return n._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&(id?id(function(){return r(e,n)}):r(e,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:bd(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return ld.createElement(ad,t)}return null},n._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},n.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,o=t.customStyleFn,i=t.customStyleMap,a=t.editorState,c=t.preventScroll,s=t.readOnly,l=t.textAlignment,u=t.textDirectionality,p=fd({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),f=this.props.role||"textbox",d="combobox"===f?!!this.props.ariaExpanded:null,g={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,customStyleMap:Gf({},td,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:c,textDirectionality:u};return ld.createElement("div",{className:p},this._renderPlaceholder(),ld.createElement("div",{className:fd("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},ld.createElement("div",{"aria-activedescendant":s?null:this.props.ariaActiveDescendantID,"aria-autocomplete":s?null:this.props.ariaAutoComplete,"aria-controls":s?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":s?null:d,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":s?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:fd({notranslate:!s,"public/DraftEditor/content":!0}),contentEditable:!s,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:s?null:f,spellCheck:Sd&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},ld.createElement(kd,{editor:this,editorState:a}),ld.createElement(nd,Vf({},g,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Ed&&hd("draft_ods_enabled")&&(Ed=!0,cd.initODS()),this.setMode("edit"),wd&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):o.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(ld.Component);Jf(Cd,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:$f,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:gd,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var jd=Cd,_d={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},Dd=_d,Od=$s.strlen;var Ad=$s,Nd=E,xd=function(t,e){return t===e},Ld=function(t){return!!t},Id=[];function Td(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zd=R,Rd=J,Bd=_d,Pd=function(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(r,o){var i=t.getText(),a=t.getEntityAt(r);n.push({offset:Od(i.slice(0,r)),length:Od(i.slice(r,o)),key:Number(e[Dd.stringify(a)])})}),n},Fd=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return function(t,e,n){var r=[],o=e.map(function(t){return t.has(n)}).toList();return Nd(o,xd,Ld,function(e,o){var i=t.getText();r.push({offset:Ad.strlen(i.slice(0,e)),length:Ad.strlen(i.slice(e,o)),style:n})}),r}(t,e,n)});return Array.prototype.concat.apply(Id,n.toJS())},Ud=st,Kd=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:Fd(t),entityRanges:Pd(t,e),data:t.getData().toObject()}},Yd=function(t,e,n,r){if(t instanceof zd)n.push(Kd(t,e));else{t instanceof Rd||("production"!==process.env.NODE_ENV?Ud(!1,"block is not a BlockNode"):Ud(!1));var o=t.getParentKey(),i=r[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Td(t,e,n[e])})}return t}({},Kd(t,e),{children:[]});o?r[o].children.push(i):n.push(i)}},Hd=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,r=[],o={},i={},a=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var r=t.getEntityAt(e),o=Bd.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)}),Yd(t,n,r,o)}),{blocks:r,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach(function(e,n){var r=t.getEntity(Bd.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:o}}(t,e),e};function Qd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Wd(t,e,n[e])})}return t}function Wd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zd=mt,Vd=st,Gd=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},qd={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||("production"!==process.env.NODE_ENV?Vd(!1,"Invalid raw state"):Vd(!1)),Array.isArray(e)&&e.length?(function(t,e){for(var n=[].concat(t).reverse();n.length;){var r=n.pop();e(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Vd(!1,"Invalid tree raw block"):Vd(!1)),n=n.concat([].concat(o.reverse()))}}(e,function(t){var e=Qd({},t);Gd(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?Qd({},e,{depth:(t.depth||0)+1}):e}))}(t),null!=t.children&&t.children.length>0)||(delete e.children,n.push(e))}),t.blocks=n,Qd({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach(function(t){var r=Gd(t),o=t.depth||0,i=Qd({},t,{children:[]});if(r){var a=n[0];if(null==a&&0===o)e.push(i);else if(null==a||a.depth<o-1){var c={key:Zd(),text:"",depth:o-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(c),1===o?e.push(c):null!=a&&a.children.push(c),c.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):e.push(i)}}else e.push(i)}),Qd({},t,{blocks:e})}},Jd=nl,Xd={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Jd(!0,"Tree is missing parent -> child pointer on %s",n),!1;if(!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===n}))return"production"!==process.env.NODE_ENV&&Jd(!0,"Tree is missing child -> parent pointer on %s",n),!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Jd(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var i=t.getNextSiblingKey();if(null!=i&&e.get(i).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Jd(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==i&&null!==o&&o===i?("production"!==process.env.NODE_ENV&&Jd(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=t.text&&t.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Jd(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return"production"!==process.env.NODE_ENV&&Jd(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&o.unshift(c);var s=a.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==s)return"production"!==process.env.NODE_ENV&&Jd(!0,"%s has no first child",r),!1;r=s.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size||("production"!==process.env.NODE_ENV&&Jd(!0,"Tree is not connected. %s nodes were seen instead of %s",n,t.size),!1)},isValidTree:function(t){var e=this;return!!t.toArray().every(function(n){return e.isValidBlock(n,t)})&&this.isConnectedTree(t)}},$d=M,tg=u.List;var eg=function(t,e){var n=t.map(function(t,n){var r=e[n];return $d.create({style:t,entity:r})});return tg(n)},ng=$s.substr;var rg=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var r=ng(t,0,e.offset).length,o=r+ng(t,e.offset,e.length).length,i=r;i<o;i++)n[i]=e.key}),n},og=$s,ig=u.OrderedSet,ag=og.substr,cg=ig();function sg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){lg(t,e,n[e])})}return t}function lg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ug=R,pg=J,fg=Cn,dg=Je,gg=qd,yg=Xd,hg=$e,mg=eg,vg=rg,bg=function(t,e){var n=Array(t.length).fill(cg);return e&&e.forEach(function(e){for(var r=ag(t,0,e.offset).length,o=r+ag(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++}),n},wg=mt,Sg=u,Mg=st,Eg=tn("draft_tree_data_support"),kg=Sg.List,Cg=Sg.Map,jg=Sg.OrderedMap,_g=function(t,e){var n=t.key,r=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||wg(),data:Cg(o),characterList:Dg(t,e)}},Dg=function(t,e){var n=t.text,r=t.entityRanges,o=t.inlineStyleRanges,i=r||[];return mg(bg(n,o||[]),vg(n,i.filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return sg({},t,{key:e[t.key]})})))},Og=function(t){return sg({},t,{key:t.key||wg()})},Ag=function(t,e,n){var r=e.map(function(t){return sg({},t,{parentRef:n})});return t.concat(r.reverse())},Ng=function(t,e){var n=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),r=Eg&&!n?gg.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!Eg)return function(t,e){return jg(t.map(function(t){var n=new ug(_g(t,e));return[n.getKey(),n]}))}(n?gg.fromRawTreeStateToRawState(t).blocks:r,e);var o=function(t,e){return t.map(Og).reduce(function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?Mg(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Mg(!1));var i=r.children.map(Og),a=new pg(sg({},_g(r,e),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:kg(i.map(function(t){return t.key}))}));n=n.set(a.getKey(),a);for(var c=Ag([],i,a);c.length>0;){var s=c.pop(),l=s.parentRef,u=l.getChildKeys(),p=u.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?Mg(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Mg(!1));break}var d=s.children.map(Og),g=new pg(sg({},_g(s,e),{parent:l.getKey(),children:kg(d.map(function(t){return t.key})),prevSibling:0===p?null:u.get(p-1),nextSibling:p===u.size-1?null:u.get(p+1)}));n=n.set(g.getKey(),g),c=Ag(c,d,g)}return n},jg())}(r,e);return"production"!==process.env.NODE_ENV&&(yg.isValidTree(o)||("production"!==process.env.NODE_ENV?Mg(!1,"Should be a valid tree"):Mg(!1))),o},xg=Il;var Lg=function(t){var e=xg(t),n=0,r=0,o=0,i=0;if(e.length){if(e.length>1&&0===e[0].width){var a=e[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var c=e[0];n=c.top,r=c.right,o=c.bottom,i=c.left}for(var s=1;s<e.length;s++){var l=e[s];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}};var Ig={Editor:jd,EditorBlock:Nc,EditorState:vr,CompositeDecorator:Qr,Entity:Je,EntityInstance:Ke,BlockMapBuilder:f,CharacterMetadata:M,ContentBlock:R,ContentState:Cn,RawDraftContentState:{},SelectionState:$e,AtomicBlockUtils:Kr,KeyBindingUtil:jl,Modifier:je,RichUtils:ef,DefaultDraftBlockRenderMap:qr,DefaultDraftInlineStyle:Jr,convertFromHTML:zp,convertFromRaw:function(t){Array.isArray(t.blocks)||("production"!==process.env.NODE_ENV?Mg(!1,"invalid RawDraftContentState"):Mg(!1));var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var r=e[t],o=r.type,i=r.mutability,a=r.data;n[t]=dg.__create(o,i,a||{})}),n}(t),n=Ng(t,e),r=n.isEmpty()?new hg:hg.createEmpty(n.first().getKey());return new fg({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})},convertToRaw:Hd,genKey:mt,getDefaultKeyBinding:Wf,getVisibleSelectionRect:function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.getRangeAt(0),r=Lg(n),o=r.top,i=r.right,a=r.bottom,c=r.left;return 0===o&&0===i&&0===a&&0===c?null:r}},Tg={exports:{}};window;var zg=Tg.exports=function(t,e,n){return i={},r.m=o=[function(t,e,n){t.exports=n(10)()},function(e,n){e.exports=t},function(t,e,n){var r;
7
7
  /*!
8
8
  Copyright (c) 2017 Jed Watson.
9
9
  Licensed under the MIT License (MIT), see
10
10
  http://jedwatson.github.io/classnames
11
- */!function(){var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"==i||"number"==i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"==i)for(var c in r)n.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,n){t.exports=e},function(t,e,n){function r(t){if(c[t])return c[t].exports;var e=c[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,c;t.exports=(o=n(3),i=n(5),c={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){n.r(e);var r=n(0),o=n(1);function i(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getStartKey(),o=e.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===o}).concat([[o,i.get(o)]])}function a(t){return i(t).toList()}function c(t){if(t)return a(t).get(0)}function s(t){if(t){var e=c(t),n=t.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach(function(t,n){t.get("key")===e.get("key")&&(r=n-1)}),-1<r)return n.get(r)}}function u(t){return t?t.getCurrentContent().getBlockMap().toList():new o.List}function l(t){var e=a(t);if(!e.some(function(t){return t.type!==e.get(0).type}))return e.get(0).type}function p(t){var e=r.RichUtils.tryToRemoveBlockStyle(t);return e?r.EditorState.push(t,e,"change-block-type"):t}function f(t){var e="",n=t.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(t);if(0<i.size){if(n.getIsBackward()){var c=r;r=o,o=c}for(var s=0;s<i.size;s+=1){var u=0===s?r:0,l=s===i.size-1?o:i.get(s).getText().length;e+=i.get(s).getText().slice(u,l)}}return e}function d(t){var e=t.getCurrentContent(),n=t.getSelection(),o=r.Modifier.removeRange(e,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(t,o,"insert-fragment")}function h(t){var e=r.Modifier.splitBlock(t.getCurrentContent(),t.getSelection());return p(r.EditorState.push(t,e,"split-block"))}function y(t){var e=t.getCurrentContent().getBlockMap().toList(),n=t.getSelection().merge({anchorKey:e.first().get("key"),anchorOffset:0,focusKey:e.last().get("key"),focusOffset:e.last().getLength()}),o=r.Modifier.removeRange(t.getCurrentContent(),n,"forward");return r.EditorState.push(t,o,"remove-range")}function g(t,e){var n=r.Modifier.setBlockData(t.getCurrentContent(),t.getSelection(),e);return r.EditorState.push(t,n,"change-block-data")}function m(t){var e=new o.Map({}),n=a(t);if(n&&0<n.size)for(var r=function(t){var r=n.get(t).getData();if(!r||0===r.size)return e=e.clear(),"break";if(0===t)e=r;else if(e.forEach(function(t,n){r.get(n)&&r.get(n)===t||(e=e.delete(n))}),0===e.size)return e=e.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return e}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function _(t){if(t){var e=t.getType();return"unordered-list-item"===e||"ordered-list-item"===e}return!1}function w(t,e,n){var o,a=t.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var c=t.getCurrentContent(),s=c.getBlockForKey(o),u=s.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;var l=c.getBlockBefore(o);if(!l)return t;if(l.getType()!==u)return t;var p=s.getDepth();if(1===e&&p===n)return t;var f,d,h,y,g,m,v,b=Math.min(l.getDepth()+1,n),_=(d=e,h=b,y=(f=t).getSelection(),m=(g=f.getCurrentContent()).getBlockMap(),v=i(f).map(function(t){var e=t.getDepth()+d;return e=Math.max(0,Math.min(e,h)),t.set("depth",e)}),m=m.merge(v),g.merge({blockMap:m,selectionBefore:y,selectionAfter:y}));return r.EditorState.push(t,_,"adjust-depth")}function S(t,e){var n;return 13===(n=e).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?t.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(t):d(t):function(t){var e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockForKey(r);if(!_(o)&&"unstyled"!==o.getType()&&o.getLength()===e.getStartOffset())return h(t);if(_(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return p(t);if(0<i)return w(t,-1,i)}}}(t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t){var e=t.getSelection();if(e.isCollapsed()){var n={},r=t.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(t){n[t]=0<=r.indexOf(t)}),n}var o=e.getStartOffset(),i=e.getEndOffset(),c=a(t);if(0<c.size){var s=function(){for(var t={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},e=0;e<c.size;e+=1){var n=0===e?o:0,r=e===c.size-1?i:c.get(e).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=c.get(e).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){t[e]=t[e]&&r.get(e)===e})},s=n;s<r;s+=1)a(s)}return{v:t}}();if("object"===j(s))return s.v}return{}}function C(t){var e,n=t.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=c(t),a=r;a<o;a+=1){var s=i.getEntityAt(a);if(!s){e=void 0;break}if(a===r)e=s;else if(e!==s){e=void 0;break}}return e}function O(t,e){var n,r=c(t);return r.findEntityRanges(function(t){return t.get("entity")===e},function(t,e){n={start:t,end:e,text:r.get("text").slice(t,e)}}),n}function D(t,e,n){N[t]["".concat(t.toLowerCase(),"-").concat(n)]=E({},"".concat(e),n)}function A(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach(function(e){E(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},N.color,{},N.bgcolor,{},N.fontSize,{},N.fontFamily,{CODE:N.CODE,SUPERSCRIPT:N.SUPERSCRIPT,SUBSCRIPT:N.SUBSCRIPT})}var N={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function x(t,e,n){var o=t.getSelection(),i=Object.keys(N[e]).reduce(function(t,e){return r.Modifier.removeInlineStyle(t,o,e)},t.getCurrentContent()),a=r.EditorState.push(t,i,"changeinline-style"),c=t.getCurrentInlineStyle();if(o.isCollapsed()&&(a=c.reduce(function(t,e){return r.RichUtils.toggleInlineStyle(t,e)},a)),"SUPERSCRIPT"===e||"SUBSCRIPT"==e)c.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var s="bgcolor"===e?"backgroundColor":e;c.has("".concat(s,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(e.toLowerCase(),"-").concat(n)),D(e,s,n))}return a}function I(t){t&&t.getCurrentContent().getBlockMap().map(function(t){return t.get("characterList")}).toList().flatten().forEach(function(t){t&&0===t.indexOf("color-")?D("color","color",t.substr(6)):t&&0===t.indexOf("bgcolor-")?D("bgcolor","backgroundColor",t.substr(8)):t&&0===t.indexOf("fontsize-")?D("fontSize","fontSize",+t.substr(9)):t&&0===t.indexOf("fontfamily-")&&D("fontFamily","fontFamily",t.substr(11))})}function L(t,e,n){var r=t.getInlineStyleAt(n).toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(r&&0<r.size)return r.get(0)}function T(t,e){if(t&&e&&0<e.length){var n=function(){var n=t.getSelection(),r={};if(n.isCollapsed())return e.forEach(function(e){r[e]=function(t,e){var n=t.getCurrentInlineStyle().toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(n&&0<n.size)return n.get(0)}(t,e)}),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),c=a(t);if(0<c.size){for(var s=function(t){var n=0===t?o:0,a=t===c.size-1?i:c.get(t).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var s=function(o){o===n?e.forEach(function(e){r[e]=L(c.get(t),e,o)}):e.forEach(function(e){r[e]&&r[e]!==L(c.get(t),e,o)&&(r[e]=void 0)})},u=n;u<a;u+=1)s(u)},u=0;u<c.size;u+=1)s(u);return{v:r}}}();if("object"===j(n))return n.v}return{}}function z(t){var e=t.getCurrentInlineStyle(),n=t.getCurrentContent();return e.forEach(function(e){n=r.Modifier.removeInlineStyle(n,t.getSelection(),e)}),r.EditorState.push(t,n,"change-inline-style")}n.d(e,"isListBlock",function(){return _}),n.d(e,"changeDepth",function(){return w}),n.d(e,"handleNewLine",function(){return S}),n.d(e,"getEntityRange",function(){return O}),n.d(e,"getCustomStyleMap",function(){return A}),n.d(e,"toggleCustomInlineStyle",function(){return x}),n.d(e,"getSelectionEntity",function(){return C}),n.d(e,"extractInlineStyle",function(){return I}),n.d(e,"removeAllInlineStyles",function(){return z}),n.d(e,"getSelectionInlineStyle",function(){return k}),n.d(e,"getSelectionCustomInlineStyle",function(){return T}),n.d(e,"getSelectedBlocksMap",function(){return i}),n.d(e,"getSelectedBlocksList",function(){return a}),n.d(e,"getSelectedBlock",function(){return c}),n.d(e,"getBlockBeforeSelectedBlock",function(){return s}),n.d(e,"getAllBlocks",function(){return u}),n.d(e,"getSelectedBlocksType",function(){return l}),n.d(e,"removeSelectedBlocksStyle",function(){return p}),n.d(e,"getSelectionText",function(){return f}),n.d(e,"addLineBreakRemovingSelection",function(){return d}),n.d(e,"insertNewUnstyledBlock",function(){return h}),n.d(e,"clearEditorContent",function(){return y}),n.d(e,"setBlockData",function(){return g}),n.d(e,"getSelectedBlocksMetadata",function(){return m}),n.d(e,"blockRenderMap",function(){return b})}],r.c=c,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e){t.exports=n},function(t,e,n){function r(t){if(c[t])return c[t].exports;var e=c[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,c;t.exports=(o=n(5),i=n(3),c={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){n.r(e);var r=n(1),o=n(0),i=function(t,e,n){var r,i=t.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},c=function(){return{text:"",inlines:[],entities:[],blocks:[]}},s=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new o.Map({})}]}},u=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new o.Map({})}]}},l=function(t){return{text:"\r ",inlines:[new o.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},p=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},f=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),d={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function h(t){return t.style.textAlign?new o.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new o.Map({"margin-left":t.style.marginLeft}):void 0}var y=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,r.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",function(){return b});var g=" ",m=new RegExp("&nbsp;","g"),v=!0;function b(t,e){var n,b,_=(n=e,(b=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(t.trim().replace(m,g)))?(v=!0,{chunk:function t(e,n,o,g,m,b){var _=e.nodeName.toLowerCase();if(b){var w=b(_,e);if(w){var S=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:l(S)}}}if("#text"===_&&"\n"!==e.textContent)return i(e,n,m);if("br"===_)return{chunk:a()};if("img"===_&&e instanceof HTMLImageElement){var M={};M.src=e.getAttribute&&e.getAttribute("src")||e.src,M.alt=e.alt,M.height=e.style.height,M.width=e.style.width,e.style.float&&(M.alignment=e.style.float);var E=r.Entity.__create("IMAGE","MUTABLE",M);return{chunk:l(E)}}if("video"===_&&e instanceof HTMLVideoElement){var j={};j.src=e.getAttribute&&e.getAttribute("src")||e.src,j.alt=e.alt,j.height=e.style.height,j.width=e.style.width,e.style.float&&(j.alignment=e.style.float);var k=r.Entity.__create("VIDEO","MUTABLE",j);return{chunk:l(k)}}if("iframe"===_&&e instanceof HTMLIFrameElement){var C={};C.src=e.getAttribute&&e.getAttribute("src")||e.src,C.height=e.height,C.width=e.width;var O=r.Entity.__create("EMBEDDED_LINK","MUTABLE",C);return{chunk:l(O)}}var D,A=function(t,e){var n=f.filter(function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)}).keySeq().toSet().toArray();if(1===n.length)return n[0]}(_,g);A&&("ul"===_||"ol"===_?(g=_,o+=1):("unordered-list-item"!==A&&"ordered-list-item"!==A&&(g="",o=-1),v?(D=s(A,h(e)),v=!1):D=u(A,o,h(e)))),D=D||c(),n=function(t,e,n){var r,o=d[t];if(o)r=n.add(o).toOrderedSet();else if(e instanceof HTMLElement){var i=e;r=(r=n).withMutations(function(t){var e=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,c=i.style.textDecoration,s=i.style.fontStyle;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),r&&t.add("fontsize-".concat(r.replace(/px$/g,""))),o&&t.add("fontfamily-".concat(o)),"bold"===a&&t.add(d.strong),"underline"===c&&t.add(d.ins),"italic"===s&&t.add(d.em)}).toOrderedSet()}return r}(_,e,n);for(var N=e.firstChild;N;){var x=t(N,n,o,g,y(N)||m,b).chunk;D=p(D,x),N=N.nextSibling}return{chunk:D}}(b,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(_){var w=_.chunk,S=new o.OrderedMap({});w.entities&&w.entities.forEach(function(t){t&&(S=S.set(t,r.Entity.__get(t)))});var M=0;return{contentBlocks:w.text.split("\r").map(function(t,e){var n=M+t.length,i=w&&w.inlines.slice(M,n),a=w&&w.entities.slice(M,n),c=new o.List(i.map(function(t,e){var n={style:t,entity:null};return a[e]&&(n.entity=a[e]),r.CharacterMetadata.create(n)}));return M=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[e]&&w.blocks[e].type||"unstyled",depth:w&&w.blocks[e]&&w.blocks[e].depth,data:w&&w.blocks[e]&&w.blocks[e].data||new o.Map({}),text:t,characterList:c})}),entityMap:S}}return null}}],r.c=c,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e,n){function r(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function o(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===o(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=e&&":"===t[e-3]||3<=e&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(){return function(t,e){e.normalize(t)}}function f(t){var e=t.re=n(21)(t.__opts__),r=t.__tlds__.slice();function c(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push(u),r.push(e.src_xn),e.src_tlds=r.join("|"),e.email_fuzzy=RegExp(c(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(c(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(c(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(c(e.tpl_host_fuzzy_test),"i");var s=[];function l(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var r,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(t,e){var n=t.slice(e);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:l(e,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?l(e,n):a.normalize=p());"[object String]"!==o(n)?l(e,n):s.push(e)}}),s.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:p()};var f,d=Object.keys(t.__compiled__).filter(function(e){return 0<e.length&&t.__compiled__[e]}).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+d+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+d+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(f=t).__index__=-1,f.__text_cache__=""}function d(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function h(t,e){var n=new d(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function y(t,e){if(!(this instanceof y))return new y(t,e);var n;e||(n=t,Object.keys(n||{}).reduce(function(t,e){return t||c.hasOwnProperty(e)},!1)&&(e=t,t={})),this.__opts__=r({},c,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,t),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},f(this)}y.prototype.add=function(t,e){return this.__schemas__[t]=e,f(this),this},y.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},y.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,o,i,a,c,s;if(this.re.schema_test.test(t))for((c=this.re.schema_search).lastIndex=0;null!==(e=c.exec(t));)if(o=this.testSchemaAt(t,e[2],c.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(s=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||s<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=t.indexOf("@")&&null!==(r=t.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},y.prototype.pretest=function(t){return this.re.pretest.test(t)},y.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},y.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(h(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(h(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},y.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),f(this),this},y.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},y.prototype.onCompile=function(){},t.exports=y},function(t,e,n){t.exports=n(40)},function(t,e,n){},function(t,e,n){var r=n(11);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){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}var n={array:t.isRequired=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:o};return n.PropTypes=n}},function(t,e,n){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){t.exports=function(t){var e={};e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(t,e){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){n.r(e),n.d(e,"Editor",function(){return no});var r=n(1),o=n.n(r),i=n(0),a=n.n(i),c=n(3),s=n(4),u=n(2),l=n.n(u);function p(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}var f=p(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){e.callBacks.forEach(function(e){e(t)})},this.init=function(t){var n=document.getElementById(t);n&&n.addEventListener("click",function(){e.editorFlag=!0}),document&&(document.addEventListener("click",function(){e.editorFlag?e.editorFlag=!1:(e.closeAllModals(),e.suggestionCallback&&e.suggestionCallback())}),document.addEventListener("keydown",function(t){"Escape"===t.key&&e.closeAllModals()}))},this.onEditorClick=function(){e.closeModals(),!e.suggestionFlag&&e.suggestionCallback?e.suggestionCallback():e.suggestionFlag=!1},this.closeModals=function(t){e.closeAllModals(t)},this.registerCallBack=function(t){e.callBacks.push(t)},this.deregisterCallBack=function(t){e.callBacks=e.callBacks.filter(function(e){return e!==t})},this.setSuggestionCallback=function(t){e.suggestionCallback=t},this.removeSuggestionCallback=function(){e.suggestionCallback=void 0},this.onSuggestionClick=function(){e.suggestionFlag=!0}});function d(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}var h,y=d(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){e.editorFocused=!0},this.onInputMouseDown=function(){e.inputFocused=!0},this.isEditorBlur=function(t){return"INPUT"!==t.target.tagName&&"LABEL"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName||e.editorFocused?!("INPUT"===t.target.tagName&&"LABEL"===t.target.tagName&&"TEXTAREA"===t.target.tagName||e.inputFocused||(e.editorFocused=!1)):!(e.inputFocused=!1)},this.isEditorFocused=function(){return!e.inputFocused||(e.inputFocused=!1)},this.isToolbarFocused=function(){return!e.editorFocused||(e.editorFocused=!1)},this.isInputFocused=function(){return e.inputFocused}}),g=[],m={onKeyDown:function(t){g.forEach(function(e){e(t)})},registerCallBack:function(t){g.push(t)},deregisterCallBack:function(t){g=g.filter(function(e){return e!==t})}},v=function(){h=!0},b=function(){h=!1},_=function(){return h};function w(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function S(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function M(t,e){var n=!1;if(t)for(var r in t)if({}.hasOwnProperty.call(t,r)&&e===r){n=!0;break}return n}function E(t){t.stopPropagation()}function j(t){return t[t.options[0]].icon}function k(t,e){if(t&&void 0===e)return t;var n={};return S(t,function(t,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[t]=k(r,e[t]):n[t]=void 0!==e[t]?e[t]:r}),n}var C=n(6),O=n.n(C),D=n(5);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t,e){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function L(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===A(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(9);var z=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(i,r.Component);var t,e,n=L(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onClick=function(){var e=t.props,n=e.disabled,r=e.onClick,o=e.value;n||r(o)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.className,i=e.activeClassName,a=e.active,c=e.disabled,s=e.title;return o.a.createElement("div",{className:l()("rdw-option-wrapper",r,(N(t={},"rdw-option-active ".concat(i),a),N(t,"rdw-option-disabled",c),t)),onClick:this.onClick,"aria-selected":a,title:s},n)}}])&&x(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function U(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=F(t);if(e){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}z.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},z.defaultProps={activeClassName:""},n(12);var K=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(i,r.Component);var t,e,n=U(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={highlighted:-1},t.onChange=function(e){var n=t.props.onChange;n&&n(e),t.toggleExpansion()},t.setHighlighted=function(e){t.setState({highlighted:e})},t.toggleExpansion=function(){var e=t.props,n=e.doExpand,r=e.doCollapse;e.expanded?r():n()},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.expanded;t.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.expanded,r=e.children,i=e.className,a=e.optionWrapperClassName,c=e.ariaLabel,s=e.onExpandEvent,u=e.title,p=this.state.highlighted,f=r.slice(1,r.length);return o.a.createElement("div",{className:l()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":c||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:s,title:u},r[0],o.a.createElement("div",{className:l()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:l()("rdw-dropdown-optionwrapper",a),onClick:E},o.a.Children.map(f,function(e,n){return e&&o.a.cloneElement(e,{onSelect:t.onChange,highlighted:p===n,setHighlighted:t.setHighlighted,index:n})})):void 0)}}])&&B(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function q(t,e){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Z(t);if(e){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}K.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var V=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(i,r.Component);var t,e,n=W(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onClick=function(e){var n=t.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(e.stopPropagation(),o(i)))},t.setHighlighted=function(){var e=t.props;(0,e.setHighlighted)(e.index)},t.resetHighlighted=function(){(0,t.props.setHighlighted)(-1)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.active,i=e.disabled,a=e.highlighted,c=e.className,s=e.activeClassName,u=e.disabledClassName,p=e.highlightedClassName,f=e.title;return o.a.createElement("li",{className:l()("rdw-dropdownoption-default",c,(H(t={},"rdw-dropdownoption-active ".concat(s),r),H(t,"rdw-dropdownoption-highlighted ".concat(p),a),H(t,"rdw-dropdownoption-disabled ".concat(u),i),t)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:f},n)}}])&&Q(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=tt(t);if(e){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===G(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function tt(t){return(tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}V.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},V.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var et=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X(t,e)}(i,r.Component);var t,e,n=$(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState,r=t.onChange,i=t.translations;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map(function(t,a){return o.a.createElement(z,{key:a,value:t,onClick:r,className:l()(e[t].className),active:!0===n[t]||"MONOSPACE"===t&&n.CODE,title:e[t].title||i["components.controls.inline.".concat(t)]},o.a.createElement("img",{alt:"",src:e[t].icon}))}))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState,s=t.onChange,u=t.translations,p=e.className,f=e.dropdownClassName,d=e.title;return o.a.createElement(K,{className:l()("rdw-inline-dropdown",p),optionWrapperClassName:l()(f),onChange:s,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:d},o.a.createElement("img",{src:j(e),alt:""}),e.options.map(function(t,n){return o.a.createElement(V,{key:n,value:t,className:l()("rdw-inline-dropdownoption",e[t].className),active:!0===c[t]||"MONOSPACE"===t&&c.CODE,title:e[t].title||u["components.controls.inline.".concat(t)]},o.a.createElement("img",{src:e[t].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&J(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ot(t,e){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function it(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=at(t);if(e){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}et.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ct=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(i,r.Component);var t,e,n=it(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.toggleInlineStyle=function(t){var n="monospace"===t?"CODE":t.toUpperCase(),r=e.props,o=r.editorState,i=r.onChange,a=c.RichUtils.toggleInlineStyle(o,n);if("subscript"===t||"superscript"===t){var s="subscript"===t?"SUPERSCRIPT":"SUBSCRIPT",u=c.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),s);a=c.EditorState.push(a,u,"change-inline-style")}a&&i(a)},e.changeKeys=function(t){if(t){var e={};return S(t,function(t,n){e["CODE"===t?"monospace":t.toLowerCase()]=n}),e}},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={currentStyles:o?e.changeKeys(Object(s.getSelectionInlineStyle)(o)):{}},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentStyles:this.changeKeys(Object(s.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentStyles,c=e.component||et;return o.a.createElement(c,{config:e,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&rt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lt(t,e){return(lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ft(t);if(e){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===st(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ft(t){return(ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ct.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var dt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lt(t,e)}(i,r.Component);var t,e,n=pt(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).getBlockTypes=function(t){return[{label:"Normal",displayName:t["components.controls.blocktype.normal"]},{label:"H1",displayName:t["components.controls.blocktype.h1"]},{label:"H2",displayName:t["components.controls.blocktype.h2"]},{label:"H3",displayName:t["components.controls.blocktype.h3"]},{label:"H4",displayName:t["components.controls.blocktype.h4"]},{label:"H5",displayName:t["components.controls.blocktype.h5"]},{label:"H6",displayName:t["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:t["components.controls.blocktype.blockquote"]},{label:"Code",displayName:t["components.controls.blocktype.code"]}]},e.state={blockTypes:e.getBlockTypes(t.translations)},e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.translations;e!==t.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(t){var e=this.props,n=e.config.className,r=e.onChange,i=e.currentState.blockType;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",n)},t.map(function(t,e){return o.a.createElement(z,{key:e,value:t.label,active:i===t.label,onClick:r},t.displayName)}))}},{key:"renderInDropdown",value:function(t){var e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.title,c=e.currentState.blockType,s=e.expanded,u=e.doExpand,p=e.onExpandEvent,f=e.doCollapse,d=e.onChange,h=e.translations,y=this.state.blockTypes.filter(function(t){return t.label===c}),g=y&&y[0]&&y[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(K,{className:l()("rdw-block-dropdown",r),optionWrapperClassName:l()(i),onChange:d,expanded:s,doExpand:u,doCollapse:f,onExpandEvent:p,title:a||h["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||h["components.controls.blocktype.blocktype"]),t.map(function(t,e){return o.a.createElement(V,{active:c===t.label,value:t.label,key:e},t.displayName)})))}},{key:"render",value:function(){var t=this.props.config,e=t.inDropdown,n=this.state.blockTypes.filter(function(e){var n=e.label;return-1<t.options.indexOf(n)});return e?this.renderInDropdown(n):this.renderFlat(n)}}])&&ut(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();dt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ht=dt;function yt(t){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mt(t,e){return(mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=bt(t);if(e){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===yt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _t=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mt(t,e)}(i,r.Component);var t,e,n=vt(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(t){var n=e.blocksTypes.find(function(e){return e.label===t}).style,r=e.props,o=r.editorState,i=r.onChange,a=c.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:!1,currentBlockType:r?Object(s.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlockType:Object(s.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentBlockType,c=e.component||ht,s=this.blocksTypes.find(function(t){return t.style===a});return o.a.createElement(c,{config:e,translations:n,currentState:{blockType:s&&s.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&gt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();_t.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var wt=_t;function St(t){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Et(t,e){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=kt(t);if(e){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===St(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function kt(t){return(kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(16);var Ct=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Et(t,e)}(i,r.Component);var t,e,n=jt(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.dropdownClassName,a=e.options,c=e.title,s=t.onChange,u=t.expanded,p=t.doCollapse,f=t.onExpandEvent,d=t.doExpand,h=t.translations,y=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),y=y||a&&0<=a.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(K,{className:l()("rdw-fontsize-dropdown",r),optionWrapperClassName:l()(i),onChange:s,expanded:u,doExpand:d,doCollapse:p,onExpandEvent:f,title:c||h["components.controls.fontsize.fontsize"]},y?o.a.createElement("span",null,y):o.a.createElement("img",{src:n,alt:""}),a.map(function(t,e){return o.a.createElement(V,{className:"rdw-fontsize-option",active:y===t,value:t,key:e},t)})))}}])&&Mt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Ot(t){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function At(t,e){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=xt(t);if(e){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ot(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Ct.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var It=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&At(t,e)}(i,r.Component);var t,e,n=Nt(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleFontSize=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=Object(s.toggleCustomInlineStyle)(r,"fontSize",t);i&&o(i)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:void 0,currentFontSize:r?Object(s.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontSize:Object(s.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontSize,c=e.component||Ct,s=a&&Number(a.substring(9));return o.a.createElement(c,{config:e,translations:n,currentState:{fontSize:s},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Dt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Lt(t){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zt(t,e){return(zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Bt(t);if(e){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Lt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}It.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Pt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zt(t,e)}(i,r.Component);var t,e,n=Rt(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.options,c=n.title,s=e.translations,u=e.onChange,p=e.expanded,f=e.doCollapse,d=e.onExpandEvent,h=e.doExpand,y=this.props.currentState.fontFamily;return y=y||a&&t&&a.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&t,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(K,{className:l()("rdw-fontfamily-dropdown",r),optionWrapperClassName:l()("rdw-fontfamily-optionwrapper",i),onChange:u,expanded:p,doExpand:h,doCollapse:f,onExpandEvent:d,title:c||s["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},y||s["components.controls.fontfamily.fontfamily"]),a.map(function(t,e){return o.a.createElement(V,{active:y===t,value:t,key:e},t)})))}}])&&Tt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Pt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ut=Pt;function Ft(t){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yt(t,e){return(Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ht(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Qt(t);if(e){var o=Qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yt(t,e)}(i,r.Component);var t,e,n=Ht(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleFontFamily=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=Object(s.toggleCustomInlineStyle)(r,"fontFamily",t);i&&o(i)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:void 0,currentFontFamily:r?Object(s.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontFamily:Object(s.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,c=e.component||Ut,s=a&&a.substring(11);return o.a.createElement(c,{translations:n,config:e,currentState:{fontFamily:s},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Kt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vt(t,e){return(Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Gt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Jt(t);if(e){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Wt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Jt(t){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}qt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var Xt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}(i,r.Component);var t,e,n=Gt(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],t.toggleBlockType=function(e){(0,t.props.onChange)(e)},t.indent=function(){(0,t.props.onChange)("indent")},t.outdent=function(){(0,t.props.onChange)("outdent")},t}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState.listType,r=t.translations,i=t.indentDisabled,a=t.outdentDisabled,c=e.options,s=e.unordered,u=e.ordered,p=e.indent,f=e.outdent,d=e.className;return o.a.createElement("div",{className:l()("rdw-list-wrapper",d),"aria-label":"rdw-list-control"},0<=c.indexOf("unordered")&&o.a.createElement(z,{value:"unordered",onClick:this.toggleBlockType,className:l()(s.className),active:"unordered"===n,title:s.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:s.icon,alt:""})),0<=c.indexOf("ordered")&&o.a.createElement(z,{value:"ordered",onClick:this.toggleBlockType,className:l()(u.className),active:"ordered"===n,title:u.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=c.indexOf("indent")&&o.a.createElement(z,{onClick:this.indent,disabled:i,className:l()(p.className),title:p.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=c.indexOf("outdent")&&o.a.createElement(z,{onClick:this.outdent,disabled:a,className:l()(f.className),title:f.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:f.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this,e=this.props,n=e.config,r=e.expanded,i=e.doCollapse,a=e.doExpand,c=e.onExpandEvent,s=e.onChange,u=e.currentState.listType,p=e.translations,f=n.options,d=n.className,h=n.dropdownClassName,y=n.title;return o.a.createElement(K,{className:l()("rdw-list-dropdown",d),optionWrapperClassName:l()(h),onChange:s,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:c,"aria-label":"rdw-list-control",title:y||p["components.controls.list.list"]},o.a.createElement("img",{src:j(n),alt:""}),this.options.filter(function(t){return 0<=f.indexOf(t)}).map(function(e,r){return o.a.createElement(V,{key:r,value:e,disabled:t.props["".concat(e,"Disabled")],className:l()("rdw-list-dropdownOption",n[e].className),active:u===e,title:n[e].title||p["components.controls.list.".concat(e)]},o.a.createElement("img",{src:n[e].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Zt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function $t(t){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ne(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=re(t);if(e){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===$t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function re(t){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Xt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var oe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ee(t,e)}(i,r.Component);var t,e,n=ne(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){"unordered"===t?e.toggleBlockType("unordered-list-item"):"ordered"===t?e.toggleBlockType("ordered-list-item"):"indent"===t?e.adjustDepth(1):e.adjustDepth(-1)},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(t){var n=e.props,r=n.onChange,o=n.editorState,i=c.RichUtils.toggleBlockType(o,t);i&&r(i)},e.adjustDepth=function(t){var n=e.props,r=n.onChange,o=n.editorState,i=Object(s.changeDepth)(o,t,4);i&&r(i)},e.isIndentDisabled=function(){var t=e.props.editorState,n=e.state.currentBlock,r=Object(s.getBlockBeforeSelectedBlock)(t);return!r||!Object(s.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},e.isOutdentDisabled=function(){var t=e.state.currentBlock;return!t||!Object(s.isListBlock)(t)||t.get("depth")<=0};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={expanded:!1,currentBlock:o?Object(s.getSelectedBlock)(o):void 0},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlock:Object(s.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t,e=this.props,n=e.config,r=e.translations,i=this.state,a=i.expanded,c=i.currentBlock,s=n.component||Xt;"unordered-list-item"===c.get("type")?t="unordered":"ordered-list-item"===c.get("type")&&(t="ordered");var u=this.isIndentDisabled(),l=this.isOutdentDisabled();return o.a.createElement(s,{config:n,translations:r,currentState:{listType:t},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:u,outdentDisabled:l})}}])&&te(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ce(t,e){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function se(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ue(t);if(e){var o=ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ie(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ue(t){return(ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}oe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var le=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ce(t,e)}(i,r.Component);var t,e,n=se(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.left,i=e.center,a=e.right,c=e.justify,s=e.className,u=t.onChange,p=t.currentState.textAlignment,f=t.translations;return o.a.createElement("div",{className:l()("rdw-text-align-wrapper",s),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(z,{value:"left",className:l()(r.className),active:"left"===p,onClick:u,title:r.title||f["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(z,{value:"center",className:l()(i.className),active:"center"===p,onClick:u,title:i.title||f["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(z,{value:"right",className:l()(a.className),active:"right"===p,onClick:u,title:a.title||f["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(z,{value:"justify",className:l()(c.className),active:"justify"===p,onClick:u,title:c.title||f["components.controls.textalign.justify"]},o.a.createElement("img",{src:c.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState.textAlignment,s=t.onChange,u=t.translations,p=e.options,f=e.left,d=e.center,h=e.right,y=e.justify,g=e.className,m=e.dropdownClassName,v=e.title;return o.a.createElement(K,{className:l()("rdw-text-align-dropdown",g),optionWrapperClassName:l()(m),onChange:s,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:v||u["components.controls.textalign.textalign"]},o.a.createElement("img",{src:c&&e[c]&&e[c].icon||j(e),alt:""}),0<=p.indexOf("left")&&o.a.createElement(V,{value:"left",active:"left"===c,className:l()("rdw-text-align-dropdownOption",f.className),title:f.title||u["components.controls.textalign.left"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("center")&&o.a.createElement(V,{value:"center",active:"center"===c,className:l()("rdw-text-align-dropdownOption",d.className),title:d.title||u["components.controls.textalign.center"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("right")&&o.a.createElement(V,{value:"right",active:"right"===c,className:l()("rdw-text-align-dropdownOption",h.className),title:h.title||u["components.controls.textalign.right"]},o.a.createElement("img",{src:h.icon,alt:""})),0<=p.indexOf("justify")&&o.a.createElement(V,{value:"justify",active:"justify"===c,className:l()("rdw-text-align-dropdownOption",y.className),title:y.title||u["components.controls.textalign.justify"]},o.a.createElement("img",{src:y.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&ae(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function pe(t){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function de(t,e){return(de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function he(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}le.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ge=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&de(t,e)}(i,r.Component);var t,e,n=he(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addBlockAlignmentData=function(t){var n=e.props,r=n.editorState;(0,n.onChange)(e.state.currentTextAlignment!==t?Object(s.setBlockData)(r,{"text-align":t}):Object(s.setBlockData)(r,{"text-align":void 0}))};var r=e.props.modalHandler;return e.state={currentTextAlignment:void 0},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e!==t.editorState&&this.setState({currentTextAlignment:Object(s.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,c=e.component||le;return o.a.createElement(c,{config:e,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&fe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function me(t){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function be(t,e){return(be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _e(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=we(t);if(e){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function we(t){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ge.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var Se=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(i,r.Component);var t,e,n=_e(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return(t=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},t.onChange=function(e){(0,t.props.onChange)(t.state.currentStyle,e)},t.setCurrentStyleColor=function(){t.setState({currentStyle:"color"})},t.setCurrentStyleBgcolor=function(){t.setState({currentStyle:"bgcolor"})},t.renderModal=function(){var e=t.props,n=e.config,r=n.popupClassName,i=n.colors,a=e.currentState,c=a.color,s=a.bgColor,u=e.translations,p=t.state.currentStyle,f="color"===p?c:s;return o.a.createElement("div",{className:l()("rdw-colorpicker-modal",r),onClick:E},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:l()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===p}),onClick:t.setCurrentStyleColor},u["components.controls.colorpicker.text"]),o.a.createElement("span",{className:l()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===p}),onClick:t.setCurrentStyleBgcolor},u["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map(function(e,n){return o.a.createElement(z,{value:e,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:f===e,onClick:t.onChange},o.a.createElement("span",{style:{backgroundColor:e},className:"rdw-colorpicker-cube"}))})))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){this.props.expanded&&!t.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||s["components.controls.colorpicker.colorpicker"]},o.a.createElement(z,{onClick:c,className:l()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&ve(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Se.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Me=Se;function Ee(t){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ke(t,e){return(ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Oe(t);if(e){var o=Oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Oe(t){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var De=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ke(t,e)}(i,r.Component);var t,e,n=Ce(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleColor=function(t,n){var r=e.props,o=r.editorState,i=r.onChange,a=Object(s.toggleCustomInlineStyle)(o,t,n);a&&i(a),e.doCollapse()};var r=t.editorState,o=t.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(s.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(s.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),e.state=a,o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentColor:Object(s.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(s.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,c=r.expanded,s=e.component||Me,u=i&&i.substring(6),l=a&&a.substring(8);return o.a.createElement(s,{config:e,translations:n,onChange:this.toggleColor,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:u,bgColor:l}})}}])&&je(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();De.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Ae=De,Ne=n(7),xe=n.n(Ne);function Ie(t){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Te(t,e){return(Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Re(t);if(e){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ie(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Re(t){return(Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(26);var Be=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Te(t,e)}(i,r.Component);var t,e,n=ze(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:t.props.config.defaultTargetOption},t.removeLink=function(){(0,t.props.onChange)("unlink")},t.addLink=function(){var e=t.props.onChange,n=t.state;e("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t.updateTargetOption=function(e){t.setState({linkTargetOption:e.target.checked?"_blank":"_self"})},t.hideModal=function(){t.setState({showModal:!1})},t.signalExpandShowModal=function(){var e=t.props,n=e.onExpandEvent,r=e.currentState,o=r.link,i=r.selectionText,a=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},t.forceExpandAndShowModal=function(){var e=t.props,n=e.doExpand,r=e.currentState,o=r.link,i=r.selectionText,a=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,r=t.translations,i=this.state,a=i.linkTitle,c=i.linkTarget,s=i.linkTargetOption;return o.a.createElement("div",{className:l()("rdw-link-modal",e),onClick:E},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:c}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===s,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!c||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.link,i=e.unlink,a=e.className,c=t.currentState,s=t.expanded,u=t.translations,p=this.state.showModal;return o.a.createElement("div",{className:l()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(z,{value:"unordered-list-item",className:l()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:r.title||u["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(z,{disabled:!c.link,value:"ordered-list-item",className:l()(i.className),onClick:this.removeLink,title:i.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),s&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,r=t.doCollapse,i=t.doExpand,a=t.onChange,c=t.config,s=t.currentState,u=t.translations,p=c.options,f=c.link,d=c.unlink,h=c.className,y=c.dropdownClassName,g=c.title,m=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:g},o.a.createElement(K,{className:l()("rdw-link-dropdown",h),optionWrapperClassName:l()(y),onChange:a,expanded:e&&!m,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:j(c),alt:""}),0<=p.indexOf("link")&&o.a.createElement(V,{onClick:this.forceExpandAndShowModal,className:l()("rdw-link-dropdownoption",f.className),title:f.title||u["components.controls.link.link"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("unlink")&&o.a.createElement(V,{onClick:this.removeLink,disabled:!s.link,className:l()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:d.icon,alt:""}))),e&&m?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Le(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Be.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var Pe=Be;function Ue(t){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ke(t,e){return(Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=He(t);if(e){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function He(t){return(He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach(function(e){We(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ze(t){var e=Ve.match(t.target);return qe(qe({},t),{},{target:e&&e[0]&&e[0].url||t.target})}var Ve=xe()(),Ge=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ke(t,e)}(i,r.Component);var t,e,n=Ye(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t,n,r,o){var i=e.props.config.linkCallback;if("link"===t){var a=(i||Ze)({title:n,target:r,targetOption:o});e.addLink(a.title,a.target,a.targetOption)}else e.removeLink()},e.getCurrentValues=function(){var t=e.props.editorState,n=e.state.currentEntity,r=t.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(s.getEntityRange)(t,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(s.getSelectionText)(t),o},e.doExpand=function(){e.setState({expanded:!0})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doCollapse=function(){e.setState({expanded:!1})},e.removeLink=function(){var t=e.props,n=t.editorState,r=t.onChange,o=e.state.currentEntity,i=n.getSelection();if(o){var a=Object(s.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(c.RichUtils.toggleLink(n,i,null))}},e.addLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,u=e.state.currentEntity,l=i.getSelection();if(u){var p=Object(s.getEntityRange)(i,u);l=l.getIsBackward()?l.merge({anchorOffset:p.end,focusOffset:p.start}):l.merge({anchorOffset:p.start,focusOffset:p.end})}var f=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),d=c.Modifier.replaceText(i.getCurrentContent(),l,"".concat(t),i.getCurrentInlineStyle(),f),h=c.EditorState.push(i,d,"insert-characters");l=h.getSelection().merge({anchorOffset:l.get("anchorOffset")+t.length,focusOffset:l.get("anchorOffset")+t.length}),h=c.EditorState.acceptSelection(h,l),d=c.Modifier.insertText(h.getCurrentContent(),l," ",h.getCurrentInlineStyle(),void 0),a(c.EditorState.push(h,d,"insert-characters")),e.doCollapse()};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(s.getSelectionEntity)(o):void 0},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentEntity:Object(s.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,c=i.selectionText,s=e.component||Pe;return o.a.createElement(s,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:c},onChange:this.onChange})}}])&&Fe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Ge.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Je=Ge;function Xe(t){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tn(t,e){return(tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function en(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=nn(t);if(e){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Xe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function nn(t){return(nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(27);var rn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tn(t,e)}(i,r.Component);var t,e,n=en(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width},t.onChange=function(){var e=t.props.onChange,n=t.state;e(n.embeddedLink,n.height,n.width)},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.expanded,r=e.config;if(!n&&t.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var t=this.state,e=t.embeddedLink,n=t.height,r=t.width,i=this.props,a=i.config.popupClassName,c=i.doCollapse,s=i.translations;return o.a.createElement("div",{className:l()("rdw-embedded-modal",a),onClick:E},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},s["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:s["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!e||!n||!r},s["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:c},s["generic.cancel"])))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(z,{className:l()(r),value:"unordered-list-item",onClick:c,title:i||s["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&$e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();rn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var on=rn;function an(t){return(an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sn(t,e){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function un(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ln(t);if(e){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===an(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ln(t){return(ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sn(t,e)}(i,r.Component);var t,e,n=un(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addEmbeddedLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,s=o.config.embedCallback,u=s?s(e):e,l=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:u,height:n,width:r}).getLastCreatedEntityKey();a(c.AtomicBlockUtils.insertAtomicBlock(i,l," ")),t.doCollapse()},t}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||on;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();pn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var fn=pn;function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yn(t,e){return(yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=mn(t);if(e){var o=mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===dn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function mn(t){return(mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(28);var vn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yn(t,e)}(i,r.Component);var t,e,n=gn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onChange=function(e){(0,t.props.onChange)(e.target.innerHTML)},t}return t=i,(e=[{key:"renderEmojiModal",value:function(){var t=this,e=this.props.config,n=e.popupClassName,r=e.emojis;return o.a.createElement("div",{className:l()("rdw-emoji-modal",n),onClick:E},r.map(function(e,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:t.onChange},e)}))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||s["components.controls.emoji.emoji"]},o.a.createElement(z,{className:l()(r),value:"unordered-list-item",onClick:c},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&hn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();vn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var bn=vn;function _n(t){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sn(t,e){return(Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Mn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=En(t);if(e){var o=En(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===_n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function En(t){return(En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var jn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sn(t,e)}(i,r.Component);var t,e,n=Mn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addEmoji=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=c.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),e,r.getCurrentInlineStyle());o(c.EditorState.push(r,i,"insert-characters")),t.doCollapse()},t}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||bn;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&wn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function kn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function Cn(t){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function On(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dn(t,e){return(Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function An(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Nn(t);if(e){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}jn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var xn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dn(t,e)}(i,r.Component);var t,e,n=An(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:t.props.config.uploadEnabled&&!!t.props.config.uploadCallback,showImageLoading:!1,height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width,alt:""},t.onDragEnter=function(e){t.stopPropagation(e),t.setState({dragEnter:!0})},t.onImageDrop=function(e){var n,r;e.preventDefault(),e.stopPropagation(),t.setState({dragEnter:!1}),r=e.dataTransfer.items?(n=e.dataTransfer.items,!0):(n=e.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];t.uploadImage(i)}},t.showImageUploadOption=function(){t.setState({uploadHighlighted:!0})},t.addImageFromState=function(){var e=t.state,n=e.imgSrc,r=e.alt,o=t.state,i=o.height,a=o.width,c=t.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),c(n,i,a,r)},t.showImageURLOption=function(){t.setState({uploadHighlighted:!1})},t.toggleShowImageLoading=function(){var e=!t.state.showImageLoading;t.setState({showImageLoading:e})},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t.selectImage=function(e){e.target.files&&0<e.target.files.length&&t.uploadImage(e.target.files[0])},t.uploadImage=function(e){t.toggleShowImageLoading(),(0,t.props.config.uploadCallback)(e).then(function(e){var n=e.data;t.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),t.fileUpload=!1}).catch(function(){t.setState({showImageLoading:!1,dragEnter:!1})})},t.fileUploadClick=function(e){t.fileUpload=!0,e.stopPropagation()},t.stopPropagation=function(e){t.fileUpload?t.fileUpload=!1:(e.preventDefault(),e.stopPropagation())},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.config;t.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback,showImageLoading:!1,height:e.defaultSize.height,width:e.defaultSize.width,alt:""}):e.uploadCallback===t.config.uploadCallback&&e.uploadEnabled===t.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var t=this.state,e=t.imgSrc,n=t.uploadHighlighted,r=t.showImageLoading,i=t.dragEnter,a=t.height,c=t.width,s=t.alt,u=this.props,p=u.config,f=p.popupClassName,d=p.uploadCallback,h=p.uploadEnabled,y=p.urlEnabled,g=p.previewImage,m=p.inputAccept,v=p.alt,b=u.doCollapse,_=u.translations;return o.a.createElement("div",{className:l()("rdw-image-modal",f),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},h&&d&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},_["components.controls.image.fileUpload"],o.a.createElement("span",{className:l()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),y&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},_["components.controls.image.byURL"],o.a.createElement("span",{className:l()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:l()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&e?o.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||_["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:m,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:_["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:e}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!e||!a||!c||v.mandatory&&!s},_["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},_["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(kn,null)):void 0)}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(z,{className:l()(r),value:"unordered-list-item",onClick:c,title:i||s["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&On(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();xn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var In=xn;function Ln(t){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zn(t,e){return(zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Bn(t);if(e){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ln(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Bn(t){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zn(t,e)}(i,r.Component);var t,e,n=Rn(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.addImage=function(t,n,r,o){var i=e.props,a=i.editorState,s=i.onChange,u={src:t,height:n,width:r};i.config.alt.present&&(u.alt=o);var l=a.getCurrentContent().createEntity("IMAGE","MUTABLE",u).getLastCreatedEntityKey();s(c.AtomicBlockUtils.insertAtomicBlock(a,l," ")),e.doCollapse()};var r=e.props.modalHandler;return e.state={expanded:!1},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||In;return o.a.createElement(i,{config:e,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Tn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Un(t){var e=t.config,n=t.onChange,r=t.translations,i=e.icon,a=e.className,c=e.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(z,{className:l()(a),onClick:n,title:c||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}Pn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Fn=Pn;n(31),Un.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var Kn=Un;function Yn(t){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qn(t,e){return(Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function qn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Wn(t);if(e){var o=Wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Yn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Wn(t){return(Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qn(t,e)}(i,r.Component);var t,e,n=qn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.removeInlineStyles=function(){var e=t.props,n=e.editorState;(0,e.onChange)(t.removeAllInlineStyles(n))},t.removeAllInlineStyles=function(t){var e=t.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(n){e=c.Modifier.removeInlineStyle(e,t.getSelection(),n)}),S(Object(s.getSelectionCustomInlineStyle)(t,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(n,r){r&&(e=c.Modifier.removeInlineStyle(e,t.getSelection(),r))}),c.EditorState.push(t,e,"change-inline-style")},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||Kn;return o.a.createElement(i,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Hn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Vn(t){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jn(t,e){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Xn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=$n(t);if(e){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function $n(t){return($n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Zn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var tr=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jn(t,e)}(i,r.Component);var t,e,n=Xn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onChange=function(e){(0,t.props.onChange)(e)},t}return t=i,(e=[{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState,s=c.undoDisabled,u=c.redoDisabled,p=t.translations,f=e.options,d=e.undo,h=e.redo,y=e.className,g=e.dropdownClassName,m=e.title;return o.a.createElement(K,{className:l()("rdw-history-dropdown",y),optionWrapperClassName:l()(g),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:m||p["components.controls.history.history"]},o.a.createElement("img",{src:j(e),alt:""}),0<=f.indexOf("undo")&&o.a.createElement(V,{value:"undo",onClick:this.onChange,disabled:s,className:l()("rdw-history-dropdownoption",d.className),title:d.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("redo")&&o.a.createElement(V,{value:"redo",onClick:this.onChange,disabled:u,className:l()("rdw-history-dropdownoption",h.className),title:h.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.undo,i=e.redo,a=e.className,c=t.currentState,s=c.undoDisabled,u=c.redoDisabled,p=t.translations;return o.a.createElement("div",{className:l()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(z,{value:"undo",onClick:this.onChange,className:l()(r.className),disabled:s,title:r.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(z,{value:"redo",onClick:this.onChange,className:l()(i.className),disabled:u,title:i.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Gn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function er(t){return(er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rr(t,e){return(rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function or(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ir(t);if(e){var o=ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===er(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ir(t){return(ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}tr.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ar=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rr(t,e)}(i,r.Component);var t,e,n=or(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=c.EditorState[t](r);i&&o(i)},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var r={expanded:!(e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=t.editorState,a=t.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),e.state=r,a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&t.editorState!==e&&this.setState({undoDisabled:0===e.getUndoStack().size,redoDisabled:0===e.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,c=r.expanded,s=e.component||tr;return o.a.createElement(s,{config:e,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&nr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();ar.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var cr={inline:ct,blockType:wt,fontSize:It,fontFamily:qt,list:oe,textAlign:ge,colorPicker:Ae,link:Je,embedded:fn,emoji:jn,image:Fn,remove:Zn,history:ar},sr=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ur=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function lr(t){return String(t).replace(sr,"").match(ur)?t:"#"}function pr(t){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dr(t,e){return(dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function hr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=yr(t);if(e){var o=yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===pr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function yr(t){return(yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gr(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()},e)}function mr(t){var e,n=t.showOpenOptionOnHover;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dr(t,e)}(a,r.Component);var t,e,i=hr(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},t.openLink=function(){var e=t.props,n=e.entityKey,r=e.contentState.getEntity(n).getData().url,o=window.open(lr(r),"blank");o&&o.focus()},t.toggleShowPopOver=function(){var e=!t.state.showPopOver;t.setState({showPopOver:e})},t}return t=a,(e=[{key:"render",value:function(){var t=this.props,e=t.children,r=t.entityKey,i=t.contentState.getEntity(r).getData(),a=i.url,c=i.targetOption,s=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:lr(a),target:c},e),s&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&fr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},e}function vr(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}n(33),n(34);var br=vr(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getMentionComponent=function(){function t(t){var n=t.entityKey,r=t.children,i=t.contentState.getEntity(n).getData(),a=i.url,c=i.value;return o.a.createElement("a",{href:a||c,className:l()("rdw-mention-link",e)},r)}var e=n.className;return t.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},t},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=e});br.prototype.findMentionEntities=function(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()},e)};var _r=br;function wr(t){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sr(t,e){return(Sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Mr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Er(t);if(e){var o=Er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Er(t){return(Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kr(t,e,n){return e&&jr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(35);var Or=kr(function t(e){var n=this;Cr(this,t),this.findSuggestionEntities=function(t,e){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,c=(0,r.getEditorState)().getSelection();if(c.get("anchorKey")===t.get("key")&&c.get("anchorKey")===c.get("focusKey")){var s=t.getText(),u=(s=s.substr(0,c.get("focusOffset")===s.length-1?s.length:c.get("focusOffset")+1)).lastIndexOf(o+i),l=o+i;if((void 0===u||u<0)&&s[0]===i&&(u=0,l=i),0<=u){var p=s.substr(u+l.length,s.length);a().some(function(t){return!!t.value&&(n.config.caseSensitive?0<=t.value.indexOf(p):0<=t.value.toLowerCase().indexOf(p&&p.toLowerCase()))})&&e(0===u?0:u+1,s.length)}}}},this.getSuggestionComponent=function(){var t,e=this.config;return(t=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sr(t,e)}(n,r.Component);var t=Mr(n);function n(){var r;Cr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.call.apply(t,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(t){var e=r.state.activeOption,n={};"ArrowDown"===t.key?(t.preventDefault(),e===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=e+1):"ArrowUp"===t.key?n.activeOption=e<=0?r.filteredSuggestions.length-1:e-1:"Escape"===t.key?(n.showSuggestions=!1,b()):"Enter"===t.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(t){var e=t.target.getAttribute("data-index");r.setState({activeOption:e})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(t){r.suggestion=t},r.setDropdownReference=function(t){r.dropdown=t},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(t){var n=t.children[0].props.text.substr(1),o=e.getSuggestions();r.filteredSuggestions=o&&o.filter(function(t){return!n||0===n.length||(e.caseSensitive?0<=t.value.indexOf(n):0<=t.value.toLowerCase().indexOf(n&&n.toLowerCase()))})},r.addMention=function(){var t=r.state.activeOption,n=e.getEditorState(),o=e.onChange,i=e.separator,a=e.trigger,u=r.filteredSuggestions[t];u&&function(t,e,n,r,o){var i=o.value,a=o.url,u=t.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),l=Object(s.getSelectedBlock)(t).getText(),p=t.getSelection().focusOffset,f=(l.lastIndexOf(n+r,p)||0)+1,d=!1;l.length===f+1&&(p=l.length)," "===l[p]&&(d=!0);var h=t.getSelection().merge({anchorOffset:f,focusOffset:p}),y=c.EditorState.acceptSelection(t,h),g=c.Modifier.replaceText(y.getCurrentContent(),h,"".concat(r).concat(i),y.getCurrentInlineStyle(),u);y=c.EditorState.push(y,g,"insert-characters"),d||(h=y.getSelection().merge({anchorOffset:f+i.length+r.length,focusOffset:f+i.length+r.length}),y=c.EditorState.acceptSelection(y,h),g=c.Modifier.insertText(y.getCurrentContent(),h," ",y.getCurrentInlineStyle(),void 0)),e(c.EditorState.push(y,g,"insert-characters"))}(n,o,i,a,u)},r}return kr(n,[{key:"componentDidMount",value:function(){var t,n,r,o=e.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:t=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:t,right:n,bottom:r}}),m.registerCallBack(this.onEditorKeyDown),v(),e.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(t){this.props.children!==t.children&&(this.filterSuggestions(t),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){m.deregisterCallBack(this.onEditorKeyDown),b(),e.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var t=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,c=e.dropdownClassName,s=e.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:e.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),a&&o.a.createElement("span",{className:l()("rdw-suggestion-dropdown",c),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map(function(e,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:t.addMention,"data-index":n,onMouseEnter:t.onOptionMouseEnter,onMouseLeave:t.onOptionMouseLeave,className:l()("rdw-suggestion-option",s,{"rdw-suggestion-option-active":n===i})},e.text)})))}}]),n}()).propTypes={children:a.a.array},t}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=e.separator,u=e.trigger,p=e.getSuggestions,f=e.onChange,d=e.getEditorState,h=e.getWrapperRef,y=e.caseSensitive,g=e.dropdownClassName,_=e.optionClassName,w=e.modalHandler;this.config={separator:i,trigger:u,getSuggestions:p,onChange:f,getEditorState:d,getWrapperRef:h,caseSensitive:y,dropdownClassName:g,optionClassName:_,modalHandler:w}}),Dr=function(t){return[new _r(t.mentionClassName).getMentionDecorator(),new Or(t).getSuggestionDecorator()]};function Ar(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Nr(t){var e=t.block,n=t.contentState.getEntity(e.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var xr=Ar(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getHashtagComponent=function(){function t(t){var n=t.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:l()("rdw-hashtag-link",e)},n)}var e=n.className;return t.propTypes={children:a.a.object},t},this.findHashtagEntities=function(t,e){for(var r=t.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,c=r.substr(0,a);c&&0<c.length&&(e(i,i+c.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=e.className,this.hashCharacter=e.hashCharacter||"#",this.separator=e.separator||" "}),Ir=function(t){return new xr(t).getHashtagDecorator()};Nr.propTypes={block:a.a.object,contentState:a.a.object};var Lr=Nr;function Tr(t){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rr(t,e){return(Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Br(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Pr(t);if(e){var o=Pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Tr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Pr(t){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(37);var Ur=function(t){var e;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rr(t,e)}(a,r.Component);var e,n,i=Br(a);function a(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).state={hovered:!1},e.setEntityAlignmentLeft=function(){e.setEntityAlignment("left")},e.setEntityAlignmentRight=function(){e.setEntityAlignment("right")},e.setEntityAlignmentCenter=function(){e.setEntityAlignment("none")},e.setEntityAlignment=function(n){var r=e.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),t.onChange(c.EditorState.push(t.getEditorState(),i,"change-block-data")),e.setState({dummy:!0})},e.toggleHovered=function(){var t=!e.state.hovered;e.setState({hovered:t})},e}return e=a,(n=[{key:"renderAlignmentOptions",value:function(t){return o.a.createElement("div",{className:l()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===t})},o.a.createElement(z,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(z,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(z,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var e=this.props,n=e.block,r=e.contentState,i=this.state.hovered,a=t.isReadOnly,c=t.isImageAlignmentEnabled,s=r.getEntity(n.getEntityAt(0)).getData(),u=s.src,p=s.alignment,f=s.height,d=s.width,h=s.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:l()("rdw-image-alignment",{"rdw-image-left":"left"===p,"rdw-image-right":"right"===p,"rdw-image-center":!p||"none"===p})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:u,alt:h,style:{height:f,width:d}}),!a()&&i&&c()?this.renderAlignmentOptions(p):void 0))}}])&&zr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},e},Fr=function(t,e){return function(n){if("function"==typeof e){var r=e(n,t,t.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=t.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Ur(t),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Lr,editable:!1}}}},Kr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Yr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function Hr(t){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qr(){return(Qr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Wr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qr(Object(n),!0).forEach(function(e){Zr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vr(t){return function(t){if(Array.isArray(t))return Gr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Jr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xr(t,e){return(Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=to(t);if(e){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Hr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(38),n(39);var eo=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xr(t,e)}(i,r.Component);var t,e,n=$r(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onEditorBlur=function(){e.setState({editorFocused:!1})},e.onEditorFocus=function(t){var n=e.props.onFocus;e.setState({editorFocused:!0});var r=e.focusHandler.isEditorFocused();n&&r&&n(t)},e.onEditorMouseDown=function(){e.focusHandler.onEditorMouseDown()},e.keyBindingFn=function(t){if("Tab"!==t.key)return"ArrowUp"!==t.key&&"ArrowDown"!==t.key||_()&&t.preventDefault(),Object(c.getDefaultKeyBinding)(t);var n=e.props.onTab;if(!n||!n(t)){var r=Object(s.changeDepth)(e.state.editorState,t.shiftKey?-1:1,4);r&&r!==e.state.editorState&&(e.onChange(r),t.preventDefault())}return null},e.onToolbarFocus=function(t){var n=e.props.onFocus;n&&e.focusHandler.isToolbarFocused()&&n(t)},e.onWrapperBlur=function(t){var n=e.props.onBlur;n&&e.focusHandler.isEditorBlur(t)&&n(t,e.getEditorState())},e.onChange=function(t){var n=e.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(s.getSelectedBlocksType)(t)&&t.getSelection().isCollapsed||(o&&o(t,e.props.wrapperId),M(e.props,"editorState")?e.afterChange(t):e.setState({editorState:t},e.afterChange(t)))},e.setWrapperReference=function(t){e.wrapper=t},e.setEditorReference=function(t){e.props.editorRef&&e.props.editorRef(t),e.editor=t},e.getCompositeDecorator=function(t){var n=[].concat(Vr(e.props.customDecorators),[{strategy:gr,component:mr({showOpenOptionOnHover:t.link.showOpenOptionOnHover})}]);return e.props.mention&&n.push.apply(n,Vr(Dr(Wr(Wr({},e.props.mention),{},{onChange:e.onChange,getEditorState:e.getEditorState,getSuggestions:e.getSuggestions,getWrapperRef:e.getWrapperRef,modalHandler:e.modalHandler})))),e.props.hashtag&&n.push(Ir(e.props.hashtag)),new c.CompositeDecorator(n)},e.getWrapperRef=function(){return e.wrapper},e.getEditorState=function(){return e.state?e.state.editorState:null},e.getSuggestions=function(){return e.props.mention&&e.props.mention.suggestions},e.afterChange=function(t){setTimeout(function(){var n=e.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(c.convertToRaw)(t.getCurrentContent())),o&&o(Object(c.convertToRaw)(t.getCurrentContent()))})},e.isReadOnly=function(){return e.props.readOnly},e.isImageAlignmentEnabled=function(){return e.state.toolbar.image.alignmentEnabled},e.createEditorState=function(t){var n;if(M(e.props,"editorState"))e.props.editorState&&(n=c.EditorState.set(e.props.editorState,{decorator:t}));else if(M(e.props,"defaultEditorState"))e.props.defaultEditorState&&(n=c.EditorState.set(e.props.defaultEditorState,{decorator:t}));else if(M(e.props,"contentState")){if(e.props.contentState){var r=Object(c.convertFromRaw)(e.props.contentState);n=c.EditorState.createWithContent(r,t),n=c.EditorState.moveSelectionToEnd(n)}}else if(M(e.props,"defaultContentState")||M(e.props,"initialContentState")){var o=e.props.defaultContentState||e.props.initialContentState;o&&(o=Object(c.convertFromRaw)(o),n=c.EditorState.createWithContent(o,t),n=c.EditorState.moveSelectionToEnd(n))}return n||c.EditorState.createEmpty(t)},e.filterEditorProps=function(t){return e=t,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(e).filter(function(t){return n.indexOf(t)<0}),o={},r&&0<r.length&&r.forEach(function(t){o[t]=e[t]}),o;var e,n,r,o},e.getStyleMap=function(t){return Wr(Wr({},Object(s.getCustomStyleMap)()),t.customStyleMap)},e.changeEditorState=function(t){var n=Object(c.convertFromRaw)(t),r=e.state.editorState;return r=c.EditorState.push(r,n,"insert-characters"),c.EditorState.moveSelectionToEnd(r)},e.focusEditor=function(){setTimeout(function(){e.editor.focus()})},e.handleKeyCommand=function(t){var n=e.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(t)){var i=c.RichUtils.handleKeyCommand(r,t);if(i)return e.onChange(i),!0}return!1},e.handleReturn=function(t){if(_())return!0;var n=e.state.editorState,r=Object(s.handleNewLine)(n,t);return!!r&&(e.onChange(r),!0)},e.handlePastedTextFn=function(t,n){var r=e.state.editorState,o=e.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(t,n,r,e.onChange):!a&&function(t,e,n,r){var o=Object(s.getSelectedBlock)(n);if(o&&"code"===o.type){var i=c.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),t,n.getCurrentInlineStyle());return r(c.EditorState.push(n,i,"insert-characters")),!0}if(e){var a=O()(e),u=n.getCurrentContent();return a.entityMap.forEach(function(t,e){u=u.mergeEntityData(e,t)}),u=c.Modifier.replaceWithFragment(u,n.getSelection(),new D.List(a.contentBlocks)),r(c.EditorState.push(n,u,"insert-characters")),!0}return!1}(t,n,r,e.onChange)},e.preventDefault=function(t){"INPUT"===t.target.tagName||"LABEL"===t.target.tagName||"TEXTAREA"===t.target.tagName?e.focusHandler.onInputMouseDown():t.preventDefault()};var r=k(Kr,t.toolbar),o=t.wrapperId?t.wrapperId:Math.floor(1e4*Math.random());e.wrapperId="rdw-wrapper-".concat(o),e.modalHandler=new f,e.focusHandler=new y,e.blockRendererFn=Fr({isReadOnly:e.isReadOnly,isImageAlignmentEnabled:e.isImageAlignmentEnabled,getEditorState:e.getEditorState,onChange:e.onChange},t.customBlockRenderFunc),e.editorProps=e.filterEditorProps(t),e.customStyleMap=e.getStyleMap(t),e.compositeDecorator=e.getCompositeDecorator(r);var a=e.createEditorState(e.compositeDecorator);return Object(s.extractInlineStyle)(a),e.state={editorState:a,editorFocused:!1,toolbar:r},e}return t=i,(e=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(t){if(t!==this.props){var e={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=k(Kr,i);e.toolbar=i}if(M(this.props,"editorState")&&r!==t.editorState)e.editorState=r?c.EditorState.set(r,{decorator:this.compositeDecorator}):c.EditorState.createEmpty(this.compositeDecorator);else if(M(this.props,"contentState")&&o!==t.contentState)if(o){var a=this.changeEditorState(o);a&&(e.editorState=a)}else e.editorState=c.EditorState.createEmpty(this.compositeDecorator);t.editorState===r&&t.contentState===o||Object(s.extractInlineStyle)(e.editorState),Object.keys(e).length&&this.setState(e),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var t=this.state,e=t.editorState,n=t.editorFocused,r=t.toolbar,i=this.props,a=i.locale,u=i.localization,p=u.locale,f=u.translations,d=i.toolbarCustomButtons,h=i.toolbarOnFocus,y=i.toolbarClassName,g=i.toolbarHidden,v=i.editorClassName,b=i.wrapperClassName,_=i.toolbarStyle,S=i.editorStyle,M=i.wrapperStyle,E=i.uploadCallback,j=i.ariaLabel,k={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:Wr(Wr({},Yr[a||p]),f)},C=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:l()(b,"rdw-editor-wrapper"),style:M,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:l()("rdw-editor-toolbar",y),style:Wr({visibility:C?"visible":"hidden"},_),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map(function(t,e){var n=cr[t],i=r[t];return"image"===t&&E&&(i.uploadCallback=E),o.a.createElement(n,Qr({key:e},k,{config:i}))}),d&&d.map(function(t,e){return o.a.cloneElement(t,Wr({key:e},k))})),o.a.createElement("div",{ref:this.setWrapperReference,className:l()(v,"rdw-editor-main"),style:S,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:m.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(c.Editor,Qr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:e,onChange:this.onChange,blockStyleFn:w,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:j||"rdw-editor",blockRenderMap:s.blockRenderMap},this.editorProps))))}}])&&Jr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();eo.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},eo.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var no=eo}],r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i}(t,Th,i(Object.freeze({__proto__:null,Collection:oy,Iterable:ib,List:Pm,Map:ym,OrderedMap:$m,OrderedSet:Uv,PairSorting:Qv,Range:Mv,Record:qv,Repeat:$v,Seq:Cy,Set:gv,Stack:iv,default:ob,fromJS:tb,get:Bg,getIn:Ev,has:Rg,hasIn:kv,hash:Wy,is:Yy,isAssociative:ry,isCollection:Xh,isImmutable:fy,isIndexed:ny,isKeyed:ty,isList:Bm,isMap:Uy,isOrdered:hy,isOrderedMap:Fy,isOrderedSet:fv,isPlainObject:Lg,isRecord:py,isSeq:uy,isSet:pv,isStack:ov,isValueObject:Ky,merge:em,mergeDeep:rm,mergeDeepWith:om,mergeWith:nm,remove:Fg,removeIn:Wg,set:Kg,setIn:Qg,update:Vg,updateIn:Yg,version:rb}))),cb={exports:{}};cb.exports=function(){function t(t,e){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&e(n,t[n])}function e(t){return null==t||0===t.length||0===t.trim().length}var n={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function r(t){return t&&n[t]}function o(e){var n="";return t(e,function(t,e){e&&(n+="".concat(t,":").concat(e,";"))}),n}function i(t,e){var n=[];if(e)for(var r=0,o=0,i=t,a=e.trigger||"#",c=e.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(c+a))>=0&&(i=i.substr(o+(c+a).length),r+=o+c.length),o>=0){var s=i.indexOf(c)>=0?i.indexOf(c):i.length,u=i.substr(0,s);u&&u.length>0&&n.push({offset:r,length:u.length+a.length,type:"HASHTAG"}),r+=a.length}return n}function a(t,e){var n=[],r=0,o=t.entityRanges.map(function(t){return{offset:t.offset,length:t.length,key:t.key,type:"ENTITY"}});return(o=(o=o.concat(i(t.text,e))).sort(function(t,e){return t.offset-e.offset})).forEach(function(t){t.offset>r&&n.push({start:r,end:t.offset}),n.push({start:t.offset,end:t.offset+t.length,entityKey:t.key,type:t.type}),r=t.offset+t.length}),r<t.text.length&&n.push({start:r,end:t.text.length}),n}function c(t){return!(!(t.entityRanges.length>0)||!e(t.text)&&"atomic"!==t.type)}function s(t){var e=t.text,n=t.inlineStyleRanges,r={BOLD:new Array(e.length),ITALIC:new Array(e.length),UNDERLINE:new Array(e.length),STRIKETHROUGH:new Array(e.length),CODE:new Array(e.length),SUPERSCRIPT:new Array(e.length),SUBSCRIPT:new Array(e.length),COLOR:new Array(e.length),BGCOLOR:new Array(e.length),FONTSIZE:new Array(e.length),FONTFAMILY:new Array(e.length),length:e.length};return n&&n.length>0&&n.forEach(function(t){for(var e=t.offset,n=e+t.length,o=e;o<n;o+=1)0===t.style.indexOf("color-")?r.COLOR[o]=t.style.substring(6):0===t.style.indexOf("bgcolor-")?r.BGCOLOR[o]=t.style.substring(8):0===t.style.indexOf("fontsize-")?r.FONTSIZE[o]=t.style.substring(9):0===t.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=t.style.substring(11):r[t.style]&&(r[t.style][o]=!0)}),r}function u(t,e){var n={};return t.COLOR[e]&&(n.COLOR=t.COLOR[e]),t.BGCOLOR[e]&&(n.BGCOLOR=t.BGCOLOR[e]),t.FONTSIZE[e]&&(n.FONTSIZE=t.FONTSIZE[e]),t.FONTFAMILY[e]&&(n.FONTFAMILY=t.FONTFAMILY[e]),t.UNDERLINE[e]&&(n.UNDERLINE=!0),t.ITALIC[e]&&(n.ITALIC=!0),t.BOLD[e]&&(n.BOLD=!0),t.STRIKETHROUGH[e]&&(n.STRIKETHROUGH=!0),t.CODE[e]&&(n.CODE=!0),t.SUBSCRIPT[e]&&(n.SUBSCRIPT=!0),t.SUPERSCRIPT[e]&&(n.SUPERSCRIPT=!0),n}function l(t,e,n){var r=!0;return n>0&&n<t.length?e.forEach(function(e){r=r&&t[e][n]===t[e][n-1]}):r=!1,r}function p(t,e){return"BOLD"===t?"<strong>".concat(e,"</strong>"):"ITALIC"===t?"<em>".concat(e,"</em>"):"UNDERLINE"===t?"<ins>".concat(e,"</ins>"):"STRIKETHROUGH"===t?"<del>".concat(e,"</del>"):"CODE"===t?"<code>".concat(e,"</code>"):"SUPERSCRIPT"===t?"<sup>".concat(e,"</sup>"):"SUBSCRIPT"===t?"<sub>".concat(e,"</sub>"):e}function f(t){return t&&t.length>0?t.map(function(t){switch(t){case"\n":return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return t}}).join(""):""}function d(t,e){if(t&&(t.COLOR||t.BGCOLOR||t.FONTSIZE||t.FONTFAMILY)){var n='style="';return t.COLOR&&(n+="color: ".concat(t.COLOR,";")),t.BGCOLOR&&(n+="background-color: ".concat(t.BGCOLOR,";")),t.FONTSIZE&&(n+="font-size: ".concat(t.FONTSIZE).concat(/^\d+$/.test(t.FONTSIZE)?"px":"",";")),t.FONTFAMILY&&(n+="font-family: ".concat(t.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(e,"</span>")}return e}function h(t,e,n,r){var o=t[e];if("function"==typeof r){var i=r(o,n);if(i)return i}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===o.type){var c=o.data.alignment;return c&&c.length?'<div style="text-align:'.concat(c,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function y(t,e,n,r){var o=[],i=Array.from(t.text);if(i.length>0)for(var a,c=s(t),p=n;p<r;p+=1)p!==n&&l(c,e,p)?(a.text.push(i[p]),a.end=p+1):(a={styles:u(c,p),text:[i[p]],start:p,end:p+1},o.push(a));return o}function g(t){if(t){for(var e=t,n=0;n<e.length&&" "===t[n];n+=1)e=e.replace(" ","&nbsp;");return e}return t}function m(t){if(t){for(var e=t,n=e.length-1;n>=0&&" "===e[n];n-=1)e="".concat(e.substring(0,n),"&nbsp;").concat(e.substring(n+1));return e}return t}function v(e){var n=e.styles,r=f(e.text);return t(n,function(t,e){r=p(t,r)}),r}function b(t,e){var n=y(t,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],e.start,e.end),r="";return n.forEach(function(t){r+=v(t)}),r=d(e.styles,r)}function _(t,e,n,r){var o=[];y(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach(function(e){o.push(b(t,e))});var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=h(e,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}function w(t,e,n,r){var o=[],i=a(t,n);return i.forEach(function(n,a){var c=_(t,e,n,r);0===a&&(c=g(c)),a===i.length-1&&(c=m(c)),o.push(c)}),o.join("")}function S(t,e,n,i,a){var s=[];if(c(t))s.push(h(e,t.entityRanges[0].key,void 0,a));else{var u=r(t.type);if(u){s.push("<".concat(u));var l=o(t.data);l&&s.push(' style="'.concat(l,'"')),i&&s.push(' dir = "auto"'),s.push(">"),s.push(w(t,e,n,a)),s.push("</".concat(u,">"))}}return s.push("\n"),s.join("")}function M(t){return"unordered-list-item"===t||"ordered-list-item"===t}function E(t,e,n,i,a){var c,s=[],u=[];return t.forEach(function(t){var l=!1;if(c?c.type!==t.type?(s.push("</".concat(r(c.type),">\n")),s.push("<".concat(r(t.type),">\n"))):c.depth===t.depth?u&&u.length>0&&(s.push(E(u,e,n,i,a)),u=[]):(l=!0,u.push(t)):s.push("<".concat(r(t.type),">\n")),!l){s.push("<li");var p=o(t.data);p&&s.push(' style="'.concat(p,'"')),i&&s.push(' dir = "auto"'),s.push(">"),s.push(w(t,e,n,a)),s.push("</li>\n"),c=t}}),u&&u.length>0&&s.push(E(u,e,n,i,a)),s.push("</".concat(r(c.type),">\n")),s.join("")}function j(t,e,n,r){var o=[];if(t){var i=t.blocks,a=t.entityMap;if(i&&i.length>0){var c=[];if(i.forEach(function(t){if(M(t.type))c.push(t);else{if(c.length>0){var i=E(c,a,e,r);o.push(i),c=[]}var s=S(t,a,e,n,r);o.push(s)}}),c.length>0){var s=E(c,a,e,n,r);o.push(s),c=[]}}}return o.join("")}return j}();var sb=o(cb.exports);const ub=t.forwardRef(({className:n,placeholder:r,initialValue:o,disabled:i,onChange:a},c)=>{const[u,l]=e(()=>{if(o){const{contentBlocks:t}=Th.convertFromHTML(o),e=Th.ContentState.createFromBlockArray(t);return Th.EditorState.createWithContent(e)}return Th.EditorState.createEmpty()}),[p,f]=e(!!o);return t.createElement("div",{className:s("gyramais-rich-input-controller",i&&"gyramais-rich-input-disabled")},r&&p&&t.createElement("div",{className:"gyramais-rich-input-placeholder"},r),t.createElement(ab.Editor,{wrapperClassName:s("gyramais-rich-input-wrapper",n),toolbarClassName:"gyramais-rich-input-toolbar",editorClassName:"gyramais-rich-input-editor",placeholder:r,editorState:u,onEditorStateChange:t=>{const e=sb(Th.convertToRaw(t.getCurrentContent())),n=""===t.getCurrentContent().getPlainText().trim();l(t),f(!n),a?.({target:{value:n?"":e}})},readOnly:i,toolbar:{options:["inline","list","link"],inline:{options:["bold","italic","underline","strikethrough","monospace"],bold:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEQSURBVHgBrVLBTcNAENxZJ7zpgKODlOASXIKBIDkvQBHkCR8egJD8QVhCiEsJVEA6iOnAdJA/8S3rgI0Vx1EUZaTT3qxu7mb3lmhLoNz0o6Ev6Fw3j8gsF1zY5C6rZ7ncOGIjJL4j2XfiqFpEPYabhqeXvbqws3w/czd4fbr9KnkYnRtgb8oezpQeNV5sg03iDIRUyJmVVtvQj0Z+UQKAdK1Vcd/Z8eCq4lrzb5T8fa1QEevZ2b8nMSQIGN6bssNWIbgb15tTIIyGYxV+aPRt8jhZ3EebgHnhwIN3UKU20hEFRczn8tlqldzcngxGFdXWaI1idBBi+/KQNoQ6IxmEJ/LXxRLFN2jmxj7fj2kX+AHsWWMUJhD+QgAAAABJRU5ErkJggg=="},italic:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADbSURBVHgBrZLLDcIwEETHBg7c6ABKoAR3kBKI+EihAKAHEBI3DggRKiAlhA5CB9ABVw724JAoQhA+RszB3vH6reT1Aj9KPB74g1FbVoRXdtkIfQiX8yiNq0+VarJJY1RmRMuuDZBJRlbP+Ebd4XjXDUabspz8wCpSRk5gP5gouzVYv+ydQCPokYzDxeLsBNp+K0lEr9KloB9MWiDa2mDvBEoYReAYrmaJE2j/zxP2fXijYnJ6w3HHWj+NCSq7JQIibwzD9XK6vQeLydHUJ4lKnNs4L3AzBvqEf+kKtR1HdL6iFlEAAAAASUVORK5CYII="},underline:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADUSURBVHgBxZJPCoJAFMbfPAXb5RG6QR6hTpIIhu0mMLfqsj+Qu4QovEF0k47QEVxm1LzMMkxEyhZ9m3l87/u9xzAD0FAsL3TOVSlRdteLGEfr+aEYMs2JJmRcblbTfu7hq3tSVALqMRna5ekkYdYreggN9U+wlcTZKVD9CoyC4A7GjJFWDgmEAQEcK8EsAMJPH8gzhjbPPWPkcCDS09IrZll5um7ZLjJ8CwkSXhQu/FrwAfMOQ6WbblJJOe+f14BK0LAcFz7QNpxlm+XcKP+MGvnwi26f1EDSrWGH9AAAAABJRU5ErkJggg=="},strikethrough:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFGSURBVHgBrVJNToNQEJ55/dv2BnKE3kBuIJ5AsJqAK0ytLGkXLgwm1YWRpDHgDXqD4gnEE4gnkKXV5o0Dae0LogvTb8G8mW8++Jh5AP8EVgvm8bAnmnjAhMZ0l4BSSXgTh5eZ2ifUpO8MDBY9EVGPCFKOCQEYAunFtAe62ttUE4LGBIjiKAwspTy2nOEcUfh8Tn4ITdftwqK0l0EFtIRTbNHOr/946Jy/ccgbS9qfToMU/gD2bS/aZFIjQH2VZfzWFAjzOmGTQCqeIONHvE6Z0RDBWJE587Naq3UwbVcT2J7w0UDR0u5vL16L+vc6iuEc2Z5eDklBHF4Xlh9KB/JDW9c3e3zvdCXSXCzafvWrJGC3jJ3P51qrpn3mCxQjBEyK5ZcNiDrfHl2SHMXh1bhWWMA68fYQpEGyGEw50YyFs+gueIRt4AuPhXoaih72ZAAAAABJRU5ErkJggg=="},monospace:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFZSURBVHgBtZG/TgJBEMZnDkRLfQNKOw5yRyJQwBtQ2nF3NmCFiWIJlgqJRyMQE9k3MD4BNBoTSTxLOyztsJQ/O85qIHCY69hkN5v59rffzrcAmxhWubx7VKoU/tNCQZA23uoBYDGeTOHry1N/WdeCIOK9nFKcCAvO8VktEFyGKDLJidu6RzTO+eF1x+9IFgh1moEQrjtSJdF2h354rcdEMnVIgLqGmNfN9NAbPL6pujd4HumG+QAQvuYzeyuOTum0zG5VmlJOEtnIZvZKqtuAqm8WVxxjxsEOomZhCD67rbobM1If7CyUs25kvjSkniQpRLtxgYtQiudRJQBRH/iZgNS8u6nXnFLlnuU8zxFDroIWPc4hdVu33ThJmOl3/r9WwsxkOd19gplNEj3RaVzOjdApVqr8cEvFjwTirwqWROqjhCjBxFap+kMM/64M4FJRSnRF56oJmxg/7mSh1Lq0p5gAAAAASUVORK5CYII="}},list:{options:["unordered","ordered"],unordered:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACrSURBVHgB1ZOxDcIwFETPPxbQJRuQERiBTUhBkTKIghK5RRQpEUUkJmAFNmCFjJDWUvw/ki2gtZI0eeVJd8WTDpiCoqoyDEQV5SknJW8I6uZ2MfvyuBWlzzFl1/NBY2U7sYtWwCFUJEq4jRkgIsH8+Ut0bJr7tfYSoXcxZQdrvhI7SWjtwyAxpg+SZYr5EySSPNHzY5hE4gyiNpzQy4ekUzDnMQM/iWPONJoPamRK1pYzPFEAAAAASUVORK5CYII=",className:void 0},ordered:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgBxVPLTcNAEH2zu1YicSAlhApMB4QKKCGAiOQbQgilBuCAT5AbTgfQgUtICS5hfTS2Z5gNIue1IiVPWu3Mk+b3dhbYE3SXPc4Ebt6Pm4cizz0GwnXoK0N2YtuTU/X9YvF0zs68xQQTI3fFKq9us+WucmuNN8JVTIKeuHbBYHRrJE0d7GL1HIJvcCjQtc5sLF0Jofr8eFljIBxs64XcmcgfsRXRmvuYYNLRDTBSi1JV5DuQQURRVWJOt+2g5wmBvtRK1d8cQcRsOTWgmTZVafUSA6F70ABmdEHMc/XLoSI6jOHlh+t/sk3CivI0JkF4OEdNkpJA/4GUgSzeXzd6XeJQ+AU1cnR8K1aPEgAAAABJRU5ErkJggg==",className:void 0}},link:{options:["link"],link:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFeSURBVHgBtVJBUsJAEJzZkugxT+AJ+gKLH/ADA16CF2NR4DFyRIsinIgXiS8RX4BP4Am5KUEzzixsXJWYg8WeNjPTPd29AfjnwaoBLwhcldUCIHUGSCnk+JIDDJJ4uKwk8PzrukJ6Ir5TjhHfXULwBJQfZidJFKWqEsxbSYbvh5OH+HZAlDWEUL05lzJXSsDgsQY764ZsMvUkjpaK1bB2708Cltgy4PNOt2n3SKwAaNKDHbLHAjZb2xe9GyIMPb/bSOLRXEKFFedANP9GYHs2NQHzupDgwzNgfpFNqLAeyAz+Cmwr2wbPpqPHAkzoSpCSRZGBUhBq1sJzv2mDLfNLGwxfUvuLtt8P7Vqr0zvV6niz9l1yNq9A4HIoqd2YTe+ejWz16syqCBJSGEgWpmF7zjG7KiNAM4wrZ4FbMiRMSVGgc9nl+SeBJvGDulK1kDce8ycnnSdw9D6x/8K9nE8sl+D6YesFxAAAAABJRU5ErkJggg=="}}}}))});export{ub as RichInput};
11
+ */!function(){var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"==i||"number"==i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"==i)for(var c in r)n.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,n){t.exports=e},function(t,e,n){function r(t){if(c[t])return c[t].exports;var e=c[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,c;t.exports=(o=n(3),i=n(5),c={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){n.r(e);var r=n(0),o=n(1);function i(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getStartKey(),o=e.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===o}).concat([[o,i.get(o)]])}function a(t){return i(t).toList()}function c(t){if(t)return a(t).get(0)}function s(t){if(t){var e=c(t),n=t.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach(function(t,n){t.get("key")===e.get("key")&&(r=n-1)}),-1<r)return n.get(r)}}function l(t){return t?t.getCurrentContent().getBlockMap().toList():new o.List}function u(t){var e=a(t);if(!e.some(function(t){return t.type!==e.get(0).type}))return e.get(0).type}function p(t){var e=r.RichUtils.tryToRemoveBlockStyle(t);return e?r.EditorState.push(t,e,"change-block-type"):t}function f(t){var e="",n=t.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(t);if(0<i.size){if(n.getIsBackward()){var c=r;r=o,o=c}for(var s=0;s<i.size;s+=1){var l=0===s?r:0,u=s===i.size-1?o:i.get(s).getText().length;e+=i.get(s).getText().slice(l,u)}}return e}function d(t){var e=t.getCurrentContent(),n=t.getSelection(),o=r.Modifier.removeRange(e,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(t,o,"insert-fragment")}function g(t){var e=r.Modifier.splitBlock(t.getCurrentContent(),t.getSelection());return p(r.EditorState.push(t,e,"split-block"))}function y(t){var e=t.getCurrentContent().getBlockMap().toList(),n=t.getSelection().merge({anchorKey:e.first().get("key"),anchorOffset:0,focusKey:e.last().get("key"),focusOffset:e.last().getLength()}),o=r.Modifier.removeRange(t.getCurrentContent(),n,"forward");return r.EditorState.push(t,o,"remove-range")}function h(t,e){var n=r.Modifier.setBlockData(t.getCurrentContent(),t.getSelection(),e);return r.EditorState.push(t,n,"change-block-data")}function m(t){var e=new o.Map({}),n=a(t);if(n&&0<n.size)for(var r=function(t){var r=n.get(t).getData();if(!r||0===r.size)return e=e.clear(),"break";if(0===t)e=r;else if(e.forEach(function(t,n){r.get(n)&&r.get(n)===t||(e=e.delete(n))}),0===e.size)return e=e.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return e}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function w(t){if(t){var e=t.getType();return"unordered-list-item"===e||"ordered-list-item"===e}return!1}function S(t,e,n){var o,a=t.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var c=t.getCurrentContent(),s=c.getBlockForKey(o),l=s.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;var u=c.getBlockBefore(o);if(!u)return t;if(u.getType()!==l)return t;var p=s.getDepth();if(1===e&&p===n)return t;var f,d,g,y,h,m,v,b=Math.min(u.getDepth()+1,n),w=(d=e,g=b,y=(f=t).getSelection(),m=(h=f.getCurrentContent()).getBlockMap(),v=i(f).map(function(t){var e=t.getDepth()+d;return e=Math.max(0,Math.min(e,g)),t.set("depth",e)}),m=m.merge(v),h.merge({blockMap:m,selectionBefore:y,selectionAfter:y}));return r.EditorState.push(t,w,"adjust-depth")}function M(t,e){var n;return 13===(n=e).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?t.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(t):d(t):function(t){var e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockForKey(r);if(!w(o)&&"unstyled"!==o.getType()&&o.getLength()===e.getStartOffset())return g(t);if(w(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return p(t);if(0<i)return S(t,-1,i)}}}(t)}function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t){var e=t.getSelection();if(e.isCollapsed()){var n={},r=t.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(t){n[t]=0<=r.indexOf(t)}),n}var o=e.getStartOffset(),i=e.getEndOffset(),c=a(t);if(0<c.size){var s=function(){for(var t={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},e=0;e<c.size;e+=1){var n=0===e?o:0,r=e===c.size-1?i:c.get(e).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=c.get(e).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){t[e]=t[e]&&r.get(e)===e})},s=n;s<r;s+=1)a(s)}return{v:t}}();if("object"===C(s))return s.v}return{}}function _(t){var e,n=t.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=c(t),a=r;a<o;a+=1){var s=i.getEntityAt(a);if(!s){e=void 0;break}if(a===r)e=s;else if(e!==s){e=void 0;break}}return e}function D(t,e){var n,r=c(t);return r.findEntityRanges(function(t){return t.get("entity")===e},function(t,e){n={start:t,end:e,text:r.get("text").slice(t,e)}}),n}function O(t,e,n){N[t]["".concat(t.toLowerCase(),"-").concat(n)]=k({},"".concat(e),n)}function A(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},N.color,{},N.bgcolor,{},N.fontSize,{},N.fontFamily,{CODE:N.CODE,SUPERSCRIPT:N.SUPERSCRIPT,SUBSCRIPT:N.SUBSCRIPT})}var N={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function x(t,e,n){var o=t.getSelection(),i=Object.keys(N[e]).reduce(function(t,e){return r.Modifier.removeInlineStyle(t,o,e)},t.getCurrentContent()),a=r.EditorState.push(t,i,"changeinline-style"),c=t.getCurrentInlineStyle();if(o.isCollapsed()&&(a=c.reduce(function(t,e){return r.RichUtils.toggleInlineStyle(t,e)},a)),"SUPERSCRIPT"===e||"SUBSCRIPT"==e)c.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var s="bgcolor"===e?"backgroundColor":e;c.has("".concat(s,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(e.toLowerCase(),"-").concat(n)),O(e,s,n))}return a}function L(t){t&&t.getCurrentContent().getBlockMap().map(function(t){return t.get("characterList")}).toList().flatten().forEach(function(t){t&&0===t.indexOf("color-")?O("color","color",t.substr(6)):t&&0===t.indexOf("bgcolor-")?O("bgcolor","backgroundColor",t.substr(8)):t&&0===t.indexOf("fontsize-")?O("fontSize","fontSize",+t.substr(9)):t&&0===t.indexOf("fontfamily-")&&O("fontFamily","fontFamily",t.substr(11))})}function I(t,e,n){var r=t.getInlineStyleAt(n).toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(r&&0<r.size)return r.get(0)}function T(t,e){if(t&&e&&0<e.length){var n=function(){var n=t.getSelection(),r={};if(n.isCollapsed())return e.forEach(function(e){r[e]=function(t,e){var n=t.getCurrentInlineStyle().toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(n&&0<n.size)return n.get(0)}(t,e)}),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),c=a(t);if(0<c.size){for(var s=function(t){var n=0===t?o:0,a=t===c.size-1?i:c.get(t).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var s=function(o){o===n?e.forEach(function(e){r[e]=I(c.get(t),e,o)}):e.forEach(function(e){r[e]&&r[e]!==I(c.get(t),e,o)&&(r[e]=void 0)})},l=n;l<a;l+=1)s(l)},l=0;l<c.size;l+=1)s(l);return{v:r}}}();if("object"===C(n))return n.v}return{}}function z(t){var e=t.getCurrentInlineStyle(),n=t.getCurrentContent();return e.forEach(function(e){n=r.Modifier.removeInlineStyle(n,t.getSelection(),e)}),r.EditorState.push(t,n,"change-inline-style")}n.d(e,"isListBlock",function(){return w}),n.d(e,"changeDepth",function(){return S}),n.d(e,"handleNewLine",function(){return M}),n.d(e,"getEntityRange",function(){return D}),n.d(e,"getCustomStyleMap",function(){return A}),n.d(e,"toggleCustomInlineStyle",function(){return x}),n.d(e,"getSelectionEntity",function(){return _}),n.d(e,"extractInlineStyle",function(){return L}),n.d(e,"removeAllInlineStyles",function(){return z}),n.d(e,"getSelectionInlineStyle",function(){return j}),n.d(e,"getSelectionCustomInlineStyle",function(){return T}),n.d(e,"getSelectedBlocksMap",function(){return i}),n.d(e,"getSelectedBlocksList",function(){return a}),n.d(e,"getSelectedBlock",function(){return c}),n.d(e,"getBlockBeforeSelectedBlock",function(){return s}),n.d(e,"getAllBlocks",function(){return l}),n.d(e,"getSelectedBlocksType",function(){return u}),n.d(e,"removeSelectedBlocksStyle",function(){return p}),n.d(e,"getSelectionText",function(){return f}),n.d(e,"addLineBreakRemovingSelection",function(){return d}),n.d(e,"insertNewUnstyledBlock",function(){return g}),n.d(e,"clearEditorContent",function(){return y}),n.d(e,"setBlockData",function(){return h}),n.d(e,"getSelectedBlocksMetadata",function(){return m}),n.d(e,"blockRenderMap",function(){return b})}],r.c=c,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e){t.exports=n},function(t,e,n){function r(t){if(c[t])return c[t].exports;var e=c[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,c;t.exports=(o=n(5),i=n(3),c={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){n.r(e);var r=n(1),o=n(0),i=function(t,e,n){var r,i=t.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},c=function(){return{text:"",inlines:[],entities:[],blocks:[]}},s=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new o.Map({})}]}},l=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new o.Map({})}]}},u=function(t){return{text:"\r ",inlines:[new o.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},p=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},f=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),d={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function g(t){return t.style.textAlign?new o.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new o.Map({"margin-left":t.style.marginLeft}):void 0}var y=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,r.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",function(){return b});var h=" ",m=new RegExp("&nbsp;","g"),v=!0;function b(t,e){var n,b,w=(n=e,(b=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(t.trim().replace(m,h)))?(v=!0,{chunk:function t(e,n,o,h,m,b){var w=e.nodeName.toLowerCase();if(b){var S=b(w,e);if(S){var M=r.Entity.__create(S.type,S.mutability,S.data||{});return{chunk:u(M)}}}if("#text"===w&&"\n"!==e.textContent)return i(e,n,m);if("br"===w)return{chunk:a()};if("img"===w&&e instanceof HTMLImageElement){var E={};E.src=e.getAttribute&&e.getAttribute("src")||e.src,E.alt=e.alt,E.height=e.style.height,E.width=e.style.width,e.style.float&&(E.alignment=e.style.float);var k=r.Entity.__create("IMAGE","MUTABLE",E);return{chunk:u(k)}}if("video"===w&&e instanceof HTMLVideoElement){var C={};C.src=e.getAttribute&&e.getAttribute("src")||e.src,C.alt=e.alt,C.height=e.style.height,C.width=e.style.width,e.style.float&&(C.alignment=e.style.float);var j=r.Entity.__create("VIDEO","MUTABLE",C);return{chunk:u(j)}}if("iframe"===w&&e instanceof HTMLIFrameElement){var _={};_.src=e.getAttribute&&e.getAttribute("src")||e.src,_.height=e.height,_.width=e.width;var D=r.Entity.__create("EMBEDDED_LINK","MUTABLE",_);return{chunk:u(D)}}var O,A=function(t,e){var n=f.filter(function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)}).keySeq().toSet().toArray();if(1===n.length)return n[0]}(w,h);A&&("ul"===w||"ol"===w?(h=w,o+=1):("unordered-list-item"!==A&&"ordered-list-item"!==A&&(h="",o=-1),v?(O=s(A,g(e)),v=!1):O=l(A,o,g(e)))),O=O||c(),n=function(t,e,n){var r,o=d[t];if(o)r=n.add(o).toOrderedSet();else if(e instanceof HTMLElement){var i=e;r=(r=n).withMutations(function(t){var e=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,c=i.style.textDecoration,s=i.style.fontStyle;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),r&&t.add("fontsize-".concat(r.replace(/px$/g,""))),o&&t.add("fontfamily-".concat(o)),"bold"===a&&t.add(d.strong),"underline"===c&&t.add(d.ins),"italic"===s&&t.add(d.em)}).toOrderedSet()}return r}(w,e,n);for(var N=e.firstChild;N;){var x=t(N,n,o,h,y(N)||m,b).chunk;O=p(O,x),N=N.nextSibling}return{chunk:O}}(b,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(w){var S=w.chunk,M=new o.OrderedMap({});S.entities&&S.entities.forEach(function(t){t&&(M=M.set(t,r.Entity.__get(t)))});var E=0;return{contentBlocks:S.text.split("\r").map(function(t,e){var n=E+t.length,i=S&&S.inlines.slice(E,n),a=S&&S.entities.slice(E,n),c=new o.List(i.map(function(t,e){var n={style:t,entity:null};return a[e]&&(n.entity=a[e]),r.CharacterMetadata.create(n)}));return E=n,new r.ContentBlock({key:Object(r.genKey)(),type:S&&S.blocks[e]&&S.blocks[e].type||"unstyled",depth:S&&S.blocks[e]&&S.blocks[e].depth,data:S&&S.blocks[e]&&S.blocks[e].data||new o.Map({}),text:t,characterList:c})}),entityMap:M}}return null}}],r.c=c,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e,n){function r(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function o(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===o(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=e&&":"===t[e-3]||3<=e&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(){return function(t,e){e.normalize(t)}}function f(t){var e=t.re=n(21)(t.__opts__),r=t.__tlds__.slice();function c(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push(l),r.push(e.src_xn),e.src_tlds=r.join("|"),e.email_fuzzy=RegExp(c(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(c(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(c(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(c(e.tpl_host_fuzzy_test),"i");var s=[];function u(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var r,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(t,e){var n=t.slice(e);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:u(e,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(e,n):a.normalize=p());"[object String]"!==o(n)?u(e,n):s.push(e)}}),s.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:p()};var f,d=Object.keys(t.__compiled__).filter(function(e){return 0<e.length&&t.__compiled__[e]}).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+d+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+d+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(f=t).__index__=-1,f.__text_cache__=""}function d(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function g(t,e){var n=new d(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function y(t,e){if(!(this instanceof y))return new y(t,e);var n;e||(n=t,Object.keys(n||{}).reduce(function(t,e){return t||c.hasOwnProperty(e)},!1)&&(e=t,t={})),this.__opts__=r({},c,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},f(this)}y.prototype.add=function(t,e){return this.__schemas__[t]=e,f(this),this},y.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},y.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,o,i,a,c,s;if(this.re.schema_test.test(t))for((c=this.re.schema_search).lastIndex=0;null!==(e=c.exec(t));)if(o=this.testSchemaAt(t,e[2],c.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(s=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||s<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=t.indexOf("@")&&null!==(r=t.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},y.prototype.pretest=function(t){return this.re.pretest.test(t)},y.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},y.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(g(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(g(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},y.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),f(this),this},y.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},y.prototype.onCompile=function(){},t.exports=y},function(t,e,n){t.exports=n(40)},function(t,e,n){},function(t,e,n){var r=n(11);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){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}var n={array:t.isRequired=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:o};return n.PropTypes=n}},function(t,e,n){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){t.exports=function(t){var e={};e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(t,e){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){n.r(e),n.d(e,"Editor",function(){return no});var r=n(1),o=n.n(r),i=n(0),a=n.n(i),c=n(3),s=n(4),l=n(2),u=n.n(l);function p(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}var f=p(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){e.callBacks.forEach(function(e){e(t)})},this.init=function(t){var n=document.getElementById(t);n&&n.addEventListener("click",function(){e.editorFlag=!0}),document&&(document.addEventListener("click",function(){e.editorFlag?e.editorFlag=!1:(e.closeAllModals(),e.suggestionCallback&&e.suggestionCallback())}),document.addEventListener("keydown",function(t){"Escape"===t.key&&e.closeAllModals()}))},this.onEditorClick=function(){e.closeModals(),!e.suggestionFlag&&e.suggestionCallback?e.suggestionCallback():e.suggestionFlag=!1},this.closeModals=function(t){e.closeAllModals(t)},this.registerCallBack=function(t){e.callBacks.push(t)},this.deregisterCallBack=function(t){e.callBacks=e.callBacks.filter(function(e){return e!==t})},this.setSuggestionCallback=function(t){e.suggestionCallback=t},this.removeSuggestionCallback=function(){e.suggestionCallback=void 0},this.onSuggestionClick=function(){e.suggestionFlag=!0}});function d(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}var g,y=d(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){e.editorFocused=!0},this.onInputMouseDown=function(){e.inputFocused=!0},this.isEditorBlur=function(t){return"INPUT"!==t.target.tagName&&"LABEL"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName||e.editorFocused?!("INPUT"===t.target.tagName&&"LABEL"===t.target.tagName&&"TEXTAREA"===t.target.tagName||e.inputFocused||(e.editorFocused=!1)):!(e.inputFocused=!1)},this.isEditorFocused=function(){return!e.inputFocused||(e.inputFocused=!1)},this.isToolbarFocused=function(){return!e.editorFocused||(e.editorFocused=!1)},this.isInputFocused=function(){return e.inputFocused}}),h=[],m={onKeyDown:function(t){h.forEach(function(e){e(t)})},registerCallBack:function(t){h.push(t)},deregisterCallBack:function(t){h=h.filter(function(e){return e!==t})}},v=function(){g=!0},b=function(){g=!1},w=function(){return g};function S(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function M(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function E(t,e){var n=!1;if(t)for(var r in t)if({}.hasOwnProperty.call(t,r)&&e===r){n=!0;break}return n}function k(t){t.stopPropagation()}function C(t){return t[t.options[0]].icon}function j(t,e){if(t&&void 0===e)return t;var n={};return M(t,function(t,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[t]=j(r,e[t]):n[t]=void 0!==e[t]?e[t]:r}),n}var _=n(6),D=n.n(_),O=n(5);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===A(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(9);var z=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L(t,e)}(i,r.Component);var t,e,n=I(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onClick=function(){var e=t.props,n=e.disabled,r=e.onClick,o=e.value;n||r(o)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.className,i=e.activeClassName,a=e.active,c=e.disabled,s=e.title;return o.a.createElement("div",{className:u()("rdw-option-wrapper",r,(N(t={},"rdw-option-active ".concat(i),a),N(t,"rdw-option-disabled",c),t)),onClick:this.onClick,"aria-selected":a,title:s},n)}}])&&x(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function F(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=U(t);if(e){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}z.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},z.defaultProps={activeClassName:""},n(12);var K=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(i,r.Component);var t,e,n=F(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={highlighted:-1},t.onChange=function(e){var n=t.props.onChange;n&&n(e),t.toggleExpansion()},t.setHighlighted=function(e){t.setState({highlighted:e})},t.toggleExpansion=function(){var e=t.props,n=e.doExpand,r=e.doCollapse;e.expanded?r():n()},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.expanded;t.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.expanded,r=e.children,i=e.className,a=e.optionWrapperClassName,c=e.ariaLabel,s=e.onExpandEvent,l=e.title,p=this.state.highlighted,f=r.slice(1,r.length);return o.a.createElement("div",{className:u()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":c||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:s,title:l},r[0],o.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",a),onClick:k},o.a.Children.map(f,function(e,n){return e&&o.a.cloneElement(e,{onSelect:t.onChange,highlighted:p===n,setHighlighted:t.setHighlighted,index:n})})):void 0)}}])&&B(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W(t,e){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=V(t);if(e){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}K.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var G=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(i,r.Component);var t,e,n=Z(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onClick=function(e){var n=t.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(e.stopPropagation(),o(i)))},t.setHighlighted=function(){var e=t.props;(0,e.setHighlighted)(e.index)},t.resetHighlighted=function(){(0,t.props.setHighlighted)(-1)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.active,i=e.disabled,a=e.highlighted,c=e.className,s=e.activeClassName,l=e.disabledClassName,p=e.highlightedClassName,f=e.title;return o.a.createElement("li",{className:u()("rdw-dropdownoption-default",c,(H(t={},"rdw-dropdownoption-active ".concat(s),r),H(t,"rdw-dropdownoption-highlighted ".concat(p),a),H(t,"rdw-dropdownoption-disabled ".concat(l),i),t)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:f},n)}}])&&Q(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=tt(t);if(e){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function tt(t){return(tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}G.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},G.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var et=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X(t,e)}(i,r.Component);var t,e,n=$(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState,r=t.onChange,i=t.translations;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map(function(t,a){return o.a.createElement(z,{key:a,value:t,onClick:r,className:u()(e[t].className),active:!0===n[t]||"MONOSPACE"===t&&n.CODE,title:e[t].title||i["components.controls.inline.".concat(t)]},o.a.createElement("img",{alt:"",src:e[t].icon}))}))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState,s=t.onChange,l=t.translations,p=e.className,f=e.dropdownClassName,d=e.title;return o.a.createElement(K,{className:u()("rdw-inline-dropdown",p),optionWrapperClassName:u()(f),onChange:s,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:d},o.a.createElement("img",{src:C(e),alt:""}),e.options.map(function(t,n){return o.a.createElement(G,{key:n,value:t,className:u()("rdw-inline-dropdownoption",e[t].className),active:!0===c[t]||"MONOSPACE"===t&&c.CODE,title:e[t].title||l["components.controls.inline.".concat(t)]},o.a.createElement("img",{src:e[t].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&J(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ot(t,e){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function it(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=at(t);if(e){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}et.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ct=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(i,r.Component);var t,e,n=it(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.toggleInlineStyle=function(t){var n="monospace"===t?"CODE":t.toUpperCase(),r=e.props,o=r.editorState,i=r.onChange,a=c.RichUtils.toggleInlineStyle(o,n);if("subscript"===t||"superscript"===t){var s="subscript"===t?"SUPERSCRIPT":"SUBSCRIPT",l=c.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),s);a=c.EditorState.push(a,l,"change-inline-style")}a&&i(a)},e.changeKeys=function(t){if(t){var e={};return M(t,function(t,n){e["CODE"===t?"monospace":t.toLowerCase()]=n}),e}},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={currentStyles:o?e.changeKeys(Object(s.getSelectionInlineStyle)(o)):{}},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentStyles:this.changeKeys(Object(s.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentStyles,c=e.component||et;return o.a.createElement(c,{config:e,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&rt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ut(t,e){return(ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ft(t);if(e){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===st(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ft(t){return(ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ct.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var dt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ut(t,e)}(i,r.Component);var t,e,n=pt(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).getBlockTypes=function(t){return[{label:"Normal",displayName:t["components.controls.blocktype.normal"]},{label:"H1",displayName:t["components.controls.blocktype.h1"]},{label:"H2",displayName:t["components.controls.blocktype.h2"]},{label:"H3",displayName:t["components.controls.blocktype.h3"]},{label:"H4",displayName:t["components.controls.blocktype.h4"]},{label:"H5",displayName:t["components.controls.blocktype.h5"]},{label:"H6",displayName:t["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:t["components.controls.blocktype.blockquote"]},{label:"Code",displayName:t["components.controls.blocktype.code"]}]},e.state={blockTypes:e.getBlockTypes(t.translations)},e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.translations;e!==t.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(t){var e=this.props,n=e.config.className,r=e.onChange,i=e.currentState.blockType;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},t.map(function(t,e){return o.a.createElement(z,{key:e,value:t.label,active:i===t.label,onClick:r},t.displayName)}))}},{key:"renderInDropdown",value:function(t){var e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.title,c=e.currentState.blockType,s=e.expanded,l=e.doExpand,p=e.onExpandEvent,f=e.doCollapse,d=e.onChange,g=e.translations,y=this.state.blockTypes.filter(function(t){return t.label===c}),h=y&&y[0]&&y[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(K,{className:u()("rdw-block-dropdown",r),optionWrapperClassName:u()(i),onChange:d,expanded:s,doExpand:l,doCollapse:f,onExpandEvent:p,title:a||g["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,h||g["components.controls.blocktype.blocktype"]),t.map(function(t,e){return o.a.createElement(G,{active:c===t.label,value:t.label,key:e},t.displayName)})))}},{key:"render",value:function(){var t=this.props.config,e=t.inDropdown,n=this.state.blockTypes.filter(function(e){var n=e.label;return-1<t.options.indexOf(n)});return e?this.renderInDropdown(n):this.renderFlat(n)}}])&&lt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();dt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var gt=dt;function yt(t){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mt(t,e){return(mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=bt(t);if(e){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===yt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mt(t,e)}(i,r.Component);var t,e,n=vt(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(t){var n=e.blocksTypes.find(function(e){return e.label===t}).style,r=e.props,o=r.editorState,i=r.onChange,a=c.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:!1,currentBlockType:r?Object(s.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlockType:Object(s.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentBlockType,c=e.component||gt,s=this.blocksTypes.find(function(t){return t.style===a});return o.a.createElement(c,{config:e,translations:n,currentState:{blockType:s&&s.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ht(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();wt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var St=wt;function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kt(t,e){return(kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=jt(t);if(e){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Mt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function jt(t){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(16);var _t=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kt(t,e)}(i,r.Component);var t,e,n=Ct(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.dropdownClassName,a=e.options,c=e.title,s=t.onChange,l=t.expanded,p=t.doCollapse,f=t.onExpandEvent,d=t.doExpand,g=t.translations,y=this.props.currentState.fontSize,h=this.state.defaultFontSize;return h=Number(h),y=y||a&&0<=a.indexOf(h)&&h,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(K,{className:u()("rdw-fontsize-dropdown",r),optionWrapperClassName:u()(i),onChange:s,expanded:l,doExpand:d,doCollapse:p,onExpandEvent:f,title:c||g["components.controls.fontsize.fontsize"]},y?o.a.createElement("span",null,y):o.a.createElement("img",{src:n,alt:""}),a.map(function(t,e){return o.a.createElement(G,{className:"rdw-fontsize-option",active:y===t,value:t,key:e},t)})))}}])&&Et(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function At(t,e){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=xt(t);if(e){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}_t.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Lt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&At(t,e)}(i,r.Component);var t,e,n=Nt(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleFontSize=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=Object(s.toggleCustomInlineStyle)(r,"fontSize",t);i&&o(i)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:void 0,currentFontSize:r?Object(s.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontSize:Object(s.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontSize,c=e.component||_t,s=a&&Number(a.substring(9));return o.a.createElement(c,{config:e,translations:n,currentState:{fontSize:s},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ot(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function It(t){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zt(t,e){return(zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Bt(t);if(e){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===It(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Lt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Pt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zt(t,e)}(i,r.Component);var t,e,n=Rt(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.options,c=n.title,s=e.translations,l=e.onChange,p=e.expanded,f=e.doCollapse,d=e.onExpandEvent,g=e.doExpand,y=this.props.currentState.fontFamily;return y=y||a&&t&&a.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&t,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(K,{className:u()("rdw-fontfamily-dropdown",r),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",i),onChange:l,expanded:p,doExpand:g,doCollapse:f,onExpandEvent:d,title:c||s["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},y||s["components.controls.fontfamily.fontfamily"]),a.map(function(t,e){return o.a.createElement(G,{active:y===t,value:t,key:e},t)})))}}])&&Tt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Pt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ft=Pt;function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yt(t,e){return(Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ht(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Qt(t);if(e){var o=Qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yt(t,e)}(i,r.Component);var t,e,n=Ht(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleFontFamily=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=Object(s.toggleCustomInlineStyle)(r,"fontFamily",t);i&&o(i)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:void 0,currentFontFamily:r?Object(s.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontFamily:Object(s.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,c=e.component||Ft,s=a&&a.substring(11);return o.a.createElement(c,{translations:n,config:e,currentState:{fontFamily:s},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Kt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Zt(t){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gt(t,e){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Jt(t);if(e){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Zt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Jt(t){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Wt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var Xt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gt(t,e)}(i,r.Component);var t,e,n=qt(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],t.toggleBlockType=function(e){(0,t.props.onChange)(e)},t.indent=function(){(0,t.props.onChange)("indent")},t.outdent=function(){(0,t.props.onChange)("outdent")},t}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState.listType,r=t.translations,i=t.indentDisabled,a=t.outdentDisabled,c=e.options,s=e.unordered,l=e.ordered,p=e.indent,f=e.outdent,d=e.className;return o.a.createElement("div",{className:u()("rdw-list-wrapper",d),"aria-label":"rdw-list-control"},0<=c.indexOf("unordered")&&o.a.createElement(z,{value:"unordered",onClick:this.toggleBlockType,className:u()(s.className),active:"unordered"===n,title:s.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:s.icon,alt:""})),0<=c.indexOf("ordered")&&o.a.createElement(z,{value:"ordered",onClick:this.toggleBlockType,className:u()(l.className),active:"ordered"===n,title:l.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:l.icon,alt:""})),0<=c.indexOf("indent")&&o.a.createElement(z,{onClick:this.indent,disabled:i,className:u()(p.className),title:p.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=c.indexOf("outdent")&&o.a.createElement(z,{onClick:this.outdent,disabled:a,className:u()(f.className),title:f.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:f.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this,e=this.props,n=e.config,r=e.expanded,i=e.doCollapse,a=e.doExpand,c=e.onExpandEvent,s=e.onChange,l=e.currentState.listType,p=e.translations,f=n.options,d=n.className,g=n.dropdownClassName,y=n.title;return o.a.createElement(K,{className:u()("rdw-list-dropdown",d),optionWrapperClassName:u()(g),onChange:s,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:c,"aria-label":"rdw-list-control",title:y||p["components.controls.list.list"]},o.a.createElement("img",{src:C(n),alt:""}),this.options.filter(function(t){return 0<=f.indexOf(t)}).map(function(e,r){return o.a.createElement(G,{key:r,value:e,disabled:t.props["".concat(e,"Disabled")],className:u()("rdw-list-dropdownOption",n[e].className),active:l===e,title:n[e].title||p["components.controls.list.".concat(e)]},o.a.createElement("img",{src:n[e].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Vt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function $t(t){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ne(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=re(t);if(e){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===$t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function re(t){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Xt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var oe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ee(t,e)}(i,r.Component);var t,e,n=ne(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){"unordered"===t?e.toggleBlockType("unordered-list-item"):"ordered"===t?e.toggleBlockType("ordered-list-item"):"indent"===t?e.adjustDepth(1):e.adjustDepth(-1)},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(t){var n=e.props,r=n.onChange,o=n.editorState,i=c.RichUtils.toggleBlockType(o,t);i&&r(i)},e.adjustDepth=function(t){var n=e.props,r=n.onChange,o=n.editorState,i=Object(s.changeDepth)(o,t,4);i&&r(i)},e.isIndentDisabled=function(){var t=e.props.editorState,n=e.state.currentBlock,r=Object(s.getBlockBeforeSelectedBlock)(t);return!r||!Object(s.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},e.isOutdentDisabled=function(){var t=e.state.currentBlock;return!t||!Object(s.isListBlock)(t)||t.get("depth")<=0};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={expanded:!1,currentBlock:o?Object(s.getSelectedBlock)(o):void 0},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlock:Object(s.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t,e=this.props,n=e.config,r=e.translations,i=this.state,a=i.expanded,c=i.currentBlock,s=n.component||Xt;"unordered-list-item"===c.get("type")?t="unordered":"ordered-list-item"===c.get("type")&&(t="ordered");var l=this.isIndentDisabled(),u=this.isOutdentDisabled();return o.a.createElement(s,{config:n,translations:r,currentState:{listType:t},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:l,outdentDisabled:u})}}])&&te(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ce(t,e){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function se(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=le(t);if(e){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ie(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function le(t){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}oe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var ue=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ce(t,e)}(i,r.Component);var t,e,n=se(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.left,i=e.center,a=e.right,c=e.justify,s=e.className,l=t.onChange,p=t.currentState.textAlignment,f=t.translations;return o.a.createElement("div",{className:u()("rdw-text-align-wrapper",s),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(z,{value:"left",className:u()(r.className),active:"left"===p,onClick:l,title:r.title||f["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(z,{value:"center",className:u()(i.className),active:"center"===p,onClick:l,title:i.title||f["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(z,{value:"right",className:u()(a.className),active:"right"===p,onClick:l,title:a.title||f["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(z,{value:"justify",className:u()(c.className),active:"justify"===p,onClick:l,title:c.title||f["components.controls.textalign.justify"]},o.a.createElement("img",{src:c.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState.textAlignment,s=t.onChange,l=t.translations,p=e.options,f=e.left,d=e.center,g=e.right,y=e.justify,h=e.className,m=e.dropdownClassName,v=e.title;return o.a.createElement(K,{className:u()("rdw-text-align-dropdown",h),optionWrapperClassName:u()(m),onChange:s,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:v||l["components.controls.textalign.textalign"]},o.a.createElement("img",{src:c&&e[c]&&e[c].icon||C(e),alt:""}),0<=p.indexOf("left")&&o.a.createElement(G,{value:"left",active:"left"===c,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||l["components.controls.textalign.left"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("center")&&o.a.createElement(G,{value:"center",active:"center"===c,className:u()("rdw-text-align-dropdownOption",d.className),title:d.title||l["components.controls.textalign.center"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("right")&&o.a.createElement(G,{value:"right",active:"right"===c,className:u()("rdw-text-align-dropdownOption",g.className),title:g.title||l["components.controls.textalign.right"]},o.a.createElement("img",{src:g.icon,alt:""})),0<=p.indexOf("justify")&&o.a.createElement(G,{value:"justify",active:"justify"===c,className:u()("rdw-text-align-dropdownOption",y.className),title:y.title||l["components.controls.textalign.justify"]},o.a.createElement("img",{src:y.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&ae(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function pe(t){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function de(t,e){return(de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ue.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var he=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&de(t,e)}(i,r.Component);var t,e,n=ge(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addBlockAlignmentData=function(t){var n=e.props,r=n.editorState;(0,n.onChange)(e.state.currentTextAlignment!==t?Object(s.setBlockData)(r,{"text-align":t}):Object(s.setBlockData)(r,{"text-align":void 0}))};var r=e.props.modalHandler;return e.state={currentTextAlignment:void 0},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e!==t.editorState&&this.setState({currentTextAlignment:Object(s.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,c=e.component||ue;return o.a.createElement(c,{config:e,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&fe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function me(t){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function be(t,e){return(be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function we(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Se(t);if(e){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}he.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var Me=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(i,r.Component);var t,e,n=we(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return(t=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},t.onChange=function(e){(0,t.props.onChange)(t.state.currentStyle,e)},t.setCurrentStyleColor=function(){t.setState({currentStyle:"color"})},t.setCurrentStyleBgcolor=function(){t.setState({currentStyle:"bgcolor"})},t.renderModal=function(){var e=t.props,n=e.config,r=n.popupClassName,i=n.colors,a=e.currentState,c=a.color,s=a.bgColor,l=e.translations,p=t.state.currentStyle,f="color"===p?c:s;return o.a.createElement("div",{className:u()("rdw-colorpicker-modal",r),onClick:k},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===p}),onClick:t.setCurrentStyleColor},l["components.controls.colorpicker.text"]),o.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===p}),onClick:t.setCurrentStyleBgcolor},l["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map(function(e,n){return o.a.createElement(z,{value:e,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:f===e,onClick:t.onChange},o.a.createElement("span",{style:{backgroundColor:e},className:"rdw-colorpicker-cube"}))})))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){this.props.expanded&&!t.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||s["components.controls.colorpicker.colorpicker"]},o.a.createElement(z,{onClick:c,className:u()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&ve(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Me.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ee=Me;function ke(t){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function je(t,e){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _e(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=De(t);if(e){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ke(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function De(t){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&je(t,e)}(i,r.Component);var t,e,n=_e(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleColor=function(t,n){var r=e.props,o=r.editorState,i=r.onChange,a=Object(s.toggleCustomInlineStyle)(o,t,n);a&&i(a),e.doCollapse()};var r=t.editorState,o=t.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(s.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(s.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),e.state=a,o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentColor:Object(s.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(s.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,c=r.expanded,s=e.component||Ee,l=i&&i.substring(6),u=a&&a.substring(8);return o.a.createElement(s,{config:e,translations:n,onChange:this.toggleColor,expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:l,bgColor:u}})}}])&&Ce(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Oe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Ae=Oe,Ne=n(7),xe=n.n(Ne);function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Te(t,e){return(Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Re(t);if(e){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Le(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Re(t){return(Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(26);var Be=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Te(t,e)}(i,r.Component);var t,e,n=ze(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:t.props.config.defaultTargetOption},t.removeLink=function(){(0,t.props.onChange)("unlink")},t.addLink=function(){var e=t.props.onChange,n=t.state;e("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t.updateTargetOption=function(e){t.setState({linkTargetOption:e.target.checked?"_blank":"_self"})},t.hideModal=function(){t.setState({showModal:!1})},t.signalExpandShowModal=function(){var e=t.props,n=e.onExpandEvent,r=e.currentState,o=r.link,i=r.selectionText,a=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},t.forceExpandAndShowModal=function(){var e=t.props,n=e.doExpand,r=e.currentState,o=r.link,i=r.selectionText,a=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,r=t.translations,i=this.state,a=i.linkTitle,c=i.linkTarget,s=i.linkTargetOption;return o.a.createElement("div",{className:u()("rdw-link-modal",e),onClick:k},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:c}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===s,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!c||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.link,i=e.unlink,a=e.className,c=t.currentState,s=t.expanded,l=t.translations,p=this.state.showModal;return o.a.createElement("div",{className:u()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(z,{value:"unordered-list-item",className:u()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:r.title||l["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(z,{disabled:!c.link,value:"ordered-list-item",className:u()(i.className),onClick:this.removeLink,title:i.title||l["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),s&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,r=t.doCollapse,i=t.doExpand,a=t.onChange,c=t.config,s=t.currentState,l=t.translations,p=c.options,f=c.link,d=c.unlink,g=c.className,y=c.dropdownClassName,h=c.title,m=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:h},o.a.createElement(K,{className:u()("rdw-link-dropdown",g),optionWrapperClassName:u()(y),onChange:a,expanded:e&&!m,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:C(c),alt:""}),0<=p.indexOf("link")&&o.a.createElement(G,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",f.className),title:f.title||l["components.controls.link.link"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("unlink")&&o.a.createElement(G,{onClick:this.removeLink,disabled:!s.link,className:u()("rdw-link-dropdownoption",d.className),title:d.title||l["components.controls.link.unlink"]},o.a.createElement("img",{src:d.icon,alt:""}))),e&&m?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ie(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Be.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var Pe=Be;function Fe(t){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ke(t,e){return(Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=He(t);if(e){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Fe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function He(t){return(He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function We(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach(function(e){Ze(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ve(t){var e=Ge.match(t.target);return We(We({},t),{},{target:e&&e[0]&&e[0].url||t.target})}var Ge=xe()(),qe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ke(t,e)}(i,r.Component);var t,e,n=Ye(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t,n,r,o){var i=e.props.config.linkCallback;if("link"===t){var a=(i||Ve)({title:n,target:r,targetOption:o});e.addLink(a.title,a.target,a.targetOption)}else e.removeLink()},e.getCurrentValues=function(){var t=e.props.editorState,n=e.state.currentEntity,r=t.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(s.getEntityRange)(t,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(s.getSelectionText)(t),o},e.doExpand=function(){e.setState({expanded:!0})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doCollapse=function(){e.setState({expanded:!1})},e.removeLink=function(){var t=e.props,n=t.editorState,r=t.onChange,o=e.state.currentEntity,i=n.getSelection();if(o){var a=Object(s.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(c.RichUtils.toggleLink(n,i,null))}},e.addLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,l=e.state.currentEntity,u=i.getSelection();if(l){var p=Object(s.getEntityRange)(i,l);u=u.getIsBackward()?u.merge({anchorOffset:p.end,focusOffset:p.start}):u.merge({anchorOffset:p.start,focusOffset:p.end})}var f=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),d=c.Modifier.replaceText(i.getCurrentContent(),u,"".concat(t),i.getCurrentInlineStyle(),f),g=c.EditorState.push(i,d,"insert-characters");u=g.getSelection().merge({anchorOffset:u.get("anchorOffset")+t.length,focusOffset:u.get("anchorOffset")+t.length}),g=c.EditorState.acceptSelection(g,u),d=c.Modifier.insertText(g.getCurrentContent(),u," ",g.getCurrentInlineStyle(),void 0),a(c.EditorState.push(g,d,"insert-characters")),e.doCollapse()};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(s.getSelectionEntity)(o):void 0},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentEntity:Object(s.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,c=i.selectionText,s=e.component||Pe;return o.a.createElement(s,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:c},onChange:this.onChange})}}])&&Ue(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();qe.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Je=qe;function Xe(t){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tn(t,e){return(tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function en(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=nn(t);if(e){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Xe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function nn(t){return(nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(27);var rn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tn(t,e)}(i,r.Component);var t,e,n=en(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width},t.onChange=function(){var e=t.props.onChange,n=t.state;e(n.embeddedLink,n.height,n.width)},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.expanded,r=e.config;if(!n&&t.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var t=this.state,e=t.embeddedLink,n=t.height,r=t.width,i=this.props,a=i.config.popupClassName,c=i.doCollapse,s=i.translations;return o.a.createElement("div",{className:u()("rdw-embedded-modal",a),onClick:k},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},s["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:s["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!e||!n||!r},s["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:c},s["generic.cancel"])))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(z,{className:u()(r),value:"unordered-list-item",onClick:c,title:i||s["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&$e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();rn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var on=rn;function an(t){return(an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sn(t,e){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ln(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=un(t);if(e){var o=un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===an(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function un(t){return(un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sn(t,e)}(i,r.Component);var t,e,n=ln(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addEmbeddedLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,s=o.config.embedCallback,l=s?s(e):e,u=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:l,height:n,width:r}).getLastCreatedEntityKey();a(c.AtomicBlockUtils.insertAtomicBlock(i,u," ")),t.doCollapse()},t}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||on;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();pn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var fn=pn;function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yn(t,e){return(yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function hn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=mn(t);if(e){var o=mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===dn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function mn(t){return(mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(28);var vn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yn(t,e)}(i,r.Component);var t,e,n=hn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onChange=function(e){(0,t.props.onChange)(e.target.innerHTML)},t}return t=i,(e=[{key:"renderEmojiModal",value:function(){var t=this,e=this.props.config,n=e.popupClassName,r=e.emojis;return o.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:k},r.map(function(e,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:t.onChange},e)}))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||s["components.controls.emoji.emoji"]},o.a.createElement(z,{className:u()(r),value:"unordered-list-item",onClick:c},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&gn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();vn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var bn=vn;function wn(t){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mn(t,e){return(Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function En(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=kn(t);if(e){var o=kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===wn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function kn(t){return(kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mn(t,e)}(i,r.Component);var t,e,n=En(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addEmoji=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=c.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),e,r.getCurrentInlineStyle());o(c.EditorState.push(r,i,"insert-characters")),t.doCollapse()},t}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||bn;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Sn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function jn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function _n(t){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function On(t,e){return(On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function An(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Nn(t);if(e){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===_n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Cn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var xn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&On(t,e)}(i,r.Component);var t,e,n=An(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:t.props.config.uploadEnabled&&!!t.props.config.uploadCallback,showImageLoading:!1,height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width,alt:""},t.onDragEnter=function(e){t.stopPropagation(e),t.setState({dragEnter:!0})},t.onImageDrop=function(e){var n,r;e.preventDefault(),e.stopPropagation(),t.setState({dragEnter:!1}),r=e.dataTransfer.items?(n=e.dataTransfer.items,!0):(n=e.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];t.uploadImage(i)}},t.showImageUploadOption=function(){t.setState({uploadHighlighted:!0})},t.addImageFromState=function(){var e=t.state,n=e.imgSrc,r=e.alt,o=t.state,i=o.height,a=o.width,c=t.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),c(n,i,a,r)},t.showImageURLOption=function(){t.setState({uploadHighlighted:!1})},t.toggleShowImageLoading=function(){var e=!t.state.showImageLoading;t.setState({showImageLoading:e})},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t.selectImage=function(e){e.target.files&&0<e.target.files.length&&t.uploadImage(e.target.files[0])},t.uploadImage=function(e){t.toggleShowImageLoading(),(0,t.props.config.uploadCallback)(e).then(function(e){var n=e.data;t.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),t.fileUpload=!1}).catch(function(){t.setState({showImageLoading:!1,dragEnter:!1})})},t.fileUploadClick=function(e){t.fileUpload=!0,e.stopPropagation()},t.stopPropagation=function(e){t.fileUpload?t.fileUpload=!1:(e.preventDefault(),e.stopPropagation())},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.config;t.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback,showImageLoading:!1,height:e.defaultSize.height,width:e.defaultSize.width,alt:""}):e.uploadCallback===t.config.uploadCallback&&e.uploadEnabled===t.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var t=this.state,e=t.imgSrc,n=t.uploadHighlighted,r=t.showImageLoading,i=t.dragEnter,a=t.height,c=t.width,s=t.alt,l=this.props,p=l.config,f=p.popupClassName,d=p.uploadCallback,g=p.uploadEnabled,y=p.urlEnabled,h=p.previewImage,m=p.inputAccept,v=p.alt,b=l.doCollapse,w=l.translations;return o.a.createElement("div",{className:u()("rdw-image-modal",f),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},g&&d&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},w["components.controls.image.fileUpload"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),y&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},w["components.controls.image.byURL"],o.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},h&&e?o.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||w["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:m,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:w["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:e}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!e||!a||!c||v.mandatory&&!s},w["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},w["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(jn,null)):void 0)}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,c=t.onExpandEvent,s=t.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(z,{className:u()(r),value:"unordered-list-item",onClick:c,title:i||s["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&Dn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();xn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ln=xn;function In(t){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zn(t,e){return(zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Bn(t);if(e){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===In(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Bn(t){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zn(t,e)}(i,r.Component);var t,e,n=Rn(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.addImage=function(t,n,r,o){var i=e.props,a=i.editorState,s=i.onChange,l={src:t,height:n,width:r};i.config.alt.present&&(l.alt=o);var u=a.getCurrentContent().createEntity("IMAGE","MUTABLE",l).getLastCreatedEntityKey();s(c.AtomicBlockUtils.insertAtomicBlock(a,u," ")),e.doCollapse()};var r=e.props.modalHandler;return e.state={expanded:!1},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||Ln;return o.a.createElement(i,{config:e,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Tn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Fn(t){var e=t.config,n=t.onChange,r=t.translations,i=e.icon,a=e.className,c=e.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(z,{className:u()(a),onClick:n,title:c||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}Pn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Un=Pn;n(31),Fn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var Kn=Fn;function Yn(t){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qn(t,e){return(Qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Wn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Zn(t);if(e){var o=Zn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Yn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Zn(t){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qn(t,e)}(i,r.Component);var t,e,n=Wn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.removeInlineStyles=function(){var e=t.props,n=e.editorState;(0,e.onChange)(t.removeAllInlineStyles(n))},t.removeAllInlineStyles=function(t){var e=t.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(n){e=c.Modifier.removeInlineStyle(e,t.getSelection(),n)}),M(Object(s.getSelectionCustomInlineStyle)(t,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(n,r){r&&(e=c.Modifier.removeInlineStyle(e,t.getSelection(),r))}),c.EditorState.push(t,e,"change-inline-style")},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||Kn;return o.a.createElement(i,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Hn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Gn(t){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jn(t,e){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Xn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=$n(t);if(e){var o=$n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Gn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function $n(t){return($n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Vn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var tr=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jn(t,e)}(i,r.Component);var t,e,n=Xn(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onChange=function(e){(0,t.props.onChange)(e)},t}return t=i,(e=[{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,c=t.currentState,s=c.undoDisabled,l=c.redoDisabled,p=t.translations,f=e.options,d=e.undo,g=e.redo,y=e.className,h=e.dropdownClassName,m=e.title;return o.a.createElement(K,{className:u()("rdw-history-dropdown",y),optionWrapperClassName:u()(h),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:m||p["components.controls.history.history"]},o.a.createElement("img",{src:C(e),alt:""}),0<=f.indexOf("undo")&&o.a.createElement(G,{value:"undo",onClick:this.onChange,disabled:s,className:u()("rdw-history-dropdownoption",d.className),title:d.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("redo")&&o.a.createElement(G,{value:"redo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",g.className),title:g.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:g.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.undo,i=e.redo,a=e.className,c=t.currentState,s=c.undoDisabled,l=c.redoDisabled,p=t.translations;return o.a.createElement("div",{className:u()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(z,{value:"undo",onClick:this.onChange,className:u()(r.className),disabled:s,title:r.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(z,{value:"redo",onClick:this.onChange,className:u()(i.className),disabled:l,title:i.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&qn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function er(t){return(er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rr(t,e){return(rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function or(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=ir(t);if(e){var o=ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===er(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function ir(t){return(ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}tr.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ar=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rr(t,e)}(i,r.Component);var t,e,n=or(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=c.EditorState[t](r);i&&o(i)},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var r={expanded:!(e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=t.editorState,a=t.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),e.state=r,a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&t.editorState!==e&&this.setState({undoDisabled:0===e.getUndoStack().size,redoDisabled:0===e.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,c=r.expanded,s=e.component||tr;return o.a.createElement(s,{config:e,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:c,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&nr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();ar.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var cr={inline:ct,blockType:St,fontSize:Lt,fontFamily:Wt,list:oe,textAlign:he,colorPicker:Ae,link:Je,embedded:fn,emoji:Cn,image:Un,remove:Vn,history:ar},sr=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,lr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function ur(t){return String(t).replace(sr,"").match(lr)?t:"#"}function pr(t){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dr(t,e){return(dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=yr(t);if(e){var o=yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===pr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function yr(t){return(yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hr(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()},e)}function mr(t){var e,n=t.showOpenOptionOnHover;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dr(t,e)}(a,r.Component);var t,e,i=gr(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},t.openLink=function(){var e=t.props,n=e.entityKey,r=e.contentState.getEntity(n).getData().url,o=window.open(ur(r),"blank");o&&o.focus()},t.toggleShowPopOver=function(){var e=!t.state.showPopOver;t.setState({showPopOver:e})},t}return t=a,(e=[{key:"render",value:function(){var t=this.props,e=t.children,r=t.entityKey,i=t.contentState.getEntity(r).getData(),a=i.url,c=i.targetOption,s=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:ur(a),target:c},e),s&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&fr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},e}function vr(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}n(33),n(34);var br=vr(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getMentionComponent=function(){function t(t){var n=t.entityKey,r=t.children,i=t.contentState.getEntity(n).getData(),a=i.url,c=i.value;return o.a.createElement("a",{href:a||c,className:u()("rdw-mention-link",e)},r)}var e=n.className;return t.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},t},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=e});br.prototype.findMentionEntities=function(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()},e)};var wr=br;function Sr(t){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mr(t,e){return(Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Er(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=kr(t);if(e){var o=kr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Sr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function kr(t){return(kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jr(t,e,n){return e&&Cr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(35);var Dr=jr(function t(e){var n=this;_r(this,t),this.findSuggestionEntities=function(t,e){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,c=(0,r.getEditorState)().getSelection();if(c.get("anchorKey")===t.get("key")&&c.get("anchorKey")===c.get("focusKey")){var s=t.getText(),l=(s=s.substr(0,c.get("focusOffset")===s.length-1?s.length:c.get("focusOffset")+1)).lastIndexOf(o+i),u=o+i;if((void 0===l||l<0)&&s[0]===i&&(l=0,u=i),0<=l){var p=s.substr(l+u.length,s.length);a().some(function(t){return!!t.value&&(n.config.caseSensitive?0<=t.value.indexOf(p):0<=t.value.toLowerCase().indexOf(p&&p.toLowerCase()))})&&e(0===l?0:l+1,s.length)}}}},this.getSuggestionComponent=function(){var t,e=this.config;return(t=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mr(t,e)}(n,r.Component);var t=Er(n);function n(){var r;_r(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.call.apply(t,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(t){var e=r.state.activeOption,n={};"ArrowDown"===t.key?(t.preventDefault(),e===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=e+1):"ArrowUp"===t.key?n.activeOption=e<=0?r.filteredSuggestions.length-1:e-1:"Escape"===t.key?(n.showSuggestions=!1,b()):"Enter"===t.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(t){var e=t.target.getAttribute("data-index");r.setState({activeOption:e})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(t){r.suggestion=t},r.setDropdownReference=function(t){r.dropdown=t},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(t){var n=t.children[0].props.text.substr(1),o=e.getSuggestions();r.filteredSuggestions=o&&o.filter(function(t){return!n||0===n.length||(e.caseSensitive?0<=t.value.indexOf(n):0<=t.value.toLowerCase().indexOf(n&&n.toLowerCase()))})},r.addMention=function(){var t=r.state.activeOption,n=e.getEditorState(),o=e.onChange,i=e.separator,a=e.trigger,l=r.filteredSuggestions[t];l&&function(t,e,n,r,o){var i=o.value,a=o.url,l=t.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),u=Object(s.getSelectedBlock)(t).getText(),p=t.getSelection().focusOffset,f=(u.lastIndexOf(n+r,p)||0)+1,d=!1;u.length===f+1&&(p=u.length)," "===u[p]&&(d=!0);var g=t.getSelection().merge({anchorOffset:f,focusOffset:p}),y=c.EditorState.acceptSelection(t,g),h=c.Modifier.replaceText(y.getCurrentContent(),g,"".concat(r).concat(i),y.getCurrentInlineStyle(),l);y=c.EditorState.push(y,h,"insert-characters"),d||(g=y.getSelection().merge({anchorOffset:f+i.length+r.length,focusOffset:f+i.length+r.length}),y=c.EditorState.acceptSelection(y,g),h=c.Modifier.insertText(y.getCurrentContent(),g," ",y.getCurrentInlineStyle(),void 0)),e(c.EditorState.push(y,h,"insert-characters"))}(n,o,i,a,l)},r}return jr(n,[{key:"componentDidMount",value:function(){var t,n,r,o=e.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:t=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:t,right:n,bottom:r}}),m.registerCallBack(this.onEditorKeyDown),v(),e.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(t){this.props.children!==t.children&&(this.filterSuggestions(t),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){m.deregisterCallBack(this.onEditorKeyDown),b(),e.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var t=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,c=e.dropdownClassName,s=e.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:e.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),a&&o.a.createElement("span",{className:u()("rdw-suggestion-dropdown",c),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map(function(e,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:t.addMention,"data-index":n,onMouseEnter:t.onOptionMouseEnter,onMouseLeave:t.onOptionMouseLeave,className:u()("rdw-suggestion-option",s,{"rdw-suggestion-option-active":n===i})},e.text)})))}}]),n}()).propTypes={children:a.a.array},t}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=e.separator,l=e.trigger,p=e.getSuggestions,f=e.onChange,d=e.getEditorState,g=e.getWrapperRef,y=e.caseSensitive,h=e.dropdownClassName,w=e.optionClassName,S=e.modalHandler;this.config={separator:i,trigger:l,getSuggestions:p,onChange:f,getEditorState:d,getWrapperRef:g,caseSensitive:y,dropdownClassName:h,optionClassName:w,modalHandler:S}}),Or=function(t){return[new wr(t.mentionClassName).getMentionDecorator(),new Dr(t).getSuggestionDecorator()]};function Ar(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Nr(t){var e=t.block,n=t.contentState.getEntity(e.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var xr=Ar(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getHashtagComponent=function(){function t(t){var n=t.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:u()("rdw-hashtag-link",e)},n)}var e=n.className;return t.propTypes={children:a.a.object},t},this.findHashtagEntities=function(t,e){for(var r=t.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,c=r.substr(0,a);c&&0<c.length&&(e(i,i+c.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=e.className,this.hashCharacter=e.hashCharacter||"#",this.separator=e.separator||" "}),Lr=function(t){return new xr(t).getHashtagDecorator()};Nr.propTypes={block:a.a.object,contentState:a.a.object};var Ir=Nr;function Tr(t){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rr(t,e){return(Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Br(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=Pr(t);if(e){var o=Pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Tr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function Pr(t){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(37);var Fr=function(t){var e;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rr(t,e)}(a,r.Component);var e,n,i=Br(a);function a(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).state={hovered:!1},e.setEntityAlignmentLeft=function(){e.setEntityAlignment("left")},e.setEntityAlignmentRight=function(){e.setEntityAlignment("right")},e.setEntityAlignmentCenter=function(){e.setEntityAlignment("none")},e.setEntityAlignment=function(n){var r=e.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),t.onChange(c.EditorState.push(t.getEditorState(),i,"change-block-data")),e.setState({dummy:!0})},e.toggleHovered=function(){var t=!e.state.hovered;e.setState({hovered:t})},e}return e=a,(n=[{key:"renderAlignmentOptions",value:function(t){return o.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===t})},o.a.createElement(z,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(z,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(z,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var e=this.props,n=e.block,r=e.contentState,i=this.state.hovered,a=t.isReadOnly,c=t.isImageAlignmentEnabled,s=r.getEntity(n.getEntityAt(0)).getData(),l=s.src,p=s.alignment,f=s.height,d=s.width,g=s.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===p,"rdw-image-right":"right"===p,"rdw-image-center":!p||"none"===p})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:l,alt:g,style:{height:f,width:d}}),!a()&&i&&c()?this.renderAlignmentOptions(p):void 0))}}])&&zr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},e},Ur=function(t,e){return function(n){if("function"==typeof e){var r=e(n,t,t.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=t.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Fr(t),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Ir,editable:!1}}}},Kr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Yr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function Hr(t){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qr(){return(Qr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(n),!0).forEach(function(e){Vr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Vr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gr(t){return function(t){if(Array.isArray(t))return qr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Jr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xr(t,e){return(Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=to(t);if(e){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Hr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(38),n(39);var eo=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xr(t,e)}(i,r.Component);var t,e,n=$r(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onEditorBlur=function(){e.setState({editorFocused:!1})},e.onEditorFocus=function(t){var n=e.props.onFocus;e.setState({editorFocused:!0});var r=e.focusHandler.isEditorFocused();n&&r&&n(t)},e.onEditorMouseDown=function(){e.focusHandler.onEditorMouseDown()},e.keyBindingFn=function(t){if("Tab"!==t.key)return"ArrowUp"!==t.key&&"ArrowDown"!==t.key||w()&&t.preventDefault(),Object(c.getDefaultKeyBinding)(t);var n=e.props.onTab;if(!n||!n(t)){var r=Object(s.changeDepth)(e.state.editorState,t.shiftKey?-1:1,4);r&&r!==e.state.editorState&&(e.onChange(r),t.preventDefault())}return null},e.onToolbarFocus=function(t){var n=e.props.onFocus;n&&e.focusHandler.isToolbarFocused()&&n(t)},e.onWrapperBlur=function(t){var n=e.props.onBlur;n&&e.focusHandler.isEditorBlur(t)&&n(t,e.getEditorState())},e.onChange=function(t){var n=e.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(s.getSelectedBlocksType)(t)&&t.getSelection().isCollapsed||(o&&o(t,e.props.wrapperId),E(e.props,"editorState")?e.afterChange(t):e.setState({editorState:t},e.afterChange(t)))},e.setWrapperReference=function(t){e.wrapper=t},e.setEditorReference=function(t){e.props.editorRef&&e.props.editorRef(t),e.editor=t},e.getCompositeDecorator=function(t){var n=[].concat(Gr(e.props.customDecorators),[{strategy:hr,component:mr({showOpenOptionOnHover:t.link.showOpenOptionOnHover})}]);return e.props.mention&&n.push.apply(n,Gr(Or(Zr(Zr({},e.props.mention),{},{onChange:e.onChange,getEditorState:e.getEditorState,getSuggestions:e.getSuggestions,getWrapperRef:e.getWrapperRef,modalHandler:e.modalHandler})))),e.props.hashtag&&n.push(Lr(e.props.hashtag)),new c.CompositeDecorator(n)},e.getWrapperRef=function(){return e.wrapper},e.getEditorState=function(){return e.state?e.state.editorState:null},e.getSuggestions=function(){return e.props.mention&&e.props.mention.suggestions},e.afterChange=function(t){setTimeout(function(){var n=e.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(c.convertToRaw)(t.getCurrentContent())),o&&o(Object(c.convertToRaw)(t.getCurrentContent()))})},e.isReadOnly=function(){return e.props.readOnly},e.isImageAlignmentEnabled=function(){return e.state.toolbar.image.alignmentEnabled},e.createEditorState=function(t){var n;if(E(e.props,"editorState"))e.props.editorState&&(n=c.EditorState.set(e.props.editorState,{decorator:t}));else if(E(e.props,"defaultEditorState"))e.props.defaultEditorState&&(n=c.EditorState.set(e.props.defaultEditorState,{decorator:t}));else if(E(e.props,"contentState")){if(e.props.contentState){var r=Object(c.convertFromRaw)(e.props.contentState);n=c.EditorState.createWithContent(r,t),n=c.EditorState.moveSelectionToEnd(n)}}else if(E(e.props,"defaultContentState")||E(e.props,"initialContentState")){var o=e.props.defaultContentState||e.props.initialContentState;o&&(o=Object(c.convertFromRaw)(o),n=c.EditorState.createWithContent(o,t),n=c.EditorState.moveSelectionToEnd(n))}return n||c.EditorState.createEmpty(t)},e.filterEditorProps=function(t){return e=t,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(e).filter(function(t){return n.indexOf(t)<0}),o={},r&&0<r.length&&r.forEach(function(t){o[t]=e[t]}),o;var e,n,r,o},e.getStyleMap=function(t){return Zr(Zr({},Object(s.getCustomStyleMap)()),t.customStyleMap)},e.changeEditorState=function(t){var n=Object(c.convertFromRaw)(t),r=e.state.editorState;return r=c.EditorState.push(r,n,"insert-characters"),c.EditorState.moveSelectionToEnd(r)},e.focusEditor=function(){setTimeout(function(){e.editor.focus()})},e.handleKeyCommand=function(t){var n=e.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(t)){var i=c.RichUtils.handleKeyCommand(r,t);if(i)return e.onChange(i),!0}return!1},e.handleReturn=function(t){if(w())return!0;var n=e.state.editorState,r=Object(s.handleNewLine)(n,t);return!!r&&(e.onChange(r),!0)},e.handlePastedTextFn=function(t,n){var r=e.state.editorState,o=e.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(t,n,r,e.onChange):!a&&function(t,e,n,r){var o=Object(s.getSelectedBlock)(n);if(o&&"code"===o.type){var i=c.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),t,n.getCurrentInlineStyle());return r(c.EditorState.push(n,i,"insert-characters")),!0}if(e){var a=D()(e),l=n.getCurrentContent();return a.entityMap.forEach(function(t,e){l=l.mergeEntityData(e,t)}),l=c.Modifier.replaceWithFragment(l,n.getSelection(),new O.List(a.contentBlocks)),r(c.EditorState.push(n,l,"insert-characters")),!0}return!1}(t,n,r,e.onChange)},e.preventDefault=function(t){"INPUT"===t.target.tagName||"LABEL"===t.target.tagName||"TEXTAREA"===t.target.tagName?e.focusHandler.onInputMouseDown():t.preventDefault()};var r=j(Kr,t.toolbar),o=t.wrapperId?t.wrapperId:Math.floor(1e4*Math.random());e.wrapperId="rdw-wrapper-".concat(o),e.modalHandler=new f,e.focusHandler=new y,e.blockRendererFn=Ur({isReadOnly:e.isReadOnly,isImageAlignmentEnabled:e.isImageAlignmentEnabled,getEditorState:e.getEditorState,onChange:e.onChange},t.customBlockRenderFunc),e.editorProps=e.filterEditorProps(t),e.customStyleMap=e.getStyleMap(t),e.compositeDecorator=e.getCompositeDecorator(r);var a=e.createEditorState(e.compositeDecorator);return Object(s.extractInlineStyle)(a),e.state={editorState:a,editorFocused:!1,toolbar:r},e}return t=i,(e=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(t){if(t!==this.props){var e={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=j(Kr,i);e.toolbar=i}if(E(this.props,"editorState")&&r!==t.editorState)e.editorState=r?c.EditorState.set(r,{decorator:this.compositeDecorator}):c.EditorState.createEmpty(this.compositeDecorator);else if(E(this.props,"contentState")&&o!==t.contentState)if(o){var a=this.changeEditorState(o);a&&(e.editorState=a)}else e.editorState=c.EditorState.createEmpty(this.compositeDecorator);t.editorState===r&&t.contentState===o||Object(s.extractInlineStyle)(e.editorState),Object.keys(e).length&&this.setState(e),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var t=this.state,e=t.editorState,n=t.editorFocused,r=t.toolbar,i=this.props,a=i.locale,l=i.localization,p=l.locale,f=l.translations,d=i.toolbarCustomButtons,g=i.toolbarOnFocus,y=i.toolbarClassName,h=i.toolbarHidden,v=i.editorClassName,b=i.wrapperClassName,w=i.toolbarStyle,M=i.editorStyle,E=i.wrapperStyle,k=i.uploadCallback,C=i.ariaLabel,j={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:Zr(Zr({},Yr[a||p]),f)},_=n||this.focusHandler.isInputFocused()||!g;return o.a.createElement("div",{id:this.wrapperId,className:u()(b,"rdw-editor-wrapper"),style:E,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!h&&o.a.createElement("div",{className:u()("rdw-editor-toolbar",y),style:Zr({visibility:_?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&g).toString(),onFocus:this.onToolbarFocus},r.options.map(function(t,e){var n=cr[t],i=r[t];return"image"===t&&k&&(i.uploadCallback=k),o.a.createElement(n,Qr({key:e},j,{config:i}))}),d&&d.map(function(t,e){return o.a.cloneElement(t,Zr({key:e},j))})),o.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:M,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:m.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(c.Editor,Qr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:e,onChange:this.onChange,blockStyleFn:S,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:C||"rdw-editor",blockRenderMap:s.blockRenderMap},this.editorProps))))}}])&&Jr(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();eo.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},eo.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var no=eo}],r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i}(t,Ig,r),Rg={exports:{}};Rg.exports=function(){function t(t,e){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&e(n,t[n])}function e(t){return null==t||0===t.length||0===t.trim().length}var n={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function r(t){return t&&n[t]}function o(e){var n="";return t(e,function(t,e){e&&(n+="".concat(t,":").concat(e,";"))}),n}function i(t,e){var n=[];if(e)for(var r=0,o=0,i=t,a=e.trigger||"#",c=e.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(c+a))>=0&&(i=i.substr(o+(c+a).length),r+=o+c.length),o>=0){var s=i.indexOf(c)>=0?i.indexOf(c):i.length,l=i.substr(0,s);l&&l.length>0&&n.push({offset:r,length:l.length+a.length,type:"HASHTAG"}),r+=a.length}return n}function a(t,e){var n=[],r=0,o=t.entityRanges.map(function(t){return{offset:t.offset,length:t.length,key:t.key,type:"ENTITY"}});return(o=(o=o.concat(i(t.text,e))).sort(function(t,e){return t.offset-e.offset})).forEach(function(t){t.offset>r&&n.push({start:r,end:t.offset}),n.push({start:t.offset,end:t.offset+t.length,entityKey:t.key,type:t.type}),r=t.offset+t.length}),r<t.text.length&&n.push({start:r,end:t.text.length}),n}function c(t){return!(!(t.entityRanges.length>0)||!e(t.text)&&"atomic"!==t.type)}function s(t){var e=t.text,n=t.inlineStyleRanges,r={BOLD:new Array(e.length),ITALIC:new Array(e.length),UNDERLINE:new Array(e.length),STRIKETHROUGH:new Array(e.length),CODE:new Array(e.length),SUPERSCRIPT:new Array(e.length),SUBSCRIPT:new Array(e.length),COLOR:new Array(e.length),BGCOLOR:new Array(e.length),FONTSIZE:new Array(e.length),FONTFAMILY:new Array(e.length),length:e.length};return n&&n.length>0&&n.forEach(function(t){for(var e=t.offset,n=e+t.length,o=e;o<n;o+=1)0===t.style.indexOf("color-")?r.COLOR[o]=t.style.substring(6):0===t.style.indexOf("bgcolor-")?r.BGCOLOR[o]=t.style.substring(8):0===t.style.indexOf("fontsize-")?r.FONTSIZE[o]=t.style.substring(9):0===t.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=t.style.substring(11):r[t.style]&&(r[t.style][o]=!0)}),r}function l(t,e){var n={};return t.COLOR[e]&&(n.COLOR=t.COLOR[e]),t.BGCOLOR[e]&&(n.BGCOLOR=t.BGCOLOR[e]),t.FONTSIZE[e]&&(n.FONTSIZE=t.FONTSIZE[e]),t.FONTFAMILY[e]&&(n.FONTFAMILY=t.FONTFAMILY[e]),t.UNDERLINE[e]&&(n.UNDERLINE=!0),t.ITALIC[e]&&(n.ITALIC=!0),t.BOLD[e]&&(n.BOLD=!0),t.STRIKETHROUGH[e]&&(n.STRIKETHROUGH=!0),t.CODE[e]&&(n.CODE=!0),t.SUBSCRIPT[e]&&(n.SUBSCRIPT=!0),t.SUPERSCRIPT[e]&&(n.SUPERSCRIPT=!0),n}function u(t,e,n){var r=!0;return n>0&&n<t.length?e.forEach(function(e){r=r&&t[e][n]===t[e][n-1]}):r=!1,r}function p(t,e){return"BOLD"===t?"<strong>".concat(e,"</strong>"):"ITALIC"===t?"<em>".concat(e,"</em>"):"UNDERLINE"===t?"<ins>".concat(e,"</ins>"):"STRIKETHROUGH"===t?"<del>".concat(e,"</del>"):"CODE"===t?"<code>".concat(e,"</code>"):"SUPERSCRIPT"===t?"<sup>".concat(e,"</sup>"):"SUBSCRIPT"===t?"<sub>".concat(e,"</sub>"):e}function f(t){return t&&t.length>0?t.map(function(t){switch(t){case"\n":return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return t}}).join(""):""}function d(t,e){if(t&&(t.COLOR||t.BGCOLOR||t.FONTSIZE||t.FONTFAMILY)){var n='style="';return t.COLOR&&(n+="color: ".concat(t.COLOR,";")),t.BGCOLOR&&(n+="background-color: ".concat(t.BGCOLOR,";")),t.FONTSIZE&&(n+="font-size: ".concat(t.FONTSIZE).concat(/^\d+$/.test(t.FONTSIZE)?"px":"",";")),t.FONTFAMILY&&(n+="font-family: ".concat(t.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(e,"</span>")}return e}function g(t,e,n,r){var o=t[e];if("function"==typeof r){var i=r(o,n);if(i)return i}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===o.type){var c=o.data.alignment;return c&&c.length?'<div style="text-align:'.concat(c,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function y(t,e,n,r){var o=[],i=Array.from(t.text);if(i.length>0)for(var a,c=s(t),p=n;p<r;p+=1)p!==n&&u(c,e,p)?(a.text.push(i[p]),a.end=p+1):(a={styles:l(c,p),text:[i[p]],start:p,end:p+1},o.push(a));return o}function h(t){if(t){for(var e=t,n=0;n<e.length&&" "===t[n];n+=1)e=e.replace(" ","&nbsp;");return e}return t}function m(t){if(t){for(var e=t,n=e.length-1;n>=0&&" "===e[n];n-=1)e="".concat(e.substring(0,n),"&nbsp;").concat(e.substring(n+1));return e}return t}function v(e){var n=e.styles,r=f(e.text);return t(n,function(t,e){r=p(t,r)}),r}function b(t,e){var n=y(t,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],e.start,e.end),r="";return n.forEach(function(t){r+=v(t)}),r=d(e.styles,r)}function w(t,e,n,r){var o=[];y(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach(function(e){o.push(b(t,e))});var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=g(e,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}function S(t,e,n,r){var o=[],i=a(t,n);return i.forEach(function(n,a){var c=w(t,e,n,r);0===a&&(c=h(c)),a===i.length-1&&(c=m(c)),o.push(c)}),o.join("")}function M(t,e,n,i,a){var s=[];if(c(t))s.push(g(e,t.entityRanges[0].key,void 0,a));else{var l=r(t.type);if(l){s.push("<".concat(l));var u=o(t.data);u&&s.push(' style="'.concat(u,'"')),i&&s.push(' dir = "auto"'),s.push(">"),s.push(S(t,e,n,a)),s.push("</".concat(l,">"))}}return s.push("\n"),s.join("")}function E(t){return"unordered-list-item"===t||"ordered-list-item"===t}function k(t,e,n,i,a){var c,s=[],l=[];return t.forEach(function(t){var u=!1;if(c?c.type!==t.type?(s.push("</".concat(r(c.type),">\n")),s.push("<".concat(r(t.type),">\n"))):c.depth===t.depth?l&&l.length>0&&(s.push(k(l,e,n,i,a)),l=[]):(u=!0,l.push(t)):s.push("<".concat(r(t.type),">\n")),!u){s.push("<li");var p=o(t.data);p&&s.push(' style="'.concat(p,'"')),i&&s.push(' dir = "auto"'),s.push(">"),s.push(S(t,e,n,a)),s.push("</li>\n"),c=t}}),l&&l.length>0&&s.push(k(l,e,n,i,a)),s.push("</".concat(r(c.type),">\n")),s.join("")}function C(t,e,n,r){var o=[];if(t){var i=t.blocks,a=t.entityMap;if(i&&i.length>0){var c=[];if(i.forEach(function(t){if(E(t.type))c.push(t);else{if(c.length>0){var i=k(c,a,e,r);o.push(i),c=[]}var s=M(t,a,e,n,r);o.push(s)}}),c.length>0){var s=k(c,a,e,n,r);o.push(s),c=[]}}}return o.join("")}return C}();var Bg=i(Rg.exports);const Pg=t.forwardRef(({className:n,placeholder:r,initialValue:o,disabled:i,onChange:a},c)=>{const[l,u]=e(()=>{if(o){const{contentBlocks:t}=Ig.convertFromHTML(o),e=Ig.ContentState.createFromBlockArray(t);return Ig.EditorState.createWithContent(e)}return Ig.EditorState.createEmpty()}),[p,f]=e(!!o);return t.createElement("div",{className:s("gyramais-rich-input-controller",i&&"gyramais-rich-input-disabled")},r&&p&&t.createElement("div",{className:"gyramais-rich-input-placeholder"},r),t.createElement(zg.Editor,{wrapperClassName:s("gyramais-rich-input-wrapper",n),toolbarClassName:"gyramais-rich-input-toolbar",editorClassName:"gyramais-rich-input-editor",placeholder:r,editorState:l,onEditorStateChange:t=>{const e=Bg(Ig.convertToRaw(t.getCurrentContent())),n=""===t.getCurrentContent().getPlainText().trim();u(t),f(!n),a?.({target:{value:n?"":e}})},readOnly:i,toolbar:{options:["inline","list","link"],inline:{options:["bold","italic","underline","strikethrough","monospace"],bold:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEQSURBVHgBrVLBTcNAENxZJ7zpgKODlOASXIKBIDkvQBHkCR8egJD8QVhCiEsJVEA6iOnAdJA/8S3rgI0Vx1EUZaTT3qxu7mb3lmhLoNz0o6Ev6Fw3j8gsF1zY5C6rZ7ncOGIjJL4j2XfiqFpEPYabhqeXvbqws3w/czd4fbr9KnkYnRtgb8oezpQeNV5sg03iDIRUyJmVVtvQj0Z+UQKAdK1Vcd/Z8eCq4lrzb5T8fa1QEevZ2b8nMSQIGN6bssNWIbgb15tTIIyGYxV+aPRt8jhZ3EebgHnhwIN3UKU20hEFRczn8tlqldzcngxGFdXWaI1idBBi+/KQNoQ6IxmEJ/LXxRLFN2jmxj7fj2kX+AHsWWMUJhD+QgAAAABJRU5ErkJggg=="},italic:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADbSURBVHgBrZLLDcIwEETHBg7c6ABKoAR3kBKI+EihAKAHEBI3DggRKiAlhA5CB9ABVw724JAoQhA+RszB3vH6reT1Aj9KPB74g1FbVoRXdtkIfQiX8yiNq0+VarJJY1RmRMuuDZBJRlbP+Ebd4XjXDUabspz8wCpSRk5gP5gouzVYv+ydQCPokYzDxeLsBNp+K0lEr9KloB9MWiDa2mDvBEoYReAYrmaJE2j/zxP2fXijYnJ6w3HHWj+NCSq7JQIibwzD9XK6vQeLydHUJ4lKnNs4L3AzBvqEf+kKtR1HdL6iFlEAAAAASUVORK5CYII="},underline:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADUSURBVHgBxZJPCoJAFMbfPAXb5RG6QR6hTpIIhu0mMLfqsj+Qu4QovEF0k47QEVxm1LzMMkxEyhZ9m3l87/u9xzAD0FAsL3TOVSlRdteLGEfr+aEYMs2JJmRcblbTfu7hq3tSVALqMRna5ekkYdYreggN9U+wlcTZKVD9CoyC4A7GjJFWDgmEAQEcK8EsAMJPH8gzhjbPPWPkcCDS09IrZll5um7ZLjJ8CwkSXhQu/FrwAfMOQ6WbblJJOe+f14BK0LAcFz7QNpxlm+XcKP+MGvnwi26f1EDSrWGH9AAAAABJRU5ErkJggg=="},strikethrough:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFGSURBVHgBrVJNToNQEJ55/dv2BnKE3kBuIJ5AsJqAK0ytLGkXLgwm1YWRpDHgDXqD4gnEE4gnkKXV5o0Dae0LogvTb8G8mW8++Jh5AP8EVgvm8bAnmnjAhMZ0l4BSSXgTh5eZ2ifUpO8MDBY9EVGPCFKOCQEYAunFtAe62ttUE4LGBIjiKAwspTy2nOEcUfh8Tn4ITdftwqK0l0EFtIRTbNHOr/946Jy/ccgbS9qfToMU/gD2bS/aZFIjQH2VZfzWFAjzOmGTQCqeIONHvE6Z0RDBWJE587Naq3UwbVcT2J7w0UDR0u5vL16L+vc6iuEc2Z5eDklBHF4Xlh9KB/JDW9c3e3zvdCXSXCzafvWrJGC3jJ3P51qrpn3mCxQjBEyK5ZcNiDrfHl2SHMXh1bhWWMA68fYQpEGyGEw50YyFs+gueIRt4AuPhXoaih72ZAAAAABJRU5ErkJggg=="},monospace:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFZSURBVHgBtZG/TgJBEMZnDkRLfQNKOw5yRyJQwBtQ2nF3NmCFiWIJlgqJRyMQE9k3MD4BNBoTSTxLOyztsJQ/O85qIHCY69hkN5v59rffzrcAmxhWubx7VKoU/tNCQZA23uoBYDGeTOHry1N/WdeCIOK9nFKcCAvO8VktEFyGKDLJidu6RzTO+eF1x+9IFgh1moEQrjtSJdF2h354rcdEMnVIgLqGmNfN9NAbPL6pujd4HumG+QAQvuYzeyuOTum0zG5VmlJOEtnIZvZKqtuAqm8WVxxjxsEOomZhCD67rbobM1If7CyUs25kvjSkniQpRLtxgYtQiudRJQBRH/iZgNS8u6nXnFLlnuU8zxFDroIWPc4hdVu33ThJmOl3/r9WwsxkOd19gplNEj3RaVzOjdApVqr8cEvFjwTirwqWROqjhCjBxFap+kMM/64M4FJRSnRF56oJmxg/7mSh1Lq0p5gAAAAASUVORK5CYII="}},list:{options:["unordered","ordered"],unordered:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACrSURBVHgB1ZOxDcIwFETPPxbQJRuQERiBTUhBkTKIghK5RRQpEUUkJmAFNmCFjJDWUvw/ki2gtZI0eeVJd8WTDpiCoqoyDEQV5SknJW8I6uZ2MfvyuBWlzzFl1/NBY2U7sYtWwCFUJEq4jRkgIsH8+Ut0bJr7tfYSoXcxZQdrvhI7SWjtwyAxpg+SZYr5EySSPNHzY5hE4gyiNpzQy4ekUzDnMQM/iWPONJoPamRK1pYzPFEAAAAASUVORK5CYII=",className:void 0},ordered:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgBxVPLTcNAEH2zu1YicSAlhApMB4QKKCGAiOQbQgilBuCAT5AbTgfQgUtICS5hfTS2Z5gNIue1IiVPWu3Mk+b3dhbYE3SXPc4Ebt6Pm4cizz0GwnXoK0N2YtuTU/X9YvF0zs68xQQTI3fFKq9us+WucmuNN8JVTIKeuHbBYHRrJE0d7GL1HIJvcCjQtc5sLF0Jofr8eFljIBxs64XcmcgfsRXRmvuYYNLRDTBSi1JV5DuQQURRVWJOt+2g5wmBvtRK1d8cQcRsOTWgmTZVafUSA6F70ABmdEHMc/XLoSI6jOHlh+t/sk3CivI0JkF4OEdNkpJA/4GUgSzeXzd6XeJQ+AU1cnR8K1aPEgAAAABJRU5ErkJggg==",className:void 0}},link:{options:["link"],link:{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFeSURBVHgBtVJBUsJAEJzZkugxT+AJ+gKLH/ADA16CF2NR4DFyRIsinIgXiS8RX4BP4Am5KUEzzixsXJWYg8WeNjPTPd29AfjnwaoBLwhcldUCIHUGSCnk+JIDDJJ4uKwk8PzrukJ6Ir5TjhHfXULwBJQfZidJFKWqEsxbSYbvh5OH+HZAlDWEUL05lzJXSsDgsQY764ZsMvUkjpaK1bB2708Cltgy4PNOt2n3SKwAaNKDHbLHAjZb2xe9GyIMPb/bSOLRXEKFFedANP9GYHs2NQHzupDgwzNgfpFNqLAeyAz+Cmwr2wbPpqPHAkzoSpCSRZGBUhBq1sJzv2mDLfNLGwxfUvuLtt8P7Vqr0zvV6niz9l1yNq9A4HIoqd2YTe+ejWz16syqCBJSGEgWpmF7zjG7KiNAM4wrZ4FbMiRMSVGgc9nl+SeBJvGDulK1kDce8ycnnSdw9D6x/8K9nE8sl+D6YesFxAAAAABJRU5ErkJggg=="}}}}))});export{Pg as RichInput};
12
12
  //# sourceMappingURL=index.js.map