| 1 |
(()=>{var e={679:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},723:(e,t,n)=>{"use strict";var r=n(90646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,s=[];e.forEach((function(c){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&r(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}}(c,(function(n){a++,n&&s.push(n.slice(0,5e3)),a==e.length&&t(s.join("\r"))}))}))}},953:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},1455:e=>{"use strict";e.exports=window.wp.apiFetch},2383:(e,t,n)=>{"use strict";var r=n(12242),o=n(50580),i=n(77800),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},2505:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2935:(e,t,n)=>{"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(46892),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function _(e){return E(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||E(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},3136:(e,t,n)=>{"use strict";var r=n(77337),o=n(56269),i=n(90646),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var c=e.getBlockMap(),l=t.getStartKey(),u=t.getStartOffset(),p=c.get(l),d=p.getText(),f=p.merge({text:d.slice(0,u)+n+d.slice(u,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),u)}),h=u+s;return e.merge({blockMap:c.set(l,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},3694:(e,t,n)=>{"use strict";var r=n(31296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},3885:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},3914:(e,t,n)=>{"use strict";var r,o=n(61708),i=n(77337),a=n(56408),s=i.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),c=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),l=s(n.keySeq().zip(c));return null!=t&&i.is(t,l)?t:l}};e.exports=c},4146:(e,t,n)=>{"use strict";var r=n(73404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=d(n,y);try{l(t,y,v)}catch(e){}}}}return t}},4909:(e,t,n)=>{"use strict";var r=n(95423);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},5091:(e,t,n)=>{"use strict";var r=n(49938),o=n(3885),i=n(12242),a=n(14134),s=n(51103).notEmptyKey,c=n(88372),l=n(47381),u=n(56408),p=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,d=n.isCollapsed,f=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!f){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var m=h.firstChild;null!=m;m=m.nextSibling)m!==a&&h.removeChild(m)}var g=a.textContent,y=e._latestEditorState,v=u(c(a)),b=o.decode(v),w=b.blockKey,E=b.decoratorKey,_=b.leafKey,S=y.getBlockTree(w).getIn([E,"leaves",_]),C=S.start,x=S.end,O=y.getCurrentContent(),k=O.getBlockForKey(w),M=k.getText().slice(C,x);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==M){var j,D,I,T,A=y.getSelection(),N=A.merge({anchorOffset:C,focusOffset:x,isBackward:!1}),L=k.getEntityAt(C),P=s(L)?O.getEntity(L):null,z="MUTABLE"===(null!=P?P.getMutability():null),R=z?"spellcheck-change":"apply-entity",B=r.replaceText(O,N,g,k.getInlineStyleAt(C),z?k.getEntityAt(C):null);if(p)j=n.anchorOffset,D=n.focusOffset,T=(I=C+Math.min(j,D))+Math.abs(j-D),j=I,D=T;else{var F=g.length-M.length;I=A.getStartOffset(),T=A.getEndOffset(),j=d?T+F:I,D=T+F}var U=B.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:j,focusOffset:D})});e.update(i.push(y,U,R))}else{var H=t.nativeEvent.inputType;if(H){var K=function(e,t){return"deleteContentBackward"===e?l(t):t}(H,y);if(K!==y)return e.restoreEditorDOM(),void e.update(K)}}}}},5188:(e,t,n)=>{"use strict";var r=n(49938),o=n(47282)("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),s=i,c=i.getAnchorKey(),l=i.getFocusKey(),u=a.getBlockForKey(c);if(o&&"forward"===n&&c!==l)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var p=a.getBlockForKey(u.nextSibling);if(!p||0===p.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return r.removeRange(a,s,n)}},5338:(e,t,n)=>{"use strict";var r=n(75795);t.H=r.createRoot,r.hydrateRoot},5407:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__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,n(77337).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},5462:(e,t,n)=>{"use strict";var r=n(77337).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},5556:(e,t,n)=>{e.exports=n(2694)()},6080:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emailRegex=t.defaultRegex=void 0,t.defaultRegex=/^.+$/,t.emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},6843:()=>{},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6991:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},7018:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242),i=n(60286),a=n(56408),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:t});if(c!==n)return o.push(e,c,"remove-range")}var l=s.tryToRemoveBlockStyle(e);return l?o.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),l=r.removeRange(n,c,"forward");return l!==n?o.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),l=c.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var u=c.getDepth();if(!e.shiftKey&&u===n)return t;var p=i(s,r,e.shiftKey?-1:1,n);return o.push(t,p,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),s=n.getEndKey(),c=e.getCurrentContent(),l=n;if(i!==s&&0===n.getEndOffset()){var u=a(c.getBlockBefore(s));s=u.getKey(),l=l.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:u.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==s})).some((function(e){return"atomic"===e.getType()})))return e;var p=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(c,l,p),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),s=i.getBlockBefore(o);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=s},7296:(e,t,n)=>{"use strict";var r=n(93816);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"IMG"===e.nodeName}},7376:(e,t,n)=>{"use strict";var r=n(65224);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},7470:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(56840),i=n(65224),a=n(91439),s=n(55481),c=n(20702),l=n(90646),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,s=[],c={},p={},d=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);p[o]||(p[o]=r,n[o]="".concat(d),d++)})),function(e,t,n,a){if(e instanceof o)n.push(u(e,t));else{e instanceof i||l(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},u(e,t),{children:[]});s?a[s].children.push(c):n.push(c)}}(e,n,s,c)})),{blocks:s,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},8748:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},8976:(e,t,n)=>{"use strict";var r=n(12242);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},9108:(e,t,n)=>{var r=n(19788);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,s=r(e),c="function"==typeof t,l=0,u=s.length;l<u;l++)i=(n=s[l]).property,a=n.value,c?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},9437:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=i(n(42214));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconInfo)},s.default.createElement("div",{style:c.iconInfoBefore}),s.default.createElement("div",{style:c.iconInfoAfter}))}},9927:(e,t,n)=>{"use strict";var r=n(51103).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return n=s===c.getLength()?null:c.getEntityAt(s),o(e.getEntityMap(),n)}},10246:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>wt,Sortable:()=>Ue,Swap:()=>lt,default:()=>St});var u=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=l(/Edge/i),d=l(/firefox/i),f=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),h=l(/iP(ad|od|hone)/i),m=l(/chrome/i)&&l(/android/i),g={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!u&&g)}function v(e,t,n){e.removeEventListener(t,n,!u&&g)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function w(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||r&&e===n)return e;if(e===n)break}while(e=w(e))}return null}var _,S=/\s+/g;function C(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(S," ")}}function x(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function O(e,t){var n="";if("string"==typeof e)n=e;else do{var r=x(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function k(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function M(){return document.scrollingElement||document.documentElement}function j(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,s,c,l,p,d;if(e!==window&&e.parentNode&&e!==M()?(a=(i=e.getBoundingClientRect()).top,s=i.left,c=i.bottom,l=i.right,p=i.height,d=i.width):(a=0,s=0,c=window.innerHeight,l=window.innerWidth,p=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!u))do{if(o&&o.getBoundingClientRect&&("none"!==x(o,"transform")||n&&"static"!==x(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(x(o,"border-top-width")),s-=f.left+parseInt(x(o,"border-left-width")),c=a+i.height,l=s+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=O(o||e),m=h&&h.a,g=h&&h.d;h&&(c=(a/=g)+(p/=g),l=(s/=m)+(d/=m))}return{top:a,left:s,bottom:c,right:l,width:d,height:p}}}function D(e,t,n){for(var r=L(e,!0),o=j(e)[t];r;){var i=j(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===M())break;r=L(r,!1)}return!1}function I(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Ue.ghost&&(r||a[i]!==Ue.dragged)&&E(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function T(e,t){for(var n=e.lastElementChild;n&&(n===Ue.ghost||"none"===x(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function A(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ue.clone||t&&!b(e,t)||n++;return n}function N(e){var t=0,n=0,r=M();if(e)do{var o=O(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function L(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=x(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(r||t)return n;r=!0}}}while(n=n.parentNode);return M()}function P(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function z(e,t){return function(){if(!_){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_=setTimeout((function(){_=void 0}),t)}}}function R(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function B(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function F(e,t){x(e,"position","absolute"),x(e,"top",t.top),x(e,"left",t.left),x(e,"width",t.width),x(e,"height",t.height)}function U(e){x(e,"position",""),x(e,"top",""),x(e,"left",""),x(e,"width",""),x(e,"height","")}function H(e,t,n){var r={};return Array.from(e.children).forEach((function(o){var i,a,s,c;if(E(o,t.draggable,e,!1)&&!o.animated&&o!==n){var l=j(o);r.left=Math.min(null!==(i=r.left)&&void 0!==i?i:1/0,l.left),r.top=Math.min(null!==(a=r.top)&&void 0!==a?a:1/0,l.top),r.right=Math.max(null!==(s=r.right)&&void 0!==s?s:-1/0,l.right),r.bottom=Math.max(null!==(c=r.bottom)&&void 0!==c?c:-1/0,l.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var K="Sortable"+(new Date).getTime();var V=[],q={initializeByDefault:!0},Y={mount:function(e){for(var t in q)q.hasOwnProperty(t)&&!(t in e)&&(e[t]=q[t]);V.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";V.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in V.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,s(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&s(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return V.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function W(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,s=e.toEl,c=e.fromEl,l=e.oldIndex,d=e.newIndex,f=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,y=e.extraEventProperties;if(t=t||n&&n[K]){var v,b=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||p?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=s||n,v.from=c||n,v.item=i||n,v.clone=a,v.oldIndex=l,v.newIndex=d,v.oldDraggableIndex=f,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=g?g.lastPutMode:void 0;var E=o(o({},y),Y.getEventProperties(r,t));for(var _ in E)v[_]=E[_];n&&n.dispatchEvent(v),b[w]&&b[w].call(t,v)}}var Q=["evt"],Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Q);Y.pluginEvent.bind(Ue)(e,t,o({dragEl:$,parentEl:J,ghostEl:X,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:ye,putSortable:ue,activeSortable:Ue.active,originalEvent:r,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:ce,hideGhostForTarget:ze,unhideGhostForTarget:Re,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:r})}},i))};function G(e){W(o({putSortable:ue,cloneEl:re,targetEl:$,rootEl:ee,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:ce},e))}var $,J,X,ee,te,ne,re,oe,ie,ae,se,ce,le,ue,pe,de,fe,he,me,ge,ye,ve,be,we,Ee,_e=!1,Se=!1,Ce=[],xe=!1,Oe=!1,ke=[],Me=!1,je=[],De="undefined"!=typeof document,Ie=h,Te=p||u?"cssFloat":"float",Ae=De&&!m&&!h&&"draggable"in document.createElement("div"),Ne=function(){if(De){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=x(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=I(e,0,t),i=I(e,1,t),a=o&&x(o),s=i&&x(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=r&&"none"===n[Te]||i&&"none"===n[Te]&&c+l>r)?"vertical":"horizontal"},Pe=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var c=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ze=function(){!Ne&&X&&x(X,"display","none")},Re=function(){!Ne&&X&&x(X,"display","")};De&&!m&&document.addEventListener("click",(function(e){if(Se)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Se=!1,!1}),!0);var Be=function(e){if($){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,Ce.some((function(e){var t=e[K].options.emptyInsertThreshold;if(t&&!T(e)){var n=j(e),r=o>=n.left-t&&o<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[K]._onDragOver(n)}}var o,i,a},Fe=function(e){$&&$.parentNode[K]._isOutsideThisEl(e.target)};function Ue(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[K]=this;var n,r,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ue.supportPointer&&"PointerEvent"in window&&(!f||h),emptyInsertThreshold:5};for(var a in Y.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var c in Pe(t),this)"_"===c.charAt(0)&&"function"==typeof this[c]&&(this[c]=this[c].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Ce.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==x(e,"display")&&e!==Ue.ghost){r.push({target:e,rect:j(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=O(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,i=0;r.forEach((function(e){var n=0,r=e.target,a=r.fromRect,s=j(r),c=r.prevFromRect,l=r.prevToRect,u=e.rect,p=O(r,!0);p&&(s.top-=p.f,s.left-=p.e),r.toRect=s,r.thisAnimationDuration&&P(c,s)&&!P(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,c,l,t.options)),P(s,a)||(r.prevFromRect=a,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,u,s,n)),n&&(o=!0,i=Math.max(i,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){x(e,"transition",""),x(e,"transform","");var o=O(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),c=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!c,x(e,"transform","translate3d("+s+"px,"+c+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),x(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),x(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){x(e,"transition",""),x(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function He(e,t,n,r,o,i,a,s){var c,l,d=e[K],f=d.options.onMove;return!window.CustomEvent||u||p?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=i||j(t),c.willInsertAfter=s,c.originalEvent=a,e.dispatchEvent(c),f&&(l=f.call(d,c,a)),l}function Ke(e){e.draggable=!1}function Ve(){Me=!1}function qe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ye(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}Ue.prototype={constructor:Ue,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,$):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(function(e){je.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&je.push(r)}}(n),!$&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=E(s,r.draggable,n,!1))&&s.animated||ne===s)){if(ie=A(s),se=A(s,r.draggable),"function"==typeof l){if(l.call(this,e,s,this))return G({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=E(c,r.trim(),n,!1))return G({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!E(c,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!$&&n.parentNode===i){var c=j(n);if(ee=i,J=($=n).parentNode,te=$.nextSibling,ne=n,le=a.group,Ue.dragged=$,pe={target:$,clientX:(t||e).clientX,clientY:(t||e).clientY},me=pe.clientX-c.left,ge=pe.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,$.style["will-change"]="all",r=function(){Z("delayEnded",o,{evt:e}),Ue.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!d&&o.nativeDraggable&&($.draggable=!0),o._triggerDragStart(e,t),G({sortable:o,name:"choose",originalEvent:e}),C($,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){k($,e.trim(),Ke)})),y(s,"dragover",Be),y(s,"mousemove",Be),y(s,"touchmove",Be),a.supportPointer?(y(s,"pointerup",o._onDrop),!this.nativeDraggable&&y(s,"pointercancel",o._onDrop)):(y(s,"mouseup",o._onDrop),y(s,"touchend",o._onDrop),y(s,"touchcancel",o._onDrop)),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$.draggable=!0),Z("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(p||u))r();else{if(Ue.eventCanceled)return void this._onDrop();a.supportPointer?(y(s,"pointerup",o._disableDelayedDrag),y(s,"pointercancel",o._disableDelayedDrag)):(y(s,"mouseup",o._disableDelayedDrag),y(s,"touchend",o._disableDelayedDrag),y(s,"touchcancel",o._disableDelayedDrag)),y(s,"mousemove",o._delayedDragTouchMoveHandler),y(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&y(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){$&&Ke($),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y($,"dragend",this),y(ee,"dragstart",this._onDragStart));try{document.selection?Ye((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_e=!1,ee&&$){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",Fe);var n=this.options;!e&&C($,n.dragClass,!1),C($,n.ghostClass,!0),Ue.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,ze();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if($.parentNode[K]._isOutsideThisEl(e),t)do{if(t[K]&&t[K]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=w(t));Re()}},_onTouchMove:function(e){if(pe){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=X&&O(X,!0),a=X&&i&&i.a,s=X&&i&&i.d,c=Ie&&Ee&&N(Ee),l=(o.clientX-pe.clientX+r.x)/(a||1)+(c?c[0]-ke[0]:0)/(a||1),u=(o.clientY-pe.clientY+r.y)/(s||1)+(c?c[1]-ke[1]:0)/(s||1);if(!Ue.active&&!_e){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){i?(i.e+=l-(fe||0),i.f+=u-(he||0)):i={a:1,b:0,c:0,d:1,e:l,f:u};var p="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");x(X,"webkitTransform",p),x(X,"mozTransform",p),x(X,"msTransform",p),x(X,"transform",p),fe=l,he=u,de=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:ee,t=j($,!0,Ie,!0,e),n=this.options;if(Ie){for(Ee=e;"static"===x(Ee,"position")&&"none"===x(Ee,"transform")&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=M()),t.top+=Ee.scrollTop,t.left+=Ee.scrollLeft):Ee=M(),ke=N(Ee)}C(X=$.cloneNode(!0),n.ghostClass,!1),C(X,n.fallbackClass,!0),C(X,n.dragClass,!0),x(X,"transition",""),x(X,"transform",""),x(X,"box-sizing","border-box"),x(X,"margin",0),x(X,"top",t.top),x(X,"left",t.left),x(X,"width",t.width),x(X,"height",t.height),x(X,"opacity","0.8"),x(X,"position",Ie?"absolute":"fixed"),x(X,"zIndex","100000"),x(X,"pointerEvents","none"),Ue.ghost=X,e.appendChild(X),x(X,"transform-origin",me/parseInt(X.style.width)*100+"% "+ge/parseInt(X.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Z("dragStart",this,{evt:e}),Ue.eventCanceled?this._onDrop():(Z("setupClone",this),Ue.eventCanceled||((re=B($)).removeAttribute("id"),re.draggable=!1,re.style["will-change"]="",this._hideClone(),C(re,this.options.chosenClass,!1),Ue.clone=re),n.cloneId=Ye((function(){Z("clone",n),Ue.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(re,$),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&C($,o.dragClass,!0),t?(Se=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,$)),y(document,"drop",n),x($,"transform","translateZ(0)")),_e=!0,n._dragStartId=Ye(n._dragStarted.bind(n,t,e)),y(document,"selectstart",n),ye=!0,window.getSelection().removeAllRanges(),f&&x(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,a=this.el,s=e.target,c=this.options,l=c.group,u=Ue.active,p=le===l,d=c.sort,f=ue||u,h=this,m=!1;if(!Me){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=E(s,c.draggable,a,!0),B("dragOver"),Ue.eventCanceled)return m;if($.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return U(!1);if(Se=!1,u&&!c.disabled&&(p?d||(r=J!==ee):ue===this||(this.lastPutMode=le.checkPull(this,u,$,e))&&l.checkPut(this,u,$,e))){if(i="vertical"===this._getDirection(e,s),t=j($),B("dragOverValid"),Ue.eventCanceled)return m;if(r)return J=ee,F(),this._hideClone(),B("revert"),Ue.eventCanceled||(te?ee.insertBefore($,te):ee.appendChild($)),U(!0);var g=T(a,c.draggable);if(!g||function(e,t,n){var r=j(T(n.el,n.options.draggable)),o=H(n.el,n.options,X);return t?e.clientX>o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,i,this)&&!g.animated){if(g===$)return U(!1);if(g&&a===e.target&&(s=g),s&&(n=j(s)),!1!==He(ee,a,$,t,s,n,e,!!s))return F(),g&&g.nextSibling?a.insertBefore($,g.nextSibling):a.appendChild($),J=a,V(),U(!0)}else if(g&&function(e,t,n){var r=j(I(n.el,0,n.options,!0)),o=H(n.el,n.options,X);return t?e.clientX<o.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,i,this)){var y=I(a,0,c,!0);if(y===$)return U(!1);if(n=j(s=y),!1!==He(ee,a,$,t,s,n,e,!1))return F(),a.insertBefore($,y),J=a,V(),U(!0)}else if(s.parentNode===a){n=j(s);var v,b,w,_=$.parentNode!==a,S=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===a||o===s||r+i/2===a+c/2}($.animated&&$.toRect||t,s.animated&&s.toRect||n,i),O=i?"top":"left",k=D(s,"top","top")||D($,"top","top"),M=k?k.scrollTop:void 0;if(ve!==s&&(b=n[O],xe=!1,Oe=!S&&c.invertSwap||_),v=function(e,t,n,r,o,i,a,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,p=r?n.bottom:n.right,d=!1;if(!a)if(s&&we<l*o){if(!xe&&(1===be?c>u+l*i/2:c<p-l*i/2)&&(xe=!0),xe)d=!0;else if(1===be?c<u+we:c>p-we)return-be}else if(c>u+l*(1-o)/2&&c<p-l*(1-o)/2)return function(e){return A($)<A(e)?1:-1}(t);return(d=d||a)&&(c<u+l*i/2||c>p-l*i/2)?c>u+l/2?1:-1:0}(e,s,n,i,S?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,Oe,ve===s),0!==v){var N=A($);do{N-=v,w=J.children[N]}while(w&&("none"===x(w,"display")||w===X))}if(0===v||w===s)return U(!1);ve=s,be=v;var L=s.nextElementSibling,P=!1,z=He(ee,a,$,t,s,n,e,P=1===v);if(!1!==z)return 1!==z&&-1!==z||(P=1===z),Me=!0,setTimeout(Ve,30),F(),P&&!L?a.appendChild($):s.parentNode.insertBefore($,P?L:s),k&&R(k,0,M-k.scrollTop),J=$.parentNode,void 0===b||Oe||(we=Math.abs(b-j(s)[O])),V(),U(!0)}if(a.contains($))return U(!1)}return!1}function B(c,l){Z(c,h,o({evt:e,isOwner:p,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:s,completed:U,onMove:function(n,r){return He(ee,a,$,t,n,j(n),e,r)},changed:V},l))}function F(){B("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function U(t){return B("dragOverCompleted",{insertion:t}),t&&(p?u._hideClone():u._showClone(h),h!==f&&(C($,ue?ue.options.ghostClass:u.options.ghostClass,!1),C($,c.ghostClass,!0)),ue!==h&&h!==Ue.active?ue=h:h===Ue.active&&ue&&(ue=null),f===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){B("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===$&&!$.animated||s===a&&!s.animated)&&(ve=null),c.dragoverBubble||e.rootEl||s===document||($.parentNode[K]._isOutsideThisEl(e.target),!t&&Be(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function V(){ae=A($),ce=A($,c.draggable),G({sortable:h,name:"change",toEl:a,newIndex:ae,newDraggableIndex:ce,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Be),v(document,"mousemove",Be),v(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=A($),ce=A($,n.draggable),Z("drop",this,{evt:e}),J=$&&$.parentNode,ae=A($),ce=A($,n.draggable),Ue.eventCanceled||(_e=!1,Oe=!1,xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&x(document.body,"user-select",""),x($,"transform",""),e&&(ye&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(ee===J||ue&&"clone"!==ue.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),$&&(this.nativeDraggable&&v($,"dragend",this),Ke($),$.style["will-change"]="",ye&&!_e&&C($,ue?ue.options.ghostClass:this.options.ghostClass,!1),C($,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ae>=0&&(G({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),G({sortable:this,name:"remove",toEl:J,originalEvent:e}),G({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),G({sortable:this,name:"sort",toEl:J,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(G({sortable:this,name:"update",toEl:J,originalEvent:e}),G({sortable:this,name:"sort",toEl:J,originalEvent:e})),Ue.active&&(null!=ae&&-1!==ae||(ae=ie,ce=se),G({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),ee=$=J=X=te=re=ne=oe=pe=de=ye=ae=ce=ie=se=ve=be=ue=le=Ue.dragged=Ue.ghost=Ue.clone=Ue.active=null,je.forEach((function(e){e.checked=!0})),je.length=fe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":$&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)E(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||qe(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];E(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return E(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=Y.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Pe(n)},destroy:function(){Z("destroy",this);var e=this.el;e[K]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ce.splice(Ce.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if(Z("hideClone",this),Ue.eventCanceled)return;x(re,"display","none"),this.options.removeCloneOnHide&&re.parentNode&&re.parentNode.removeChild(re),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if(Z("showClone",this),Ue.eventCanceled)return;$.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(re,te):ee.appendChild(re):ee.insertBefore(re,$),this.options.group.revertClone&&this.animate($,re),x(re,"display",""),oe=!1}}else this._hideClone()}},De&&y(document,"touchmove",(function(e){(Ue.active||_e)&&e.cancelable&&e.preventDefault()})),Ue.utils={on:y,off:v,css:x,find:k,is:function(e,t){return!!E(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:z,closest:E,toggleClass:C,clone:B,index:A,nextTick:Ye,cancelNextTick:We,detectDirection:Le,getChild:I,expando:K},Ue.get=function(e){return e[K]},Ue.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ue.utils=o(o({},Ue.utils),e.utils)),Y.mount(e)}))},Ue.create=function(e,t){return new Ue(e,t)},Ue.version="1.15.6";var Qe,Ze,Ge,$e,Je,Xe,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function rt(){clearInterval(Xe)}var ot,it=z((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,c=t.scrollSpeed,l=M(),u=!1;Ze!==n&&(Ze=n,nt(),Qe=t.scroll,o=t.scrollFn,!0===Qe&&(Qe=L(n,!0)));var p=0,d=Qe;do{var f=d,h=j(f),m=h.top,g=h.bottom,y=h.left,v=h.right,b=h.width,w=h.height,E=void 0,_=void 0,S=f.scrollWidth,C=f.scrollHeight,O=x(f),k=f.scrollLeft,D=f.scrollTop;f===l?(E=b<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),_=w<C&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(E=b<S&&("auto"===O.overflowX||"scroll"===O.overflowX),_=w<C&&("auto"===O.overflowY||"scroll"===O.overflowY));var I=E&&(Math.abs(v-i)<=s&&k+b<S)-(Math.abs(y-i)<=s&&!!k),T=_&&(Math.abs(g-a)<=s&&D+w<C)-(Math.abs(m-a)<=s&&!!D);if(!et[p])for(var A=0;A<=p;A++)et[A]||(et[A]={});et[p].vx==I&&et[p].vy==T&&et[p].el===f||(et[p].el=f,et[p].vx=I,et[p].vy=T,clearInterval(et[p].pid),0==I&&0==T||(u=!0,et[p].pid=setInterval(function(){r&&0===this.layer&&Ue.active._onTouchMove(Je);var t=et[this.layer].vy?et[this.layer].vy*c:0,n=et[this.layer].vx?et[this.layer].vx*c:0;"function"==typeof o&&"continue"!==o.call(Ue.dragged.parentNode[K],n,t,e,Je,et[this.layer].el)||R(et[this.layer].el,n,t)}.bind({layer:p}),24))),p++}while(t.bubbleScroll&&d!==l&&(d=L(d,!1)));tt=u}}),30),at=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||o;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function st(){}function ct(){}function lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ot=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,i=e.changed,a=e.cancel;if(o.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=ot;!1!==r(n)?(C(n,c.swapClass,!0),ot=n):ot=null,l&&l!==ot&&C(l,c.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t,n,r,o,i,a,s=e.activeSortable,c=e.putSortable,l=e.dragEl,u=c||this.sortable,p=this.options;ot&&C(ot,p.swapClass,!1),ot&&(p.swap||c&&c.options.swap)&&l!==ot&&(u.captureAnimationState(),u!==s&&s.captureAnimationState(),n=ot,i=(t=l).parentNode,a=n.parentNode,i&&a&&!i.isEqualNode(n)&&!a.isEqualNode(t)&&(r=A(t),o=A(n),i.isEqualNode(a)&&r<o&&o++,i.insertBefore(n,i.children[r]),a.insertBefore(t,a.children[o])),u.animateAll(),u!==s&&s.animateAll())},nulling:function(){ot=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ot}}})}st.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=I(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:at},s(st,{pluginName:"revertOnSpill"}),ct.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:at},s(ct,{pluginName:"removeOnSpill"});var ut,pt,dt,ft,ht,mt=[],gt=[],yt=!1,vt=!1,bt=!1;function wt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?y(document,"pointerup",this._deselectMultiDrag):(y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag))),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";mt.length&&pt===e?mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;dt=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<mt.length;r++)gt.push(B(mt[r])),gt[r].sortableIndex=mt[r].sortableIndex,gt[r].draggable=!1,gt[r].style["will-change"]="",C(gt[r],this.options.selectedClass,!1),mt[r]===dt&&C(gt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&pt===t&&(Et(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Et(!1,n),gt.forEach((function(e){x(e,"display","")})),t(),ht=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){x(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ht=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&pt&&pt.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=A(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),bt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==dt&&x(e,"position","absolute")}));var r=j(dt,!1,!0,!0);mt.forEach((function(e){e!==dt&&F(e,r)})),vt=!0,yt=!0}n.animateAll((function(){vt=!1,yt=!1,t.options.animation&&mt.forEach((function(e){U(e)})),t.options.sort&&_t()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;mt.length>1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?j(e):o}),U(e),e.fromRect=o,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&o._hideClone(),yt=!1,s.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!a)){var c=j(dt,!1,!0,!0);mt.forEach((function(e){e!==dt&&(F(e,c),i.appendChild(e))})),vt=!0}if(!n)if(vt||_t(),mt.length>1){var l=ht;o._showClone(t),o.options.animation&&!ht&&l&>.forEach((function(e){o.addAnimationState({target:e,rect:ft}),e.fromRect=ft,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ft=s({},t);var o=O(dt,!0);ft.top-=o.f,ft.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,_t())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!bt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(dt,l.selectedClass,!~mt.indexOf(dt)),~mt.indexOf(dt))mt.splice(mt.indexOf(dt),1),ut=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:dt,originalEvent:t});else{if(mt.push(dt),W({sortable:o,rootEl:n,name:"select",targetEl:dt,originalEvent:t}),t.shiftKey&&ut&&o.el.contains(ut)){var p=A(ut),d=A(dt);~p&&~d&&p!==d&&function(){var e,i;d>p?(i=p,e=d):(i=d,e=p+1);for(var a=l.filter;i<e;i++)~mt.indexOf(u[i])||E(u[i],l.draggable,r,!1)&&(a&&("function"==typeof a?a.call(o,t,u[i],o):a.split(",").some((function(e){return E(u[i],e.trim(),r,!1)})))||(C(u[i],l.selectedClass,!0),mt.push(u[i]),W({sortable:o,rootEl:n,name:"select",targetEl:u[i],originalEvent:t})))}()}else ut=dt;pt=c}if(bt&&this.isMultiDrag){if(vt=!1,(r[K].options.sort||r!==n)&&mt.length>1){var f=j(dt),h=A(dt,":not(."+this.options.selectedClass+")");if(!yt&&l.animation&&(dt.thisAnimationDuration=null),c.captureAnimationState(),!yt&&(l.animation&&(dt.fromRect=f,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==dt){var t=vt?j(e):f;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),_t(),mt.forEach((function(e){u[h]?r.insertBefore(e,u[h]):r.appendChild(e),h++})),a===A(dt))){var m=!1;mt.forEach((function(e){e.sortableIndex===A(e)||(m=!0)})),m&&(i("update"),i("sort"))}mt.forEach((function(e){U(e)})),c.animateAll()}pt=c}(n===r||s&&"clone"!==s.lastPutMode)&>.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=bt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==bt&&bt||pt!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];C(t,this.options.selectedClass,!1),mt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[K];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(pt&&pt!==t&&(pt.multiDrag._deselectMultiDrag(),pt=t),C(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[K],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(C(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return mt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=vt&&e!==dt?-1:vt?A(e,":not(."+t.options.selectedClass+")"):A(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||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.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Et(e,t){gt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function _t(){mt.forEach((function(e){e!==dt&&e.parentNode&&e.parentNode.removeChild(e)}))}Ue.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(_),_=void 0},nulling:function(){Je=Ze=Qe=tt=Xe=Ge=$e=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||p||u||f){it(e,this.options,i,t);var a=L(i,!0);!tt||Xe&&r===Ge&&o===$e||(Xe&&rt(),Xe=setInterval((function(){var i=L(document.elementFromPoint(r,o),!0);i!==a&&(a=i,nt()),it(e,n.options,i,t)}),10),Ge=r,$e=o)}else{if(!this.options.bubbleScroll||L(i,!0)===M())return void nt();it(e,this.options,L(i,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Ue.mount(ct,st);const St=Ue},10308:(e,t,n)=>{var r=n(51609),o=n(20840),i=n(74958),a=i.setStyleProp,s=i.canTextBeChildOfNode;function c(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,l,u,p,d,f=(n=n||{}).library||r,h=f.cloneElement,m=f.createElement,g=f.isValidElement,y=[],v="function"==typeof n.replace,b=n.trim,w=0,E=t.length;w<E;w++)if(i=t[w],v&&g(u=n.replace(i)))E>1&&(u=h(u,{key:u.key||w})),y.push(u);else if("text"!==i.type){switch(p=i.attribs,c(i)?a(p.style,p):p&&(p=o(p,i.name)),d=null,i.type){case"script":case"style":i.children[0]&&(p.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?p.defaultValue=i.children[0].data:i.children&&i.children.length&&(d=e(i.children,n));break;default:continue}E>1&&(p.key=w),y.push(m(i.name,p,d))}else{if((l=!i.data.trim().length)&&i.parent&&!s(i.parent))continue;if(b&&l)continue;y.push(i.data)}return 1===y.length?y[0]:y}},11608:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(5407),i=n(77337),a=n(90646),s=n(24809),c=(0,i.Map)(),l=s();function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var p={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),p.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),p.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),p.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,l=s()},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return l},__create:function(e,t,n){return p.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return l=s(),c=c.set(l,e),l},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=p.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",o);return c=c.set(e,i),i},__replaceData:function(e,t){var n=p.__get(e).set("data",t);return c=c.set(e,n),n}};e.exports=p},12242:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(19981),a=n(97656),s=n(3914),c=n(91381),l=n(77337),u=l.OrderedSet,p=l.Record,d=l.Stack,f=l.OrderedMap,h=l.List,m=p({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),g=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:d(),redoStack:d(),decorator:n||null,selection:c.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=r({},e,{treeMap:v(n,e.decorator),directionMap:s.getDirectionMap(n)});return new t(new m(o))},t.fromJS=function(e){return new t(new m(r({},e,{directionMap:null!=e.directionMap?f(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?u(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?d(e.redoStack.map((function(e){return a.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new c(e.selection):e.selection,treeMap:null!=e.treeMap?f(e.treeMap).map((function(e){return h(e).map((function(e){return i.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?d(e.undoStack.map((function(e){return a.fromJS(e)}))):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||e.getCurrentContent();if(o!==r){var s,c=t.get("treeMap");return s=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return i.generate(e,t,r)})))}(a,a.getBlockMap(),c,o,r):v(a,o),void t.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return i.generate(o,e,r)})))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new c({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),l=e.getUndoStack(),u=n;a!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(l=l.push(c),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",c.getSelectionBefore()));var p=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(p=null);var f={currentContent:u,directionMap:i,undoStack:l,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:p};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,n){return g.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=g},12623:(e,t,n)=>{"use strict";var r=n(93816);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"BR"===e.nodeName}},13136:(e,t,n)=>{"use strict";var r=n(47378),o=n(49938),i=n(3885),a=n(12242),s=n(45852),c=n(14134),l=n(16207),u=n(63564),p=n(80120),d=n(9927),f=n(56408),h=c.isBrowser("IE"),m=!1,g=!1,y=null,v={onCompositionStart:function(e){g=!0,function(e){y||(y=new r(u(e))).start()}(e)},onCompositionEnd:function(e){m=!1,g=!1,setTimeout((function(){m||v.resolveComposition(e)}),20)},onSelect:l,onKeyDown:function(e,t){if(!g)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=f(y).stopAndFlushMutations();y=null,m=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),c=s.blockKey,l=s.decoratorKey,u=s.leafKey,p=n.getBlockTree(c).getIn([l,"leaves",u]),f=p.start,h=p.end,m=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:f,focusOffset:h,isBackward:!1}),g=d(r,m),y=r.getBlockForKey(c).getInlineStyleAt(f);r=o.replaceText(r,m,e,y,g),n=a.set(n,{currentContent:r})}));var s=p(n,u(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(c,r,"insert-characters"))}else e.update(n)}}};e.exports=v},13387:(e,t,n)=>{"use strict";var r=n(51609),o=n(98003),i=(0,n(77337).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:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},14134:(e,t,n)=>{"use strict";var r=n(94534),o=n(50953),i=n(83731),a=n(94793);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=i(l,a)},14210:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}Object.defineProperty(t,"__esModule",{value:!0});var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){i[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,a=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,a=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];i[s]=new o(s,1,!1,c,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){i[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){i[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){i[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){i[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){i[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,s=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,s);i[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,s);i[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,s);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=n(96811),l=c.CAMELCASE,u=c.SAME,p=c.possibleStandardNames,d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(p).reduce((function(e,t){var n=p[t];return n===u?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=f},14594:(e,t,n)=>{"use strict";var r=n(59395);e.exports=r},15169:(e,t,n)=>{"use strict";var r=n(12242);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},15270:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},15504:e=>{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},15901:(e,t,n)=>{var r=n(10246),o=n(71720),i=n(51609),a=n(82236);function s(e){return e&&e.__esModule?e.default:e}function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>l(e.element)))}function p(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function d(e,t){const n=m(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const i=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(o,t);return i}function f(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}c(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),c(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),c(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),c(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),c(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),c(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),c(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),c(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),c(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),c(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),c(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),c(e.exports,"ReactSortable",(()=>y));const g={dragging:null};class y extends i.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,i.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),s(a)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();s(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},a=e&&null!==e?e:"div";return(0,i.createElement)(a,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:a="sortable-drag",fallbackClass:c="sortable-falback",ghostClass:l="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:p="sortable-filter",list:d}=this.props;if(!e||null==e)return null;const f=t||"data-id";return i.Children.map(e,((e,t)=>{if(void 0===e)return;const a=d[t]||{},{className:c}=e.props,l="string"==typeof p&&{[p.replace(".","")]:!!a.filtered},u=s(o)(c,{[n]:a.selected,[r]:a.chosen,...l});return(0,i.cloneElement)(e,{[f]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:r,tag:o,style:i,className:a,clone:s,onAdd:c,onChange:l,onChoose:u,onClone:p,onEnd:d,onFilter:f,onRemove:h,onSort:m,onStart:g,onUnchoose:y,onUpdate:v,onMove:b,onSpill:w,onSelect:E,onDeselect:_,...S}=e;return S}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,g);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=d(e,[...g.dragging.props.list]);u(o),n(h(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,r=m(e),o=d(e,t);p(o);let i=[...t];if("clone"!==e.pullMode)i=f(o,i);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:s(a)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}u(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);i.splice(n,1,r)}))}i=i.map((e=>Object.assign(e,{selected:!1}))),n(i,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,r=d(e,t);return u(r),p(r),n(function(e,t){return h(e,f(e,t))}(r,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&l(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,g)}}var v,b;v=e.exports,b={},Object.keys(b).forEach((function(e){"default"===e||"__esModule"===e||v.hasOwnProperty(e)||Object.defineProperty(v,e,{enumerable:!0,get:function(){return b[e]}})}))},16127:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},16207:(e,t,n)=>{"use strict";var r=n(67204),o=n(12242),i=n(63564),a=n(80120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=a(n,i(e)),c=s.selectionState;c!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,c):o.acceptSelection(n,c),e.update(n))}}},16268:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(51609),a=n(14134),s=n(90646),c=n(93816),l=a.isBrowser("IE <= 11"),u=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=a.prototype;return u.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);var r=t;return n?!function(e){return l?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},l?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return l?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=u},16416:(e,t,n)=>{"use strict";var r=n(41952),o=n(77337);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),l=t.getEndOffset(),u=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(e,t){var o=t===a?s:0,i=t===c?l:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}},16426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},17078:(e,t,n)=>{"use strict";var r=n(4909);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},17759:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},17965:(e,t,n)=>{"use strict";var r=n(16426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),a()}return u}},18058:(e,t,n)=>{"use strict";var r=n(12242),o=n(4909),i=n(69758);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,l=c.getSelection();if(l.getHasFocus()){var u=l.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(c,u))}}},18227:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},19127:(e,t,n)=>{"use strict";var r=n(95748),o=n(65224),i=n(77337),a=n(56269),s=n(90646),c=n(53310),l=i.List;e.exports=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var u=e.getBlockMap(),p=c(n),d=t.getStartKey(),f=t.getStartOffset(),h=u.get(d);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===p.size?function(e,t,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),l=c.getText(),u=c.getCharacterList(),p=o,d=i+r.getText().length,f=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var h=c.getType();l&&"unstyled"===h&&(h=r.getType());var m=c.merge({text:l.slice(0,i)+r.getText()+l.slice(i),characterList:a(u,r.getCharacterList(),i),type:h,data:f});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})}(e,t,u,p.first(),d,f,i):function(e,t,n,i,a,s){var c=n.first()instanceof o,u=[],p=i.size,d=n.get(a),f=i.first(),h=i.last(),m=h.getLength(),g=h.getKey(),y=c&&(!d.getChildKeys().isEmpty()||!f.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(y?u.push(e):u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(y?0:1,p-1).forEach((function(e){return u.push(e)})),u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):u.push(e)}));var v=r.createFromArray(u);return c&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var p=e.get(s).getChildKeys(),d=p.indexOf(o)+1,f=p.toArray();f.splice.apply(f,[d,0].concat(c)),t.setIn([s,"children"],l(f))}}))}(v,0,d,f)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})}(e,t,u,p,d,f)}},19248:(e,t,n)=>{"use strict";var r=n(14134),o=n(90646),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},19677:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},19765:(e,t,n)=>{"use strict";n(42791),e.exports=n.g.setImmediate},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(c,l):l}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var p=1,d=1;function f(e){var t=e.match(n);t&&(p+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:p,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:p,column:d},this.source=c.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(c.source+":"+p+":"+d+": "+t);if(n.reason=t,n.filename=c.source,n.line=p,n.column=d,n.source=e,!c.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;l!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,l===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function _(){var e=h(),n=v(o);if(n){if(E(),!v(i))return y("property missing ':'");var r=v(a),c=e({type:"declaration",property:u(n[0].replace(t,l)),value:r?u(r[0].replace(t,l)):l});return v(s),c}}return b(),function(){var e,t=[];for(w(t);e=_();)!1!==e&&(t.push(e),w(t));return t}()}},19981:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(18227),i=n(679),a=n(77337),s=a.List,c=a.Repeat,l=a.Record,u=function(){return!0},p=l({start:null,end:null}),d=l({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new d({start:0,end:0,decoratorKey:null,leaves:s.of(new p({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):s(c(null,r)),l=t.getCharacterList();return o(a,h,u,(function(e,t){var n,r,c,f;i.push(new d({start:e,end:t,decoratorKey:a.get(e),leaves:(n=l.slice(e,t).toList(),r=e,c=[],f=n.map((function(e){return e.getStyle()})).toList(),o(f,h,u,(function(e,t){c.push(new p({start:e+r,end:t+r}))})),s(c))}))})),s(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new d(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map((function(e){return p(e)})):null}))}};function h(e,t){return e===t}e.exports=f},20070:(e,t,n)=>{"use strict";var r=n(12242);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},20316:(e,t,n)=>{"use strict";var r=n(93816);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"A"===e.nodeName}},20702:(e,t,n)=>{"use strict";var r=n(50580),o=n(18227),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],c=t.map((function(e){return e.has(n)})).toList();return o(c,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},20840:(e,t,n)=>{var r=n(14210),o=n(74958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function c(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,l,u,p,d,f={},h=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))f[n]=u;else if(p=c(l=n.toLowerCase()))switch(d=r.getPropertyInfo(p),-1===i.indexOf(p)||-1===a.indexOf(t)||h||(p=c("default"+l)),f[p]=u,d&&d.type){case r.BOOLEAN:f[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(f[p]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(f[n]=u);return o.setStyleProp(e.style,f),f}},21493:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(60946));t.default=o.default},22784:(e,t,n)=>{"use strict";var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(84379),c=n(3885),l=n(51609),u=n(93529),p=n(2935),d=n(78527),f=n(97392),h=n(41401),m=n(77337),g=n(90646),y=n(55291),v=(m.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),b=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},w=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},E=function(e,t,n,r,o,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=r(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=i({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},_=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",l.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var m=r.prototype;return m.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection;return i||a},m.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=p.getScrollParent(n),i=f(o);if(o===window){var a=d(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{y(n)||g(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}},m.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,u=t.blockRendererFn,p=t.blockStyleFn,d=t.contentState,f=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,_=t.direction,S=t.forceSelection,C=t.selection,x=t.tree,O=null;n.children.size&&(O=n.children.reduce((function(t,n){var o=c.encode(n,0,0),s=d.getBlockForKey(n),f=w(s,u),g=f.CustomComponent||r,y=b(s,a),v=y.Element,_=y.wrapperTemplate,S=E(s,h,o,p,f,null),C=i({},e.props,{tree:m.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:s});return t.push(l.createElement(v,S,l.createElement(g,C))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,d)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,u=n.reverse()[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=s.value;if(p.type!==t)break;r.push(p)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),f=d[0].key;n.push(l.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":c.encode(f,0,0)},d))}(_,v,t),t}),[]));var k=n.getKey(),M=c.encode(k,0,0),j=w(n,u),D=j.CustomComponent,I=null!=D?l.createElement(D,o({},this.props,{tree:m.getBlockTree(k),blockProps:j.customProps,offsetKey:M,block:n})):l.createElement(s,{block:n,children:O,contentState:d,customStyleFn:g,customStyleMap:y,decorator:f,direction:_,forceSelection:S,hasSelection:v(C,k),selection:C,tree:x});if(n.getParentKey())return I;var T=b(n,a).Element,A=E(n,h,M,p,j,this.wrapperRef);return l.createElement(T,A,I)},r}(l.Component);e.exports=_},23018:(e,t,n)=>{"use strict";var r=n(77337),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},l=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return u;var t=o({style:s,entity:null}).merge(e),n=p.get(t);if(n)return n;var i=new r(t);return p=p.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},r}(a(c)),u=new l,p=o([[o(c),u]]);l.EMPTY=u,e.exports=l},24712:(e,t,n)=>{"use strict";var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(23018),s=n(56840),c=n(65224),l=n(13387),u=n(11608),p=n(25324),d=n(98003),f=n(6991),h=n(19248),m=n(47282),g=n(77337),y=g.List,v=g.Map,b=g.OrderedSet,w=n(20316),E=n(12623),_=n(55291),S=n(7296),C=m("draft_tree_data_support"),x=new RegExp("\r","g"),O=new RegExp("\n","g"),k=new RegExp("^\n","g"),M=new RegExp(" ","g"),j=new RegExp(" ?","g"),D=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],T=["light","lighter","normal","100","200","300","400"],A=["className","href","rel","target","title"],N=["alt","className","height","src","width"],L=(i(r={},d("public/DraftStyleDefault/depth0"),0),i(r,d("public/DraftStyleDefault/depth1"),1),i(r,d("public/DraftStyleDefault/depth2"),2),i(r,d("public/DraftStyleDefault/depth3"),3),i(r,d("public/DraftStyleDefault/depth4"),4),r),P=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),z=function(e){return _(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some((function(n){e.classList.contains(n)&&(t=L[n])})),t},B=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new p(t.href),!0}catch(e){return!1}},F=function(e){if(!S(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!_(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){I.indexOf(r)>=0?e.add("BOLD"):T.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},K=function(){function e(e,t){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",u),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(C?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||f(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;H(i)&&(this.wrapper=i,H(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(F(o))this._addImgNode(o,t);else if(B(o))this._addAnchorNode(o,n,t);else{var l=t;P.has(i)&&(l=l.add(P.get(i))),l=U(o,l);var u=z(o);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var p=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!C&&_(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var h=o;this.currentDepth=R(h,this.currentDepth)}var m=f(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:m,childConfigs:g,type:c})),this.currentDepth=p,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(k,"")).replace(O," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){E(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(S(e)){var n=e,r={};N.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),m("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(w(e)){var r=e,o={};A.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new p(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=y(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new c(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return y(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,i=n.characterList;t.contentBlocks.push(new s(o({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=y(),o=0;o<=t;o++){var i=e[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}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(x,"").replace(M," ").replace(j,"").replace(D,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),v(t)}(t);return new K(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},24809:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},25324:e=>{"use strict";var t=function(){function e(e){var t,n;n=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},25377:(e,t,n)=>{"use strict";var r=n(14134),o=n(90646),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},25935:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242),i=n(30866);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,c=t.getAnchorKey(),l=e.getCurrentContent(),u=l.getBlockForKey(c).getLength();if(u<=1)return e;n===u?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(l,a),d=r.removeRange(l,a,"backward"),f=d.getSelectionAfter(),h=f.getAnchorOffset()-1,m=f.merge({anchorOffset:h,focusOffset:h}),g=r.replaceWithFragment(d,m,p),y=o.push(e,g,"insert-fragment");return o.acceptSelection(y,s)}},27723:e=>{"use strict";e.exports=window.wp.i18n},28030:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(51609),a=c(i),s=c(n(5556));function c(e){return e&&e.__esModule?e:{default:e}}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||f(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.A=h},29215:(e,t,n)=>{"use strict";var r=n(88372),o=n(74453),i=n(79450),a=n(90646),s=n(93816),c=n(56408);function l(e,t,n){var i=t,l=r(i);if(null!=l||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,s(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var p=null;if(null!=l)p=l;else{var d=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);p=c(o(d))}return{key:p,offset:0}}var f=i.childNodes[n-1],h=null,m=null;if(o(f)){var g=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);h=c(o(g)),m=u(g)}else h=c(l),m=u(f);return{key:h,offset:m}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,s){var u=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(u&&p)return{selectionState:i(e,c(r(n)),o,c(r(a)),s),needsRecovery:!1};var d=null,f=null,h=!0;return u?(d={key:c(r(n)),offset:o},f=l(t,a,s)):p?(f={key:c(r(a)),offset:s},d=l(t,n,o)):(d=l(t,n,o),f=l(t,a,s),n===a&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,d.key,d.offset,f.key,f.offset),needsRecovery:h}}},29491:e=>{"use strict";e.exports=window.wp.compose},29987:function(e){e.exports=function(){"use strict";function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}var t={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 n(e){return e&&t[e]}function r(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function o(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function i(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach((function(t){r=r&&e[t][n]===e[t][n-1]})):r=!1,r}function a(e,t,n,r){var o=e[t];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 s=o.data.alignment;return s&&s.length?'<div style="text-align:'.concat(s,';"><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 s(e,t,n,r){var a=[],s=Array.from(e.text);if(s.length>0)for(var c,l=function(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o<n;o+=1)0===e.style.indexOf("color-")?r.COLOR[o]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[o]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[o]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=e.style.substring(11):r[e.style]&&(r[e.style][o]=!0)})),r}(e),u=n;u<r;u+=1)u!==n&&i(l,t,u)?(c.text.push(s[u]),c.end=u+1):(c={styles:o(l,u),text:[s[u]],start:u,end:u+1},a.push(c));return a}function c(t,n){var r=s(t,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),o="";return r.forEach((function(t){o+=function(t){var n,r=t.styles,o=(n=t.text)&&n.length>0?n.map((function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):"";return e(r,(function(e,t){o=function(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}(e,o)})),o}(t)})),o=function(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}(n.styles,o)}function l(e,t,n,r){var o=[],i=function(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(function(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var c=i.indexOf(s)>=0?i.indexOf(s):i.length,l=i.substr(0,c);l&&l.length>0&&n.push({offset:r,length:l.length+a.length,type:"HASHTAG"}),r+=a.length}return n}(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r<e.text.length&&n.push({start:r,end:e.text.length}),n}(e,n);return i.forEach((function(n,l){var u=function(e,t,n,r){var o=[];s(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(t){o.push(c(e,t))}));var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=a(t,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}(e,t,n,r);0===l&&(u=function(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" "," ");return t}return e}(u)),l===i.length-1&&(u=function(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));return t}return e}(u)),o.push(u)})),o.join("")}function u(e,t,o,i,a){var s,c=[],p=[];return e.forEach((function(e){var d=!1;if(s?s.type!==e.type?(c.push("</".concat(n(s.type),">\n")),c.push("<".concat(n(e.type),">\n"))):s.depth===e.depth?p&&p.length>0&&(c.push(u(p,t,o,i,a)),p=[]):(d=!0,p.push(e)):c.push("<".concat(n(e.type),">\n")),!d){c.push("<li");var f=r(e.data);f&&c.push(' style="'.concat(f,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(l(e,t,o,a)),c.push("</li>\n"),s=e}})),p&&p.length>0&&c.push(u(p,t,o,i,a)),c.push("</".concat(n(s.type),">\n")),c.join("")}return function(e,t,o,i){var s=[];if(e){var c=e.blocks,p=e.entityMap;if(c&&c.length>0){var d=[];if(c.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)d.push(e);else{if(d.length>0){var c=u(d,p,t,i);s.push(c),d=[]}var f=function(e,t,o,i,s){var c=[];if(function(e){return!(!(e.entityRanges.length>0)||(t=e.text,null!=t&&0!==t.length&&0!==t.trim().length&&"atomic"!==e.type));var t}(e))c.push(a(t,e.entityRanges[0].key,void 0,s));else{var u=n(e.type);if(u){c.push("<".concat(u));var p=r(e.data);p&&c.push(' style="'.concat(p,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(l(e,t,o,s)),c.push("</".concat(u,">"))}}return c.push("\n"),c.join("")}(e,p,t,o,i);s.push(f)}var h})),d.length>0){var f=u(d,p,t,o,i);s.push(f),d=[]}}}return s.join("")}}()},30041:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},30866:(e,t,n)=>{"use strict";var r=n(53310),o=n(86044);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),l=c.keySeq(),u=l.indexOf(n),p=l.indexOf(a)+1;return r(c.slice(u,p).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},30894:(e,t,n)=>{"use strict";var r=n(64658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},31296:(e,t,n)=>{"use strict";var r=n(30866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},31336:(e,t,n)=>{"use strict";n.d(t,{Z2:()=>N,AH:()=>D,Y:()=>j,i7:()=>I});var r=n(51609),o=n(55655),i=n(30041),a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function s(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var c=!1,l=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!=typeof e},f=s((function(e){return p(e)?e:e.replace(l,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return y={name:t,styles:n,next:y},t}))}return 1===a[e]||p(e)||"number"!=typeof t||0===t?t:t+"px"},m="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return y={name:o.name,styles:o.styles,next:y},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)y={name:a.name,styles:a.styles,next:y},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=g(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":d(s)&&(r+=f(i)+":"+h(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&c)throw new Error(m);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=g(e,t,a);switch(i){case"animation":case"animationName":r+=f(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)d(a[u])&&(r+=f(i)+":"+h(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=y,l=n(e);return y=s,g(e,t,l)}}var u=n;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var y,v=/label:\s*([^\s;{]+)\s*(;|$)/g;function b(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";y=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=g(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=g(n,t,e[a]),r&&(o+=i[a]);v.lastIndex=0;for(var s,c="";null!==(s=v.exec(o));)c+="-"+s[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:y}}var w=!!r.useInsertionEffect&&r.useInsertionEffect,E=w||function(e){return e()},_=(w||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null)),S=(_.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(_);return e(t,o,n)}))}),C=r.createContext({}),x={}.hasOwnProperty,O="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",k=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,i.SF)(t,n,r),E((function(){return(0,i.sk)(t,n,r)})),null},M=S((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[O],s=[o],c="";"string"==typeof e.className?c=(0,i.Rk)(t.registered,s,e.className):null!=e.className&&(c=e.className+" ");var l=b(s,void 0,r.useContext(C));c+=t.key+"-"+l.name;var u={};for(var p in e)x.call(e,p)&&"css"!==p&&p!==O&&(u[p]=e[p]);return u.className=c,n&&(u.ref=n),r.createElement(r.Fragment,null,r.createElement(k,{cache:t,serialized:l,isStringTag:"string"==typeof a}),r.createElement(a,u))})),j=(n(4146),function(e,t){var n=arguments;if(null==t||!x.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=M,i[1]=function(e,t){var n={};for(var r in t)x.call(t,r)&&(n[r]=t[r]);return n[O]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)});function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(t)}var I=function(){var e=D.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},T=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},A=function(e){var t=e.cache,n=e.serializedArr;return E((function(){for(var e=0;e<n.length;e++)(0,i.sk)(t,n[e],!1)})),null},N=S((function(e,t){var n=[],o=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var a=b(r,t.registered);return n.push(a),(0,i.SF)(t,a,!1),t.key+"-"+a.name},a={css:o,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){var r=[],o=(0,i.Rk)(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,T(n))},theme:r.useContext(C)},s=e.children(a);return r.createElement(r.Fragment,null,r.createElement(A,{cache:t,serializedArr:n}),s)}))},32300:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=i(n(42214));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconSuccess)},s.default.createElement("div",{style:Object.assign({},c.iconSuccessBeforeAfter,c.iconSuccessBefore)}),s.default.createElement("span",{style:Object.assign({},c.iconSuccessLine,c.iconSuccessLineTip)}),s.default.createElement("span",{style:Object.assign({},c.iconSuccessLine,c.iconSuccessLineLong)}),s.default.createElement("div",{style:c.iconSuccessPlaceholder}),s.default.createElement("div",{style:c.iconSuccessFix}),s.default.createElement("div",{style:Object.assign({},c.iconSuccessBeforeAfter,c.iconSuccessAfter)}))}},33830:(e,t,n)=>{"use strict";var r=n(50580),o=n(77337).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},34390:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=n(42214),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlayElement=null,t.setOverlayElementRef=function(e){t.overlayElement=e},t}return o(t,e),t.prototype.componentDidMount=function(){this.overlayElement&&(this.overlayElement.scrollTop=0)},t.prototype.render=function(){var e=this.props,t=e.show,n=e.onClick,r=e.onKeyDown,o=e.children;return t?s.default.createElement("div",{ref:this.setOverlayElementRef,style:i(i({},c.overlay),c.sweetAlertContainer),onClick:function(e){return n(e)},tabIndex:0,onKeyDown:function(e){return r(e)}},o):s.default.createElement("div",{style:c.sweetAlertContainer,tabIndex:0,onKeyDown:function(e){return r(e)}},o)},t}(s.default.Component);t.default=l},34892:(e,t,n)=>{"use strict";e.exports=n(6843),e.exports=n(93791)},35143:(e,t,n)=>{"use strict";var r=n(85889),o=n(95748),i=n(23018),a=n(69083),s=n(56840),c=n(97656),l=n(13387),u=n(87918),p=n(63299),d=n(81124),f=n(11608),h=n(49938),m=n(5407),g=n(12242),y=n(59414),v=n(66429),b=n(7018),w=n(91381),E=n(7470),_=n(50428),S=n(6991),C=n(57811),x=n(30894),O={Editor:p,EditorBlock:d,EditorState:g,CompositeDecorator:a,Entity:f,EntityInstance:m,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(24712),convertFromRaw:_,convertToRaw:E,genKey:S,getDefaultKeyBinding:C,getVisibleSelectionRect:x};e.exports=O},35229:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(9108)),i=n(98917);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},35389:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},36957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(45413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),_(this,e)},e}();t.Node=s;var c=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);t.Text=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);t.Comment=u;var p=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);t.ProcessingInstruction=p;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function E(e){return e.type===a.ElementType.Root}function _(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new l(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?S(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?S(e.children):[];var a=new f(r);r.forEach((function(e){return e.parent=a})),n=a}else if(E(e)){r=t?S(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return _(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=w,t.isDocument=E,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=_},37458:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},40803:(e,t,n)=>{"use strict";var r=n(23018),o=n(77337).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},41141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(45413),a=n(36957);o(n(36957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},41401:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},41811:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(i=t[n])||r(o)&&r(i)))return!1;var o,i;return!0}const i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},41952:(e,t,n)=>{"use strict";var r=n(23018);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},42214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closeButton=t.inputErrorIconAfter=t.inputErrorIconBefore=t.inputErrorIconBeforeAfter=t.inputErrorIcon=t.exclamationIcon=t.validationMessage=t.button=t.iconCustom=t.iconSuccessLineLong=t.iconSuccessLineTip=t.iconSuccessLine=t.iconSuccessFix=t.iconSuccessPlaceholder=t.iconSuccessAfter=t.iconSuccessBefore=t.iconSuccessBeforeAfter=t.iconSuccess=t.iconInfoAfter=t.iconInfoBefore=t.iconInfo=t.iconWarningDot=t.iconWarningBody=t.iconWarning=t.iconErrorLineRight=t.iconErrorLineLeft=t.iconErrorLine=t.iconErrorX=t.iconError=t.icon=t.actions=t.contentContainer=t.title=t.sweetAlert=t.sweetAlertContainer=t.overlay=void 0,t.overlay={backgroundColor:"rgba(0, 0, 0, 0.4)",position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:5e3},t.sweetAlertContainer={display:"flex",position:"fixed",top:0,right:0,left:0,bottom:0,flexDirection:"row",alignItems:"center",justifyContent:"center",padding:".625em",overflowX:"hidden",overflowY:"auto",zIndex:5400},t.sweetAlert={display:"flex",overflow:"hidden",backgroundColor:"#fff",outline:"none",width:"32em",padding:"1.25rem",margin:"auto",borderRadius:".3125em",textAlign:"center",position:"relative",flexDirection:"column",justifyContent:"center",maxWidth:"100%",zIndex:5600},t.title={position:"relative",maxWidth:"100%",margin:"0 0 .4em",padding:0,fontSize:"1.875em",fontWeight:600,textAlign:"center",textTransform:"none",wordWrap:"break-word"},t.contentContainer={zIndex:1,justifyContent:"center",margin:0,padding:0,fontSize:"1.125em",fontWeight:300,lineHeight:"normal",textAlign:"center",wordWrap:"break-word"},t.actions={display:"flex",zIndex:1,flexWrap:"wrap",alignItems:"center",justifyContent:"center",width:"100%",margin:"1.25em auto 0"},t.icon={width:80,height:80,borderWidth:4,borderStyle:"solid",borderColor:"gray",borderRadius:"50%",margin:"20px auto",position:"relative",boxSizing:"content-box"},t.iconError={borderColor:"#d43f3a",animation:"animateErrorIcon 0.5s"},t.iconErrorX={position:"relative",display:"block",animation:"animateXMark 0.5s"},t.iconErrorLine={position:"absolute",height:5,width:47,backgroundColor:"#d9534f",display:"block",top:37,borderRadius:2},t.iconErrorLineLeft={transform:"rotate(45deg)",left:17},t.iconErrorLineRight={transform:"rotate(-45deg)",right:16},t.iconWarning={borderColor:"#eea236",animation:"pulseWarning 0.75s infinite alternate"},t.iconWarningBody={position:"absolute",width:5,height:47,left:"50%",top:10,borderRadius:2,marginLeft:-2,backgroundColor:"#f0ad4e",animation:"pulseWarningIns 0.75s infinite alternate"},t.iconWarningDot={position:"absolute",width:7,height:7,borderRadius:"50%",marginLeft:-3,left:"50%",bottom:10,backgroundColor:"#f0ad4e",animation:"pulseWarningIns 0.75s infinite alternate"},t.iconInfo={borderColor:"#46b8da"},t.iconInfoBefore={content:"",position:"absolute",width:5,height:29,left:"50%",bottom:17,borderRadius:2,marginLeft:-2,backgroundColor:"#5bc0de"},t.iconInfoAfter={content:"",position:"absolute",width:7,height:7,borderRadius:"50%",marginLeft:-3,left:"50%",top:19,backgroundColor:"#5bc0de"},t.iconSuccess={borderColor:"#4cae4c"},t.iconSuccessBeforeAfter={content:"",borderRadius:"50%",position:"absolute",width:60,height:120,background:"white",transform:"rotate(45deg)"},t.iconSuccessBefore={borderRadius:"120px 0 0 120px",height:100,top:-7,left:-33,transform:"rotate(-45deg)",transformOrigin:"60px 60px"},t.iconSuccessAfter={borderRadius:"0 120px 120px 0",top:-11,left:30,transform:"rotate(-45deg)",transformOrigin:"0px 60px",animation:"rotatePlaceholder 4.25s ease-in"},t.iconSuccessPlaceholder={width:80,height:80,border:"4px solid rgba(92, 184, 92, 0.2)",borderRadius:"50%",boxSizing:"content-box",position:"absolute",left:-4,top:-4,zIndex:2},t.iconSuccessFix={width:5,height:90,backgroundColor:"#fff",position:"absolute",left:28,top:8,zIndex:1,transform:"rotate(-45deg)"},t.iconSuccessLine={height:5,backgroundColor:"#5cb85c",display:"block",borderRadius:2,position:"absolute",zIndex:2},t.iconSuccessLineTip={width:25,left:14,top:46,transform:"rotate(45deg)",animation:"animateSuccessTip 0.75s"},t.iconSuccessLineLong={width:47,right:8,top:38,transform:"rotate(-45deg)",animation:"animateSuccessLong 0.75s"},t.iconCustom={backgroundSize:"contain",borderRadius:0,border:"none",backgroundPosition:"center center",backgroundRepeat:"no-repeat"},t.button={marginRight:8},t.validationMessage={display:"block",backgroundColor:"#f1f1f1",marginLeft:"-1.25rem",marginRight:"-1.25rem",marginTop:20,overflow:"hidden",padding:10,maxHeight:100,transition:"padding 0.25s, max-height 0.25s",color:"#797979",fontSize:16,textAlign:"center",fontWeight:300},t.exclamationIcon={display:"inline-block",width:24,height:24,borderRadius:"50%",backgroundColor:"#ea7d7d",color:"white",lineHeight:"24px",textAlign:"center",marginRight:5},t.inputErrorIcon={position:"absolute",top:8,right:8,width:20,height:20,transformOrigin:"50% 50%",transition:"all 0.1s",opacity:1,transform:"scale(1)"},t.inputErrorIconBeforeAfter={content:"",width:20,height:6,backgroundColor:"#f06e57",borderRadius:3,position:"absolute",top:"50%",marginTop:-4,left:"50%",marginLeft:-9},t.inputErrorIconBefore={transform:"rotate(-45deg)"},t.inputErrorIconAfter={transform:"rotate(45deg)"},t.closeButton={position:"absolute",right:4,top:-2,fontSize:25,fontWeight:900,color:"rgb(113, 113, 113)",zIndex:1,cursor:"pointer"}},42474:(e,t,n)=>{"use strict";var r=n(92395),o=n(49938),i=n(12242),a=n(88372),s=n(19677),c=n(723),l=n(79450),u=n(35389),p=n(73680),d=n(56408),f={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),u=e._latestEditorState,f=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=d(n),r=d(r);var c=d(a(n));return l(t,c,r,c,r)}(t.nativeEvent,u);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=f){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&p(e.props.handleDroppedFiles(f,g)))return;c(g,(function(t){t&&e.update(m(u,f,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&p(e.props.handleDrop(f,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(u,f)):e.update(m(u,f,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:u(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=f},42739:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=c(n(51609)),u=s(n(42214)),p=n(42214),d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.buttonStyles={},n.confirmButtonElement=null,n.cancelButtonElement=null,n.setConfirmButtonElementRef=function(e){n.confirmButtonElement=e},n.setCancelButtonElementRef=function(e){n.cancelButtonElement=e},n.getButtonStyle=function(e){if("error"===e&&(e="danger"),null==n.buttonStyles[e]){var r=t.styles[e]||t.styles.default;n.buttonStyles[e]={borderColor:""+r.borderColor,boxShadow:"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px "+r.shadowColor}}return n.buttonStyles[e]},n}return o(t,e),t.prototype.componentDidMount=function(){this.focusButton()},t.prototype.componentDidUpdate=function(e){var t=this;e.type===this.props.type&&e.confirmBtnText===this.props.confirmBtnText&&e.title===this.props.title||setTimeout((function(){return t.focusButton()}),0)},t.prototype.focusButton=function(){if(this.props.focusCancelBtn&&this.cancelButtonElement)try{this.cancelButtonElement.focus()}catch(e){}else if(this.props.focusConfirmBtn&&this.confirmButtonElement)try{this.confirmButtonElement.focus()}catch(e){}},t.prototype.confirmButtonRender=function(){var e=this;if(!this.props.showConfirm)return!1;var t="error"===this.props.confirmBtnBsStyle?"danger":this.props.confirmBtnBsStyle,n=Object.assign({},u.button,this.getButtonStyle(t),this.props.confirmBtnStyle||{});return l.default.createElement("a",{ref:this.setConfirmButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.confirmBtnCssClass+" "+(this.props.disabled?"disabled":""),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.disabled||e.props.onConfirm()}},this.props.confirmBtnText)},t.prototype.cancelButtonRender=function(){var e=this;if(!this.props.showCancel)return!1;var t="error"===this.props.cancelBtnBsStyle?"danger":this.props.cancelBtnBsStyle,n=Object.assign({},u.button,this.props.cancelBtnStyle||{});return l.default.createElement("a",{ref:this.setCancelButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.cancelBtnCssClass,onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onCancel()}},this.props.cancelBtnText)},t.prototype.render=function(){return!(!this.props.showConfirm&&!this.props.showCancel)&&l.default.createElement("p",{style:p.actions},this.props.customButtons?this.props.customButtons:l.default.createElement(l.default.Fragment,null,this.props.reverseButtons?l.default.createElement(l.default.Fragment,null,this.confirmButtonRender(),this.cancelButtonRender()):l.default.createElement(l.default.Fragment,null,this.cancelButtonRender(),this.confirmButtonRender())))},t.defaultProps={confirmBtnText:"OK",confirmBtnBsStyle:"primary",confirmBtnCssClass:"",confirmBtnStyle:{},cancelBtnText:"Cancel",cancelBtnBsStyle:"link",cancelBtnCssClass:"",cancelBtnStyle:{},focusConfirmBtn:!0,focusCancelBtn:!1,showConfirm:!0,showCancel:!1,reverseButtons:!1,btnSize:"lg"},t.styles={primary:{borderColor:"#286090",shadowColor:"rgb(165, 202, 234)"},success:{borderColor:"#4cae4c",shadowColor:"rgba(76, 174, 76, 0.6)"},info:{borderColor:"#46b8da",shadowColor:"rgba(70, 184, 218, 0.6)"},danger:{borderColor:"#d43f3a",shadowColor:"rgba(212, 63, 58, 0.6)"},warning:{borderColor:"#eea236",shadowColor:"rgba(238, 162, 54, 0.6)"},default:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"},secondary:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"}},t}(l.default.Component);t.default=d},42791:function(e,t,n){!function(e){"use strict";if(!e.setImmediate){var t,n,r,o,i,a=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){d(e.data)},t=function(e){r.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,t=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(d,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:e,args:n};return s[a]=o,t(a),a++},u.clearImmediate=p}function p(e){delete s[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},43754:(e,t,n)=>{window,e.exports=function(e,t,n){return i={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"==i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;window,e.exports=(o=n(3),i=n(5),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);function i(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]])}function a(e){return i(e).toList()}function s(e){if(e)return a(e).get(0)}function c(e){if(e){var t=s(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function l(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function u(e){var t=a(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function p(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function d(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(e);if(0<i.size){if(n.getIsBackward()){var s=r;r=o,o=s}for(var c=0;c<i.size;c+=1){var l=0===c?r:0,u=c===i.size-1?o:i.get(c).getText().length;t+=i.get(c).getText().slice(l,u)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,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(e,o,"insert-fragment")}function h(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return p(r.EditorState.push(e,t,"split-block"))}function m(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function y(e){var t=new o.Map({}),n=a(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return t}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function w(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function E(e,t,n){var o,a=e.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=e.getCurrentContent(),c=s.getBlockForKey(o),l=c.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return e;var u=s.getBlockBefore(o);if(!u)return e;if(u.getType()!==l)return e;var p=c.getDepth();if(1===t&&p===n)return e;var d,f,h,m,g,y,v,b=Math.min(u.getDepth()+1,n),w=(f=t,h=b,m=(d=e).getSelection(),y=(g=d.getCurrentContent()).getBlockMap(),v=i(d).map((function(e){var t=e.getDepth()+f;return t=Math.max(0,Math.min(t,h)),e.set("depth",t)})),y=y.merge(v),g.merge({blockMap:y,selectionBefore:m,selectionAfter:m}));return r.EditorState.push(e,w,"adjust-depth")}function _(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):f(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!w(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return h(e);if(w(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return p(e);if(0<i)return E(e,-1,i)}}}(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),i=t.getEndOffset(),s=a(e);if(0<s.size){var c=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<s.size;t+=1){var n=0===t?o:0,r=t===s.size-1?i:s.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},c=n;c<r;c+=1)a(c)}return{v:e}}();if("object"===x(c))return c.v}return{}}function k(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=s(e),a=r;a<o;a+=1){var c=i.getEntityAt(a);if(!c){t=void 0;break}if(a===r)t=c;else if(t!==c){t=void 0;break}}return t}function M(e,t){var n,r=s(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function j(e,t,n){I[e]["".concat(e.toLowerCase(),"-").concat(n)]=C({},"".concat(t),n)}function D(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},I.color,{},I.bgcolor,{},I.fontSize,{},I.fontFamily,{CODE:I.CODE,SUPERSCRIPT:I.SUPERSCRIPT,SUBSCRIPT:I.SUBSCRIPT})}var I={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 T(e,t,n){var o=e.getSelection(),i=Object.keys(I[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),a=r.EditorState.push(e,i,"changeinline-style"),s=e.getCurrentInlineStyle();if(o.isCollapsed()&&(a=s.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),a)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var c="bgcolor"===t?"backgroundColor":t;s.has("".concat(c,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(t.toLowerCase(),"-").concat(n)),j(t,c,n))}return a}function A(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?j("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?j("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?j("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&j("fontFamily","fontFamily",e.substr(11))}))}function N(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function L(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),s=a(e);if(0<s.size){for(var c=function(e){var n=0===e?o:0,a=e===s.size-1?i:s.get(e).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var c=function(o){o===n?t.forEach((function(t){r[t]=N(s.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==N(s.get(e),t,o)&&(r[t]=void 0)}))},l=n;l<a;l+=1)c(l)},l=0;l<s.size;l+=1)c(l);return{v:r}}}();if("object"===x(n))return n.v}return{}}function P(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return w})),n.d(t,"changeDepth",(function(){return E})),n.d(t,"handleNewLine",(function(){return _})),n.d(t,"getEntityRange",(function(){return M})),n.d(t,"getCustomStyleMap",(function(){return D})),n.d(t,"toggleCustomInlineStyle",(function(){return T})),n.d(t,"getSelectionEntity",(function(){return k})),n.d(t,"extractInlineStyle",(function(){return A})),n.d(t,"removeAllInlineStyles",(function(){return P})),n.d(t,"getSelectionInlineStyle",(function(){return O})),n.d(t,"getSelectionCustomInlineStyle",(function(){return L})),n.d(t,"getSelectedBlocksMap",(function(){return i})),n.d(t,"getSelectedBlocksList",(function(){return a})),n.d(t,"getSelectedBlock",(function(){return s})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return c})),n.d(t,"getAllBlocks",(function(){return l})),n.d(t,"getSelectedBlocksType",(function(){return u})),n.d(t,"removeSelectedBlocksStyle",(function(){return p})),n.d(t,"getSelectionText",(function(){return d})),n.d(t,"addLineBreakRemovingSelection",(function(){return f})),n.d(t,"insertNewUnstyledBlock",(function(){return h})),n.d(t,"clearEditorContent",(function(){return m})),n.d(t,"setBlockData",(function(){return g})),n.d(t,"getSelectedBlocksMetadata",(function(){return y})),n.d(t,"blockRenderMap",(function(){return b}))}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;window,e.exports=(o=n(5),i=n(3),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},l=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},u=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=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 f(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return v}));var m=" ",g=new RegExp(" ","g"),y=!0;function v(e,t){var n,v,b=(n=t,(v=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(g,m)))?(y=!0,{chunk:function e(t,n,o,m,g,v){var b=t.nodeName.toLowerCase();if(v){var w=v(b,t);if(w){var E=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:l(E)}}}if("#text"===b&&"\n"!==t.textContent)return i(t,n,g);if("br"===b)return{chunk:a()};if("img"===b&&t instanceof HTMLImageElement){var _={};_.src=t.getAttribute&&t.getAttribute("src")||t.src,_.alt=t.alt,_.height=t.style.height,_.width=t.style.width,t.style.float&&(_.alignment=t.style.float);var S=r.Entity.__create("IMAGE","MUTABLE",_);return{chunk:l(S)}}if("video"===b&&t instanceof HTMLVideoElement){var C={};C.src=t.getAttribute&&t.getAttribute("src")||t.src,C.alt=t.alt,C.height=t.style.height,C.width=t.style.width,t.style.float&&(C.alignment=t.style.float);var x=r.Entity.__create("VIDEO","MUTABLE",C);return{chunk:l(x)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var O={};O.src=t.getAttribute&&t.getAttribute("src")||t.src,O.height=t.height,O.width=t.width;var k=r.Entity.__create("EMBEDDED_LINK","MUTABLE",O);return{chunk:l(k)}}var M,j=function(e,t){var n=p.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,m);j&&("ul"===b||"ol"===b?(m=b,o+=1):("unordered-list-item"!==j&&"ordered-list-item"!==j&&(m="",o=-1),y?(M=s(j,f(t)),y=!1):M=c(j,o,f(t)))),M=M||{text:"",inlines:[],entities:[],blocks:[]},n=function(e,t,n){var r,o=d[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,c=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(d.strong),"underline"===s&&e.add(d.ins),"italic"===c&&e.add(d.em)})).toOrderedSet()}return r}(b,t,n);for(var D=t.firstChild;D;){var I=e(D,n,o,m,h(D)||g,v).chunk;M=u(M,I),D=D.nextSibling}return{chunk:M}}(v,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,E=new o.OrderedMap({});w.entities&&w.entities.forEach((function(e){e&&(E=E.set(e,r.Entity.__get(e)))}));var _=0;return{contentBlocks:w.text.split("\r").map((function(e,t){var n=_+e.length,i=w&&w.inlines.slice(_,n),a=w&&w.entities.slice(_,n),s=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return _=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[t]&&w.blocks[t].type||"unstyled",depth:w&&w.blocks[t]&&w.blocks[t].depth,data:w&&w.blocks[t]&&w.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:E}}return null}}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},c={"http:":{validate:function(e,t,n){var r=e.slice(t);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(e,t,n){var r=e.slice(t);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<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);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="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("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]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:l(t,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?l(t,n):a.normalize=function(e,t){t.normalize(e)});"[object String]"!==o(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u,p=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(u=e).__index__=-1,u.__text_cache__=""}function p(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||c<this.__index__)&&null!==(n=e.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<=e.indexOf("@")&&null!==(r=e.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__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),u(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){"use strict";var r=n(11);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.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(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return Er}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),c=n(4),l=n(2),u=n.n(l);function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h,m=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),g=[],y={onKeyDown:function(e){g.forEach((function(t){t(e)}))},registerCallBack:function(e){g.push(e)},deregisterCallBack:function(e){g=g.filter((function(t){return t!==e}))}},v=function(){h=!0},b=function(){h=!1},w=function(){return h};function E(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function _(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function S(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function C(e){e.stopPropagation()}function x(e){return e[e.options[0]].icon}function O(e,t){if(e&&void 0===t)return e;var n={};return _(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=O(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var k=n(6),M=n.n(k),j=n(5);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var L=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,i=t.activeClassName,a=t.active,s=t.disabled,c=t.title;return o.a.createElement("div",{className:u()("rdw-option-wrapper",r,(I(e={},"rdw-option-active ".concat(i),a),I(e,"rdw-option-disabled",s),e)),onClick:this.onClick,"aria-selected":a,title:c},n)}}])&&T(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}L.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},L.defaultProps={activeClassName:""},n(12);var F=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,i=t.className,a=t.optionWrapperClassName,s=t.ariaLabel,c=t.onExpandEvent,l=t.title,p=this.state.highlighted,d=r.slice(1,r.length);return o.a.createElement("div",{className:u()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:c,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:C},o.a.Children.map(d,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:p===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&z(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}F.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 Y=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,i=t.disabled,a=t.highlighted,s=t.className,c=t.activeClassName,l=t.disabledClassName,p=t.highlightedClassName,d=t.title;return o.a.createElement("li",{className:u()("rdw-dropdownoption-default",s,(H(e={},"rdw-dropdownoption-active ".concat(c),r),H(e,"rdw-dropdownoption-highlighted ".concat(p),a),H(e,"rdw-dropdownoption-disabled ".concat(l),i),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:d},n)}}])&&K(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Y.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},Y.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var $=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=G(e);if(t){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,i=e.translations;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,a){return o.a.createElement(L,{key:a,value:e,onClick:r,className:u()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||i["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,c=e.onChange,l=e.translations,p=t.className,d=t.dropdownClassName,f=t.title;return o.a.createElement(F,{className:u()("rdw-inline-dropdown",p),optionWrapperClassName:u()(d),onChange:c,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:f},o.a.createElement("img",{src:x(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(Y,{key:n,value:e,className:u()("rdw-inline-dropdownoption",t[e].className),active:!0===s[e]||"MONOSPACE"===e&&s.CODE,title:t[e].title||l["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Q(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}$.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 ne=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var c="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",l=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),c);a=s.EditorState.push(a,l,"change-inline-style")}a&&i(a)},t.changeKeys=function(e){if(e){var t={};return _(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(c.getSelectionInlineStyle)(o)):{}},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(c.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentStyles,s=t.component||$;return o.a.createElement(s,{config:t,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ne.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 se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,i=t.currentState.blockType;return o.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(L,{key:t,value:e.label,active:i===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.title,s=t.currentState.blockType,c=t.expanded,l=t.doExpand,p=t.onExpandEvent,d=t.doCollapse,f=t.onChange,h=t.translations,m=this.state.blockTypes.filter((function(e){return e.label===s})),g=m&&m[0]&&m[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(F,{className:u()("rdw-block-dropdown",r),optionWrapperClassName:u()(i),onChange:f,expanded:c,doExpand:l,doCollapse:d,onExpandEvent:p,title:a||h["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,g||h["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(Y,{active:s===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();se.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 ce=se;function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.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"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(c.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(c.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentBlockType,s=t.component||ce,c=this.blocksTypes.find((function(e){return e.style===a}));return o.a.createElement(s,{config:t,translations:n,currentState:{blockType:c&&c.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();fe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var he=fe;function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.dropdownClassName,a=t.options,s=t.title,c=e.onChange,l=e.expanded,p=e.doCollapse,d=e.onExpandEvent,f=e.doExpand,h=e.translations,m=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),m=m||a&&0<=a.indexOf(g)&&g,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(F,{className:u()("rdw-fontsize-dropdown",r),optionWrapperClassName:u()(i),onChange:c,expanded:l,doExpand:f,doCollapse:p,onExpandEvent:d,title:s||h["components.controls.fontsize.fontsize"]},m?o.a.createElement("span",null,m):o.a.createElement("img",{src:n,alt:""}),a.map((function(e,t){return o.a.createElement(Y,{className:"rdw-fontsize-option",active:m===e,value:e,key:t},e)}))))}}])&&ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _e(e,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}be.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 Ce=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Se(e);if(t){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).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.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontSize",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(c.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontSize,s=t.component||be,c=a&&Number(a.substring(9));return o.a.createElement(s,{config:t,translations:n,currentState:{fontSize:c},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return(ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ce.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 je=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Me(e);if(t){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.options,s=n.title,c=t.translations,l=t.onChange,p=t.expanded,d=t.doCollapse,f=t.onExpandEvent,h=t.doExpand,m=this.props.currentState.fontFamily;return m=m||a&&e&&a.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(F,{className:u()("rdw-fontfamily-dropdown",r),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",i),onChange:l,expanded:p,doExpand:h,doCollapse:d,onExpandEvent:f,title:s||c["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},m||c["components.controls.fontfamily.fontfamily"]),a.map((function(e,t){return o.a.createElement(Y,{active:m===e,value:e,key:t},e)}))))}}])&&Oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();je.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 De=je;function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e,t){return(Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Ne(e);if(t){var o=Ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).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.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontFamily",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(c.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,s=t.component||De,c=a&&a.substring(11);return o.a.createElement(s,{translations:n,config:t,currentState:{fontFamily:c},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.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 Fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,i=e.indentDisabled,a=e.outdentDisabled,s=t.options,c=t.unordered,l=t.ordered,p=t.indent,d=t.outdent,f=t.className;return o.a.createElement("div",{className:u()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(L,{value:"unordered",onClick:this.toggleBlockType,className:u()(c.className),active:"unordered"===n,title:c.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("ordered")&&o.a.createElement(L,{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<=s.indexOf("indent")&&o.a.createElement(L,{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<=s.indexOf("outdent")&&o.a.createElement(L,{onClick:this.outdent,disabled:a,className:u()(d.className),title:d.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:d.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,i=t.doCollapse,a=t.doExpand,s=t.onExpandEvent,c=t.onChange,l=t.currentState.listType,p=t.translations,d=n.options,f=n.className,h=n.dropdownClassName,m=n.title;return o.a.createElement(F,{className:u()("rdw-list-dropdown",f),optionWrapperClassName:u()(h),onChange:c,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:s,"aria-label":"rdw-list-control",title:m||p["components.controls.list.list"]},o.a.createElement("img",{src:x(n),alt:""}),this.options.filter((function(e){return 0<=d.indexOf(e)})).map((function(t,r){return o.a.createElement(Y,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:u()("rdw-list-dropdownOption",n[t].className),active:l===t,title:n[t].title||p["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&ze(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t){return(Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Fe.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 qe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ke(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Ve(e);if(t){var o=Ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},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.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=s.RichUtils.toggleBlockType(o,e);i&&r(i)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=Object(c.changeDepth)(o,e,4);i&&r(i)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(c.getBlockBeforeSelectedBlock)(e);return!r||!Object(c.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(c.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(c.getSelectedBlock)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(c.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,i=this.state,a=i.expanded,s=i.currentBlock,c=n.component||Fe;"unordered-list-item"===s.get("type")?e="unordered":"ordered-list-item"===s.get("type")&&(e="ordered");var l=this.isIndentDisabled(),u=this.isOutdentDisabled();return o.a.createElement(c,{config:n,translations:r,currentState:{listType:e},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:l,outdentDisabled:u})}}])&&He(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qe(e,t){return(Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}qe.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 Ge=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qe(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Ze(e);if(t){var o=Ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,i=t.center,a=t.right,s=t.justify,c=t.className,l=e.onChange,p=e.currentState.textAlignment,d=e.translations;return o.a.createElement("div",{className:u()("rdw-text-align-wrapper",c),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(L,{value:"left",className:u()(r.className),active:"left"===p,onClick:l,title:r.title||d["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(L,{value:"center",className:u()(i.className),active:"center"===p,onClick:l,title:i.title||d["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(L,{value:"right",className:u()(a.className),active:"right"===p,onClick:l,title:a.title||d["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(L,{value:"justify",className:u()(s.className),active:"justify"===p,onClick:l,title:s.title||d["components.controls.textalign.justify"]},o.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState.textAlignment,c=e.onChange,l=e.translations,p=t.options,d=t.left,f=t.center,h=t.right,m=t.justify,g=t.className,y=t.dropdownClassName,v=t.title;return o.a.createElement(F,{className:u()("rdw-text-align-dropdown",g),optionWrapperClassName:u()(y),onChange:c,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:s&&t[s]&&t[s].icon||x(t),alt:""}),0<=p.indexOf("left")&&o.a.createElement(Y,{value:"left",active:"left"===s,className:u()("rdw-text-align-dropdownOption",d.className),title:d.title||l["components.controls.textalign.left"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("center")&&o.a.createElement(Y,{value:"center",active:"center"===s,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||l["components.controls.textalign.center"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("right")&&o.a.createElement(Y,{value:"right",active:"right"===s,className:u()("rdw-text-align-dropdownOption",h.className),title:h.title||l["components.controls.textalign.right"]},o.a.createElement("img",{src:h.icon,alt:""})),0<=p.indexOf("justify")&&o.a.createElement(Y,{value:"justify",active:"justify"===s,className:u()("rdw-text-align-dropdownOption",m.className),title:m.title||l["components.controls.textalign.justify"]},o.a.createElement("img",{src:m.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&We(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t){return(Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ge.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 tt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).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.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(c.setBlockData)(r,{"text-align":e}):Object(c.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(c.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,s=t.component||Ge;return o.a.createElement(s,{config:t,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&Je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tt.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 at=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,i=n.colors,a=t.currentState,s=a.color,c=a.bgColor,l=t.translations,p=e.state.currentStyle,d="color"===p?s:c;return o.a.createElement("div",{className:u()("rdw-colorpicker-modal",r),onClick:C},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:e.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:e.setCurrentStyleBgcolor},l["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(t,n){return o.a.createElement(L,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:d===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||c["components.controls.colorpicker.colorpicker"]},o.a.createElement(L,{onClick:s,className:u()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&rt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();at.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 st=at;function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return(ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ut(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},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.toggleColor=function(e,n){var r=t.props,o=r.editorState,i=r.onChange,a=Object(c.toggleCustomInlineStyle)(o,e,n);a&&i(a),t.doCollapse()};var r=e.editorState,o=e.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(c.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(c.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=a,o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(c.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(c.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,s=r.expanded,c=t.component||st,l=i&&i.substring(6),u=a&&a.substring(8);return o.a.createElement(c,{config:t,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:l,bgColor:u}})}}])&<(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();dt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var ft=dt,ht=n(7),mt=n.n(ht);function gt(e){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var wt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=bt(e);if(t){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,i=this.state,a=i.linkTitle,s=i.linkTarget,c=i.linkTargetOption;return o.a.createElement("div",{className:u()("rdw-link-modal",t),onClick:C},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:s}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===c,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:!s||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,i=t.unlink,a=t.className,s=e.currentState,c=e.expanded,l=e.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(L,{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(L,{disabled:!s.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:""})),c&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,i=e.doExpand,a=e.onChange,s=e.config,c=e.currentState,l=e.translations,p=s.options,d=s.link,f=s.unlink,h=s.className,m=s.dropdownClassName,g=s.title,y=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},o.a.createElement(F,{className:u()("rdw-link-dropdown",h),optionWrapperClassName:u()(m),onChange:a,expanded:t&&!y,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:x(s),alt:""}),0<=p.indexOf("link")&&o.a.createElement(Y,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",d.className),title:d.title||l["components.controls.link.link"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("unlink")&&o.a.createElement(Y,{onClick:this.removeLink,disabled:!c.link,className:u()("rdw-link-dropdownoption",f.className),title:f.title||l["components.controls.link.unlink"]},o.a.createElement("img",{src:f.icon,alt:""}))),t&&y?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&yt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wt.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 Et=wt;function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(e,t){return(Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e){var t=Dt.match(e.target);return kt(kt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Dt=mt()(),It=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=xt(e);if(t){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var i=t.props.config.linkCallback;if("link"===e){var a=(i||jt)({title:n,target:r,targetOption:o});t.addLink(a.title,a.target,a.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(c.getEntityRange)(e,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(c.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,i=n.getSelection();if(o){var a=Object(c.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(s.RichUtils.toggleLink(n,i,null))}},t.addLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,l=t.state.currentEntity,u=i.getSelection();if(l){var p=Object(c.getEntityRange)(i,l);u=u.getIsBackward()?u.merge({anchorOffset:p.end,focusOffset:p.start}):u.merge({anchorOffset:p.start,focusOffset:p.end})}var d=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),f=s.Modifier.replaceText(i.getCurrentContent(),u,"".concat(e),i.getCurrentInlineStyle(),d),h=s.EditorState.push(i,f,"insert-characters");u=h.getSelection().merge({anchorOffset:u.get("anchorOffset")+e.length,focusOffset:u.get("anchorOffset")+e.length}),h=s.EditorState.acceptSelection(h,u),f=s.Modifier.insertText(h.getCurrentContent(),u," ",h.getCurrentInlineStyle(),void 0),a(s.EditorState.push(h,f,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(c.getSelectionEntity)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(c.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,s=i.selectionText,c=t.component||Et;return o.a.createElement(c,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&St(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();It.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Tt=It;function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t){return(Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var zt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lt(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Pt(e);if(t){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===At(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,i=this.props,a=i.config.popupClassName,s=i.doCollapse,c=i.translations;return o.a.createElement("div",{className:u()("rdw-embedded-modal",a),onClick:C},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},c["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:c["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,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:!t||!n||!r},c["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},c["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(L,{className:u()(r),value:"unordered-list-item",onClick:s,title:i||c["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&Nt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();zt.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 Rt=zt;function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ut(e,t){return(Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmbeddedLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,c=o.config.embedCallback,l=c?c(t):t,u=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:l,height:n,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(i,u," ")),e.doCollapse()},e}return e=i,(t=[{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 e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Rt;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Kt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Vt=Kt;function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e,t){return(Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qt(e){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var Zt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wt(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=Qt(e);if(t){var o=Qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=i,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:C},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||c["components.controls.emoji.emoji"]},o.a.createElement(L,{className:u()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&Yt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Zt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Gt=Zt;function $t(e){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(s.EditorState.push(r,i,"insert-characters")),e.doCollapse()},e}return e=i,(t=[{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 e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Gt;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Jt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nn(){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 rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function an(e,t){return(an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tn.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 cn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.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];e.uploadImage(i)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,i=o.height,a=o.width,s=e.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),s(n,i,a,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,i=e.dragEnter,a=e.height,s=e.width,c=e.alt,l=this.props,p=l.config,d=p.popupClassName,f=p.uploadCallback,h=p.uploadEnabled,m=p.urlEnabled,g=p.previewImage,y=p.inputAccept,v=p.alt,b=l.doCollapse,w=l.translations;return o.a.createElement("div",{className:u()("rdw-image-modal",d),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},h&&f&&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})})),m&&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"},g&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||w["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:y,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:t}),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:c,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:s,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:!t||!a||!s||v.mandatory&&!c},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(nn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(L,{className:u()(r),value:"unordered-list-item",onClick:s,title:i||c["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&on(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();cn.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=cn;function _n(e){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pn(e,t){return(pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pn(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=dn(e);if(t){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var i=t.props,a=i.editorState,c=i.onChange,l={src:e,height:n,width:r};i.config.alt.present&&(l.alt=o);var u=a.getCurrentContent().createEntity("IMAGE","MUTABLE",l).getLastCreatedEntityKey();c(s.AtomicBlockUtils.insertAtomicBlock(a,u," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||ln;return o.a.createElement(i,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function hn(e){var t=e.config,n=e.onChange,r=e.translations,i=t.icon,a=t.className,s=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(L,{className:u()(a),onClick:n,title:s||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}fn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var mn=fn;n(31),hn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var gn=hn;function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bn(e,t){return(bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wn(e){return(wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bn(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=wn(e);if(t){var o=wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=s.Modifier.removeInlineStyle(t,e.getSelection(),n)})),_(Object(c.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=s.Modifier.removeInlineStyle(t,e.getSelection(),r))})),s.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=i,(t=[{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 e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||gn;return o.a.createElement(i,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&vn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xn(e,t){return(xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(e){return(On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}En.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 kn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=On(e);if(t){var o=On(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=i,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,c=s.undoDisabled,l=s.redoDisabled,p=e.translations,d=t.options,f=t.undo,h=t.redo,m=t.className,g=t.dropdownClassName,y=t.title;return o.a.createElement(F,{className:u()("rdw-history-dropdown",m),optionWrapperClassName:u()(g),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:y||p["components.controls.history.history"]},o.a.createElement("img",{src:x(t),alt:""}),0<=d.indexOf("undo")&&o.a.createElement(Y,{value:"undo",onClick:this.onChange,disabled:c,className:u()("rdw-history-dropdownoption",f.className),title:f.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("redo")&&o.a.createElement(Y,{value:"redo",onClick:this.onChange,disabled:l,className:u()("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 e=this.props,t=e.config,n=t.options,r=t.undo,i=t.redo,a=t.className,s=e.currentState,c=s.undoDisabled,l=s.redoDisabled,p=e.translations;return o.a.createElement("div",{className:u()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(L,{value:"undo",onClick:this.onChange,className:u()(r.className),disabled:c,title:r.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(L,{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()}}])&&Cn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Mn(e){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dn(e,t){return(Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}kn.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 Tn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dn(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=In(e);if(t){var o=In(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=s.EditorState[e](r);i&&o(i)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,a=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,s=r.expanded,c=t.component||kn;return o.a.createElement(c,{config:t,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&jn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Tn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var An={inline:ne,blockType:he,fontSize:Ce,fontFamily:Le,list:qe,textAlign:tt,colorPicker:ft,link:Tt,embedded:Vt,emoji:tn,image:mn,remove:En,history:Tn},Nn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ln=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Pn(e){return String(e).replace(Nn,"").match(Ln)?e:"#"}function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Un(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function Hn(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bn(e,t)}(a,r.Component);var e,t,i=function(e){var t=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(e){return!1}}();return function(){var n,r=Fn(e);if(t){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(Pn(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=a,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,i=e.contentState.getEntity(r).getData(),a=i.url,s=i.targetOption,c=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:Pn(a),target:s},t),c&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Rn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},t}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(33),n(34);var Vn=function(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,i=e.contentState.getEntity(n).getData(),a=i.url,s=i.value;return o.a.createElement("a",{href:a||s,className:u()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));Vn.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var qn=Vn;function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(e,t){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qn(e){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gn(e,t,n){return t&&Zn(e.prototype,t),n&&Zn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Jn=Gn((function e(t){var n=this;$n(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===e.get("key")&&s.get("anchorKey")===s.get("focusKey")){var c=e.getText(),l=(c=c.substr(0,s.get("focusOffset")===c.length-1?c.length:s.get("focusOffset")+1)).lastIndexOf(o+i),u=o+i;if((void 0===l||l<0)&&c[0]===i&&(l=0,u=i),0<=l){var p=c.substr(l+u.length,c.length);a().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(p):0<=e.value.toLowerCase().indexOf(p&&p.toLowerCase()))}))&&t(0===l?0:l+1,c.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wn(e,t)}(n,r.Component);var e=function(e){var t=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(e){return!1}}();return function(){var n,r=Qn(e);if(t){var o=Qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(n);function n(){var r;$n(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=e.call.apply(e,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,b()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,i=t.separator,a=t.trigger,l=r.filteredSuggestions[e];l&&function(e,t,n,r,o){var i=o.value,a=o.url,l=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),u=Object(c.getSelectedBlock)(e).getText(),p=e.getSelection().focusOffset,d=(u.lastIndexOf(n+r,p)||0)+1,f=!1;u.length===d+1&&(p=u.length)," "===u[p]&&(f=!0);var h=e.getSelection().merge({anchorOffset:d,focusOffset:p}),m=s.EditorState.acceptSelection(e,h),g=s.Modifier.replaceText(m.getCurrentContent(),h,"".concat(r).concat(i),m.getCurrentInlineStyle(),l);m=s.EditorState.push(m,g,"insert-characters"),f||(h=m.getSelection().merge({anchorOffset:d+i.length+r.length,focusOffset:d+i.length+r.length}),m=s.EditorState.acceptSelection(m,h),g=s.Modifier.insertText(m.getCurrentContent(),h," ",m.getCurrentInlineStyle(),void 0)),t(s.EditorState.push(m,g,"insert-characters"))}(n,o,i,a,l)},r}return Gn(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:e=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),v(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),b(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,s=t.dropdownClassName,c=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.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",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:u()("rdw-suggestion-option",c,{"rdw-suggestion-option-active":n===i})},t.text)}))))}}]),n}()).propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=t.separator,l=t.trigger,p=t.getSuggestions,d=t.onChange,f=t.getEditorState,h=t.getWrapperRef,m=t.caseSensitive,g=t.dropdownClassName,w=t.optionClassName,E=t.modalHandler;this.config={separator:i,trigger:l,getSuggestions:p,onChange:d,getEditorState:f,getWrapperRef:h,caseSensitive:m,dropdownClassName:g,optionClassName:w,modalHandler:E}}));function Xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function er(e){var t=e.block,n=e.contentState.getEntity(t.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 tr=function(e,t,n){return t&&Xn(e.prototype,t),n&&Xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:u()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:a.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.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,s=r.substr(0,a);s&&0<s.length&&(t(i,i+s.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}));er.propTypes={block:a.a.object,contentState:a.a.object};var nr=er;function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var sr=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(a,r.Component);var t,n,i=function(e){var t=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(e){return!1}}();return function(){var n,r=ar(e);if(t){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var t;!function(e,t){if(!(e instanceof t))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(t=i.call.apply(i,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),e.onChange(s.EditorState.push(e.getEditorState(),i,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=a,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(L,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(L,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(L,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,i=this.state.hovered,a=e.isReadOnly,s=e.isImageAlignmentEnabled,c=r.getEntity(n.getEntityAt(0)).getData(),l=c.src,p=c.alignment,d=c.height,f=c.width,h=c.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:h,style:{height:d,width:f}}),!a()&&i&&s()?this.renderAlignmentOptions(p):void 0))}}])&&or(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},t},cr={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}},lr={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 ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pr(){return(pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var wr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(i,r.Component);var e,t,n=function(e){var t=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(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(s.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(c.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(c.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),S(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(mr(t.props.customDecorators),[{strategy:Un,component:Hn({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,mr(function(e){return[new qn(e.mentionClassName).getMentionDecorator(),new Jn(e).getSuggestionDecorator()]}(fr(fr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(function(e){return new tr(e).getHashtagDecorator()}(t.props.hashtag)),new s.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(s.convertToRaw)(e.getCurrentContent())),o&&o(Object(s.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(S(t.props,"editorState"))t.props.editorState&&(n=s.EditorState.set(t.props.editorState,{decorator:e}));else if(S(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=s.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(S(t.props,"contentState")){if(t.props.contentState){var r=Object(s.convertFromRaw)(t.props.contentState);n=s.EditorState.createWithContent(r,e),n=s.EditorState.moveSelectionToEnd(n)}}else if(S(t.props,"defaultContentState")||S(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),n=s.EditorState.createWithContent(o,e),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,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(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return fr(fr({},Object(c.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(s.convertFromRaw)(e),r=t.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var i=s.RichUtils.handleKeyCommand(r,e);if(i)return t.onChange(i),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(c.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(e,n,r,t.onChange):!a&&function(e,t,n,r){var o=Object(c.getSelectedBlock)(n);if(o&&"code"===o.type){var i=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(s.EditorState.push(n,i,"insert-characters")),!0}if(t){var a=M()(t),l=n.getCurrentContent();return a.entityMap.forEach((function(e,t){l=l.mergeEntityData(t,e)})),l=s.Modifier.replaceWithFragment(l,n.getSelection(),new j.List(a.contentBlocks)),r(s.EditorState.push(n,l,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=O(cr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new d,t.focusHandler=new m,t.blockRendererFn=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:sr(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:nr,editable:!1}}}}({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var a=t.createEditorState(t.compositeDecorator);return Object(c.extractInlineStyle)(a),t.state={editorState:a,editorFocused:!1,toolbar:r},t}return e=i,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=O(cr,i);t.toolbar=i}if(S(this.props,"editorState")&&r!==e.editorState)t.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(S(this.props,"contentState")&&o!==e.contentState)if(o){var a=this.changeEditorState(o);a&&(t.editorState=a)}else t.editorState=s.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(c.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,i=this.props,a=i.locale,l=i.localization,p=l.locale,d=l.translations,f=i.toolbarCustomButtons,h=i.toolbarOnFocus,m=i.toolbarClassName,g=i.toolbarHidden,v=i.editorClassName,b=i.wrapperClassName,w=i.toolbarStyle,_=i.editorStyle,S=i.wrapperStyle,C=i.uploadCallback,x=i.ariaLabel,O={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:fr(fr({},lr[a||p]),d)},k=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:u()(b,"rdw-editor-wrapper"),style:S,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&o.a.createElement("div",{className:u()("rdw-editor-toolbar",m),style:fr({visibility:k?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=An[e],i=r[e];return"image"===e&&C&&(i.uploadCallback=C),o.a.createElement(n,pr({key:t},O,{config:i}))})),f&&f.map((function(e,t){return o.a.cloneElement(e,fr({key:t},O))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:_,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:y.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(s.Editor,pr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:E,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:x||"rdw-editor",blockRenderMap:c.blockRenderMap},this.editorProps))))}}])&&yr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wr.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},wr.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var Er=wr}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}(n(51609),n(35143),n(49568))},44447:(e,t,n)=>{"use strict";var r=n(12242),o=n(14134);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},44823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SWEET_ALERT_DEFAULT_PROPS=void 0,t.SWEET_ALERT_DEFAULT_PROPS={allowEscape:!0,closeOnClickOutside:!0,inputType:"text",customClass:"",validationMsg:null,validationRegex:null,hideOverlay:!1,required:!0,disabled:!1,focusConfirmBtn:!0,focusCancelBtn:!1,showCloseButton:!1,confirmBtnBsStyle:"primary",cancelBtnBsStyle:"link",beforeMount:function(){},afterMount:function(){},beforeUpdate:null,afterUpdate:function(){},beforeUnmount:function(){},style:{},closeBtnStyle:{},timeout:0,openAnim:{name:"showSweetAlert",duration:300},closeAnim:!1,reverseButtons:!1,dependencies:[]}},45170:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242),i=n(30866),a=n(56408),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var l=n.getAnchorKey(),u=t.getBlockForKey(l).getLength();if(u===n.getAnchorOffset()){var p=t.getKeyAfter(l);if(null==p)return e;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",u)}else c=n;c=a(c),s=i(t,c);var d=r.removeRange(t,c,"forward");return d===t?e:o.push(e,d,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))n.call(i,l)&&(s[l]=i[l]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},45413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},45852:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},46059:(e,t,n)=>{"use strict";var r=n(65224),o=n(7376),i=n(77337),a=n(90646),s=i.OrderedMap,c=i.List,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),p=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),f=n.getParentKey(),h=i?n.getNextSiblingKey():s,m=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){l(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),l(d,e,(function(e){return e.merge({nextSibling:p})})),l(p,e,(function(e){return e.merge({prevSibling:d})})),l(h,e,(function(e){return e.merge({prevSibling:a})})),l(m,e,(function(e){return e.merge({nextSibling:a})})),l(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})})),l(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:m,parent:f})}))}))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var c=n.getKey(),l=t.getKey();l===c&&a(!1);var p=e.getBlockMap(),d=t instanceof r,f=[t],h=p.delete(l);d&&(f=[],h=p.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===l})).takeWhile((function(e){var t=e.getKey(),o=t===l,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){f.push(t),e.delete(t.getKey())}))})));var m=h.toSeq().takeUntil((function(e){return e===n})),g=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=f.map((function(e){return[e.getKey(),e]})),v=s();if("before"===i){var b=e.getBlockBefore(c);b&&b.getKey()===t.getKey()&&a(!1),v=m.concat([].concat(y,[[c,n]]),g).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===l&&a(!1),v=m.concat([[c,n]].concat(y),g).toOrderedMap()}return e.merge({blockMap:u(v,t,n,i,d),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:l,focusKey:l})})}},46892:(e,t,n)=>{"use strict";var r=n(8748),o=n(91617);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},46942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},47282:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},47340:(e,t,n)=>{window,e.exports=function(e,t){return o={},n.m=r=[function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},l=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},u=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=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 f(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return b}));var m=" ",g=new RegExp(" ","g"),y=!0;function v(e,t,n,o,m,g){var b=e.nodeName.toLowerCase();if(g){var w=g(b,e);if(w){var E=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:l(E)}}}if("#text"===b&&"\n"!==e.textContent)return i(e,t,m);if("br"===b)return{chunk:a()};if("img"===b&&e instanceof HTMLImageElement){var _={};_.src=e.getAttribute&&e.getAttribute("src")||e.src,_.alt=e.alt,_.height=e.style.height,_.width=e.style.width,e.style.float&&(_.alignment=e.style.float);var S=r.Entity.__create("IMAGE","MUTABLE",_);return{chunk:l(S)}}if("video"===b&&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 x=r.Entity.__create("VIDEO","MUTABLE",C);return{chunk:l(x)}}if("iframe"===b&&e instanceof HTMLIFrameElement){var O={};O.src=e.getAttribute&&e.getAttribute("src")||e.src,O.height=e.height,O.width=e.width;var k=r.Entity.__create("EMBEDDED_LINK","MUTABLE",O);return{chunk:l(k)}}var M,j=function(e,t){var n=p.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,o);j&&("ul"===b||"ol"===b?(o=b,n+=1):("unordered-list-item"!==j&&"ordered-list-item"!==j&&(o="",n=-1),y?(M=s(j,f(e)),y=!1):M=c(j,n,f(e)))),M=M||{text:"",inlines:[],entities:[],blocks:[]},t=function(e,t,n){var r,o=d[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,c=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(d.strong),"underline"===s&&e.add(d.ins),"italic"===c&&e.add(d.em)})).toOrderedSet()}return r}(b,e,t);for(var D=e.firstChild;D;){var I=v(D,t,n,o,h(D)||m,g).chunk;M=u(M,I),D=D.nextSibling}return{chunk:M}}function b(e,t){var n,i,a=(n=t,(i=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(g,m)))?(y=!0,{chunk:v(i,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(a){var s=a.chunk,c=new o.OrderedMap({});s.entities&&s.entities.forEach((function(e){e&&(c=c.set(e,r.Entity.__get(e)))}));var l=0;return{contentBlocks:s.text.split("\r").map((function(e,t){var n=l+e.length,i=s&&s.inlines.slice(l,n),a=s&&s.entities.slice(l,n),c=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return l=n,new r.ContentBlock({key:Object(r.genKey)(),type:s&&s.blocks[t]&&s.blocks[t].type||"unstyled",depth:s&&s.blocks[t]&&s.blocks[t].depth,data:s&&s.blocks[t]&&s.blocks[t].data||new o.Map({}),text:e,characterList:c})})),entityMap:c}}return null}}],n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o}(n(49568),n(35143))},47378:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(14134),i=n(88372),a=n(35389),s=n(77337),c=n(90646),l=n(56408),u=s.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},d=o.isBrowser("IE <= 11"),f=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=u();var n=a(e);n.MutationObserver&&!d?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=u(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return d?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=l(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=f},47381:(e,t,n)=>{"use strict";var r=n(12242),o=n(50580),i=n(58488),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},48136:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242),i=n(59414),a=n(45852),s=n(45170),c=n(14134),l=n(73680),u=n(88771),p=n(94143),d=n(70525),f=n(64071),h=n(15169),m=n(20070),g=n(47381),y=n(2383),v=n(25935),b=n(8976),w=i.isOptionKeyCommand,E=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function c(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&l(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:E&&w(t)&&t.preventDefault()}var _=e.props.keyBindingFn(t);if(null!=_&&""!==_)if("undo"!==_){if(t.preventDefault(),!e.props.handleKeyCommand||!l(e.props.handleKeyCommand(_,i,t.timeStamp))){var S=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return d(t);case"backspace":return g(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return u(t,n);case"split-block":return f(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(_,i,t);S!==i&&e.update(S)}}else b(t,i,e.update);else if(n===a.SPACE&&E&&w(t)){var C=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,C,"insert-characters"))}}},49403:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=i(n(42214));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconWarning)},s.default.createElement("span",{style:c.iconWarningBody}),s.default.createElement("span",{style:c.iconWarningDot}))}},49568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Collection:()=>C,Iterable:()=>xr,List:()=>on,Map:()=>Nt,OrderedMap:()=>bn,OrderedSet:()=>sr,PairSorting:()=>dr,Range:()=>Vn,Record:()=>fr,Repeat:()=>wr,Seq:()=>W,Set:()=>zn,Stack:()=>On,default:()=>Or,fromJS:()=>Er,get:()=>ot,getIn:()=>qn,has:()=>rt,hasIn:()=>Wn,hash:()=>fe,is:()=>le,isAssociative:()=>S,isCollection:()=>v,isImmutable:()=>T,isIndexed:()=>_,isKeyed:()=>w,isList:()=>rn,isMap:()=>ae,isOrdered:()=>N,isOrderedMap:()=>se,isOrderedSet:()=>An,isPlainObject:()=>et,isRecord:()=>I,isSeq:()=>j,isSet:()=>Tn,isStack:()=>xn,isValueObject:()=>ce,merge:()=>wt,mergeDeep:()=>_t,mergeDeepWith:()=>St,mergeWith:()=>Et,remove:()=>at,removeIn:()=>dt,set:()=>st,setIn:()=>ut,update:()=>ht,updateIn:()=>ct,version:()=>Cr});var r="delete",o=32,i=31,a={};function s(e){e&&(e.value=!0)}function c(){}function l(e){return void 0===e.size&&(e.size=e.__iterate(p)),e.size}function u(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function p(){return!0}function d(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function f(e,t){return m(e,t,0)}function h(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function v(e){return Boolean(e&&e[y])}var b="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[b])}var E="@@__IMMUTABLE_INDEXED__@@";function _(e){return Boolean(e&&e[E])}function S(e){return w(e)||_(e)}var C=function(e){return v(e)?e:W(e)},x=function(e){function t(e){return w(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),O=function(e){function t(e){return _(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),k=function(e){function t(e){return v(e)&&!S(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C);C.Keyed=x,C.Indexed=O,C.Set=k;var M="@@__IMMUTABLE_SEQ__@@";function j(e){return Boolean(e&&e[M])}var D="@@__IMMUTABLE_RECORD__@@";function I(e){return Boolean(e&&e[D])}function T(e){return v(e)||I(e)}var A="@@__IMMUTABLE_ORDERED__@@";function N(e){return Boolean(e&&e[A])}var L="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",z=L||P,R=function(e){this.next=e};function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function U(e){return!!Array.isArray(e)||!!V(e)}function H(e){return e&&"function"==typeof e.next}function K(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(L&&e[L]||e[P]);if("function"==typeof t)return t}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[z]=function(){return this};var q=Object.prototype.hasOwnProperty;function Y(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var W=function(e){function t(e){return null==e?te():T(e)?e.toSeq():function(e){var t,n,r=oe(e);if(r)return(n=V(t=e))&&n===t.entries?r.fromEntrySeq():function(e){var t=V(e);return t&&t===e.keys}(e)?r.toSetSeq():r;if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new R((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return B(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(C),Q=function(e){function t(e){return null==e?te().toKeyedSeq():v(e)?w(e)?e.toSeq():e.fromEntrySeq():I(e)?e.toSeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(W),Z=function(e){function t(e){return null==e?te():v(e)?w(e)?e.entrySeq():e.toIndexedSeq():I(e)?e.toSeq().entrySeq():re(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(W),G=function(e){function t(e){return(v(e)&&!S(e)?e:Z(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(W);W.isSeq=j,W.Keyed=Q,W.Set=G,W.Indexed=Z,W.prototype[M]=!0;var $=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new R((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return B(e,i,n[i])}))},t}(Z),J=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return q.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new R((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return B(e,a,n[a])}))},t}(Q);J.prototype[A]=!0;var X,ee=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._collection),r=0;if(H(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._collection);if(!H(n))return new R(F);var r=0;return new R((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t}(Z);function te(){return X||(X=new $([]))}function ne(e){var t=oe(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function re(e){var t=oe(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function oe(e){return Y(e)?new $(e):U(e)?new ee(e):void 0}var ie="@@__IMMUTABLE_MAP__@@";function ae(e){return Boolean(e&&e[ie])}function se(e){return ae(e)&&N(e)}function ce(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function le(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(ce(e)&&ce(t)&&e.equals(t))}var ue="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function pe(e){return e>>>1&1073741824|3221225471&e}var de=Object.prototype.valueOf;function fe(e){if(null==e)return he(e);if("function"==typeof e.hashCode)return pe(e.hashCode(e));var t,n,r,o=(t=e).valueOf!==de&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==o)return he(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return pe(t)}(o);case"string":return o.length>Ce?(void 0===(r=ke[n=o])&&(r=me(n),Oe===xe&&(Oe=0,ke={}),Oe++,ke[n]=r),r):me(o);case"object":case"function":return function(e){var t;if(we&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Se]))return t;if(!ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Se]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ve(),we)be.set(e,t);else{if(void 0!==ge&&!1===ge(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ye)Object.defineProperty(e,Se,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Se]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Se]=t}}return t}(o);case"symbol":return function(e){var t=Ee[e];return void 0!==t||(t=ve(),Ee[e]=t),t}(o);default:if("function"==typeof o.toString)return me(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function he(e){return null===e?1108378658:1108378659}function me(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return pe(t)}var ge=Object.isExtensible,ye=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ve(){var e=++_e;return 1073741824&_e&&(_e=0),e}var be,we="function"==typeof WeakMap;we&&(be=new WeakMap);var Ee=Object.create(null),_e=0,Se="__immutablehash__";"function"==typeof Symbol&&(Se=Symbol(Se));var Ce=16,xe=255,Oe=0,ke={},Me=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Ne(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ae(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Q);Me.prototype[A]=!0;var je=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&l(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&l(this),new R((function(){var i=r.next();return i.done?i:B(e,t?n.size-++o:o++,i.value,i)}))},t}(Z),De=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new R((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t}(G),Ie=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ve(t);var r=v(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new R((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ve(r);var o=v(r);return B(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(Q);function Te(e){var t=Ye(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=We,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new R((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Ae(e,t,n){var r=Ye(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,a);return i===a?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new R((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return B(r,s,t.call(n,a[1],s,e),o)}))},r}function Ne(e,t){var n=this,r=Ye(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Te(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=We,r.__iterate=function(n,r){var o=this,i=0;return r&&l(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&l(e);var a=e.__iterator(2,!o);return new R((function(){var e=a.next();if(e.done)return e;var s=e.value;return B(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function Le(e,t,n,r){var o=Ye(e);return r&&(o.has=function(r){var o=e.get(r,a);return o!==a&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,a);return i!==a&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new R((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return B(o,r?l:s++,u,i)}}))},o}function Pe(e,t,n,r){var o=e.size;if(d(t,n,o))return e;if(void 0===o&&(t<0||n<0))return Pe(e.toSeq().cacheResult(),t,n,r);var i,a=f(t,o),s=h(n,o)-a;s==s&&(i=s<0?0:s);var c=Ye(e);return c.size=0===i?i:e.size&&i||void 0,!r&&j(e)&&i>=0&&(c.get=function(t,n){return(t=u(this,t))>=0&&t<i?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===i)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,c=!0,l=0;return e.__iterate((function(e,n){if(!c||!(c=s++<a))return l++,!1!==t(e,r?n:l-1,o)&&l!==i})),l},c.__iteratorUncached=function(t,n){if(0!==i&&n)return this.cacheResult().__iterator(t,n);if(0===i)return new R(F);var o=e.__iterator(t,n),s=0,c=0;return new R((function(){for(;s++<a;)o.next();if(++c>i)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:B(t,c-1,0===t?void 0:e.value[1],e)}))},c}function ze(e,t,n,r){var o=Ye(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,l=0;return new R((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:B(o,l++,0===o?void 0:e.value[1],e);var p=e.value;i=p[0],u=p[1],c&&(c=t.call(n,u,i,a))}while(c);return 2===o?e:B(o,i,u,e)}))},o}function Re(e,t,n){var r=Ye(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(c,l){c.__iterate((function(i,c){return(!t||l<t)&&v(i)?e(i,l+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new R((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(a.length<t)||!v(c))return n?e:B(r,s++,c,e);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Be(e,t,n){t||(t=Qe);var r=w(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?Q(i):_(e)?Z(i):G(i)}function Fe(e,t,n){if(t||(t=Qe),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Ue(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Ue(t,e,n)?n:e}))}function Ue(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function He(e,t,n,r){var o=Ye(e),i=new $(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=C(e),K(o?e.reverse():e)})),a=0,s=!1;return new R((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:B(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ke(e,t){return e===t?e:j(e)?t:e.constructor(t)}function Ve(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qe(e){return w(e)?x:_(e)?O:k}function Ye(e){return Object.create((w(e)?Q:_(e)?Z:G).prototype)}function We(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Qe(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Ze(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function Ge(e,t){if(!e)throw new Error(t)}function $e(e){Ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Je(e){if(Y(e)&&"string"!=typeof e)return e;if(N(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}je.prototype.cacheResult=Me.prototype.cacheResult=De.prototype.cacheResult=Ie.prototype.cacheResult=We;var Xe=Object.prototype.toString;function et(e){if(!e||"object"!=typeof e||"[object Object]"!==Xe.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function tt(e){return"object"==typeof e&&(T(e)||Array.isArray(e)||et(e))}function nt(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function rt(e,t){return T(e)?e.has(t):tt(e)&&q.call(e,t)}function ot(e,t,n){return T(e)?e.get(t,n):rt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function it(e){if(Array.isArray(e))return Ze(e);var t={};for(var n in e)q.call(e,n)&&(t[n]=e[n]);return t}function at(e,t){if(!tt(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(T(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!q.call(e,t))return e;var n=it(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function st(e,t,n){if(!tt(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(T(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(q.call(e,t)&&n===e[t])return e;var r=it(e);return r[t]=n,r}function ct(e,t,n,r){r||(r=n,n=void 0);var o=lt(T(e),e,Je(t),0,n,r);return o===a?n:o}function lt(e,t,n,r,o,i){var s=t===a;if(r===n.length){var c=s?o:t,l=i(c);return l===c?t:l}if(!s&&!tt(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(nt)+"]: "+t);var u=n[r],p=s?a:ot(t,u,a),d=lt(p===a?e:T(p),p,n,r+1,o,i);return d===p?t:d===a?at(t,u):st(s?e?Yt():{}:t,u,d)}function ut(e,t,n){return ct(e,t,a,(function(){return n}))}function pt(e,t){return ut(this,e,t)}function dt(e,t){return ct(e,t,(function(){return a}))}function ft(e){return dt(this,e)}function ht(e,t,n,r){return ct(e,[t],n,r)}function mt(e,t,n){return 1===arguments.length?e(this):ht(this,e,t,n)}function gt(e,t,n){return ct(this,e,t,n)}function yt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return bt(this,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return bt(this,t,e)}function bt(e,t,n){for(var r=[],o=0;o<t.length;o++){var i=x(t[o]);0!==i.size&&r.push(i)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){ht(e,r,a,(function(e){return e===a?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},o=0;o<r.length;o++)r[o].forEach(t)})):e.constructor(r[0])}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xt(e,t)}function Et(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return xt(t,n,e)}function _t(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ct(e,t)}function St(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ct(t,n,e)}function Ct(e,t,n){return xt(e,t,function(e){return function t(n,r,o){return tt(n)&&tt(r)&&(i=r,a=W(n),s=W(i),_(a)===_(s)&&w(a)===w(s))?xt(n,[r],t):e?e(n,r,o):r;var i,a,s}}(n))}function xt(e,t,n){if(!tt(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(T(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?O:x,a=r?function(t){o===e&&(o=it(o)),o.push(t)}:function(t,r){var i=q.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=it(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function Ot(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ct(this,e)}function kt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ct(this,t,e)}function Mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(this,e,Yt(),(function(e){return xt(e,t)}))}function jt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(this,e,Yt(),(function(e){return Ct(e,t)}))}function Dt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function It(){return this.__ownerID?this:this.__ensureOwner(new c)}function Tt(){return this.__ensureOwner()}function At(){return this.__altered}var Nt=function(e){function t(t){return null==t?Yt():ae(t)&&!N(t)?t:Yt().withMutations((function(n){var r=e(t);$e(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Yt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Wt(this,e,t)},t.prototype.remove=function(e){return Wt(this,e,a)},t.prototype.deleteAll=function(e){var t=C(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Yt()},t.prototype.sort=function(e){return bn(Be(this,e))},t.prototype.sortBy=function(e,t){return bn(Be(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,e.call(t,o,i,n))}))}))},t.prototype.__iterator=function(e,t){return new Ht(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qt(this.size,this._root,e,this.__hash):0===this.size?Yt():(this.__ownerID=e,this.__altered=!1,this)},t}(x);Nt.isMap=ae;var Lt=Nt.prototype;Lt[ie]=!0,Lt[r]=Lt.remove,Lt.removeAll=Lt.deleteAll,Lt.setIn=pt,Lt.removeIn=Lt.deleteIn=ft,Lt.update=mt,Lt.updateIn=gt,Lt.merge=Lt.concat=yt,Lt.mergeWith=vt,Lt.mergeDeep=Ot,Lt.mergeDeepWith=kt,Lt.mergeIn=Mt,Lt.mergeDeepIn=jt,Lt.withMutations=Dt,Lt.wasAltered=At,Lt.asImmutable=Tt,Lt["@@transducer/init"]=Lt.asMutable=It,Lt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Lt["@@transducer/result"]=function(e){return e.asImmutable()};var Pt=function(e,t){this.ownerID=e,this.entries=t};Pt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(le(n,o[i][0]))return o[i][1];return r},Pt.prototype.update=function(e,t,n,r,o,i,l){for(var u=o===a,p=this.entries,d=0,f=p.length;d<f&&!le(r,p[d][0]);d++);var h=d<f;if(h?p[d][1]===o:u)return this;if(s(l),(u||!h)&&s(i),!u||1!==p.length){if(!h&&!u&&p.length>=Xt)return function(e,t,n,r){e||(e=new c);for(var o=new Ft(e,fe(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,p,r,o);var m=e&&e===this.ownerID,g=m?p:Ze(p);return h?u?d===f-1?g.pop():g[d]=g.pop():g[d]=[r,o]:g.push([r,o]),m?(this.entries=g,this):new Pt(e,g)}};var zt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};zt.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var o=1<<((0===e?t:t>>>e)&i),a=this.bitmap;return a&o?this.nodes[$t(a&o-1)].get(e+5,t,n,r):r},zt.prototype.update=function(e,t,n,r,s,c,l){void 0===n&&(n=fe(r));var u=(0===t?n:n>>>t)&i,p=1<<u,d=this.bitmap,f=!!(d&p);if(!f&&s===a)return this;var h=$t(d&p-1),m=this.nodes,g=f?m[h]:void 0,y=Qt(g,e,t+5,n,r,s,c,l);if(y===g)return this;if(!f&&y&&m.length>=en)return function(e,t,n,r,i){for(var a=0,s=new Array(o),c=0;0!==n;c++,n>>>=1)s[c]=1&n?t[a++]:void 0;return s[r]=i,new Rt(e,a+1,s)}(e,m,d,u,y);if(f&&!y&&2===m.length&&Zt(m[1^h]))return m[1^h];if(f&&y&&1===m.length&&Zt(y))return y;var v=e&&e===this.ownerID,b=f?y?d:d^p:d|p,w=f?y?Jt(m,h,y,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(m,h,v):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(m,h,y,v);return v?(this.bitmap=b,this.nodes=w,this):new zt(e,b,w)};var Rt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Rt.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var o=(0===e?t:t>>>e)&i,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},Rt.prototype.update=function(e,t,n,r,o,s,c){void 0===n&&(n=fe(r));var l=(0===t?n:n>>>t)&i,u=o===a,p=this.nodes,d=p[l];if(u&&!d)return this;var f=Qt(d,e,t+5,n,r,o,s,c);if(f===d)return this;var h=this.count;if(d){if(!f&&--h<tn)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=c,a[i++]=u)}return new zt(e,o,a)}(e,p,h,l)}else h++;var m=e&&e===this.ownerID,g=Jt(p,l,f,m);return m?(this.count=h,this.nodes=g,this):new Rt(e,h,g)};var Bt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Bt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(le(n,o[i][0]))return o[i][1];return r},Bt.prototype.update=function(e,t,n,r,o,i,c){void 0===n&&(n=fe(r));var l=o===a;if(n!==this.keyHash)return l?this:(s(c),s(i),Gt(this,e,t,n,[r,o]));for(var u=this.entries,p=0,d=u.length;p<d&&!le(r,u[p][0]);p++);var f=p<d;if(f?u[p][1]===o:l)return this;if(s(c),(l||!f)&&s(i),l&&2===d)return new Ft(e,this.keyHash,u[1^p]);var h=e&&e===this.ownerID,m=h?u:Ze(u);return f?l?p===d-1?m.pop():m[p]=m.pop():m[p]=[r,o]:m.push([r,o]),h?(this.entries=m,this):new Bt(e,this.keyHash,m)};var Ft=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Ft.prototype.get=function(e,t,n,r){return le(n,this.entry[0])?this.entry[1]:r},Ft.prototype.update=function(e,t,n,r,o,i,c){var l=o===a,u=le(r,this.entry[0]);return(u?o===this.entry[1]:l)?this:(s(c),l?void s(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Ft(e,this.keyHash,[r,o]):(s(i),Gt(this,e,t,fe(r),[r,o])))},Pt.prototype.iterate=Bt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},zt.prototype.iterate=Rt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ft.prototype.iterate=function(e,t){return e(this.entry)};var Ut,Ht=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Vt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Kt(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Kt(e,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 Kt(e,i.entry);t=this._stack=Vt(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(R);function Kt(e,t){return B(e,t[0],t[1])}function Vt(e,t){return{node:e,index:0,__prev:t}}function qt(e,t,n,r){var o=Object.create(Lt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Yt(){return Ut||(Ut=qt(0))}function Wt(e,t,n){var r,o;if(e._root){var i={value:!1},s={value:!1};if(r=Qt(e._root,e.__ownerID,0,void 0,t,n,i,s),!s.value)return e;o=e.size+(i.value?n===a?-1:1:0)}else{if(n===a)return e;o=1,r=new Pt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?qt(o,r):Yt()}function Qt(e,t,n,r,o,i,c,l){return e?e.update(t,n,r,o,i,c,l):i===a?e:(s(l),s(c),new Ft(t,r,[o,i]))}function Zt(e){return e.constructor===Ft||e.constructor===Bt}function Gt(e,t,n,r,o){if(e.keyHash===r)return new Bt(t,r,[e.entry,o]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&i,c=(0===n?r:r>>>n)&i,l=s===c?[Gt(e,t,n+5,r,o)]:(a=new Ft(t,r,o),s<c?[e,a]:[a,e]);return new zt(t,1<<s|1<<c,l)}function $t(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Jt(e,t,n,r){var o=r?e:Ze(e);return o[t]=n,o}var Xt=8,en=16,tn=8,nn="@@__IMMUTABLE_LIST__@@";function rn(e){return Boolean(e&&e[nn])}var on=function(e){function t(t){var n=dn();if(null==t)return n;if(rn(t))return t;var r=e(t),i=r.size;return 0===i?n:($e(i),i>0&&i<o?pn(0,i,5,null,new sn(r.toArray())):n.withMutations((function(e){e.setSize(i),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=u(this,e))>=0&&e<this.size){var n=mn(this,e+=this._origin);return n&&n.array[e&i]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=u(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?gn(e,t).set(0,n):gn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};return t>=yn(e._capacity)?r=fn(r,e.__ownerID,0,t,n,i):o=fn(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pn(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.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):dn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return gn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){gn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return gn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&U(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(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return gn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,n))}))},t.prototype.slice=function(e,t){var n=this.size;return d(e,t,n)?this:gn(this,f(e,n),h(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=un(this,t);return new R((function(){var o=r();return o===ln?{value:void 0,done:!0}:B(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=un(this,t);(n=o())!==ln&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?pn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?dn():(this.__ownerID=e,this.__altered=!1,this)},t}(O);on.isList=rn;var an=on.prototype;an[nn]=!0,an[r]=an.remove,an.merge=an.concat,an.setIn=pt,an.deleteIn=an.removeIn=ft,an.update=mt,an.updateIn=gt,an.mergeIn=Mt,an.mergeDeepIn=jt,an.withMutations=Dt,an.wasAltered=At,an.asImmutable=Tt,an["@@transducer/init"]=an.asMutable=It,an["@@transducer/step"]=function(e,t){return e.push(t)},an["@@transducer/result"]=function(e){return e.asImmutable()};var sn=function(e,t){this.array=e,this.ownerID=t};sn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&i;if(r>=this.array.length)return new sn([],e);var o,a=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!o)return this;var c=hn(this,e);if(!a)for(var l=0;l<r;l++)c.array[l]=void 0;return o&&(c.array[r]=o),c},sn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&i;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var s=hn(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var cn,ln={};function un(e,t){var n=e._origin,r=e._capacity,i=yn(r),a=e._tail;return function e(s,c,l){return 0===c?function(e,s){var c=s===i?a&&a.array:e&&e.array,l=s>n?0:n-s,u=r-s;return u>o&&(u=o),function(){if(l===u)return ln;var e=t?--u:l++;return c&&c[e]}}(s,l):function(i,a,s){var c,l=i&&i.array,u=s>n?0:n-s>>a,p=1+(r-s>>a);return p>o&&(p=o),function(){for(;;){if(c){var n=c();if(n!==ln)return n;c=null}if(u===p)return ln;var r=t?--p:u++;c=e(l&&l[r],a-5,s+(r<<a))}}}(s,c,l)}(e._root,e._level,0)}function pn(e,t,n,r,o,i,a){var s=Object.create(an);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function dn(){return cn||(cn=pn(0,0,5))}function fn(e,t,n,r,o,a){var c,l=r>>>n&i,u=e&&l<e.array.length;if(!u&&void 0===o)return e;if(n>0){var p=e&&e.array[l],d=fn(p,t,n-5,r,o,a);return d===p?e:((c=hn(e,t)).array[l]=d,c)}return u&&e.array[l]===o?e:(a&&s(a),c=hn(e,t),void 0===o&&l===c.array.length-1?c.array.pop():c.array[l]=o,c)}function hn(e,t){return t&&e&&t===e.ownerID?e:new sn(e?e.array.slice():[],t)}function mn(e,t){if(t>=yn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&i],r-=5;return n}}function gn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new c,o=e._origin,a=e._capacity,s=o+t,l=void 0===n?a:n<0?a+n:o+n;if(s===o&&l===a)return e;if(s>=l)return e.clear();for(var u=e._level,p=e._root,d=0;s+d<0;)p=new sn(p&&p.array.length?[void 0,p]:[],r),d+=1<<(u+=5);d&&(s+=d,o+=d,l+=d,a+=d);for(var f=yn(a),h=yn(l);h>=1<<u+5;)p=new sn(p&&p.array.length?[p]:[],r),u+=5;var m=e._tail,g=h<f?mn(e,l-1):h>f?new sn([],r):m;if(m&&h>f&&s<a&&m.array.length){for(var y=p=hn(p,r),v=u;v>5;v-=5){var b=f>>>v&i;y=y.array[b]=hn(y.array[b],r)}y.array[f>>>5&i]=m}if(l<a&&(g=g&&g.removeAfter(r,0,l)),s>=h)s-=h,l-=h,u=5,p=null,g=g&&g.removeBefore(r,0,s);else if(s>o||h<f){for(d=0;p;){var w=s>>>u&i;if(w!==h>>>u&i)break;w&&(d+=(1<<u)*w),u-=5,p=p.array[w]}p&&s>o&&(p=p.removeBefore(r,u,s-d)),p&&h<f&&(p=p.removeAfter(r,u,h-d)),d&&(s-=d,l-=d)}return e.__ownerID?(e.size=l-s,e._origin=s,e._capacity=l,e._level=u,e._root=p,e._tail=g,e.__hash=void 0,e.__altered=!0,e):pn(s,l,u,p,g)}function yn(e){return e<o?0:e-1>>>5<<5}var vn,bn=function(e){function t(e){return null==e?En():se(e)?e:En().withMutations((function(t){var n=x(e);$e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):En()},t.prototype.set=function(e,t){return Sn(this,e,t)},t.prototype.remove=function(e){return Sn(this,e,a)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?wn(t,n,e,this.__hash):0===this.size?En():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Nt);function wn(e,t,n,r){var o=Object.create(bn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function En(){return vn||(vn=wn(Yt(),dn()))}function Sn(e,t,n){var r,i,s=e._map,c=e._list,l=s.get(t),u=void 0!==l;if(n===a){if(!u)return e;c.size>=o&&c.size>=2*s.size?(r=(i=c.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=l===c.size-1?c.pop():c.set(l,void 0))}else if(u){if(n===c.get(l)[1])return e;r=s,i=c.set(l,[t,n])}else r=s.set(t,c.size),i=c.set(c.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):wn(r,i)}bn.isOrderedMap=se,bn.prototype[A]=!0,bn.prototype[r]=bn.prototype.remove;var Cn="@@__IMMUTABLE_STACK__@@";function xn(e){return Boolean(e&&e[Cn])}var On=function(e){function t(e){return null==e?Dn():xn(e)?e:Dn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&xn(t))return t;$e(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):jn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.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):Dn()},t.prototype.slice=function(t,n){if(d(t,n,this.size))return this;var r=f(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,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):jn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):0===this.size?Dn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new $(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new $(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new R((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}}))},t}(O);On.isStack=xn;var kn,Mn=On.prototype;function jn(e,t,n,r){var o=Object.create(Mn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return kn||(kn=jn(0))}Mn[Cn]=!0,Mn.shift=Mn.pop,Mn.unshift=Mn.push,Mn.unshiftAll=Mn.pushAll,Mn.withMutations=Dt,Mn.wasAltered=At,Mn.asImmutable=Tt,Mn["@@transducer/init"]=Mn.asMutable=It,Mn["@@transducer/step"]=function(e,t){return e.unshift(t)},Mn["@@transducer/result"]=function(e){return e.asImmutable()};var In="@@__IMMUTABLE_SET__@@";function Tn(e){return Boolean(e&&e[In])}function An(e){return Tn(e)&&N(e)}function Nn(e,t){if(e===t)return!0;if(!v(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||w(e)!==w(t)||_(e)!==_(t)||N(e)!==N(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!S(e);if(N(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&le(o[1],e)&&(n||le(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,c=t.__iterate((function(t,r){if(n?!e.has(t):o?!le(t,e.get(r,a)):!le(e.get(r,a),t))return s=!1,!1}));return s&&e.size===c}function Ln(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Pn(e){if(!e||"object"!=typeof e)return e;if(!v(e)){if(!tt(e))return e;e=W(e)}if(w(e)){var t={};return e.__iterate((function(e,n){t[n]=Pn(e)})),t}var n=[];return e.__iterate((function(e){n.push(Pn(e))})),n}var zn=function(e){function t(t){return null==t?Hn():Tn(t)&&!N(t)?t:Hn().withMutations((function(n){var r=e(t);$e(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(x(e).keySeq())},t.intersect=function(e){return(e=C(e).toArray()).length?Bn.intersect.apply(t(e.pop()),e):Hn()},t.union=function(e){return(e=C(e).toArray()).length?Bn.union.apply(t(e.pop()),e):Hn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Fn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Fn(this,this._map.remove(e))},t.prototype.clear=function(){return Fn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Fn(this,this._map.mapEntries((function(o){var i=o[1],a=e.call(t,i,i,n);return a!==i&&(r=!0),[a,a]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return sr(Be(this,e))},t.prototype.sortBy=function(e,t){return sr(Be(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(k);zn.isSet=Tn;var Rn,Bn=zn.prototype;function Fn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Un(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Rn||(Rn=Un(Yt()))}Bn[In]=!0,Bn[r]=Bn.remove,Bn.merge=Bn.concat=Bn.union,Bn.withMutations=Dt,Bn.asImmutable=Tt,Bn["@@transducer/init"]=Bn.asMutable=It,Bn["@@transducer/step"]=function(e,t){return e.add(t)},Bn["@@transducer/result"]=function(e){return e.asImmutable()},Bn.__empty=Hn,Bn.__make=Un;var Kn,Vn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ge(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Kn)return Kn;Kn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+u(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return d(e,n,this.size)?this:(e=f(e,this.size),(n=h(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new R((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,B(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Nn(this,e)},t}(Z);function qn(e,t,n){for(var r=Je(t),o=0;o!==r.length;)if((e=ot(e,r[o++],a))===a)return n;return e}function Yn(e,t){return qn(this,e,t)}function Wn(e,t){return qn(e,t,a)!==a}function Qn(){$e(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}C.isIterable=v,C.isKeyed=w,C.isIndexed=_,C.isAssociative=S,C.isOrdered=N,C.Iterator=R,Ln(C,{toArray:function(){$e(this.size);var e=new Array(this.size||0),t=w(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new je(this)},toJS:function(){return Pn(this)},toKeyedSeq:function(){return new Me(this,!0)},toMap:function(){return Nt(this.toKeyedSeq())},toObject:Qn,toOrderedMap:function(){return bn(this.toKeyedSeq())},toOrderedSet:function(){return sr(w(this)?this.valueSeq():this)},toSet:function(){return zn(w(this)?this.valueSeq():this)},toSetSeq:function(){return new De(this)},toSeq:function(){return _(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return On(w(this)?this.valueSeq():this)},toList:function(){return on(w(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ke(this,function(e,t){var n=w(e),r=[e].concat(t).map((function(e){return v(e)?n&&(e=x(e)):e=n?ne(e):re(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&w(o)||_(e)&&_(o))return o}var i=new $(r);return n?i=i.toKeyedSeq():_(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}(this,e))},includes:function(e){return this.some((function(t){return le(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){$e(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Ke(this,Le(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=w(e),o=[[],[]];e.__iterate((function(i,a){o[t.call(n,i,a,e)?1:0].push(r?[a,i]:i)}));var i=qe(e);return o.map((function(t){return Ke(e,i(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return $e(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){$e(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ke(this,Ae(this,e,t))},reduce:function(e,t,n){return Xn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Xn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Ke(this,Ne(this,!0))},slice:function(e,t){return Ke(this,Pe(this,e,t,!0))},some:function(e,t){$e(this.size);var n=!1;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=!0,!1})),n},sort:function(e){return Ke(this,Be(this,e))},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(e,t){return l(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Nt().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Nn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new $(e._cache);var t=e.toSeq().map(tr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(nr(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(p,null,e)},flatMap:function(e,t){return Ke(this,function(e,t,n){var r=qe(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ke(this,Re(this,e,!0))},fromEntrySeq:function(){return new Ie(this)},get:function(e,t){return this.find((function(t,n){return le(n,e)}),void 0,t)},getIn:Yn,groupBy:function(e,t){return function(e,t,n){var r=w(e),o=(N(e)?bn():Nt()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=qe(e);return o.map((function(t){return Ke(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,a)!==a},hasIn:function(e){return Wn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:C(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:C(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return le(t,e)}))},keySeq:function(){return this.toSeq().map(er).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Fe(this,e)},maxBy:function(e,t){return Fe(this,t,e)},min:function(e){return Fe(this,e?rr(e):ir)},minBy:function(e,t){return Fe(this,t?rr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Ke(this,ze(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(nr(e),t)},sortBy:function(e,t){return Ke(this,Be(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Ke(this,function(e,t,n){var r=Ye(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new R((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?2===r?e:B(r,c,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(nr(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=N(e),n=w(e),r=t?1:0;return function(e,t){return t=ue(t,3432918353),t=ue(t<<15|t>>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=ue((t=t+3864292196^e)^t>>>16,2246822507),t=pe((t=ue(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+ar(fe(e),fe(t))|0}:function(e,t){r=r+ar(fe(e),fe(t))|0}:t?function(e){r=31*r+fe(e)|0}:function(e){r=r+fe(e)|0}),r)}(this))}});var Zn=C.prototype;Zn[y]=!0,Zn[z]=Zn.values,Zn.toJSON=Zn.toArray,Zn.__toStringMapper=nt,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,Ln(x,{flip:function(){return Ke(this,Te(this))},mapEntries:function(e,t){var n=this,r=0;return Ke(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ke(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Gn=x.prototype;Gn[b]=!0,Gn[z]=Zn.entries,Gn.toJSON=Qn,Gn.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Ln(O,{toKeyedSeq:function(){return new Me(this,!1)},filter:function(e,t){return Ke(this,Le(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ke(this,Ne(this,!1))},slice:function(e,t){return Ke(this,Pe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ke(this,1===n?r:r.concat(Ze(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ke(this,Re(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Ke(this,function(e,t){var n=Ye(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new R((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?B(n,a++,t):B(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Ze(arguments)),t=He(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Ke(this,n)},keySeq:function(){return Vn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Ke(this,ze(this,e,t,!1))},zip:function(){return Ke(this,He(this,or,[this].concat(Ze(arguments))))},zipAll:function(){return Ke(this,He(this,or,[this].concat(Ze(arguments)),!0))},zipWith:function(e){var t=Ze(arguments);return t[0]=this,Ke(this,He(this,e,t))}});var $n=O.prototype;$n[E]=!0,$n[A]=!0,Ln(k,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Jn=k.prototype;function Xn(e,t,n,r,o,i){return $e(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function er(e,t){return t}function tr(e,t){return[t,e]}function nr(e){return function(){return!e.apply(this,arguments)}}function rr(e){return function(){return-e.apply(this,arguments)}}function or(){return Ze(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e,t){return e^t+2654435769+(e<<6)+(e>>2)}Jn.has=Zn.includes,Jn.contains=Jn.includes,Jn.keys=Jn.values,Ln(Q,Gn),Ln(Z,$n),Ln(G,Jn);var sr=function(e){function t(e){return null==e?pr():An(e)?e:pr().withMutations((function(t){var n=k(e);$e(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(x(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(zn);sr.isOrderedSet=An;var cr,lr=sr.prototype;function ur(e,t){var n=Object.create(lr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function pr(){return cr||(cr=ur(En()))}lr[A]=!0,lr.zip=$n.zip,lr.zipWith=$n.zipWith,lr.zipAll=$n.zipAll,lr.__empty=pr,lr.__make=ur;var dr={LeftThenRight:-1,RightThenLeft:1},fr=function(e,t){var n;!function(e){if(I(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(T(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);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 s=Object.keys(e),c=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var l=0;l<s.length;l++){var u=s[l];c[u]=l,o[u]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+gr(this)+' with property "'+u+'" since that property name is part of the Record API.'):vr(o,u)}}return this.__ownerID=void 0,this._values=on().withMutations((function(e){e.setSize(a._keys.length),x(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(hr);return o.constructor=r,t&&(r.displayName=t),r};fr.prototype.toString=function(){for(var e,t=gr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+nt(this.get(e));return t+" }"},fr.prototype.equals=function(e){return this===e||I(e)&&yr(this).equals(yr(e))},fr.prototype.hashCode=function(){return yr(this).hashCode()},fr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},fr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},fr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return mr(this,n)}return this},fr.prototype.remove=function(e){return this.set(e)},fr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:mr(this,e)},fr.prototype.wasAltered=function(){return this._values.wasAltered()},fr.prototype.toSeq=function(){return yr(this)},fr.prototype.toJS=function(){return Pn(this)},fr.prototype.entries=function(){return this.__iterator(2)},fr.prototype.__iterator=function(e,t){return yr(this).__iterator(e,t)},fr.prototype.__iterate=function(e,t){return yr(this).__iterate(e,t)},fr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?mr(this,t,e):(this.__ownerID=e,this._values=t,this)},fr.isRecord=I,fr.getDescriptiveName=gr;var hr=fr.prototype;function mr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function gr(e){return e.constructor.displayName||e.constructor.name||"Record"}function yr(e){return ne(e._keys.map((function(t){return[t,e.get(t)]})))}function vr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}hr[D]=!0,hr[r]=hr.remove,hr.deleteIn=hr.removeIn=ft,hr.getIn=Yn,hr.hasIn=Zn.hasIn,hr.merge=yt,hr.mergeWith=vt,hr.mergeIn=Mt,hr.mergeDeep=Ot,hr.mergeDeepWith=kt,hr.mergeDeepIn=jt,hr.setIn=pt,hr.update=mt,hr.updateIn=gt,hr.withMutations=Dt,hr.asMutable=It,hr.asImmutable=Tt,hr[z]=hr.entries,hr.toJSON=hr.toObject=Zn.toObject,hr.inspect=hr.toSource=function(){return this.toString()};var br,wr=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(br)return br;br=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return le(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return d(e,n,r)?this:new t(this._value,h(n,r)-f(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return le(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return le(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new R((function(){return o===r?{value:void 0,done:!0}:B(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?le(this._value,e._value):Nn(this,e)},t}(Z);function Er(e,t){return _r([],t||Sr,e,"",t&&t.length>2?[]:void 0,{"":e})}function _r(e,t,n,r,o,i){if("string"!=typeof n&&!T(n)&&(Y(n)||U(n)||et(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var a=t.call(i,r,W(n).map((function(r,i){return _r(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),a}return n}function Sr(e,t){return _(t)?t.toList():w(t)?t.toMap():t.toSet()}var Cr="4.3.7",xr=C;const Or={version:Cr,Collection:C,Iterable:C,Seq:W,Map:Nt,OrderedMap:bn,List:on,Stack:On,Set:zn,OrderedSet:sr,PairSorting:dr,Record:fr,Range:Vn,Repeat:wr,is:le,fromJS:Er,hash:fe,isImmutable:T,isCollection:v,isKeyed:w,isIndexed:_,isAssociative:S,isOrdered:N,isValueObject:ce,isPlainObject:et,isSeq:j,isList:rn,isMap:ae,isOrderedMap:se,isStack:xn,isSet:Tn,isOrderedSet:An,isRecord:I,get:ot,getIn:qn,has:rt,hasIn:Wn,merge:wt,mergeDeep:_t,mergeWith:Et,mergeDeepWith:St,remove:at,removeIn:dt,set:st,setIn:ut,update:ht,updateIn:ct}},49884:(e,t,n)=>{"use strict";var r=n(51609),o=n(98003),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},49938:(e,t,n)=>{"use strict";var r=n(23018),o=n(94092),i=n(16416),a=n(80508),s=n(30866),c=n(77337),l=n(19127),u=n(3136),p=n(90646),d=n(5462),f=n(86044),h=n(54435),m=n(53222),g=c.OrderedSet,y={replaceText:function(e,t,n,o,i){var a=f(e,t),s=h(a,t),c=r.create({style:o||g(),entity:i||null});return u(s,s.getSelectionAfter(),n,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||p(!1),y.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=s(e,t),o=y.removeRange(e,t,"backward");return y.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=f(e,t),i=h(o,t);return l(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),s=e.getBlockForKey(o);var c=t.getStartOffset(),l=t.getEndOffset(),u=i.getEntityAt(c),p=s.getEntityAt(l-1);if(r===o&&u&&u===p){var d=a(e.getEntityMap(),i,s,t,n);return h(e,d)}var m=f(e,t);return h(m,t)},splitBlock:function(e,t){var n=f(e,t),r=h(n,t);return m(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=f(e,t);return i(r,t,n)}};e.exports=y},50046:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(56840),i=n(65224),a=n(24712),s=n(6991),c=n(19248),l=n(47282),u=n(77337),p=n(91721),d=u.List,f=u.Repeat,h=l("draft_tree_data_support"),m=h?i:o,g={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:d(f(t,o.length))};if(h&&0!==i){var l=i-1;c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},c,{prevSibling:(e[l]=e[l].merge({nextSibling:a})).getKey()})}return e.push(new m(c)),e}),[])}};e.exports=g},50428:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(56840),a=n(65224),s=n(97656),c=n(11608),l=n(62396),u=(n(72490),n(91381)),p=n(40803),d=n(52401),f=n(33830),h=n(6991),m=n(47282),g=n(77337),y=n(90646),v=m("draft_tree_data_support"),b=g.List,w=g.Map,E=g.OrderedMap,_=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:S(e,t)}},S=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return p(f(n,i||[]),d(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},C=function(e){return r({},e,{key:e.key||h()})},x=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=c.__create(o,i,a||{})})),n}(e),n=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=v&&!n?l.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return E(e.map((function(e){var n=new i(_(e,t));return[n.getKey(),n]})))}(n?l.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(C).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(C),c=new a(r({},_(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(c.getKey(),c);for(var l=x([],s,c);l.length>0;){var u=l.pop(),p=u.parentRef,d=p.getChildKeys(),f=d.indexOf(u.key),h=Array.isArray(u.children);if(!h){h||y(!1);break}var m=u.children.map(C),g=new a(r({},_(u,t),{parent:p.getKey(),children:b(m.map((function(e){return e.key}))),prevSibling:0===f?null:d.get(f-1),nextSibling:f===d.size-1?null:d.get(f+1)}));n=n.set(g.getKey(),g),l=x(l,m,g)}return n}),E())}(o,t);return s}(e,t),o=n.isEmpty()?new u:u.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},50580:(e,t,n)=>{"use strict";var r=n(90646),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=s(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=s(e,i);return e.substring(o,i)}var l={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=s(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=s(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return c(e,t=t<n?t:n,r)},substr:c};e.exports=l},50798:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},50953:(e,t,n)=>{"use strict";var r=n(90646),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function l(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=d(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return u(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return p(r,s);case">":return 1===v(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);return f(i)&&(r[o]=i+1+""),p(e,n)&&u(e,r)}(r,s);default:return function(e,t){return 0===v(e,t)}(r,s)}}function u(e,t){return-1===v(e,t)}function p(e,t){var n=v(e,t);return 1===n||0===n}function d(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function f(e){return!isNaN(e)&&isFinite(e)}function h(e){return!d(e).modifier}function m(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function g(e,t){var n=e.match(c)[1],r=t.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return f(o)&&f(i)&&o!==i?y(o,i):y(e,t)}function y(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function v(e,t){for(var n=function(e,t){m(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return m(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=g(r[i],o[i]);if(a)return a}return 0}var b={contains:function(e,t){return function(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return b.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],t);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),l(">="+o,t)&&l("<="+i,t)}(e=n[0].trim(),t)}(e.trim(),t.trim())}};e.exports=b},51103:e=>{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},51609:e=>{"use strict";e.exports=window.React},52401:(e,t,n)=>{"use strict";var r=n(50580).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},52619:e=>{"use strict";e.exports=window.wp.hooks},53222:(e,t,n)=>{"use strict";var r=n(65224),o=n(6991),i=n(77337),a=n(90646),s=n(5462),c=i.List,l=i.Map,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),p=i.get(n),d=p.getText();if(!d){var f=p.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=p.getCharacterList(),g=o(),y=p instanceof r,v=p.merge({text:d.slice(0,h),characterList:m.slice(0,h)}),b=v.merge({key:g,text:d.slice(h),characterList:m.slice(h),data:l()}),w=i.toSeq().takeUntil((function(e){return e===p})),E=i.toSeq().skipUntil((function(e){return e===p})).rest(),_=w.concat([[n,v],[g,b]],E).toOrderedMap();return y&&(p.getChildKeys().isEmpty()||a(!1),_=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();u(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:c(i)})})),u(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),u(r,e,(function(e){return e.merge({nextSibling:o})})),u(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(_,v,b)),e.merge({blockMap:_,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},53310:(e,t,n)=>{"use strict";var r=n(65224),o=n(6991),i=n(77337).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),l=r.getChildKeys(),u=r.getParentKey(),p=o();if(n[a]=p,s&&(e.get(s)?e.setIn([s,"prevSibling"],p):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],p):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),p))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],p),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],p):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},54435:(e,t,n)=>{"use strict";var r=n(65224),o=n(7376),i=n(77337),a=(i.List,i.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),p=t.getStartKey(),d=t.getStartOffset(),f=t.getEndKey(),h=t.getEndOffset(),m=i.get(p),g=i.get(f),y=m instanceof r,v=[];if(y){var b=g.getChildKeys(),w=c(f,i);g.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([f]))),v=v.concat(c(o(g,i),i))}n=m===g?function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(m.getCharacterList(),d,h):m.getCharacterList().slice(0,d).concat(g.getCharacterList().slice(h));var E=m.merge({text:m.getText().slice(0,d)+g.getText().slice(h),characterList:n}),_=y&&0===d&&0===h&&g.getParentKey()===p&&null==g.getPrevSiblingKey()?a([[p,null]]):i.toSeq().skipUntil((function(e,t){return t===p})).takeUntil((function(e,t){return t===f})).filter((function(e,t){return-1===v.indexOf(t)})).concat(a([[f,null]])).map((function(e,t){return t===p?E:null})),S=i.merge(_).filter((function(e){return!!e}));return y&&m!==g&&(S=function(e,t,n,r){return e.withMutations((function(i){if(s(t.getKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})),s(n.getKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})),c(t.getKey(),r).forEach((function(e){return s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}))})),s(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r)})})),s(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:u(e,i,r)})})),s(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(e){s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(n,r).forEach((function(e){return s(e,i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),i,(function(e){return e.merge({prevSibling:a})})),s(a,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var p=a?e.get(a):null,d=p?p.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,i,(function(e){return e.merge({parent:d})}))})),null!=d){var f=e.get(d);s(d,i,(function(e){return e.merge({children:f.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(S,m,g,i)),e.merge({blockMap:S,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})}},55203:(e,t,n)=>{"use strict";var r=n(45228),o=n(16268),i=n(51609),a=n(90646),s=n(12623),c=n(94660).setDraftEditorSelection,l=function(e){var t,n;function l(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=l.prototype;return u._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),l=r+o.length;if(e.hasEdgeWithin(i,r,l)){var u=this.leaf;u||a(!1);var p,d=u.firstChild;d||a(!1),d.nodeType===Node.TEXT_NODE?p=d:s(d)?p=u:(p=d.firstChild)||a(!1),c(e,p,i,r,l)}}},u.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},u.componentDidUpdate=function(){this._setSelection()},u.componentDidMount=function(){this._setSelection()},u.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,l=a.offsetKey,u=a.styleSet,p=u.reduce((function(e,t){var n={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(c){var d=c(u,t);p=r(p,d)}return i.createElement("span",{"data-offset-key":l,ref:function(t){return e.leaf=t},style:p},i.createElement(o,null,n))},l}(i.Component);e.exports=l},55291:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},55481:(e,t,n)=>{"use strict";var r=n(91439),o=n(50580).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})})),n}},55655:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,y=0,v=0,b=0,w="";function E(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:g,length:a,return:""}}function _(e,t){return a(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=v>0?u(w,--v):0,g--,10===b&&(g=1,m--),b}function C(){return b=v<y?u(w,v++):0,g++,10===b&&(g=1,m++),b}function x(){return u(w,v)}function O(){return v}function k(e,t){return p(w,e,t)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return m=g=1,y=d(w=e),v=0,[]}function D(e){return w="",e}function I(e){return s(k(v-1,N(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(b=x())&&b<33;)C();return M(e)>2||M(b)>3?"":" "}function A(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,O()+(t<6&&32==x()&&32==C()))}function N(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:C()}return v}function L(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==x()););return"/*"+k(t,v-1)+"*"+i(47===e?e:C())}function P(e){for(;!M(x());)C();return k(e,v)}var z="-ms-",R="-moz-",B="-webkit-",F="comm",U="rule",H="decl",K="@keyframes";function V(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case F:return"";case K:return e.return=e.value+"{"+V(e.children,r)+"}";case U:e.value=e.props.join(",")}return d(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e){return D(W("",null,null,null,[""],e=j(e),0,[0],e))}function W(e,t,n,r,o,a,s,p,f){for(var m=0,g=0,y=s,v=0,b=0,w=0,E=1,_=1,k=1,M=0,j="",D=o,N=a,z=r,R=j;_;)switch(w=M,M=C()){case 40:if(108!=w&&58==u(R,y-1)){-1!=l(R+=c(I(M),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:R+=I(M);break;case 9:case 10:case 13:case 32:R+=T(w);break;case 92:R+=A(O()-1,7);continue;case 47:switch(x()){case 42:case 47:h(Z(L(C(),O()),t,n),f);break;default:R+="/"}break;case 123*E:p[m++]=d(R)*k;case 125*E:case 59:case 0:switch(M){case 0:case 125:_=0;case 59+g:-1==k&&(R=c(R,/\f/g,"")),b>0&&d(R)-y&&h(b>32?G(R+";",r,n,y-1):G(c(R," ","")+";",r,n,y-2),f);break;case 59:R+=";";default:if(h(z=Q(R,t,n,m,g,o,p,j,D=[],N=[],y),a),123===M)if(0===g)W(R,t,z,z,D,a,y,p,N);else switch(99===v&&110===u(R,3)?100:v){case 100:case 108:case 109:case 115:W(e,z,z,r&&h(Q(e,z,z,0,0,o,p,j,o,D=[],y),N),o,N,y,p,r?D:N);break;default:W(R,z,z,z,[""],N,0,p,N)}}m=g=b=0,E=k=1,j=R="",y=s;break;case 58:y=1+d(R),b=w;default:if(E<1)if(123==M)--E;else if(125==M&&0==E++&&125==S())continue;switch(R+=i(M),M*E){case 38:k=g>0?1:(R+="\f",-1);break;case 44:p[m++]=(d(R)-1)*k,k=1;break;case 64:45===x()&&(R+=I(C())),v=x(),g=y=d(j=R+=P(O())),M++;break;case 45:45===w&&2==d(R)&&(E=0)}}return a}function Q(e,t,n,r,i,a,l,u,d,h,m){for(var g=i-1,y=0===i?a:[""],v=f(y),b=0,w=0,_=0;b<r;++b)for(var S=0,C=p(e,g+1,g=o(w=l[b])),x=e;S<v;++S)(x=s(w>0?y[S]+" "+C:c(C,/&\f/g,y[S])))&&(d[_++]=x);return E(e,t,n,0===i?U:u,d,h,m)}function Z(e,t,n){return E(e,t,n,F,i(b),p(e,2,-2),0)}function G(e,t,n,r){return E(e,t,n,H,p(e,0,r),p(e,r+1,-1),r)}var $=function(e,t,n){for(var r=0,o=0;r=o,o=x(),38===r&&12===o&&(t[n]=1),!M(o);)C();return k(e,v)},J=new WeakMap,X=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],a=function(e,t){return D(function(e,t){var n=-1,r=44;do{switch(M(r)){case 0:38===r&&12===x()&&(t[n]=1),e[n]+=$(v-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===x()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=C());return e}(j(e),t))}(t,o),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)e.props[l]=o[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+R+e+z+e+e;case 6828:case 4268:return B+e+z+e+e;case 6165:return B+e+z+"flex-"+e+e;case 5187:return B+e+c(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return B+e+z+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return B+e+z+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+z+c(e,"shrink","negative")+e;case 5292:return B+e+z+c(e,"basis","preferred-size")+e;case 6060:return B+"box-"+c(e,"-grow","")+B+e+z+c(e,"grow","positive")+e;case 4554:return B+c(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+R+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?te(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,d(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":"+B)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+z+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+z+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+z+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+z+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case K:return V([_(e,{value:c(e.value,"@","@"+B)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([_(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([_(e,{props:[c(t,/:(plac\w+)/,":"+B+"input-$1")]}),_(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[c(t,/:(plac\w+)/,z+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,s={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;c.push(e)}));var l,u,p,d,h=[q,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(u=[X,ee].concat(a,h),p=f(u),function(e,t,n,r){for(var o="",i=0;i<p;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,V(Y(e?e+"{"+t.styles+"}":t.styles),m),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(c),g}},55822:(e,t,n)=>{"use strict";var r=n(90646),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||r(!1),e===o?"ltr":"rtl"}function c(e){i=e}var l={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:s(e)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};e.exports=l},55865:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=i(n(42214));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconError)},s.default.createElement("span",{style:c.iconErrorX},s.default.createElement("span",{style:Object.assign({},c.iconErrorLine,c.iconErrorLineLeft)}),s.default.createElement("span",{style:Object.assign({},c.iconErrorLine,c.iconErrorLineRight)})))}},56269:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r}},56408:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},56427:e=>{"use strict";e.exports=window.wp.components},56840:(e,t,n)=>{"use strict";var r=n(23018),o=n(18227),i=n(77337),a=i.List,s=i.Map,c=i.OrderedSet,l=i.Record,u=i.Repeat,p=c(),d=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(l({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function f(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=d},57511:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(51609)),i=n(42214);t.default=function(e){var t=e.children;return o.default.createElement("div",{style:i.contentContainer},t)}},57811:(e,t,n)=>{"use strict";var r=n(59414),o=n(45852),i=n(14134),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,l=r.isCtrlKeyCommand;function u(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return a&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:u(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":u(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},58038:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=c(n(51609)),u=s(n(42214)),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputElement=null,t.setInputElementRef=function(e){t.inputElement=e},t}return o(t,e),t.prototype.componentDidMount=function(){if("input"===this.props.type)try{this.inputElement.focus()}catch(e){}},t.prototype.render=function(){var e=this;return l.default.createElement("div",{style:{position:"relative"}},"textarea"===this.props.inputType?l.default.createElement("textarea",{ref:this.setInputElementRef,rows:4,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}):l.default.createElement("input",{type:this.props.inputType,ref:this.setInputElementRef,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}),this.props.showValidationMessage&&l.default.createElement("div",{style:u.inputErrorIcon},l.default.createElement("div",{style:Object.assign({},u.inputErrorIconBeforeAfter,u.inputErrorIconBefore)}),l.default.createElement("div",{style:Object.assign({},u.inputErrorIconBeforeAfter,u.inputErrorIconAfter)})))},t}(l.default.Component);t.default=p},58488:(e,t,n)=>{"use strict";n(14594),e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},59395:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},59414:(e,t,n)=>{"use strict";var r=n(14134),o=n(83174),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},59824:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},60286:e=>{"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},60946:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t},l=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=u(n(51609)),d=u(n(32300)),f=u(n(55865)),h=u(n(9437)),m=u(n(49403)),g=u(n(67334)),y=u(n(42739)),v=u(n(58038)),b=u(n(85620)),w=u(n(99492)),E=u(n(57511)),_=u(n(34390)),S=c(n(42214)),C=c(n(6080)),x=n(74652),O=n(44823),k=S.sweetAlert,M={},j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},D=function(e){function t(n){var r=e.call(this,n)||this;r.inputElement=null,r.unsupportedProp=function(e,t){try{console.warn("react-bootstrap-sweetalert: Unsupported prop '"+e+"'. Please "+t)}catch(e){}},r.focusInput=function(){if(j("inputElement",r.inputElement),r.inputElement){j("inputElement trying to focus",r.inputElement);try{r.inputElement.focus()}catch(e){j("inputElement focus error",e)}}},r.getIcon=function(){switch(r.state.type){case"danger":case"error":return p.default.createElement(f.default,null);case"warning":return p.default.createElement(m.default,null);case"info":return p.default.createElement(h.default,null);case"success":return p.default.createElement(d.default,null);case"custom":return r.props.customIcon?"string"==typeof r.props.customIcon?p.default.createElement(g.default,{iconUrl:r.props.customIcon}):r.props.customIcon:null;default:return null}},r.onChangeInput=function(e){var t=e.target;r.setState({inputValue:t.value,showValidationMessage:!1})},r.isValidInput=function(){return!r.props.required||(r.props.validationRegex||("email"===r.props.inputType?C.emailRegex:C.defaultRegex)).test(r.state.inputValue)},r.isDisabled=function(){return r.props.onCancel&&r.props.disabled},r.onAlertClose=function(e){M[r.state.id]=!0,j("onAlertClose resetting state"),r.setState(i(i({},t.getDefaultState()),{id:r.state.id}),(function(){M[r.state.id]=!1,e()}))},r.beforeCloseAlert=function(e,t){j("in beforeCloseAlert: setting show to false"),r.setState({show:!1,closingAction:e},(function(){j("state updated",r.state.show),r.state.show||(j("invoking callback"),t())}))},r.onConfirm=function(e){if(void 0===e&&(e=!0),!r.isDisabled()){var t="input"===r.state.type,n=r.state.inputValue,o="controlled"===r.state.type,i=l(r.state.dependencies);if(!t||r.isValidInput()){var a=function(){j("in confirm callback"),t?r.onAlertClose((function(){r.props.onConfirm(n)})):o?r.onAlertClose((function(){r.props.onConfirm(i)})):r.onAlertClose((function(){return r.props.onConfirm()}))};e?(j("calling beforeCloseAlert"),r.beforeCloseAlert("confirm",(function(){return a()}))):a()}else r.setState({showValidationMessage:!0})}},r.onCancel=function(e){void 0===e&&(e=!0);var t=function(){r.onAlertClose((function(){r.props.onCancel&&r.props.onCancel()}))};e?r.beforeCloseAlert("cancel",(function(){return t()})):t()},r.onInputKeyDown=function(e){13==e.keyCode&&(e.stopPropagation(),r.onConfirm())},r.onKeyDown=function(e){27==e.keyCode&&r.props.allowEscape&&r.props.onCancel&&(e.stopPropagation(),r.onCancel())},r.onClickInside=function(e){e.stopPropagation()},r.onClickOutside=function(){r.props.closeOnClickOutside&&r.props.onCancel&&r.onCancel()},r.setAutoFocusInputRef=function(e){r.inputElement=e},r.getComposedStyle=function(){return Object.assign({},k,r.props.style,{animation:r.state.animation})},r.getAlertContent=function(){if("function"==typeof r.props.children){var e={onEnterKeyDownConfirm:function(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r.onConfirm())},confirm:function(){return r.onConfirm()},cancel:function(){return r.onCancel()},setAutoFocusInputRef:r.setAutoFocusInputRef.bind(r)};return r.props.children(e)}return r.props.children},r.getCloseButton=function(){return r.props.showCloseButton&&r.props.onCancel?p.default.createElement("span",{className:"btn",style:Object.assign({},S.closeButton,r.props.closeBtnStyle),onClick:function(){return r.onCancel()}},"x"):null},r.getInputField=function(){return"input"!==r.state.type?null:p.default.createElement(v.default,i({},r.props,r.state,{type:r.state.type,onInputKeyDown:r.onInputKeyDown,onChangeInput:r.onChangeInput}))},r.getValidationMessage=function(){return r.state.showValidationMessage?p.default.createElement(b.default,i({},r.props)):null},r.getButtons=function(){return p.default.createElement(y.default,i({},r.props,{type:r.state.type,onConfirm:r.onConfirm,onCancel:r.onCancel,focusConfirmBtn:r.state.focusConfirmBtn,focusCancelBtn:r.state.focusCancelBtn,disabled:r.isDisabled()}))},r.getInjectedStyles=function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n body.sweetalert-overflow-hidden {\n overflow: hidden;\n }\n body .sweet-alert button {\n outline: none !important;\n }\n "}}),p.default.createElement("style",{type:"text/css"},"@-webkit-keyframes showSweetAlert { 0% { transform: scale(0.7); -webkit-transform: scale(0.7); } 45% { transform: scale(1.05); -webkit-transform: scale(1.05); } 80% { transform: scale(0.95); -webkit-tranform: scale(0.95); } 100% { transform: scale(1); -webkit-transform: scale(1); }}@keyframes showSweetAlert { 0% { transform: scale(0.7); -webkit-transform: scale(0.7); } 45% { transform: scale(1.05); -webkit-transform: scale(1.05); } 80% { transform: scale(0.95); -webkit-tranform: scale(0.95); } 100% { transform: scale(1); -webkit-transform: scale(1); }}@-webkit-keyframes hideSweetAlert { 0% { transform: scale(1); -webkit-transform: scale(1); } 100% { transform: scale(0.4); -webkit-transform: scale(0.4); }}@keyframes hideSweetAlert { 0% { transform: scale(1); -webkit-transform: scale(1); } 100% { transform: scale(0.4); -webkit-transform: scale(0.4); }}@-webkit-keyframes animateSuccessTip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } 100% { width: 25px; left: 14px; top: 45px; }}@keyframes animateSuccessTip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } 100% { width: 25px; left: 14px; top: 45px; }}@-webkit-keyframes animateSuccessLong { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0px; top: 35px; } 100% { width: 47px; right: 8px; top: 38px; }}@keyframes animateSuccessLong { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0px; top: 35px; } 100% { width: 47px; right: 8px; top: 38px; }}@-webkit-keyframes rotatePlaceholder { 0% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 5% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 12% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); } 100% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); }}@keyframes rotatePlaceholder { 0% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 5% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 12% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); } 100% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); }}@-webkit-keyframes animateErrorIcon { 0% { transform: rotateX(100deg); -webkit-transform: rotateX(100deg); opacity: 0; } 100% { transform: rotateX(0deg); -webkit-transform: rotateX(0deg); opacity: 1; }}@keyframes animateErrorIcon { 0% { transform: rotateX(100deg); -webkit-transform: rotateX(100deg); opacity: 0; } 100% { transform: rotateX(0deg); -webkit-transform: rotateX(0deg); opacity: 1; }}@-webkit-keyframes animateXMark { 0% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 50% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 80% { transform: scale(1.15); -webkit-transform: scale(1.15); margin-top: -6px; } 100% { transform: scale(1); -webkit-transform: scale(1); margin-top: 0; opacity: 1; }}@keyframes animateXMark { 0% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 50% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 80% { transform: scale(1.15); -webkit-transform: scale(1.15); margin-top: -6px; } 100% { transform: scale(1); -webkit-transform: scale(1); margin-top: 0; opacity: 1; }}@-webkit-keyframes pulseWarning { 0% { border-color: #F8D486; } 100% { border-color: #F8BB86; }}@keyframes pulseWarning { 0% { border-color: #F8D486; } 100% { border-color: #F8BB86; }}@-webkit-keyframes pulseWarningIns { 0% { background-color: #F8D486; } 100% { background-color: #F8BB86; }}@keyframes pulseWarningIns { 0% { background-color: #F8D486; } 100% { background-color: #F8BB86; }}"))},r.props.beforeUpdate&&r.unsupportedProp("beforeUpdate","use props.afterUpdate");var o=Object.assign(t.getDefaultState(),{hideTimeoutHandlerFunc:r.hideTimeoutHandler.bind(r)});return null!=r.props.defaultValue&&(o.inputValue=r.props.defaultValue),r.state=o,r.props.beforeMount(),r}return o(t,e),t.prototype.componentDidMount=function(){document.body.classList.add("sweetalert-overflow-hidden"),this.focusInput(),this.props.afterMount&&this.props.afterMount()},t.generateId=function(){return""+Date.now()+Math.ceil(1e10*Math.random())+Math.ceil(1e10*Math.random())},t.getDefaultState=function(){return{id:t.generateId(),show:!0,focusConfirmBtn:!0,focusCancelBtn:!1,inputValue:"",showValidationMessage:!1,timer:null,animation:"",prevTimeout:0,closingAction:null,dependencies:[]}},t.getDerivedStateFromProps=function(e,n){if(M[n.id])return{};var r={},o=n.type!==t.getTypeFromProps(e),a=n.dependencies!==e.dependencies,s=n.prevTimeout!==e.timeout;return(o||a)&&(r=i(i({},r),t.getStateFromProps(e))),("{}"!==JSON.stringify(r)||s)&&(r=i(i({},r),t.handleTimeout(e,n.timer))),i(i({},r),t.handleAnimState(e,n,n.hideTimeoutHandlerFunc))},t.prototype.componentDidUpdate=function(e,t){this.props.beforeUpdate&&this.props.beforeUpdate(e,t),!t.show&&this.state.show&&this.focusInput(),this.props.afterUpdate(this.props,this.state)},t.prototype.componentWillUnmount=function(){document.body.classList.remove("sweetalert-overflow-hidden"),this.state.timer&&clearTimeout(this.state.timer),this.props.beforeUnmount&&this.props.beforeUnmount()},t.prototype.hideTimeoutHandler=function(e){var t=this;setTimeout((function(){var e=t.state.closingAction;t.setState({show:!1,closingAction:null},(function(){switch(e){case"confirm":t.onConfirm(!1);break;case"cancel":t.onCancel(!1)}}))}),e)},t.handleTimeout=function(e,t){return t&&clearTimeout(t),e.timeout&&e.timeout>0?{timer:setTimeout((function(){return e.onConfirm()}),e.timeout),prevTimeout:e.timeout}:null},t.isAnimation=function(e){return e&&"boolean"!=typeof e},t.animationFromProp=function(e){return e.name+" "+e.duration+"ms"},t.handleAnimState=function(e,n,r){var o="boolean"!=typeof e.show||n.closingAction?n.show:e.show,i="";if(o)e.openAnim&&(t.isAnimation(e.openAnim)?i=t.animationFromProp(e.openAnim):t.isAnimation(t.defaultProps.openAnim)&&(i=t.animationFromProp(t.defaultProps.openAnim)));else if(n.closingAction&&e.closeAnim){var a=void 0;t.isAnimation(e.closeAnim)?a=e.closeAnim:t.isAnimation(t.defaultProps.closeAnim)&&(a=t.defaultProps.closeAnim),a&&(i=t.animationFromProp(a),r(a.duration),o=!0)}return{show:o,animation:i}},t.prototype.render=function(){return this.state.show?p.default.createElement("div",null,this.getInjectedStyles(),p.default.createElement(_.default,{show:!this.props.hideOverlay,onClick:this.onClickOutside,onKeyDown:this.onKeyDown},p.default.createElement("div",{style:this.getComposedStyle(),tabIndex:0,onKeyDown:this.onKeyDown,onClick:this.onClickInside,className:"sweet-alert "+this.props.customClass},this.getCloseButton(),this.getIcon(),p.default.createElement(w.default,null,this.props.title),p.default.createElement(E.default,null,this.getAlertContent()),this.getInputField(),this.getValidationMessage(),this.getButtons()))):null},t.propTypes=x.SWEET_ALERT_PROP_TYPES,t.defaultProps=O.SWEET_ALERT_DEFAULT_PROPS,t.SuccessIcon=d.default,t.ErrorIcon=f.default,t.InfoIcon=h.default,t.WarningIcon=m.default,t.CustomIcon=g.default,t.Buttons=y.default,t.Input=v.default,t.ValidationMessage=b.default,t.Title=w.default,t.Content=E.default,t.getStateFromProps=function(e){var n=t.getTypeFromProps(e);return{type:n,focusConfirmBtn:e.focusConfirmBtn&&"input"!==n,focusCancelBtn:e.focusCancelBtn&&"input"!==n,dependencies:e.dependencies}},t.getTypeFromProps=function(e){return e.type?e.type:e.secondary?"secondary":e.info?"info":e.success?"success":e.warning?"warning":e.danger||e.error?"danger":e.input?"input":e.custom?"custom":"default"},t}(p.default.Component);t.default=D},61708:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(68307),i=n(55822),a=n(90646),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},62396:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6991),a=n(90646),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e){for(var t=[].concat(e).reverse();t.length;){var o=t.pop();l=void 0,l=r({},c=o),s(c)&&(l.depth=l.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(c),null!=c.children&&c.children.length>0)||(delete l.children,n.push(l));var i=o.children;Array.isArray(i)||a(!1),t=t.concat([].concat(i.reverse()))}var c,l}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,c=r({},e,{children:[]});if(o){var l=n[0];if(null==l&&0===a)t.push(c);else if(null==l||l.depth<a-1){var u={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(u),1===a?t.push(u):null!=l&&l.children.push(u),u.children.push(c)}else if(l.depth===a-1)l.children.push(c);else{for(;null!=l&&l.depth>=a;)n.shift(),l=n[0];a>0?l.children.push(c):t.push(c)}}else t.push(c)})),r({},e,{blocks:t})}};e.exports=c},63299:(e,t,n)=>{"use strict";var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=n(13387),u=n(87918),p=n(13136),d=n(79777),f=n(42474),h=n(97784),m=n(74576),g=n(49884),y=n(953),v=n(12242),b=n(51609),w=n(93529),E=n(2935),_=n(14134),S=n(98003),C=n(6991),x=n(57811),O=n(97392),k=n(47282),M=n(90646),j=n(55291),D=n(56408),I=_.isBrowser("IE"),T=!I,A={edit:h,composite:p,drag:f,cut:null,render:null},N=!1,L=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),P=function(e){function t(t){var n;return s(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=E.getScrollParent(o),a=e||O(i),s=a.x,c=a.y;j(o)||M(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(t,t.getSelection()))}})),s(a(n),"blur",(function(){var e=n.editor;e&&(j(e)||M(!1),e.blur())})),s(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},A.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},A,{edit:s});n._handler=c[e]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(a(n),"setClipboard",(function(e){n._clipboard=e})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(a(n),"onDragEnter",(function(){n._dragCount++})),s(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||C(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.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},n.state={contentsKey:0},n}c(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(m?m((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(g,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,l=e.preventScroll,p=e.readOnly,f=e.textAlignment,h=e.textDirectionality,m=S({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===f,"DraftEditor/alignRight":"right"===f,"DraftEditor/alignCenter":"center"===f}),g=this.props.role||"textbox",y="combobox"===g?!!this.props.ariaExpanded:null,v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},u,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:l,textDirectionality:h};return b.createElement("div",{className:m},this._renderPlaceholder(),b.createElement("div",{className:S("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:S({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"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:p?null:g,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(L,{editor:this,editorState:c}),b.createElement(d,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!N&&k("draft_ods_enabled")&&(N=!0,y.initODS()),this.setMode("edit"),I&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(b.Component);s(P,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:x,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=P},63564:(e,t,n)=>{"use strict";var r=n(90646),o=n(55291);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},64071:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},64316:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},64658:(e,t,n)=>{"use strict";var r=n(25377);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var l=1;l<t.length;l++){var u=t[l];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),o=Math.max(o,u.right),i=Math.max(i,u.bottom),a=Math.min(a,u.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},65224:(e,t,n)=>{"use strict";var r=n(23018),o=n(18227),i=n(77337),a=i.List,s=i.Map,c=i.OrderedSet,l=i.Record,u=i.Repeat,p=c(),d={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},f=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(l(d));e.exports=m},65496:e=>{var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l="object"==typeof window&&window.DOMParser;if("function"==typeof l){var u=new l;s=c=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){return t?(p.documentElement.querySelector(t).innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var d,f="object"==typeof document?document.createElement("template"):{};f.content&&(d=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var l,u,p,f,h=e.match(o);switch(h&&h[1]&&(l=h[1].toLowerCase()),l){case t:return u=c(e),i.test(e)||(p=u.querySelector(n))&&p.parentNode.removeChild(p),a.test(e)||(p=u.querySelector(r))&&p.parentNode.removeChild(p),u.querySelectorAll(t);case n:case r:return f=(u=s(e)).querySelectorAll(l),a.test(e)&&i.test(e)?f[0].parentNode.childNodes:f;default:return d?d(e):(p=s(e,r).querySelector(r)).childNodes}}},66429:()=>{},67204:e=>{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},67334:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=i(n(42214)),l=Object.assign({},c.icon,c.iconCustom);t.default=function(e){var t="url("+e.iconUrl,n=Object.assign({},l,{backgroundImage:t});return s.default.createElement("div",{style:n})}},67731:(e,t,n)=>{for(var r,o=n(41141),i=n(15270).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,s=o.Element,c=o.ProcessingInstruction,l=o.Text,u={},p=0,d=i.length;p<d;p++)r=i[p],u[r.toLowerCase()]=r;function f(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function h(e){return function(e){return u[e]}(e=e.toLowerCase())||e}t.formatAttributes=f,t.formatDOM=function e(t,n,r){n=n||null;for(var o,i=[],u=0,p=t.length;u<p;u++){var d,m=t[u];switch(m.nodeType){case 1:o=h(m.nodeName),(d=new s(o,f(m.attributes))).children=e("template"===o?m.content.childNodes:m.childNodes,d);break;case 3:d=new l(m.nodeValue);break;case 8:d=new a(m.nodeValue);break;default:continue}var g=i[u-1]||null;g&&(g.next=d),d.parent=n,d.prev=g,d.next=null,i.push(d)}return r&&((d=new c(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,d.parent=n,i.unshift(d),i[1]&&(i[1].prev=i[0])),i}},68307:(e,t,n)=>{"use strict";var r=n(55822),o=n(90646),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function l(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=l(e);return null==t?r.NEUTRAL:c.exec(t)?r.RTL:r.LTR}function p(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function d(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),p(e,t)}var f={firstStrongChar:l,firstStrongCharDir:u,resolveBlockDir:p,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===r.LTR},isDirectionRTL:function(e,t){return d(e,t)===r.RTL}};e.exports=f},68382:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,l=null,u=0;u<i.length;u++){if(e<(a=s+i[u].length)&&s<t)null!==c||(c=s),l=a;else if(null!==c)break;s=a}var p=r+n.length,d=c===r,f=l===p;return(!d&&f||d&&!f)&&("forward"===o?l!==p&&l++:c!==r&&c--),{start:c,end:l}}}},69083:(e,t,n)=>{"use strict";var r=n(77337).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},69311:(e,t,n)=>{"use strict";var r=n(90646);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},69758:e=>{"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},70274:e=>{function t(e){var t={},n=e.length-1,r=e[0],o=e[n];for(var i in r)t[r[i]]=0;for(i=1;i<=n;i++){var a=e[i];for(var s in a)t[l=a[s]]===i-1&&(t[l]=i)}var c=[];for(var i in o){var l;t[l=o[i]]===n&&c.push(l)}return c}function n(e,n){if(!n)return t(e);for(var o=[],i=0;i<e.length;i++)r(n,e[i])>-1&&o.push(e[i]);return o}function r(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}e.exports=n,n.big=function(e,n){if(!n)return t(e);for(var r=[],o={},i=0;i<n.length;i++)o[n[i]]=!0;for(i=0;i<e.length;i++)o[e[i]]&&r.push(e[i]);return r}},70525:(e,t,n)=>{"use strict";var r=n(73998),o=n(12242),i=n(77800),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},71720:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},71803:(e,t,n)=>{"use strict";var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(22784),a=n(3885),s=n(51609),c=n(56408),l=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=r.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,l=e.customStyleMap,u=e.customStyleFn,p=e.editorState,d=e.editorKey,f=e.textDirectionality,h=p.getCurrentContent(),m=p.getSelection(),g=p.mustForceSelection(),y=p.getDecorator(),v=c(p.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var E=w.getKey(),_={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:u,customStyleMap:l,decorator:y,editorKey:d,editorState:p,forceSelection:g,selection:m,block:w,direction:f||v.get(E),tree:p.getBlockTree(E)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:E},_)),wrapperTemplate:S,key:E,offsetKey:a.encode(E,0,0)});var C=w.getNextSiblingKey();w=C?h.getBlockForKey(C):null}for(var x=[],O=0;O<b.length;){var k=b[O];if(k.wrapperTemplate){var M=[];do{M.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===k.wrapperTemplate);var j=s.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},M);x.push(j)}else x.push(k.block),O++}return s.createElement("div",{"data-contents":"true"},x)},r}(s.Component);e.exports=l},71864:(e,t,n)=>{"use strict";var r=n(90646);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},71988:(e,t,n)=>{"use strict";var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(3885),a=n(51609),s=n(68307),c=n(55822),l=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,l=e.decorator,u=e.decoratorKey,p=e.direction,d=e.leafSet,f=e.text,h=t.getKey(),m=d.get("leaves"),g=l.getComponentForKey(u),y=l.getPropsForKey(u),v=i.encode(h,parseInt(u,10),0),b=f.slice(m.first().get("start"),m.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),p);return a.createElement(g,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:t.getEntityAt(d.get("start")),offsetKey:v}),n)},r}(a.Component);e.exports=l},72208:(e,t,n)=>{"use strict";var r=n(95748),o=n(23018),i=n(92395),a=n(49938),s=n(50046),c=n(12242),l=n(7018),u=n(9927),p=n(723),d=n(73680),f=n(73676);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(m)))return;return void p(m,(function(t){if(t=t||g){var n=e._latestEditorState,i=f(t),p=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),d=l.getCurrentBlockType(n),h=s.processText(i,p,d),m=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(c.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var E=e.props.formatPastedText(v,b);v=E.text,b=E.html}if(!e.props.handlePastedText||!d(e.props.handlePastedText(v,b,w))){if(v&&(y=f(v)),!e.props.stripPastedStyles){var _,S=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&S){if(-1!==(null===(_=b)||void 0===_?void 0:_.indexOf(e.getEditorKey()))||1===y.length&&1===S.size&&S.first().getText()===v)return void e.update(h(e._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,S))return void e.update(h(e._latestEditorState,S));if(b){var C=s.processHTML(b,e.props.blockRenderMap);if(C){var x=C.contentBlocks,O=C.entityMap;if(x){var k=r.createFromArray(x);return void e.update(h(e._latestEditorState,k,O))}}}e.setClipboard(null)}if(y.length){var M=o.create({style:w.getCurrentInlineStyle(),entity:u(w.getCurrentContent(),w.getSelection())}),j=l.getCurrentBlockType(w),D=s.processText(y,M,j),I=r.createFromArray(D);e.update(h(e._latestEditorState,I))}}}},72490:(e,t,n)=>{"use strict";n(14594),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();return(null==i||t.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},73404:(e,t,n)=>{"use strict";e.exports=n(3072)},73676:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},73680:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},73722:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242),i=n(14134),a=n(9927),s=n(73680),c=n(17759),l=n(56408),u=n(19765),p=i.isBrowser("Firefox");function d(e,t,n,i,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),f=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(d(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var m,g=d(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(e._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=g.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=f?r.length:0),a=t.get("end"),s=a+(a>=f?r.length:0),c=n.get("start"),l=n.get("end"),u=n.get("decoratorKey");return t.get("decoratorKey")!==u||t.get("leaves").size!==n.get("leaves").size||i!==c||s!==l||null!=u&&l-c!=a-o}))}if(y||(m=r,y=p&&("'"==m||"/"==m)),y||(y=l(g.getDirectionMap()).get(h)!==l(n.getDirectionMap()).get(h)),y)return t.preventDefault(),g=o.set(g,{forceSelection:!0}),void e.update(g);g=o.set(g,{nativelyRenderedContent:g.getCurrentContent()}),e._pendingStateFromBeforeInput=g,u((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},73919:(e,t,n)=>{"use strict";var r=n(49938),o=n(12242),i=n(2935),a=n(31296),s=n(97392),c=n(64316);e.exports=function(e,t){var n,l=e._latestEditorState,u=l.getSelection(),p=t.target;if(u.isCollapsed())t.preventDefault();else{if(c(p)){var d=p;n=s(i.getScrollParent(d))}var f=a(l);e.setClipboard(f),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(l))}),0)}}},73998:(e,t,n)=>{"use strict";var r="['‘’]",o="\\s|(?![_])"+n(77405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},74453:(e,t,n)=>{"use strict";var r=n(93816);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=e(n.childNodes[i]);if(a)return a}}return null}},74576:(e,t,n)=>{"use strict";var r=n(75795).unstable_flushControlled;e.exports=r},74652:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SWEET_ALERT_PROP_TYPES=void 0;var o=r(n(5556));t.SWEET_ALERT_PROP_TYPES={type:o.default.oneOf(["default","info","success","warning","danger","error","input","custom","controlled"]),info:o.default.bool,success:o.default.bool,warning:o.default.bool,danger:o.default.bool,error:o.default.bool,input:o.default.bool,custom:o.default.bool,controlled:o.default.bool,title:o.default.oneOfType([o.default.node,o.default.string]).isRequired,onCancel:o.default.func,onConfirm:o.default.func.isRequired,confirmBtnText:o.default.oneOfType([o.default.node,o.default.string]),confirmBtnBsStyle:o.default.string,confirmBtnCssClass:o.default.string,confirmBtnStyle:o.default.object,cancelBtnText:o.default.oneOfType([o.default.node,o.default.string]),cancelBtnBsStyle:o.default.string,cancelBtnCssClass:o.default.string,cancelBtnStyle:o.default.object,btnSize:o.default.string,customIcon:o.default.oneOfType([o.default.node,o.default.string]),show:o.default.bool,required:o.default.bool,placeholder:o.default.string,validationMsg:o.default.string,validationRegex:o.default.object,defaultValue:o.default.oneOfType([o.default.number,o.default.string]),inputType:o.default.string,style:o.default.object,closeBtnStyle:o.default.object,customClass:o.default.string,showConfirm:o.default.bool,showCancel:o.default.bool,showCloseButton:o.default.bool,allowEscape:o.default.bool,closeOnClickOutside:o.default.bool,hideOverlay:o.default.bool,disabled:o.default.bool,focusConfirmBtn:o.default.bool,focusCancelBtn:o.default.bool,beforeMount:o.default.func,afterMount:o.default.func,beforeUpdate:o.default.func,afterUpdate:o.default.func,beforeUnmount:o.default.func,timeout:o.default.number,openAnim:o.default.any,closeAnim:o.default.any,reverseButtons:o.default.bool,customButtons:o.default.node,dependencies:o.default.arrayOf(o.default.any)}},74861:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},74958:(e,t,n)=>{var r=n(51609),o=n(35229).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},75795:e=>{"use strict";e.exports=window.ReactDOM},77232:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",l="string",u="major",p="model",d="name",f="type",h="vendor",m="version",g="architecture",y="console",v="mobile",b="tablet",w="smarttv",E="wearable",_="embedded",S="Amazon",C="Apple",x="ASUS",O="BlackBerry",k="Browser",M="Chrome",j="Firefox",D="Google",I="Huawei",T="LG",A="Microsoft",N="Motorola",L="Opera",P="Samsung",z="Sharp",R="Sony",B="Xiaomi",F="Zebra",U="Facebook",H="Chromium OS",K="Mac OS",V=" Browser",q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===l&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},Q=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Z=function(e,t){for(var n,r,o,s,l,u,p=0;p<t.length&&!l;){var d=t[p],f=t[p+1];for(n=r=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(o=0;o<f.length;o++)u=l[++r],typeof(s=f[o])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;p+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Y(t[n][r],e))return"?"===n?i:n}else if(Y(t[n],e))return"?"===n?i:n;return t.hasOwnProperty("*")?t["*"]:e},$={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"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,m],[/opios[\/ ]+([\w\.]+)/i],[m,[d,L+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[d,L+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[d,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/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)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[d,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[d,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+k],m],[/\bfocus\/([\w\.]+)/i],[m,[d,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[d,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[d,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[d,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[m,[d,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360"+V]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+V],m],[/samsungbrowser\/([\w\.]+)/i],[m,[d,P+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,U],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\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],[d,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[d,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,M+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[d,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[m,G,{"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],[d,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],m],[/(wolvic)\/([\w\.]+)/i],[d,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[d,j+" 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,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,W]]],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],[p,[h,P],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[p,[h,P],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[h,C],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[h,C],[f,b]],[/(macintosh);/i],[p,[h,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[h,z],[f,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[h,I],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[h,I],[f,v]],[/\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],[[p,/_/g," "],[h,B],[f,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[h,B],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[h,"OPPO"],[f,v]],[/\b(opd2\d{3}a?) bui/i],[p,[h,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[h,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[h,"Realme"],[f,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[h,N],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[h,N],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[h,T],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[h,T],[f,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[h,"Nokia"],[f,v]],[/(pixel c)\b/i],[p,[h,D],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[h,D],[f,v]],[/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],[p,[h,R],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[h,R],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[h,"OnePlus"],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[h,S],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[h,S],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[p,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[h,O],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[h,x],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[h,x],[f,v]],[/(nexus 9)/i],[p,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[p,/_/g," "],[f,v]],[/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],[p,[h,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[h,W],p,[f,G,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[h,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[h,"Ulefone"],[f,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[p,[h,"Nothing"],[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,p,[f,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/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],[h,p,[f,b]],[/(surface duo)/i],[p,[h,A],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[h,"Fairphone"],[f,v]],[/(u304aa)/i],[p,[h,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[p,[h,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[p,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[p,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[p,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[p,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[p,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[p,[h,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[p,[h,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[p,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[p,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],p,[f,b]],[/\b(ns-?\w{0,9}) b/i],[p,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],p,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],p,[f,v]],[/\b(ph-1) /i],[p,[h,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[p,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[p,[h,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[p,[h,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[h,p,[f,v]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[h,A],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[h,F],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[h,F],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,w]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[h,P],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,T],[f,w]],[/(apple) ?tv/i],[h,[p,C+" TV"],[f,w]],[/crkey/i],[[p,M+"cast"],[h,D],[f,w]],[/droid.+aft(\w+)( bui|\))/i],[p,[h,S],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[h,z],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[p,[h,R],[f,w]],[/(mitv-\w{5}) bui/i],[p,[h,B],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[h,p,[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Q],[p,Q],[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,p,[f,y]],[/droid.+; (shield) bui/i],[p,[h,"Nvidia"],[f,y]],[/(playstation [345portablevi]+)/i],[p,[h,R],[f,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[h,A],[f,y]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[p,[h,P],[f,E]],[/((pebble))app/i],[h,p,[f,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[h,C],[f,E]],[/droid.+; (glass) \d/i],[p,[h,D],[f,E]],[/droid.+; (wt63?0{2,3})\)/i],[p,[h,F],[f,E]],[/(quest( \d| pro)?)/i],[p,[h,U],[f,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,_]],[/(aeobc)\b/i],[p,[h,S],[f,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[m,G,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,G,$],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,K],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,m],[/\(bb(10);/i],[m,[d,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[d,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[d,M+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,H],m],[/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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,m],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,m]]},X=function(e,t){if(typeof e===c&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,t):J,E=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[d]=i,t[m]=i,Z.call(t,r,w.browser),t[u]=typeof(e=t[m])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:i,E&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[g]=i,Z.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[p]=i,e[f]=i,Z.call(e,r,w.device),E&&!e[f]&&y&&y.mobile&&(e[f]=v),E&&"Macintosh"==e[p]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[p]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[d]=i,e[m]=i,Z.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[d]=i,e[m]=i,Z.call(e,r,w.os),E&&!e[d]&&y&&y.platform&&"Unknown"!=y.platform&&(e[d]=y.platform.replace(/chrome os/i,H).replace(/macos/i,K)),e},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 r},this.setUA=function(e){return r=typeof e===l&&e.length>500?Q(e,500):e,this},this.setUA(r),this};X.VERSION="0.7.39",X.BROWSER=q([d,m,u]),X.CPU=q([g]),X.DEVICE=q([p,h,f,y,v,w,b,E,_]),X.ENGINE=X.OS=q([d,m]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=X);var ee=typeof o!==s&&(o.jQuery||o.Zepto);if(ee&&!ee.ua){var te=new X;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:this)},77337:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:K(e)}function r(e){return s(e)?e:V(e)}function o(e){return c(e)?e:q(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[p])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[f])}function l(e){return s(e)||c(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var p="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m="delete",g=32,y=31,v={},b={value:!1},w={value:!1};function E(e){return e.value=!1,e}function _(e){e&&(e.value=!0)}function S(){}function C(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function x(e){return void 0===e.size&&(e.size=e.__iterate(k)),e.size}function O(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function k(){return!0}function M(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(e,t){return I(e,t,0)}function D(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var T="function"==typeof Symbol&&Symbol.iterator,A="@@iterator",N=T||A;function L(e){this.next=e}function P(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function R(e){return!!U(e)}function B(e){return e&&"function"==typeof e.next}function F(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(T&&e[T]||e[A]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function K(e){return null==e?ne():a(e)?e.toSeq():function(e){var t=ie(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?ne().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function q(e){return null==e?ne():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function Y(e){return(null==e?ne():a(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=0,L.VALUES=1,L.ENTRIES=2,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[N]=function(){return this},t(K,n),K.of=function(){return K(arguments)},K.prototype.toSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq {","}")},K.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},K.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},K.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(V,K),V.prototype.toKeyedSeq=function(){return this},t(q,K),q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},q.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(Y,K),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},K.isSeq=te,K.Keyed=V,K.Set=Y,K.Indexed=q;var W,Q,Z,G="@@__IMMUTABLE_SEQ__@@";function $(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function X(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[G])}function ne(){return W||(W=new $([]))}function re(e){var t=Array.isArray(e)?new $(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():R(e)?new X(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return H(e)?new $(e):B(e)?new ee(e):R(e)?new X(e):void 0}function ae(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function se(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new L((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:P(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function ce(e,t){return t?le(t,e,"",{"":e}):ue(e)}function le(e,t,n,r){return Array.isArray(t)?e.call(r,n,q(t).map((function(n,r){return le(e,n,r,t)}))):pe(t)?e.call(r,n,V(t).map((function(n,r){return le(e,n,r,t)}))):t}function ue(e){return Array.isArray(e)?q(e).map(ue).toList():pe(e)?V(e).map(ue).toMap():e}function pe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function de(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&de(o[1],e)&&(n||de(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var p=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!de(t,e.get(r,v)):!de(e.get(r,v),t))return p=!1,!1}));return p&&e.size===d}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(me(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function ye(){throw TypeError("Abstract")}function ve(){}function be(){}function we(){}K.prototype[G]=!0,t($,q),$.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t},$.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},$.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new L((function(){return o>r?{value:void 0,done:!0}:P(e,o,n[t?r-o++:o++])}))},t(J,V),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},J.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new L((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:P(e,a,n[a])}))},J.prototype[h]=!0,t(X,q),X.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=F(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},X.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=F(this._iterable);if(!B(n))return new L(z);var r=0;return new L((function(){var t=n.next();return t.done?t:P(e,r++,t.value)}))},t(ee,q),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new L((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return P(e,o,r[o++])}))},t(he,q),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return de(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:new he(this._value,D(t,n)-j(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return de(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return de(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},he.prototype.__iterator=function(e,t){var n=this,r=0;return new L((function(){return r<n.size?P(e,r++,n._value):{value:void 0,done:!0}}))},he.prototype.equals=function(e){return e instanceof he?de(this._value,e._value):fe(e)},t(ge,q),ge.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ge.prototype.slice=function(e,t){return M(e,t,this.size)?this:(e=j(e,this.size),(t=D(t,this.size))<=e?new ge(0,0):new ge(this.get(e,this._end),this.get(t,this._end),this._step))},ge.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ge.prototype.lastIndexOf=function(e){return this.indexOf(e)},ge.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},ge.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new L((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:P(e,i++,a)}))},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(ye,n),t(ve,ye),t(be,ye),t(we,ye),ye.Keyed=ve,ye.Indexed=be,ye.Set=we;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function _e(e){return e>>>1&1073741824|3221225471&e}function Se(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return _e(n)}if("string"===t)return e.length>Ie?function(e){var t=Ne[e];return void 0===t&&(t=Ce(e),Ae===Te&&(Ae=0,Ne={}),Ae++,Ne[e]=t),t}(e):Ce(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Me&&void 0!==(t=ke.get(e)))return t;if(void 0!==(t=e[De]))return t;if(!Oe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[De]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++je,1073741824&je&&(je=0),Me)ke.set(e,t);else{if(void 0!==xe&&!1===xe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Oe)Object.defineProperty(e,De,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[De]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[De]=t}}return t}(e);if("function"==typeof e.toString)return Ce(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ce(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return _e(t)}var xe=Object.isExtensible,Oe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var ke,Me="function"==typeof WeakMap;Me&&(ke=new WeakMap);var je=0,De="__immutablehash__";"function"==typeof Symbol&&(De=Symbol(De));var Ie=16,Te=255,Ae=0,Ne={};function Le(e){me(e!==1/0,"Cannot perform this action with an infinite size.")}function Pe(e){return null==e?Ge():ze(e)&&!u(e)?e:Ge().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function ze(e){return!(!e||!e[Be])}t(Pe,ve),Pe.prototype.toString=function(){return this.__toString("Map {","}")},Pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Pe.prototype.set=function(e,t){return $e(this,e,t)},Pe.prototype.setIn=function(e,t){return this.updateIn(e,v,(function(){return t}))},Pe.prototype.remove=function(e){return $e(this,e,v)},Pe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return v}))},Pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=it(this,tn(e),t,n);return r===v?void 0:r},Pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ge()},Pe.prototype.merge=function(){return tt(this,void 0,arguments)},Pe.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},Pe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ge(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Pe.prototype.mergeDeep=function(){return tt(this,nt,arguments)},Pe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return tt(this,rt(t),n)},Pe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ge(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Pe.prototype.sort=function(e){return Mt(Vt(this,e))},Pe.prototype.sortBy=function(e,t){return Mt(Vt(this,t,e))},Pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Pe.prototype.asImmutable=function(){return this.__ensureOwner()},Pe.prototype.wasAltered=function(){return this.__altered},Pe.prototype.__iterator=function(e,t){return new Ye(this,e,t)},Pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ze(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Pe.isMap=ze;var Re,Be="@@__IMMUTABLE_MAP__@@",Fe=Pe.prototype;function Ue(e,t){this.ownerID=e,this.entries=t}function He(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ke(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Qe(e._root)}function We(e,t){return P(e,t[0],t[1])}function Qe(e,t){return{node:e,index:0,__prev:t}}function Ze(e,t,n,r){var o=Object.create(Fe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ge(){return Re||(Re=Ze(0))}function $e(e,t,n){var r,o;if(e._root){var i=E(b),a=E(w);if(r=Je(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===v?-1:1:0)}else{if(n===v)return e;o=1,r=new Ue(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ze(o,r):Ge()}function Je(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===v?e:(_(s),_(a),new qe(t,r,[o,i]))}function Xe(e){return e.constructor===qe||e.constructor===Ve}function et(e,t,n,r,o){if(e.keyHash===r)return new Ve(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,s=(0===n?r:r>>>n)&y;return new He(t,1<<a|1<<s,a===s?[et(e,t,n+5,r,o)]:(i=new qe(t,r,o),a<s?[e,i]:[i,e]))}function tt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return ce(e)}))),o.push(c)}return ot(e,t,o)}function nt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):de(e,t)?e:t}function rt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return de(t,o)?t:o}}function ot(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,v,(function(e){return e===v?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function it(e,t,n,r){var o=e===v,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}me(o||e&&e.set,"invalid keyPath");var c=i.value,l=o?v:e.get(c,v),u=it(l,t,n,r);return u===l?e:u===v?e.remove(c):(o?Ge():e).set(c,u)}function at(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function st(e,t,n,r){var o=r?e:C(e);return o[t]=n,o}Fe[Be]=!0,Fe[m]=Fe.remove,Fe.removeIn=Fe.deleteIn,Ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(de(n,o[i][0]))return o[i][1];return r},Ue.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===v,c=this.entries,l=0,u=c.length;l<u&&!de(r,c[l][0]);l++);var p=l<u;if(p?c[l][1]===o:s)return this;if(_(a),(s||!p)&&_(i),!s||1!==c.length){if(!p&&!s&&c.length>=ct)return function(e,t,n,r){e||(e=new S);for(var o=new qe(e,Se(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,r,o);var d=e&&e===this.ownerID,f=d?c:C(c);return p?s?l===u-1?f.pop():f[l]=f.pop():f[l]=[r,o]:f.push([r,o]),d?(this.entries=f,this):new Ue(e,f)}},He.prototype.get=function(e,t,n,r){void 0===t&&(t=Se(n));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return i&o?this.nodes[at(i&o-1)].get(e+5,t,n,r):r},He.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Se(r));var s=(0===t?n:n>>>t)&y,c=1<<s,l=this.bitmap,u=!!(l&c);if(!u&&o===v)return this;var p=at(l&c-1),d=this.nodes,f=u?d[p]:void 0,h=Je(f,e,t+5,n,r,o,i,a);if(h===f)return this;if(!u&&h&&d.length>=lt)return function(e,t,n,r,o){for(var i=0,a=new Array(g),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Ke(e,i+1,a)}(e,d,l,s,h);if(u&&!h&&2===d.length&&Xe(d[1^p]))return d[1^p];if(u&&h&&1===d.length&&Xe(h))return h;var m=e&&e===this.ownerID,b=u?h?l:l^c:l|c,w=u?h?st(d,p,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(d,p,m):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(d,p,h,m);return m?(this.bitmap=b,this.nodes=w,this):new He(e,b,w)},Ke.prototype.get=function(e,t,n,r){void 0===t&&(t=Se(n));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Ke.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Se(r));var s=(0===t?n:n>>>t)&y,c=o===v,l=this.nodes,u=l[s];if(c&&!u)return this;var p=Je(u,e,t+5,n,r,o,i,a);if(p===u)return this;var d=this.count;if(u){if(!p&&--d<ut)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=c,a[i++]=u)}return new He(e,o,a)}(e,l,d,s)}else d++;var f=e&&e===this.ownerID,h=st(l,s,p,f);return f?(this.count=d,this.nodes=h,this):new Ke(e,d,h)},Ve.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(de(n,o[i][0]))return o[i][1];return r},Ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Se(r));var s=o===v;if(n!==this.keyHash)return s?this:(_(a),_(i),et(this,e,t,n,[r,o]));for(var c=this.entries,l=0,u=c.length;l<u&&!de(r,c[l][0]);l++);var p=l<u;if(p?c[l][1]===o:s)return this;if(_(a),(s||!p)&&_(i),s&&2===u)return new qe(e,this.keyHash,c[1^l]);var d=e&&e===this.ownerID,f=d?c:C(c);return p?s?l===u-1?f.pop():f[l]=f.pop():f[l]=[r,o]:f.push([r,o]),d?(this.entries=f,this):new Ve(e,this.keyHash,f)},qe.prototype.get=function(e,t,n,r){return de(n,this.entry[0])?this.entry[1]:r},qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===v,c=de(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(_(a),s?void _(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new qe(e,this.keyHash,[r,o]):(_(i),et(this,e,t,Se(r),[r,o])))},Ue.prototype.iterate=Ve.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},He.prototype.iterate=Ke.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},qe.prototype.iterate=function(e,t){return e(this.entry)},t(Ye,L),Ye.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return We(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return We(e,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 We(e,i.entry);t=this._stack=Qe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ct=8,lt=16,ut=8;function pt(e){var t=Et();if(null==e)return t;if(dt(e))return e;var n=o(e),r=n.size;return 0===r?t:(Le(r),r>0&&r<g?wt(0,r,5,null,new mt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function dt(e){return!(!e||!e[ft])}t(pt,be),pt.of=function(){return this(arguments)},pt.prototype.toString=function(){return this.__toString("List [","]")},pt.prototype.get=function(e,t){if((e=O(this,e))>=0&&e<this.size){var n=Ct(this,e+=this._origin);return n&&n.array[e&y]}return t},pt.prototype.set=function(e,t){return function(e,t,n){if((t=O(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?xt(e,t).set(0,n):xt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=E(w);return t>=kt(e._capacity)?r=_t(r,e.__ownerID,0,t,n,i):o=_t(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):wt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},pt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},pt.prototype.insert=function(e,t){return this.splice(e,0,t)},pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},pt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){xt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},pt.prototype.pop=function(){return xt(this,0,-1)},pt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){xt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},pt.prototype.shift=function(){return xt(this,1)},pt.prototype.merge=function(){return Ot(this,void 0,arguments)},pt.prototype.mergeWith=function(t){return Ot(this,t,e.call(arguments,1))},pt.prototype.mergeDeep=function(){return Ot(this,nt,arguments)},pt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ot(this,rt(t),n)},pt.prototype.setSize=function(e){return xt(this,0,e)},pt.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:xt(this,j(e,n),D(t,n))},pt.prototype.__iterator=function(e,t){var n=0,r=bt(this,t);return new L((function(){var t=r();return t===vt?{value:void 0,done:!0}:P(e,n++,t)}))},pt.prototype.__iterate=function(e,t){for(var n,r=0,o=bt(this,t);(n=o())!==vt&&!1!==e(n,r++,this););return r},pt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},pt.isList=dt;var ft="@@__IMMUTABLE_LIST__@@",ht=pt.prototype;function mt(e,t){this.array=e,this.ownerID=t}ht[ft]=!0,ht[m]=ht.remove,ht.setIn=Fe.setIn,ht.deleteIn=ht.removeIn=Fe.removeIn,ht.update=Fe.update,ht.updateIn=Fe.updateIn,ht.mergeIn=Fe.mergeIn,ht.mergeDeepIn=Fe.mergeDeepIn,ht.withMutations=Fe.withMutations,ht.asMutable=Fe.asMutable,ht.asImmutable=Fe.asImmutable,ht.wasAltered=Fe.wasAltered,mt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new mt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=St(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},mt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=St(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var gt,yt,vt={};function bt(e,t){var n=e._origin,r=e._capacity,o=kt(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,l=r-a;return l>g&&(l=g),function(){if(c===l)return vt;var e=t?--l:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>g&&(u=g),function(){for(;;){if(s){var e=s();if(e!==vt)return e;s=null}if(l===u)return vt;var n=t?--u:l++;s=a(c&&c[n],o-5,i+(n<<o))}}}(e,s,c)}}function wt(e,t,n,r,o,i,a){var s=Object.create(ht);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Et(){return gt||(gt=wt(0,0,5))}function _t(e,t,n,r,o,i){var a,s=r>>>n&y,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var l=e&&e.array[s],u=_t(l,t,n-5,r,o,i);return u===l?e:((a=St(e,t)).array[s]=u,a)}return c&&e.array[s]===o?e:(_(i),a=St(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function St(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function Ct(e,t){if(t>=kt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=5;return n}}function xt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,l=e._root,u=0;a+u<0;)l=new mt(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=5);u&&(a+=u,o+=u,s+=u,i+=u);for(var p=kt(i),d=kt(s);d>=1<<c+5;)l=new mt(l&&l.array.length?[l]:[],r),c+=5;var f=e._tail,h=d<p?Ct(e,s-1):d>p?new mt([],r):f;if(f&&d>p&&a<i&&f.array.length){for(var m=l=St(l,r),g=c;g>5;g-=5){var v=p>>>g&y;m=m.array[v]=St(m.array[v],r)}m.array[p>>>5&y]=f}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,c=5,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<p){for(u=0;l;){var b=a>>>c&y;if(b!==d>>>c&y)break;b&&(u+=(1<<c)*b),c-=5,l=l.array[b]}l&&a>o&&(l=l.removeBefore(r,c,a-u)),l&&d<p&&(l=l.removeAfter(r,c,d-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):wt(a,s,c,l,h)}function Ot(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],l=o(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return ce(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),ot(e,t,r)}function kt(e){return e<g?0:e-1>>>5<<5}function Mt(e){return null==e?It():jt(e)?e:It().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function jt(e){return ze(e)&&u(e)}function Dt(e,t,n,r){var o=Object.create(Mt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function It(){return yt||(yt=Dt(Ge(),Et()))}function Tt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===v){if(!c)return e;a.size>=g&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Dt(r,o)}function At(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Nt(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Pt(e){this._iter=e,this.size=e.size}function zt(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Xt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new L((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Rt(e,t,n){var r=Jt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,v);return i===v?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new L((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return P(r,s,t.call(n,a[1],s,e),o)}))},r}function Bt(e,t){var n=Jt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Xt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Ft(e,t,n,r){var o=Jt(e);return r&&(o.has=function(r){var o=e.get(r,v);return o!==v&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,v);return i!==v&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new L((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return P(o,r?l:s++,u,i)}}))},o}function Ut(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),M(t,n,o))return e;var i=j(t,o),a=D(n,o);if(i!=i||a!=a)return Ut(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var l=Jt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&te(e)&&s>=0&&(l.get=function(t,n){return(t=O(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new L((function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:P(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Ht(e,t,n,r){var o=Jt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,l=0;return new L((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:P(o,l++,0===o?void 0:e.value[1],e);var p=e.value;i=p[0],u=p[1],c&&(c=t.call(n,u,i,a))}while(c);return 2===o?e:P(o,i,u,e)}))},o}function Kt(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(c,l){var u=this;c.__iterate((function(o,c){return(!t||l<t)&&a(o)?e(o,l+1):!1===r(o,n?c:i++,u)&&(s=!0),!s}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new L((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:P(r,c++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}}))},r}function Vt(e,t,n){t||(t=en);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?V(i):c(e)?q(i):Y(i)}function qt(e,t,n){if(t||(t=en),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Yt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Yt(t,e,n)?n:e}))}function Yt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Wt(e,t,r){var o=Jt(e);return o.size=new $(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),F(o?e.reverse():e)})),a=0,s=!1;return new L((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:P(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Qt(e,t){return te(e)?t:e.constructor(t)}function Zt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Gt(e){return Le(e.size),x(e)}function $t(e){return s(e)?r:c(e)?o:i}function Jt(e){return Object.create((s(e)?V:c(e)?q:Y).prototype)}function Xt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function en(e,t){return e>t?1:e<t?-1:0}function tn(e){var t=F(e);if(!t){if(!H(e))throw new TypeError("Expected iterable or array-like: "+e);t=F(n(e))}return t}function nn(e,t){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(e);(function(e,t){try{t.forEach(sn.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Pe(i)},o=r.prototype=Object.create(rn);return o.constructor=r,r}t(Mt,Pe),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Mt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):It()},Mt.prototype.set=function(e,t){return Tt(this,e,t)},Mt.prototype.remove=function(e){return Tt(this,e,v)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Mt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Mt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Dt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Mt.isOrderedMap=jt,Mt.prototype[h]=!0,Mt.prototype[m]=Mt.prototype.remove,t(At,V),At.prototype.get=function(e,t){return this._iter.get(e,t)},At.prototype.has=function(e){return this._iter.has(e)},At.prototype.valueSeq=function(){return this._iter.valueSeq()},At.prototype.reverse=function(){var e=this,t=Bt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},At.prototype.map=function(e,t){var n=this,r=Rt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},At.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Gt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},At.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Gt(this):0;return new L((function(){var o=n.next();return o.done?o:P(e,t?--r:r++,o.value,o)}))},At.prototype[h]=!0,t(Nt,q),Nt.prototype.includes=function(e){return this._iter.includes(e)},Nt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Nt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new L((function(){var t=n.next();return t.done?t:P(e,r++,t.value,t)}))},t(Lt,Y),Lt.prototype.has=function(e){return this._iter.includes(e)},Lt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Lt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new L((function(){var t=n.next();return t.done?t:P(e,t.value,t.value,t)}))},t(Pt,V),Pt.prototype.entrySeq=function(){return this._iter.toSeq()},Pt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Zt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Pt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new L((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Zt(r);var o=a(r);return P(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Nt.prototype.cacheResult=At.prototype.cacheResult=Lt.prototype.cacheResult=Pt.prototype.cacheResult=Xt,t(nn,ve),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},nn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=on(this,Ge()))},nn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+an(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:on(this,t)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},nn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},nn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?on(this,t,e):(this.__ownerID=e,this._map=t,this)};var rn=nn.prototype;function on(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function an(e){return e._name||e.constructor.name||"Record"}function sn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){me(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function cn(e){return null==e?mn():ln(e)&&!u(e)?e:mn().withMutations((function(t){var n=i(e);Le(n.size),n.forEach((function(e){return t.add(e)}))}))}function ln(e){return!(!e||!e[pn])}rn[m]=rn.remove,rn.deleteIn=rn.removeIn=Fe.removeIn,rn.merge=Fe.merge,rn.mergeWith=Fe.mergeWith,rn.mergeIn=Fe.mergeIn,rn.mergeDeep=Fe.mergeDeep,rn.mergeDeepWith=Fe.mergeDeepWith,rn.mergeDeepIn=Fe.mergeDeepIn,rn.setIn=Fe.setIn,rn.update=Fe.update,rn.updateIn=Fe.updateIn,rn.withMutations=Fe.withMutations,rn.asMutable=Fe.asMutable,rn.asImmutable=Fe.asImmutable,t(cn,we),cn.of=function(){return this(arguments)},cn.fromKeys=function(e){return this(r(e).keySeq())},cn.prototype.toString=function(){return this.__toString("Set {","}")},cn.prototype.has=function(e){return this._map.has(e)},cn.prototype.add=function(e){return fn(this,this._map.set(e,!0))},cn.prototype.remove=function(e){return fn(this,this._map.remove(e))},cn.prototype.clear=function(){return fn(this,this._map.clear())},cn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},cn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},cn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},cn.prototype.merge=function(){return this.union.apply(this,arguments)},cn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},cn.prototype.sort=function(e){return gn(Vt(this,e))},cn.prototype.sortBy=function(e,t){return gn(Vt(this,t,e))},cn.prototype.wasAltered=function(){return this._map.wasAltered()},cn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},cn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},cn.isSet=ln;var un,pn="@@__IMMUTABLE_SET__@@",dn=cn.prototype;function fn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function hn(e,t){var n=Object.create(dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function mn(){return un||(un=hn(Ge()))}function gn(e){return null==e?En():yn(e)?e:En().withMutations((function(t){var n=i(e);Le(n.size),n.forEach((function(e){return t.add(e)}))}))}function yn(e){return ln(e)&&u(e)}dn[pn]=!0,dn[m]=dn.remove,dn.mergeDeep=dn.merge,dn.mergeDeepWith=dn.mergeWith,dn.withMutations=Fe.withMutations,dn.asMutable=Fe.asMutable,dn.asImmutable=Fe.asImmutable,dn.__empty=mn,dn.__make=hn,t(gn,cn),gn.of=function(){return this(arguments)},gn.fromKeys=function(e){return this(r(e).keySeq())},gn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},gn.isOrderedSet=yn;var vn,bn=gn.prototype;function wn(e,t){var n=Object.create(bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function En(){return vn||(vn=wn(It()))}function Sn(e){return null==e?jn():Cn(e)?e:jn().unshiftAll(e)}function Cn(e){return!(!e||!e[On])}bn[h]=!0,bn.__empty=En,bn.__make=wn,t(Sn,be),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(e,t){var n=this._head;for(e=O(this,e);n&&e--;)n=n.next;return n?n.value:t},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Mn(e,t)},Sn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Le(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Mn(t,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(e){return this.pushAll(e)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.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):jn()},Sn.prototype.slice=function(e,t){if(M(e,t,this.size))return this;var n=j(e,this.size);if(D(t,this.size)!==this.size)return be.prototype.slice.call(this,e,t);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):Mn(r,o)},Sn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Mn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Sn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new L((function(){if(r){var t=r.value;return r=r.next,P(e,n++,t)}return{value:void 0,done:!0}}))},Sn.isStack=Cn;var xn,On="@@__IMMUTABLE_STACK__@@",kn=Sn.prototype;function Mn(e,t,n,r){var o=Object.create(kn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function jn(){return xn||(xn=Mn(0))}function Dn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}kn[On]=!0,kn.withMutations=Fe.withMutations,kn.asMutable=Fe.asMutable,kn.asImmutable=Fe.asImmutable,kn.wasAltered=Fe.wasAltered,n.Iterator=L,Dn(n,{toArray:function(){Le(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Nt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new At(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Le(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Mt(this.toKeyedSeq())},toOrderedSet:function(){return gn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Lt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return pt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Qt(this,function(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?re(e):oe(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var l=new $(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return de(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Le(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Qt(this,Ft(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Le(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Le(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Qt(this,Rt(this,e,t))},reduce:function(e,t,n){var r,o;return Le(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Qt(this,Bt(this,!0))},slice:function(e,t){return Qt(this,Ut(this,e,t,!0))},some:function(e,t){return!this.every(Ln(e),t)},sort:function(e){return Qt(this,Vt(this,e))},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(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pe().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new $(e._cache);var t=e.toSeq().map(Nn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Ln(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(k)},flatMap:function(e,t){return Qt(this,function(e,t,n){var r=$t(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Qt(this,Kt(this,e,!0))},fromEntrySeq:function(){return new Pt(this)},get:function(e,t){return this.find((function(t,n){return de(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=tn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,v):v)===v)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(u(e)?Mt():Pe()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=$t(e);return o.map((function(t){return Qt(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(An).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return qt(this,e)},maxBy:function(e,t){return qt(this,t,e)},min:function(e){return qt(this,e?Pn(e):Bn)},minBy:function(e,t){return qt(this,t?Pn(t):Bn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Qt(this,Ht(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Ln(e),t)},sortBy:function(e,t){return Qt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Qt(this,function(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new L((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?2===r?e:P(r,c,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Ln(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return function(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=t+3864292196^e)^t>>>16,2246822507),_e((t=Ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Fn(Se(e),Se(t))|0}:function(e,t){r=r+Fn(Se(e),Se(t))|0}:t?function(e){r=31*r+Se(e)|0}:function(e){r=r+Se(e)|0}),r)}(this))}});var In=n.prototype;In[p]=!0,In[N]=In.values,In.__toJS=In.toArray,In.__toStringMapper=zn,In.inspect=In.toSource=function(){return this.toString()},In.chain=In.flatMap,In.contains=In.includes,function(){try{Object.defineProperty(In,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.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. "+e),this.size}}})}catch(e){}}(),Dn(r,{flip:function(){return Qt(this,zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return de(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return de(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Qt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Qt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Tn=r.prototype;function An(e,t){return t}function Nn(e,t){return[t,e]}function Ln(e){return function(){return!e.apply(this,arguments)}}function Pn(e){return function(){return-e.apply(this,arguments)}}function zn(e){return"string"==typeof e?JSON.stringify(e):e}function Rn(){return C(arguments)}function Bn(e,t){return e<t?1:e>t?-1:0}function Fn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return Tn[d]=!0,Tn[N]=In.entries,Tn.__toJS=In.toObject,Tn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+zn(e)},Dn(o,{toKeyedSeq:function(){return new At(this,!1)},filter:function(e,t){return Qt(this,Ft(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Qt(this,Bt(this,!1))},slice:function(e,t){return Qt(this,Ut(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return Qt(this,1===n?r:r.concat(C(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Qt(this,Kt(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Qt(this,function(e,t){var n=Jt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new L((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?P(n,a++,t):P(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(C(arguments)),t=Wt(this.toSeq(),q.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Qt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Qt(this,Ht(this,e,t,!1))},zip:function(){return Qt(this,Wt(this,Rn,[this].concat(C(arguments))))},zipWith:function(e){var t=C(arguments);return t[0]=this,Qt(this,Wt(this,e,t))}}),o.prototype[f]=!0,o.prototype[h]=!0,Dn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=In.includes,Dn(V,r.prototype),Dn(q,o.prototype),Dn(Y,i.prototype),Dn(ve,r.prototype),Dn(be,o.prototype),Dn(we,i.prototype),{Iterable:n,Seq:K,Collection:ye,Map:Pe,OrderedMap:Mt,List:pt,Stack:Sn,Set:cn,OrderedSet:gn,Record:nn,Range:ge,Repeat:he,is:de,fromJS:ce}}()},77405:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},77800:(e,t,n)=>{"use strict";n(14594),e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},78465:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),n=e=>Array.prototype.slice.call(e),r=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},o=t=>{console.error("".concat(e," ").concat(t))},i=[],a=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),i.includes(n)||(i.push(n),r(n))},s=e=>"function"==typeof e?e():e,c=e=>e&&"function"==typeof e.toPromise,l=e=>c(e)?e.toPromise():Promise.resolve(e),u=e=>e&&Promise.resolve(e)===e,p={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],f={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(p,e),g=e=>-1!==d.indexOf(e),y=e=>f[e],v=e=>{m(e)||r('Unknown parameter "'.concat(e,'"'))},b=e=>{h.includes(e)&&r('The parameter "'.concat(e,'" is incompatible with toasts'))},w=e=>{y(e)&&a(e,y(e))},E=e=>{const t={};for(const n in e)t[e[n]]="swal2-"+e[n];return t},_=E(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),S=E(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},O=e=>x(".".concat(e)),k=()=>O(_.popup),M=()=>O(_.icon),j=()=>O(_.title),D=()=>O(_["html-container"]),I=()=>O(_.image),T=()=>O(_["progress-steps"]),A=()=>O(_["validation-message"]),N=()=>x(".".concat(_.actions," .").concat(_.confirm)),L=()=>x(".".concat(_.actions," .").concat(_.deny)),P=()=>x(".".concat(_.loader)),z=()=>x(".".concat(_.actions," .").concat(_.cancel)),R=()=>O(_.actions),B=()=>O(_.footer),F=()=>O(_["timer-progress-bar"]),U=()=>O(_.close),H=()=>{const e=n(k().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")),r=parseInt(t.getAttribute("tabindex"));return n>r?1:n<r?-1:0})),t=n(k().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((e=>"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t})(e.concat(t)).filter((e=>ae(e)))},K=()=>W(document.body,_.shown)&&!W(document.body,_["toast-shown"])&&!W(document.body,_["no-backdrop"]),V=()=>k()&&W(k(),_.toast),q={previousBodyPadding:null},Y=(e,t)=>{if(e.textContent="",t){const r=(new DOMParser).parseFromString(t,"text/html");n(r.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),n(r.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},W=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},Q=(e,t,o)=>{if(((e,t)=>{n(e.classList).forEach((n=>{Object.values(_).includes(n)||Object.values(S).includes(n)||Object.values(t.showClass).includes(n)||e.classList.remove(n)}))})(e,t),t.customClass&&t.customClass[o]){if("string"!=typeof t.customClass[o]&&!t.customClass[o].forEach)return r("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(typeof t.customClass[o],'"'));J(e,t.customClass[o])}},Z=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},G=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},$=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{$(e,t,!0)},X=(e,t)=>{$(e,t,!1)},ee=(e,t)=>{const r=n(e.childNodes);for(let e=0;e<r.length;e++)if(W(r[e],t))return r[e]},te=(e,t,n)=>{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},re=e=>{e.style.display="none"},oe=(e,t,n,r)=>{const o=e.querySelector(t);o&&(o.style[n]=r)},ie=(e,t,n)=>{t?ne(e,n):re(e)},ae=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ce=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=F();ae(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},ue=()=>"undefined"==typeof window||"undefined"==typeof document,pe={},de=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;pe.restoreFocusTimeout=setTimeout((()=>{pe.previousActiveElement&&pe.previousActiveElement.focus?(pe.previousActiveElement.focus(),pe.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),fe='\n <div aria-labelledby="'.concat(_.title,'" aria-describedby="').concat(_["html-container"],'" class="').concat(_.popup,'" tabindex="-1">\n <button type="button" class="').concat(_.close,'"></button>\n <ul class="').concat(_["progress-steps"],'"></ul>\n <div class="').concat(_.icon,'"></div>\n <img class="').concat(_.image,'" />\n <h2 class="').concat(_.title,'" id="').concat(_.title,'"></h2>\n <div class="').concat(_["html-container"],'" id="').concat(_["html-container"],'"></div>\n <input class="').concat(_.input,'" />\n <input type="file" class="').concat(_.file,'" />\n <div class="').concat(_.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(_.select,'"></select>\n <div class="').concat(_.radio,'"></div>\n <label for="').concat(_.checkbox,'" class="').concat(_.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(_.label,'"></span>\n </label>\n <textarea class="').concat(_.textarea,'"></textarea>\n <div class="').concat(_["validation-message"],'" id="').concat(_["validation-message"],'"></div>\n <div class="').concat(_.actions,'">\n <div class="').concat(_.loader,'"></div>\n <button type="button" class="').concat(_.confirm,'"></button>\n <button type="button" class="').concat(_.deny,'"></button>\n <button type="button" class="').concat(_.cancel,'"></button>\n </div>\n <div class="').concat(_.footer,'"></div>\n <div class="').concat(_["timer-progress-bar-container"],'">\n <div class="').concat(_["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),he=()=>{pe.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(ue())return void o("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=_.container,t&&J(n,_["no-transition"]),Y(n,fe);const r="string"==typeof(i=e.target)?document.querySelector(i):i;var i;r.appendChild(n),(e=>{const t=k();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(r),(()=>{const e=k(),t=ee(e,_.input),n=ee(e,_.file),r=e.querySelector(".".concat(_.range," input")),o=e.querySelector(".".concat(_.range," output")),i=ee(e,_.select),a=e.querySelector(".".concat(_.checkbox," input")),s=ee(e,_.textarea);t.oninput=he,n.onchange=he,i.onchange=he,a.onchange=he,s.oninput=he,r.oninput=()=>{he(),o.value=r.value},r.onchange=()=>{he(),r.nextSibling.value=r.value}})()},ge=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ye(e,t):e&&Y(t,e)},ye=(e,t)=>{e.jquery?ve(t,e):Y(t,e.toString())},ve=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},be=(()=>{if(ue())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1})(),we=(e,t)=>{const n=R(),r=P();t.showConfirmButton||t.showDenyButton||t.showCancelButton?ne(n):re(n),Q(n,t,"actions"),function(e,t,n){const r=N(),o=L(),i=z();Ee(r,"confirm",n),Ee(o,"deny",n),Ee(i,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return X([e,t,n],_.styled);J([e,t,n],_.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,J(e,_["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,J(t,_["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,J(n,_["default-outline"]))}(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),Y(r,t.loaderHtml),Q(r,t,"loader")};function Ee(e,n,r){ie(e,r["show".concat(t(n),"Button")],"inline-block"),Y(e,r["".concat(n,"ButtonText")]),e.setAttribute("aria-label",r["".concat(n,"ButtonAriaLabel")]),e.className=_[n],Q(e,r,"".concat(n,"Button")),J(e,r["".concat(n,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(r('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const n="grow-".concat(t);n in _&&J(e,_[n])}}(n,t.grow),Q(n,t,"container"))};var Se={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!Ie[e.input])return o('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=De(e.input),n=Ie[e.input](t,e);ne(n),setTimeout((()=>{G(n)}))},Oe=(e,t)=>{const n=Z(k(),e);if(n){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["type","value","style"].includes(n)||e.removeAttribute(n)}})(n);for(const e in t)n.setAttribute(e,t[e])}},ke=e=>{const t=De(e.input);e.customClass&&J(t,e.customClass.input)},Me=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},je=(e,t,n)=>{if(n.inputLabel){e.id=_.input;const r=document.createElement("label"),o=_["input-label"];r.setAttribute("for",e.id),r.className=o,J(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},De=e=>{const t=_[e]?_[e]:_.input;return ee(k(),t)},Ie={};Ie.text=Ie.email=Ie.password=Ie.number=Ie.tel=Ie.url=(e,t)=>("string"==typeof t.inputValue||"number"==typeof t.inputValue?e.value=t.inputValue:u(t.inputValue)||r('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue,'"')),je(e,e,t),Me(e,t),e.type=t.input,e),Ie.file=(e,t)=>(je(e,e,t),Me(e,t),e),Ie.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,r.value=t.inputValue,je(n,e,t),e},Ie.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");Y(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return je(e,e,t),e},Ie.radio=e=>(e.textContent="",e),Ie.checkbox=(e,t)=>{const n=Z(k(),"checkbox");n.value="1",n.id=_.checkbox,n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return Y(r,t.inputPlaceholder),e},Ie.textarea=(e,t)=>{e.value=t.inputValue,Me(e,t),je(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(k()).width);new MutationObserver((()=>{const n=e.offsetWidth+(r=e,parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight));var r;k().style.width=n>t?"".concat(n,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Te=(e,t)=>{const n=D();Q(n,t,"htmlContainer"),t.html?(ge(t.html,n),ne(n,"block")):t.text?(n.textContent=t.text,ne(n,"block")):re(n),((e,t)=>{const n=k(),r=Se.innerParams.get(e),o=!r||t.input!==r.input;Ce.forEach((e=>{const r=_[e],i=ee(n,r);Oe(e,t.inputAttributes),i.className=r,o&&re(i)})),t.input&&(o&&xe(t),ke(t))})(e,t)},Ae=(e,t)=>{for(const n in S)t.icon!==n&&X(e,S[n]);J(e,S[t.icon]),Pe(e,t),Ne(),Q(e,t,"icon")},Ne=()=>{const e=k(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Le=(e,t)=>{e.textContent="",t.iconHtml?Y(e,ze(t.iconHtml)):"success"===t.icon?Y(e,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n'):"error"===t.icon?Y(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n'):Y(e,ze({question:"?",warning:"!",info:"i"}[t.icon]))},Pe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,n,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},ze=e=>'<div class="'.concat(_["icon-content"],'">').concat(e,"</div>"),Re=(e,t)=>{const n=T();if(!t.progressSteps||0===t.progressSteps.length)return re(n);ne(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&r("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,r)=>{const o=(e=>{const t=document.createElement("li");return J(t,_["progress-step"]),Y(t,e),t})(e);if(n.appendChild(o),r===t.currentProgressStep&&J(o,_["active-progress-step"]),r!==t.progressSteps.length-1){const e=(e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t})(t);n.appendChild(e)}}))},Be=(e,t)=>{e.className="".concat(_.popup," ").concat(ae(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),Q(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},Fe=(e,t)=>{((e,t)=>{const n=C(),r=k();t.toast?(te(n,"width",t.width),r.style.width="100%",r.insertBefore(P(),M())):te(r,"width",t.width),te(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),re(A()),Be(r,t)})(0,t),_e(0,t),Re(0,t),((e,t)=>{const n=Se.innerParams.get(e),r=M();n&&t.icon===n.icon?(Le(r,t),Ae(r,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(S).indexOf(t.icon)?(o('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),re(r)):(ne(r),Le(r,t),Ae(r,t),J(r,t.showClass.icon)):re(r)})(e,t),((e,t)=>{const n=I();if(!t.imageUrl)return re(n);ne(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),te(n,"width",t.imageWidth),te(n,"height",t.imageHeight),n.className=_.image,Q(n,t,"image")})(0,t),((e,t)=>{const n=j();ie(n,t.title||t.titleText,"block"),t.title&&ge(t.title,n),t.titleText&&(n.innerText=t.titleText),Q(n,t,"title")})(0,t),((e,t)=>{const n=U();Y(n,t.closeButtonHtml),Q(n,t,"closeButton"),ie(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Te(e,t),we(0,t),((e,t)=>{const n=B();ie(n,t.footer),t.footer&&ge(t.footer,n),Q(n,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(k())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),He=()=>{n(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Ke=["swal-title","swal-html","swal-footer"],Ve=e=>{const t={};return n(e.querySelectorAll("swal-param")).forEach((e=>{$e(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");"boolean"==typeof p[n]&&"false"===r&&(t[n]=!1),"object"==typeof p[n]&&(t[n]=JSON.parse(r))})),t},qe=e=>{const r={};return n(e.querySelectorAll("swal-button")).forEach((e=>{$e(e,["type","color","aria-label"]);const n=e.getAttribute("type");r["".concat(n,"ButtonText")]=e.innerHTML,r["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(r["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(r["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),r},Ye=e=>{const t={},n=e.querySelector("swal-image");return n&&($e(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},We=e=>{const t={},n=e.querySelector("swal-icon");return n&&($e(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Qe=e=>{const t={},r=e.querySelector("swal-input");r&&($e(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},n(o).forEach((e=>{$e(e,["value"]);const n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},Ze=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&($e(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Ge=e=>{const t=Ke.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);n(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&r("Unrecognized element <".concat(n,">"))}))},$e=(e,t)=>{n(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&r(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))};var Je={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Xe(e){(function(e){e.inputValidator||Object.keys(Je).forEach((t=>{e.input===t&&(e.inputValidator=Je[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&r("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(r('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),me(e)}class et{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const tt=()=>{null===q.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(q.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(q.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);if(t&&n&&!e.match(/CriOS/i)){const e=44;k().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},rt=()=>{const e=C();let t;e.ontouchstart=e=>{t=ot(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},ot=e=>{const t=e.target,n=C();return!(it(e)||at(e)||t!==n&&(se(n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(D())&&D().contains(t)))},it=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,at=e=>e.touches&&e.touches.length>1,st=e=>{const t=C(),r=k();"function"==typeof e.willOpen&&e.willOpen(r);const o=window.getComputedStyle(document.body).overflowY;pt(t,r,e),setTimeout((()=>{lt(t,r)}),10),K()&&(ut(t,e.scrollbarPadding,o),n(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),V()||pe.previousActiveElement||(pe.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(r))),X(t,_["no-transition"])},ct=e=>{const t=k();if(e.target!==t)return;const n=C();t.removeEventListener(be,ct),n.style.overflowY="auto"},lt=(e,t)=>{be&&ce(t)?(e.style.overflowY="hidden",t.addEventListener(be,ct)):e.style.overflowY="auto"},ut=(e,t,n)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!W(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),rt(),nt()}})(),t&&"hidden"!==n&&tt(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,n)=>{J(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ne(t,"grid"),setTimeout((()=>{J(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),n.heightAuto&&n.backdrop&&!n.toast&&J([document.documentElement,document.body],_["height-auto"])},dt=e=>{let t=k();t||new On,t=k();const n=P();V()?re(M()):ft(t,e),ne(n),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},ft=(e,t)=>{const n=R(),r=P();!t&&ae(N())&&(t=N()),ne(n),t&&(re(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),J([e,n],_.loading)},ht=e=>e.checked?1:0,mt=e=>e.checked?e.value:null,gt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,yt=(e,t)=>{const n=k(),r=e=>bt[t.input](n,wt(e),t);c(t.inputOptions)||u(t.inputOptions)?(dt(N()),l(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):o("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},vt=(e,t)=>{const n=e.getInput();re(n),l(t.inputValue).then((r=>{n.value="number"===t.input?parseFloat(r)||0:"".concat(r),ne(n),n.focus(),e.hideLoading()})).catch((t=>{o("Error in inputValue promise: ".concat(t)),n.value="",ne(n),n.focus(),e.hideLoading()}))},bt={select:(e,t,n)=>{const r=ee(e,_.select),o=(e,t,r)=>{const o=document.createElement("option");o.value=r,Y(o,t),o.selected=Et(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()},radio:(e,t,n)=>{const r=ee(e,_.radio);t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=_.radio,i.value=t,Et(t,n.inputValue)&&(i.checked=!0);const s=document.createElement("span");Y(s,o),s.className=_.label,a.appendChild(i),a.appendChild(s),r.appendChild(a)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}},wt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=wt(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=wt(r)),t.push([n,r])})),t},Et=(e,t)=>t&&t.toString()===e.toString();function _t(){const e=Se.innerParams.get(this);if(!e)return;const t=Se.domCache.get(this);re(t.loader),V()?e.icon&&ne(M()):St(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const St=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ne(t[0],"inline-block"):!ae(N())&&!ae(L())&&!ae(z())&&re(e.actions)};var Ct={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xt=()=>N()&&N().click(),Ot=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},kt=(e,t,n)=>{const r=H();if(r.length)return(t+=n)===r.length?t=0:-1===t&&(t=r.length-1),r[t].focus();k().focus()},Mt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Dt=(e,t,n)=>{const r=Se.innerParams.get(e);r&&(t.isComposing||229===t.keyCode||(r.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?It(e,t,r):"Tab"===t.key?Tt(t,r):[...Mt,...jt].includes(t.key)?At(t.key):"Escape"===t.key&&Nt(t,r,n)))},It=(e,t,n)=>{if(s(n.allowEnterKey)&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;xt(),t.preventDefault()}},Tt=(e,t)=>{const n=e.target,r=H();let o=-1;for(let e=0;e<r.length;e++)if(n===r[e]){o=e;break}e.shiftKey?kt(0,o,-1):kt(0,o,1),e.stopPropagation(),e.preventDefault()},At=e=>{if(![N(),L(),z()].includes(document.activeElement))return;const t=Mt.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e<R().children.length;e++){if(n=n[t],!n)return;if(ae(n)&&n instanceof HTMLButtonElement)break}n instanceof HTMLButtonElement&&n.focus()},Nt=(e,t,n)=>{s(t.allowEscapeKey)&&(e.preventDefault(),n(Ue.esc))};function Lt(e,t,n,r){V()?Ht(e,r):(de(n).then((()=>Ht(e,r))),Ot(pe)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),K()&&(null!==q.previousBodyPadding&&(document.body.style.paddingRight="".concat(q.previousBodyPadding,"px"),q.previousBodyPadding=null),(()=>{if(W(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),He()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Pt(e){e=Bt(e);const t=Ct.swalPromiseResolve.get(this),n=zt(this);this.isAwaitingPromise()?e.isDismissed||(Rt(this),t(e)):n&&t(e)}const zt=e=>{const t=k();if(!t)return!1;const n=Se.innerParams.get(e);if(!n||W(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),J(t,n.hideClass.popup);const r=C();return X(r,n.showClass.backdrop),J(r,n.hideClass.backdrop),Ft(e,t,n),!0};const Rt=e=>{e.isAwaitingPromise()&&(Se.awaitingPromise.delete(e),Se.innerParams.get(e)||e._destroy())},Bt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ft=(e,t,n)=>{const r=C(),o=be&&ce(t);"function"==typeof n.willClose&&n.willClose(t),o?Ut(e,t,r,n.returnFocus,n.didClose):Lt(e,r,n.returnFocus,n.didClose)},Ut=(e,t,n,r,o)=>{pe.swalCloseEventFinishedCallback=Lt.bind(null,e,n,r,o),t.addEventListener(be,(function(e){e.target===t&&(pe.swalCloseEventFinishedCallback(),delete pe.swalCloseEventFinishedCallback)}))},Ht=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Kt(e,t,n){const r=Se.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function Vt(e,t){if(!e)return!1;if("radio"===e.type){const n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<n.length;e++)n[e].disabled=t}else e.disabled=t}const qt=e=>{const t={};return Object.keys(e).forEach((n=>{g(n)?t[n]=e[n]:r('Invalid parameter to update: "'.concat(n,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),t};const Yt=e=>{Wt(e),delete e.params,delete pe.keydownHandler,delete pe.keydownTarget,delete pe.currentInstance},Wt=e=>{e.isAwaitingPromise()?(Qt(Se,e),Se.awaitingPromise.set(e,!0)):(Qt(Ct,e),Qt(Se,e))},Qt=(e,t)=>{for(const n in e)e[n].delete(t)};var Zt=Object.freeze({hideLoading:_t,disableLoading:_t,getInput:function(e){const t=Se.innerParams.get(e||this),n=Se.domCache.get(e||this);return n?Z(n.popup,t.input):null},close:Pt,isAwaitingPromise:function(){return!!Se.awaitingPromise.get(this)},rejectPromise:function(e){const t=Ct.swalPromiseReject.get(this);Rt(this),t&&t(e)},handleAwaitingPromise:Rt,closePopup:Pt,closeModal:Pt,closeToast:Pt,enableButtons:function(){Kt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Kt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Vt(this.getInput(),!1)},disableInput:function(){return Vt(this.getInput(),!0)},showValidationMessage:function(e){const t=Se.domCache.get(this),n=Se.innerParams.get(this);Y(t.validationMessage,e),t.validationMessage.className=_["validation-message"],n.customClass&&n.customClass.validationMessage&&J(t.validationMessage,n.customClass.validationMessage),ne(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",_["validation-message"]),G(r),J(r,_.inputerror))},resetValidationMessage:function(){const e=Se.domCache.get(this);e.validationMessage&&re(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return Se.domCache.get(this).progressSteps},update:function(e){const t=k(),n=Se.innerParams.get(this);if(!t||W(t,n.hideClass.popup))return r("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=qt(e),i=Object.assign({},n,o);Fe(this,i),Se.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=Se.domCache.get(this),t=Se.innerParams.get(this);t?(e.popup&&pe.swalCloseEventFinishedCallback&&(pe.swalCloseEventFinishedCallback(),delete pe.swalCloseEventFinishedCallback),pe.deferDisposalTimer&&(clearTimeout(pe.deferDisposalTimer),delete pe.deferDisposalTimer),"function"==typeof t.didDestroy&&t.didDestroy(),Yt(this)):Wt(this)}});const Gt=(e,n)=>{const r=Se.innerParams.get(e);if(!r.input)return o('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(n)));const i=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return ht(n);case"radio":return mt(n);case"file":return gt(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,r);r.inputValidator?$t(e,i,n):e.getInput().checkValidity()?"deny"===n?Jt(e,i):tn(e,i):(e.enableButtons(),e.showValidationMessage(r.validationMessage))},$t=(e,t,n)=>{const r=Se.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?Jt(e,t):tn(e,t)}))},Jt=(e,t)=>{const n=Se.innerParams.get(e||void 0);n.showLoaderOnDeny&&dt(L()),n.preDeny?(Se.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),Rt(e)):e.closePopup({isDenied:!0,value:void 0===n?t:n})})).catch((t=>en(e||void 0,t)))):e.closePopup({isDenied:!0,value:t})},Xt=(e,t)=>{e.closePopup({isConfirmed:!0,value:t})},en=(e,t)=>{e.rejectPromise(t)},tn=(e,t)=>{const n=Se.innerParams.get(e||void 0);n.showLoaderOnConfirm&&dt(),n.preConfirm?(e.resetValidationMessage(),Se.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(n.preConfirm(t,n.validationMessage)))).then((n=>{ae(A())||!1===n?(e.hideLoading(),Rt(e)):Xt(e,void 0===n?t:n)})).catch((t=>en(e||void 0,t)))):Xt(e,t)},nn=(e,t,n)=>{t.popup.onclick=()=>{const t=Se.innerParams.get(e);t&&(rn(t)||t.timer||t.input)||n(Ue.close)}},rn=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let on=!1;const an=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(on=!0)}}},sn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(on=!0)}}},cn=(e,t,n)=>{t.container.onclick=r=>{const o=Se.innerParams.get(e);on?on=!1:r.target===t.container&&s(o.allowOutsideClick)&&n(Ue.backdrop)}},ln=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const un=()=>{if(pe.timeout)return(()=>{const e=F(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(n,"%")})(),pe.timeout.stop()},pn=()=>{if(pe.timeout){const e=pe.timeout.start();return le(e),e}};let dn=!1;const fn={};const hn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fn){const n=t.getAttribute(e);if(n)return void fn[e].fire({template:n})}};var mn=Object.freeze({isValidParameter:m,isUpdatableParameter:g,isDeprecatedParameter:y,argsToParams:e=>{const t={};return"object"!=typeof e[0]||ln(e[0])?["title","html","icon"].forEach(((n,r)=>{const i=e[r];"string"==typeof i||ln(i)?t[n]=i:void 0!==i&&o("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof i))})):Object.assign(t,e[0]),t},isVisible:()=>ae(k()),clickConfirm:xt,clickDeny:()=>L()&&L().click(),clickCancel:()=>z()&&z().click(),getContainer:C,getPopup:k,getTitle:j,getHtmlContainer:D,getImage:I,getIcon:M,getInputLabel:()=>O(_["input-label"]),getCloseButton:U,getActions:R,getConfirmButton:N,getDenyButton:L,getCancelButton:z,getLoader:P,getFooter:B,getTimerProgressBar:F,getFocusableElements:H,getValidationMessage:A,isLoading:()=>k().hasAttribute("data-loading"),fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},showLoading:dt,enableLoading:dt,getTimerLeft:()=>pe.timeout&&pe.timeout.getTimerLeft(),stopTimer:un,resumeTimer:pn,toggleTimer:()=>{const e=pe.timeout;return e&&(e.running?un():pn())},increaseTimer:e=>{if(pe.timeout){const t=pe.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>pe.timeout&&pe.timeout.isRunning(),bindClickHandler:function(){fn[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,dn||(document.body.addEventListener("click",hn),dn=!0)}});let gn;class yn{constructor(){if("undefined"==typeof window)return;gn=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);Se.promise.set(this,o)}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&r('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)v(t),e.toast&&b(t),w(t)})(Object.assign({},t,e)),pe.currentInstance&&(pe.currentInstance._destroy(),K()&&He()),pe.currentInstance=this;const n=bn(e,t);Xe(n),Object.freeze(n),pe.timeout&&(pe.timeout.stop(),delete pe.timeout),clearTimeout(pe.restoreFocusTimeout);const o=wn(this);return Fe(this,n),Se.innerParams.set(this,n),vn(this,o,n)}then(e){return Se.promise.get(this).then(e)}finally(e){return Se.promise.get(this).finally(e)}}const vn=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Ct.swalPromiseResolve.set(e,r),Ct.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>(e=>{const t=Se.innerParams.get(e);e.disableButtons(),t.input?Gt(e,"confirm"):tn(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=Se.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Gt(e,"deny"):Jt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,i),t.closeButton.onclick=()=>i(Ue.close),((e,t,n)=>{Se.innerParams.get(e).toast?nn(e,t,n):(an(t),sn(t),cn(e,t,n))})(e,t,i),((e,t,n,r)=>{Ot(t),n.toast||(t.keydownHandler=t=>Dt(e,t,r),t.keydownTarget=n.keydownListenerCapture?window:k(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,pe,n,i),((e,t)=>{"select"===t.input||"radio"===t.input?yt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(c(t.inputValue)||u(t.inputValue))&&(dt(N()),vt(e,t))})(e,n),st(n),En(pe,n,i),Sn(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),bn=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Ge(n),Object.assign(Ve(n),qe(n),Ye(n),We(n),Qe(n),Ze(n,Ke))})(e),r=Object.assign({},p,t,n,e);return r.showClass=Object.assign({},p.showClass,r.showClass),r.hideClass=Object.assign({},p.hideClass,r.hideClass),r},wn=e=>{const t={popup:k(),container:C(),actions:R(),confirmButton:N(),denyButton:L(),cancelButton:z(),loader:P(),closeButton:U(),validationMessage:A(),progressSteps:T()};return Se.domCache.set(e,t),t},En=(e,t,n)=>{const r=F();re(r),t.timer&&(e.timeout=new et((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ne(r),Q(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Sn=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Cn(e,t)||kt(0,-1,1)):xn()},Cn=(e,t)=>t.focusDeny&&ae(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ae(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ae(e.confirmButton)||(e.confirmButton.focus(),0)),xn=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(yn.prototype,Zt),Object.assign(yn,mn),Object.keys(Zt).forEach((e=>{yn[e]=function(){if(gn)return gn[e](...arguments)}})),yn.DismissReason=Ue,yn.version="11.4.8";const On=yn;return On.default=On,On}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},78527:(e,t,n)=>{"use strict";var r=n(17078);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},79450:(e,t,n)=>{"use strict";var r=n(3885),o=n(56408);e.exports=function(e,t,n,i,a){var s=o(e.getSelection());if(!t||!i)return s;var c=r.decode(t),l=c.blockKey,u=e.getBlockTree(l),p=u&&u.getIn([c.decoratorKey,"leaves",c.leafKey]),d=r.decode(i),f=d.blockKey,h=e.getBlockTree(f),m=h&&h.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!p||!m)return s;var g=p.get("start"),y=m.get("start"),v=p?g+n:null,b=m?y+a:null;if(s.getAnchorKey()===l&&s.getAnchorOffset()===v&&s.getFocusKey()===f&&s.getFocusOffset()===b)return s;var w=!1;if(l===f){var E=p.get("end"),_=m.get("end");w=y===g&&_===E?a<n:y<g}else w=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===f})).first()===f;return s.merge({anchorKey:l,anchorOffset:v,focusKey:f,focusOffset:b,isBackward:w})}},79777:(e,t,n)=>{"use strict";var r=n(47282)("draft_tree_data_support");e.exports=n(r?71803:93659)},80120:(e,t,n)=>{"use strict";var r=n(29215);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,s)}},80508:(e,t,n)=>{"use strict";var r=n(68382),o=n(69311),i=n(90646);function a(e,t,n,a,s,c,l){var u=n.getStartOffset(),p=n.getEndOffset(),d=e.__get(s).getMutability(),f=l?u:p;if("MUTABLE"===d)return n;var h=o(t,s).filter((function(e){return f<=e.end&&f>=e.start}));1!=h.length&&i(!1);var m=h[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});c||(l?p=m.end:u=m.start);var g=r.getRemovalRange(u,p,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),l=n.getEntityAt(s-1);if(!c&&!l)return r;var u=r;if(c&&c===l)u=a(e,t,u,o,c,!0,!0);else if(c&&l){var p=a(e,t,u,o,c,!1,!0),d=a(e,n,u,o,l,!1,!1);u=u.merge({anchorOffset:p.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(c){var f=a(e,t,u,o,c,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var h=a(e,n,u,o,l,!1,!1);u=u.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return u}},81124:(e,t,n)=>{"use strict";var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(55203),a=n(3885),s=n(51609),c=n(93529),l=n(2935),u=n(68307),p=n(55822),d=n(98003),f=n(78527),h=n(97392),m=n(41401),g=n(90646),y=n(55291),v=n(56408),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},w=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var w=r.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=l.getScrollParent(n),i=h(o);if(o===window){var a=f(n);(r=a.y+a.height-m().height)>0&&window.scrollTo(i.x,i.y+r+10)}else y(n)||g(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),c=this.props.tree.size-1,l=b(this.props.selection,n);return this.props.tree.map((function(d,f){var h=d.get("leaves");if(0===h.size)return null;var m=h.size-1,g=h.map((function(o,u){var p=a.encode(n,f,u),d=o.get("start"),h=o.get("end");return s.createElement(i,{key:p,offsetKey:p,block:t,start:d,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(d,h),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===c&&u===m})})).toArray(),y=d.get("decoratorKey");if(null==y)return g;if(!e.props.decorator)return g;var b=v(e.props.decorator),w=b.getComponentForKey(y);if(!w)return g;var E=b.getPropsForKey(y),_=a.encode(n,f,0),S=h.first().get("start"),C=h.last().get("end"),x=r.slice(S,C),O=t.getEntityAt(d.get("start")),k=p.getHTMLDirIfDifferent(u.getDirection(x),e.props.direction),M={contentState:e.props.contentState,decoratedText:x,dir:k,start:S,end:C,blockKey:n,entityKey:O,offsetKey:_};return s.createElement(w,o({},E,M,{key:_}),g)})).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(s.Component);e.exports=w},82236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},83174:(e,t,n)=>{"use strict";var r=n(45852);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},83731:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=n.call(r,e[i],i,e));return o}},84379:(e,t,n)=>{"use strict";var r=n(71988),o=n(55203),i=n(3885),a=n(77337),s=n(51609),c=n(98003),l=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,l=e.customStyleMap,u=e.decorator,p=e.direction,d=e.forceSelection,f=e.hasSelection,h=e.selection,m=e.tree,g=t.getKey(),y=t.getText(),v=m.size-1,b=this.props.children||m.map((function(e,c){var m=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,E=b.map((function(e,n){var r=i.encode(g,c,n),u=e.get("start"),p=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:u,selection:f?h:null,forceSelection:d,text:y.slice(u,p),styleSet:t.getInlineStyleAt(u),customStyleMap:l,customStyleFn:a,isLast:m===v&&n===w})})).toArray();return m&&u?s.createElement(r,{block:t,children:E,contentState:n,decorator:u,decoratorKey:m,direction:p,leafSet:e,text:y,key:c}):E})).toArray();return s.createElement("div",{"data-offset-key":i.encode(g,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(s.Component));e.exports=l},85620:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(51609)),c=i(n(42214));t.default=function(e){var t=e.validationMsg,n=e.inputType,r=t||("email"===n?"Please enter a valid email!":"Please enter a response!");return s.default.createElement("div",{style:c.validationMessage},s.default.createElement("div",{style:c.exclamationIcon},"!"),r)}},85889:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),s=n(56840),c=n(65224),l=n(49938),u=n(12242),p=n(6991),d=n(47282),f=n(77337),h=n(46059),m=d("draft_tree_data_support"),g=m?c:s,y=f.List,v=f.Repeat,b={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),s=e.getSelection(),c=l.removeRange(o,s,"backward"),d=c.getSelectionAfter(),f=l.splitBlock(c,d),h=f.getSelectionAfter(),b=l.setBlockType(f,h,"atomic"),w=a.create({entity:t}),E={key:p(),type:"atomic",text:n,characterList:y(v(w,n.length))},_={key:p(),type:"unstyled"};m&&(E=r({},E,{nextSibling:_.key}),_=r({},_,{prevSibling:E.key}));var S=[new g(E),new g(_)],C=i.createFromArray(S),x=l.replaceWithFragment(b,h,C),O=x.merge({selectionBefore:s,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return u.push(e,O,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,t,s,r)}else{var c=l.removeRange(i,n,"backward"),p=c.getSelectionAfter(),d=c.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())o=h(c,t,d,"before");else if(p.getEndOffset()===d.getLength())o=h(c,t,d,"after");else{var f=l.splitBlock(c,p),m=f.getSelectionAfter(),g=f.getBlockForKey(m.getFocusKey());o=h(f,t,g,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return u.push(e,y,"move-block")}};e.exports=b},85989:(e,t,n)=>{"use strict";var r=n(50580),o=n(19677),i=n(25377),a=n(90646);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var s=r.getBoundingClientRect();return i.removeChild(r),s.height}(t),l=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),n)&&(l=e.startContainer,u=e.startOffset,l.parentNode||a(!1),e.setStartBefore(l),1!==l.nodeType||"inline"===getComputedStyle(l).display););for(var p=l,d=u-1;;){for(var f=p.nodeValue,h=d;h>=0;h--)if(!(null!=f&&h>0&&r.isSurrogatePair(f,h-1))){if(e.setStart(p,h),!s(i(e),n))break;l=p,u=h}if(-1===h||0===p.childNodes.length)break;d=c(p=p.childNodes[h])}return e.setStart(l,u),e}},86044:(e,t,n)=>{"use strict";var r=n(23018),o=n(18227),i=n(90646);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,l=s?s.getEntity():void 0,u=c?c.getEntity():void 0;if(u&&u===l&&"MUTABLE"!==e.__get(u).getMutability()){for(var p,d=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,u,n),f=d.start,h=d.end;f<h;)p=a.get(f),a=a.set(f,r.applyEntity(p,null)),f++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=n.get(i),l=a(r,c,s);l!==c&&(o[i]=l);var u=t.getEndKey(),p=t.getEndOffset(),d=n.get(u);i===u&&(d=l);var f=a(r,d,p);return f!==d&&(o[u]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},86614:(e,t,n)=>{var r=n(41141),o=n(92471),i=n(20840),a=n(10308);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||s),t)}c.domToReact=a,c.htmlToDOM=o,c.attributesToProps=i,c.Comment=r.Comment,c.Element=r.Element,c.ProcessingInstruction=r.ProcessingInstruction,c.Text=r.Text,e.exports=c,c.default=c},87141:(e,t,n)=>{"use strict";var r=n(12242);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},87918:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},88372:(e,t,n)=>{"use strict";var r=n(19677),o=n(74453);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},88771:(e,t,n)=>{"use strict";var r=n(12242),o=n(85989),i=n(29215),a=n(58488),s=n(5188);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},90646:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)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(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}}},91381:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__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(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},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(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(77337).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},91439:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},91617:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},91721:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},92395:(e,t,n)=>{"use strict";var r=n(2505),o=n(71864),i=n(59395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.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")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.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},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},t.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},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=l},92471:(e,t,n)=>{var r=n(65496),o=n(67731).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},93529:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},93659:(e,t,n)=>{"use strict";var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(81124),c=n(3885),l=n(51609),u=n(98003),p=n(50798),d=n(56408),f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,u=e.customStyleFn,h=e.editorState,m=e.editorKey,g=e.preventScroll,y=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),E=h.getDecorator(),_=d(h.getDirectionMap()),S=v.getBlocksAsArray(),C=[],x=null,O=null,k=0;k<S.length;k++){var M=S[k],j=M.getKey(),D=M.getType(),I=n(M),T=void 0,A=void 0,N=void 0;I&&(T=I.component,A=I.props,N=I.editable);var L=y||_.get(j),P=c.encode(j,0,0),z={contentState:v,block:M,blockProps:A,blockStyleFn:r,customStyleMap:a,customStyleFn:u,decorator:E,direction:L,forceSelection:w,offsetKey:P,preventScroll:g,selection:b,tree:h.getBlockTree(j)},R=t.get(D)||t.get("unstyled"),B=R.wrapper,F=R.element||t.get("unstyled").element,U=M.getDepth(),H="";r&&(H=r(M)),"li"===F&&(H=p(H,f(D,U,O!==B||null===x||U>x,L)));var K=T||s,V={className:H,"data-block":!0,"data-editor":m,"data-offset-key":P,key:j};void 0!==N&&(V=i({},V,{contentEditable:N,suppressContentEditableWarning:!0}));var q=l.createElement(F,V,l.createElement(K,o({},z,{key:j})));C.push({block:q,wrapperTemplate:B,key:j,offsetKey:P}),x=B?M.getDepth():null,O=B}for(var Y=[],W=0;W<C.length;){var Q=C[W];if(Q.wrapperTemplate){var Z=[];do{Z.push(C[W].block),W++}while(W<C.length&&C[W].wrapperTemplate===Q.wrapperTemplate);var G=l.cloneElement(Q.wrapperTemplate,{key:Q.key+"-wrap","data-offset-key":Q.offsetKey},Z);Y.push(G)}else Y.push(Q.block),W++}return l.createElement("div",{"data-contents":"true"},Y)},r}(l.Component);e.exports=h},93791:(e,t,n)=>{"use strict";n.d(t,{BuilderProvider:()=>Rn,FormBuilder:()=>Za,GenericInput:()=>Ur,isObject:()=>sn,useBuilder:()=>Wn,useBuilderContext:()=>Bn,validFieldProps:()=>bn,withLabel:()=>sr});var r=n(51609),o=n.n(r);const i=window.wp.data;var a=n(27723),s=n(70274),c=n.n(s),l=n(1455),u=n.n(l);const p=window.lodash,d=window.wp.date,f=window.moment;var h=n.n(f),m=n(52619),g=n(46942),y=n.n(g);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}n(78465);var b=n(31336);function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var _=n(28030);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function O(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function M(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function j(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=n(75795);function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}var P=function(){};function z(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function R(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(z(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var B=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===E(e)&&null!==e?[e]:[]},F=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,A({},w(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function U(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function H(e){return U(e)?window.pageYOffset:e.scrollTop}function K(e,t){U(e)?window.scrollTo(0,t):e.scrollTop=t}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:P,o=H(e),i=t-o,a=0;!function t(){var s,c=i*((s=(s=a+=10)/n-1)*s*s+1)+o;K(e,c),a<n?window.requestAnimationFrame(t):r(e)}()}function q(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Y=!1,W={get passive(){return Y=!0}},Q="undefined"!=typeof window?window:{};Q.addEventListener&&Q.removeEventListener&&(Q.addEventListener("p",P,W),Q.removeEventListener("p",P,!1));var Z=Y;var G=function(e){return"auto"===e?"bottom":e},$=(0,r.createContext)({getPortalPlacement:null}),J=function(e){M(n,e);var t=L(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,c=n.theme;if(t){var l="fixed"===a,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,f=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,y=H(c),v=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,E=g-h,_=w+y,S=u-y-h,C=d-g+y+v,x=y+h-b,O=160;switch(o){case"auto":case"bottom":if(E>=f)return{placement:"bottom",maxHeight:t};if(S>=f&&!a)return i&&V(c,C,O),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&E>=r)return i&&V(c,C,O),{placement:"bottom",maxHeight:a?E-v:S-v};if("auto"===o||a){var k=t,M=a?w:_;return M>=r&&(k=Math.min(M-v-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return i&&K(c,C),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(_>=f&&!a)return i&&V(c,x,O),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&w>=r){var j=t;return(!a&&_>=r||a&&w>=r)&&(j=a?w-b:_-b),i&&V(c,x,O),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!l,isFixedPosition:l,theme:c}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||G(t);return A(A({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return O(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(r.Component);J.contextType=$;var X=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},ee=X,te=X,ne=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return(0,b.Y)("div",v({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};ne.defaultProps={children:"No options"};var re=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return(0,b.Y)("div",v({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};re.defaultProps={children:"Loading..."};var oe,ie,ae,se=function(e){M(n,e);var t=L(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==G(e.props.menuPlacement)&&e.setState({placement:n})},e}return O(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,i=e.cx,a=e.innerProps,s=e.menuPlacement,c=e.menuPosition,l=e.getStyles,u="fixed"===c;if(!t&&!u||!o)return null;var p=this.state.placement||G(s),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),f=u?0:window.pageYOffset,h={offset:d[p]+f,position:c,rect:d},m=(0,b.Y)("div",v({css:l("menuPortal",h),className:i({"menu-portal":!0},r)},a),n);return(0,b.Y)($.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,D.createPortal)(m,t):m)}}]),n}(r.Component),ce={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},le=function(e){var t=e.size,n=w(e,["size"]);return(0,b.Y)("svg",v({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ce},n))},ue=function(e){return(0,b.Y)(le,v({size:20},e),(0,b.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},pe=function(e){return(0,b.Y)(le,v({size:20},e),(0,b.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},de=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},fe=de,he=de,me=(0,b.i7)(oe||(ie=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ae||(ae=ie.slice(0)),oe=Object.freeze(Object.defineProperties(ie,{raw:{value:Object.freeze(ae)}})))),ge=function(e){var t=e.delay,n=e.offset;return(0,b.Y)("span",{css:(0,b.AH)({animation:"".concat(me," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ye=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return(0,b.Y)("div",v({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),(0,b.Y)(ge,{delay:0,offset:i}),(0,b.Y)(ge,{delay:160,offset:!0}),(0,b.Y)(ge,{delay:320,offset:!i}))};ye.defaultProps={size:4};var ve=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},be=function(e){var t=e.children,n=e.innerProps;return(0,b.Y)("div",n,t)},we=be,Ee=be,_e=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,c=e.isDisabled,l=e.removeProps,u=e.selectProps,p=r.Container,d=r.Label,f=r.Remove;return(0,b.Y)(b.Z2,null,(function(r){var h=r.css,m=r.cx;return(0,b.Y)(p,{data:i,innerProps:A({className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":c},n))},s),selectProps:u},(0,b.Y)(d,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),(0,b.Y)(f,{data:i,innerProps:A({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},l),selectProps:u}))}))};_e.defaultProps={cropWithEllipsis:!0};var Se={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return(0,b.Y)("div",v({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||(0,b.Y)(ue,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,c=e.innerProps,l=e.menuIsOpen;return(0,b.Y)("div",v({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":l},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return(0,b.Y)("div",v({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||(0,b.Y)(pe,null))},DownChevron:pe,CrossIcon:ue,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return(0,b.Y)("div",v({css:o("group",e),className:r({group:!0},n)},s),(0,b.Y)(i,v({},a,{selectProps:u,theme:l,getStyles:o,cx:r}),c),(0,b.Y)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=F(e);o.data;var i=w(o,["data"]);return(0,b.Y)("div",v({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return(0,b.Y)("div",v({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return(0,b.Y)("span",v({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=F(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,c=w(o,["innerRef","isDisabled","isHidden"]);return(0,b.Y)("div",{css:r("input",e)},(0,b.Y)(_.A,v({className:n({input:!0},t),inputRef:i,inputStyle:ve(s),disabled:a},c)))},LoadingIndicator:ye,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return(0,b.Y)("div",v({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return(0,b.Y)("div",v({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:se,LoadingMessage:re,NoOptionsMessage:ne,MultiValue:_e,MultiValueContainer:we,MultiValueLabel:Ee,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,b.Y)("div",n,t||(0,b.Y)(ue,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,c=e.innerRef,l=e.innerProps;return(0,b.Y)("div",v({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:c},l),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return(0,b.Y)("div",v({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return(0,b.Y)("div",v({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return(0,b.Y)("div",v({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return(0,b.Y)("div",v({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}};function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e)||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.")}()}for(var Oe=n(41811),ke={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Me=function(e){return(0,b.Y)("span",v({css:ke},e))},je={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,s=e.selectValue,c=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(u(s,r),".");if("menu"===t){var p=c?" disabled":"",d="".concat(l?"selected":"focused").concat(p);return"option ".concat(a," ").concat(d,", ").concat(u(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},De=function(e){var t=e.ariaSelection,n=e.focusedOption,i=e.focusedValue,a=e.focusableOptions,s=e.isFocused,c=e.selectValue,l=e.selectProps,u=l.ariaLiveMessages,p=l.getOptionLabel,d=l.inputValue,f=l.isMulti,h=l.isOptionDisabled,m=l.isSearchable,g=l.menuIsOpen,y=l.options,v=l.screenReaderStatus,w=l.tabSelectsValue,E=l["aria-label"],_=l["aria-live"],S=(0,r.useMemo)((function(){return A(A({},je),u||{})}),[u]),C=(0,r.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.removedValue,i=t.value,a=o||r||(e=i,Array.isArray(e)?null:e),s=A({isDisabled:a&&h(a),label:a?p(a):""},t);n=S.onChange(s)}return n}),[t,h,p,S]),x=(0,r.useMemo)((function(){var e="",t=n||i,r=!!(n&&c&&c.includes(n));if(t&&S.onFocus){var o={focused:t,label:p(t),isDisabled:h(t),isSelected:r,options:y,context:t===n?"menu":"value",selectValue:c};e=S.onFocus(o)}return e}),[n,i,p,h,S,y,c]),O=(0,r.useMemo)((function(){var e="";if(g&&y.length&&S.onFilter){var t=v({count:a.length});e=S.onFilter({inputValue:d,resultsMessage:t})}return e}),[a,d,g,S,y,v]),k=(0,r.useMemo)((function(){var e="";if(S.guidance){var t=i?"value":g?"menu":"input";e=S.guidance({"aria-label":E,context:t,isDisabled:n&&h(n),isMulti:f,isSearchable:m,tabSelectsValue:w})}return e}),[E,n,i,f,h,m,g,S,w]),M="".concat(x," ").concat(O," ").concat(k);return(0,b.Y)(Me,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text"},s&&(0,b.Y)(o().Fragment,null,(0,b.Y)("span",{id:"aria-selection"},C),(0,b.Y)("span",{id:"aria-context"},M)))},Ie=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Te=new RegExp("["+Ie.map((function(e){return e.letters})).join("")+"]","g"),Ae={},Ne=0;Ne<Ie.length;Ne++)for(var Le=Ie[Ne],Pe=0;Pe<Le.letters.length;Pe++)Ae[Le.letters[Pe]]=Le.base;var ze=function(e){return e.replace(Te,(function(e){return Ae[e]}))},Re=(0,Oe.A)(ze),Be=function(e){return e.replace(/^\s+|\s+$/g,"")},Fe=function(e){return"".concat(e.label," ").concat(e.value)};function Ue(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=w(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return(0,b.Y)("input",v({ref:t},n,{css:(0,b.AH)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var He=["boxSizing","height","overflow","paddingRight","position"],Ke={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ve(e){e.preventDefault()}function qe(e){e.stopPropagation()}function Ye(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function We(){return"ontouchstart"in window||navigator.maxTouchPoints}var Qe=!("undefined"==typeof window||!window.document||!window.document.createElement),Ze=0,Ge={capture:!1,passive:!1},$e=function(){return document.activeElement&&document.activeElement.blur()},Je={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Xe(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),c=(0,r.useRef)(!1),l=(0,r.useRef)(0),u=(0,r.useRef)(null),p=(0,r.useCallback)((function(e,t){if(null!==u.current){var r=u.current,l=r.scrollTop,p=r.scrollHeight,d=r.clientHeight,f=u.current,h=t>0,m=p-d-l,g=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!s.current&&n(e),f.scrollTop=p,g=!0,s.current=!0):!h&&-t>l&&(i&&!c.current&&i(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=(0,r.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,r.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,r.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,r.useCallback)((function(e){if(e){var t=!!Z&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,r.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,r.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(Qe){var t=document.body,n=t&&t.style;if(o&&He.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Ze<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Ke).forEach((function(e){var t=Ke[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&We()&&(t.addEventListener("touchmove",Ve,Ge),e&&(e.addEventListener("touchstart",Ye,Ge),e.addEventListener("touchmove",qe,Ge))),Ze+=1}}),[]),c=(0,r.useCallback)((function(e){if(Qe){var t=document.body,n=t&&t.style;Ze=Math.max(Ze-1,0),o&&Ze<1&&He.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&We()&&(t.removeEventListener("touchmove",Ve,Ge),e&&(e.removeEventListener("touchstart",Ye,Ge),e.removeEventListener("touchmove",qe,Ge)))}}),[]);return(0,r.useEffect)((function(){if(t){var e=a.current;return s(e),function(){c(e)}}}),[t,s,c]),function(e){a.current=e}}({isEnabled:n});return(0,b.Y)(o().Fragment,null,n&&(0,b.Y)("div",{onClick:$e,css:Je}),t((function(e){a(e),s(e)})))}var et={clearIndicator:he,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:fe,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:te,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return j(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),j(t,"backgroundColor",a.neutral0),j(t,"borderRadius",o),j(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),j(t,"marginBottom",i.menuGutter),j(t,"marginTop",i.menuGutter),j(t,"position","absolute"),j(t,"width","100%"),j(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:ee,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},tt={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},nt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:q(),captureMenuScroll:!q(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=A({ignoreCase:!0,ignoreAccents:!0,stringify:Fe,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Be(t):t,l=a?Be(i(e)):i(e);return r&&(c=c.toLowerCase(),l=l.toLowerCase()),o&&(c=Re(c),l=ze(l)),"start"===s?l.substr(0,c.length)===c:l.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function rt(e,t,n,r){return{type:"option",data:t,isDisabled:lt(e,t,n),isSelected:ut(e,t,n),label:st(e,t),value:ct(e,t),index:r}}function ot(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return rt(e,n,t,r)})).filter((function(t){return at(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=rt(e,n,t,r);return at(e,i)?i:void 0})).filter((function(e){return!!e}))}function it(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,xe(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function at(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!dt(e)||!i)&&pt(e,{label:a,value:s,data:o},r)}var st=function(e,t){return e.getOptionLabel(t)},ct=function(e,t){return e.getOptionValue(t)};function lt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ut(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ct(e,t);return n.some((function(t){return ct(e,t)===r}))}function pt(e,t,n){return!e.filterOption||e.filterOption(t,n)}var dt=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ft=1,ht=function(e){M(n,e);var t=L(n);function n(e){var r;return S(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),c=r.isOptionDisabled(e,a);if(s){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(xe(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return R.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return st(r.props,e)},r.getOptionValue=function(e){return ct(r.props,e)},r.getStyles=function(e,t){var n=et[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,A(A({},Se),e.components);var e},r.buildCategorizedOptions=function(){return ot(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return it(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:A({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&U(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return dt(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!p||!h||d&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++ft),r.state.selectValue=B(e.value),r}return O(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,c=a.menuIsOpen,l=this.state.isFocused;(l&&!s&&e.isDisabled||l&&c&&!e.menuIsOpen)&&this.focusInput(),l&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?K(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&K(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(tt):A(A({},tt),this.props.theme):tt}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,c=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:l,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return lt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ut(this.props,e,t)}},{key:"filterOption",value:function(e,t){return pt(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,c=this.getComponents().Input,l=this.state.inputIsHidden,u=this.commonProps,p=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?o().createElement(c,v({},u,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},d)):o().createElement(Ue,v({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:P,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:s,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,p=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,w=g.isFocused;if(!this.hasValue()||!p)return h?null:o().createElement(c,v({},l,{key:"placeholder",isDisabled:d,isFocused:w}),m);if(f){var E=y.map((function(t,s){var c=t===b;return o().createElement(n,v({},l,{components:{Container:r,Label:i,Remove:a},isFocused:c,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));return E}if(h)return null;var _=y[0];return o().createElement(s,v({},l,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o().createElement(e,v({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?o().createElement(e,v({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o().createElement(n,v({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o().createElement(e,v({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,y=f.loadingMessage,b=f.minMenuHeight,w=f.maxMenuHeight,E=f.menuIsOpen,_=f.menuPlacement,S=f.menuPosition,C=f.menuPortalTarget,x=f.menuShouldBlockScroll,O=f.menuShouldScrollIntoView,k=f.noOptionsMessage,M=f.onMenuScrollToTop,j=f.onMenuScrollToBottom;if(!E)return null;var D,I=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,c=t.label,l=t.value,f=d===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return o().createElement(u,v({},p,{innerProps:y,data:i,isDisabled:a,isSelected:s,key:g,label:c,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,c="".concat(e.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return o().createElement(n,v({},p,{key:c,data:i,options:a,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(g){var T=y({inputValue:m});if(null===T)return null;D=o().createElement(c,p,T)}else{var A=k({inputValue:m});if(null===A)return null;D=o().createElement(l,p,A)}var N={minMenuHeight:b,maxMenuHeight:w,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:O},L=o().createElement(J,v({},p,N),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,c=r.maxHeight;return o().createElement(i,v({},p,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),o().createElement(Xe,{captureEnabled:h,onTopArrive:M,onBottomArrive:j,lockEnabled:x},(function(t){return o().createElement(a,v({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:c,focusedOption:d}),D)})))}));return C||"fixed"===S?o().createElement(s,v({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(i){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return o().createElement("input",{name:a,type:"hidden",value:c})}var l=s.length>0?s.map((function(t,n){return o().createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o().createElement("input",{name:a,type:"hidden"});return o().createElement("div",null,l)}var u=s[0]?this.getOptionValue(s[0]):"";return o().createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,c=this.getFocusableOptions();return o().createElement(De,v({},e,{ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,u=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o().createElement(r,v({},d,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),o().createElement(t,v({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:u}),o().createElement(i,v({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),o().createElement(n,v({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,s=e.menuIsOpen,c=e.inputValue,l={};if(n&&(a!==n.value||i!==n.options||s!==n.menuIsOpen||c!==n.inputValue)){var u=B(a),p=s?function(e,t){return it(ot(e,t))}(e,u):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,u):null,f=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,p);l={selectValue:u,focusedOption:f,focusedValue:d,clearFocusValueOnUpdate:!1}}var h=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return A(A(A({},l),h),{},{prevProps:e})}}]),n}(r.Component);ht.defaultProps=nt;var mt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},gt=function(e){var t,n;return n=t=function(t){M(r,t);var n=L(r);function r(){var e;S(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return O(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=w(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return o().createElement(e,v({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(r.Component),t.defaultProps=mt,n};n(55655);const yt=gt(ht);var vt=n(56427),bt=n(17965),wt=n.n(bt),Et=n(43754),_t=n(35143),St=n(29987),Ct=n.n(St),xt=n(47340),Ot=n.n(xt),kt=n(29491);const Mt=window.wp.mediaUtils;var jt,Dt=n(21493),It=n.n(Dt),Tt=n(15901),At=new Uint8Array(16);function Nt(){if(!jt&&!(jt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jt(At)}const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Pt=[],zt=0;zt<256;++zt)Pt.push((zt+256).toString(16).substr(1));const Rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Pt[e[t+0]]+Pt[e[t+1]]+Pt[e[t+2]]+Pt[e[t+3]]+"-"+Pt[e[t+4]]+Pt[e[t+5]]+"-"+Pt[e[t+6]]+Pt[e[t+7]]+"-"+Pt[e[t+8]]+Pt[e[t+9]]+"-"+Pt[e[t+10]]+Pt[e[t+11]]+Pt[e[t+12]]+Pt[e[t+13]]+Pt[e[t+14]]+Pt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Lt.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Bt=function(e,t,n){var r=(e=e||{}).random||(e.rng||Nt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Rt(r)};var Ft=n(86614);Ft.domToReact,Ft.htmlToDOM,Ft.attributesToProps,Ft.Comment,Ft.Element,Ft.ProcessingInstruction,Ft.Text;const Ut=Ft;var Ht,Kt,Vt,qt=gt(ht),Yt=(Ht=qt,Vt=Kt=function(e){M(n,e);var t=L(n);function n(e){var r;return S(this,n),(r=t.call(this)).select=void 0,r.lastRequest=void 0,r.mounted=!1,r.handleInputChange=function(e,t){var n=r.props,o=n.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,n.onInputChange);if(!i)return delete r.lastRequest,void r.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&r.state.optionsCache[i])r.setState({inputValue:i,loadedInputValue:i,loadedOptions:r.state.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=r.lastRequest={};r.setState({inputValue:i,isLoading:!0,passEmptyOptions:!r.state.loadedInputValue},(function(){r.loadOptions(i,(function(e){r.mounted&&a===r.lastRequest&&(delete r.lastRequest,r.setState((function(t){return{isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?A(A({},t.optionsCache),{},j({},i,e)):t.optionsCache}})))}))}))}return i},r.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},r}return O(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props;t.loadOptions;var n=t.isLoading,r=w(t,["loadOptions","isLoading"]),i=this.state,a=i.defaultOptions,s=i.inputValue,c=i.isLoading,l=i.loadedInputValue,u=i.loadedOptions,p=i.passEmptyOptions?[]:s&&l?u:a||[];return o().createElement(Ht,v({},r,{ref:function(t){e.select=t},options:p,isLoading:c||n,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},r=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return A(A({},n),r)}}]),n}(r.Component),Kt.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Vt);const Wt=Yt;function Qt(e){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zt(e,t,n){return(t=function(e){return e=function(e){if("object"!=Qt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=Qt(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==Qt(e)?e:e+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $t(e,t){var n;if(e)return"string"==typeof e?Gt(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,t):void 0}function Jt(e){return function(e){if(Array.isArray(e))return Gt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$t(e)||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 Xt(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tn=function(e){var t=en(en({},e),null==(null==e?void 0:e.method)||null==(null==e?void 0:e.method)||0==(null==e||null==(t=e.method)?void 0:t.length)?{method:"POST"}:{method:null==e?void 0:e.method});return u()(t)},nn=function(e){return null!==e&&"string"==typeof e},rn=function(e){return String(Math.floor(Number(e)))===e},on=function(e){return null!==e&&"function"==typeof e},an=function(e){return null!==e&&"object"===Qt(e)&&Array.isArray(e)},sn=function(e){return null!==e&&"object"===Qt(e)&&!an(e)},cn=function(e,t){if(null==(n=t)||!n.rules||null==t.name)return!0;Object.hasOwnProperty.call(t,"index")&&(n=pn(null==(n=t)?void 0:n.rules,t),t=en(en({},t),{},{rules:n}));var n=jn(t.rules,e);return Boolean(n)},ln=function(e,t){return null==t?void 0:t.reduce((function(e,t,n){return null!=e[t]?e[t]:{}}),e)},un=function(e,t){var n=e[0],r=e[1];return e=e[2],[n,r=r.replace("[index]","[".concat(t,"]")),e]},pn=function(e,t,n){var r,o;return kn(e)?(r=e.slice(0,1)[0],o=e.slice(1).map((function(e,n){return kn(e)?pn(e,t):un(e,null==t?void 0:t.index)})),[r].concat(Jt(o))):un(e,null==t?void 0:t.index)},dn=function(e){var t={};return null!=e&&e.map((function(e){t[null==e?void 0:e.name]=null==e?void 0:e.default})),t},fn=function(e){return null!==e&&""!==e&&(e=e.toString()).replace(/(<([^>]+)>)/gi,"")},hn=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},mn=function(e,t,n,r){void 0===r&&(r=0);for(var o=(0,p.toPath)(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e},gn=function(e){return[].concat(e).sort((function(e,t){return null==e.priority||null==t.priority?0:e.priority>t.priority?1:-1}))},yn=function(e,t){var n=t,r=e;if(!nn(e)){e.persist&&e.persist();var o=(e=e.target||e.currentTarget).type,i=e.value,a=e.checked,s=e.multiple;switch(n=t||e.name,o){case"number":case"range":r=parseFloat(i);break;case"checkbox":r=s?i:a;break;default:r=i}}return{field:n,val:r}},vn=function(e,t,n){for(var r=(0,p.clone)(e),o=r,i=0,a=(0,p.toPath)(t);i<a.length-1;i++){var s=a[i],c=mn(e,a.slice(0,i+1));o=c&&(sn(c)||Array.isArray(c))?o[s]=(0,p.clone)(c):(c=a[i+1],o[s]=rn(c)&&0<=Number(c)?[]:{})}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)},bn=function(e){var t=e.type,n=["validation_rules","default","rules","meta","switch"].concat(Jt(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]));return"select"!==t&&"checkbox-select"!==t&&"select-async"!==t&&"radio-card"!==t&&"checkbox"!==t&&"toggle"!==t&&e.multiple&&n.push("options"),"tab"!==t&&"group"!==t&&"repeater"!==t&&"section"!==t&&"button"!==t&&n.push("fields"),t=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,n),null==e||!e.label||null!=e&&e.placeholder||(t.placeholder=e.label),t},wn=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(0,d.__experimentalGetSettings)();return h().utc(e||void 0).utcOffset(+(null==n||null==(e=n.timezone)?void 0:e.offset),t)},En=function(e,t,n){var r=Jt(e);return e=t.filter((function(e){return r.findIndex((function(t){return t[n]===e[n]}))<=-1})),[].concat(Jt(r),Jt(e))},Sn=function(e){return"function"==typeof Symbol&&"symbol"===Qt(Symbol.iterator)||!e||"function"!=typeof Symbol||e.constructor!==Symbol||e===Symbol.prototype?Qt(e):"symbol"},Cn=function(e,t){var n=!(2<(arguments.length<=2?0:arguments.length-2)&&void 0!==(arguments.length<=4?void 0:arguments[4]))||arguments.length<=4?void 0:arguments[4];return String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((function(e,t){return e&&Object.hasOwnProperty.call(e,t)?e[t]:n}),e)},xn={is:function(e,t,n){return Cn(n,e)==t},"!is":function(e,t,n){return!xn.is(e,t,n)},includes:function(e,t,n){if(!hn(n)&&(n=Cn(n,e),"function"!=Sn(n))){if(an(t)&&an(n))return null==(e=c()(n,t))?void 0:e.length;if(an(t)&&"string"==Sn(n))return t.includes(n);if(an(n)&&"string"==Sn(t))return n.includes(t)}return!1},"!includes":function(e,t,n){return!xn.includes(e,t,n)},isOfType:function(e,t,n){return Sn(Cn(n,e))===t},"!isOfType":function(e,t,n){return!xn.isOfType(e,t,n)},allOf:function(e,t,n){var r;if(Array.isArray(t))return r=Cn(n,e),t.every((function(e){return r.includes(e)}));throw Error((0,a.__)('"allOf" condition requires an array as #3 argument',"betterdocs"))},anyOf:function(e,t,n){if(Array.isArray(t))return n=Cn(n,e),t.includes(n);throw Error((0,a.__)('"anyOf" condition requires an array as #3 argument',"betterdocs"))},gt:function(e,t,n){return Cn(n,e)>t},gte:function(e,t,n){return Cn(n,e)>=t},lt:function(e,t,n){return Cn(n,e)<t},lte:function(e,t,n){return Cn(n,e)<=t}},On={and:function(e){return!e.includes(!1)},or:function(e){return e.includes(!0)},not:function(e){if(1!==e.length)throw Error((0,a.__)('"not" can have only one comparison rule, multiple rules given',"betterdocs"));return!e[0]}},kn=function(e){return!!(Array.isArray(e)&&Array.isArray(e[1])&&e[0]&&On[e[0].toLowerCase()])},Mn=function(e,t){var n=e[0],r=e[1];if(e=e[2],"string"!=typeof n||void 0===xn[n])throw Error((0,a.sprintf)((0,a.__)("Invalid comparison rule %s.","betterdocs"),n));return xn[n](r,e,t)},jn=function(e,t){return"function"==typeof e?Promise.resolve(e(t)):function(e,t){return kn(e)?function(e,t){return On[e.toLowerCase()](t)}(e.slice(0,1)[0],e.slice(1).map((function(e,n){return(kn(e)?jn:Mn)(e,t)}))):Mn(e,t)}(e,t)};function Dn(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn={savedValues:{type:"conversions",source:"edd"},values:{},touched:{},errors:{}},An={reducer:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Tn,t=1<arguments.length?arguments[1]:void 0;switch(t.type){case"SET_SAVED_VALUES":var n=In({},e);return In(In({},n),{},{values:t.payload,savedValues:t.payload});case"FIELD_VALUE":n=In({},e);var r=t.payload;return In(In({},n),{},{values:In(In({},null==n?void 0:n.values),r)});case"REMOVE_FIELD_VALUE":return n=In({},e),r=t.payload,null!=(o=n.values)&&o[r]&&delete n.values[r],n;case"RESET_FIELD_VALUE":var o=In({},e);return null!=(r=o.values)&&r[t.payload]&&(delete o.values[t.payload],null!=(n=o.savedValues))&&n[t.payload]&&(o.values[t.payload]=o.savedValues[t.payload]),o;case"FIELD_ERROR":return In(In({},e),{},{errors:In(In({},e.errors),t.payload)});case"REMOVE_FIELD_ERROR":return delete(r=In({},e)).errors[t.payload],r;case"FIELD_TOUCHED":return In(In({},e),{},{touched:In(In({},e.touched),t.payload)})}return e},actions:{setSavedValues:function(e){return{type:"SET_SAVED_VALUES",payload:e}},setFieldValue:function(e){return{type:"FIELD_VALUE",name:e.name,payload:e.value}},removeFieldValue:function(e){return{type:"REMOVE_FIELD_VALUE",payload:e}},resetFieldValue:function(e){return{type:"RESET_FIELD_VALUE",payload:e}},setFieldTouched:function(e){return{type:"FIELD_TOUCHED",payload:e}},setError:function(e){return{type:"FIELD_ERROR",payload:e}},removeError:function(e){return{type:"REMOVE_FIELD_ERROR",payload:e}}},selectors:{getValues:function(e){return e.values},getFieldValue:function(e,t){return null==(e=e.values)?void 0:e[t]},getSavedFieldValue:function(e,t,n){var r;return(null===n||(null==(r=e.savedValues)?void 0:r[n])===(null==(r=e.values)?void 0:r[n]))&&(null==(r=e.savedValues)?void 0:r[t])},isTouched:function(e,t){return null==(e=e.touched)?void 0:e[t]},getError:function(e,t){return null==(e=e.errors)?void 0:e[t]},isVisible:function(e,t){return!t.rules||null==t.name||(t=jn(t.rules,e.values),Boolean(t))}}};function Nn(){return(Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)!{}.hasOwnProperty.call(r,n)||(e[n]=r[n])}return e}).apply(null,arguments)}function Ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||$t(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}var zn=(0,r.createContext)(void 0),Rn=(zn.displayName="Anonymous",zn.Provider);function Bn(){return(0,r.useContext)(zn)}zn.Consumer;var Fn=function(e){var t,n,o,i,a,s,c,l,u,p,d,f,h,m,g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"fields";if(null!=e&&e[g])return t=e.value,n=e.multiple,o=Bn(),u=Ln((0,r.useState)(e[g]),2),i=u[0],a=u[1],u=Ln((0,r.useState)([]),2),s=u[0],c=u[1],u=Ln((0,r.useState)({options:null,parentIndex:null}),2),l=u[0],u=u[1],f=Ln((0,r.useState)(null),2),p=f[0],d=f[1],f=Ln((0,r.useState)(null),2),h=f[0],m=f[1],(0,r.useEffect)((function(){var r=e.ajax&&(null==(r=o.getTabFields(null==e?void 0:e.parentIndex))?void 0:r[g])||i;c(o.eligibleOptions(r)),d(o.eligibleOption(r,t,null!=n&&n))}),[t,i]),(0,r.useEffect)((function(){a(e[g]),c(o.eligibleOptions(e[g]))}),[e]),(0,r.useEffect)((function(){c(o.eligibleOptions(i))}),[i]),(0,r.useEffect)((function(){null!=l.options&&a(l.options)}),[l]),(0,r.useEffect)((function(){var e;null!=p&&(e=n?an(p)&&p.map((function(e){return e.value}))||t:p.value||t,m(e))}),[p]),(0,r.useEffect)((function(){var e;0===s.filter((function(e){return e.value===h})).length&&(e=gn(s),m((null==e||null==(e=e[0])?void 0:e.value)||t))}),[h,s]),{options:gn(s),option:h,selectedOption:p,setOptions:c,setData:u,setSelectedOption:d};throw new Error("#options param need to set in order to use useOptions hook.")};function Un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(Object.assign||function(e){for(var n=1;n<t.length;n++){var r,o=t[n];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,t)}function Hn(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vn=function(e,t){switch(t.type){case"SET_CONTEXT":return Un({},e,vn(e,t.payload.field,t.payload.value));case"SET_ACTIVE_TAB":return Kn(Kn({},e),{},{config:Kn(Kn({},e.config),{},{active:t.payload})});case"SET_REDIRECT":return Kn(Kn({},e),{},{redirect:Kn(Kn({},e.redirect),t.payload)});case"SET_VALUES":return Un({},e,vn(e,"values",t.payload));case"SET_SAVED_VALUES":return Un({},e,vn(e,"savedValues",t.payload));case"SET_FIELD_VALUE":return Un({},e,{values:vn(e.values,t.payload.field,t.payload.value)});case"SET_TOUCHED":return Un({},e,{touched:t.payload});case"SET_ERRORS":return Un({},e,{errors:t.payload});case"SET_STATUS":return Un({},e,{status:t.payload});case"SET_ISSUBMITTING":return Kn(Kn({},e),{},{isSubmitting:t.payload});case"SET_ISVALIDATING":return Un({},e,{isValidating:t.payload});case"SET_FIELD_TOUCHED":return Kn(Kn({},e),{},{touched:Kn(Kn({},e.touched),{},Zt({},t.payload.field,t.payload.value))});case"SET_FIELD_ERROR":case"RESET_FORM":return Un({},e,t.payload);case"SUBMIT_ATTEMPT":return Un({},e,{isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Un({},e,{isSubmitting:!1});case"SET_FORM_FIELD":return null===t.payload.field?Un({},e,vn(e,"tabs",t.payload.value)):Un({},e,{tabs:vn(e.tabs,t.payload.field,t.payload.value)});case"SET_ICONS":return Un({},e,{icons:vn(e.icons,t.payload.name,t.payload.icons)});case"SET_ALERTS":return Un({},e,{alerts:vn(e.alerts,t.payload.name,t.payload.value)});case"SET_COMMONS":return Un({},e,{common:vn(e.common,t.payload.name,t.payload.value)});default:return e}};function qn(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wn=function(e){var t=(0,r.useRef)(!1);(0,r.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]);var n=(i=Ln((0,r.useReducer)(Vn,Yn(Yn({},e),{},{savedValues:e.savedValues||{},values:e.values||{},errors:e.initialErrors||{},touched:e.initialTouched||{},icons:e.initialIcons||{},common:{},alerts:{},tabs:gn(e.tabs)})),2))[0],o=i[1],i=Zn((function(e,t,n){o({type:"SET_CONTEXT",payload:{field:e,value:t}})})),a=Zn((function(e,t){return e="function"==typeof e?e(n.values):e,o({type:"SET_VALUES",payload:e}),void 0!==t&&t?e:Promise.resolve()})),s=Zn((function(e,t){return e="function"==typeof e?e(n.values):e,o({type:"SET_SAVED_VALUES",payload:e}),void 0!==t&&t?e:Promise.resolve()})),c=Zn((function(e,t,n){o({type:"SET_FIELD_VALUE",payload:{field:e,value:t}})})),l=Zn((function(e,t){o({type:"SET_FORM_FIELD",payload:{field:e,value:t}})})),u=(0,r.useCallback)((function(e){return mn(n.values,e)}),[n]),p=Zn((function(e,t,n){o({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t=t||!0}})})),d=(0,r.useCallback)((function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(e.persist&&e.persist(),e=e.target).name;p(t||n||e.id,!0)}),[p]),f=Zn((function(e){if("string"==typeof e)return function(t){return d(t,e)};d(e)})),h=(0,r.useCallback)((function(e,t,r){null!=r&&r.isPro&&!1===Boolean(n.is_pro_active)||(t=(e=yn(e,t)).field,e=e.val,t&&(c(t,(0,m.applyFilters)("quickBuilder_fieldValue",e,t)),(0,m.doAction)("quickBuilder_setFieldValue",t,e,r)))}),[c,n.values]),g=Zn((function(e,t){var r;if(null!=t&&t.isPro&&!1===Boolean(n.is_pro_active)&&null!=(r=n.alerts)&&null!=(r=r.pro_alert(null==t?void 0:t.popup))&&r.fire(),null==t||!t.isLicenseActive||!1!==Boolean(n.is_license_active))return"string"==typeof e?function(n){return h(e,n,t)}:void h(e,null,t);null!=(r=n.alerts)&&null!=(r=r.licenseInactiveAlert(null==t?void 0:t.popup))&&r.fire()})),y=(0,r.useCallback)((function(e){var t=Yn({},e),r=bn(t),o=r.name,i=r.type,a=r.parent,s=r.parenttype,c=(null!=t&&t.is_pro&&(r.is_pro=!(null!=t&&t.is_pro&&!0===Boolean(n.is_pro_active))),a=a&&"group"===s?null!=(c=null==(c=null!=(c=mn(n.values,a))?c:{})?void 0:c[o])?c:null==t?void 0:t.default:a&&"repeater"===s?null!=(c=null==(s=null!=(c=mn(n.values,a))?c:[])||null==(a=s[r.index])?void 0:a[o])?c:null==t?void 0:t.default:null!=(s=mn(n.values,o))?s:null==t?void 0:t.default,r.onChange=g,r.onBlur=f,r.value);return"checkbox"!==i||r.multiple?"radio"===i?(r.checked=a===c,r.value=c):r.value="date"===i&&null==a?wn():a:(r.checked=!!a,r.value=!!a,nn(a)&&"0"===a?(r.checked=!1,r.value=!1):(r.checked=Boolean(a),r.value=Boolean(a))),r.visible=cn(n.values,e),r}),[f,g,n.values]),v=(0,r.useCallback)((function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return r=null!==r?null==(r=mn(n.values,r))?void 0:r[e]:mn(n.values,e)||(null==(r=t.meta)?void 0:r.default),Yn(Yn({},t.meta),{},{value:r,error:mn(n.errors,e),touched:!!mn(n.touched,e),visible:cn(n.values,t),initialValue:"",initialTouched:"",initialError:""})}),[n.errors,n.touched,n.values]),b=(0,r.useCallback)((function(e){return 0<e.length?e.filter((function(e){return null!=e&&e.rules?jn(e.rules,n.values):e})):e}),[n.errors,n.touched,n.values]),w=(0,r.useCallback)((function(e,t){var n;return e.length?(n=[],2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&an(t)?e.filter((function(e){return t.includes(e.value)})):0<(n=e.filter((function(e){return e.value==t}))).length?n[0]:""):e}),[n.errors,n.touched,n.values]),E=(0,r.useCallback)((function(){return{setValue:function(e,t){return c(e,t)},getValue:function(e){return mn(n.values,e)},getValueForDefault:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return(null===t||mn(n.savedValues,t)===mn(n.values,t))&&mn(n.savedValues,e)}}}),[n.errors,n.touched,n.values,n.savedValues]),_=(0,r.useCallback)((function(e){return mn(n.tabs,e)}),[n]),S=Zn((function(e){o({type:"SET_ISSUBMITTING",payload:e})})),C=Zn((function(e){o({type:"SET_ACTIVE_TAB",payload:e})})),x=Zn((function(e){o({type:"SET_REDIRECT",payload:e})})),O=Zn((function(e,t){o({type:"SET_ICONS",payload:{name:e,icons:t}})})),k=Zn((function(e,t){o({type:"SET_COMMONS",payload:{name:e,value:t}})})),M=Zn((function(e,t){o({type:"SET_ALERTS",payload:{name:e,value:t}})}));return Yn(Yn(Yn({},e),n),{},{setContext:i,values:n.values,savedValues:n.savedValues,errors:n.errors,touched:n.touched,isSubmitting:null!=(e=null==n?void 0:n.isSubmitting)&&e,setActiveTab:C,setRedirect:x,setSubmitting:S,setValues:a,setSavedValues:s,setFieldValue:c,getFieldValue:u,handleBlur:f,handleChange:g,getFieldProps:y,getFieldMeta:v,getFieldHelpers:E,eligibleOptions:b,eligibleOption:w,getTabFields:_,setFormField:l,registerIcons:O,registerCommon:k,registerAlert:M})},Qn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Zn=function(e){var t=(0,r.useRef)(e);return Qn((function(){t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=arguments.length,i=(n=new Array(o),0);i<o;i++)n[i]=arguments[i];return t.current.apply(void 0,n)}),[])},Gn=function(e){var t=y()("wprf-row clearfix wprf-flex",null==e?void 0:e.className);return(0,r.createElement)("div",{className:t},null==e?void 0:e.children)},$n=function(e){var t=y()("wprf-column",null==e?void 0:e.className,Zt(Zt({},"wprf-column-".concat(12/(null==e?void 0:e.column)),(null==e?void 0:e.column)&&12!==e.column),"wprf-column-12",12===e.column));return(0,r.createElement)("div",{className:t},null==e?void 0:e.children)},Jn=function(e){var t=y()("wprf-input-label",null==e?void 0:e.className);return(0,r.createElement)("label",{htmlFor:null==e?void 0:e.htmlFor,className:t},(null==e||null==(t=e.badge)?void 0:t.value)&&(0,r.createElement)("div",{className:"wprf-badge"},(0,r.createElement)("sup",{className:y()("wprf-badge-item",{"wprf-badge-active":null==e||null==(t=e.badge)?void 0:t.active})},null==e||null==(t=e.badge)?void 0:t.label)),!(null!=e&&e.src)&&(null==e?void 0:e.children),(null==e?void 0:e.src)&&(0,r.createElement)(Xn,{className:"wprf-label-image",src:e.src,alt:null==e?void 0:e.label}))},Xn=function(e){var t;return null!=e&&e.src?(t=y()(["wprf-input-image",null==e?void 0:e.className]),(0,r.createElement)("img",{className:t,src:null==e?void 0:e.src,alt:null==e?void 0:e.alt})):(0,r.createElement)("p",null,"No Source( src ) Defined")},er=function(e){var t=e.componentClasses;return e=e.label,(0,r.createElement)("div",{className:"wprf-badge"},(0,r.createElement)("span",{className:"wprf-badge-icon"},(0,r.createElement)("i",{className:"btd-icon btd-crown"})),(0,r.createElement)("span",{className:t},e))},tr=function(e){var t=Bn(),n=e.label,o=void 0===(o=e.position)?"right":o,i=e.renderLabel,a=e.renderComponent,s=void 0!==(s=e.disabled)&&s,c=(void 0===n&&(n="Pro"),y()("wprf-badge-item",{"wprf-badge-active":e.active})),l={};return t.is_pro_active||(l={onClick:function(n){n.preventDefault(),t.alerts.pro_alert(null==e?void 0:e.popup).fire()}}),(0,r.createElement)("div",Nn({className:y()("wprf-badge-wrapper",{"pro-deactivated":!t.is_pro_active||s})},l),"left"===o&&0<n.length&&(0,r.createElement)(r.Fragment,null,i((0,r.createElement)(er,{componentClasses:c,label:n}),"left")),"right"===o&&0<n.length&&(0,r.createElement)(r.Fragment,null,i((0,r.createElement)(er,{componentClasses:c,label:n}),"right")),a())},nr=["id","label","badge","badgePosition","context"],rr=function(e){var t=e.id,n=e.label,o=e.badge,i=e.badgePosition,a=e.context;return e=Pn(e,nr),n&&0<n.length?(0,r.createElement)("div",{className:"wprf-control-label"},o?(0,r.createElement)("div",{className:"wprf-label-with-badge"},"left"==i&&o,(0,r.createElement)("label",{htmlFor:t},n),"right"==i&&o):(0,r.createElement)("label",{htmlFor:t},n),(null==e?void 0:e.label_subtitle)&&(0,r.createElement)("p",{className:"wprf-label-subtitle",dangerouslySetInnerHTML:{__html:null==e?void 0:e.label_subtitle}}),(null==e?void 0:e.link)&&(0,r.createElement)("a",{rel:"nofollow",target:"_blank",href:e.link},null==a||null==(i=a.icons)?void 0:i.link)):null},or=function(e){var t=e.position,n=e.description,o=e.renderComponent,i=e.help,s=void 0!==(u=e.enableDisableActive)&&u,c=void 0===(u=e.type)?void 0:u,l=void 0!==(u=e.value)&&u,u=(e=Ln((0,r.useState)(n),2))[0],p=e[1];return(0,r.useEffect)((function(){"toggle"===c&&s&&p((0,a.sprintf)((0,a.__)(l?"Enabled %s":"Disabled %s","betterdocs"),null!=n?n:""))}),[l]),(0,r.createElement)("div",{className:"wprf-control-field"},"left"===t&&u&&(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:u}}),o(),"right"===t&&u&&(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:u}}),i&&(0,r.createElement)("p",{className:"wprf-help",dangerouslySetInnerHTML:{__html:i}}))},ir=["label","id","name","type","style","is_pro","badge","value","disabled","enable_disable_text_active"];function ar(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var sr=function(e){return function(t){var n,o=t.label,i=t.id,a=t.name,s=t.type,c=t.style,l=t.is_pro,u=t.badge,p=t.value,d=void 0!==(d=t.disabled)&&d,f=t.enable_disable_text_active,h=void 0!==f&&f,m=Pn(t,ir),g=(null==i&&(i=a),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({description:{position:"right"}},c));return c=y()(Zt(Zt(Zt({},"wprf-style-".concat(null==g?void 0:g.type),(null==g?void 0:g.type)||!1),"wprf-label-none",void 0===o||""===o||0===o.length),"wprf-".concat((null==g||null==(f=g.label)?void 0:f.position)||"inline","-label"),(null==(f=null==g||null==(c=g.label)?void 0:c.position)||f)&&null!=o)),"hidden"===s?(0,r.createElement)(e,Nn({},t,{id:i})):(n=bn(t,["description","label","help","style","disabled"]),f=y()("wprf-control-wrapper","wprf-type-".concat(s),c,null==t?void 0:t.classes,Zt({},"wprf-name-".concat(a),a)),(0,r.createElement)("div",{className:f},(1==l||1==d)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(tr,Nn({},u,m,{disabled:d,renderLabel:function(e,t){return(0,r.createElement)(rr,Nn({},n,{context:null==m?void 0:m.context,id:i,label:o,badge:e,badgePosition:t}))},renderComponent:function(){var o;return(0,r.createElement)(or,{help:null,description:null==t?void 0:t.description,position:null==g||null==(o=g.description)?void 0:o.position,type:s,value:p,enableDisableActive:h,renderComponent:function(){return(0,r.createElement)(e,Nn({},n,{disable:!0,id:i}))}})}})),(null==t?void 0:t.help)&&(0,r.createElement)("div",{className:"wprf-badge-wrapper"},(0,r.createElement)("div",{className:"wprf-control-label"}),(0,r.createElement)("div",{className:"wprf-control-field"},(0,r.createElement)("p",{className:"wprf-help",dangerouslySetInnerHTML:{__html:t.help}})))),(0==l||null==l)&&0==d&&(0,r.createElement)(r.Fragment,null,o&&0<o.length&&(0,r.createElement)(rr,Nn({},n,{context:null==m?void 0:m.context,label:o,id:i})),(0,r.createElement)(or,{help:null==t?void 0:t.help,description:null==t?void 0:t.description,position:null==g||null==(c=g.description)?void 0:c.position,type:s,value:p,enableDisableActive:h,renderComponent:function(){return(0,r.createElement)(e,Nn({},n,{id:i}))}}))))}},cr=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return function(n){var o=Bn(),i=n.trigger,a=o.getFieldProps(n),s=o.getFieldMeta(a.name,n),c=o.getFieldHelpers(),l=(null!=o&&o.quickBuilder&&null!=o&&o.show&&(o.show.includes(n.name)||(a.classes=null!=a&&a.classes?a.classes+" hidden":" hidden")),null!=n&&n.parentIndex?Jt(n.parentIndex):[]),u=(a.parentIndex=l,a.context=o,on(n.onChange)&&(a.onChange=n.onChange),on(n.onBlur)&&(a.onBlur=n.onBlur),(0,r.useRef)({}));return(0,r.useEffect)((function(){return u.current[n.name]=!0,function(){u.current[n.name]=!1}}),[]),(0,r.useEffect)((function(){var e,r;s.visible&&u.current[n.name]&&(t||"group"===a.type?(e=null==n?void 0:n.parent,r=null==n?void 0:n.parenttype,e&&"group"===r&&a.value&&c.setValue([e,a.name],a.value)):c.setValue(a.name,a.value))}),[s.visible]),(0,r.useEffect)((function(){u.current[n.name]&&sn(i)&&!hn(i)&&function(e,t,n,r){if(null!=r&&null!=(null==r?void 0:r.defaults)&&!hn(r.defaults)){var o=r.defaults;if(null!=o&&!hn(o)){var i={};if(null!=o&&o[n]&&nn(null==o?void 0:o[n])){r=o[n].indexOf("@");var a,s=o[n].indexOf(":");0===r&&0<s&&(r=o[n].substr(1,s-1),s=o[n].substr(s+1),a=t.getValueForDefault(r,e),""!=r)&&""!=s&&(s="false"!==s&&s,i[r]=a||s,t.setValue(r,a||s))}else if(null!=o&&o[n]&&(an(o[n])||sn(o[n])))for(var c in o[n]){var l,u,p=o[n][c];p&&(an(p)||sn(p))?(l=t.getValueForDefault(c,e),""!=c&&""!=p&&(p="false"!==p&&p,i[c]=l||p,t.setValue(c,l||p))):p&&(c=p.indexOf("@"),l=p.indexOf(":"),0===c)&&0<l&&(c=p.substr(1,l-1),u=p.substr(l+1),-1<p.indexOf(".")&&(c=c.split(".")),p=t.getValueForDefault(c,e),""!=c)&&""!=u&&(u="false"!==u&&u,i[c]=p||u,t.setValue(c,p||u))}}}}(a.name,c,a.value,i)}),[a.value,s.visible]),s.visible?(0,r.createElement)(e,a):(0,r.createElement)(r.Fragment,null)}},lr=function(e){return(0,r.createElement)(r.Fragment,null,(0,m.applyFilters)(e.action,"",e))},ur=sr((function(e){var t,n,o,i;if(null!=e&&e.text||!0===(null==e?void 0:e.group))return t=bn(e,["is_pro","visible","disable","parentIndex","context","onBlur","value","ajax","text"]),n=(i=Ln((0,r.useState)(!1),2))[0],o=i[1],null!=e&&e.href?(0,r.createElement)("a",{href:-1===(null==e?void 0:e.href)?null==e?void 0:e.value:null==e?void 0:e.href,target:null==e?void 0:e.target,className:y()("wprf-control wprf-button wprf-href-btn",null==e?void 0:e.classes)},null==e?void 0:e.text):null!=e&&e.group?(i=e.fields.map((function(t,n){return n=[].concat(Jt(e.parentIndex),["fields",n]),(0,r.createElement)(Lr,Nn({key:t.name},t,{parentIndex:n}))})),(0,r.createElement)("div",{className:"wprf-control wprf-button-group wprf-flex"},i)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",Nn({},t,{name:e.name,disabled:n,onClick:function(t){null!=e&&e.ajax&&(o(!0),function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&e){var n,r=!0;if(r=null!=e&&e.rules?jn(null==e?void 0:e.rules,t.values):r)return n={},Object.keys(e.data).map((function(r){var o,i;-1<(null==(i=(o=e.data[r]).indexOf)?void 0:i.call(o,"@"))?(i=e.data[r].substr(1),n[r]=null==(o=t.values)?void 0:o[i]):n[r]=e.data[r]})),tn({path:e.api,data:n}).then((function(n){"success"==(null==n?void 0:n.status)&&null!=n&&n.redirect&&(window.location=null==n?void 0:n.redirect);var r,o,i,a=null!=n&&null!=(r=n.data)&&r.context?n.data.context:!(null==n||!n.context)&&n.context;return a&&sn(a)&&Object.keys(a).map((function(e){t.setFieldValue(e,a[e])})),null!=n&&null!=(r=n.data)&&r.download&&(r=n.data.filename||"export.json",o=n.data.filetype||"text/json",function(e){var t=e.data,n=e.fileName;t=new Blob([t],{type:e.fileType}),(e=document.createElement("a")).download=n,e.href=window.URL.createObjectURL(t),n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}),e.dispatchEvent(n),e.remove()}({data:i=n.data.filetype?n.data.download:JSON.stringify(n.data.download),fileName:r,fileType:o})),null!=e&&e.trigger&&nn(null==e?void 0:e.trigger)&&(i=e.trigger.indexOf("@"),r=e.trigger.indexOf(":"),0===i)&&0<r&&(o=e.trigger.substr(1,r-1),"true"==(i=e.trigger.substr(r+1))?i=!0:"false"==i&&(i=!1),t.setFieldValue(o,i)),n}))}return Promise.reject(!1)}(e.ajax,e.context).then((function(t){var n;if(o(!1),"error"==(null==t?void 0:t.status))throw new Error(null==t?void 0:t.message);e.onChange({target:{type:"button",name:e.name,value:!0}}),null!=(t=e.ajax)&&t.hideSwal||(t=(null==(t=e.ajax)||null==(t=t.swal)?void 0:t.icon)||"success",n=(null==(n=e.ajax)||null==(n=n.swal)?void 0:n.text)||"Complete",e.context.alerts.toast(t,n,{autoClose:null==(t=e.ajax)||null==(t=t.swal)?void 0:t.autoClose})),null!=(n=e.ajax)&&n.reload&&("boolean"==typeof e.ajax.reload&&e.ajax.reload?setTimeout((function(){return window.location.reload()}),1e3):"string"==typeof e.ajax.reload&&(window.location.href=e.ajax.reload))})).catch((function(t){var n;console.error("Error In Button Called",e.name,t),o(!1),e.onChange({target:{type:"button",name:e.name,value:!1}}),null!=(n=e.ajax)&&n.hideSwal||e.context.alerts.toast("error",(null==t?void 0:t.message)||(0,a.__)("Something went wrong.","betterdocs"))}))),null!=e&&e.onClick?null!=e&&e.onClick(t):function(e){var t=e.context;null!=e&&e.trigger&&an(null==e?void 0:e.trigger)&&null!=e&&e.trigger.map((function(e){var n=(null==e?void 0:e.type)||"setFieldValue";if(null!=e&&e.action&&sn(null==e?void 0:e.action))for(var r in null==e?void 0:e.action){var o=r;-1<o.indexOf(".")&&(o=o.split(".")),r=null==e?void 0:e.action[r],""!=o&&t[n](o,r)}}))}(e)},className:y()("wprf-control wprf-button wprf-btn",null==e?void 0:e.classes)}),sn(null==e?void 0:e.text)&&null!=e&&e.ajax?n?null==e||null==(i=e.text)?void 0:i.loading:e.value?null==e||null==(t=e.text)?void 0:t.saved:null==e||null==(n=e.text)?void 0:n.normal:null==e?void 0:e.text));throw new Error((0,a.__)("Button has a required params #text.","betterdocs"))})),pr=sr((function(e){function t(){if(e.ajax&&(!e.ajax.rules||jn(e.ajax.rules,n.values))){v(!0);var t={};if(Object.keys(null==e?void 0:e.ajax.data).map((function(r){var o,i;-1<(null==e?void 0:e.ajax.data[r].indexOf("@"))?(i=null==e?void 0:e.ajax.data[r].substr(1),t[r]=null==(o=n.values)?void 0:o[i]):t[r]=null==e?void 0:e.ajax.data[r]})),!b)return tn({path:null==e?void 0:e.ajax.api,data:t}).then((function(t){v(!1);var r=En(e.options,t,"value");return n.setFormField([].concat(Jt(u),["options"]),r),f({options:r,parentIndex:[].concat(Jt(u),["options"])}),t}))}}var n=Bn(),o=e.id,i=e.name,a=e.multiple,s=e.placeholder,c=void 0!==(c=e.search)&&c,l=e.onChange,u=e.parentIndex,p=(w=Fn(e,"options")).options,d=w.selectedOption,f=w.setData,h=w.setSelectedOption,m=(w=Ln((0,r.useState)(null),2))[0],g=w[1],y=(w=Ln((0,r.useState)(!1),2))[0],v=w[1],b=(w=Ln((0,r.useState)(!1),2))[0],w=((0,r.useEffect)((function(){!an(m)&&sn(m)&&l({target:{type:"select",name:i,value:m.value,options:p,multiple:a}}),an(m)&&l({target:{type:"select",name:i,value:m.map((function(e){return e.value})),options:p,multiple:a}})}),[m]),(0,r.useEffect)((function(){t()}),[]),(0,r.useEffect)((function(){null!=e&&e.menuOpen&&t()}),[null==e?void 0:e.menuOpen]),(0,r.useCallback)((function(t){var n,r,o,i;an(t)&&0<(null==e||null==(r=e.filterValue)?void 0:r.length)&&(o=r=t,i=null!=(n=null==e?void 0:e.filterValue)?n:["all"],an(i)||(i=[i]),t=o=1<(null==r?void 0:r.length)&&function(e,t){return an(t)?e.some((function(e){return t.includes(e)})):e.includes(t)}(r.map((function(e){return e.value})),i)?r.filter((function(e){return!i.includes(null==e?void 0:e.value)})):o),g(t),h(t)}),[i,o,u]));return(0,r.createElement)("div",{className:"wprf-checkbox-select-wrapper"},(0,r.createElement)(yt,{isDisabled:null==e?void 0:e.disable,className:"wprf-checkbox-select",classNamePrefix:"wprf-checkbox-select",isSearchable:null!=c&&c,id:o,isClearable:!1,name:i,isMulti:null!=a&&a,placeholder:s,isLoading:y,options:p,value:d,onMenuOpen:t,onMenuClose:function(){v(!1)},isOptionDisabled:function(e){return null==e?void 0:e.disabled},onChange:w,closeMenuOnSelect:!1,hideSelectedOptions:!1,autoFocus:!1,controlShouldRenderValue:!1}),null!=d&&d.length?(0,r.createElement)("ul",{className:"wprf-selected-options"},null==d?void 0:d.map((function(e,t){return(0,r.createElement)("li",{key:null==e?void 0:e.label,className:"wprf-selected-option wprf-selected-option-".concat(t%6+1)},null==e?void 0:e.label,(0,r.createElement)("button",{type:"button",className:"wprf-remove-button",onClick:function(){return t=e,n=d.filter((function(e){return(null==e?void 0:e.value)!=(null==t?void 0:t.value)})),g(n),void h(n);var t,n}},(0,r.createElement)("i",{className:"btd-icon btd-close-fill"})))}))):"")}));function dr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var fr=o().memo((function(e){var t=bn(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick"]),n=Ln((0,r.useState)(!1),2),i=n[0],a=n[1];return(0,r.useEffect)((function(){var e;return i&&(e=setTimeout((function(){a(!1)}),1e3)),function(){return e&&clearTimeout(e)}}),[i]),(0,r.createElement)("span",{className:"wprf-code-viewer"},(0,r.createElement)("span",{className:"wprf-code-viewer-header"},null==e?void 0:e.label),(0,r.createElement)("span",{className:"wprf-code-viewer-body"},o().createElement("pre",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t),null!=(n=null==e?void 0:e.code)?n:(null==e?void 0:e.default)||(null==e?void 0:e.value)),(0,r.createElement)("span",{className:"wprf-clipboard-tooltip ".concat(i?"active":"")},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},(0,r.createElement)("span",null,"Copied")),(0,r.createElement)(vt.Button,{className:"wprf-copy-icon",onClick:function(){var t;wt()(null!=(t=null==e?void 0:e.code)?t:(null==e?void 0:e.default)||(null==e?void 0:e.value),{format:"text/plain",onCopy:function(){a(!0)}})}},(0,r.createElement)("i",{className:"btd-icon btd-duplicate"})))))})),hr=sr((function(e){var t,n=e.value,o=e.name,i=e.id,s=e.onChange,c=(h=Ln((0,r.useState)(!1),2))[0],l=h[1],u=(h=Ln((0,r.useState)(n||null),2))[0],p=h[1],d=(h=Ln((0,r.useState)(n||null),2))[0],f=h[1],h=(0,r.useRef)(null);return(0,r.useEffect)((function(){f(n||"#ffffff00")}),[]),(0,r.useEffect)((function(){s({target:{type:"colorpicker",name:o,value:u}})}),[u]),(0,r.useEffect)((function(){function e(e){t.current&&!t.current.contains(e.target)&&l(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t=h]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"wprf-colorpicker-wrap",ref:h},(0,r.createElement)("div",{className:"wprf-colorpicker-screen",onClick:function(){return l(!c)}},(0,r.createElement)("input",{type:"hidden",value:n,name:o,id:i}),(0,r.createElement)("span",{className:"wprf-picker-code"},n||d),(0,r.createElement)("span",{className:"wprf-picker-display",style:{backgroundColor:n}})),c&&(0,r.createElement)("div",{className:"wprf-colorpicker"},(0,r.createElement)(vt.ColorPicker,{color:n||d,onChangeComplete:function(e){return p(e.hex)}}),(0,r.createElement)("div",{className:"wprf-colorpicker-reset-wrap"},(0,r.createElement)("button",{className:"wprf-colorpicker-reset",onClick:function(e){e.preventDefault(),p(d),l(!1)}},null!=(h=null==e?void 0:e.reset_text)?h:(0,a.__)("Reset","betterdocs"))))))}));function mr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yr=o().memo((function(e){var t,n=bn(e,["is_pro","visible","trigger","descriptionCopyable","disable","parentIndex","context","badge","popup","type","descriptionLabel"]),i=(0,r.useCallback)((function(t){return n.onChange(t,{popup:null==e?void 0:e.popup,isPro:!!e.is_pro,originProps:e})}),[null==n?void 0:n.value]),a=(t=Ln((0,r.useState)(!1),2))[0],s=t[1],c=(t=Ln((0,r.useState)(!1),2))[0],l=t[1];return(0,r.useEffect)((function(){var e;return a&&(e=setTimeout((function(){s(!1)}),300)),function(){return e&&clearTimeout(e)}}),[a]),(0,r.useEffect)((function(){var e;return c&&(e=setTimeout((function(){l(!1)}),300)),function(){return e&&clearTimeout(e)}}),[c]),(0,r.createElement)("span",{className:"wprf-copy-to-clipboard-wrapper"},(0,r.createElement)("div",{className:"wprf-copy-to-clipboard-header"},(0,r.createElement)(rr,e),(0,r.createElement)("span",{className:"wprf-clipboard-tooltip ".concat(a?"active":"")},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},(0,r.createElement)("span",null,"Copied")),(0,r.createElement)(vt.Button,{className:"wprf-copy-icon",onClick:function(){wt()(e.value,{format:"text/plain",onCopy:function(){s(!0)}})}},(0,r.createElement)("i",{className:"btd-icon btd-copy"})))),(0,r.createElement)("div",{className:"wprf-copy-to-clipboard-body"},o().createElement("input",gr(gr({},n),{},{type:"text",onChange:i,disabled:!0}))),(0,r.createElement)("div",{className:"wprf-copy-to-clipboard-footer"},(null==e?void 0:e.description)&&(null==e?void 0:e.descriptionLabel)&&(0,r.createElement)("i",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.descriptionLabel}}),null!=e&&e.description?null!=e&&e.descriptionCopyable?(0,r.createElement)("div",{className:"wprf-clipboard-tooltip ".concat(c?"active":"")},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},(0,r.createElement)("span",null,"Copied")),(0,r.createElement)("p",{className:"wprf-description",onClick:function(){wt()(e.description,{format:"text/plain",onCopy:function(){l(!0)}})},dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})):(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}}):""))})),vr=sr((function(e){var t=e.name,n=e.value,o=e.onChange,i=e.position,a=(0,d.__experimentalGetSettings)(),s=null!=(e=null==e?void 0:e.format)?e:a.formats.datetime,c=wn(n),l=/a(?!\\)/i.test(a.formats.datetime.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,r.useEffect)((function(){o({target:{type:"date",name:t,value:c}})}),[]),(0,r.createElement)(vt.Dropdown,{className:"wprf-control-datetime",contentClassName:"wprf-control-datetime-content",position:i||"bottom right",renderToggle:function(e){return e.isOpen,(0,r.createElement)(vt.Button,{isTertiary:!0,onClick:e.onToggle},(0,d.date)(s,c,-(new Date).getTimezoneOffset()))},renderContent:function(){return(0,r.createElement)(vt.DateTimePicker,{__nextRemoveHelpButton:!0,__nextRemoveResetButton:!0,currentDate:wn(c).toDate().toString(),onChange:function(e){o({target:{type:"date",name:t,value:h()(e).utc().format()}})},is12Hour:l})}})})),br=function(e){var t=Bn(),n=e.fields,o=e.onChange,i=e.index,a=e.parent,s=(u=Ln((0,r.useState)(e.isCollapsed),2))[0],c=u[1],l=(0,kt.useInstanceId)(br),u=(u=(null==(u=null==(u=t.values)||null==(u=u[a])?void 0:u[i])?void 0:u.title)||(null==u?void 0:u.post_title)||(null==u?void 0:u.username)||(null==u?void 0:u.plugin_theme_name))?u.length<40?u:u.substr(0,40)+"...":"";return(0,r.useEffect)((function(){t.setFieldValue([a,i,"isCollapsed"],s)}),[s]),(0,r.createElement)("div",{className:"wprf-repeater-field"},(0,r.createElement)("div",{className:"wprf-repeater-field-title",onClick:function(){return c(!s)}},(0,r.createElement)("h4",null,(0,r.createElement)(vt.Icon,{icon:"move"}),e.index+1,": ",u),(0,r.createElement)("div",{className:"wprf-repeater-field-controls"},(0,r.createElement)(vt.Icon,{onClick:function(t){null!=t&&t.stopPropagation(),e.clone(e.index)},icon:"admin-page"}),(0,r.createElement)(vt.Icon,{onClick:function(t){null!=t&&t.stopPropagation(),e.remove(e.index)},icon:"trash"}))),!s&&(0,r.createElement)("div",{className:"wprf-repeater-inner-field"},n.map((function(t,n){var s=[].concat(Jt(e.parentIndex),["fields",n]);return(0,r.createElement)(Nr,Nn({key:"field-".concat(i,"-").concat(n)},t,{id:"field-".concat(l,"-").concat(i,"-").concat(n),index:i,parenttype:"repeater",parent:a,onChange:function(e){return o(e,i)},parentIndex:s}))}))))};function wr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r=sr((function(e){var t=Er({type:"",label:{position:"right"},column:4},e.style),n=(0,r.useMemo)((function(){var t=!1;return null!=e&&e.checked&&sn(e.checked)&&nn(null==e?void 0:e.value)?t=e.checked[e.value]:nn(e.value)||(t=e.value),t}),[null==e?void 0:e.checked,e.value]);return t=y()("wprf-toggle-wrap",Zt(Zt(Zt({},"wprf-".concat(null==t?void 0:t.type),0<(null==t?void 0:t.type.length)),"wprf-checked",Boolean(n)),"wprf-label-position-".concat(null==t||null==(n=t.label)?void 0:n.position),null==t||null==(n=t.label)?void 0:n.position),null==e?void 0:e.classes),(0,r.createElement)("div",{className:t},(0,r.createElement)(Ur,Er(Er({},e),{},{type:"checkbox",placeholder:void 0})),(0,r.createElement)(Jn,{htmlFor:e.id}))})),Sr=function(e){var t=e.isLoading,n=Ln((0,r.useState)([]),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){var t=gn(e.body.fields).map((function(t,n){return n=[].concat(Jt(e.parentIndex),["fields",n]),(0,r.createElement)(Lr,Nn({key:t.name},t,{parentIndex:n}))}));i(t)}),[]),(0,r.createElement)("div",{className:"wprf-modal-body"},t&&(0,r.createElement)(xr,null),!t&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"wprf-modal-content"},0<o.length&&o),(0,r.createElement)("div",{className:"wprf-modal-footer clearfix"},(0,r.createElement)("div",{className:"wprf-modal-footer-left"},(null==(n=e.body)?void 0:n.footer)&&nn(e.body.footer)&&(0,r.createElement)("p",null,e.body.footer),(0,r.createElement)(Nr,Nn({type:"button"},null==e?void 0:e.confirm_button))))))},Cr=function(e){return e=e.content,(0,r.createElement)("div",{className:"wprf-modal-header"},e&&nn(e)&&(0,r.createElement)("h3",null,e))},xr=function(e){return(0,r.createElement)("p",null,(0,a.__)("Loading...","betterdocs"))},Or={options:["inline","blockType","textAlign","colorPicker","link"],inline:{options:["bold","italic","underline","strikethrough","monospace"]},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0}},kr=sr((function(e){var t=Ln((0,r.useState)(_t.EditorState.createEmpty()),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){var t,n;e.value&&(t=(n=Ot()(e.value)).contentBlocks,t=_t.ContentState.createFromBlockArray(t,n.entityMap),n=_t.EditorState.createWithContent(t),o(n))}),[]),(0,r.useEffect)((function(){var t=Ct()((0,_t.convertToRaw)(n.getCurrentContent()));e.onChange({target:{type:"editor",value:t,name:e.name}})}),[n]),(0,r.createElement)(Et.Editor,{placeholder:null==e?void 0:e.placeholder,toolbar:Or,editorState:n,toolbarClassName:"wprf-editor-toolbar",wrapperClassName:"wprf-editor wprf-control",editorClassName:"wprf-editor-main",onEditorStateChange:o})}));function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ir(e){var t=Dr({type:"",label:{position:"right"},column:4},e.style),n=(0,r.useMemo)((function(){var t=!1;return null!=e&&e.checked&&sn(e.checked)&&nn(null==e?void 0:e.value)?t=e.checked[e.value]:nn(e.value)||(t=e.value),t}),[null==e?void 0:e.checked,e.value]);return t=y()("wprf-checkbox-wrap",Zt(Zt(Zt({},"wprf-".concat(null==t?void 0:t.type),0<(null==t?void 0:t.type.length)),"wprf-checked",Boolean(n)),"wprf-label-position-".concat(null==t||null==(n=t.label)?void 0:n.position),null==t||null==(n=t.label)?void 0:n.position),null==e?void 0:e.classes),(0,r.createElement)("div",{className:t},(0,r.createElement)(Ur,Dr(Dr({},e),{},{type:"checkbox"})),(0,r.createElement)("label",{htmlFor:e.id},e.label))}var Tr=sr((function(e){var t,n,o,i=e.options,a=e.value,s=e.multiple,c=e.style,l=gn(i),u=Dr({column:4},c);return s?(i=Ln((0,r.useState)({}),2),t=i[0],n=i[1],o=function(e){var t=e.target||e.currentTarget;n((function(e){return Dr(Dr({},e),{},Zt({},t.value,t.checked))}))},(0,r.useEffect)((function(){e.onChange({target:{type:"checkbox",name:e.name,value:t,multiple:!0}})}),[t]),(0,r.useEffect)((function(){if(sn(a))n(a);else{var e,t={},r=function(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Mr(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(l);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=a}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-checkbox-wrapper wprf-control"},(0,r.createElement)(Gn,null,l.map((function(n){return(0,r.createElement)($n,{key:n.value,column:u.column},(0,r.createElement)(Ir,Dr(Dr({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?a:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(Ur,Dr(Dr({},e),{},{type:"checkbox"}))})),Ar=function(e){if(!e.type||0===e.type.length)throw console.error(e),new Error((0,a.__)("Field must have a #type. see documentation.","betterdocs"));switch(e.type){case"text":case"radio":case"email":case"range":case"number":case"hidden":return(0,r.createElement)(Hr,e);case"checkbox":return(0,r.createElement)(Tr,e);case"textarea":return(0,r.createElement)(za,e);case"codeviewer":return(0,r.createElement)(fr,e);case"copy-to-clipboard":return(0,r.createElement)(yr,e);case"message":return(0,r.createElement)(qr,e);case"select":return(0,r.createElement)(Ta,e);case"checkbox-select":return(0,r.createElement)(pr,e);case"select-async":return(0,r.createElement)(Aa,e);case"slider":return(0,r.createElement)(Na,e);case"group":return(0,r.createElement)(zr,e);case"radio-card":return(0,r.createElement)(Gr,e);case"section":return(0,r.createElement)(so,e);case"date":return(0,r.createElement)(vr,e);case"toggle":return(0,r.createElement)(Ua,e);case"colorpicker":return(0,r.createElement)(hr,e);case"jsonuploader":return(0,r.createElement)(Kr,e);case"repeater":return(0,r.createElement)(Xr,e);case"media":return(0,r.createElement)(Vr,e);case"editor":return(0,r.createElement)(kr,e);case"action":return(0,r.createElement)(lr,e);case"button":return(0,r.createElement)(ur,e);case"modal":return(0,r.createElement)(Yr,e);case"tab":return(0,r.createElement)(Ya,e);case"responsive-number":return(0,r.createElement)(ro,e);default:var t=(0,m.applyFilters)("custom_field","",e.type,e);return(0,r.createElement)(r.Fragment,null,t)}},Nr=cr(Ar,!0),Lr=cr(Ar),Pr=["name","fields"],zr=sr((function(e){var t,n,o,i,s=e.name,c=e.fields,l=Pn(e,Pr);if(c&&an(c)&&0!==c.length)return t=Bn(),n=(0,r.useCallback)((function(e){e.persist&&e.persist();var n=(e=yn(e)).field;t.setFieldValue([s,n],e.val)}),[e.value]),o=gn(c),(0,r.useEffect)((function(){t.setFormField([].concat(Jt(e.parentIndex),["fields"]),o)}),[]),c=o.map((function(t,o){return o=[].concat(Jt(e.parentIndex),["fields",o]),(0,r.createElement)(Nr,Nn({},l,{key:t.name,index:e.index,onChange:n},t,{parenttype:"group",parent:s,parentIndex:o}))})),i=y()("wprf-group-control-inner",{"wprf-display-inline":"inline"===(null==e?void 0:e.display)}),(0,r.createElement)("div",{className:"wprf-group-control"},(0,r.createElement)("div",{className:i},c));throw new Error((0,a.__)("You should give a #fields arguments to a group field.","betterdocs"))}));function Rr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fr=function(e){var t=bn(e,["is_license_active","is_pro","visible","trigger","copyOnClick","disable","parentIndex","context","badge","popup","enable_disable_text_active"]),n=(0,r.useCallback)((function(n){return t.onChange(n,{popup:null==e?void 0:e.popup,isPro:!!e.is_pro,isLicenseActive:!!e.is_license_active,originProps:e})}),[null==t?void 0:t.value]);"checkbox"===t.type&&null!=t&&t.name&&(t.checked=(null==t?void 0:t.checked)||(null==t?void 0:t.value));var i,a=Ln((0,r.useState)(!1),2),s=a[0],c=a[1];return(0,r.useEffect)((function(){var e;return s&&(e=setTimeout((function(){c(!1)}),2e3)),function(){return e&&clearTimeout(e)}}),[s]),!e.is_pro&&null!=e&&e.copyOnClick&&null!=e&&e.value?(a=(null==e?void 0:e.copyMessage)||"Click To Copy!",i=(null==e?void 0:e.copiedMessage)||"Copied!",(0,r.createElement)("span",{className:"wprf-clipboard-wrapper"},o().createElement("input",Br(Br({},t),{},{onChange:n})),(0,r.createElement)("span",{className:"wprf-clipboard-tooltip"},(0,r.createElement)("span",{className:"wprf-clipboard-tooltip-text"},s?i:a),(0,r.createElement)(vt.Button,{className:"wprf-copy-icon",onClick:function(){wt()(e.value,{format:"text/plain",onCopy:function(){c(!0)}})}},"Copy")))):o().createElement("input",Br(Br({},t),{},{onChange:n,disabled:(null==e?void 0:e.is_pro)||!1}))},Ur=o().memo(Fr),Hr=sr(o().memo(Fr)),Kr=sr(o().memo((function(e){bn(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick"]);var t=Ln((0,r.useState)(),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){null!=e&&e.value||o(null)}),[null==e?void 0:e.value]),(0,r.createElement)("span",{className:"wprf-json-uploader"},!n&&(0,r.createElement)("label",{className:"wprf-json-uploaderButton"},(0,r.createElement)("span",null,(0,a.__)("Upload")),(0,r.createElement)("input",{type:"file",accept:"application/JSON",onChange:function(t){var n;t.target.files.length&&(0==(null==(t=t.target.files[0])?void 0:t.size)?e.context.alerts.toast("error",(0,a.__)("File can't be empty.","betterdocs")):"application/json"!=(null==t?void 0:t.type)&&"text/json"!=(null==t?void 0:t.type)?e.context.alerts.toast("error",(0,a.__)("Invalid file type.","betterdocs")):(o(t),(n=new FileReader).onload=function(t){t=null==t||null==(t=t.target)?void 0:t.result,e.onChange({target:{type:"jsonuploader",name:e.name,value:t}})},n.readAsText(t)))}})),n&&(null==n?void 0:n.name)&&(0,r.createElement)("span",{className:"wpfr-json-file-name-wrapper"},(0,r.createElement)("span",{className:"wpfr-json-file-name"},20<(null==n?void 0:n.name.length)?"".concat(null==n?void 0:n.name.substr(0,9),"...").concat(null==n?void 0:n.name.substr((null==n?void 0:n.name.length)-7)):null==n?void 0:n.name),(0,r.createElement)("span",{className:"wprf-json-file-delete-button",onClick:function(){o(null),e.onChange({target:{type:"jsonuploader",name:e.name,value:null}})}},"x")))}))),Vr=sr((function(e){var t=Ln((0,r.useState)(null!=(t=e.value)&&t.url?e.value:null),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){e.onChange({target:{type:"media",name:e.name,value:n}})}),[n]),(0,r.createElement)("div",{className:"wprf-control wprf-media"},null!=n&&!(null!=e&&e.notImage)&&(0,r.createElement)("div",{className:"wprf-image-preview"},null!=n&&(null==n?void 0:n.url)&&(0,r.createElement)("img",{src:n.url,alt:n.title})),(0,r.createElement)("div",{className:"wprf-image-uploader ".concat(null==n||null!=e&&e.notImage?"":"uploaded")},(0,r.createElement)(Mt.MediaUpload,{onSelect:function(e){o({id:e.id,title:e.title,url:e.url})},multiple:!1,allowedTypes:["image"],value:n,render:function(t){return t=t.open,(0,r.createElement)(r.Fragment,null,null!=n?(0,r.createElement)("div",{className:"wprf_image_overlay"},(0,r.createElement)("button",{className:"wprf-btn wprf-image-change-btn",onClick:t},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("button",{className:"wprf-btn wprf-image-remove-btn",onClick:function(){return o(null)}},(null==e?void 0:e.remove)||(0,r.createElement)("i",{className:"btd-icon btd-delete"}))):(0,r.createElement)("button",{className:"wprf-btn wprf-image-upload-btn",onClick:t},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("span",{className:"title"},(0,a.__)("Click to upload","betterdocs")),(0,r.createElement)("span",{className:"info"},(0,a.__)("SVG, PNG, JPG or GIF (max.800x400px)","betterdocs"))))}})))})),qr=function(e){var t=function(e){if(null!=e&&e.messages)for(var t in e.messages)if(t=e.messages[t],jn(t.rules,e.context.values))return t;return{message:null==e?void 0:e.message,html:null==e?void 0:e.html,type:"normal"}}(e),n=t.html,o=t.message;return t=t.type,o?(0,r.createElement)("div",{className:y()("wprf-control","wprf-message","wprf-".concat(void 0===t?"warning":t,"-message"),"wprf-".concat(e.name,"-message"),null==e?void 0:e.classes)},n&&(0,r.createElement)("p",{dangerouslySetInnerHTML:{__html:o}}),!n&&(0,r.createElement)("p",null,o)):(0,r.createElement)(r.Fragment,null)},Yr=function(e){if(null==(null==e?void 0:e.body)||null==(null==e?void 0:e.button))throw new Error((0,a.__)("Modal needs button/body with it.","betterdocs"));function t(){return o(!1)}var n=(i=Ln((0,r.useState)(!1),2))[0],o=i[1],i=(i=Ln((0,r.useState)(!1),2))[0],s=(0,r.useCallback)((function(){}),[]);return(0,r.createElement)("div",{className:"wprf-control wprf-modal",id:"wprf-modal-".concat(e.name)},(0,r.createElement)(Nr,Nn({type:"button"},null==e?void 0:e.button,{onClick:function(){return o(!0)}})),n&&(0,r.createElement)(It(),{customClass:"wprf-modal-inner",style:{maxWidth:"900px",width:"100%",overflowY:"scroll",margin:"50px auto"},closeBtnStyle:{top:"5px",right:"5px",color:"#f78c8c",fontSize:"18px",border:"1px solid #f78c8c",borderRadius:"50%",width:"30px",height:"30px",display:"inline-flex",alignItems:"center",justifyContent:"center"},title:(0,r.createElement)(Cr,{content:null==e||null==(n=e.body)?void 0:n.header}),onConfirm:s,showConfirm:!1,showCloseButton:!0,closeOnClickOutside:!0,onCancel:t,afterUpdate:function(){var n;null!=e&&e.cancel&&null!=(n=e.context.values)&&n[e.cancel]&&t()}},(0,r.createElement)(Sr,Nn({},e,{isLoading:i,closeModal:t,context:e.context,onConfirm:s}))))},Wr=["label","value","icon","is_pro"];function Qr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}var Zr=function(e){var t,n,o,i=Bn(),s=Fn(e,"options"),c=s.options,l=s.option;if(c)return t=(0,kt.useInstanceId)(Zr),s=y()(["wprf-control","wprf-radio-card","wprf-input-radio-set-wrap",null==e?void 0:e.className]),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},null==e?void 0:e.style),o=bn(e,["options","placeholder","style","trigger"]),(0,r.useEffect)((function(){l&&e.onChange({target:{type:"radio-card",name:e.name,value:l}})}),[l]),(0,r.createElement)("div",{className:s},(0,r.createElement)(Gn,null,c.map((function(e,a){var s,c=e.label,u=e.value,p=e.icon,d=e.is_pro;return e=Pn(e,Wr),(0,r.createElement)($n,{column:+(null==e?void 0:e.column)||4,key:a},(0,r.createElement)("div",{className:y()("wprf-input-radio-option",{"wprf-option-has-image":null!=p&&p,"wprf-option-selected":u==l})},(0,r.createElement)(Jn,{className:y()(Zt({"wprf-label-has-image":null!=p&&p},"wprf-size-".concat(n.size),null!=(s=p&&(null==n?void 0:n.size))&&s)),htmlFor:"wprf-input-radio-".concat(t,"-").concat(a),src:p,badge:{label:d?"Pro":"Free",value:d,active:Boolean(i.is_pro_active)}},c),(0,r.createElement)(Ur,Nn({},e,o,{is_pro:d,type:"radio",value:u,checked:u===l,id:"wprf-input-radio-".concat(t,"-").concat(a)}))))}))));throw new Error((0,a.__)("#options is a required arguments for RadioCard field.","betterdocs"))},Gr=sr(Zr);function $r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xr=function(e){var t=e.name,n=e.button,o=e.fields,i=Bn(),a=Ln((0,r.useState)(null==(a=i.values)?void 0:a[t]),2),s=a[0],c=a[1],l=((0,r.useEffect)((function(){var e;null!=(null==(e=i.values)?void 0:e[t])&&c(null==(e=i.values)?void 0:e[t])}),[null==(a=i.values)?void 0:a[t]]),(0,r.useCallback)((function(e){var n=Jt(s);n.splice(e,1),i.setFieldValue(t,n)}),[s])),u=(0,r.useCallback)((function(e){var n=Jt(s);0<n.length&&(null!=(e=n=null!=(e=n=null!=(e=n=null!=(e=n=(null==n?void 0:n[e])||{})&&e.title?Jr(Jr({},n),{},{title:n.title+" - Copy"}):n)&&e.post_title?Jr(Jr({},n),{},{post_title:n.post_title+" - Copy"}):n)&&e.username?Jr(Jr({},n),{},{username:n.username+" - Copy"}):n)&&e.plugin_theme_name&&(n=Jr(Jr({},n),{},{plugin_theme_name:n.plugin_theme_name+" - Copy"})),n=Jr(Jr({},n),{},{index:Bt(),isCollapsed:!1}),i.setFieldValue([t,s.length],n))}),[s]);return(0,r.useEffect)((function(){c(null==s||""==s?[Jr({index:Bt()},dn(o))]:function(e){return e.map((function(e){return Jr(Jr({},e),{},{index:Bt()})}))})}),[]),(0,r.createElement)("div",{className:"wprf-repeater-control"},s&&0<(null==s?void 0:s.length)&&(0,r.createElement)(Tt.ReactSortable,{className:"wprf-repeater-content",list:s,setList:function(e){i.setFieldValue(t,e)},handle:".wprf-repeater-field-title",filter:".wprf-repeater-field-controls",forceFallback:!0},s.map((function(n,a){return(0,r.createElement)(br,{isCollapsed:null==n?void 0:n.isCollapsed,key:(null==n?void 0:n.index)||a,fields:o,index:a,parent:t,clone:u,remove:l,onChange:function(e){var n,r;n=a,e.persist&&e.persist(),r=(e=yn(e)).field,i.setFieldValue([t,n,r],e.val)},parentIndex:e.parentIndex})}))),(0,r.createElement)("div",{className:"wprf-repeater-label"},(0,r.createElement)("button",{className:"wprf-repeater-button",onClick:function(){return i.setFieldValue(t,[].concat(Jt(s),[Jr({index:Bt()},dn(o))]))}},null==n?void 0:n.label)))};function eo(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var no=function(e){var t=bn(e,["is_pro","visible","trigger","disable","parentIndex","context","badge","popup"]),n=(a=Ln((0,r.useState)(Object.keys(e.controls)[0]),2))[0],i=a[1],a=t.value;sn(t.value)||Object.keys(e.controls).reduce((function(e,n){return to(to({},e),{},Zt({},n,t.value))}),{});var s=(a=Ln((0,r.useState)(a),2))[0],c=a[1];return(0,r.useEffect)((function(){t.onChange({target:{type:"input",name:t.name,value:s,checked:null,multiple:null}})}),[s]),(0,r.createElement)("div",{style:{display:"flex",alignItems:"center",rowGap:5,columnGap:10,flexWrap:"wrap"}},o().createElement("input",to(to({},t),{},{type:"number",value:null==s?void 0:s[n],onChange:function(e){c(to(to({},s),{},Zt({},n,e.target.value)))}})),(0,r.createElement)("div",{style:{display:"flex",alignItems:"center"}},null==(a=Object.keys(e.controls))?void 0:a.map((function(t){return(0,r.createElement)("button",{type:"button",key:t,className:"responsive-button ".concat(n===t?"active":""),onClick:function(){return i(t)}},(0,r.createElement)("img",{src:e.controls[t].icon,alt:"desktop",style:{width:e.controls[t].size}}))}))))},ro=(no.defaultProps={type:"number"},sr(o().memo(no)));function oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var io=o().memo((function(e){function t(t){var n,r=e.fields.map((function(e){return e.id})),o=r.findIndex((function(t){return t===e.active}));"start"===t?(i.setFieldValue("isStartClicked",!0),n=r[o+1]):"next"===t||"skip"===t?n=r[o+1]:"prev"!==t||u||(n=r[o-1]),n&&e.setActive(n)}var n,i=Bn(),a=(n=Ln((0,r.useState)(void 0),2))[0],s=n[1],c=(n=Ln((0,r.useState)(void 0),2))[0],l=n[1],u=(n=Ln((0,r.useState)(!1),2))[0],p=n[1],d=null!=(n=i.getFieldValue("isStartClicked"))&&n;return(0,r.useEffect)((function(){var t=(-1!==(n=(t=e.fields.map((function(e){return e.id}))).findIndex((function(t){return t===e.active})))&&l(t[n-1]),n<=t.length&&s(t[n+1]),"setup-page"===t[n]),n="1"==(e=>{var t,n=function(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?oo(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(document.cookie.split("; "));try{for(n.s();!(t=n.n()).done;){var r=Ln(t.value.split("="),2);if("betterdocs_insights_allowed"===r[0])return decodeURIComponent(r[1])}}catch(e){n.e(e)}finally{n.f()}return null})("betterdocs_insights_allowed");p(t&&(d||n))}),[e.active,e.fields,d]),(0,r.useEffect)((function(){var e;i.setFieldValue("active_tab",null==i||null==(e=i.config)?void 0:e.active)}),[e.active]),(0,r.createElement)("div",{className:"wprf-stepped-button"},e.config.buttons&&Object.keys(e.config.buttons).map((function(n,i){return(0,r.createElement)(o().Fragment,{key:"button_".concat(n,"_").concat(i)},"skip"===n&&void 0!==a&&(0,r.createElement)(vt.Button,{className:"wprf-btn wprf-step-btn-".concat(n),onClick:function(){return t(n)}},null==(i=e.config.buttons)?void 0:i[n]),"start"===n&&void 0===c&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-next"},(0,r.createElement)(Lr,{type:"button",ajax:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.ajax,name:"step-button",onClick:function(){return t(n)},text:"object"===Qt(null==(i=e.config.buttons)?void 0:i[n])?(null==e?void 0:e.active)===(null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.condition)?null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.customName:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.name:null==(i=e.config.buttons)?void 0:i[n]})),("next"===n&&void 0!==a&&void 0!==c||"prev"===n&&void 0!==c)&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-".concat(n," ").concat("prev"===n&&u?"disabled":"")},(0,r.createElement)(Lr,{type:"button",ajax:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.ajax,name:"step-button",disabled:"prev"===n&&u,onClick:function(){return t(n)},text:"object"===Qt(null==(i=e.config.buttons)?void 0:i[n])?(null==e?void 0:e.active)===(null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.condition)?null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.customName:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.name:null==(i=e.config.buttons)?void 0:i[n]})),void 0===a&&(null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.type)&&(0,r.createElement)(Lr,null==(i=e.config.buttons)?void 0:i[n]))})))})),ao=function(e){e=Nn({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));var t=Bn(),n=(null==e?void 0:e.label)||(0,a.__)("Save Changes","betterdocs");return t.isSubmitting&&(n=null!=(e=null==e?void 0:e.loadingLabel)?e:"Saving..."),e=(0,r.useCallback)((function(e){var n;null!=(n=t.submit)&&n.onSubmit&&t.submit.onSubmit(e,t)}),[t]),(0,r.createElement)("div",{className:"wprf-submit wprf-control"},(0,r.createElement)(vt.Button,{disabled:null==t?void 0:t.isSubmitting,className:"wprf-submit-button",onClick:e},n))},so=o().memo((function(e){var t=void 0!==(t=e.searchable)&&t,n=e.searchNotFoundMessage,o=void 0===(o=e.searchPlaceholder)?"Search...":o,i=Bn(),a=(h=Ln((0,r.useState)(null!=(h=e.collapsed)&&h),2))[0],s=h[1],c=(h=Ln((0,r.useState)([]),2))[0],l=h[1],u=(h=Ln((0,r.useState)([]),2))[0],p=h[1],d=(h=Ln((0,r.useState)(""),2))[0],f=h[1],h=((0,r.useEffect)((function(){var t=gn(e.fields);i.setFormField([].concat(Jt(e.parentIndex),["fields"]),t),t=t.map((function(t,n){return n=[].concat(Jt(e.parentIndex),["fields",n]),(0,r.createElement)(Lr,Nn({key:t.name},t,{parentIndex:n}))})),l(t),p(t)}),[]),(0,r.useEffect)((function(){var e;d?(e=c.filter((function(e){return null==e||null==(e=e.props)||null==(e=e.label)||null==(e=e.toLowerCase())?void 0:e.includes(d.toLowerCase())})),p(e)):p(c)}),[d,c]),y()("wprf-control-section",null==e?void 0:e.classes,null==e?void 0:e.name,{"wprf-section-collapsed":(null==e?void 0:e.collapsible)&&a}));return(0,r.createElement)("div",{id:null==e?void 0:e.name,className:h},e.placeholder&&(0,r.createElement)("div",{className:"wprf-section-title"},(0,r.createElement)("h4",null,e.placeholder),e.collapsible&&(0,r.createElement)("button",{onClick:function(){return s(!a)}},"Icon")),t?(0,r.createElement)("div",{className:"wprf-section-fields"},(0,r.createElement)("div",{className:"wprf-section-search-form"},(0,r.createElement)("span",{className:"wprf-section-search"},(0,r.createElement)("input",{type:"text",name:"",id:"",placeholder:o,onChange:function(e){f(null==e||null==(e=e.target)?void 0:e.value)},value:d}))),(0,r.createElement)("div",{className:"wprf-section-search-results"},null!=u&&u.length?u:(0,r.createElement)("div",{className:"wprf-result-not-found",dangerouslySetInnerHTML:{__html:null!=n?n:"Not found!"}}))):(0,r.createElement)("div",{className:"wprf-section-fields"},u),e.showSubmit&&(0,r.createElement)(ao,i.submit),e.showSteps&&(0,r.createElement)(io,{fields:i.tabs,active:i.config.active,setActive:i.setActiveTab,config:null!=(h=i.config.step)?h:{show:!1}}))}));let co;function lo(e){return"string"!=typeof e||-1===e.indexOf("&")||((co=void 0===co?(document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document).createElement("textarea"):co).innerHTML=e,e=co.textContent,co.innerHTML=""),e}var uo="top",po="bottom",fo="right",ho="left",mo="auto",go=[uo,po,fo,ho],yo="start",vo="end",bo="viewport",wo="popper",Eo=go.reduce((function(e,t){return e.concat([t+"-"+yo,t+"-"+vo])}),[]),_o=[].concat(go,[mo]).reduce((function(e,t){return e.concat([t,t+"-"+yo,t+"-"+vo])}),[]),So=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Co(e){return e?(e.nodeName||"").toLowerCase():null}function xo(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function Oo(e){return e instanceof xo(e).Element||e instanceof Element}function ko(e){return e instanceof xo(e).HTMLElement||e instanceof HTMLElement}function Mo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xo(e).ShadowRoot||e instanceof ShadowRoot)}var jo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];ko(o)&&Co(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{};e=Object.keys((t.styles.hasOwnProperty(e)?t.styles:n)[e]).reduce((function(e,t){return e[t]="",e}),{}),ko(r)&&Co(r)&&(Object.assign(r.style,e),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Do(e){return e.split("-")[0]}var Io=Math.max,To=Math.min,Ao=Math.round;function No(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Lo(){return!/^((?!chrome|android).)*safari/i.test(No())}function Po(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;return t&&ko(e)&&(o=0<e.offsetWidth&&Ao(r.width)/e.offsetWidth||1,i=0<e.offsetHeight&&Ao(r.height)/e.offsetHeight||1),t=(Oo(e)?xo(e):window).visualViewport,e=!Lo()&&n,n=(r.left+(e&&t?t.offsetLeft:0))/o,e=(r.top+(e&&t?t.offsetTop:0))/i,{width:t=r.width/o,height:o=r.height/i,top:e,right:n+t,bottom:e+o,left:n,x:n,y:e}}function zo(e){var t=Po(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ro(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0}while(r=r.parentNode||r.host)}return!1}function Bo(e){return xo(e).getComputedStyle(e)}function Fo(e){return 0<=["table","td","th"].indexOf(Co(e))}function Uo(e){return((Oo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ho(e){return"html"===Co(e)?e:e.assignedSlot||e.parentNode||(Mo(e)?e.host:null)||Uo(e)}function Ko(e){return ko(e)&&"fixed"!==Bo(e).position?e.offsetParent:null}function Vo(e){for(var t=xo(e),n=Ko(e);n&&Fo(n)&&"static"===Bo(n).position;)n=Ko(n);return(!n||"html"!==Co(n)&&("body"!==Co(n)||"static"!==Bo(n).position))&&(n||function(e){var t=/firefox/i.test(No());if(/Trident/i.test(No())&&ko(e)&&"fixed"===Bo(e).position)return null;var n=Ho(e);for(Mo(n)&&(n=n.host);ko(n)&&["html","body"].indexOf(Co(n))<0;){var r=Bo(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e))||t}function qo(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function Yo(e,t,n){return Io(e,To(t,n))}function Wo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Qo(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Zo={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,i=e.state,a=e.name,s=(e=e.options,i.elements.arrow),c=i.modifiersData.popperOffsets,l=qo(u=Do(i.placement)),u=0<=[ho,fo].indexOf(u)?"height":"width";s&&c&&(e=function(e,t){return Wo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Qo(e,go))}(e.padding,i),t=zo(s),o="y"===l?uo:ho,r="y"===l?po:fo,n=i.rects.reference[u]+i.rects.reference[l]-c[l]-i.rects.popper[u],c=c[l]-i.rects.reference[l],s=(s=Vo(s))?"y"===l?s.clientHeight||0:s.clientWidth||0:0,o=e[o],e=s-t[u]-e[r],o=Yo(o,r=s/2-t[u]/2+(n/2-c/2),e),i.modifiersData[a]=((s={})[l]=o,s.centerOffset=o-r,s))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Ro(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Go(e){return e.split("-")[1]}var $o={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jo(e){var t,n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,d=(e=e.isFixed,void 0===(d=s.x)?0:d),f=void 0===(f=s.y)?0:f,h=(d=(h="function"==typeof p?p({x:d,y:f}):{x:d,y:f}).x,f=h.y,s.hasOwnProperty("x")),m=(s=s.hasOwnProperty("y"),ho),g=uo,y=window,v=(u&&(v="clientHeight",n="clientWidth",(t=Vo(r))===xo(r)&&"static"!==Bo(t=Uo(r)).position&&"absolute"===c&&(v="scrollHeight",n="scrollWidth"),i!==uo&&(i!==ho&&i!==fo||a!==vo)||(g=po,f=(f-((e&&t===y&&y.visualViewport?y.visualViewport.height:t[v])-o.height))*(l?1:-1)),i!==ho&&(i!==uo&&i!==po||a!==vo)||(m=fo,d=(d-((e&&t===y&&y.visualViewport?y.visualViewport.width:t[n])-o.width))*(l?1:-1))),Object.assign({position:c},u&&$o));return i=!0===p?function(e,t){var n=e.x;return e=e.y,t=t.devicePixelRatio||1,{x:Ao(n*t)/t||0,y:Ao(e*t)/t||0}}({x:d,y:f},xo(r)):{x:d,y:f},d=i.x,f=i.y,l?Object.assign({},v,((a={})[g]=s?"0":"",a[m]=h?"0":"",a.transform=(y.devicePixelRatio||1)<=1?"translate("+d+"px, "+f+"px)":"translate3d("+d+"px, "+f+"px, 0)",a)):Object.assign({},v,((e={})[g]=s?f+"px":"",e[m]=h?d+"px":"",e.transform="",e))}var Xo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=void 0===(n=(e=e.options).gpuAcceleration)||n,r=void 0===(r=e.adaptive)||r;e=void 0===(e=e.roundOffsets)||e,n={placement:Do(t.placement),variation:Go(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Jo(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jo(Object.assign({},n,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ei={passive:!0},ti={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t,n=e.state,r=e.instance,o=void 0===(t=(e=e.options).scroll)||t,i=void 0===(t=e.resize)||t,a=xo(n.elements.popper),s=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&s.forEach((function(e){e.addEventListener("scroll",r.update,ei)})),i&&a.addEventListener("resize",r.update,ei),function(){o&&s.forEach((function(e){e.removeEventListener("scroll",r.update,ei)})),i&&a.removeEventListener("resize",r.update,ei)}},data:{}},ni={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(e){return e.replace(/left|right|bottom|top/g,(function(e){return ni[e]}))}var oi={start:"end",end:"start"};function ii(e){return e.replace(/start|end/g,(function(e){return oi[e]}))}function ai(e){return{scrollLeft:(e=xo(e)).pageXOffset,scrollTop:e.pageYOffset}}function si(e){return Po(Uo(e)).left+ai(e).scrollLeft}function ci(e){var t=(e=Bo(e)).overflow;return/auto|scroll|overlay|hidden/.test(t+e.overflowY+e.overflowX)}function li(e){return 0<=["html","body","#document"].indexOf(Co(e))?e.ownerDocument.body:ko(e)&&ci(e)?e:li(Ho(e))}function ui(e,t){void 0===t&&(t=[]),e=(r=li(e))===(null==(e=e.ownerDocument)?void 0:e.body);var n=xo(r),r=(n=e?[n].concat(n.visualViewport||[],ci(r)?r:[]):r,t.concat(n));return e?r:r.concat(ui(Ho(n)))}function pi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function di(e,t,n){return t===bo?pi(function(e,t){var n,r=xo(e),o=Uo(e),i=(r=r.visualViewport,o.clientWidth),a=(o=o.clientHeight,0),s=0;return r&&(i=r.width,o=r.height,(n=Lo())||!n&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop),{width:i,height:o,x:a+si(e),y:s}}(e,n)):Oo(t)?function(e,t){return(t=Po(e,!1,"fixed"===t)).top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t,n):pi(function(e){var t=Uo(e),n=ai(e),r=null==(r=e.ownerDocument)?void 0:r.body,o=Io(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Io(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);return e=-n.scrollLeft+si(e),n=-n.scrollTop,"rtl"===Bo(r||t).direction&&(e+=Io(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:e,y:n}}(Uo(e)))}function fi(e){var t,n=e.reference,r=e.element,o=(e=e.placement)?Do(e):null,i=(e=e?Go(e):null,n.x+n.width/2-r.width/2),a=n.y+n.height/2-r.height/2;switch(o){case uo:t={x:i,y:n.y-r.height};break;case po:t={x:i,y:n.y+n.height};break;case fo:t={x:n.x+n.width,y:a};break;case ho:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=o?qo(o):null;if(null!=s){var c="y"===s?"height":"width";switch(e){case yo:t[s]=t[s]-(n[c]/2-r[c]/2);break;case vo:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function hi(e,t){var n,r=void 0===(r=(t=t=void 0===t?{}:t).placement)?e.placement:r,o=void 0===(o=t.strategy)?e.strategy:o,i=void 0===(i=t.boundary)?"clippingParents":i,a=void 0===(a=t.rootBoundary)?bo:a,s=void 0===(s=t.elementContext)?wo:s,c=void 0!==(c=t.altBoundary)&&c,l=(t=Wo("number"!=typeof(t=void 0===(t=t.padding)?0:t)?t:Qo(t,go)),e.rects.popper),u=(c=function(e,t,n,r){return t="clippingParents"===t?function(e){var t=ui(Ho(e)),n=0<=["absolute","fixed"].indexOf(Bo(e).position)&&ko(e)?Vo(e):e;return Oo(n)?t.filter((function(e){return Oo(e)&&Ro(e,n)&&"body"!==Co(e)})):[]}(e):[].concat(t),n=(t=[].concat(t,[n]))[0],t=t.reduce((function(t,n){return n=di(e,n,r),t.top=Io(n.top,t.top),t.right=To(n.right,t.right),t.bottom=To(n.bottom,t.bottom),t.left=Io(n.left,t.left),t}),di(e,n,r)),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}(Oo(c=e.elements[c?s===wo?"reference":wo:s])?c:c.contextElement||Uo(e.elements.popper),i,a,o),a=fi({reference:i=Po(e.elements.reference),element:l,strategy:"absolute",placement:r}),o=pi(Object.assign({},l,a)),l=s===wo?o:i,{top:c.top-l.top+t.top,bottom:l.bottom-c.bottom+t.bottom,left:c.left-l.left+t.left,right:l.right-c.right+t.right});return a=e.modifiersData.offset,s===wo&&a&&(n=a[r],Object.keys(u).forEach((function(e){var t=0<=[fo,po].indexOf(e)?1:-1,r=0<=[uo,po].indexOf(e)?"y":"x";u[e]+=n[r]*t}))),u}var mi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){for(var r,o=void 0===(a=n.mainAxis)||a,i=void 0===(a=n.altAxis)||a,a=n.fallbackPlacements,s=n.padding,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,p=void 0===(r=n.flipVariations)||r,d=n.allowedAutoPlacements,f=(n=Do(r=t.options.placement),a=a||(n!==r&&p?function(e){var t;return Do(e)===mo?[]:(t=ri(e),[ii(e),t,ii(t)])}(r):[ri(r)]),[r].concat(a).reduce((function(e,n){return e.concat(Do(n)===mo?function(e,t){var n=(t=t=void 0===t?{}:t).placement,r=t.boundary,o=t.rootBoundary,i=t.padding,a=t.flipVariations,s=void 0===(t=t.allowedAutoPlacements)?_o:t,c=Go(n),l=(n=0===(n=(t=c?a?Eo:Eo.filter((function(e){return Go(e)===c})):go).filter((function(e){return 0<=s.indexOf(e)}))).length?t:n).reduce((function(t,n){return t[n]=hi(e,{placement:n,boundary:r,rootBoundary:o,padding:i})[Do(n)],t}),{});return Object.keys(l).sort((function(e,t){return l[e]-l[t]}))}(t,{placement:n,boundary:c,rootBoundary:l,padding:s,flipVariations:p,allowedAutoPlacements:d}):n)}),[])),h=t.rects.reference,m=t.rects.popper,g=new Map,y=!0,v=f[0],b=0;b<f.length;b++){var w=f[b],E=Do(w),_=Go(w)===yo,S=(x=0<=[uo,po].indexOf(E))?"width":"height",C=hi(t,{placement:w,boundary:c,rootBoundary:l,altBoundary:u,padding:s}),x=x?_?fo:ho:_?po:uo;if(h[S]>m[S]&&(x=ri(x)),_=ri(x),S=[],o&&S.push(C[E]<=0),i&&S.push(C[x]<=0,C[_]<=0),S.every((function(e){return e}))){v=w,y=!1;break}g.set(w,S)}if(y)for(var O=p?3:1;0<O&&"break"!==(e=>{var t=f.find((function(t){if(t=g.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return v=t,"break"})(O);O--);t.placement!==v&&(t.modifiersData[e]._skip=!0,t.placement=v,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gi(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yi(e){return[uo,fo,po,ho].some((function(t){return 0<=e[t]}))}var vi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=(e=e.name,t.rects.reference),r=t.rects.popper,o=t.modifiersData.preventOverflow,i=hi(t,{elementContext:"reference"}),a=hi(t,{altBoundary:!0});i=gi(i,n),n=gi(a,r,o),a=yi(i),r=yi(n),t.modifiersData[e]={referenceClippingOffsets:i,popperEscapeOffsets:n,isReferenceHidden:a,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":r})}},bi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=void 0===(e=e.options.offset)?[0,0]:e,o=(e=_o.reduce((function(e,n){return e[n]=function(e,t,n){var r=Do(e),o=0<=[ho,uo].indexOf(r)?-1:1;return e=(t="function"==typeof n?n(Object.assign({},t,{placement:e})):n)[0]||0,n=(t[1]||0)*o,0<=[ho,fo].indexOf(r)?{x:n,y:e}:{x:e,y:n}}(n,t.rects,r),e}),{}),(i=e[t.placement]).x),i=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=i),t.modifiersData[n]=e}},wi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=fi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Ei={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,i,a,s,c,l,u=e.state,p=e.options,d=(e=e.name,void 0===(d=p.mainAxis)||d),f=void 0!==(f=p.altAxis)&&f,h=void 0===(h=p.tether)||h,m=void 0===(m=p.tetherOffset)?0:m,g=(p=hi(u,{boundary:p.boundary,rootBoundary:p.rootBoundary,padding:p.padding,altBoundary:p.altBoundary}),Do(u.placement)),y=Go(u.placement),v=!y,b=qo(g),w=function(e){return"x"===e?"y":"x"}(b),E=u.modifiersData.popperOffsets,_=u.rects.reference,S=u.rects.popper,C=(m="number"==typeof(m="function"==typeof m?m(Object.assign({},u.rects,{placement:u.placement})):m)?{mainAxis:m,altAxis:m}:Object.assign({mainAxis:0,altAxis:0},m),u.modifiersData.offset?u.modifiersData.offset[u.placement]:null),x={x:0,y:0};E&&(d&&(d="y"===b?"height":"width",c=(t=E[b])+p[o="y"===b?uo:ho],l=t-p[n="y"===b?po:fo],r=h?-S[d]/2:0,a=(y===yo?_:S)[d],y=y===yo?-S[d]:-_[d],s=u.elements.arrow,s=h&&s?zo(s):{width:0,height:0},o=(i=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[o],i=i[n],n=Yo(0,_[d],s[d]),s=v?_[d]/2-r-n-o-m.mainAxis:a-n-o-m.mainAxis,a=v?-_[d]/2+r+n+i+m.mainAxis:y+n+i+m.mainAxis,v=(o=u.elements.arrow&&Vo(u.elements.arrow))?"y"===b?o.clientTop||0:o.clientLeft||0:0,y=t+a-(r=null!=(d=null==C?void 0:C[b])?d:0),n=Yo(h?To(c,t+s-r-v):c,t,h?Io(l,y):l),E[b]=n,x[b]=n-t),f&&(i="y"===w?"height":"width",a=(o=E[w])+p["x"===b?uo:ho],d=o-p["x"===b?po:fo],s=-1!==[uo,ho].indexOf(g),v=null!=(r=null==C?void 0:C[w])?r:0,c=s?a:o-_[i]-S[i]-v+m.altAxis,y=s?o+_[i]+S[i]-v-m.altAxis:d,l=h&&s?function(e,t,n){return n<(e=Yo(e,t,n))?n:e}(c,o,y):Yo(h?c:a,o,h?y:d),E[w]=l,x[w]=l-o),u.modifiersData[e]=x)},requiresIfExists:["offset"]};function _i(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Si(e,t,n){void 0===n&&(n=!1);var r=ko(t),o=ko(t)&&function(e){var t=e.getBoundingClientRect(),n=Ao(t.width)/e.offsetWidth||1;return t=Ao(t.height)/e.offsetHeight||1,1!==n||1!==t}(t),i=Uo(t),a=(e=Po(e,o,n),o={scrollLeft:0,scrollTop:0},{x:0,y:0});return!r&&n||("body"===Co(t)&&!ci(i)||(o=function(e){return(e!==xo(e)&&ko(e)?_i:ai)(e)}(t)),ko(t)?((a=Po(t,!0)).x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=si(i))),{x:e.left+o.scrollLeft-a.x,y:e.top+o.scrollTop-a.y,width:e.width,height:e.height}}function Ci(e){var t;return function(){return t=t||new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))}}var xi={placement:"bottom",modifiers:[],strategy:"absolute"};function Oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var ki=function(e){var t,n=void 0===(t=(e=e=void 0===e?{}:e).defaultModifiers)?[]:t,r=void 0===(t=e.defaultOptions)?xi:t;return function(e,t,o){void 0===o&&(o=r);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},xi,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(o){return o="function"==typeof o?o(i.options):o,l(),i.options=Object.assign({},r,i.options,o),i.scrollParents={reference:Oo(e)?ui(e):e.contextElement?ui(e.contextElement):[],popper:ui(t)},o=function(e){var t=function(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){n.has(r)||(r=t.get(r))&&e(r)})),r.push(o)}(e)})),r}(e);return So.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,i.options.modifiers))),i.orderedModifiers=o.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options;"function"==typeof(e=e.effect)&&(e=e({state:i,name:t,instance:c,options:void 0===n?{}:n}),a.push(e||function(){}))})),c.update()},forceUpdate:function(){if(!s){var e,t=(e=i.elements).reference;if(Oi(t,e=e.popper)){i.rects={reference:Si(t,Vo(e),"fixed"===i.options.strategy),popper:zo(e)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var n,r,o,a=0;a<i.orderedModifiers.length;a++)!0===i.reset?(i.reset=!1,a=-1):(r=(n=i.orderedModifiers[a]).fn,o=n.options,"function"==typeof r&&(i=r({state:i,options:void 0===o?{}:o,name:n.name,instance:c})||i))}}},update:Ci((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){l(),s=!0}};return Oi(e,t)&&c.setOptions(o).then((function(e){!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),c;function l(){a.forEach((function(e){return e()})),a=[]}}}({defaultModifiers:[ti,wi,Xo,jo,bi,mi,Ei,Zo,vi]}),Mi="tippy-content",ji="tippy-arrow",Di="tippy-svg-arrow",Ii={passive:!0,capture:!0},Ti=function(){return document.body};function Ai(e,t,n){var r;return Array.isArray(e)?null==(r=e[t])?Array.isArray(n)?n[t]:n:r:e}function Ni(e,t){return 0===(e={}.toString.call(e)).indexOf("[object")&&-1<e.indexOf(t+"]")}function Li(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Pi(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)}}function zi(e){return[].concat(e)}function Ri(e,t){-1===e.indexOf(t)&&e.push(t)}function Bi(e){return[].slice.call(e)}function Fi(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ui(){return document.createElement("div")}function Hi(e){return["Element","Fragment"].some((function(t){return Ni(e,t)}))}function Ki(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Vi(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function qi(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Yi(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var Wi={isTouch:!1},Qi=0;function Zi(){Wi.isTouch||(Wi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Gi))}function Gi(){var e=performance.now();e-Qi<20&&(Wi.isTouch=!1,document.removeEventListener("mousemove",Gi)),Qi=e}function $i(){var e,t=document.activeElement;(function(e){return!(!e||!e._tippy||e._tippy.reference!==e)})(t)&&(e=t._tippy,t.blur)&&!e.state.isVisible&&t.blur()}var Ji,Xi=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto);function ea(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function ta(e){return ea("\n %ctippy.js\n\n %c"+ea(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function na(e,t){e&&!Ji.has(t)&&(Ji.add(t),(e=console).warn.apply(e,function(e){return[ta(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}(t)))}var ra=Object.assign({appendTo:Ti,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),oa=Object.keys(ra);function ia(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(r=ra[r])?r:n.defaultValue),t}),{});return Object.assign({},e,t)}function aa(e,t){return e=Object.assign({},t,{content:Li(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ia(Object.assign({},ra,{plugins:t}))):oa).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(r)if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins)),e.aria=Object.assign({},ra.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function sa(e,t){e.innerHTML=t}function ca(e){var t=Ui();return!0===e?t.className=ji:(t.className=Di,Hi(e)?t.appendChild(e):sa(t,e)),t}function la(e,t){Hi(t.content)?(sa(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?sa(e,t.content):e.textContent=t.content)}function ua(e){var t=Bi((e=e.firstElementChild).children);return{box:e,content:t.find((function(e){return e.classList.contains(Mi)})),arrow:t.find((function(e){return e.classList.contains(ji)||e.classList.contains(Di)})),backdrop:t.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function pa(e){var t=Ui(),n=Ui(),r=(n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1"),Ui());function o(n,r){var o=(a=ua(t)).box,i=a.content,a=a.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||la(i,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(ca(r.arrow))):o.appendChild(ca(r.arrow)):a&&o.removeChild(a)}return r.className=Mi,r.setAttribute("data-state","hidden"),la(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}pa.$$tippy=!0;var da=1,fa=[],ha=[];function ma(e,t){var n=ra.plugins.concat((t=void 0===t?{}:t).plugins||[]),r=(document.addEventListener("touchstart",Zi,Ii),window.addEventListener("blur",$i),Object.assign({},t,{plugins:n}));return n=(t=function(e){return Hi(e)?[e]:function(e){return Ni(e,"NodeList")}(e)?Bi(e):Array.isArray(e)?e:Bi(document.querySelectorAll(e))}(e)).reduce((function(e,t){return(t=t&&function(e,t){var n,r,o,i,a,s,c,l,u,p,d,f=aa(e,Object.assign({},ra,ia(Fi(t)))),h=!1,m=!1,g=!1,y=!1,v=[],b=Pi(V,f.interactiveDebounce),w=(t=da++,function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}(f.plugins)),E={id:t,reference:e,popper:Ui(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){var n,r;E.state.isDestroyed||(D("onBeforeUpdate",[E,t]),H(),n=E.props,r=aa(e,Object.assign({},n,Fi(t),{ignoreAttributes:!0})),E.props=r,U(),n.interactiveDebounce!==r.interactiveDebounce&&(A(),b=Pi(V,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?zi(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),T(),j(),u&&u(n,r),E.popperInstance&&(Q(),G().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[E,t]))},setContent:function(e){E.setProps({content:e})},show:function(){var e=E.state.isVisible,t=E.state.isDestroyed,n=!E.state.isEnabled,r=Wi.isTouch&&!E.props.touch,o=Ai(E.props.duration,0,ra.duration);e||t||n||r||x().hasAttribute("disabled")||(D("onShow",[E],!1),!1!==E.props.onShow(E)&&(E.state.isVisible=!0,C()&&(l.style.visibility="visible"),j(),z(),E.state.isMounted||(l.style.transition="none"),C()&&Ki([(e=k()).box,e.content],0),s=function(){var e,t;E.state.isVisible&&!y&&(y=!0,l.offsetHeight,l.style.transition=E.props.moveTransition,C()&&E.props.animation&&(Ki([e=(t=k()).box,t=t.content],o),Vi([e,t],"visible")),I(),T(),Ri(ha,E),null!=(e=E.popperInstance)&&e.forceUpdate(),D("onMount",[E]),E.props.animation)&&C()&&B(o,(function(){E.state.isShown=!0,D("onShown",[E])}))},t=E.props.appendTo,n=x(),(r=E.props.interactive&&t===Ti||"parent"===t?n.parentNode:Li(t,[n])).contains(l)||r.appendChild(l),E.state.isMounted=!0,Q(),0)&&na(E.props.interactive&&t===ra.appendTo&&n.nextElementSibling!==l,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" ")))},hide:function(){var e,t=!E.state.isVisible,n=E.state.isDestroyed,r=!E.state.isEnabled,o=Ai(E.props.duration,1,ra.duration);t||n||r||(D("onHide",[E],!1),!1!==E.props.onHide(E)&&(E.state.isVisible=!1,E.state.isShown=!1,h=y=!1,C()&&(l.style.visibility="hidden"),A(),R(),j(!0),C()&&(n=(t=k()).box,r=t.content,E.props.animation)&&(Ki([n,r],o),Vi([n,r],"hidden")),I(),T(),E.props.animation?C()&&(e=E.unmount,B(o,(function(){!E.state.isVisible&&l.parentNode&&l.parentNode.contains(l)&&e()}))):E.unmount()))},hideWithInteractivity:function(e){O().addEventListener("mousemove",b),Ri(fa,b),b(e)},enable:function(){E.state.isEnabled=!0},disable:function(){E.hide(),E.state.isEnabled=!1},unmount:function(){E.state.isVisible&&E.hide(),E.state.isMounted&&(Z(),G().forEach((function(e){e._tippy.unmount()})),l.parentNode&&l.parentNode.removeChild(l),ha=ha.filter((function(e){return e!==E})),E.state.isMounted=!1,D("onHidden",[E]))},destroy:function(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),H(),delete e._tippy,E.state.isDestroyed=!0,D("onDestroy",[E]))}};return!!f.render&&(t=f.render(E),l=t.popper,u=t.onUpdate,l.setAttribute("data-tippy-root",""),l.id="tippy-"+E.id,E.popper=l,e._tippy=E,l._tippy=E,p=w.map((function(e){return e.fn(E)})),d=e.hasAttribute("aria-expanded"),U(),T(),j(),D("onCreate",[E]),f.showOnCreate&&$(),l.addEventListener("mouseenter",(function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()})),l.addEventListener("mouseleave",(function(){E.props.interactive&&0<=E.props.trigger.indexOf("mouseenter")&&O().addEventListener("mousemove",b)}))),E;function _(){var e=E.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===_()[0]}function C(){var e;return null!=(e=E.props.render)&&e.$$tippy}function x(){return c||e}function O(){var e=x().parentNode;return e?function(e){var t;return null!=(e=zi(e)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}(e):document}function k(){return ua(l)}function M(e){return E.state.isMounted&&!E.state.isVisible||Wi.isTouch||i&&"focus"===i.type?0:Ai(E.props.delay,e?0:1,ra.delay)}function j(e){void 0===e&&(e=!1),l.style.pointerEvents=E.props.interactive&&!e?"":"none",l.style.zIndex=""+E.props.zIndex}function D(e,t,n){void 0===n&&(n=!0),p.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(n=E.props)[e].apply(n,t)}function I(){var t,n,r=E.props.aria;r.content&&(t="aria-"+r.content,n=l.id,zi(E.props.triggerTarget||e).forEach((function(e){var r=e.getAttribute(t);E.state.isVisible?e.setAttribute(t,r?r+" "+n:n):(r=r&&r.replace(n,"").trim())?e.setAttribute(t,r):e.removeAttribute(t)})))}function T(){!d&&E.props.aria.expanded&&zi(E.props.triggerTarget||e).forEach((function(e){E.props.interactive?e.setAttribute("aria-expanded",E.state.isVisible&&e===x()?"true":"false"):e.removeAttribute("aria-expanded")}))}function A(){O().removeEventListener("mousemove",b),fa=fa.filter((function(e){return e!==b}))}function N(t){if(!Wi.isTouch||!g&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!E.props.interactive||!Yi(l,n)){if(zi(E.props.triggerTarget||e).some((function(e){return Yi(e,n)}))){if(Wi.isTouch)return;if(E.state.isVisible&&0<=E.props.trigger.indexOf("click"))return}else D("onClickOutside",[E,t]);!0===E.props.hideOnClick&&(E.clearDelayTimeouts(),E.hide(),m=!0,setTimeout((function(){m=!1})),E.state.isMounted||R())}}}function L(){g=!0}function P(){g=!1}function z(){var e=O();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Ii),e.addEventListener("touchstart",P,Ii),e.addEventListener("touchmove",L,Ii)}function R(){var e=O();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Ii),e.removeEventListener("touchstart",P,Ii),e.removeEventListener("touchmove",L,Ii)}function B(e,t){var n=k().box;function r(e){e.target===n&&(qi(n,"remove",r),t())}if(0===e)return t();qi(n,"remove",a),qi(n,"add",r),a=r}function F(t,n,r){void 0===r&&(r=!1),zi(E.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function U(){S()&&(F("touchstart",K,{passive:!0}),F("touchend",q,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(E.props.trigger).forEach((function(e){if("manual"!==e)switch(F(e,K),e){case"mouseenter":F("mouseleave",q);break;case"focus":F(Xi?"focusout":"blur",Y);break;case"focusin":F("focusout",Y)}}))}function H(){v.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),v=[]}function K(e){var t,n=!1;!E.state.isEnabled||W(e)||m||(t="focus"===(null==i?void 0:i.type),c=(i=e).currentTarget,T(),!E.state.isVisible&&function(e){return Ni(e,"MouseEvent")}(e)&&fa.forEach((function(t){return t(e)})),"click"===e.type&&(E.props.trigger.indexOf("mouseenter")<0||h)&&!1!==E.props.hideOnClick&&E.state.isVisible?n=!0:$(e),"click"===e.type&&(h=!n),n&&!t&&J(e))}function V(e){var t=e.target;t=x().contains(t)||l.contains(t),"mousemove"===e.type&&t||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t,o,i,a=e.popperRect,s=e.popperState,c=(e=e.props.interactiveBorder,function(e){return e.split("-")[0]}(s.placement));return!(s=s.modifiersData.offset)||(t="bottom"===c?s.top.y:0,o="top"===c?s.bottom.y:0,i="right"===c?s.left.x:0,c="left"===c?s.right.x:0,s=a.top-r+t>e,t=r-a.bottom-o>e,o=a.left-n+i>e,i=n-a.right-c>e,s)||t||o||i}))}(G().concat(l).map((function(e){var t=null==(t=e._tippy.popperInstance)?void 0:t.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:f}:null})).filter(Boolean),e)&&(A(),J(e))}function q(e){W(e)||0<=E.props.trigger.indexOf("click")&&h||(E.props.interactive?E.hideWithInteractivity(e):J(e))}function Y(e){E.props.trigger.indexOf("focusin")<0&&e.target!==x()||E.props.interactive&&e.relatedTarget&&l.contains(e.relatedTarget)||J(e)}function W(e){return!!Wi.isTouch&&S()!==0<=e.type.indexOf("touch")}function Q(){Z();var t=(i=E.props).popperOptions,n=i.placement,r=i.offset,o=i.getReferenceClientRect,i=i.moveTransition,a=C()?ua(l).arrow:null;o=o?{getBoundingClientRect:o,contextElement:o.contextElement||x()}:e,r=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state;C()&&(t=k().box,["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?t.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+e]?t.setAttribute("data-"+e,""):t.removeAttribute("data-"+e)})),n.attributes.popper={})}}],C()&&a&&r.push({name:"arrow",options:{element:a,padding:3}}),r.push.apply(r,(null==t?void 0:t.modifiers)||[]),E.popperInstance=ki(o,l,Object.assign({},t,{placement:n,onFirstUpdate:s,modifiers:r}))}function Z(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function G(){return Bi(l.querySelectorAll("[data-tippy-root]"))}function $(e){E.clearDelayTimeouts(),e&&D("onTrigger",[E,e]),z(),e=M(!0);var t=(r=_())[0],r=r[1];(e=Wi.isTouch&&"hold"===t&&r?r:e)?n=setTimeout((function(){E.show()}),e):E.show()}function J(e){E.clearDelayTimeouts(),D("onUntrigger",[E,e]),E.state.isVisible?0<=E.props.trigger.indexOf("mouseenter")&&0<=E.props.trigger.indexOf("click")&&0<=["mouseleave","mousemove"].indexOf(e.type)&&h||((e=M(!1))?r=setTimeout((function(){E.state.isVisible&&E.hide()}),e):o=requestAnimationFrame((function(){E.hide()}))):R()}}(t,r))&&e.push(t),e}),[]),Hi(e)?n[0]:n}function ga(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}ma.defaultProps=ra,ma.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ra[t]=e[t]}))},ma.currentInput=Wi,Object.assign({},jo,{effect:function(e){var t={popper:{position:(e=e.state).options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow)}}),ma.setDefaultProps({render:pa});var ya="undefined"!=typeof window&&"undefined"!=typeof document;function va(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current"))&&(e.current=t)}function ba(){return ya&&document.createElement("div")}function wa(e,t){if(e!==t){if("object"!=typeof e||null==e||"object"!=typeof t||null==t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!wa(e[n],t[n]))return!1}}return!0}function Ea(e){var t=[];return e.forEach((function(e){t.find((function(t){return wa(e,t)}))||t.push(e)})),t}var _a=ya?r.useLayoutEffect:r.useEffect;function Sa(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Ca,xa,Oa={name:"className",defaultValue:"",fn:function(e){function t(){var t;return!(null==(t=e.props.render)||!t.$$tippy)}var n=e.popper.firstElementChild;function r(){(!e.props.className||t())&&Sa(n,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){t()&&Sa(n,"remove",e.props.className)},onAfterUpdate:r}}},ka=(xa=ma,Ca=function(e){var t=e.children,n=e.content,i=e.visible,a=e.singleton,s=e.render,c=e.reference,l=void 0!==(u=e.disabled)&&u,u=void 0===(u=e.ignoreAttributes)||u,p=(e=ga(e,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),void 0!==i),d=void 0!==a,f=(_=(0,r.useState)(!1))[0],h=_[1],m=(_=(0,r.useState)({}))[0],g=_[1],y=(_=(0,r.useState)())[0],v=_[1],b=function(e){var t=(0,r.useRef)();return t.current||(t.current=e()),t.current}((function(){return{container:ba(),renders:1}})),w=Object.assign({ignoreAttributes:u},e,{content:b.container}),E=(p&&(w.trigger="manual",w.hideOnClick=!1),d&&(l=!0),w),_=w.plugins||[];return s&&(E=Object.assign({},w,{plugins:d&&null!=a.data?[].concat(_,[{fn:function(){return{onTrigger:function(e,t){var n=a.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,v(n.content)}}}}]):_,render:function(){return{popper:b.container}}})),u=[c].concat(t?[t.type]:[]),_a((function(){var e=c,t=(c&&c.hasOwnProperty("current")&&(e=c.current),xa(e||b.ref||ba(),Object.assign({},E,{plugins:[Oa].concat(w.plugins||[])})));return b.instance=t,l&&t.disable(),i&&t.show(),d&&a.hook({instance:t,content:n,props:E,setSingletonContent:v}),h(!0),function(){t.destroy(),null!=a&&a.cleanup(t)}}),u),_a((function(){var e,t;1===b.renders?b.renders++:((t=b.instance).setProps(function(e,t){return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Ea([].concat((null==(e=e.popperOptions)?void 0:e.modifiers)||[],(null==(e=t.popperOptions)?void 0:e.modifiers)||[]))})})}(t.props,E)),null!=(e=t.popperInstance)&&e.forceUpdate(),l?t.disable():t.enable(),p&&(i?t.show():t.hide()),d&&a.hook({instance:t,content:n,props:E,setSingletonContent:v}))})),_a((function(){var e;s&&(e=b.instance).setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat(((null==(e=e.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=null==(t=(e=e.state).modifiersData)?void 0:t.hide;m.placement===e.placement&&m.referenceHidden===(null==t?void 0:t.isReferenceHidden)&&m.escaped===(null==t?void 0:t.hasPopperEscaped)||g({placement:e.placement,referenceHidden:null==t?void 0:t.isReferenceHidden,escaped:null==t?void 0:t.hasPopperEscaped}),e.attributes.popper={}}}])})})}),[m.placement,m.referenceHidden,m.escaped].concat(u)),o().createElement(o().Fragment,null,t?(0,r.cloneElement)(t,{ref:function(e){b.ref=e,va(t.ref,e)}}):null,f&&(0,D.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(m),y,b.instance):n,b.container))},(0,r.forwardRef)((function(e,t){var n=e.children;return e=ga(e,["children"]),o().createElement(Ca,Object.assign({},undefined,e),n?(0,r.cloneElement)(n,{ref:function(e){va(t,e),va(n.ref,e)}}):null)}))),Ma=ka;function ja(e){try{return decodeURIComponent(e)}catch(t){return e}}function Da(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;var r=e.indexOf("?");return-1!==r&&(t=Object.assign(function(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{var[t,n=""]=t.split("=").filter(Boolean).map(ja);return t&&function(e,t,n){var r=t.length,o=r-1;for(let a=0;a<r;a++){let r=t[a];!r&&Array.isArray(e)&&(r=e.length.toString()),r=["__proto__","constructor","prototype"].includes(r)?r.toUpperCase():r;var i=!isNaN(Number(t[a+1]));e[r]=a===o?n:e[r]||(i?[]:{}),Array.isArray(e[r])&&!i&&(e[r]={...e[r]}),e=e[r]}}(e,t.replace(/\]/g,"").split("["),n),e}),Object.create(null))}(e),t),n=n.substr(0,r)),n+"?"+function(e){let t="";for(var n=Object.entries(e);i=n.shift();){let[e,a]=i;var r,o,i=Array.isArray(a)||a&&a.constructor===Object;if(i)for([r,o]of Object.entries(a).reverse())n.unshift([`${e}[${r}]`,o]);else void 0!==a&&(null===a&&(a=""),t+="&"+[e,a].map(encodeURIComponent).join("="))}return t.substr(1)}(t)}var Ia=function(e){var t=e.data,n=e.innerRef,o=e.innerProps,i=e.isFocused,a=e.isSelected,s=(e=e.selectProps.classNamePrefix||"react-select",e="".concat(e,"__option"),i?"".concat(e,"--is-focused"):"");return a=a?"".concat(e,"--is-selected"):"",(0,r.createElement)("div",Nn({ref:n},o,{className:"".concat(e," ").concat(s," ").concat(a," custom-option"),style:{padding:"10px",backgroundColor:i?"#f0f0f0":"white",cursor:"pointer"}}),(0,r.createElement)("span",null,t.label),t.tooltip&&(0,r.createElement)(Ma,{content:t.tooltip},(0,r.createElement)("span",{className:"tooltip-icon",style:{marginLeft:"10px"}},(0,r.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M6.33203 10.332H7.66536V6.33203H6.33203V10.332ZM6.9987 4.9987C7.18759 4.9987 7.34592 4.93481 7.4737 4.80703C7.60148 4.67925 7.66536 4.52092 7.66536 4.33203C7.66536 4.14314 7.60148 3.98481 7.4737 3.85703C7.34592 3.72925 7.18759 3.66536 6.9987 3.66536C6.80981 3.66536 6.65148 3.72925 6.5237 3.85703C6.39592 3.98481 6.33203 4.14314 6.33203 4.33203C6.33203 4.52092 6.39592 4.67925 6.5237 4.80703C6.65148 4.93481 6.80981 4.9987 6.9987 4.9987ZM6.9987 13.6654C6.07648 13.6654 5.20981 13.4904 4.3987 13.1404C3.58759 12.7904 2.88203 12.3154 2.28203 11.7154C1.68203 11.1154 1.20703 10.4098 0.857031 9.5987C0.507031 8.78759 0.332031 7.92092 0.332031 6.9987C0.332031 6.07648 0.507031 5.20981 0.857031 4.3987C1.20703 3.58759 1.68203 2.88203 2.28203 2.28203C2.88203 1.68203 3.58759 1.20703 4.3987 0.857031C5.20981 0.507031 6.07648 0.332031 6.9987 0.332031C7.92092 0.332031 8.78759 0.507031 9.5987 0.857031C10.4098 1.20703 11.1154 1.68203 11.7154 2.28203C12.3154 2.88203 12.7904 3.58759 13.1404 4.3987C13.4904 5.20981 13.6654 6.07648 13.6654 6.9987C13.6654 7.92092 13.4904 8.78759 13.1404 9.5987C12.7904 10.4098 12.3154 11.1154 11.7154 11.7154C11.1154 12.3154 10.4098 12.7904 9.5987 13.1404C8.78759 13.4904 7.92092 13.6654 6.9987 13.6654ZM6.9987 12.332C8.48759 12.332 9.7487 11.8154 10.782 10.782C11.8154 9.7487 12.332 8.48759 12.332 6.9987C12.332 5.50981 11.8154 4.2487 10.782 3.21536C9.7487 2.18203 8.48759 1.66536 6.9987 1.66536C5.50981 1.66536 4.2487 2.18203 3.21536 3.21536C2.18203 4.2487 1.66536 5.50981 1.66536 6.9987C1.66536 8.48759 2.18203 9.7487 3.21536 10.782C4.2487 11.8154 5.50981 12.332 6.9987 12.332Z",fill:"#667085"})))))},Ta=sr((function(e){function t(){if(e.ajax&&(!e.ajax.rules||jn(e.ajax.rules,n.values))){w(!0);var t,r,o={};if(Object.keys(null==e?void 0:e.ajax.data).map((function(t){var r,i,a;-1<(null==e?void 0:e.ajax.data[t].indexOf("@"))?(a=(a=null==e?void 0:e.ajax.data[t].substr(1)).includes(".")?a.split("."):a,Array.isArray(a)?(r=null!=d?n.values[a[0]][d]:n.values[a[0]],Array.isArray(r)||"object"!=Qt(r)?null!=r&&r.map((function(e){var n;o[t]=Array.isArray(e[a[1]])?null==(n=e[a[1]])?void 0:n.join(","):e[a[1]],0==(null==(n=e[a[1]])?void 0:n.length)&&delete o[t]})):o[t]=Array.isArray(r[a[1]])?null==(i=r[a[1]])?void 0:i.join(","):r[a[1]]):o[t]=null==(i=n.values)?void 0:i[a]):o[t]=null==e?void 0:e.ajax.data[t]})),!E)return r={path:null==e?void 0:e.ajax.api,data:o,method:"POST"},"GET"==(null==e||null==(t=e.ajax)?void 0:t.method)&&(r.method="GET",delete r.data,r.path=Da(r.path,o)),tn(r).then((function(t){var r=[],o=(0<(null==(o=Object.keys(null==e||null==(o=e.ajax)?void 0:o.response_mapper))?void 0:o.length)&&null!=t&&t.map((function(t){var n=null!=e&&null!=(n=e.ajax)&&null!=(n=n.response_mapper)&&null!=(n=n.label)&&n.includes(".")?null==e||null==(n=e.ajax)||null==(n=n.response_mapper)||null==(n=n.label)?void 0:n.split("."):null==e||null==(n=e.ajax)||null==(n=n.response_mapper)?void 0:n.label,o=null!=e&&null!=(o=e.ajax)&&null!=(o=o.response_mapper)&&null!=(o=o.value)&&o.includes(".")?null==e||null==(o=e.ajax)||null==(o=o.response_mapper)||null==(o=o.value)?void 0:o.split("."):null==e||null==(o=e.ajax)||null==(o=o.response_mapper)?void 0:o.value,i={};Array.isArray(n)?i.label=lo(fn(ln(t,n))):i.label=lo(fn(t[n])),Array.isArray(o)?(n=o[(null==o?void 0:o.length)-1],i.value=ln(t,n)):i.value=t[o],r.push(i)})),w(!1),En(e.options,0<(null==r?void 0:r.length)?r:t,"value"));return null==(null==o?void 0:o.find((function(e){return"all"==(null==e?void 0:e.value)})))&&1==(null==e?void 0:e.include_all_in_options)&&0<(null==t?void 0:t.length)&&null!=o&&o.unshift({label:(0,a.__)("All","betterdocs"),value:"all"}),n.setFormField([].concat(Jt(p),["options"]),o),g({options:o,parentIndex:[].concat(Jt(p),["options"])}),t}))}}var n=Bn(),o=e.id,i=e.name,s=e.multiple,c=e.placeholder,l=void 0!==(l=e.search)&&l,u=e.onChange,p=e.parentIndex,d=e.index,f=(_=Fn(e,"options")).options,h=_.selectedOption,m=_.setSelectedOption,g=_.setData,y=(_=Ln((0,r.useState)(null),2))[0],v=_[1],b=(_=Ln((0,r.useState)(!1),2))[0],w=_[1],E=(_=Ln((0,r.useState)(!1),2))[0],_=(0,r.useCallback)((function(e){v(e),an(e)?u({target:{type:"select",name:i,value:null==e?void 0:e.map((function(e){return e.value})),options:f,multiple:s}}):u({target:{type:"select",name:i,value:null==e?void 0:e.value,options:f,multiple:s}})}),[i,f,u,s]),S=((0,r.useEffect)((function(){t()}),[]),(0,r.useEffect)((function(){!an(y)&&sn(y)&&u({target:{type:"select",name:i,value:y.value,options:f,multiple:s}}),an(y)&&u({target:{type:"select",name:i,value:y.map((function(e){return e.value})),options:f,multiple:s}})}),[y]),e.options_tooltip?{Option:Ia}:void 0);return(0,r.createElement)("div",{className:"wprf-select-wrapper"},(0,r.createElement)(yt,{isDisabled:null==e?void 0:e.disable,className:"wprf-select",classNamePrefix:"wprf-select",isSearchable:null!=l&&l,id:o,name:i,menuIsOpen:e.menuIsOpen,isMulti:null!=s&&s,placeholder:c,isLoading:b,options:f,value:h,onMenuOpen:t,components:S,onChange:_,controlShouldRenderValue:null==(l=null==e?void 0:e.show_selected_values)||l}),null!=h&&h.length?(0,r.createElement)("ul",{className:"wprf-selected-options"},null==h?void 0:h.map((function(e,t){return(0,r.createElement)("li",{key:null==e?void 0:e.label,className:"wprf-selected-option wprf-selected-option-".concat(t%6+1)},null==e?void 0:e.label,(0,r.createElement)("button",{type:"button",className:"wprf-remove-button",onClick:function(){return t=e,n=h.filter((function(e){return(null==e?void 0:e.value)!=(null==t?void 0:t.value)})),v(n),void m(n);var t,n}},(0,r.createElement)("i",{className:"btd-icon btd-close-fill"})))}))):"")})),Aa=sr((function(e){var t,n=Bn(),o=e.id,i=e.name,s=e.multiple,c=e.placeholder,l=e.onChange,u=(t=Ln((0,r.useState)(n.eligibleOptions(e.options)),2))[0],p=t[1],d=(t=Ln((0,r.useState)(null==e?void 0:e.value),2))[0],f=t[1],h=(t=Ln((0,r.useState)(!1),2))[0],m=t[1];return(0,r.useEffect)((function(){p(n.eligibleOptions(e.options))}),[n.values.source]),(0,r.useEffect)((function(){l({target:{type:"select",name:i,value:d,multiple:s}})}),[d]),(0,r.createElement)("div",{className:"wprf-async-select-wrapper"},(0,r.createElement)(Wt,{cacheOptions:!0,loadOptions:function t(r,o){var i;if(e.ajax&&(!e.ajax.rules||jn(e.ajax.rules,n.values)))if(r)if(r.length<3)o([{label:(0,a.__)("Please input a minimum of 3 characters."),value:null,disabled:!0}]);else{var s={inputValue:r};if(null!=(i=Object.keys(e.ajax.data))&&i.map((function(t){var r,o;-1<e.ajax.data[t].indexOf("@")?(o=e.ajax.data[t].substr(1),s[t]=null==(r=n.values)?void 0:r[o]):s[t]=e.ajax.data[t]})),!h&&r)return m(!0),window.lastRequest=null,tn({path:e.ajax.api,data:s}).then((function(e){return o(e),e})).finally((function(){var e;m(!1),window.lastRequest&&(e=window.lastRequest,window.lastRequest=null,t.apply(void 0,Jt(e))),window.lastCompleteRequest=r}));window.lastRequest=[r,o]}else o(u)},defaultOptions:u,isDisabled:null==e?void 0:e.disable,isMulti:null!=s&&s,classNamePrefix:"wprf-async-select",id:o,name:i,placeholder:c,formatOptionLabel:function(e,t){var n,o;return null!=t&&null!=(n=t.inputValue)&&n.length&&e.name&&e.name.toLowerCase().includes(null==t||null==(n=t.inputValue)?void 0:n.toLowerCase())?(null!=e&&e.name,n=new RegExp("(".concat(null==t?void 0:t.inputValue,")"),"gi"),t=null==(t=e.name)?void 0:t.replace(n,"<strong style={font-weight: 900}>$1</strong>"),o=null==(o=e.address)?void 0:o.replace(n,"<strong style={font-weight: 900}>$1</strong>"),(0,r.createElement)(r.Fragment,null,Ut(t||"")," ",(0,r.createElement)("small",null,Ut(o||"")))):(0,r.createElement)(r.Fragment,null,e.name?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",null,e.name)," "):(0,r.createElement)(r.Fragment,null,e.label," "),e.address&&(0,r.createElement)("small",null,e.address))},value:d,isClearable:!0,isOptionDisabled:function(e){return null==e?void 0:e.disabled},onChange:function(e){return f(e)}}))})),Na=function(e){var t,n=e.name,o=e.id,i=e.label,a=e.units,s=e.min,c=e.max,l=e.unit,u=e.reset,p=(t=Ln((0,r.useState)(e.value||0),2))[0],d=t[1],f=(t=Ln((0,r.useState)(l),2))[0],h=t[1];return(0,r.useEffect)((function(){var t;p&&(function(e){return null!==e&&"number"==typeof e}(p)?t=f?"".concat(p).concat(f):"".concat(p):nn(p)&&(t=-1<p.indexOf(f)?"".concat(p):"".concat(p).concat(f)),e.onChange({target:{type:"slider",name:n,value:t}}))}),[p,f]),(0,r.createElement)("div",{className:"wprf-slider-wrap"},(0,r.createElement)("div",{className:"wprf-slider-control-head"},(0,r.createElement)(Jn,{htmlFor:o||n},i),an(a)&&0<a.length&&(0,r.createElement)("div",{className:"wprf-slider-units"},a.map((function(e,t){return(0,r.createElement)(vt.Button,{key:t,isSmall:!0,isPrimary:!0,onClick:function(){return h(e)},className:e==f?"unit-active":""},e)})))),(0,r.createElement)("div",{className:"wprf-slider-control"},(0,r.createElement)(vt.RangeControl,{allowReset:null==u||u,value:parseInt(p),min:s,max:c,onChange:function(e){return d(e)}})))};function La(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var za=sr(o().memo((function(e){var t=bn(e,["is_pro","visible","trigger","disable","parentIndex","context"]),n=(0,r.useCallback)((function(n){return t.onChange(n,{isPro:!!e.is_pro})}),[null==t?void 0:t.value]);return o().createElement("textarea",Pa(Pa({},t),{},{onChange:n,rows:2}))})));function Ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ba(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ua=function(e){var t,n,o,i=e.options,a=e.value,s=e.multiple,c=e.style,l=gn(i),u=Fa({column:4},c);return s?(i=Ln((0,r.useState)({}),2),t=i[0],n=i[1],o=function(e){var t=e.target||e.currentTarget;n((function(e){return Fa(Fa({},e),{},Zt({},t.value,t.checked))}))},(0,r.useEffect)((function(){e.onChange({target:{type:"toggle",name:e.name,value:t}})}),[t]),(0,r.useEffect)((function(){if(sn(a))n(a);else{var e,t={},r=function(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Ra(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ra(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(l);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=a}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-toggle-wrapper wprf-control"},(0,r.createElement)(Gn,null,l.map((function(n){return(0,r.createElement)($n,{key:n.value,column:u.column},(0,r.createElement)(_r,Fa(Fa({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?a:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(_r,e)},Ha=function(e){var t=e.fields,n=e.parentIndex,o=e.context,i=(e=Ln((0,r.useState)([]),2))[0],a=e[1],s=(e=Ln((0,r.useState)([]),2))[0],c=e[1];return(0,r.useEffect)((function(){var e=gn(t);o.setFormField([n,"fields"],e),a(e)}),[]),(0,r.useEffect)((function(){var e;an(i)&&0<i.length&&(e=i.map((function(e,t){var o=[].concat(Jt(n),["fields",t]);return"section"===(null==e?void 0:e.type)?(0,r.createElement)(Nr,Nn({key:"input-".concat(e.name,"-").concat(t)},e,{parentIndex:o})):e?(0,r.createElement)(Lr,Nn({key:"input-".concat(e.name,"-").concat(t)},e,{parentIndex:o})):(0,r.createElement)(r.Fragment,null)})),c(e))}),[i]),(0,r.createElement)(r.Fragment,null,s)},Ka=["fields","active","setActive","submit"],Va=function(e){var t=e.fields,n=e.active,i=e.setActive,s=e.submit,c=Pn(e,Ka);if(void 0===t)throw new Error((0,a.__)("There are no #tabs args defined in props.","betterdocs"));var l,u,p=Bn(),d=c.parentIndex||[];if(an(t))return l=(e=Ln((0,r.useState)([]),2))[0],u=e[1],(0,r.useEffect)((function(){var e=t.filter((function(e){return cn(null==p?void 0:p.values,e)}));u(e)}),[t,null==p||null==(e=p.values)?void 0:e.source]),(0,r.createElement)("div",{className:y()("wprf-tab-content-wrapper",null==p||null==(e=p.values)?void 0:e.source,null==p||null==(e=p.values)?void 0:e.themes)},(0,r.createElement)("div",{className:"wprf-tab-flex"},(0,r.createElement)("div",{className:"wprf-tab-contents"},t.map((function(e,t){var i;return cn(null==p?void 0:p.values,e)?(i=y()("wprf-tab-content","wprf-tab-".concat(null==e?void 0:e.id),{"wprf-active":n===e.id}),(0,r.createElement)("div",{id:null==e?void 0:e.id,className:i,key:null==e?void 0:e.id},(0,r.createElement)("div",{className:"wprf-tab-heading-wrapper"},(null==e?void 0:e.label)&&(null==(i=null==c?void 0:c.title)||i)&&(0,r.createElement)("h4",null,e.label),(0,r.createElement)("div",null,(null==c?void 0:c.content_heading)&&Object.keys(c.content_heading).map((function(e,t){return(0,r.createElement)(o().Fragment,{key:"button_".concat(e,"_").concat(t)},(0,r.createElement)(Lr,c.content_heading[e]))})))),(0,r.createElement)(Ha,{context:p,fields:null==e?void 0:e.fields,parentIndex:[].concat(Jt(d),[t])}))):""}))),(0,m.applyFilters)("wprf_tab_content","",c)),(null==c||null==(e=c.step)?void 0:e.show)&&(null==c||null==(e=c.step)||!e.rules||jn(null==c||null==(e=c.step)?void 0:e.rules,{rest:c,config:{active:n}}))&&(0,r.createElement)(io,Nn({fields:l,active:n,setActive:i,config:null!=(e=c.step)?e:{show:!1}},c)),(null==(l=null==s?void 0:s.show)||l)&&(null==s||!s.rules||jn(null==s?void 0:s.rules,{rest:c,config:{active:n}}))&&(0,r.createElement)(ao,s));throw new Error((0,a.__)("Not an array.","betterdocs"))},qa=function(e){if(void 0===e.fields)throw new Error((0,a.__)("There are no tabs defined!","betterdocs"));var t=e.active,n=e.setActive,o=e.fields,i=e.context,s=(l=Ln((0,r.useState)([]),2))[0],c=l[1],l=((0,r.useEffect)((function(){var e=o.filter((function(e){return cn(null==i?void 0:i.values,e)}));c(e)}),[o,null==i||null==(l=i.values)?void 0:l.source]),y()("wprf-tab-menu-wrapper",null==e?void 0:e.className,{"wprf-tab-menu-sidebar":null==e?void 0:e.sidebar},null==i||null==(l=i.values)?void 0:l.source)),u=s.findIndex((function(e){return e.id===t}));return(0,r.createElement)("div",{className:l},(0,r.createElement)("ul",{className:"wprf-tab-nav"},s.map((function(o,a){var s;return(0,r.createElement)("li",{className:y()("wprf-tab-nav-item",Zt(Zt(Zt({},"".concat(o.classes),o.classes),"wprf-active-nav",t===o.id),"wprf-tab-complete",!(null==e||!e.completionTrack)&&a<=u)),"data-key":o.id,key:o.id,onClick:function(){var t;return(null==(t=null==e?void 0:e.clickable)||t)&&n(o.id)}},null!=e&&e.tab_number?(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("span",{className:"count"},a+1)):"",(null==o?void 0:o.icon)&&(nn(o.icon)&&!sn(o.icon)?(0,r.createElement)("img",{src:o.icon,alt:null==o?void 0:o.label}):sn(o.icon)?null==i||null==(a=i.icons)||null==(a=a[null==o||null==(s=o.icon)?void 0:s.type])?void 0:a[null==o||null==(s=o.icon)?void 0:s.name]:""),(0,r.createElement)("span",null,o.label),null!=o&&o.is_pro?(0,r.createElement)(er,{componentClasses:"wprf-badge-item",label:"Pro"}):(0,r.createElement)(r.Fragment,null))}))))},Ya=function(e){var t=Bn(),n=(a=Ln((0,r.useState)((null==e?void 0:e.value)||(null==e?void 0:e.active)),2))[0],o=a[1],i=((0,r.useEffect)((function(){var t;null!=e&&e.save_locally&&(t=null!=(t=localStorage.getItem("quickbuilder_active_tab"))?t:null)&&o(JSON.parse(t))}),[]),null==(a=null==e?void 0:e.save)||a),a=y()("wp-react-form wprf-tabs-wrapper",null==e?void 0:e.className,{"wprf-tab-menu-as-sidebar":null==e?void 0:e.sidebar});return(0,r.useEffect)((function(){var t=null!=(t=e.value)?t:e.active;t!=n&&o(t)}),[null==e?void 0:e.value]),(0,r.useEffect)((function(){null!=e&&e.save_locally&&localStorage.setItem("quickbuilder_active_tab",JSON.stringify(n))}),[n]),(0,r.useEffect)((function(){e.value!==n&&i&&e.onChange({target:{type:"button",name:e.name,value:n}})}),[n]),(0,r.createElement)("div",{className:a},(0,r.createElement)(qa,Nn({},e,{active:n,setActive:function(e){return o(e)},fields:e.fields,context:t})),(0,r.createElement)(Va,Nn({},e,{fields:e.fields,active:n,setActive:function(e){return o(e)},submit:null==e?void 0:e.submit})))};function Wa(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,i.registerStore)("formbuilder",An);var Za=function(e){var t,n=Bn(),o=e.tabs;return null!=(t=o)&&t.type||(o=Qa(Qa({},e.config),{},{value:null==e||null==(t=e.config)?void 0:t.active,fields:e.tabs,tabs:void 0,submit:null==e?void 0:e.submit,onChange:function(e){n.setActiveTab(null==e||null==(e=e.target)?void 0:e.value)}})),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Ya,o))}},93816:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},94092:(e,t,n)=>{"use strict";var r=n(23018),o=n(77337).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),p=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===l})).concat(o([[l,a.get(l)]])).map((function(e,t){var o,a;s===l?(o=c,a=u):(o=t===s?c:0,a=t===l?u:e.getLength());for(var p,d=e.getCharacterList();o<a;)p=d.get(o),d=d.set(o,i?r.applyStyle(p,n):r.removeStyle(p,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:a.merge(p),selectionBefore:t,selectionAfter:t})}e.exports=i},94143:(e,t,n)=>{"use strict";var r=n(73998),o=n(12242),i=n(58488),a=n(5188);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},94534:(e,t,n)=>{"use strict";var r,o="Unknown",i=(new(n(77232))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(r=i.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},94660:(e,t,n)=>{"use strict";var r=n(953),o=n(67204),i=n(14134),a=n(4909),s=n(69758),c=n(19677),l=n(90646),u=n(93816),p=i.isBrowser("IE");function d(e,t){if(!e)return"[empty]";var n=f(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(u(n)||l(!1),n.outerHTML)}function f(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return c(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(f(i[a],t));return o}function h(e,t){for(var n=e,r=n;n;){if(u(n)&&r.hasAttribute("contenteditable"))return d(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function m(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function g(e,t,n,r){var i=s();if(e.extend&&null!=t&&a(i,t)){n>m(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var l=e.getRangeAt(0);l.setEnd(t,n),e.addRange(l.cloneRange())}}function y(e,t,n,i){var a=c(t).createRange();if(n>m(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),p)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),l=e.getAnchorKey(),u=e.getAnchorOffset(),p=e.getFocusKey(),d=e.getFocusOffset(),f=e.getIsBackward();if(!s.extend&&f){var h=l,m=u;l=p,u=d,p=h,d=m,f=!1}var v=l===n&&r<=u&&o>=u,b=p===n&&r<=d&&o>=d;if(v&&b)return s.removeAllRanges(),y(s,t,u-r,e),void g(s,t,d-r,e);if(f){if(b&&(s.removeAllRanges(),y(s,t,d-r,e)),v){var w=s.focusNode,E=s.focusOffset;s.removeAllRanges(),y(s,t,u-r,e),g(s,w,E,e)}}else v&&(s.removeAllRanges(),y(s,t,u-r,e)),b&&g(s,t,d-r,e)}},addFocusToSelection:g}},94793:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},95423:(e,t,n)=>{"use strict";var r=n(15504);e.exports=function(e){return r(e)&&3==e.nodeType}},95748:(e,t,n)=>{"use strict";var r=n(77337).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},97392:(e,t,n)=>{"use strict";var r=n(59824),o=n(37458);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},97656:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),s=n(56840),c=n(65224),l=n(11608),u=n(91381),p=n(6991),d=n(679),f=n(47282),h=n(77337),m=n(91721),g=h.List,y=h.Record,v=h.Repeat,b=h.Map,w=h.OrderedMap,E=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),_=f("draft_tree_data_support")?c:s,S=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.getEntityMap=function(){return l},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(e){return this.getBlockMap().get(e)},s.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},s.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},s.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},s.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},s.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},s.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return l.__create(e,t,n),this},s.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},s.addEntity=function(e){return l.__add(e),this},s.getEntity=function(e){return l.__get(e)},s.getAllEntities=function(){return l.__getAll()},s.loadWithEntities=function(e){return l.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new u:u.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||l,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=m(e),new _({key:p(),text:e,type:"unstyled",characterList:g(v(a.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new _(r({},e,{data:b(e.data),characterList:null!=t?g((Array.isArray(t)?t:d(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(E);e.exports=S},97784:(e,t,n)=>{"use strict";var r=n(14134),o=n(73722),i=n(18058),a=n(87141),s=n(3694),c=n(73919),l=n(16127),u=n(74861),p=n(44447),d=n(5091),f=n(48136),h=n(72208),m=n(16207),g=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=g||y?m:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:l,onDragStart:u,onFocus:p,onInput:d,onKeyDown:f,onPaste:h,onSelect:m,onMouseUp:v,onKeyUp:v};e.exports=b},98003:e=>{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},98917:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,c):e.replace(i,c)).replace(r,s))}},99492:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(51609)),i=n(42214);t.default=function(e){var t=e.children;return o.default.createElement("h2",{style:i.title},t)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(51609),t=n.n(e);const r="undefined"==typeof window||"Deno"in window;function o(){}function i(e,t,n){return y(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function a(e,t,n){return y(e)?[{...t,queryKey:e},n]:[e||{},t]}function s(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(y(a))if(r){if(t.queryHash!==l(a,t.options))return!1}else if(!p(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==o&&o!==t.state.fetchStatus||i&&!i(t))}function c(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(y(i)){if(!t.options.mutationKey)return!1;if(n){if(u(t.options.mutationKey)!==u(i))return!1}else if(!p(t.options.mutationKey,i))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function l(e,t){return((null==t?void 0:t.queryKeyHashFn)||u)(e)}function u(e){return JSON.stringify(e,((e,t)=>m(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function p(e,t){return d(e,t)}function d(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!d(e[n],t[n])))}function f(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=h(e)&&h(t);if(r||m(e)&&m(t)){const o=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),a=i.length,s=r?[]:{};let c=0;for(let o=0;o<a;o++){const a=r?o:i[o];s[a]=f(e[a],t[a],n+1),s[a]===e[a]&&c++}return o===a&&c===o?e:s}return t}function h(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!g(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!g(n)&&!!n.hasOwnProperty("isPrototypeOf")}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e){return Array.isArray(e)}function v(e){return new Promise((t=>{setTimeout(t,e)}))}function b(e){v(0).then(e)}function w(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?f(e,t):t}const E=console,_=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):b((()=>{n(r)}))};return{batch:o=>{let i;t++;try{i=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&b((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return i},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class S{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const C=new class extends S{constructor(){super(),this.setup=e=>{if(!r&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},x=["online","offline"],O=new class extends S{constructor(){super(),this.setup=e=>{if(!r&&window.addEventListener){const t=()=>e();return x.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{x.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function k(e){return Math.min(1e3*2**e,3e4)}function M(e){return"online"!==(null!=e?e:"online")||O.isOnline()}class j{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function D(e){return e instanceof j}function I(e){let t,n,r,o=!1,i=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),c=()=>!C.isFocused()||"always"!==e.networkMode&&!O.isOnline(),l=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},p=()=>new Promise((n=>{t=e=>{const t=a||!c();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),d=()=>{if(a)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch((t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,l=null!=(r=e.retryDelay)?r:k,f="function"==typeof l?l(i,t):l,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!o&&h?(i++,null==e.onFail||e.onFail(i,t),v(f).then((()=>{if(c())return p()})).then((()=>{o?u(t):d()}))):u(t)}))};return M(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{a||(u(new j(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class T{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class A extends T{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||E,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=w(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(o).catch(o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var l;s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(l=c.fetchOptions)?void 0:l.meta});const u=e=>{var t,n,r,o;D(e)&&e.silent||this.dispatch({type:"error",error:e}),D(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=I({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:M(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return D(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),_.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class N extends S{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,i=null!=(r=t.queryHash)?r:l(o,t);let a=this.get(i);return a||(a=new A({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){_.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=a(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>s(n,e)))}findAll(e,t){const[n]=a(e,t);return Object.keys(n).length>0?this.queries.filter((e=>s(n,e))):this.queries}notify(e){_.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){_.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){_.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class L extends T{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||E,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=I({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,i,a,s,c,l;if(!t){var u,p,d,f;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(p=this.mutationCache.config).onMutate)?void 0:u.call(p,this.state.variables,this));const e=await(null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(c=(l=this.options).onSettled)?void 0:c.call(l,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,m,g,y,v,b,w,E;throw await(null==(h=(m=this.mutationCache.config).onError)?void 0:h.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(w=(E=this.options).onSettled)?void 0:w.call(E,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!M(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),_.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class P extends S{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new L({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){_.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>c(e,t)))}findAll(e){return this.mutations.filter((t=>c(e,t)))}notify(e){_.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return _.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(o)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function z(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}const R=e.createContext(void 0),B=e.createContext(!1);var F=n(52619),U=n(5338);function H(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=H(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const K=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=H(e))&&(r&&(r+=" "),r+=t);return r},V=e=>"number"==typeof e&&!isNaN(e),q=e=>"string"==typeof e,Y=e=>"function"==typeof e,W=e=>q(e)||Y(e)?e:null,Q=t=>(0,e.isValidElement)(t)||q(t)||Y(t)||V(t);function Z(t){let{enter:n,exit:r,appendPosition:o=!1,collapse:i=!0,collapseDuration:a=300}=t;return function(t){let{children:s,position:c,preventExitTransition:l,done:u,nodeRef:p,isIn:d}=t;const f=o?`${n}--${c}`:n,h=o?`${r}--${c}`:r,m=(0,e.useRef)(0);return(0,e.useLayoutEffect)((()=>{const e=p.current,t=f.split(" "),n=r=>{r.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,e.useEffect)((()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,u,a):u()};d||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[d]),e.createElement(e.Fragment,null,s)}}function G(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const $={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},J=t=>{let{theme:n,type:r,...o}=t;return e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${r})`,...o})},X={info:function(t){return e.createElement(J,{...t},e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return e.createElement(J,{...t},e.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return e.createElement(J,{...t},e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return e.createElement(J,{...t},e.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return e.createElement("div",{className:"Toastify__spinner"})}};function ee(t){const[,n]=(0,e.useReducer)((e=>e+1),0),[r,o]=(0,e.useState)([]),i=(0,e.useRef)(null),a=(0,e.useRef)(new Map).current,s=e=>-1!==r.indexOf(e),c=(0,e.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function l(e){let{containerId:t}=e;const{limit:n}=c.props;!n||t&&c.containerId!==t||(c.count-=c.queue.length,c.queue=[])}function u(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function p(){const{toastContent:e,toastProps:t,staleId:n}=c.queue.shift();f(e,t,n)}function d(t,r){let{delay:o,staleId:s,...l}=r;if(!Q(t)||function(e){return!i.current||c.props.enableMultiContainer&&e.containerId!==c.props.containerId||a.has(e.toastId)&&null==e.updateId}(l))return;const{toastId:d,updateId:h,data:m}=l,{props:g}=c,y=()=>u(d),v=null==h;v&&c.count++;const b={...g,style:g.toastStyle,key:c.toastKey++,...Object.fromEntries(Object.entries(l).filter((e=>{let[t,n]=e;return null!=n}))),toastId:d,updateId:h,data:m,closeToast:y,isIn:!1,className:W(l.className||g.toastClassName),bodyClassName:W(l.bodyClassName||g.bodyClassName),progressClassName:W(l.progressClassName||g.progressClassName),autoClose:!l.isLoading&&(w=l.autoClose,E=g.autoClose,!1===w||V(w)&&w>0?w:E),deleteToast(){const e=G(a.get(d),"removed");a.delete(d),$.emit(4,e);const t=c.queue.length;if(c.count=null==d?c.count-c.displayedToast:c.count-1,c.count<0&&(c.count=0),t>0){const e=null==d?c.props.limit:1;if(1===t||1===e)c.displayedToast++,p();else{const n=e>t?t:e;c.displayedToast=n;for(let e=0;e<n;e++)p()}}else n()}};var w,E;b.iconOut=function(t){let{theme:n,type:r,isLoading:o,icon:i}=t,a=null;const s={theme:n,type:r};return!1===i||(Y(i)?a=i(s):(0,e.isValidElement)(i)?a=(0,e.cloneElement)(i,s):q(i)||V(i)?a=i:o?a=X.spinner():(e=>e in X)(r)&&(a=X[r](s))),a}(b),Y(l.onOpen)&&(b.onOpen=l.onOpen),Y(l.onClose)&&(b.onClose=l.onClose),b.closeButton=g.closeButton,!1===l.closeButton||Q(l.closeButton)?b.closeButton=l.closeButton:!0===l.closeButton&&(b.closeButton=!Q(g.closeButton)||g.closeButton);let _=t;(0,e.isValidElement)(t)&&!q(t.type)?_=(0,e.cloneElement)(t,{closeToast:y,toastProps:b,data:m}):Y(t)&&(_=t({closeToast:y,toastProps:b,data:m})),g.limit&&g.limit>0&&c.count>g.limit&&v?c.queue.push({toastContent:_,toastProps:b,staleId:s}):V(o)?setTimeout((()=>{f(_,b,s)}),o):f(_,b,s)}function f(e,t,n){const{toastId:r}=t;n&&a.delete(n);const i={content:e,props:t};a.set(r,i),o((e=>[...e,r].filter((e=>e!==n)))),$.emit(4,G(i,null==i.props.updateId?"added":"updated"))}return(0,e.useEffect)((()=>(c.containerId=t.containerId,$.cancelEmit(3).on(0,d).on(1,(e=>i.current&&u(e))).on(5,l).emit(2,c),()=>{a.clear(),$.emit(3,c)})),[]),(0,e.useEffect)((()=>{c.props=t,c.isToastActive=s,c.displayedToast=r.length})),{getToastToRender:function(e){const n=new Map,r=Array.from(a.values());return t.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(t=>e(t[0],t[1])))},containerRef:i,isToastActive:s}}function te(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function ne(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function re(t){const[n,r]=(0,e.useState)(!1),[o,i]=(0,e.useState)(!1),a=(0,e.useRef)(null),s=(0,e.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,e.useRef)(t),{autoClose:l,pauseOnHover:u,closeToast:p,onClick:d,closeOnClick:f}=t;function h(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=te(e.nativeEvent),s.y=ne(e.nativeEvent),"x"===t.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function m(e){if(s.boundingRect){const{top:n,bottom:r,left:o,right:i}=s.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&s.x>=o&&s.x<=i&&s.y>=n&&s.y<=r?y():g()}}function g(){r(!0)}function y(){r(!1)}function v(e){const r=a.current;s.canDrag&&r&&(s.didMove=!0,n&&y(),s.x=te(e),s.y=ne(e),s.delta="x"===t.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${t.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function b(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",b);const e=a.current;if(s.canDrag&&s.didMove&&e){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1"}}(0,e.useEffect)((()=>{c.current=t})),(0,e.useEffect)((()=>(a.current&&a.current.addEventListener("d",g,{once:!0}),Y(t.onOpen)&&t.onOpen((0,e.isValidElement)(t.children)&&t.children.props),()=>{const t=c.current;Y(t.onClose)&&t.onClose((0,e.isValidElement)(t.children)&&t.children.props)})),[]),(0,e.useEffect)((()=>(t.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",g),window.addEventListener("blur",y)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",y))})),[t.pauseOnFocusLoss]);const w={onMouseDown:h,onTouchStart:h,onMouseUp:m,onTouchEnd:m};return l&&u&&(w.onMouseEnter=y,w.onMouseLeave=g),f&&(w.onClick=e=>{d&&d(e),s.canCloseOnClick&&p()}),{playToast:g,pauseToast:y,isRunning:n,preventExitTransition:o,toastRef:a,eventHandlers:w}}function oe(t){let{closeToast:n,theme:r,ariaLabel:o="close"}=t;return e.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),n(e)},"aria-label":o},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ie(t){let{delay:n,isRunning:r,closeToast:o,type:i="default",hide:a,className:s,style:c,controlledProgress:l,progress:u,rtl:p,isIn:d,theme:f}=t;const h=a||l&&0===u,m={...c,animationDuration:`${n}ms`,animationPlayState:r?"running":"paused",opacity:h?0:1};l&&(m.transform=`scaleX(${u})`);const g=K("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),y=Y(s)?s({rtl:p,type:i,defaultClassName:g}):K(g,s);return e.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&o()}})}const ae=t=>{const{isRunning:n,preventExitTransition:r,toastRef:o,eventHandlers:i}=re(t),{closeButton:a,children:s,autoClose:c,onClick:l,type:u,hideProgressBar:p,closeToast:d,transition:f,position:h,className:m,style:g,bodyClassName:y,bodyStyle:v,progressClassName:b,progressStyle:w,updateId:E,role:_,progress:S,rtl:C,toastId:x,deleteToast:O,isIn:k,isLoading:M,iconOut:j,closeOnClick:D,theme:I}=t,T=K("Toastify__toast",`Toastify__toast-theme--${I}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":D}),A=Y(m)?m({rtl:C,position:h,type:u,defaultClassName:T}):K(T,m),N=!!S||!c,L={closeToast:d,type:u,theme:I};let P=null;return!1===a||(P=Y(a)?a(L):(0,e.isValidElement)(a)?(0,e.cloneElement)(a,L):oe(L)),e.createElement(f,{isIn:k,done:O,position:h,preventExitTransition:r,nodeRef:o},e.createElement("div",{id:x,onClick:l,className:A,...i,style:g,ref:o},e.createElement("div",{...k&&{role:_},className:Y(y)?y({type:u}):K("Toastify__toast-body",y),style:v},null!=j&&e.createElement("div",{className:K("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},j),e.createElement("div",null,s)),P,e.createElement(ie,{...E&&!N?{key:`pb-${E}`}:{},rtl:C,theme:I,delay:c,isRunning:n,isIn:k,closeToast:d,hide:p,type:u,style:w,className:b,controlledProgress:N,progress:S||0})))},se=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},ce=Z(se("bounce",!0)),le=(Z(se("slide",!0)),Z(se("zoom")),Z(se("flip")),(0,e.forwardRef)(((t,n)=>{const{getToastToRender:r,containerRef:o,isToastActive:i}=ee(t),{className:a,style:s,rtl:c,containerId:l}=t;function u(e){const t=K("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":c});return Y(a)?a({position:e,rtl:c,defaultClassName:t}):K(t,W(a))}return(0,e.useEffect)((()=>{n&&(n.current=o.current)}),[]),e.createElement("div",{ref:o,className:"Toastify",id:l},r(((t,n)=>{const r=n.length?{...s}:{...s,pointerEvents:"none"};return e.createElement("div",{className:u(t),style:r,key:`container-${t}`},n.map(((t,r)=>{let{content:o,props:a}=t;return e.createElement(ae,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":r+1,"--len":n.length},key:`toast-${a.key}`},o)})))})))})));le.displayName="ToastContainer",le.defaultProps={position:"top-right",transition:ce,autoClose:5e3,closeButton:oe,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let ue,pe=new Map,de=[],fe=1;function he(){return""+fe++}function me(e){return e&&(q(e.toastId)||V(e.toastId))?e.toastId:he()}function ge(e,t){return pe.size>0?$.emit(0,e,t):de.push({content:e,options:t}),t.toastId}function ye(e,t){return{...t,type:t&&t.type||e,toastId:me(t)}}function ve(e){return(t,n)=>ge(t,ye(e,n))}function be(e,t){return ge(e,ye("default",t))}be.loading=(e,t)=>ge(e,ye("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),be.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=q(o)?be.loading(o,n):be.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,o)=>{if(null==t)return void be.dismiss(r);const i={type:e,...s,...n,data:o},a=q(t)?{render:t}:t;return r?be.update(r,{...i,...a}):be(a.render,{...i,...a}),o},l=Y(e)?e():e;return l.then((e=>c("success",a,e))).catch((e=>c("error",i,e))),l},be.success=ve("success"),be.info=ve("info"),be.error=ve("error"),be.warning=ve("warning"),be.warn=be.warning,be.dark=(e,t)=>ge(e,ye("default",{theme:"dark",...t})),be.dismiss=e=>{pe.size>0?$.emit(1,e):de=de.filter((t=>null!=e&&t.options.toastId!==e))},be.clearWaitingQueue=function(e){return void 0===e&&(e={}),$.emit(5,e)},be.isActive=e=>{let t=!1;return pe.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},be.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=pe.get(n||ue);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:he()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,ge(a,i)}}),0)},be.done=e=>{be.update(e,{progress:1})},be.onChange=e=>($.on(4,e),()=>{$.off(4,e)}),be.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},be.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},$.on(2,(e=>{ue=e.containerId||e,pe.set(ue,e),de.forEach((e=>{$.emit(0,e.content,e.options)})),de=[]})).on(3,(e=>{pe.delete(e.containerId||e),0===pe.size&&$.off(0).off(1).off(5)}));var we=n(34892),Ee=n(56427),_e=n(27723),Se=n(1455),Ce=n.n(Se);const xe=new class{namespace="/betterdocs";version="v1";getPath=e=>`${this.namespace}/${this.version}/${e}`;post=(e,t={},n={})=>(n={path:this.getPath(e),method:"POST",data:t,...n},Ce()(n).then((e=>e)).catch((e=>e)));delete=(e,t={},n={})=>(n={path:this.getPath(e),method:"DELETE",data:t,...n},Ce()(n).then((e=>e)).catch((e=>console.error(e))));get=(e,t={})=>(t={path:this.getPath(e),method:"GET",...t},Ce()(t).then((e=>e)).catch((e=>console.error(e))));useQuery=e=>new URLSearchParams(e);getParam=(e,t=null)=>this.useQuery(location.search).get(e)||t};var Oe=n(78465),ke=n.n(Oe);const Me=(e=null)=>{const t=document.querySelector("li.wprf-tab-nav-item.wprf-active-nav")?.getAttribute("data-key");let n=(0,_e.__)("Upgrade to BetterDocs PRO","betterdocs"),r=(0,_e.__)("To access this feature, simply upgrade to BetterDocs PRO for premium access.","betterdocs");"tab-ai-chatbot"===t&&(n=(0,_e.__)("Upgrade To BetterDocs PRO & Get BetterDocs AI Chatbot Addon","betterdocs"),r=(0,_e.__)("To access this feature, simply upgrade to BetterDocs PRO, get the BetterDocs AI chatbot Addon, and activate the license keys.","betterdocs"));let o={};return null===e&&(e=(0,_e.sprintf)('<div class="icon"><i class="btd-icon btd-crown"></i></div><h3 class="title">%s</h3><p class="description">%s</p><div class="features"><h5 class="feature-title">%s</h5><ul class="feature-list"><li class="list-item">%s</li><li class="list-item">%s</li><li class="list-item">%s</li><li class="list-item">%s</li><li class="list-item">%s</li><li class="list-item">%s</li><li class="list-item">%s</li><li class="list-item">%s</li></ul></div><div class="footer"><a href="%s" target="_blank">%s</a></div>',n,r,(0,_e.__)("Here’s what’s inside BetterDocs Pro.","betterdocs"),(0,_e.__)("Multiple Knowledge Bases","betterdocs"),(0,_e.__)("Internal Knowledge Base","betterdocs"),(0,_e.__)("Instant Answer","betterdocs"),(0,_e.__)("Git Sync","betterdocs"),(0,_e.__)("Insightful Analytics Report","betterdocs"),(0,_e.__)("User Role Management","betterdocs"),(0,_e.__)("Glossaries & Encyclopedia","betterdocs"),(0,_e.__)("AI-Powered Chatbot","betterdocs"),"https://betterdocs.co/upgrade",(0,_e.__)("Upgrade Now","betterdocs"))),(0,we.isObject)(e)&&(o=e,e=e.message||e.html),((e={})=>{var t,n,r,o,i;return ke().mixin({target:null!==(t=e?.target)&&void 0!==t?t:"#betterdocsQuickBuilder",html:e?.html,title:null!==(n=e?.title)&&void 0!==n?n:(0,_e.__)("Title Goes Here: title","betterdocs"),text:null!==(r=e?.text)&&void 0!==r?r:(0,_e.__)("Text Goes Here: text","betterdocs"),icon:null!==(o=e?.icon)&&void 0!==o?o:e?.type||"success",timer:null!==(i=e?.timer)&&void 0!==i?i:null,...e})})({showConfirmButton:!1,showDenyButton:!1,icon:!1,type:"warning",title:!1,showCloseButton:!0,closeButtonHtml:'<svg class="betterdocs-close-button" xmlns="http://www.w3.org/2000/svg" width="15" height="14" viewBox="0 0 15 14" fill="none">\n <path d="M1.69687 14L0.296875 12.6L5.89687 7L0.296875 1.4L1.69687 0L7.29688 5.6L12.8969 0L14.2969 1.4L8.69688 7L14.2969 12.6L12.8969 14L7.29688 8.4L1.69687 14Z" fill="#475467"/>\n </svg>',customClass:{container:"betterdocs-pro-alert-container",popup:"betterdocs-pro-alert-popup",closeButton:"betterdocs-pro-alert-close-button",htmlContainer:"betterdocs-pro-alert-html"},...o,html:e})},je={position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,icon:!1},De=(e,t,n)=>(e=e||null,t=t||null,new Promise(((r,o)=>{n=n||{};const i={...je,...n,onClose:r};"success"==e&&be.success(t,i),"error"==e&&be.error(t,i),"info"==e&&be.info(t,i),"warning"==e&&be.warning(t,i),e||o()}))),Ie={},Te=(e,t)=>{Ie[e]=t},Ae=()=>({...Ie}),Ne=()=>Object.keys(Ie).length>0,Le=t=>{const[n,r]=(0,e.useState)(!1),o=(0,we.useBuilderContext)(),i=(0,e.useCallback)((e=>{o?.isSubmitting||(o.setSubmitting(!0),o?.values?.enable_sample_data&&xe.post("create-sample-docs",{action:"create-dummy-data"}),Ne()&&xe.post("customize/layouts",{layouts:Ae()}),xe.post("settings",{...o.values}).then((e=>{if(e?.success){document.cookie="betterdocs_insights_allowed=; expires=Thu, 01 Jan 2000 00:00:00 UTC; path=/;";try{localStorage.removeItem("betterdocs_setup_generated_docs")}catch(e){}De("success",(0,_e.__)("Changes Saved Successfully.","betterdocs")).then((()=>{const e=new URL(window.location.href);e.search="",e.searchParams.set("page","betterdocs-admin"),window.location.replace(e.href)}))}else{var t;De("nothing_changed"===e?.code?"info":"error",(0,_e.__)(null!==(t=e?.message)&&void 0!==t?t:"Something went wrong.","betterdocs"))}})).catch((e=>{De("error",(0,_e.__)("Something went wrong.","betterdocs"))})).finally((()=>{o.setSubmitting(!1),o?.config?.save_locally&&localStorage.removeItem("quickbuilder_active_tab")})))}),[o.values]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ee.Button,{disabled:n,className:"wprf-btn wprf-step-btn-publish",onClick:i},n&&(0,_e.__)("Finishing...","betterdocs"),!n&&(0,_e.__)("Finish","betterdocs")))},Pe=t=>{const n=(0,we.useBuilderContext)(),r=(0,e.useRef)(null),o=(0,e.useRef)(0);(0,e.useEffect)((()=>{n.registerAlert("pro_alert",Me),n.registerAlert("toast",De)}),[]),n.submit.onSubmit=(0,e.useCallback)(((e,t)=>0),[]);const i=n?.values?.isStartClicked;return(0,e.useEffect)((()=>{const e=r.current;if(!e)return;const t=()=>{const t=Array.from(e.querySelectorAll(".wprf-tab-nav .wprf-tab-nav-item"));if(!t.length)return;const r=t.findIndex((e=>e.classList.contains("wprf-active-nav")));if(r<0)return;r>o.current&&(o.current=r);const i="1"===(()=>{const e=document.cookie.match("(^|;)\\s*betterdocs_insights_allowed\\s*=\\s*([^;]+)");return e?e.pop():""})()||!!n?.values?.isStartClicked;t.forEach(((e,t)=>{const n=t===r,a=e.classList.contains("getting-started");let s=t>o.current;a&&i&&(s=!0),e.classList.toggle("wprf-tab-disabled",s&&!n)}))};t();const i=e.querySelector(".wprf-tab-nav");if(!i)return;const a=new MutationObserver(t);return a.observe(i,{attributes:!0,subtree:!0,attributeFilter:["class"]}),()=>a.disconnect()}),[i]),(0,e.createElement)("div",{className:"betterdocs-quick-setup-builder-wrapper",ref:r},(0,e.createElement)(we.FormBuilder,{...n}))},ze=t=>{const n=(0,we.useBuilder)(betterdocsQuickSetup),[r,o]=(0,e.useState)(!0);return n.values.is_pro_active=betterdocsQuickSetup?.is_pro_active,(0,F.addFilter)("btd_quick_build_launch","betterdocs",(t=>(0,e.createElement)(Le,{...t}))),(0,e.useEffect)((()=>{o(!1)}),[]),(0,e.createElement)(we.BuilderProvider,{value:{...n,isLoading:r,setIsLoading:o}},(0,e.createElement)(Pe,{isLoading:r}))},Re=t=>(0,e.createElement)("svg",{width:"220",viewBox:"0 0 366 85",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M63.0434 32.6229H44.0487C42.1891 32.6229 40.6796 31.1131 40.6796 29.2531C40.6796 27.3931 42.1891 25.8832 44.0487 25.8832H63.0434C64.903 25.8832 66.4125 27.3931 66.4125 29.2531C66.4125 31.1131 64.903 32.6229 63.0434 32.6229Z",fill:"#00B682"}),(0,e.createElement)("path",{d:"M55.3974 45.7358H36.4026C34.5431 45.7358 33.0336 44.226 33.0336 42.366C33.0336 40.506 34.5431 38.9961 36.4026 38.9961H55.3974C57.2569 38.9961 58.7665 40.506 58.7665 42.366C58.7665 44.226 57.2569 45.7358 55.3974 45.7358Z",fill:"#00B682"}),(0,e.createElement)("path",{d:"M47.6529 59.1058H28.6472C26.7877 59.1058 25.2781 57.596 25.2781 55.736C25.2781 53.876 26.7877 52.3661 28.6472 52.3661H47.6529C49.5125 52.3661 51.022 53.876 51.022 55.736C51.022 57.596 49.5125 59.1058 47.6529 59.1058Z",fill:"#00B682"}),(0,e.createElement)("path",{d:"M46.1598 77H23.2162C17.7141 77 12.7863 74.1498 10.0462 69.3795C7.30613 64.6147 7.31707 58.9308 10.0845 54.1769L32.5085 15.5658C35.2322 10.8994 40.2639 8 45.6402 8H68.5838C74.0859 8 79.0137 10.8502 81.7538 15.6205C84.4939 20.3853 84.4829 26.0692 81.7155 30.8231L59.2915 69.4342C56.6006 74.1006 51.5634 77 46.1598 77ZM45.6402 15.1227C42.7853 15.1227 40.1108 16.6653 38.6669 19.149L16.2429 57.7601C14.7771 60.282 14.7662 63.2963 16.221 65.8291C17.6759 68.362 20.2902 69.8773 23.2162 69.8773H46.1598C49.0312 69.8773 51.7002 68.3401 53.1276 65.8674L75.5571 27.2454C77.0229 24.7235 77.0338 21.7092 75.579 19.1763C74.1241 16.6435 71.5098 15.1281 68.5838 15.1281H45.6402V15.1227Z",fill:"#00B682"}),(0,e.createElement)("path",{d:"M62.5512 77H29.0246C27.0557 77 25.4641 75.4026 25.4641 73.4387C25.4641 71.4748 27.0611 69.8774 29.0246 69.8774H62.5512C67.0852 69.8774 71.2364 67.5852 73.6483 63.7449C76.0658 59.8991 76.3337 55.1616 74.3648 51.0587L70.6567 43.3343C69.8034 41.5618 70.5527 39.4338 72.3248 38.5804C74.0968 37.727 76.2244 38.4764 77.0776 40.2489L80.7803 47.9733C83.8157 54.2918 83.4 61.6059 79.67 67.536C75.9454 73.4606 69.5409 77 62.5403 77H62.5512Z",fill:"#00B682"}),(0,e.createElement)("path",{d:"M124.384 42.1533C125.82 41.4325 126.913 40.4279 127.65 39.1338C128.387 37.8397 128.758 36.3819 128.758 34.7657C128.758 33.5044 128.534 32.3359 128.081 31.2603C127.633 30.1791 126.929 29.2455 125.979 28.4537C125.023 27.662 123.822 27.045 122.364 26.5918C120.906 26.1441 119.17 25.9148 117.155 25.9148H104.433C104.127 25.9148 103.882 26.1605 103.882 26.4662V59.4183C103.882 59.6749 104.056 59.8988 104.302 59.9534C105.672 60.2646 107.212 60.5212 108.927 60.7178C110.816 60.9362 112.82 61.0399 114.944 61.0399C117.641 61.0399 119.951 60.7997 121.878 60.3137C123.8 59.8278 125.378 59.1343 126.601 58.2389C127.824 57.3379 128.725 56.235 129.299 54.9191C129.872 53.6087 130.161 52.1399 130.161 50.5237C130.161 48.4707 129.659 46.7398 128.649 45.3147C127.639 43.895 126.219 42.8412 124.384 42.1587V42.1533ZM110.516 31.9209C110.516 31.6152 110.767 31.364 111.073 31.364H116.129C118.214 31.3312 119.732 31.708 120.688 32.4997C121.638 33.2914 122.118 34.3725 122.118 35.7376C122.118 37.1791 121.643 38.2984 120.688 39.112C119.732 39.9201 118.231 40.3241 116.183 40.3241H111.078C110.772 40.3241 110.521 40.0729 110.521 39.7672V31.9264L110.516 31.9209ZM121.605 54.4004C120.328 55.2631 118.269 55.6944 115.43 55.6944C114.387 55.6944 113.486 55.6671 112.732 55.6125C112.126 55.5689 111.531 55.487 110.952 55.3614C110.701 55.3068 110.521 55.0774 110.521 54.8208V46.0464C110.521 45.7406 110.767 45.4949 111.073 45.4949H116.669C119.006 45.4949 120.732 45.9426 121.851 46.8435C122.965 47.7445 123.522 48.9839 123.522 50.5674C123.522 52.26 122.883 53.5322 121.605 54.4004Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M273.916 31.2275C272.278 29.715 270.302 28.5466 267.981 27.7221C265.66 26.8976 263.078 26.4826 260.239 26.4826H250.612C250.312 26.4826 250.066 26.7283 250.066 27.0287V60.5213C250.066 60.8216 250.312 61.0673 250.612 61.0673H260.239C263.078 61.0673 265.66 60.6523 267.981 59.8278C270.302 59.0033 272.278 57.8239 273.916 56.2951C275.554 54.7662 276.821 52.9426 277.722 50.8186C278.623 48.6946 279.071 46.3412 279.071 43.7531C279.071 41.165 278.623 38.8062 277.722 36.6877C276.821 34.5637 275.554 32.7509 273.916 31.2384V31.2275ZM271.541 48.5471C270.984 49.9504 270.176 51.1571 269.111 52.1617C268.052 53.1719 266.747 53.9527 265.202 54.5096C263.657 55.0666 261.877 55.345 259.862 55.345H257.257C256.952 55.345 256.706 55.0993 256.706 54.7935V32.7564C256.706 32.4506 256.952 32.2049 257.257 32.2049H259.862C261.877 32.2049 263.657 32.4833 265.202 33.0403C266.747 33.5972 268.052 34.3889 269.111 35.4155C270.171 36.442 270.979 37.6705 271.541 39.112C272.098 40.5535 272.376 42.1314 272.376 43.8623C272.376 45.5932 272.098 47.1548 271.541 48.558V48.5471Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M305.798 38.7516C304.581 37.5995 303.172 36.7095 301.567 36.0816C299.961 35.4537 298.225 35.137 296.358 35.137C294.49 35.137 292.797 35.4591 291.176 36.1089C289.554 36.7586 288.14 37.665 286.944 38.8335C285.743 40.002 284.793 41.3779 284.089 42.9614C283.384 44.5448 283.029 46.2538 283.029 48.0885C283.029 50.0323 283.373 51.7959 284.061 53.3739C284.749 54.9573 285.699 56.3224 286.917 57.4745C288.135 58.6266 289.554 59.5166 291.176 60.1445C292.797 60.7724 294.528 61.0891 296.358 61.0891C298.187 61.0891 299.912 60.7669 301.517 60.1172C303.123 59.4674 304.531 58.572 305.749 57.4199C306.967 56.2678 307.928 54.8918 308.632 53.292C309.336 51.6922 309.691 49.9558 309.691 48.083C309.691 46.2102 309.347 44.4301 308.659 42.8467C307.971 41.2633 307.021 39.8982 305.804 38.7461L305.798 38.7516ZM302.675 50.8895C302.342 51.7522 301.861 52.5057 301.244 53.1555C300.627 53.8052 299.901 54.3076 299.077 54.6679C298.247 55.0283 297.34 55.2085 296.352 55.2085C295.364 55.2085 294.457 55.0283 293.627 54.6679C292.798 54.3076 292.077 53.8052 291.46 53.1555C290.843 52.5057 290.368 51.7522 290.029 50.8895C289.696 50.0268 289.527 49.0931 289.527 48.083C289.527 47.0729 289.696 46.1392 290.029 45.2765C290.362 44.4138 290.843 43.6603 291.46 43.0105C292.077 42.3608 292.798 41.8584 293.627 41.498C294.457 41.1377 295.364 40.9575 296.352 40.9575C297.34 40.9575 298.247 41.1377 299.077 41.498C299.907 41.8584 300.627 42.3608 301.244 43.0105C301.861 43.6603 302.336 44.4138 302.675 45.2765C303.008 46.1392 303.177 47.0729 303.177 48.083C303.177 49.0931 303.008 50.0268 302.675 50.8895Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M331.603 54.7226C330.576 55.0447 329.31 55.2085 327.797 55.2085C326.683 55.2085 325.657 55.0283 324.723 54.668C323.789 54.3076 322.976 53.8162 322.293 53.1828C321.611 52.5549 321.081 51.7959 320.699 50.9168C320.322 50.0377 320.131 49.0931 320.131 48.083C320.131 47.0729 320.322 46.0791 320.699 45.1946C321.076 44.3155 321.605 43.5565 322.293 42.9286C322.976 42.3007 323.795 41.8038 324.75 41.4434C325.7 41.0831 326.754 40.9029 327.906 40.9029C329.31 40.9029 330.522 41.0722 331.548 41.4161C331.92 41.5417 332.264 41.6728 332.586 41.8147C332.952 41.9731 333.356 41.7165 333.356 41.3179V36.5402C333.356 36.3109 333.214 36.1034 333.001 36.027C332.264 35.7649 331.461 35.5574 330.582 35.4045C329.555 35.2243 328.414 35.137 327.158 35.137C325.253 35.137 323.473 35.47 321.818 36.1362C320.164 36.8023 318.733 37.7196 317.527 38.8881C316.32 40.0566 315.37 41.4216 314.665 42.9887C313.967 44.5557 313.612 46.2539 313.612 48.0885C313.612 49.9231 313.945 51.5775 314.611 53.161C315.277 54.7444 316.205 56.1204 317.39 57.2888C318.575 58.4573 320 59.3855 321.654 60.0681C323.309 60.7506 325.144 61.0946 327.158 61.0946C328.594 61.0946 329.79 60.9799 330.746 60.7451C331.537 60.5486 332.285 60.3356 332.99 60.1063C333.214 60.0353 333.361 59.8224 333.361 59.5876V54.8754C333.361 54.4878 332.968 54.2257 332.608 54.3731C332.296 54.4987 331.963 54.6188 331.608 54.728L331.603 54.7226Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M245.299 35.137H244.382C242.438 35.137 240.8 35.5956 239.473 36.5129C238.141 37.4303 237.207 38.5714 236.667 39.9365L236.334 35.7376C236.312 35.4373 236.044 35.208 235.739 35.2353L230.884 35.6775C230.59 35.7048 230.371 35.9615 230.388 36.2563L230.835 42.9013V60.5049C230.835 60.8106 231.081 61.0564 231.387 61.0564H236.76C237.065 61.0564 237.311 60.8106 237.311 60.5049V48.4052C237.311 46.2812 237.884 44.5558 239.036 43.2235C240.189 41.8912 241.805 41.2251 243.891 41.2251C244.338 41.2251 244.77 41.2469 245.174 41.296C245.501 41.3343 245.78 41.0776 245.78 40.75V35.4919C245.78 35.4919 245.758 35.1261 245.294 35.1261L245.299 35.137Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M223.481 54.0236C222.907 54.3458 222.296 54.6188 221.646 54.8317C220.996 55.0501 220.281 55.2194 219.489 55.345C218.698 55.4706 217.819 55.5361 216.847 55.5361C214.362 55.5361 212.424 54.9682 211.021 53.838C209.617 52.7023 208.809 51.2226 208.591 49.388C209.132 50.0377 209.978 50.5401 211.124 50.9004C212.277 51.2608 213.609 51.441 215.116 51.441C218.496 51.4082 221.111 50.6656 222.968 49.2296C224.819 47.7936 225.747 45.757 225.747 43.1306C225.747 40.8264 224.911 38.9209 223.241 37.4138C221.57 35.9014 219.113 35.1479 215.875 35.1479C213.898 35.1479 212.064 35.4919 210.371 36.1744C208.678 36.8569 207.215 37.8015 205.976 39.0082C204.736 40.2149 203.77 41.6345 203.087 43.2726C202.405 44.9106 202.061 46.6961 202.061 48.6399C202.061 50.5837 202.394 52.2709 203.06 53.8216C203.726 55.3668 204.654 56.6827 205.839 57.7584C207.024 58.8395 208.449 59.664 210.103 60.2427C211.758 60.8161 213.576 61.1054 215.553 61.1054C217.709 61.1054 219.544 60.8816 221.056 60.4284C222.422 60.0243 223.519 59.5657 224.354 59.0579C224.518 58.9596 224.606 58.7849 224.606 58.5938V54.3294C224.606 53.909 224.147 53.6414 223.781 53.8598C223.683 53.9199 223.579 53.9799 223.481 54.0345V54.0236ZM211.07 42.2898C212.435 41.1213 214.035 40.5371 215.869 40.5371C216.95 40.5371 217.813 40.7773 218.457 41.2633C219.107 41.7492 219.429 42.4426 219.429 43.3381C219.429 43.9879 219.238 44.5612 218.862 45.0635C218.485 45.5659 217.873 45.9808 217.027 46.303C216.181 46.6251 215.067 46.8599 213.68 47.0019C212.293 47.1438 210.595 47.1821 208.58 47.1111C208.869 45.0635 209.694 43.4528 211.064 42.2843L211.07 42.2898Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M355.655 48.225C354.393 46.9855 352.253 46.0409 349.234 45.3912C348.049 45.14 347.077 44.9161 346.318 44.7141C345.564 44.5175 344.975 44.3101 344.565 44.0917C344.15 43.8732 343.866 43.6494 343.702 43.4146C343.539 43.1798 343.462 42.9013 343.462 42.5792C343.462 41.105 344.975 40.3678 347.994 40.3678C349.359 40.3678 350.719 40.5316 352.067 40.8538C352.974 41.0722 353.858 41.3834 354.721 41.782C355.081 41.9458 355.491 41.6783 355.491 41.2797V36.846C355.491 36.6222 355.36 36.4201 355.158 36.3328C354.202 35.9396 353.165 35.6448 352.04 35.4537C350.779 35.2353 349.43 35.1315 347.994 35.1315C346.378 35.1315 344.909 35.3117 343.599 35.6721C342.283 36.0325 341.153 36.5457 340.197 37.2119C339.242 37.878 338.515 38.6861 338.013 39.6416C337.511 40.5972 337.26 41.6455 337.26 42.7976C337.26 44.8506 337.909 46.4777 339.203 47.679C340.497 48.8857 342.55 49.7757 345.351 50.349C346.575 50.5674 347.574 50.7803 348.344 50.9987C349.119 51.2171 349.731 51.4465 350.178 51.6976C350.626 51.9488 350.932 52.2218 351.096 52.5057C351.259 52.7951 351.336 53.1337 351.336 53.5323C351.336 55.0775 349.698 55.8528 346.427 55.8528C344.811 55.8528 343.178 55.6017 341.546 55.0993C340.465 54.7662 339.433 54.3076 338.455 53.7343C338.089 53.5213 337.636 53.7834 337.636 54.2093V58.6976C337.636 58.905 337.751 59.1016 337.937 59.1944C339.209 59.8333 340.53 60.3028 341.895 60.6031C343.369 60.9253 345.007 61.0891 346.804 61.0891C350.042 61.0891 352.641 60.3957 354.601 59.0142C356.561 57.6274 357.544 55.7327 357.544 53.3193C357.544 51.1625 356.916 49.459 355.655 48.2195V48.225Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M196.158 54.941C195.405 55.2304 194.433 55.3723 193.242 55.3723C192.052 55.3723 190.987 55.0229 190.141 54.3185C189.295 53.6196 188.874 52.402 188.874 50.6766V41.1814H196.961C197.261 41.1814 197.507 40.9357 197.507 40.6354V36.2236C197.507 35.9232 197.261 35.6775 196.961 35.6775H188.874V28.421C188.874 28.0934 188.585 27.8368 188.257 27.875L182.934 28.5466C182.661 28.5793 182.453 28.8141 182.453 29.0871L182.399 51.7522C182.399 54.8809 183.245 57.2179 184.932 58.7685C186.625 60.3138 188.869 61.0891 191.675 61.0891C193.04 61.0891 194.203 60.9635 195.154 60.7124C196.104 60.4612 196.89 60.1554 197.501 59.7951V59.7732V55.1921C197.501 54.7935 197.092 54.5315 196.732 54.6953C196.551 54.7772 196.36 54.8591 196.153 54.941H196.158Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M176.212 54.941C175.459 55.2304 174.487 55.3723 173.297 55.3723C172.106 55.3723 171.041 55.0229 170.195 54.3185C169.349 53.6196 168.928 52.402 168.928 50.6766V41.1814H176.993C177.293 41.1814 177.539 40.9357 177.539 40.6354V36.229C177.539 35.9287 177.293 35.683 176.993 35.683H168.928V28.4264C168.928 28.0988 168.639 27.8422 168.311 27.8804L162.988 28.552C162.715 28.5848 162.507 28.8196 162.507 29.0926L162.453 51.7577C162.453 54.8864 163.299 57.2233 164.986 58.774C166.679 60.3192 168.923 61.0946 171.729 61.0946C173.094 61.0946 174.257 60.969 175.208 60.7178C176.005 60.5103 176.682 60.2592 177.239 59.9752C177.419 59.8824 177.523 59.6913 177.523 59.4893V55.214C177.523 54.8154 177.113 54.5478 176.747 54.7171C176.578 54.7935 176.392 54.87 176.201 54.9464L176.212 54.941Z",fill:"#16342F"}),(0,e.createElement)("path",{d:"M155.819 54.0236C155.245 54.3458 154.634 54.6188 153.984 54.8317C153.334 55.0501 152.619 55.2194 151.827 55.345C151.035 55.4706 150.156 55.5361 149.184 55.5361C146.7 55.5361 144.762 54.9682 143.358 53.838C141.955 52.7023 141.147 51.2226 140.929 49.388C141.469 50.0377 142.316 50.5401 143.462 50.9004C144.614 51.2608 145.947 51.441 147.454 51.441C150.833 51.4082 153.449 50.6656 155.305 49.2296C157.156 47.7936 158.085 45.757 158.085 43.1306C158.085 40.8264 157.249 38.9209 155.578 37.4138C153.908 35.9014 151.45 35.1479 148.213 35.1479C146.236 35.1479 144.401 35.4919 142.709 36.1744C141.016 36.8569 139.553 37.8015 138.313 39.0082C137.074 40.2149 136.107 41.6345 135.425 43.2726C134.742 44.9106 134.398 46.6961 134.398 48.6399C134.398 50.5837 134.731 52.2709 135.398 53.8216C136.064 55.3668 136.992 56.6827 138.177 57.7584C139.362 58.8395 140.787 59.664 142.441 60.2427C144.096 60.8161 145.914 61.1054 147.89 61.1054C150.047 61.1054 151.882 60.8816 153.394 60.4284C154.765 60.0189 155.868 59.5602 156.703 59.0524C156.861 58.9541 156.954 58.7794 156.954 58.5883V54.3185C156.954 53.898 156.496 53.6305 156.135 53.8489C156.032 53.9144 155.928 53.9745 155.824 54.0345L155.819 54.0236ZM143.408 42.2898C144.773 41.1213 146.372 40.5371 148.207 40.5371C149.288 40.5371 150.151 40.7773 150.795 41.2633C151.445 41.7492 151.767 42.4426 151.767 43.3381C151.767 43.9879 151.576 44.5612 151.199 45.0635C150.823 45.5659 150.211 45.9808 149.365 46.303C148.518 46.6251 147.404 46.8599 146.018 47.0019C144.631 47.1438 142.933 47.1821 140.918 47.1111C141.207 45.0635 142.032 43.4528 143.402 42.2843L143.408 42.2898Z",fill:"#16342F"})),Be=t=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,e.createElement)("g",{clipPath:"url(#clip0_3860_17242)"},(0,e.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 1v2m0 18v2M4.22 4.22l1.42 1.42m12.72 12.72l1.42 1.42M1 12h2m18 0h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42M17 12a5 5 0 11-10 0 5 5 0 0110 0z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_3860_17242"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0H24V24H0z"})))),Fe=t=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",...t},(0,e.createElement)("path",{d:"M21.0009 12.79C20.8436 14.4922 20.2047 16.1144 19.1591 17.4668C18.1135 18.8192 16.7044 19.8458 15.0966 20.4265C13.4888 21.0073 11.7489 21.1181 10.0804 20.7461C8.4119 20.3741 6.88387 19.5345 5.6751 18.3258C4.46633 17.117 3.62682 15.589 3.25479 13.9205C2.88275 12.252 2.99359 10.5121 3.57434 8.9043C4.15508 7.29651 5.18171 5.88737 6.53409 4.84175C7.88647 3.79614 9.50867 3.15731 11.2109 3C10.2143 4.34827 9.73473 6.00945 9.85941 7.68141C9.98409 9.35338 10.7047 10.9251 11.8903 12.1106C13.0758 13.2961 14.6475 14.0168 16.3195 14.1415C17.9914 14.2662 19.6526 13.7866 21.0009 12.79Z",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),Ue=t=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,e.createElement)("mask",{id:"mask0_3860_17252",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,e.createElement)("path",{fill:"#D9D9D9",d:"M0 0H24V24H0z"})),(0,e.createElement)("g",{mask:"url(#mask0_3860_17252)"},(0,e.createElement)("path",{fill:"#475467",d:"M9 20c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 017 18c0-.55.196-1.02.588-1.413A1.926 1.926 0 019 16c.55 0 1.02.196 1.412.587.392.392.588.863.588 1.413s-.196 1.02-.588 1.413A1.926 1.926 0 019 20zm6 0c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0113 18c0-.55.196-1.02.588-1.413A1.926 1.926 0 0115 16c.55 0 1.02.196 1.413.587.391.392.587.863.587 1.413s-.196 1.02-.587 1.413A1.926 1.926 0 0115 20zm-6-6c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 017 12c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 10c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412 0 .55-.196 1.02-.588 1.412A1.926 1.926 0 019 14zm6 0c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 0113 12c0-.55.196-1.02.588-1.412A1.926 1.926 0 0115 10c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.926 1.926 0 0115 14zM9 8c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 017 6c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 4c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412 0 .55-.196 1.02-.588 1.412A1.926 1.926 0 019 8zm6 0c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 0113 6c0-.55.196-1.02.588-1.412A1.926 1.926 0 0115 4c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.926 1.926 0 0115 8z"}))),He="betterdocs-dark-mode",Ke=()=>Boolean(window.betterdocs_admin?.dark_mode)||"undefined"!=typeof document&&document.body.classList.contains(He),Ve=()=>{const[t,n]=(0,e.useState)(Ke);(0,e.useEffect)((()=>{var e;e=t,document.body.classList.toggle(He,!!e),document.cookie=`betterdocs_admin_dark_mode=${e?"1":"0"};path=/;max-age=31536000;samesite=lax`}),[t]);const r=(0,e.useCallback)((()=>{n((e=>!e))}),[]);return(0,e.createElement)("div",{className:"betterdocs-dashboard-header-top betterdocs-quick-setup-header-top"},(0,e.createElement)("div",{className:"betterdocs-dashboard-container"},(0,e.createElement)("div",{className:"betterdocs-row betterdocs-logo-action"},(0,e.createElement)("div",{className:"betterdocs-dashboard-header-left betterdocs-dashboard-header-items"},(0,e.createElement)("div",{className:"betterdocs-dashboard-logo"},(0,e.createElement)(Re,null))),(0,e.createElement)("div",{className:"betterdocs-dashboard-header-right betterdocs-dashboard-header-items"},(0,e.createElement)("ul",{className:"betterdocs-dashboard-header-action-list betterdocs-text-align-right"},(0,e.createElement)("li",null,(0,e.createElement)("button",{type:"button",onClick:r,className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-mode","aria-label":(0,_e.__)("Toggle dark mode","betterdocs")},t?(0,e.createElement)(Fe,null):(0,e.createElement)(Be,null))))))))};var qe=n(46942),Ye=n.n(qe);const We=t=>{const[n,r]=(0,e.useState)(!1);return(0,e.createElement)("div",{className:Ye()("wprf-control","wprf-collapse",`wprf-${t.name}-collapse`,t?.classes)},(0,e.createElement)("div",{className:"wprf-collapse-header "+(n?"show":"hide")},(0,e.createElement)("h4",{className:"wprf-collapse-title"},t?.label),(0,e.createElement)("h5",{className:"wprf-collapse-collapser",onClick:()=>r(!n)},t?.collapse_title)),(0,e.createElement)("div",{className:"wprf-collapse-body "+(n?"show":"hide")},(0,e.createElement)("span",{className:"wprf-collapse-body-inner"},t?.collapse_message)))},Qe=t=>{const n=(0,we.useBuilderContext)(),r=n?.isSubmitting,o=(0,e.useCallback)((()=>{n?.isSubmitting||(n.setSubmitting(!0),n?.values?.enable_sample_data&&xe.post("create-sample-docs",{action:"create-dummy-data"}),Ne()&&xe.post("customize/layouts",{layouts:Ae()}),xe.post("settings",{...n.values}).then((e=>{if(e?.success){document.cookie="betterdocs_insights_allowed=; expires=Thu, 01 Jan 2000 00:00:00 UTC; path=/;";try{localStorage.removeItem("betterdocs_setup_generated_docs")}catch(e){}De("success",(0,_e.__)("Changes Saved Successfully.","betterdocs")).then((()=>{const e=new URL(window.location.href);e.search="",e.searchParams.set("page","betterdocs-admin"),window.location.replace(e.href)}))}else{var t;De("nothing_changed"===e?.code?"info":"error",(0,_e.__)(null!==(t=e?.message)&&void 0!==t?t:"Something went wrong.","betterdocs"))}})).catch((()=>{De("error",(0,_e.__)("Something went wrong.","betterdocs"))})).finally((()=>{n.setSubmitting(!1),n?.config?.save_locally&&localStorage.removeItem("quickbuilder_active_tab")})))}),[n]);return(0,e.createElement)("div",{className:"betterdocs-finish"},(0,e.createElement)("div",{className:"betterdocs-finish-icon"},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),(0,e.createElement)("path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),(0,e.createElement)("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),(0,e.createElement)("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"}))),(0,e.createElement)("h3",{className:"betterdocs-finish-title"},(0,_e.__)("Save & apply your setup","betterdocs")),(0,e.createElement)("p",{className:"betterdocs-finish-text"},(0,_e.__)("Nothing is saved until you finish. Click below to store your settings, apply your configuration, and head to your BetterDocs dashboard.","betterdocs")),(0,e.createElement)("button",{type:"button",className:"betterdocs-finish-btn",onClick:o,disabled:r},r?(0,_e.__)("Finishing…","betterdocs"):(0,_e.__)("Finish setup","betterdocs")),(0,e.createElement)("p",{className:"betterdocs-finish-hint"},(0,_e.__)("You can revisit any step above before finishing.","betterdocs")))},Ze=t=>(0,e.createElement)("div",{className:`wprf-control-wrapper wprf-section-header wprf-direction-${t?.direction}`},t?.icon?(0,e.createElement)("div",{className:"wprf-icon header-icon",dangerouslySetInnerHTML:{__html:t?.icon}}):"",(0,e.createElement)("div",{className:"wprf-content"},(0,e.createElement)("h4",{className:"wprf-title",dangerouslySetInnerHTML:{__html:t.title}}),(0,e.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:t.description}})),t?.links?(0,e.createElement)("div",{className:"wprf-link-wrapper"},t?.links?.map((t=>(0,e.createElement)("a",{href:t?.url,target:"_blank",dangerouslySetInnerHTML:{__html:t?.label}})))):""),Ge=t=>{var n;return(0,e.createElement)("div",{className:"wprf-image-wrapper"},null!=t?.media?.url&&(0,e.createElement)("img",{src:t.media.url,alt:null!==(n=t?.media?.alt)&&void 0!==n?n:""}))},$e=(0,we.withLabel)((function(t){const n=Ye()("wprf-checkbox-wrap wprf-name-migration_step",t?.classes);return(0,e.createElement)("div",{className:n},(0,e.createElement)(we.GenericInput,{...t,type:"checkbox"}),(0,e.createElement)("label",{htmlFor:t.id},t.label))})),Je=n=>{const r=(0,we.validFieldProps)(n,["is_pro","visible","trigger","copyOnClick","disable","parentIndex","context","badge","popup","tags"]),o=(0,e.useCallback)((e=>r.onChange(e,{popup:n?.popup,isPro:!!n.is_pro})),[r?.value]);if(n.tags){let i=Object.values(n.tags);Boolean(n?.context?.is_pro_active)&&n?.context?.values?.multiple_kb||(i=i.filter((e=>"%knowledge_base%"!==e.value)));let a=n.value.length>0?n.value.split("/"):[];const s=t().useRef(null),c=(e,t)=>{var r;const i=s.current,c=null!==(r=i?.selectionStart)&&void 0!==r?r:0;t&&null!=a.find((t=>t===e.value))&&(a=a.filter((t=>t!==e.value)));let l=a.join("/");if(!t){let t=l.indexOf("/",c);if(-1!==t){let n=l.slice(0,t),r=l.slice(t);l=`${n}${n.endsWith("/")?"":"/"}${e.value}${r}`}else l=`${l}${l.endsWith("/")?"":"/"}${e.value}`}o({target:{type:"button",name:n.name,value:l}})};return(0,e.createElement)(e.Fragment,null,t().createElement("input",{...r,onChange:o,ref:s,type:"text"}),(0,e.createElement)("div",{className:"wprf-tags-wrapper"},i.map(((n,r)=>{let o=a.includes(n.value);return(0,e.createElement)(t().Fragment,{key:r},(0,e.createElement)("span",{className:"button button-secondary "+(o?"active":""),title:n.label,onClick:e=>c(n,o)},n.value))}))))}return t().createElement("input",{...r,onChange:o})},Xe=(t().memo(Je),(0,we.withLabel)(t().memo(Je))),et=t=>(0,e.createElement)("div",{className:"wprf-control-wrapper wprf-video-player",dangerouslySetInnerHTML:{__html:t?.video}}),tt=window.wp.element,nt=window.wp.htmlEntities,rt=({size:t=15,sw:n=1.6})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("path",{d:"M12 3l1.6 4.6L18 9l-4.4 1.4L12 15l-1.6-4.6L6 9l4.4-1.4z"}),(0,e.createElement)("path",{d:"M18.5 14.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z"})),ot=({size:t=22})=>(0,e.createElement)("span",{className:"betterdocs-sd-spinner",style:{width:t,height:t},"aria-hidden":"true"}),it=({size:t=16,sw:n=1.7})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("path",{d:"M18 6 6 18M6 6l12 12"})),at=({size:t=16,sw:n=2.4})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("path",{d:"M20 6 9 17l-5-5"})),st=({size:t=16,sw:n=2.2})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("path",{d:"M5 12h14M13 5l7 7-7 7"})),ct=({size:t=16,sw:n=1.7})=>(0,e.createElement)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,e.createElement)("path",{d:"M14 2v6h6M9 13h6M9 17h6"})),lt=({label:t})=>(0,e.createElement)("span",{className:"betterdocs-sd-badge"},(0,e.createElement)(rt,{size:14})," ",t||(0,_e.__)("AI-powered — no API key needed","betterdocs")),ut=({children:t,onClick:n,disabled:r,block:o})=>(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-gen-btn"+(o?" betterdocs-sd-gen-btn--block":""),onClick:r?void 0:n,disabled:r},(0,e.createElement)(rt,{size:16})," ",t||(0,_e.__)("Generate Sample Docs","betterdocs")),pt=({title:t,sub:n})=>(0,e.createElement)("div",{className:"betterdocs-sd-detecting betterdocs-sd-fade"},(0,e.createElement)("div",{className:"betterdocs-sd-detecting-orb"},(0,e.createElement)(ot,{size:64}),(0,e.createElement)("span",{className:"betterdocs-sd-detecting-spark"},(0,e.createElement)(rt,{size:24}))),(0,e.createElement)("div",{className:"betterdocs-sd-detecting-title"},t||(0,_e.__)("Analyzing your site…","betterdocs")),(0,e.createElement)("div",{className:"betterdocs-sd-detecting-sub"},n||(0,_e.__)("Detecting your site type and the topics your visitors ask about.","betterdocs")),(0,e.createElement)("div",{className:"betterdocs-sd-detecting-dots"},[0,1,2].map((t=>(0,e.createElement)("span",{key:t,style:{animationDelay:.18*t+"s"}})))));function dt({cats:t,setCats:n}){return t.length?(0,e.createElement)("div",{className:"betterdocs-sd-chips"},t.map((t=>(0,e.createElement)("span",{key:t.id,className:"betterdocs-sd-chip betterdocs-sd-pop"},(0,nt.decodeEntities)(t.name),(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-chip-remove",title:(0,_e.__)("Remove","betterdocs"),onClick:()=>{return e=t.id,n((t=>t.filter((t=>t.id!==e))));var e}},(0,e.createElement)(it,{size:14,sw:2.4})))))):(0,e.createElement)("p",{className:"betterdocs-sd-chips-empty"},(0,_e.__)("All suggestions removed. Reload this page to start over with a fresh set.","betterdocs"))}const ft=()=>(0,e.createElement)("div",{className:"betterdocs-sd-quota betterdocs-sd-fade"},(0,e.createElement)("span",{className:"betterdocs-sd-quota-icon"},(0,e.createElement)(rt,{size:16})),(0,e.createElement)("div",{className:"betterdocs-sd-quota-text"},(0,_e.__)("You've used your free AI generation. Add your OpenAI API key in Settings to generate more — your suggested categories are saved below.","betterdocs")));function ht({profile:t,cats:n,setCats:r,quota:o,contentType:i="docs"}){const a=t?.site||{},s=(0,nt.decodeEntities)(t?.niche_label&&String(t.niche_label)||function(e){const t={ecommerce:(0,_e.__)("WooCommerce store","betterdocs"),course_lms:(0,_e.__)("course / LMS site","betterdocs"),digital_downloads:(0,_e.__)("digital downloads store","betterdocs"),membership:(0,_e.__)("membership site","betterdocs"),community:(0,_e.__)("community site","betterdocs"),business_site:(0,_e.__)("business site","betterdocs"),general:(0,_e.__)("website","betterdocs")};return t[e]||t.general}(t?.type)),c=(t?.signals?.active_plugins||[]).slice(0,5),l=n.reduce(((e,t)=>e+(t.articles?.length||0)),0),u=(0,nt.decodeEntities)(a.title||(0,_e.__)("your site","betterdocs")),p="product_faq"===i?(0,_e.__)("We scanned %s and generated starter product FAQs tailored to what shoppers ask before making a purchase.","betterdocs"):"faq"===i?(0,_e.__)("We scanned %s and prepared a starter list of FAQs tailored to what your visitors usually ask.","betterdocs"):(0,_e.__)("We scanned %s and prepared a starter knowledge base tailored to what your visitors usually ask.","betterdocs"),d=(0,_e.sprintf)((0,_e._n)("%d category","%d categories",n.length,"betterdocs"),n.length),f=bt(l,i);return(0,e.createElement)("div",{className:"betterdocs-sd-profile betterdocs-sd-fade"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"betterdocs-sd-profile-head"},(0,e.createElement)("h3",{className:"betterdocs-sd-profile-title"},(0,_e.sprintf)((0,_e.__)("We detected %s","betterdocs"),function(e){const t=String(e||"").trim();return t?/^[aeiou]/i.test(t)?`an ${t}`:`a ${t}`:(0,_e.__)("a website","betterdocs")}(s)))),(0,e.createElement)("p",{className:"betterdocs-sd-profile-blurb"},(0,_e.sprintf)(p,u)),c.length>0&&(0,e.createElement)("div",{className:"betterdocs-sd-signals"},c.map((t=>(0,e.createElement)("span",{key:t,className:"betterdocs-sd-signal"},(0,e.createElement)("span",{className:"betterdocs-sd-signal-dot"}),t))))),(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"betterdocs-sd-profile-subhead"},(0,e.createElement)("span",{className:"betterdocs-sd-profile-subtitle"},(0,_e.__)("Suggested categories","betterdocs")),(0,e.createElement)("span",{className:"betterdocs-sd-profile-count"},`${d}, ${f}`)),(0,e.createElement)(dt,{cats:n,setCats:r}),(0,e.createElement)("p",{className:"betterdocs-sd-privacy-note"},(0,_e.__)("We send your site type and category suggestions to BetterDocs AI. No customer personal data is included.","betterdocs"))),o&&(0,e.createElement)(ft,null))}function mt({cats:t,rows:n,pct:r,finalizing:o,done:i=!1,contentType:a="docs"}){const s={docs:{building:(0,_e.__)("Building your knowledge base…","betterdocs"),finalizing:(0,_e.__)("Finalizing your knowledge base…","betterdocs"),ready:(0,_e.__)("Knowledge base is ready","betterdocs")},faq:{building:(0,_e.__)("Building your FAQs…","betterdocs"),finalizing:(0,_e.__)("Finalizing your FAQs…","betterdocs"),ready:(0,_e.__)("FAQs are ready","betterdocs")},product_faq:{building:(0,_e.__)("Building your product FAQs…","betterdocs"),finalizing:(0,_e.__)("Finalizing your product FAQs…","betterdocs"),ready:(0,_e.__)("Product FAQs are ready","betterdocs")}},c=s[a]||s.docs;return(0,e.createElement)("div",{className:"betterdocs-sd-fade"},(0,e.createElement)("div",{className:"betterdocs-sd-progress-head"},(0,e.createElement)("span",{className:"betterdocs-sd-progress-label"},i?c.ready:o||100===r?c.finalizing:c.building),(0,e.createElement)("span",{className:"betterdocs-sd-progress-pct"},r,"%")),(0,e.createElement)("div",{className:"betterdocs-sd-progress-track"},(0,e.createElement)("div",{className:"betterdocs-sd-progress-fill",style:{width:`${r}%`}})),(0,e.createElement)("div",{className:"betterdocs-sd-progress-rows"},t.map((t=>{const r=(e=>n.find((t=>t.id===e.id))||{state:"pending",written:0})(t),o="done"===r.state,i="creating"===r.state||"writing"===r.state,s="creating"===r.state?(0,_e.sprintf)((0,_e.__)("Creating %s…","betterdocs"),(0,nt.decodeEntities)(t.name)):"writing"===r.state?"docs"===a?(0,_e.sprintf)((0,_e.__)("Writing %1$d/%2$d docs…","betterdocs"),r.written,t.articles.length):(0,_e.sprintf)((0,_e.__)("Writing %1$d/%2$d questions…","betterdocs"),r.written,t.articles.length):o?"docs"===a?(0,_e.sprintf)((0,_e._n)("%d doc ready","%d docs ready",t.articles.length,"betterdocs"),t.articles.length):(0,_e.sprintf)((0,_e._n)("%d question ready","%d questions ready",t.articles.length,"betterdocs"),t.articles.length):(0,_e.__)("Queued","betterdocs");return(0,e.createElement)("div",{key:t.id,className:`betterdocs-sd-progress-row${i?" is-live":""}${"pending"===r.state?" is-pending":""}`},(0,e.createElement)("div",{className:"betterdocs-sd-progress-row-meta"},(0,e.createElement)("div",{className:"betterdocs-sd-progress-row-name"},(0,nt.decodeEntities)(t.name)),(0,e.createElement)("div",{className:"betterdocs-sd-progress-row-sub"+(o?" is-done":"")},s)),(0,e.createElement)("div",{className:"betterdocs-sd-progress-row-state"},o?(0,e.createElement)("span",{className:"betterdocs-sd-progress-check"},(0,e.createElement)(at,{size:14,sw:3})):i?(0,e.createElement)(ot,{size:20}):(0,e.createElement)("span",{className:"betterdocs-sd-progress-dot"})))}))),(o||100===r)&&(0,e.createElement)("div",{className:"betterdocs-sd-progress-finalizing"+(i?" is-done":"")},(0,e.createElement)("span",{className:"betterdocs-sd-progress-finalizing-icon"},i?(0,e.createElement)(at,{size:14,sw:3}):(0,e.createElement)(ot,{size:18})),(0,e.createElement)("span",{className:"betterdocs-sd-progress-finalizing-text"},i?c.ready:c.finalizing)))}function gt({cats:t,contentType:n="docs"}){return(0,e.createElement)("div",{className:"betterdocs-sd-preview"},t.map((t=>(0,e.createElement)("div",{key:t.id,className:"betterdocs-sd-preview-group betterdocs-sd-fade"},(0,e.createElement)("div",{className:"betterdocs-sd-preview-head"},(0,e.createElement)("span",{className:"betterdocs-sd-preview-name"},(0,nt.decodeEntities)(t.name)),(0,e.createElement)("span",{className:"betterdocs-sd-preview-badge"},bt(t.articles.length,n))),(0,e.createElement)("div",null,t.articles.map(((t,n)=>(0,e.createElement)("div",{key:n,className:"betterdocs-sd-preview-article"},(0,e.createElement)("span",{className:"betterdocs-sd-preview-article-icon"},(0,e.createElement)(ct,{size:16})),(0,e.createElement)("span",{className:"betterdocs-sd-preview-article-title"},vt(t)),(0,e.createElement)("span",{className:"betterdocs-sd-preview-article-draft"},(0,_e.__)("Draft","betterdocs"))))))))))}function yt({cats:t}){return(0,e.createElement)("div",{className:"betterdocs-sd-populated"},(0,e.createElement)("div",{className:"betterdocs-sd-populated-header"},(0,e.createElement)("div",{className:"betterdocs-sd-populated-header-left"},(0,e.createElement)("h2",{className:"betterdocs-sd-populated-title"},(0,_e.__)("All Docs","betterdocs")),(0,e.createElement)("span",{className:"betterdocs-sd-populated-badge"},(0,_e.__)("AI-generated","betterdocs")))),(0,e.createElement)("div",{className:"betterdocs-sd-populated-grid betterdocs-row"},t.map((t=>(0,e.createElement)("div",{key:t.id,className:"betterdocs-col betterdocs-col-md-4 betterdocs-sd-fade"},(0,e.createElement)("div",{className:"betterdocs-sd-cat-wrap"},(0,e.createElement)("div",{className:"betterdocs-sd-cat-header"},(0,e.createElement)("h3",{className:"betterdocs-sd-cat-name"},(0,nt.decodeEntities)(t.name))),(0,e.createElement)("ul",{className:"betterdocs-sd-cat-list"},t.articles.map(((t,n)=>(0,e.createElement)("li",{key:n},(0,e.createElement)("span",{className:"betterdocs-sd-doc-drag"},(0,e.createElement)(Ue,null)),(0,e.createElement)("span",{className:"betterdocs-sd-doc-title"},vt(t))))))))))))}function vt(e){return(0,nt.decodeEntities)("string"==typeof e?e:e?.title||"")}function bt(e,t="docs"){return"docs"===t?(0,_e.sprintf)((0,_e._n)("%d doc","%d docs",e,"betterdocs"),e):(0,_e.sprintf)((0,_e._n)("%d question","%d questions",e,"betterdocs"),e)}function wt(){if("undefined"!=typeof window){if(window.betterdocs_admin?.ai_sample_docs)return{base:window.betterdocs_admin.ai_sample_docs.rest_base,restUrl:window.betterdocs_admin.rest_url,nonce:window.betterdocs_admin.nonce,enabled:!!window.betterdocs_admin.ai_sample_docs.enabled};if(window.betterdocsSampleDocs)return{base:window.betterdocsSampleDocs.rest_base,restUrl:window.betterdocsSampleDocs.rest_url,nonce:window.betterdocsSampleDocs.nonce,enabled:!!window.betterdocsSampleDocs.enabled}}return{base:"",restUrl:"/wp-json/",nonce:"",enabled:!1}}async function Et(e,t){const{base:n,nonce:r}=wt(),o=await wp.apiFetch({url:`${n}/${e}`,method:"POST",headers:r?{"X-WP-Nonce":r}:{},data:t});return o&&"object"==typeof o&&"data"in o?o.data:o}const _t=e=>Et("detect",{content_type:e});function St({contentType:t="docs",onClose:n,onComplete:r}){const[o,i]=(0,tt.useState)("detecting"),[a,s]=(0,tt.useState)(null),[c,l]=(0,tt.useState)([]),[u,p]=(0,tt.useState)([]),[d,f]=(0,tt.useState)(!1),[h,m]=(0,tt.useState)(null),[g,y]=(0,tt.useState)(null),[v,b]=(0,tt.useState)(!1),w=(0,tt.useRef)(null),[E,_]=(0,tt.useState)(!1),S=(0,tt.useRef)(!0),C=(0,tt.useRef)(!1);(0,tt.useEffect)((()=>()=>{S.current=!1}),[]);const x="docs"!==t,O=u.reduce(((e,t)=>e+(t.articles?.length||0)),0);return(0,tt.useEffect)((()=>{const e=e=>"Escape"===e.key&&n();return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[n]),(0,tt.useEffect)((()=>{let e=!0;const n=Date.now();return _t(t).then((t=>{if(!e)return;const r=Math.max(0,2e3-(Date.now()-n));setTimeout((()=>{e&&(s(t.profile),l((t.categories||[]).map((e=>({...e})))),i("profile"))}),r)})).catch((t=>{e&&(m(t?.message||(0,_e.__)("Could not analyze your site.","betterdocs")),i("error"))})),()=>{e=!1}}),[]),(0,e.createElement)("div",{className:"betterdocs-sd-overlay",onClick:n},(0,e.createElement)("div",{className:"betterdocs-sd-modal betterdocs-sd-pop",onClick:e=>e.stopPropagation()},(0,e.createElement)("div",{className:"betterdocs-sd-modal-header"},(0,e.createElement)("span",{className:"betterdocs-sd-modal-spark"},(0,e.createElement)(rt,{size:18})),(0,e.createElement)("div",{className:"betterdocs-sd-modal-heading"},(0,e.createElement)("div",{className:"betterdocs-sd-modal-title"},function(e,t){switch(e){case"detecting":case"profile":return t?(0,_e.__)("Generate sample FAQs","betterdocs"):(0,_e.__)("Generate sample docs","betterdocs");case"generating":return t?(0,_e.__)("Generating your FAQs","betterdocs"):(0,_e.__)("Generating your docs","betterdocs");case"preview":return(0,_e.__)("Preview & confirm","betterdocs");case"success":return(0,_e.__)("All done","betterdocs");case"error":return(0,_e.__)("Something went wrong","betterdocs");default:return""}}(o,x)),(0,e.createElement)("div",{className:"betterdocs-sd-modal-sub"},(0,_e.__)("BetterDocs AI · hosted, no API key required","betterdocs"))),(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-modal-close",onClick:n},(0,e.createElement)(it,{size:17}))),(0,e.createElement)("div",{className:"betterdocs-sd-modal-body"},"detecting"===o&&(0,e.createElement)(pt,null),"profile"===o&&(0,e.createElement)(ht,{profile:a,cats:c,setCats:l,quota:d,contentType:t}),"generating"===o&&(0,e.createElement)(Ct,{cats:c,ready:E,onDone:()=>{p(w.current||[]),i("preview")},contentType:t}),"preview"===o&&(0,e.createElement)("div",{className:"betterdocs-sd-fade"},(0,e.createElement)("div",{className:"betterdocs-sd-preview-intro"},(0,e.createElement)("div",{className:"betterdocs-sd-preview-intro-title"},x?(0,_e.__)("Your starter FAQs are ready","betterdocs"):(0,_e.__)("Your starter knowledge base is ready","betterdocs")),(0,e.createElement)("div",{className:"betterdocs-sd-preview-intro-sub"},(0,_e.sprintf)((0,_e._n)("Review the %d drafted item, then insert it.","Review the %d drafted items, then insert them all.",O,"betterdocs"),O))),(0,e.createElement)(gt,{cats:u,contentType:t})),"success"===o&&(0,e.createElement)("div",{className:"betterdocs-sd-success betterdocs-sd-fade"},(0,e.createElement)("span",{className:"betterdocs-sd-success-check"},(0,e.createElement)(at,{size:26,sw:2.6})),(0,e.createElement)("div",{className:"betterdocs-sd-success-title"},x?(0,_e.__)("Sample FAQs created","betterdocs"):(0,_e.__)("Sample docs created","betterdocs")),(0,e.createElement)("div",{className:"betterdocs-sd-success-sub"},g?x?(0,_e.sprintf)((0,_e.__)("%1$d FAQ groups · %2$d questions added.","betterdocs"),g.categories,g.articles):(0,_e.sprintf)((0,_e.__)("%1$d categories · %2$d docs added to your knowledge base.","betterdocs"),g.categories,g.articles):(0,_e.__)("Added successfully.","betterdocs"))),"error"===o&&(0,e.createElement)("div",{className:"betterdocs-sd-error betterdocs-sd-fade"},(0,e.createElement)("div",{className:"betterdocs-sd-error-title"},h),(0,e.createElement)("div",{className:"betterdocs-sd-error-sub"},(0,_e.__)("You can try again, or close this and use the classic sample data instead.","betterdocs")))),"detecting"!==o&&(0,e.createElement)("div",{className:"betterdocs-sd-modal-footer"},"generating"===o&&(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-ghost",onClick:()=>{C.current=!0,w.current=null,_(!1),i("profile")}},(0,_e.__)("Cancel","betterdocs")),"profile"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-ghost",onClick:n},(0,_e.__)("Cancel","betterdocs")),d?(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-primary",onClick:()=>{const e="undefined"!=typeof window&&window.betterdocs_admin?.admin_url||"";window.location.href=`${e}admin.php?page=betterdocs-settings&tab=tab-betterdocs-ai`}},(0,_e.__)("Add API key in Settings","betterdocs")," ",(0,e.createElement)(st,{size:16})):(0,e.createElement)(ut,{onClick:()=>{var e;w.current=null,C.current=!1,_(!1),i("generating"),(e={content_type:t,profile:a,categories:c},Et("generate",e)).then((e=>{!C.current&&S.current&&(w.current=function(e,t){return(t||[]).map(((t,n)=>{const r=e[n]||{};return{id:r.id||"g"+n,name:t.name||r.name,icon:r.icon||"book",color:r.color||"#00B884",slug:t.slug,description:t.description,articles:t.articles||[]}}))}(c,e.categories),_(!0))})).catch((e=>{!C.current&&S.current&&("quota_exceeded"===e?.code?(f(!0),i("profile")):(m(e?.message||(0,_e.__)("The AI service could not generate docs.","betterdocs")),i("error")))}))},disabled:0===c.length},x?(0,_e.__)("Generate My FAQs","betterdocs"):(0,_e.__)("Generate My Docs","betterdocs"))),"preview"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-discard",onClick:n},(0,_e.__)("Discard","betterdocs")),(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-primary",onClick:()=>{var e;b(!0),(e={content_type:t,categories:u},Et("insert",e)).then((e=>{y(e),i("success")})).catch((e=>{m(e?.message||(0,_e.__)("Could not insert the docs.","betterdocs")),i("error")})).finally((()=>b(!1)))},disabled:v},(0,e.createElement)(at,{size:16,sw:2.6})," ",v?(0,_e.__)("Inserting…","betterdocs"):x?(0,_e.__)("Insert all FAQs","betterdocs"):(0,_e.__)("Insert all docs","betterdocs"))),"success"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-ghost",onClick:()=>{(e=>Et("undo",{content_type:e}))(t).finally((()=>{r?r({removed:!0}):n()}))}},x?(0,_e.__)("Remove sample FAQs","betterdocs"):(0,_e.__)("Remove sample docs","betterdocs")),(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-primary",onClick:()=>{r?r({...g||{inserted:!0},categories:u}):n()}},x?(0,_e.__)("View my FAQs","betterdocs"):(0,_e.__)("View my docs","betterdocs"))),"error"===o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-ghost",onClick:n},(0,_e.__)("Close","betterdocs")),(0,e.createElement)("button",{type:"button",className:"betterdocs-sd-btn-primary",onClick:()=>{m(null),i("detecting"),function(e,t,n,r,o,i){const a=Date.now();_t(i).then((o=>{if(!e.current)return;const i=Math.max(0,2e3-(Date.now()-a));setTimeout((()=>{e.current&&(t(o.profile),n((o.categories||[]).map((e=>({...e})))),r("profile"))}),i)})).catch((t=>{e.current&&(o(t?.message||(0,_e.__)("Could not analyze your site.","betterdocs")),r("error"))}))}(S,s,l,i,m,t)}},(0,_e.__)("Try again","betterdocs"))))))}function Ct({cats:t,ready:n,onDone:r,contentType:o}){const{rows:i,pct:a,finalizing:s,done:c}=function(e,t,n){const[r,o]=(0,tt.useState)((()=>e.map((e=>({id:e.id,state:"pending",written:0}))))),[i,a]=(0,tt.useState)(0),[s,c]=(0,tt.useState)(!1),l=(0,tt.useRef)(n);l.current=n;const u=(0,tt.useRef)(!1);return(0,tt.useEffect)((()=>{let t=!0;const n=[],r=(e,r)=>{const o=setTimeout((()=>t&&r()),e);n.push(o)};o(e.map((e=>({id:e.id,state:"pending",written:0})))),a(0),c(!1),u.current=!1;const i=e.length||1,s=t=>{t>=e.length?c(!0):(o((e=>e.map(((e,n)=>n===t?{...e,state:"creating"}:e)))),r(480,(()=>{o((e=>e.map(((e,n)=>n===t?{...e,state:"writing"}:e))));const n=e[t].articles.length,c=e=>{o((n=>n.map(((n,r)=>r===t?{...n,written:e}:n)))),e<n?r(300,(()=>c(e+1))):r(360,(()=>{o((e=>e.map(((e,n)=>n===t?{...e,state:"done"}:e)))),a(Math.round((t+1)/i*100)),r(280,(()=>s(t+1)))}))};r(320,(()=>c(1)))})))};return r(450,(()=>s(0))),()=>{t=!1,n.forEach(clearTimeout)}}),[]),(0,tt.useEffect)((()=>{if(u.current||!s||!t)return;u.current=!0,a(100);const e=setTimeout((()=>l.current&&l.current()),300);return()=>clearTimeout(e)}),[s,t]),{rows:r,pct:i,finalizing:s&&!t,done:s&&t}}(t,n,r);return(0,e.createElement)(mt,{cats:t,rows:i,pct:a,finalizing:s,done:c,contentType:o})}const xt="betterdocs_setup_generated_docs",Ot=e=>(e||[]).map(((e,t)=>({id:e.id||"sd_"+t,name:(0,nt.decodeEntities)(e.name||""),icon:e.icon||"book",color:e.color||"#00B884",articles:(e.articles||[]).map((e=>(0,nt.decodeEntities)("string"==typeof e?e:e?.title||"")))}))),kt=()=>{try{const e=window.localStorage?.getItem(xt),t=e?JSON.parse(e):null;return Array.isArray(t)&&t.length?t:null}catch(e){return null}},Mt=function(t){const[n,r]=(0,tt.useState)(!1),[o,i]=(0,tt.useState)(kt),[a,s]=(0,tt.useState)(null),c=wt().enabled;if((0,tt.useEffect)((()=>{if(o)return;let e=!0;return async function(){const{restUrl:e,nonce:t}=wt(),n=t?{"X-WP-Nonce":t}:{};try{const[t,r]=await Promise.all([wp.apiFetch({url:`${e}wp/v2/doc_category?per_page=100&orderby=count&order=desc`,headers:n}),wp.apiFetch({url:`${e}betterdocs/v1/doc-categories?per_page=100`,headers:n})]),o=r&&r.data||{};return(Array.isArray(t)?t:[]).map((e=>({id:"cat_"+e.id,name:e.name,icon:"book",color:"#00B884",articles:(o[e.id]||[]).map((e=>"string"==typeof e?.title?e.title:e?.title?.rendered||""))}))).filter((e=>e.articles.length>0))}catch(e){return[]}}().then((t=>{e&&t&&t.length&&s(Ot(t))})),()=>{e=!1}}),[]),!c)return null;const l=o||a,u=l?l.reduce(((e,t)=>e+(t.articles?.length||0)),0):0;return(0,e.createElement)("div",{className:`betterdocs-sd-qs ${t?.classes||""}`},!l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"betterdocs-sd-promo betterdocs-sd-fade"},(0,e.createElement)("span",{className:"betterdocs-sd-promo-glow","aria-hidden":"true"}),(0,e.createElement)("span",{className:"betterdocs-sd-promo-icon"},(0,e.createElement)(rt,{size:28})),(0,e.createElement)("div",{className:"betterdocs-sd-promo-body"},(0,e.createElement)("div",{className:"betterdocs-sd-promo-head"},(0,e.createElement)("h4",{className:"betterdocs-sd-promo-title"},(0,_e.__)("Skip the blank page","betterdocs")),(0,e.createElement)(lt,null)),(0,e.createElement)("p",{className:"betterdocs-sd-promo-text"},(0,_e.__)("BetterDocs can read your site and generate a tailored starter knowledge base — categories and draft articles — in about a minute.","betterdocs"))),(0,e.createElement)(ut,{onClick:()=>r(!0)},(0,_e.__)("Generate Sample Docs","betterdocs"))),(0,e.createElement)("div",{className:"betterdocs-sd-manual-divider"},(0,e.createElement)("span",{className:"betterdocs-sd-manual-line"}),(0,e.createElement)("span",{className:"betterdocs-sd-manual-label"},(0,_e.__)("or build it yourself","betterdocs")),(0,e.createElement)("span",{className:"betterdocs-sd-manual-line"})),(0,e.createElement)("div",{className:"betterdocs-sd-manual"},(0,e.createElement)("span",{className:"betterdocs-sd-manual-icon"},(0,e.createElement)(ct,{size:24})),(0,e.createElement)("div",{className:"betterdocs-sd-manual-title"},(0,_e.__)("No categories yet","betterdocs")),(0,e.createElement)("div",{className:"betterdocs-sd-manual-text"},(0,_e.__)("Add your first category and articles manually from the All Docs screen after setup.","betterdocs")))),l&&l.length>0&&(0,e.createElement)("div",{className:"betterdocs-sd-qs-result"},(0,e.createElement)("div",{className:"betterdocs-sd-qs-result-head"},(0,_e.sprintf)(o?(0,_e.__)("%1$d categories · %2$d docs created","betterdocs"):(0,_e.__)("%1$d categories · %2$d docs","betterdocs"),l.length,u)),(0,e.createElement)(yt,{cats:l})),n&&(0,e.createElement)(St,{contentType:"docs",onClose:()=>r(!1),onComplete:e=>{if(r(!1),e?.categories?.length){const t=Ot(e.categories);i(t);try{window.localStorage?.setItem(xt,JSON.stringify(t))}catch(e){}}}}))};function jt({group:t}){const[n,r]=(0,tt.useState)(t.current),o=t.cols||4;return(0,tt.useEffect)((()=>{Te(t.key,t.current)}),[]),(0,e.createElement)("section",{className:"betterdocs-sd-layout-group"},(0,e.createElement)("div",{className:"betterdocs-sd-layout-group-head"},(0,e.createElement)("h2",{className:"betterdocs-sd-layout-group-title"},t.title),t.hint&&(0,e.createElement)("span",{className:"betterdocs-sd-layout-group-hint"},t.hint)),(0,e.createElement)("div",{className:"betterdocs-sd-layout-grid",style:{gridTemplateColumns:`repeat(${o}, minmax(0, 1fr))`,maxWidth:o<=3?760:void 0}},t.options.map((o=>(0,e.createElement)("button",{type:"button",key:o.value,className:"betterdocs-sd-layout-card"+(o.value===n?" is-selected":""),onClick:()=>{var e;(e=o.value)!==n&&(r(e),Te(t.key,e))},"aria-pressed":o.value===n},(0,e.createElement)("span",{className:"betterdocs-sd-layout-thumb"},(0,e.createElement)("img",{src:o.image,alt:o.label,loading:"lazy"}),o.value===n&&(0,e.createElement)("span",{className:"betterdocs-sd-layout-check"},(0,e.createElement)(at,{size:14,sw:3}))),(0,e.createElement)("span",{className:"betterdocs-sd-layout-name"},o.label))))))}const Dt=function(t){const{groups:n}="undefined"!=typeof window&&window.betterdocsCustomizeLayouts||{};return n?(0,e.createElement)("div",{className:`betterdocs-sd-layouts ${t?.classes||""}`},Object.keys(n).map((t=>(0,e.createElement)(jt,{key:t,group:n[t]})))):null};(0,F.addFilter)("custom_field","BetterDocs",((t,n,r)=>{switch(n){case"header":return(0,e.createElement)(Ze,{...r});case"migration":return(0,e.createElement)($e,{...r});case"image":return(0,e.createElement)(Ge,{...r});case"finish_panel":return(0,e.createElement)(Qe,{...r});case"collapse":return(0,e.createElement)(We,{...r});case"video-player":return(0,e.createElement)(et,{...r});case"permalink_structure":return(0,e.createElement)(Xe,{...r});case"sample_docs_generator":return(0,e.createElement)(Mt,{...r});case"layout_customizer":return(0,e.createElement)(Dt,{...r});default:return(0,e.createElement)(e.Fragment,null)}}));const It=new class{constructor(e={}){this.queryCache=e.queryCache||new N,this.mutationCache=e.mutationCache||new P,this.logger=e.logger||E,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=C.subscribe((()=>{C.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=O.subscribe((()=>{O.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=a(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=i(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=i(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=a(e,t),r=this.queryCache;_.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,o]=a(e,t,n),i=this.queryCache,s={type:"active",...r};return _.batch((()=>(i.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(s,o))))}cancelQueries(e,t,n){const[r,i={}]=a(e,t,n);void 0===i.revert&&(i.revert=!0);const s=_.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));return Promise.all(s).then(o).catch(o)}invalidateQueries(e,t,n){const[r,o]=a(e,t,n);return _.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)}))}refetchQueries(e,t,n){const[r,i]=a(e,t,n),s=_.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let c=Promise.all(s).then(o);return null!=i&&i.throwOnError||(c=c.catch(o)),c}fetchQuery(e,t,n){const r=i(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(o).catch(o)}fetchInfiniteQuery(e,t,n){const r=i(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,l=null==c?void 0:c.pageParam,u="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),d=(null==(i=e.state.data)?void 0:i.pages)||[],f=(null==(a=e.state.data)?void 0:a.pageParams)||[];let h=f,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(h=r?[t,...h]:[...h,t],r?[n,...e]:[...e,n]),v=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=g(i);return Promise.resolve(s).then((e=>y(t,r,e,o)))};let b;if(d.length)if(u){const t=void 0!==l,n=t?l:z(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==l,n=t?l:(w=e.options,E=d,null==w.getPreviousPageParam?void 0:w.getPreviousPageParam(E[0],E));b=v(d,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=s&&d[0]&&!s(d[0],0,d)?Promise.resolve(y([],f[0],d[0])):v([],t,f[0]);for(let n=1;n<d.length;n++)b=b.then((r=>{if(!s||!d[n]||s(d[n],n,d)){const o=t?f[n]:z(e.options,r);return v(r,t,o)}return Promise.resolve(y(r,f[n],d[n]))}))}else b=v([]);var w,E;return b.then((e=>({pages:e,pageParams:h})))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(o).catch(o)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>u(e)===u(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>p(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>u(e)===u(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>p(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=l(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}},Tt=document.getElementById("betterdocsQuickSetupBuilder");Tt&&(0,U.H)(Tt).render((0,e.createElement)((({client:t,children:n,context:r,contextSharing:o=!1})=>{e.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const i=function(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=R),window.ReactQueryClientContext):R)}(r,o);return e.createElement(B.Provider,{value:!r&&o},e.createElement(i.Provider,{value:t},n))}),{client:It},(0,e.createElement)(le,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ve,null),(0,e.createElement)("div",{className:"betterdocs-settings-wrapper"},(0,e.createElement)(ze,null)))),null)))})()})(); |