223 lines
221 KiB
JavaScript
223 lines
221 KiB
JavaScript
/*! For license information please see c30dc89c64400a4d4e76.js.LICENSE.txt */
|
||
(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[80195],{819785:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var o=r(610329),a=r(704516),u=r(402641),s=r(767953),c=r(142307),l=r(314289),f=r(25027),p=r(168642),h=r(143393),g=r(861173),d=p("draft_tree_data_support"),y=d?s:u,v=h.List,m=h.Repeat,_={insertAtomicBlock:function(t,e,r){var i=t.getCurrentContent(),u=t.getSelection(),s=c.removeRange(i,u,"backward"),p=s.getSelectionAfter(),h=c.splitBlock(s,p),g=h.getSelectionAfter(),_=c.setBlockType(h,g,"atomic"),b=a.create({entity:e}),S={key:f(),
|
||
type:"atomic",text:r,characterList:v(m(b,r.length))},w={key:f(),type:"unstyled"};if(d){S=n({},S,{nextSibling:w.key});w=n({},w,{prevSibling:S.key})}var x=[new y(S),new y(w)],k=o.createFromArray(x),C=c.replaceWithFragment(_,g,k),E=C.merge({selectionBefore:u,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return l.push(t,E,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var i,o=t.getCurrentContent(),a=t.getSelection();if("before"===n||"after"===n){var u=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());i=g(o,e,u,n)}else{var s=c.removeRange(o,r,"backward"),f=s.getSelectionAfter(),p=s.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())i=g(s,e,p,"before");else if(f.getEndOffset()===p.getLength())i=g(s,e,p,"after");else{var h=c.splitBlock(s,f),d=h.getSelectionAfter(),y=h.getBlockForKey(d.getFocusKey());i=g(h,e,y,"before")}}var v=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return l.push(t,v,"move-block")}};t.exports=_},
|
||
610329:(t,e,r)=>{"use strict";var n=r(143393).OrderedMap,i={createFromArray:function(t){return n(t.map((function(t){return[t.getKey(),t]})))}};t.exports=i},534365:(t,e,r)=>{"use strict";var n=r(629407),i=r(143393),o=i.List,a=i.Repeat,u=i.Record,s=function(){return!0},c=u({start:null,end:null}),l=u({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(t,e,r){var i=e.getLength();if(!i)return o.of(new l({start:0,end:0,decoratorKey:null,leaves:o.of(new c({start:0,end:0}))}));var u=[],f=r?r.getDecorations(e,t):o(a(null,i)),g=e.getCharacterList();n(f,h,s,(function(t,e){u.push(new l({start:t,end:e,decoratorKey:f.get(t),leaves:p(g.slice(t,e).toList(),t)}))}));return o(u)}};function p(t,e){var r=[],i=t.map((function(t){return t.getStyle()})).toList();n(i,h,s,(function(t,n){r.push(new c({start:t+e,end:n+e}))}));return o(r)}function h(t,e){return t===e}t.exports=f},704516:(t,e,r)=>{"use strict";var n=r(143393),i=n.Map,o=n.OrderedSet,a=n.Record,u=o(),s={style:u,entity:null
|
||
},c=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.getStyle=function(){return this.get("style")};r.getEntity=function(){return this.get("entity")};r.hasStyle=function(t){return this.getStyle().includes(t)};e.applyStyle=function(t,r){var n=t.set("style",t.getStyle().add(r));return e.create(n)};e.removeStyle=function(t,r){var n=t.set("style",t.getStyle().remove(r));return e.create(n)};e.applyEntity=function(t,r){var n=t.getEntity()===r?t:t.set("entity",r);return e.create(n)};e.create=function(t){if(!t)return l;var r=i({style:u,entity:null}).merge(t),n=f.get(r);if(n)return n;var o=new e(r);f=f.set(r,o);return o};return e}(a(s)),l=new c,f=i([[i(s),l]]);c.EMPTY=l;t.exports=c},225369:(t,e,r)=>{"use strict";var n=r(143393).List,i=function(){function t(t){!function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0
|
||
}):t[e]=r}(this,"_decorators",void 0);this._decorators=t.slice()}var e=t.prototype;e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);this._decorators.forEach((function(n,i){var o=0;(0,n.strategy)(t,(function(t,e){if(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0}(r,t,e)){!function(t,e,r,n){for(var i=e;i<r;i++)t[i]=n}(r,t,e,i+"."+o);o++}}),e)}));return n(r)};e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component};e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props};return t}();t.exports=i},402641:(t,e,r)=>{"use strict";var n=r(704516),i=r(629407),o=r(143393),a=o.List,u=o.Map,s=o.OrderedSet,c=o.Record,l=o.Repeat,f=s(),p=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}),h=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(e){return t.call(this,function(t){
|
||
if(!t)return t;var e=t.characterList,r=t.text;r&&!e&&(t.characterList=a(l(n.EMPTY,r.length)));return t}(e))||this}var r=e.prototype;r.getKey=function(){return this.get("key")};r.getType=function(){return this.get("type")};r.getText=function(){return this.get("text")};r.getCharacterList=function(){return this.get("characterList")};r.getLength=function(){return this.getText().length};r.getDepth=function(){return this.get("depth")};r.getData=function(){return this.get("data")};r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f};r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null};r.findStyleRanges=function(t,e){i(this.getCharacterList(),g,t,e)};r.findEntityRanges=function(t,e){i(this.getCharacterList(),d,t,e)};return e}(p);function g(t,e){return t.getStyle()===e.getStyle()}function d(t,e){return t.getEntity()===e.getEntity()}t.exports=h},767953:(t,e,r)=>{"use strict"
|
||
;var n=r(704516),i=r(629407),o=r(143393),a=o.List,u=o.Map,s=o.OrderedSet,c=o.Record,l=o.Repeat,f=s(),p={parent:null,characterList:a(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},h=function(t,e){return t.getStyle()===e.getStyle()},g=function(t,e){return t.getEntity()===e.getEntity()},d=function(t){if(!t)return t;var e=t.characterList,r=t.text;r&&!e&&(t.characterList=a(l(n.EMPTY,r.length)));return t},y=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return t.call(this,d(e))||this}var r=e.prototype;r.getKey=function(){return this.get("key")};r.getType=function(){return this.get("type")};r.getText=function(){return this.get("text")};r.getCharacterList=function(){return this.get("characterList")};r.getLength=function(){return this.getText().length};r.getDepth=function(){return this.get("depth")}
|
||
;r.getData=function(){return this.get("data")};r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f};r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null};r.getChildKeys=function(){return this.get("children")};r.getParentKey=function(){return this.get("parent")};r.getPrevSiblingKey=function(){return this.get("prevSibling")};r.getNextSiblingKey=function(){return this.get("nextSibling")};r.findStyleRanges=function(t,e){i(this.getCharacterList(),h,t,e)};r.findEntityRanges=function(t,e){i(this.getCharacterList(),g,t,e)};return e}(c(p));t.exports=y},66912:(t,e,r)=>{"use strict";var n=r(610329),i=r(704516),o=r(402641),a=r(767953),u=r(482222),s=r(325110),c=r(25027),l=r(168642),f=r(143393),p=r(855283),h=f.List,g=f.Record,d=f.Repeat,y=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype
|
||
;r.getEntityMap=function(){return u};r.getBlockMap=function(){return this.get("blockMap")};r.getSelectionBefore=function(){return this.get("selectionBefore")};r.getSelectionAfter=function(){return this.get("selectionAfter")};r.getBlockForKey=function(t){return this.getBlockMap().get(t)};r.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()};r.getBlockAfter=function(t){return this.getBlockMap().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil((function(e,r){return r===t})).skip(1).first()};r.getBlocksAsArray=function(){return this.getBlockMap().toArray()};r.getFirstBlock=function(){return this.getBlockMap().first()};r.getLastBlock=function(){return this.getBlockMap().last()};r.getPlainText=function(t){
|
||
return this.getBlockMap().map((function(t){return t?t.getText():""})).join(t||"\n")};r.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()};r.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0};r.createEntity=function(t,e,r){u.__create(t,e,r);return this};r.mergeEntityData=function(t,e){u.__mergeData(t,e);return this};r.replaceEntityData=function(t,e){u.__replaceData(t,e);return this};r.addEntity=function(t){u.__add(t);return this};r.getEntity=function(t){return u.__get(t)};e.createFromBlockArray=function(t,r){var i=Array.isArray(t)?t:t.contentBlocks,o=n.createFromArray(i),a=o.isEmpty()?new s:s.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:r||u,selectionBefore:a,selectionAfter:a})};e.createFromText=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(r),u=n.map((function(t){t=p(t);return new(l("draft_tree_data_support")?a:o)({key:c(),
|
||
text:t,type:"unstyled",characterList:h(d(i.EMPTY,t.length))})}));return e.createFromBlockArray(u)};return e}(g({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));t.exports=y},513483:(t,e,r)=>{"use strict";var n=r(704516),i=r(143393).Map,o={add:function(t,e,r){return a(t,e,r,!0)},remove:function(t,e,r){return a(t,e,r,!1)}};function a(t,e,r,o){var a=t.getBlockMap(),u=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil((function(t,e){return e===u})).takeUntil((function(t,e){return e===c})).concat(i([[c,a.get(c)]])).map((function(t,e){var i,a;if(u===c){i=s;a=l}else{i=e===u?s:0;a=e===c?l:t.getLength()}for(var f,p=t.getCharacterList();i<a;){f=p.get(i);p=p.set(i,o?n.applyStyle(f,r):n.removeStyle(f,r));i++}return t.set("characterList",p)}));return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=o},777907:(t,e,r)=>{"use strict";function n(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,
|
||
configurable:!0,writable:!0}):t[e]=r;return t}var i=r(977249),o=r(169270),a=r(548083),u=r(143393),s=r(152286),c=r(748899),l=u.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=i.isBrowser("IE <= 11"),h=function(){function t(t){var e=this;n(this,"observer",void 0);n(this,"container",void 0);n(this,"mutations",void 0);n(this,"onCharData",void 0);this.container=t;this.mutations=l();var r=a(t);r.MutationObserver&&!p?this.observer=new r.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||s(!1);e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)};e.stopAndFlushMutations=function(){var t=this.observer;if(t){this.registerMutations(t.takeRecords());t.disconnect()
|
||
}else this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;this.mutations=l();return e};e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])};e.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return p?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null};e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(o(t.target));this.mutations=this.mutations.set(r,e)}};return t}();t.exports=h},600526:(t,e,r)=>{"use strict";var n=r(667294),i=r(255484),o=(0,r(143393).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:n.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=o},737619:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},37163:(t,e,r)=>{"use strict";var n=r(819785),i=r(610329),o=r(704516),a=r(225369),u=r(402641),s=r(66912),c=r(600526),l=r(737619),f=r(387210),p=r(937898),h=r(482222),g=r(142307),d=r(639006),y=r(314289),v=r(847387),m=r(870054),_=r(941947),b=r(325110),S=r(879981),w=r(399607),x=r(25027),k=r(441714),C=r(196629),E={Editor:f,
|
||
EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:d,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:u,ContentState:s,RawDraftContentState:m,SelectionState:b,AtomicBlockUtils:n,KeyBindingUtil:v,Modifier:g,RichUtils:_,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:r(267841),convertFromRaw:w,convertToRaw:S,genKey:x,getDefaultKeyBinding:k,getVisibleSelectionRect:C};t.exports=E},387210:(t,e,r)=>{"use strict";var n=r(727418);function i(){i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};return i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){u(t,e,r[e])}))}return t}
|
||
function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}function s(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}var c=r(600526),l=r(737619),f=r(433418),p=r(487791),h=r(561494),g=r(519394),d=r(804083),y=r(528094),v=r(505880),m=r(314289),_=r(667294),b=r(292347),S=r(326499),w=r(977249),x=r(255484),k=r(25027),C=r(441714),E=r(422552),O=r(168642),D=r(152286),K=r(620717),T=r(748899),M=w.isBrowser("IE"),A=!M,I={edit:g,composite:f,drag:h,cut:null,render:null},B=!1,R=function(t){s(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.render=function(){return null};r.componentDidMount=function(){this._update()};r.componentDidUpdate=function(){this._update()};r._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState
|
||
;t._blockSelectEvents=!0};return e}(_.Component),L=function(t){s(e,t);function e(e){var r;u(a(r=t.call(this,e)||this),"_blockSelectEvents",void 0);u(a(r),"_clipboard",void 0);u(a(r),"_handler",void 0);u(a(r),"_dragCount",void 0);u(a(r),"_internalDrag",void 0);u(a(r),"_editorKey",void 0);u(a(r),"_placeholderAccessibilityID",void 0);u(a(r),"_latestEditorState",void 0);u(a(r),"_latestCommittedEditorState",void 0);u(a(r),"_pendingStateFromBeforeInput",void 0);u(a(r),"_onBeforeInput",void 0);u(a(r),"_onBlur",void 0);u(a(r),"_onCharacterData",void 0);u(a(r),"_onCompositionEnd",void 0);u(a(r),"_onCompositionStart",void 0);u(a(r),"_onCopy",void 0);u(a(r),"_onCut",void 0);u(a(r),"_onDragEnd",void 0);u(a(r),"_onDragOver",void 0);u(a(r),"_onDragStart",void 0);u(a(r),"_onDrop",void 0);u(a(r),"_onInput",void 0);u(a(r),"_onFocus",void 0);u(a(r),"_onKeyDown",void 0);u(a(r),"_onKeyPress",void 0);u(a(r),"_onKeyUp",void 0);u(a(r),"_onMouseDown",void 0);u(a(r),"_onMouseUp",void 0)
|
||
;u(a(r),"_onPaste",void 0);u(a(r),"_onSelect",void 0);u(a(r),"editor",void 0);u(a(r),"editorContainer",void 0);u(a(r),"focus",void 0);u(a(r),"blur",void 0);u(a(r),"setMode",void 0);u(a(r),"exitCurrentMode",void 0);u(a(r),"restoreEditorDOM",void 0);u(a(r),"setClipboard",void 0);u(a(r),"getClipboard",void 0);u(a(r),"getEditorKey",void 0);u(a(r),"update",void 0);u(a(r),"onDragEnter",void 0);u(a(r),"onDragLeave",void 0);u(a(r),"_handleEditorContainerRef",(function(t){r.editorContainer=t;r.editor=null!==t?t.firstChild:null}));u(a(r),"focus",(function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),i=r.editor;if(i){var o=S.getScrollParent(i),a=t||E(o),u=a.x,s=a.y;K(i)||D(!1);i.focus();o===window?window.scrollTo(u,s):b.setTop(o,s);n||r.update(m.forceSelection(e,e.getSelection()))}}));u(a(r),"blur",(function(){var t=r.editor;if(t){K(t)||D(!1);t.blur()}}));u(a(r),"setMode",(function(t){var e=r.props,n=e.onPaste,i=e.onCut,a=e.onCopy,u=o({},I.edit);n&&(u.onPaste=n);i&&(u.onCut=i)
|
||
;a&&(u.onCopy=a);var s=o({},I,{edit:u});r._handler=s[t]}));u(a(r),"exitCurrentMode",(function(){r.setMode("edit")}));u(a(r),"restoreEditorDOM",(function(t){r.setState({contentsKey:r.state.contentsKey+1},(function(){r.focus(t)}))}));u(a(r),"setClipboard",(function(t){r._clipboard=t}));u(a(r),"getClipboard",(function(){return r._clipboard}));u(a(r),"update",(function(t){r._latestEditorState=t;r.props.onChange(t)}));u(a(r),"onDragEnter",(function(){r._dragCount++}));u(a(r),"onDragLeave",(function(){r._dragCount--;0===r._dragCount&&r.exitCurrentMode()}));r._blockSelectEvents=!1;r._clipboard=null;r._handler=null;r._dragCount=0;r._editorKey=e.editorKey||k();r._placeholderAccessibilityID="placeholder-"+r._editorKey;r._latestEditorState=e.editorState;r._latestCommittedEditorState=e.editorState;r._onBeforeInput=r._buildHandler("onBeforeInput");r._onBlur=r._buildHandler("onBlur");r._onCharacterData=r._buildHandler("onCharacterData");r._onCompositionEnd=r._buildHandler("onCompositionEnd")
|
||
;r._onCompositionStart=r._buildHandler("onCompositionStart");r._onCopy=r._buildHandler("onCopy");r._onCut=r._buildHandler("onCut");r._onDragEnd=r._buildHandler("onDragEnd");r._onDragOver=r._buildHandler("onDragOver");r._onDragStart=r._buildHandler("onDragStart");r._onDrop=r._buildHandler("onDrop");r._onInput=r._buildHandler("onInput");r._onFocus=r._buildHandler("onFocus");r._onKeyDown=r._buildHandler("onKeyDown");r._onKeyPress=r._buildHandler("onKeyPress");r._onKeyUp=r._buildHandler("onKeyUp");r._onMouseDown=r._buildHandler("onMouseDown");r._onMouseUp=r._buildHandler("onMouseUp");r._onPaste=r._buildHandler("onPaste");r._onSelect=r._buildHandler("onSelect");r.getEditorKey=function(){return r._editorKey};0;r.state={contentsKey:0};return r}var n=e.prototype;n._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(d?d((function(){return n(e,r)})):n(e,r))}}};n._showPlaceholder=function(){
|
||
return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()};n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return _.createElement(y,t)}return null};n.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleFn,u=t.customStyleMap,s=t.editorState,c=t.preventScroll,f=t.readOnly,h=t.textAlignment,g=t.textDirectionality,d=x({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),y=this.props.role||"textbox",v="combobox"===y?!!this.props.ariaExpanded:null,m={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:o({},l,u),customStyleFn:a,editorKey:this._editorKey,editorState:s,preventScroll:c,
|
||
textDirectionality:g};return _.createElement("div",{className:d},this._renderPlaceholder(),_.createElement("div",{className:x("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},_.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:x({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"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:f?null:y,spellCheck:A&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},_.createElement(R,{editor:this,editorState:s}),_.createElement(p,i({},m,{key:"contents"+this.state.contentsKey})))))};n.componentDidMount=function(){this._blockSelectEvents=!1;if(!B&&O("draft_ods_enabled")){B=!0;v.initODS()}this.setMode("edit")
|
||
;M&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.g.execCommand("AutoUrlDetect",!1,!1))};n.componentDidUpdate=function(){this._blockSelectEvents=!1;this._latestEditorState=this.props.editorState;this._latestCommittedEditorState=this.props.editorState};return e}(_.Component);u(L,"defaultProps",{blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:C,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});t.exports=L},937898:(t,e,r)=>{"use strict";var n=r(727418);function i(){i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};return i.apply(this,arguments)}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}
|
||
var u=r(442282),s=r(822146),c=r(667294),l=r(292347),f=r(326499),p=r(30275),h=r(246232),g=r(255484),d=r(580386),y=r(422552),v=r(442620),m=r(152286),_=r(620717),b=r(748899),S=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},w=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];a(o(e=t.call.apply(t,[this].concat(n))||this),"_node",void 0);return e}var r=e.prototype;r.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||S(t.selection,t.block.getKey())&&t.forceSelection};r.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this._node;if(null!=r){var n,i=f.getScrollParent(r),o=y(i);if(i===window){var a=d(r)
|
||
;(n=a.y+a.height-v().height)>0&&window.scrollTo(o.x,o.y+n+10)}else{_(r)||m(!1);(n=r.offsetHeight+r.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+n+10)}}}}};r._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),o=this.props.tree.size-1,a=S(this.props.selection,r);return this.props.tree.map((function(l,f){var g=l.get("leaves");if(0===g.size)return null;var d=g.size-1,y=g.map((function(i,l){var p=s.encode(r,f,l),h=i.get("start"),g=i.get("end");return c.createElement(u,{key:p,offsetKey:p,block:e,start:h,selection:a?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(h,g),styleSet:e.getInlineStyleAt(h),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:f===o&&l===d})})).toArray(),v=l.get("decoratorKey");if(null==v)return y;if(!t.props.decorator)return y;var m=b(t.props.decorator),_=m.getComponentForKey(v);if(!_)return y
|
||
;var S=m.getPropsForKey(v),w=s.encode(r,f,0),x=g.first().get("start"),k=g.last().get("end"),C=n.slice(x,k),E=e.getEntityAt(l.get("start")),O=h.getHTMLDirIfDifferent(p.getDirection(C),t.props.direction),D={contentState:t.props.contentState,decoratedText:C,dir:O,start:x,end:k,blockKey:r,entityKey:E,offsetKey:w};return c.createElement(_,i({},S,D,{key:w}),y)})).toArray()};r.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,i=g({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return c.createElement("div",{"data-offset-key":n,className:i,ref:function(e){return t._node=e}},this._renderChildren())};return e}(c.Component);t.exports=w},425821:(t,e,r)=>{"use strict";var n=r(727418);function i(){i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};return i.apply(this,arguments)}function o(t){
|
||
if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){u(t,e,r[e])}))}return t}function u(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var s=r(859513),c=r(822146),l=r(667294),f=r(292347),p=r(326499),h=r(580386),g=r(422552),d=r(442620),y=r(143393),v=r(152286),m=r(620717),_=(y.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),b=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},S=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,
|
||
customEditable:r.editable}:{}},w=function(t,e,r,n,i,o){var u={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:o},s=n(t);s&&(u.className=s);void 0!==i.customEditable&&(u=a({},u,{contentEditable:i.customEditable,suppressContentEditableWarning:!0}));return u},x=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];u(o(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",l.createRef());return e}var r=e.prototype;r.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,i=e.tree,o=!r.getChildKeys().isEmpty(),a=r!==t.block||i!==t.tree||n!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection;return o||a};r.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var r=this.wrapperRef.current;if(r){
|
||
var n,i=p.getScrollParent(r),o=g(i);if(i===window){var a=h(r);(n=a.y+a.height-d().height)>0&&window.scrollTo(o.x,o.y+n+10)}else{m(r)||v(!1);var u=r;(n=u.offsetHeight+u.offsetTop-(i.offsetHeight+o.y))>0&&f.setTop(i,f.getTop(i)+n+10)}}}};r.render=function(){var t=this,r=this.props,n=r.block,o=r.blockRenderMap,u=r.blockRendererFn,f=r.blockStyleFn,p=r.contentState,h=r.decorator,g=r.editorKey,d=r.editorState,y=r.customStyleFn,v=r.customStyleMap,m=r.direction,x=r.forceSelection,k=r.selection,C=r.tree,E=null;n.children.size&&(E=n.children.reduce((function(r,n){var i=c.encode(n,0,0),s=p.getBlockForKey(n),h=S(s,u),y=h.CustomComponent||e,v=b(s,o),m=v.Element,_=v.wrapperTemplate,x=w(s,g,i,f,h,null),k=a({},t.props,{tree:d.getBlockTree(n),blockProps:h.customProps,offsetKey:i,block:s});r.push(l.createElement(m,x,l.createElement(y,k)));if(!_||function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()}(s,p))return r;!function(t,e,r){var n=[],i=!0,o=!1,a=void 0
|
||
;try{for(var u,s=r.reverse()[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var f=u.value;if(f.type!==e)break;n.push(f)}}catch(t){o=!0;a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),h=p[0].key;r.push(l.cloneElement(t,{key:"".concat(h,"-wrap"),"data-offset-key":c.encode(h,0,0)},p))}(_,m,r);return r}),[]));var O=n.getKey(),D=c.encode(O,0,0),K=S(n,u),T=K.CustomComponent,M=null!=T?l.createElement(T,i({},this.props,{tree:d.getBlockTree(O),blockProps:K.customProps,offsetKey:D,block:n})):l.createElement(s,{block:n,children:E,contentState:p,customStyleFn:y,customStyleMap:v,decorator:h,direction:m,forceSelection:x,hasSelection:_(k,O),selection:k,tree:C});if(n.getParentKey())return M;var A=b(n,o).Element,I=w(n,g,D,f,K,this.wrapperRef);return l.createElement(A,I,M)};return e}(l.Component);t.exports=x},433418:(t,e,r)=>{"use strict"
|
||
;var n=r(777907),i=r(142307),o=r(822146),a=r(314289),u=r(272938),s=r(114507),c=r(384907),l=r(501244),f=r(42128),p=r(748899),h=!1,g=!1,d=null;var y={onCompositionStart:function(t){g=!0;!function(t){d||(d=new n(c(t))).start()}(t)},onCompositionEnd:function(t){h=!1;g=!1;setTimeout((function(){h||y.resolveComposition(t)}),20)},onSelect:s,onKeyDown:function(t,e){if(g)e.which!==u.RIGHT&&e.which!==u.LEFT||e.preventDefault();else{y.resolveComposition(t);t._onKeyDown(e)}},onKeyPress:function(t,e){e.which===u.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!g){var e=p(d).stopAndFlushMutations();d=null;h=!0;var r=a.set(t._latestEditorState,{inCompositionMode:!1});t.exitCurrentMode();if(e.size){var n=r.getCurrentContent();e.forEach((function(t,e){var u=o.decode(e),s=u.blockKey,c=u.decoratorKey,l=u.leafKey,p=r.getBlockTree(s).getIn([c,"leaves",l]),h=p.start,g=p.end,d=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:g,isBackward:!1
|
||
}),y=f(n,d),v=n.getBlockForKey(s).getInlineStyleAt(h);n=i.replaceText(n,d,t,v,y);r=a.set(r,{currentContent:n})}));var u=l(r,c(t)).selectionState;t.restoreEditorDOM();var s=a.acceptSelection(r,u);t.update(a.push(s,n,"insert-characters"))}else t.update(r)}}};t.exports=y},488795:(t,e,r)=>{"use strict";var n=r(727418);function i(){i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};return i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){a(t,e,r[e])}))}return t}function a(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}
|
||
var u=r(937898),s=r(822146),c=r(667294),l=r(255484),f=r(749127),p=r(748899),h=function(t,e,r,n){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},g=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0
|
||
;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||a!==u||s!==c||r.mustForceSelection()};r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,g=t.editorState,d=t.editorKey,y=t.preventScroll,v=t.textDirectionality,m=g.getCurrentContent(),_=g.getSelection(),b=g.mustForceSelection(),S=g.getDecorator(),w=p(g.getDirectionMap()),x=m.getBlocksAsArray(),k=[],C=null,E=null,O=0;O<x.length;O++){var D=x[O],K=D.getKey(),T=D.getType(),M=r(D),A=void 0,I=void 0,B=void 0;if(M){A=M.component;I=M.props;B=M.editable}var R=v||w.get(K),L=s.encode(K,0,0),N={contentState:m,block:D,blockProps:I,blockStyleFn:n,customStyleMap:a,customStyleFn:l,decorator:S,direction:R,forceSelection:b,offsetKey:L,preventScroll:y,selection:_,
|
||
tree:g.getBlockTree(K)},F=e.get(T)||e.get("unstyled"),P=F.wrapper,z=F.element||e.get("unstyled").element,j=D.getDepth(),U="";n&&(U=n(D));if("li"===z){U=f(U,h(T,j,E!==P||null===C||j>C,R))}var q=A||u,H={className:U,"data-block":!0,"data-editor":d,"data-offset-key":L,key:K};void 0!==B&&(H=o({},H,{contentEditable:B,suppressContentEditableWarning:!0}));var W=c.createElement(z,H,c.createElement(q,i({},N,{key:K})));k.push({block:W,wrapperTemplate:P,key:K,offsetKey:L});C=P?D.getDepth():null;E=P}for(var V=[],G=0;G<k.length;){var J=k[G];if(J.wrapperTemplate){var $=[];do{$.push(k[G].block);G++}while(G<k.length&&k[G].wrapperTemplate===J.wrapperTemplate);var X=c.cloneElement(J.wrapperTemplate,{key:J.key+"-wrap","data-offset-key":J.offsetKey},$);V.push(X)}else{V.push(J.block);G++}}return c.createElement("div",{"data-contents":"true"},V)};return e}(c.Component);t.exports=g},487791:(t,e,r)=>{"use strict";var n=r(168642)("draft_tree_data_support");t.exports=r(n?769459:488795)},769459:(t,e,r)=>{
|
||
"use strict";var n=r(727418);function i(){i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};return i.apply(this,arguments)}var o=r(425821),a=r(822146),u=r(667294),s=r(748899),c=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||a!==u||s!==c||r.mustForceSelection()};r.render=function(){
|
||
for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,l=t.customStyleFn,f=t.editorState,p=t.editorKey,h=t.textDirectionality,g=f.getCurrentContent(),d=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=s(f.getDirectionMap()),_=[],b=g.getBlocksAsArray()[0];b;){var S=b.getKey(),w={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:g,customStyleFn:l,customStyleMap:c,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:d,block:b,direction:h||m.get(S),tree:f.getBlockTree(S)},x=(e.get(b.getType())||e.get("unstyled")).wrapper;_.push({block:u.createElement(o,i({key:S},w)),wrapperTemplate:x,key:S,offsetKey:a.encode(S,0,0)});var k=b.getNextSiblingKey();b=k?g.getBlockForKey(k):null}for(var C=[],E=0;E<_.length;){var O=_[E];if(O.wrapperTemplate){var D=[];do{D.push(_[E].block);E++}while(E<_.length&&_[E].wrapperTemplate===O.wrapperTemplate);var K=u.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap",
|
||
"data-offset-key":O.offsetKey},D);C.push(K)}else{C.push(O.block);E++}}return u.createElement("div",{"data-contents":"true"},C)};return e}(u.Component);t.exports=c},603259:(t,e,r)=>{"use strict";var n=r(727418);function i(){i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};return i.apply(this,arguments)}var o=r(822146),a=r(667294),u=r(30275),s=r(246232),c=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}e.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,l=t.decoratorKey,f=t.direction,p=t.leafSet,h=t.text,g=e.getKey(),d=p.get("leaves"),y=c.getComponentForKey(l),v=c.getPropsForKey(l),m=o.encode(g,parseInt(l,10),0),_=h.slice(d.first().get("start"),d.last().get("end")),b=s.getHTMLDirIfDifferent(u.getDirection(_),f)
|
||
;return a.createElement(y,i({},v,{contentState:n,decoratedText:_,dir:b,key:m,entityKey:e.getEntityAt(p.get("start")),offsetKey:m}),r)};return e}(a.Component);t.exports=c},561494:(t,e,r)=>{"use strict";var n=r(446123),i=r(142307),o=r(314289),a=r(169270),u=r(575795),s=r(21738),c=r(794486),l=r(548083),f=r(342177),p=r(748899);var h={onDragEnd:function(t){t.exitCurrentMode();g(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),l=t._latestEditorState,h=function(t,e){var r=null,n=null,i=u(t.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(t.x,t.y);r=o.startContainer;n=o.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent;n=t.rangeOffset}r=p(r);n=p(n);var s=p(a(r));return c(e,s,n,s,n)}(e.nativeEvent,l);e.preventDefault();t._dragCount=0;t.exitCurrentMode();if(null!=h){var y=r.getFiles();if(y.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(h,y)))return;s(y,(function(e){e&&t.update(d(l,h,e))}))}else{
|
||
var v=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(h,r,v))||(t._internalDrag?t.update(function(t,e){var r=i.moveText(t.getCurrentContent(),t.getSelection(),e);return o.push(t,r,"insert-fragment")}(l,h)):t.update(d(l,h,r.getText())));g(t)}}}};function g(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function d(t,e,r){var n=i.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return o.push(t,n,"insert-fragment")}t.exports=h},519394:(t,e,r)=>{"use strict";var n=r(977249),i=r(426396),o=r(743421),a=r(506155),u=r(569328),s=r(273935),c=r(239499),l=r(980981),f=r(562186),p=r(429971),h=r(946397),g=r(206089),d=r(114507),y=n.isBrowser("Chrome")?d:function(t){},v={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:u,onCut:s,onDragOver:c,onDragStart:l,onFocus:f,onInput:p,onKeyDown:h,onPaste:g,onSelect:d,onMouseUp:y,onKeyUp:y};t.exports=v},804083:(t,e,r)=>{
|
||
"use strict";var n=r(973935).unstable_flushControlled;t.exports=n},442282:(t,e,r)=>{"use strict";var n=r(727418);function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var a=r(480052),u=r(667294),s=r(152286),c=r(916581),l=r(845412).setDraftEditorSelection,f=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){for(var e,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];o(i(e=t.call.apply(t,[this].concat(n))||this),"leaf",void 0);return e}var r=e.prototype;r._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,r=e.block,n=e.start,i=e.text,o=r.getKey(),a=n+i.length;if(t.hasEdgeWithin(o,n,a)){var u=this.leaf;u||s(!1);var f,p=u.firstChild;p||s(!1)
|
||
;p.nodeType===Node.TEXT_NODE?f=p:c(p)?f=u:(f=p.firstChild)||s(!1);l(t,f,o,n,a)}}};r.shouldComponentUpdate=function(t){var e=this.leaf;e||s(!1);return e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection};r.componentDidUpdate=function(){this._setSelection()};r.componentDidMount=function(){this._setSelection()};r.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var i=this.props,o=i.customStyleMap,s=i.customStyleFn,c=i.offsetKey,l=i.styleSet,f=l.reduce((function(t,e){var r={},i=o[e];void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim());return n(t,i,r)}),{});if(s){var p=s(l,e);f=n(f,p)}return u.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:f},u.createElement(a,null,r))};return e}(u.Component);t.exports=f},859513:(t,e,r)=>{"use strict"
|
||
;var n=r(603259),i=r(442282),o=r(822146),a=r(143393),u=r(667294),s=r(255484),c=(a.List,function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}e.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,a=t.customStyleFn,c=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,h=t.hasSelection,g=t.selection,d=t.tree,y=e.getKey(),v=e.getText(),m=d.size-1,_=this.props.children||d.map((function(t,s){var d=t.get("decoratorKey"),_=t.get("leaves"),b=_.size-1,S=_.map((function(t,r){var n=o.encode(y,s,r),l=t.get("start"),f=t.get("end");return u.createElement(i,{key:n,offsetKey:n,block:e,start:l,selection:h?g:null,forceSelection:p,text:v.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:c,customStyleFn:a,isLast:d===m&&r===b})})).toArray();return d&&l?u.createElement(n,{block:e,children:S,contentState:r,decorator:l,decoratorKey:d,direction:f,leafSet:t,text:v,
|
||
key:s}):S})).toArray();return u.createElement("div",{"data-offset-key":o.encode(y,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},_)};return e}(u.Component));t.exports=c},528094:(t,e,r)=>{"use strict";var n=r(667294),i=r(255484),o=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()};r.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return n.createElement("div",{className:e},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{
|
||
whiteSpace:"pre-wrap"}},this.props.text))};return e}(n.Component);t.exports=o},480052:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var o=r(667294),a=r(977249),u=r(152286),s=r(684368),c=a.isBrowser("IE <= 11");var l=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(e){var r;i(n(r=t.call(this,e)||this),"_forceFlag",void 0);i(n(r),"_node",void 0);r._forceFlag=!1;return r}var r=e.prototype;r.shouldComponentUpdate=function(t){var e=this._node,r=""===t.children;s(e)||u(!1);var n=e;return r?!function(t){return c?"\n"===t.textContent:"BR"===t.tagName}(n):n.textContent!==t.children};r.componentDidMount=function(){this._forceFlag=!this._forceFlag};r.componentDidUpdate=function(){
|
||
this._forceFlag=!this._forceFlag};r.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},c?o.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return c?o.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:t})}((function(t){return e._node=t})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)};return e}(o.Component);t.exports=l},505880:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},482222:(t,e,r)=>{"use strict";function n(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var i=r(639006),o=r(143393),a=r(152286),u=(0,o.Map)(),s=0;function c(t,e){
|
||
console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var l={getLastCreatedEntityKey:function(){c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey");return l.__getLastCreatedEntityKey()},create:function(t,e,r){c("DraftEntity.create","contentState.createEntity");return l.__create(t,e,r)},add:function(t){c("DraftEntity.add","contentState.addEntity");return l.__add(t)},get:function(t){c("DraftEntity.get","contentState.getEntity");return l.__get(t)},mergeData:function(t,e){c("DraftEntity.mergeData","contentState.mergeEntityData");return l.__mergeData(t,e)},replaceData:function(t,e){c("DraftEntity.replaceData","contentState.replaceEntityData");return l.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return""+s},__create:function(t,e,r){return l.__add(new i({type:t,mutability:e,data:r||{}}))},__add:function(t){var e=""+ ++s;u=u.set(e,t);return e},__get:function(t){var e=u.get(t);e||a(!1);return e},__mergeData:function(t,e){
|
||
var r=l.__get(t),i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));i.forEach((function(e){n(t,e,r[e])}))}return t}({},r.getData(),e),o=r.set("data",i);u=u.set(t,o);return o},__replaceData:function(t,e){var r=l.__get(t).set("data",e);u=u.set(t,r);return r}};t.exports=l},639006:(t,e,r)=>{"use strict";var n=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.getType=function(){return this.get("type")};r.getMutability=function(){return this.get("mutability")};r.getData=function(){return this.get("data")};return e}((0,r(143393).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=n},705195:t=>{"use strict";t.exports={
|
||
getRemovalRange:function(t,e,r,n,i){var o=r.split(" ");o=o.map((function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<o.length-1)return t+" ";return t}));for(var a,u=n,s=null,c=null,l=0;l<o.length;l++){if(t<(a=u+o[l].length)&&u<e)if(null!==s)c=a;else{s=u;c=a}else if(null!==s)break;u=a}var f=n+r.length,p=s===n,h=c===f;(!p&&h||p&&!h)&&("forward"===i?c!==f&&c++:s!==n&&s--);return{start:s,end:c}}}},297432:t=>{"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},142307:(t,e,r)=>{"use strict";var n=r(704516),i=r(513483),o=r(368750),a=r(581446),u=r(388687),s=r(143393),c=r(354542),l=r(18467),f=r(152286),p=r(157429),h=r(914017),g=r(254879),d=r(236043),y=s.OrderedSet,v={replaceText:function(t,e,r,i,o){var a=h(t,e),u=g(a,e),s=n.create({style:i||y(),entity:o||null});return l(u,u.getSelectionAfter(),r,s)},insertText:function(t,e,r,n,i){e.isCollapsed()||f(!1);return v.replaceText(t,e,r,n,i)},moveText:function(t,e,r){
|
||
var n=u(t,e),i=v.removeRange(t,e,"backward");return v.replaceWithFragment(i,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=h(t,e),o=g(i,e);return c(o,o.getSelectionAfter(),r,n)},removeRange:function(t,e,r){var n,i,o,u;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1}));n=e.getAnchorKey();i=e.getFocusKey();o=t.getBlockForKey(n);u=t.getBlockForKey(i);var s=e.getStartOffset(),c=e.getEndOffset(),l=o.getEntityAt(s),f=u.getEntityAt(c-1);if(n===i&&l&&l===f){var p=a(t.getEntityMap(),o,u,e,r);return g(t,p)}var d=h(t,e);return g(d,e)},splitBlock:function(t,e){var r=h(t,e),n=g(r,e);return d(n,n.getSelectionAfter())},applyInlineStyle:function(t,e,r){return i.add(t,e,r)},removeInlineStyle:function(t,e,r){return i.remove(t,e,r)},setBlockType:function(t,e,r){return p(t,e,(function(t){return t.merge({type:r,
|
||
depth:0})}))},setBlockData:function(t,e,r){return p(t,e,(function(t){return t.merge({data:r})}))},mergeBlockData:function(t,e,r){return p(t,e,(function(t){return t.merge({data:t.getData().merge(r)})}))},applyEntity:function(t,e,r){var n=h(t,e);return o(n,e,r)}};t.exports=v},822146:t=>{"use strict";var e="-",r={encode:function(t,r,n){return t+e+r+e+n},decode:function(t){var r=t.split(e).reverse(),n=r[0],i=r[1];return{blockKey:r.slice(2).reverse().join(e),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}};t.exports=r},345712:(t,e,r)=>{"use strict";function n(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var i=r(402641),o=r(767953),a=r(267841),u=r(25027),s=r(169769),c=r(168642),l=r(143393),f=r(855283),p=l.List,h=l.Repeat,g=c("draft_tree_data_support"),d=g?o:i,y={processHTML:function(t,e){return a(t,s,e)},processText:function(t,e,r){return t.reduce((function(t,i,o){i=f(i);var a=u(),s={key:a,type:r,text:i,
|
||
characterList:p(h(e,i.length))};if(g&&0!==o){var c=o-1;s=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));i.forEach((function(e){n(t,e,r[e])}))}return t}({},s,{prevSibling:(t[c]=t[c].merge({nextSibling:a})).getKey()})}t.push(new d(s));return t}),[])}};t.exports=y},773932:(t,e,r)=>{"use strict";var n="\\s|(?![_])"+r(590295).getPunctuation(),i=new RegExp("^(?:"+n+")*(?:"+"['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),o=new RegExp("(?:(?!"+n+").)(?:"+"['‘’]|(?!"+n+").)*(?:"+n+")*$");function a(t,e){var r=e?o.exec(t):i.exec(t);return r?r[0]:t}var u={getBackward:function(t){return a(t,!0)},getForward:function(t){return a(t,!1)}};t.exports=u},886155:t=>{"use strict";var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},
|
||
468957:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var o=r(25027),a=r(152286),u=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];Array.isArray(e)||a(!1);if(!Array.isArray(e)||!e.length)return t;!function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var i=n.children;Array.isArray(i)||a(!1);r=r.concat([].concat(i.reverse()))}}(e,(function(t){var e=n({},t);if(u(t)){e.depth=e.depth||0;!function(t){
|
||
Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e})))}(t);if(null!=t.children&&t.children.length>0)return}delete e.children;r.push(e)}));t.blocks=r;return n({},t,{blocks:r})},fromRawStateToRawTreeState:function(t){var e=[],r=[];t.blocks.forEach((function(t){var i=u(t),a=t.depth||0,s=n({},t,{children:[]});if(i){var c=r[0];if(null==c&&0===a)e.push(s);else if(null==c||c.depth<a-1){var l={key:o(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(l);1===a?e.push(l):null!=c&&c.children.push(l);l.children.push(s)}else if(c.depth===a-1)c.children.push(s);else{for(;null!=c&&c.depth>=a;){r.shift();c=r[0]}a>0?c.children.push(s):e.push(s)}}else e.push(s)}));return n({},t,{blocks:e})}};t.exports=s},212119:(t,e,r)=>{"use strict";r(153003);t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n){if(!e.get(n).getChildKeys().includes(r))return!1}
|
||
if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===r})))return!1;var i=t.getPrevSiblingKey();if(null!=i){if(e.get(i).getNextSiblingKey()!==r)return!1}var o=t.getNextSiblingKey();if(null!=o){if(e.get(o).getPrevSiblingKey()!==r)return!1}return(null===o||null===i||i!==o)&&!(""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var r=0,n=e.shift().getKey(),i=[];null!=n;){var o=t.get(n),a=o.getChildKeys(),u=o.getNextSiblingKey();if(a.size>0){null!=u&&i.unshift(u);var s=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==s)return!1;n=s.getKey()}else n=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();r++}return r===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(r){return e.isValidBlock(r,t)
|
||
}))&&this.isConnectedTree(t)}}},533337:(t,e,r)=>{"use strict";var n,i=r(40398),o=r(143393),a=r(748899),u=o.OrderedMap,s={getDirectionMap:function(t,e){n?n.reset():n=new i;var r=t.getBlockMap(),s=r.valueSeq().map((function(t){return a(n).getDirection(t.getText())})),c=u(r.keySeq().zip(s));return null!=e&&o.is(e,c)?e:c}};t.exports=s},314289:(t,e,r)=>{"use strict";function n(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var i=r(534365),o=r(66912),a=r(533337),u=r(325110),s=r(143393),c=s.OrderedSet,l=s.Record,f=s.Stack,p=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:f(),selection:null,treeMap:null,undoStack:f()}),h=function(){e.createEmpty=function(t){return e.createWithContent(o.createFromText(""),t)};e.createWithContent=function(t,r){
|
||
if(0===t.getBlockMap().count())return e.createEmpty(r);var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:f(),redoStack:f(),decorator:r||null,selection:u.createEmpty(n)})};e.create=function(t){var r=t.currentContent,i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));i.forEach((function(e){n(t,e,r[e])}))}return t}({},t,{treeMap:d(r,t.decorator),directionMap:a.getDirectionMap(r)});return new e(new p(i))};e.set=function(t,r){return new e(t.getImmutable().withMutations((function(e){var n=e.get("decorator"),o=n;null===r.decorator?o=null:r.decorator&&(o=r.decorator);var a=r.currentContent||t.getCurrentContent();if(o===n){a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,r,n){
|
||
var o=t.getCurrentContent().set("entityMap",r),a=o.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter((function(t,e){return t!==a.get(e)})).map((function(t){return i.generate(o,t,n)})))}(t,a.getBlockMap(),a.getEntityMap(),o));e.merge(r)}else{var u,s=e.get("treeMap");u=o&&n?function(t,e,r,n,o){return r.merge(e.toSeq().filter((function(e){return n.getDecorations(e,t)!==o.getDecorations(e,t)})).map((function(e){return i.generate(t,e,n)})))}(a,a.getBlockMap(),s,o,n):d(a,o);e.merge({decorator:o,treeMap:u,nativelyRenderedContent:null})}})))};var t=e.prototype;t.toJS=function(){return this.getImmutable().toJS()};t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")};t.getCurrentContent=function(){return this.getImmutable().get("currentContent")};t.getUndoStack=function(){return this.getImmutable().get("undoStack")};t.getRedoStack=function(){return this.getImmutable().get("redoStack")};t.getSelection=function(){
|
||
return this.getImmutable().get("selection")};t.getDecorator=function(){return this.getImmutable().get("decorator")};t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")};t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")};t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")};t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")};t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")};e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})};t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r);if(n>0)return i.getInlineStyleAt(n-1);if(i.getLength())return i.getInlineStyleAt(0);return v(t,r)}(e,r):function(t,e){
|
||
var r=e.getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r);if(n<i.getLength())return i.getInlineStyleAt(n);if(n>0)return i.getInlineStyleAt(n-1);return v(t,r)}(e,r)};t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])};t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)};t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)};t.getDirectionMap=function(){return this.getImmutable().get("directionMap")};e.acceptSelection=function(t,e){return g(t,e,!1)};e.forceSelection=function(t,e){e.getHasFocus()||(e=e.set("hasFocus",!0));return g(t,e,!0)};e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),i=r.getLength();return e.acceptSelection(t,new u({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}))}
|
||
;e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())};e.push=function(t,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===r)return t;var o=a.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:o,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var u=t.getSelection(),s=t.getCurrentContent(),c=t.getUndoStack(),l=r;if(u!==s.getSelectionAfter()||y(t,n)){c=c.push(s);l=l.set("selectionBefore",u)}else"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",s.getSelectionBefore()));var p=t.getInlineStyleOverride(),h=["adjust-depth","change-block-type","split-block"];-1===h.indexOf(n)&&(p=null);var g={currentContent:l,directionMap:o,undoStack:c,redoStack:f(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:p}
|
||
;return e.set(t,g)};e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:r.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})};e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})};function e(t){n(this,"_immutable",void 0);this._immutable=t}t.getImmutable=function(){return this._immutable};return e}();function g(t,e,r){return h.set(t,{selection:e,
|
||
forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function d(t,e){return t.getBlockMap().map((function(r){return i.generate(t,r,e)})).toOrderedMap()}function y(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function v(t,e){var r=t.getBlockMap().reverse().skipUntil((function(t,r){return r===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return r?r.getInlineStyleAt(r.getLength()-1):c()}t.exports=h},847387:(t,e,r)=>{"use strict";var n=r(977249),i=r(117797),o=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=a},870054:()=>{},941947:(t,e,r)=>{"use strict";var n=r(142307),i=r(314289),o=r(501665),a=r(748899),u={
|
||
currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return u.toggleInlineStyle(t,"BOLD");case"italic":return u.toggleInlineStyle(t,"ITALIC");case"underline":return u.toggleInlineStyle(t,"UNDERLINE");case"code":return u.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(t);default:return null}},insertSoftNewline:function(t){
|
||
var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=i.push(t,e,"insert-characters");return i.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var a=r.getBlockMap().delete(o.getKey()),s=r.merge({blockMap:a,selectionAfter:e});if(s!==r)return i.push(t,s,"remove-range")}var c=u.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),o=e.getStartKey(),a=r.getBlockForKey(o).getLength();if(e.getStartOffset()<a)return null;var u=r.getBlockAfter(o);if(!u||"atomic"!==u.getType())return null;var s=e.merge({focusKey:u.getKey(),focusOffset:u.getLength()}),c=n.removeRange(r,s,"forward");return c!==r?i.push(t,c,"remove-range"):null
|
||
},onTab:function(t,e,r){var n=e.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return e;var u=e.getCurrentContent(),s=u.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var l=s.getDepth();if(!t.shiftKey&&l===r)return e;var f=o(u,n,t.shiftKey?-1:1,r);return i.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),o=r.getStartKey(),u=r.getEndKey(),s=t.getCurrentContent(),c=r;if(o!==u&&0===r.getEndOffset()){var l=a(s.getBlockBefore(u));u=l.getKey();c=c.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:u,focusOffset:l.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile((function(t,e){return e!==o})).reverse().skipWhile((function(t,e){return e!==u})).some((function(t){return"atomic"===t.getType()})))return t;var f=s.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,n.setBlockType(s,c,f),"change-block-type")},toggleCode:function(t){
|
||
var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?u.toggleBlockType(t,"code-block"):u.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r=t.getSelection(),o=t.getCurrentInlineStyle();if(r.isCollapsed())return i.setInlineStyleOverride(t,o.has(e)?o.remove(e):o.add(e));var a,u=t.getCurrentContent();a=o.has(e)?n.removeInlineStyle(u,r,e):n.applyInlineStyle(u,r,e);return i.push(t,a,"change-inline-style")},toggleLink:function(t,e,r){var o=n.applyEntity(t.getCurrentContent(),e,r);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var i=e.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i).getType(),u=o.getBlockBefore(i);if("code-block"===a&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==a)return n.setBlockType(o,e,"unstyled")}return null}};t.exports=u},683751:(t,e,r)=>{"use strict"
|
||
;var n=r(142307),i=r(314289),o=r(388687),a=r(748899),u=null,s={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),s=null;if(r.isCollapsed()){var c=r.getAnchorKey(),l=e.getBlockForKey(c).getLength();if(l===r.getAnchorOffset()){var f=e.getKeyAfter(c);if(null==f)return t;s=r.set("focusKey",f).set("focusOffset",0)}else s=r.set("focusOffset",l)}else s=r;s=a(s);u=o(e,s);var p=n.removeRange(e,s,"forward");return p===e?t:i.push(t,p,"remove-range")},paste:function(t){if(!u)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),u);return i.push(t,e,"insert-fragment")}};t.exports=s},325110:(t,e,r)=>{"use strict";var n=function(t){!function(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;r.serialize=function(){
|
||
return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())};r.getAnchorKey=function(){return this.get("anchorKey")};r.getAnchorOffset=function(){return this.get("anchorOffset")};r.getFocusKey=function(){return this.get("focusKey")};r.getFocusOffset=function(){return this.get("focusOffset")};r.getIsBackward=function(){return this.get("isBackward")};r.getHasFocus=function(){return this.get("hasFocus")};r.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===t){var o=this.getStartOffset(),a=this.getEndOffset();return e<=o&&o<=r||e<=a&&a<=r}if(t!==n&&t!==i)return!1;var u=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=u&&r>=u};r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()};r.getStartKey=function(){
|
||
return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()};r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()};r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()};r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()};e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})};return e}((0,r(143393).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=n},501665:t=>{"use strict";t.exports=function(t,e,r,n){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil((function(t,e){return e===i})).takeUntil((function(t,e){return e===o})).concat([[o,a.get(o)]]).map((function(t){var e=t.getDepth()+r;e=Math.max(0,Math.min(e,n));return t.set("depth",e)}));a=a.merge(u);return t.merge({blockMap:a,selectionBefore:e,
|
||
selectionAfter:e})}},902835:(t,e,r)=>{"use strict";var n=r(704516);t.exports=function(t,e,r,i){for(var o=e,a=t.getCharacterList();o<r;){a=a.set(o,n.applyEntity(a.get(o),i));o++}return t.set("characterList",a)}},368750:(t,e,r)=>{"use strict";var n=r(902835),i=r(143393);t.exports=function(t,e,r){var o=t.getBlockMap(),a=e.getStartKey(),u=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),l=o.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===s})).toOrderedMap().merge(i.OrderedMap([[s,o.get(s)]])).map((function(t,e){var i=e===a?u:0,o=e===s?c:t.getLength();return n(t,i,o,r)}));return t.merge({blockMap:o.merge(l),selectionBefore:e,selectionAfter:e})}},879981:(t,e,r)=>{"use strict";function n(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var i=r(402641),o=r(767953),a=r(886155),u=r(656265),s=r(631487),c=r(152286),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),
|
||
inlineStyleRanges:s(t),entityRanges:u(t,e),data:t.getData().toObject()}},f=function(t,e,r,a){if(t instanceof i)r.push(l(t,e));else{t instanceof o||c(!1);var u=t.getParentKey(),s=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));i.forEach((function(e){n(t,e,r[e])}))}return t}({},l(t,e),{children:[]});u?a[u].children.push(s):r.push(s)}};t.exports=function(t){var e={entityMap:{},blocks:[]};e=function(t,e){var r=e.entityMap,n=[],i={},o={},u=0;t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var n=t.getEntityAt(e),i=a.stringify(n);if(!o[i]){o[i]=n;r[i]="".concat(u);u++}}));f(t,r,n,i)}));return{blocks:n,entityMap:r}}(t,e);e=function(t,e){var r=e.blocks,n=e.entityMap,i={}
|
||
;Object.keys(n).forEach((function(e,r){var n=t.getEntity(a.unstringify(e));i[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}));return{blocks:r,entityMap:i}}(t,e);return e}},267841:(t,e,r)=>{"use strict";var n;function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){o(t,e,r[e])}))}return t}function o(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}
|
||
var a=r(704516),u=r(402641),s=r(767953),c=r(600526),l=r(482222),f=r(275255),p=r(255484),h=r(25027),g=r(169769),d=r(168642),y=r(143393),v=y.List,m=y.Map,_=y.OrderedSet,b=r(278241),S=r(916581),w=r(620717),x=r(335039),k=d("draft_tree_data_support"),C=new RegExp("\r","g"),E=new RegExp("\n","g"),O=new RegExp("^\n","g"),D=new RegExp(" ","g"),K=new RegExp(" ?","g"),T=new RegExp("​?","g"),M=["bold","bolder","500","600","700","800","900"],A=["light","lighter","normal","100","200","300","400"],I=["className","href","rel","target","title"],B=["alt","className","height","src","width"],R=(o(n={},p("public/DraftStyleDefault/depth0"),0),o(n,p("public/DraftStyleDefault/depth1"),1),o(n,p("public/DraftStyleDefault/depth2"),2),o(n,p("public/DraftStyleDefault/depth3"),3),o(n,p("public/DraftStyleDefault/depth4"),4),n),L=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),N=function(t){
|
||
var e={};t.mapKeys((function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements);n.forEach((function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)}))}));return m(e)},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object.keys(R).some((function(r){t.classList.contains(r)&&(e=R[r])}));return e},P=function(t){if(!b(t))return!1;var e=t;return!(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol)},z=function(t){if(!x(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},j=function(t,e){if(!w(t))return e;var r=t,n=r.style.fontWeight,i=r.style.fontStyle,o=r.style.textDecoration;return e.withMutations((function(t){M.indexOf(n)>=0?t.add("BOLD"):A.indexOf(n)>=0&&t.remove("BOLD");"italic"===i?t.add("ITALIC"):"normal"===i&&t.remove("ITALIC");"underline"===o&&t.add("UNDERLINE");"line-through"===o&&t.add("STRIKETHROUGH");if("none"===o){
|
||
t.remove("UNDERLINE");t.remove("STRIKETHROUGH")}}))},U=function(t){return"ul"===t||"ol"===t},q=function(){function t(t,e){o(this,"characterList",v());o(this,"currentBlockType","unstyled");o(this,"currentDepth",0);o(this,"currentEntity",null);o(this,"currentText","");o(this,"wrapper",null);o(this,"blockConfigs",[]);o(this,"contentBlocks",[]);o(this,"entityMap",l);o(this,"blockTypeMap",void 0);o(this,"disambiguate",void 0);this.clear();this.blockTypeMap=t;this.disambiguate=e}var e=t.prototype;e.clear=function(){this.characterList=v();this.blockConfigs=[];this.currentBlockType="unstyled";this.currentDepth=0;this.currentEntity=null;this.currentText="";this.entityMap=l;this.wrapper=null;this.contentBlocks=[]};e.addDOMNode=function(t){var e;this.contentBlocks=[];this.currentDepth=0;(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],_()));this._trimCurrentText();""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig());return this};e.getContentBlocks=function(){
|
||
0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs));return{contentBlocks:this.contentBlocks,entityMap:this.entityMap}};e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key||h(),r=i({key:e,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},t);this.characterList=v();this.currentBlockType="unstyled";this.currentText="";return r};e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],o=i.nodeName.toLowerCase();if("body"===o||U(o)){this._trimCurrentText();""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,u=this.wrapper;if(U(o)){this.wrapper=o;U(u)&&this.currentDepth++}r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),e));this.currentDepth=a;this.wrapper=u}else{
|
||
var s=this.blockTypeMap.get(o);if(void 0===s)if("#text"!==o)if("br"!==o)if(z(i))this._addImgNode(i,e);else if(P(i))this._addAnchorNode(i,r,e);else{var c=e;L.has(o)&&(c=c.add(L.get(o)));c=j(i,c);r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),c))}else this._addBreakNode(i,e);else this._addTextNode(i,e);else{this._trimCurrentText();""!==this.currentText&&r.push(this._makeBlockConfig());var l=this.currentDepth,f=this.wrapper;this.wrapper="pre"===o?"pre":this.wrapper;"string"!=typeof s&&(s=this.disambiguate(o,this.wrapper)||s[0]||"unstyled");if(!k&&w(i)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=i;this.currentDepth=F(p,this.currentDepth)}var g=h(),d=this._toBlockConfigs(Array.from(i.childNodes),e);this._trimCurrentText();r.push(this._makeBlockConfig({key:g,childConfigs:d,type:s}));this.currentDepth=l;this.wrapper=f}}}return r};e._appendText=function(t,e){var r;this.currentText+=t;var n=a.create({style:e,entity:this.currentEntity})
|
||
;this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))};e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry((function(t){return null!==t.getEntity()}));if((e=void 0!==n?Math.min(e,n[0]):e)>(r=void 0!==(n=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(r,t-n[0]):r)){this.currentText="";this.characterList=v()}else{this.currentText=this.currentText.slice(e,r);this.characterList=this.characterList.slice(e,r)}};e._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" ");"pre"!==this.wrapper&&(r=(r=r.replace(O,"")).replace(E," "));this._appendText(r,e)};e._addBreakNode=function(t,e){S(t)&&this._appendText("\n",e)};e._addImgNode=function(t,e){if(x(t)){var r=t,n={};B.forEach((function(t){var e=r.getAttribute(t);e&&(n[t]=e)}))
|
||
;this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",n);d("draftjs_fix_paste_for_img")?"presentation"!==r.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e);this.currentEntity=null}};e._addAnchorNode=function(t,e,r){if(b(t)){var n=t,i={};I.forEach((function(t){var e=n.getAttribute(t);e&&(i[t]=e)}));i.url=new f(n.href).toString();this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{});e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r));this.currentEntity=null}};e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,n=0;n<=r;n++){var o=t[n];o.parent=e;o.prevSibling=n>0?t[n-1].key:null;o.nextSibling=n<r?t[n+1].key:null;o.children=v(o.childConfigs.map((function(t){return t.key})));this.contentBlocks.push(new s(i({},o)));this._toContentBlocks(o.childConfigs,o.key)}};e._hoistContainersInBlockConfigs=function(t){var e=this;return v(t).flatMap((function(t){
|
||
return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)}))};e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach((function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),n=r.text,o=r.characterList;e.contentBlocks.push(new u(i({},t,{text:t.text+n,characterList:t.characterList.concat(o)})))}))};e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=v(),i=0;i<=e;i++){var o=t[i];r+=o.text;n=n.concat(o.characterList);if(""!==r&&"unstyled"!==o.type){r+="\n";n=n.push(n.last())}var a=this._extractTextFromBlockConfigs(o.childConfigs);r+=a.text;n=n.concat(a.characterList)}return{text:r,characterList:n}};return t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=e(t=t.trim().replace(C,"").replace(D," ").replace(K,"").replace(T,""));if(!n)return null;var i=N(r),o=function(t,e){
|
||
return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null};return new q(i,o).addDOMNode(n).getContentBlocks()}},399607:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){i(t,e,r[e])}))}return t}function i(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var o=r(402641),a=r(767953),u=r(66912),s=r(482222),c=r(468957),l=(r(212119),r(325110)),f=r(186019),p=r(267134),h=r(659672),g=r(25027),d=r(168642),y=r(143393),v=r(152286),m=d("draft_tree_data_support"),_=y.List,b=y.Map,S=y.OrderedMap,w=function(t,e){var r=t.key,n=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||g(),data:b(i),characterList:x(t,e)}},x=function(t,e){
|
||
var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[];return f(h(r,o||[]),p(r,a.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return n({},t,{key:e[t.key]})}))))},k=function(t){return n({},t,{key:t.key||g()})},C=function(t,e,r){var i=e.map((function(t){return n({},t,{parentRef:r})}));return t.concat(i.reverse())},E=function(t,e){var r=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),i=m&&!r?c.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!m)return function(t,e){return S(t.map((function(t){var r=new o(w(t,e));return[r.getKey(),r]})))}(r?c.fromRawTreeStateToRawState(t).blocks:i,e);var u=function(t,e){return t.map(k).reduce((function(r,i,o){Array.isArray(i.children)||v(!1);var u=i.children.map(k),s=new a(n({},w(i,e),{prevSibling:0===o?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:_(u.map((function(t){return t.key})))}));r=r.set(s.getKey(),s);for(var c=C([],u,s);c.length>0;){
|
||
var l=c.pop(),f=l.parentRef,p=f.getChildKeys(),h=p.indexOf(l.key),g=Array.isArray(l.children);if(!g){g||v(!1);break}var d=l.children.map(k),y=new a(n({},w(l,e),{parent:f.getKey(),children:_(d.map((function(t){return t.key}))),prevSibling:0===h?null:p.get(h-1),nextSibling:h===p.size-1?null:p.get(h+1)}));r=r.set(y.getKey(),y);c=C(c,d,y)}return r}),S())}(i,e);0;return u};t.exports=function(t){Array.isArray(t.blocks)||v(!1);var e=function(t){var e=t.entityMap,r={};Object.keys(e).forEach((function(t){var n=e[t],i=n.type,o=n.mutability,a=n.data;r[t]=s.__create(i,o,a||{})}));return r}(t),r=E(t,e),n=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new u({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},186019:(t,e,r)=>{"use strict";var n=r(704516),i=r(143393).List;t.exports=function(t,e){var r=t.map((function(t,r){var i=e[r];return n.create({style:t,entity:i})}));return i(r)}},267134:(t,e,r)=>{"use strict";var n=r(830113).substr;t.exports=function(t,e){
|
||
var r=Array(t.length).fill(null);e&&e.forEach((function(e){for(var i=n(t,0,e.offset).length,o=i+n(t,e.offset,e.length).length,a=i;a<o;a++)r[a]=e.key}));return r}},659672:(t,e,r)=>{"use strict";var n=r(830113),i=r(143393).OrderedSet,o=n.substr,a=i();t.exports=function(t,e){var r=Array(t.length).fill(a);e&&e.forEach((function(e){for(var n=o(t,0,e.offset).length,i=n+o(t,e.offset,e.length).length;n<i;){r[n]=r[n].add(e.style);n++}}));return r}},99407:t=>{"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},426396:(t,e,r)=>{"use strict";var n=r(142307),i=r(314289),o=r(977249),a=r(42128),u=r(342177),s=r(940258),c=r(748899),l=r(758639),f=o.isBrowser("Firefox");function p(t,e,r,o,a){var u=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,o);return i.push(t,u,"insert-characters",a)}t.exports=function(t,e){if(void 0!==t._pendingStateFromBeforeInput){t.update(t._pendingStateFromBeforeInput);t._pendingStateFromBeforeInput=void 0}var r=t._latestEditorState,n=e.data
|
||
;if(n)if(t.props.handleBeforeInput&&u(t.props.handleBeforeInput(n,r,e.timeStamp)))e.preventDefault();else{var o=r.getSelection(),h=o.getStartOffset(),g=o.getAnchorKey();if(o.isCollapsed()){var d,y=p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),v=!1;v||(v=s(t._latestCommittedEditorState));if(!v){var m=r.getBlockTree(g),_=y.getBlockTree(g);v=m.size!==_.size||m.zip(_).some((function(t){var e=t[0],r=t[1],i=e.get("start"),o=i+(i>=h?n.length:0),a=e.get("end"),u=a+(a>=h?n.length:0),s=r.get("start"),c=r.get("end"),l=r.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==r.get("leaves").size||o!==s||u!==c||null!=l&&c-s!=a-i}))}v||(v=(d=n,f&&("'"==d||"/"==d)));v||(v=c(y.getDirectionMap()).get(g)!==c(r.getDirectionMap()).get(g));if(v){e.preventDefault();y=i.set(y,{forceSelection:!0});t.update(y)}else{y=i.set(y,{nativelyRenderedContent:y.getCurrentContent()});t._pendingStateFromBeforeInput=y;l((function(){
|
||
if(void 0!==t._pendingStateFromBeforeInput){t.update(t._pendingStateFromBeforeInput);t._pendingStateFromBeforeInput=void 0}}))}}else{e.preventDefault();t.update(p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0))}}}},743421:(t,e,r)=>{"use strict";var n=r(314289),i=r(522049),o=r(819362);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&o(r)===r.body){var a=r.defaultView.getSelection(),u=t.editor;1===a.rangeCount&&i(u,a.anchorNode)&&i(u,a.focusNode)&&a.removeAllRanges()}var s=t._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var l=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e);t.update(n.acceptSelection(s,l))}}},506155:(t,e,r)=>{"use strict";var n=r(314289);t.exports=function(t,e){t.setMode("composite");t.update(n.set(t._latestEditorState,{inCompositionMode:!0}));t._onCompositionStart(e)}},569328:(t,e,r)=>{"use strict";var n=r(833826);t.exports=function(t,e){
|
||
t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(n(t._latestEditorState))}},273935:(t,e,r)=>{"use strict";var n=r(142307),i=r(314289),o=r(326499),a=r(833826),u=r(422552),s=r(80809);t.exports=function(t,e){var r,c=t._latestEditorState,l=c.getSelection(),f=e.target;if(l.isCollapsed())e.preventDefault();else{if(s(f)){var p=f;r=u(o.getScrollParent(p))}var h=a(c);t.setClipboard(h);t.setMode("cut");setTimeout((function(){t.restoreEditorDOM(r);t.exitCurrentMode();t.update(function(t){var e=n.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return i.push(t,e,"remove-range")}(c))}),0)}}},239499:t=>{"use strict";t.exports=function(t,e){t.setMode("drag");e.preventDefault()}},980981:t=>{"use strict";t.exports=function(t){t._internalDrag=!0;t.setMode("drag")}},562186:(t,e,r)=>{"use strict";var n=r(314289),i=r(977249);t.exports=function(t,e){var r=t._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0)
|
||
;t.props.onFocus&&t.props.onFocus(e);i.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,a)):t.update(n.acceptSelection(r,a))}}},429971:(t,e,r)=>{"use strict";var n=r(142307),i=r(822146),o=r(314289),a=r(977249),u=r(99407).notEmptyKey,s=r(169270),c=r(662800),l=r(748899),f=a.isEngine("Gecko");t.exports=function(t,e){if(void 0!==t._pendingStateFromBeforeInput){t.update(t._pendingStateFromBeforeInput);t._pendingStateFromBeforeInput=void 0}var r=t.editor.ownerDocument.defaultView.getSelection(),a=r.anchorNode,p=r.isCollapsed;if(!((null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE)){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;a.nodeValue=h.textContent;for(var g=h.firstChild;null!==g;g=g.nextSibling)g!==a&&h.removeChild(g)}
|
||
var d=a.textContent,y=t._latestEditorState,v=l(s(a)),m=i.decode(v),_=m.blockKey,b=m.decoratorKey,S=m.leafKey,w=y.getBlockTree(_).getIn([b,"leaves",S]),x=w.start,k=w.end,C=y.getCurrentContent(),E=C.getBlockForKey(_),O=E.getText().slice(x,k);d.endsWith("\n\n")&&(d=d.slice(0,-1));if(d!==O){var D,K,T,M,A=y.getSelection(),I=A.merge({anchorOffset:x,focusOffset:k,isBackward:!1}),B=E.getEntityAt(x),R=u(B)?C.getEntity(B):null,L="MUTABLE"===(null!=R?R.getMutability():null),N=L?"spellcheck-change":"apply-entity",F=n.replaceText(C,I,d,E.getInlineStyleAt(x),L?E.getEntityAt(x):null);if(f){D=r.anchorOffset;K=r.focusOffset;M=(T=x+Math.min(D,K))+Math.abs(D-K);D=T;K=M}else{var P=d.length-O.length;T=A.getStartOffset();M=A.getEndOffset();D=p?M+P:T;K=M+P}var z=F.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:D,focusOffset:K})});t.update(o.push(y,z,N))}else{var j=e.nativeEvent.inputType;if(j){var U=function(t,e){return"deleteContentBackward"===t?c(e):e}(j,y);if(U!==y){
|
||
t.restoreEditorDOM();t.update(U);return}}}}}},946397:(t,e,r)=>{"use strict";var n=r(142307),i=r(314289),o=r(847387),a=r(272938),u=r(683751),s=r(977249),c=r(342177),l=r(649779),f=r(751050),p=r(313767),h=r(177978),g=r(867217),d=r(808425),y=r(662800),v=r(113998),m=r(753318),_=r(487051),b=o.isOptionKeyCommand,S=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,o=t._latestEditorState;function s(r){var n=t.props[r];if(n){n(e);return!0}return!1}switch(r){case a.RETURN:e.preventDefault();if(t.props.handleReturn&&c(t.props.handleReturn(e,o)))return;break;case a.ESC:e.preventDefault();if(s("onEscape"))return;break;case a.TAB:if(s("onTab"))return;break;case a.UP:if(s("onUpArrow"))return;break;case a.RIGHT:if(s("onRightArrow"))return;break;case a.DOWN:if(s("onDownArrow"))return;break;case a.LEFT:if(s("onLeftArrow"))return;break;case a.SPACE:S&&b(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null!=w&&""!==w)if("undo"!==w){e.preventDefault()
|
||
;if(!t.props.handleKeyCommand||!c(t.props.handleKeyCommand(w,o,e.timeStamp))){var x=function(t,e,r){switch(t){case"redo":return i.redo(e);case"delete":return v(e);case"delete-word":return p(e);case"backspace":return y(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,r);case"split-block":return h(e);case"transpose-characters":return m(e);case"move-selection-to-start-of-block":return d(e);case"move-selection-to-end-of-block":return g(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}(w,o,e);x!==o&&t.update(x)}}else _(e,o,t.update);else if(r===a.SPACE&&S&&b(e)){var k=n.replaceText(o.getCurrentContent(),o.getSelection()," ");t.update(i.push(o,k,"insert-characters"))}}},206089:(t,e,r)=>{"use strict";var n=r(610329),i=r(704516),o=r(446123),a=r(142307),u=r(345712),s=r(314289),c=r(941947),l=r(42128),f=r(21738),p=r(342177),h=r(44300);function g(t,e,r){
|
||
var n=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new o(e.clipboardData);if(!r.isRichText()){var d=r.getFiles(),y=r.getText();if(d.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(d)))return;f(d,(function(e){if(e=e||y){var r=t._latestEditorState,o=h(e),f=i.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),p=c.getCurrentBlockType(r),g=u.processText(o,f,p),d=n.createFromArray(g),v=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),d);t.update(s.push(r,v,"insert-fragment"))}}));return}}var v=[],m=r.getText(),_=r.getHTML(),b=t._latestEditorState;if(!t.props.handlePastedText||!p(t.props.handlePastedText(m,_,b))){m&&(v=h(m));if(!t.props.stripPastedStyles){var S=t.getClipboard();if(r.isRichText()&&S){if(-1!==_.indexOf(t.getEditorKey())||1===v.length&&1===S.size&&S.first().getText()===m){
|
||
t.update(g(t._latestEditorState,S));return}}else if(S&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,r){return e.getText()===t[r]}))}(v,S)){t.update(g(t._latestEditorState,S));return}if(_){var w=u.processHTML(_,t.props.blockRenderMap);if(w){var x=w.contentBlocks,k=w.entityMap;if(x){var C=n.createFromArray(x);t.update(g(t._latestEditorState,C,k));return}}}t.setClipboard(null)}if(v.length){var E=i.create({style:b.getCurrentInlineStyle(),entity:l(b.getCurrentContent(),b.getSelection())}),O=c.getCurrentBlockType(b),D=u.processText(v,E,O),K=n.createFromArray(D);t.update(g(t._latestEditorState,K))}}}},114507:(t,e,r)=>{"use strict";var n=r(297432),i=r(314289),o=r(384907),a=r(501244);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",
|
||
extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var r=t.props.editorState,u=a(r,o(t)),s=u.selectionState;if(s!==r.getSelection()){r=u.needsRecovery?i.forceSelection(r,s):i.acceptSelection(r,s);t.update(r)}}}},656265:(t,e,r)=>{"use strict";var n=r(886155),i=r(830113).strlen;t.exports=function(t,e){var r=[];t.findEntityRanges((function(t){return!!t.getEntity()}),(function(o,a){var u=t.getText(),s=t.getEntityAt(o);r.push({offset:i(u.slice(0,o)),length:i(u.slice(o,a)),key:Number(e[n.stringify(s)])})}));return r}},631487:(t,e,r)=>{"use strict";var n=r(830113),i=r(629407),o=function(t,e){return t===e},a=function(t){return!!t},u=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),r=e.flatten().toSet().map((function(r){return function(t,e,r){var u=[],s=e.map((function(t){return t.has(r)})).toList();i(s,o,a,(function(e,i){var o=t.getText();u.push({offset:n.strlen(o.slice(0,e)),
|
||
length:n.strlen(o.slice(e,i)),style:r})}));return u}(t,e,r)}));return Array.prototype.concat.apply(u,r.toJS())}},388182:(t,e,r)=>{"use strict";var n=r(830113),i=r(575795),o=r(706092),a=r(152286);function u(t,e){for(var r=1/0,n=1/0,i=-1/0,o=-1/0,a=0;a<t.length;a++){var u=t[a];if(0!==u.width&&1!==u.width){r=Math.min(r,u.top);n=Math.min(n,u.bottom);i=Math.max(i,u.top);o=Math.max(o,u.bottom)}}return i<=n&&i-r<e&&o-n<e}function s(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var r=function(t){var e=getComputedStyle(t),r=i(t),n=r.createElement("div");n.style.fontFamily=e.fontFamily;n.style.fontSize=e.fontSize;n.style.fontStyle=e.fontStyle;n.style.fontWeight=e.fontWeight;n.style.lineHeight=e.lineHeight;n.style.position="absolute"
|
||
;n.textContent="M";var o=r.body;o||a(!1);o.appendChild(n);var u=n.getBoundingClientRect();o.removeChild(n);return u.height}(e),c=t.endContainer,l=t.endOffset;t.setStart(t.startContainer,0);for(;u(o(t),r);){c=t.startContainer;l=t.startOffset;c.parentNode||a(!1);t.setStartBefore(c);if(1===c.nodeType&&"inline"!==getComputedStyle(c).display)break}for(var f=c,p=l-1;;){for(var h=f.nodeValue,g=p;g>=0;g--)if(!(null!=h&&g>0&&n.isSurrogatePair(h,g-1))){t.setStart(f,g);if(!u(o(t),r))break;c=f;l=g}if(-1===g||0===f.childNodes.length)break;p=s(f=f.childNodes[g])}t.setStart(c,l);return t}},169270:(t,e,r)=>{"use strict";var n=r(575795),i=r(693578);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=i(e);if(null!=r)return r;e=e.parentNode}return null}},629407:t=>{"use strict";t.exports=function(t,e,r,n){if(t.size){var i=0;t.reduce((function(t,o,a){if(!e(t,o)){r(t)&&n(i,a);i=a}return o}));r(t.last())&&n(i,t.count())}}},25027:t=>{"use strict";var e={},r=Math.pow(2,24)
|
||
;t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*r).toString(32);e[t]=!0;return t}},581446:(t,e,r)=>{"use strict";var n=r(705195),i=r(264994),o=r(152286);function a(t,e,r,a,u,s,c){var l=r.getStartOffset(),f=r.getEndOffset(),p=t.__get(u).getMutability(),h=c?l:f;if("MUTABLE"===p)return r;var g=i(e,u).filter((function(t){return h<=t.end&&h>=t.start}));1!=g.length&&o(!1);var d=g[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});s||(c?f=d.end:l=d.start);var y=n.getRemovalRange(l,f,e.getText().slice(d.start,d.end),d.start,a);return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,r,n,i){var o=n.getStartOffset(),u=n.getEndOffset(),s=e.getEntityAt(o),c=r.getEntityAt(u-1);if(!s&&!c)return n;var l=n;if(s&&s===c)l=a(t,e,l,i,s,!0,!0);else if(s&&c){var f=a(t,e,l,i,s,!1,!0),p=a(t,r,l,i,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),
|
||
focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var h=a(t,e,l,i,s,!1,!0);l=l.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var g=a(t,r,l,i,c,!1,!1);l=l.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return l}},384907:(t,e,r)=>{"use strict";var n=r(152286),i=r(620717);t.exports=function(t){var e=t.editorContainer;e||n(!1);i(e.firstChild)||n(!1);return e.firstChild}},388687:(t,e,r)=>{"use strict";var n=r(798555),i=r(914017);t.exports=function(t,e){var r=e.getStartKey(),o=e.getStartOffset(),a=e.getEndKey(),u=e.getEndOffset(),s=i(t,e).getBlockMap(),c=s.keySeq(),l=c.indexOf(r),f=c.indexOf(a)+1;return n(s.slice(l,f).map((function(t,e){var n=t.getText(),i=t.getCharacterList();return r===a?t.merge({text:n.slice(o,u),characterList:i.slice(o,u)}):e===r?t.merge({text:n.slice(o),characterList:i.slice(o)}):e===a?t.merge({text:n.slice(0,u),characterList:i.slice(0,u)}):t})))}},575795:t=>{"use strict";t.exports=function(t){
|
||
return t&&t.ownerDocument?t.ownerDocument:document}},441714:(t,e,r)=>{"use strict";var n=r(847387),i=r(272938),o=r(977249),a=o.isPlatform("Mac OS X"),u=a&&o.isBrowser("Firefox < 29"),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function l(t){return a&&t.altKey||c(t)}t.exports=function(t){switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return a&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return a&&c(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return a&&c(t)?"backspace-word":null;case 89:return c(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return s(t)?t.shiftKey?"redo":"undo":null}(t)||null;case i.RETURN:return"split-block";case i.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case i.BACKSPACE:return function(t){
|
||
return s(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case i.LEFT:return u&&s(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},501244:(t,e,r)=>{"use strict";var n=r(8101);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection();return 0===r.rangeCount?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,r.anchorNode,r.anchorOffset,r.focusNode,r.focusOffset)}},8101:(t,e,r)=>{"use strict";var n=r(169270),i=r(693578),o=r(794486),a=r(152286),u=r(684368),s=r(748899);function c(t,e,r){var o=e,c=n(o);null!=c||t&&(t===o||t.firstChild===o)||a(!1);if(t===o){o=o.firstChild;u(o)||a(!1);"true"!==(o=o).getAttribute("data-contents")&&a(!1);r>0&&(r=o.childNodes.length)}if(0===r){var f=null;if(null!=c)f=c;else{var p=function(t){for(;t.firstChild&&(u(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||i(t.firstChild));)t=t.firstChild;return t
|
||
}(o);f=s(i(p))}return{key:f,offset:0}}var h=o.childNodes[r-1],g=null,d=null;if(i(h)){var y=function(t){for(;t.lastChild&&(u(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(h);g=s(i(y));d=l(y)}else{g=s(c);d=l(h)}return{key:g,offset:d}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,i,a,u){var l=r.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:o(t,s(n(r)),i,s(n(a)),u),needsRecovery:!1};var p=null,h=null,g=!0;if(l){p={key:s(n(r)),offset:i};h=c(e,a,u)}else if(f){h={key:s(n(a)),offset:u};p=c(e,r,i)}else{p=c(e,r,i);h=c(e,a,u);r===a&&i===u&&(g=!!r.firstChild&&"BR"!==r.firstChild.nodeName)}return{selectionState:o(t,p.key,p.offset,h.key,h.offset),needsRecovery:g}}},42128:(t,e,r)=>{"use strict";var n=r(99407).notEmptyKey;function i(t,e){if(n(e)){return"MUTABLE"===t.__get(e).getMutability()?e:null}return null}t.exports=function(t,e){var r;if(e.isCollapsed()){
|
||
var n=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(n).getEntityAt(o-1))!==t.getBlockForKey(n).getEntityAt(o)?null:i(t.getEntityMap(),r):null}var a=e.getStartKey(),u=e.getStartOffset(),s=t.getBlockForKey(a);r=u===s.getLength()?null:s.getEntityAt(u);return i(t.getEntityMap(),r)}},833826:(t,e,r)=>{"use strict";var n=r(388687);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},39506:(t,e,r)=>{"use strict";var n=r(767953);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?e.get(a):null}return o?o.getNextSiblingKey():null}},898056:(t,e,r)=>{"use strict";var n=r(706092);t.exports=function(t){var e=n(t),r=0,i=0,o=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var u=e[1];r=u.top;i=u.right;o=u.bottom;a=u.left}else{var s=e[0];r=s.top;i=s.right;o=s.bottom
|
||
;a=s.left}for(var c=1;c<e.length;c++){var l=e[c];if(0!==l.height&&0!==l.width){r=Math.min(r,l.top);i=Math.max(i,l.right);o=Math.max(o,l.bottom);a=Math.min(a,l.left)}}}return{top:r,right:i,bottom:o,left:a,width:i-a,height:o-r}}},706092:(t,e,r)=>{"use strict";var n=r(977249),i=r(152286);var o=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var o=n===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a=Array.from(e.getClientRects());r.push(a);if(o){var u;r.reverse();return(u=[]).concat.apply(u,r)}e.setEndBefore(n)}i(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=o},264994:(t,e,r)=>{"use strict";var n=r(152286);t.exports=function(t,e){var r=[];t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){r.push({start:t,end:e})}));r.length||n(!1);return r}},169769:(t,e,r)=>{"use strict";var n=r(977249),i=r(152286),o=n.isBrowser("IE <= 9")
|
||
;t.exports=function(t){var e,r=null;if(!o&&document.implementation&&document.implementation.createHTMLDocument){(e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1);e.documentElement.innerHTML=t;r=e.getElementsByTagName("body")[0]}return r}},693578:(t,e,r)=>{"use strict";var n=r(684368);t.exports=function t(e){if(n(e)){var r=e,i=r.getAttribute("data-offset-key");if(i)return i;for(var o=0;o<r.childNodes.length;o++){var a=t(r.childNodes[o]);if(a)return a}}return null}},21738:(t,e,r)=>{"use strict";var n=r(152286),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,u=[];t.forEach((function(s){!function(t,e){if(!r.g.FileReader||t.type&&!(t.type in o)){e("");return}if(""===t.type){var a="";i.test(t.name)&&(a=t.name.replace(i,""));e(a);return}var u=new FileReader;u.onload=function(){var t=u.result;"string"!=typeof t&&n(!1);e(t)};u.onerror=function(){e("")};u.readAsText(t)}(s,(function(r){a++;r&&u.push(r.slice(0,5e3))
|
||
;a==t.length&&e(u.join("\r"))}))}))}},794486:(t,e,r)=>{"use strict";var n=r(822146),i=r(748899);t.exports=function(t,e,r,o,a){var u=i(t.getSelection());0;var s=n.decode(e),c=s.blockKey,l=t.getBlockTree(c),f=l&&l.getIn([s.decoratorKey,"leaves",s.leafKey]),p=n.decode(o),h=p.blockKey,g=t.getBlockTree(h),d=g&&g.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!d){0;return u}var y=f.get("start"),v=d.get("start"),m=f?y+r:null,_=d?v+a:null;if(u.getAnchorKey()===c&&u.getAnchorOffset()===m&&u.getFocusKey()===h&&u.getFocusOffset()===_)return u;var b=!1;if(c===h){var S=f.get("end"),w=d.get("end");b=v===y&&w===S?a<r:v<y}else{b=t.getCurrentContent().getBlockMap().keySeq().skipUntil((function(t){return t===c||t===h})).first()===h}return u.merge({anchorKey:c,anchorOffset:m,focusKey:h,focusOffset:_,isBackward:b})}},196629:(t,e,r)=>{"use strict";var n=r(898056);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=e.getRangeAt(0),i=n(r),o=i.top,a=i.right,u=i.bottom,s=i.left
|
||
;return 0===o&&0===a&&0===u&&0===s?null:i}},548083:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},168642:t=>{"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]}},354542:(t,e,r)=>{"use strict";var n=r(610329),i=r(767953),o=r(143393),a=r(340779),u=r(152286),s=r(798555),c=o.List,l=function(t,e,r,n,i,o){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(i),c=s.getText(),l=s.getCharacterList(),f=i,p=o+n.getText().length,h=null;switch(u){case"MERGE_OLD_DATA_TO_NEW_DATA":h=n.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=n.getData()}var g=s.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:a(l,n.getCharacterList(),o),data:h});return t.merge({blockMap:r.set(i,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})
|
||
},f=function(t,e,r,o,a,u){var s=r.first()instanceof i,l=[],f=o.size,p=r.get(a),h=o.first(),g=o.last(),d=g.getLength(),y=g.getKey(),v=s&&(!p.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());r.forEach((function(t,e){if(e===a){v?l.push(t):l.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.slice(0,e),a=i.slice(0,e),u=r.first();return t.merge({text:o+u.getText(),characterList:a.concat(u.getCharacterList()),type:o?t.getType():u.getType(),data:u.getData()})}(t,u,o));o.slice(v?0:1,f-1).forEach((function(t){return l.push(t)}));l.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,a=n.slice(e,o),u=i.slice(e,o),s=r.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(u),data:s.getData()})}(t,u,o))}else l.push(t)}));var m=n.createFromArray(l);s&&(m=function(t,e,r,n){return t.withMutations((function(e){var i=r.getKey(),o=n.getKey(),a=r.getNextSiblingKey(),u=r.getParentKey(),s=function(t,e){var r=t.getKey(),n=t,i=[]
|
||
;e.get(r)&&i.push(r);for(;n&&n.getNextSiblingKey();){var o=n.getNextSiblingKey();if(!o)break;i.push(o);n=e.get(o)}return i}(n,t),l=s[s.length-1];if(e.get(o)){e.setIn([i,"nextSibling"],o);e.setIn([o,"prevSibling"],i)}else{e.setIn([i,"nextSibling"],n.getNextSiblingKey());e.setIn([n.getNextSiblingKey(),"prevSibling"],i)}e.setIn([l,"nextSibling"],a);a&&e.setIn([a,"prevSibling"],l);s.forEach((function(t){return e.setIn([t,"parent"],u)}));if(u){var f=t.get(u).getChildKeys(),p=f.indexOf(i)+1,h=f.toArray();h.splice.apply(h,[p,0].concat(s));e.setIn([u,"children"],c(h))}}))}(m,0,p,h));return t.merge({blockMap:m,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:d,focusKey:y,focusOffset:d,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||u(!1);var o=t.getBlockMap(),a=s(r),c=e.getStartKey(),p=e.getStartOffset(),h=o.get(c);h instanceof i&&(h.getChildKeys().isEmpty()||u(!1))
|
||
;return 1===a.size?l(t,e,o,a.first(),c,p,n):f(t,e,o,a,c,p)}},340779:t=>{"use strict";t.exports=function(t,e,r){var n=t;if(r===n.count())e.forEach((function(t){n=n.push(t)}));else if(0===r)e.reverse().forEach((function(t){n=n.unshift(t)}));else{var i=n.slice(0,r),o=n.slice(r);n=i.concat(e,o).toList()}return n}},18467:(t,e,r)=>{"use strict";var n=r(143393),i=r(340779),o=r(152286),a=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!1);var u=null;null!=r&&(u=r.length);if(null==u||0===u)return t;var s=t.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),f=s.get(c),p=f.getText(),h=f.merge({text:p.slice(0,l)+r+p.slice(l,f.getLength()),characterList:i(f.getCharacterList(),a(n,u).toList(),l)}),g=l+u;return t.merge({blockMap:s.set(c,h),selectionAfter:e.merge({anchorOffset:g,focusOffset:g})})}},684368:t=>{"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},342177:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},
|
||
278241:(t,e,r)=>{"use strict";var n=r(684368);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"A"===t.nodeName)}},916581:(t,e,r)=>{"use strict";var n=r(684368);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"BR"===t.nodeName)}},620717:t=>{"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},335039:(t,e,r)=>{"use strict";var n=r(684368);t.exports=function(t){return!(!t||!t.ownerDocument)&&(n(t)&&"IMG"===t.nodeName)}},80809:t=>{"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},940258:t=>{"use strict";t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),i=e.getStartOffset(),o=!1;n.some((function(t){if(i===t.get("start")){o=!0;return!0
|
||
}return i<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");if(i===e){o=!0;return!0}return!1}))}));return o}},117797:(t,e,r)=>{"use strict";var n=r(272938);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},649779:(t,e,r)=>{"use strict";var n=r(314289),i=r(388182),o=r(8101),a=r(149548),u=r(14730);t.exports=function(t,e){var r=u(t,(function(t){var r=t.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(t,1);var n=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);n=i(n);return o(t,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState}),"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},751050:(t,e,r)=>{"use strict";var n=r(773932),i=r(314289),o=r(149548),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return o(t,1)
|
||
;var i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(0,r),u=n.getBackward(a);return o(t,u.length||1)}),"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},313767:(t,e,r)=>{"use strict";var n=r(773932),i=r(314289),o=r(619417),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=e.getStartOffset(),i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(r),u=n.getForward(a);return o(t,u.length||1)}),"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},177978:(t,e,r)=>{"use strict";var n=r(142307),i=r(314289);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},867217:(t,e,r)=>{"use strict";var n=r(314289);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,
|
||
isBackward:!1}),forceSelection:!0})}},808425:(t,e,r)=>{"use strict";var n=r(314289);t.exports=function(t){var e=t.getSelection(),r=e.getStartKey();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},662800:(t,e,r)=>{"use strict";var n=r(314289),i=r(830113),o=r(149548),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a-1];return o(t,u?i.getUTF16Length(u,0):1)}),"backward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},113998:(t,e,r)=>{"use strict";var n=r(314289),i=r(830113),o=r(619417),a=r(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a]
|
||
;return o(t,u?i.getUTF16Length(u,0):1)}),"forward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},753318:(t,e,r)=>{"use strict";var n=r(142307),i=r(314289),o=r(388687);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var r=e.getAnchorOffset();if(0===r)return t;var a,u,s=e.getAnchorKey(),c=t.getCurrentContent(),l=c.getBlockForKey(s).getLength();if(l<=1)return t;if(r===l){a=e.set("anchorOffset",r-1);u=e}else u=(a=e.set("focusOffset",r+1)).set("anchorOffset",r+1);var f=o(c,a),p=n.removeRange(c,a,"backward"),h=p.getSelectionAfter(),g=h.getAnchorOffset()-1,d=h.merge({anchorOffset:g,focusOffset:g}),y=n.replaceWithFragment(p,d,f),v=i.push(t,y,"insert-fragment");return i.acceptSelection(v,u)}},487051:(t,e,r)=>{"use strict";var n=r(314289);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"!==e.getLastChangeType()){t.preventDefault()
|
||
;if(e.getNativelyRenderedContent()){r(n.set(e,{nativelyRenderedContent:null}));setTimeout((function(){r(i)}),0)}else r(i)}else{var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}))}}},157429:(t,e,r)=>{"use strict";var n=r(143393).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil((function(t,e){return e===i})).takeUntil((function(t,e){return e===o})).concat(n([[o,a.get(o)]])).map(r);return t.merge({blockMap:a.merge(u),selectionBefore:e,selectionAfter:e})}},861173:(t,e,r)=>{"use strict";var n=r(767953),i=r(39506),o=r(143393),a=r(152286),u=o.OrderedMap,s=o.List,c=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},l=function(t,e,r,n,i){if(!i)return t;var o="after"===n,a=e.getKey(),u=r.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),h=r.getParentKey(),g=o?r.getNextSiblingKey():u,d=o?u:r.getPrevSiblingKey();return t.withMutations((function(t){c(l,t,(function(t){var e=t.getChildKeys()
|
||
;return t.merge({children:e.delete(e.indexOf(a))})}));c(p,t,(function(t){return t.merge({nextSibling:f})}));c(f,t,(function(t){return t.merge({prevSibling:p})}));c(g,t,(function(t){return t.merge({prevSibling:a})}));c(d,t,(function(t){return t.merge({nextSibling:a})}));c(h,t,(function(t){var e=t.getChildKeys(),r=e.indexOf(u),n=o?r+1:0!==r?r-1:0,i=e.toArray();i.splice(n,0,a);return t.merge({children:s(i)})}));c(a,t,(function(t){return t.merge({nextSibling:g,prevSibling:d,parent:h})}))}))};t.exports=function(t,e,r,o){"replace"===o&&a(!1);var s=r.getKey(),c=e.getKey();c===s&&a(!1);var f=t.getBlockMap(),p=e instanceof n,h=[e],g=f.delete(c);if(p){h=[];g=f.withMutations((function(t){var r=e.getNextSiblingKey(),n=i(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===c})).takeWhile((function(t){var e=t.getKey(),i=e===c,o=r&&e!==r,a=!r&&t.getParentKey()&&(!n||e!==n);return!!(i||o||a)})).forEach((function(e){h.push(e);t.delete(e.getKey())}))}))}var d=g.toSeq().takeUntil((function(t){
|
||
return t===r})),y=g.toSeq().skipUntil((function(t){return t===r})).skip(1),v=h.map((function(t){return[t.getKey(),t]})),m=u();if("before"===o){var _=t.getBlockBefore(s);_&&_.getKey()===e.getKey()&&a(!1);m=d.concat([].concat(v,[[s,r]]),y).toOrderedMap()}else if("after"===o){var b=t.getBlockAfter(s);b&&b.getKey()===c&&a(!1);m=d.concat([[s,r]].concat(v),y).toOrderedMap()}return t.merge({blockMap:l(m,e,r,o,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},149548:(t,e,r)=>{"use strict";r(153003);t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),a=i,u=0;if(e>o){var s=n.getKeyBefore(i);if(null==s)a=i;else{a=s;u=n.getBlockForKey(s).getText().length}}else u=o-e;return r.merge({focusKey:a,focusOffset:u,isBackward:!0})}},619417:(t,e,r)=>{"use strict";r(153003);t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),a=t.getCurrentContent(),u=i
|
||
;if(e>a.getBlockForKey(i).getText().length-o){u=a.getKeyAfter(i);r=0}else r=o+e;return n.merge({focusKey:u,focusOffset:r})}},798555:(t,e,r)=>{"use strict";var n=r(767953),i=r(25027),o=r(143393).OrderedMap;t.exports=function(t){return t.first()instanceof n?function(t){var e,r={};return o(t.withMutations((function(t){t.forEach((function(n,o){var a=n.getKey(),u=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),l=n.getParentKey(),f=i();r[a]=f;u&&(t.get(u)?t.setIn([u,"prevSibling"],f):t.setIn([a,"nextSibling"],null));s&&(t.get(s)?t.setIn([s,"nextSibling"],f):t.setIn([a,"prevSibling"],null));if(l&&t.get(l)){var p=t.get(l).getChildKeys();t.setIn([l,"children"],p.set(p.indexOf(n.getKey()),f))}else{t.setIn([a,"parent"],null);if(e){t.setIn([e.getKey(),"nextSibling"],f);t.setIn([a,"prevSibling"],r[e.getKey()])}e=t.get(a)}c.forEach((function(e){t.get(e)?t.setIn([e,"parent"],f):t.setIn([a,"children"],n.getChildKeys().filter((function(t){return t!==e})))}))}))
|
||
})).toArray().map((function(t){return[r[t.getKey()],t.set("key",r[t.getKey()])]})))}(t):function(t){return o(t.toArray().map((function(t){var e=i();return[e,t.set("key",e)]})))}(t)}},914017:(t,e,r)=>{"use strict";var n=r(704516),i=r(629407),o=r(152286);function a(t,e,r){var a=e.getCharacterList(),u=r>0?a.get(r-1):void 0,s=r<a.count()?a.get(r):void 0,c=u?u.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c){if("MUTABLE"!==t.__get(l).getMutability()){for(var f,p=function(t,e,r){var n;i(t,(function(t,e){return t.getEntity()===e.getEntity()}),(function(t){return t.getEntity()===e}),(function(t,e){t<=r&&e>=r&&(n={start:t,end:e})}));"object"!=typeof n&&o(!1);return n}(a,l,r),h=p.start,g=p.end;h<g;){f=a.get(h);a=a.set(h,n.applyEntity(f,null));h++}return e.set("characterList",a)}}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),i={},o=e.getStartKey(),u=e.getStartOffset(),s=r.get(o),c=a(n,s,u);c!==s&&(i[o]=c);var l=e.getEndKey(),f=e.getEndOffset(),p=r.get(l)
|
||
;o===l&&(p=c);var h=a(n,p,f);h!==p&&(i[l]=h);return Object.keys(i).length?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},254879:(t,e,r)=>{"use strict";var n=r(767953),i=r(39506),o=r(143393),a=(o.List,o.Map),u=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},s=function(t,e){var r=[];if(!t)return r;for(var n=e.get(t);n&&n.getParentKey();){var i=n.getParentKey();i&&r.push(i);n=i?e.get(i):null}return r},c=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getNextSiblingKey();n&&!e.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getPrevSiblingKey();n&&!e.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n},f=function(t,e,r,n){return t.withMutations((function(o){u(e.getKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}));u(r.getKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))
|
||
;s(e.getKey(),n).forEach((function(t){return u(t,o,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return o.get(t)})),nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))}));u(e.getNextSiblingKey(),o,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}));u(e.getPrevSiblingKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n)})}));u(r.getNextSiblingKey(),o,(function(t){return t.merge({prevSibling:l(t,o,n)})}));u(r.getPrevSiblingKey(),o,(function(t){return t.merge({nextSibling:r.getNextSiblingKey()})}));s(r.getKey(),n).forEach((function(t){u(t,o,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return o.get(t)})),nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))}));(function(t,e){var r=[];if(!t)return r;for(var n=i(t,e);n&&e.get(n);){var o=e.get(n);r.push(n);n=o.getParentKey()?i(o,e):null}return r})(r,n).forEach((function(t){return u(t,o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:l(t,o,n)})}))}))
|
||
;if(null==t.get(e.getKey())&&null!=t.get(r.getKey())&&r.getParentKey()===e.getKey()&&null==r.getPrevSiblingKey()){var a=e.getPrevSiblingKey();u(r.getKey(),o,(function(t){return t.merge({prevSibling:a})}));u(a,o,(function(t){return t.merge({nextSibling:r.getKey()})}));var f=a?t.get(a):null,p=f?f.getParentKey():null;e.getChildKeys().forEach((function(t){u(t,o,(function(t){return t.merge({parent:p})}))}));if(null!=p){var h=t.get(p);u(p,o,(function(t){return t.merge({children:h.getChildKeys().concat(e.getChildKeys())})}))}u(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),o,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))},p=function(t,e,r){if(0===e)for(;e<r;){t=t.shift();e++}else if(r===t.count())for(;r>e;){t=t.pop();r--}else{var n=t.slice(0,e),i=t.slice(r);t=n.concat(i).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t
|
||
;var r,o=t.getBlockMap(),u=e.getStartKey(),c=e.getStartOffset(),l=e.getEndKey(),h=e.getEndOffset(),g=o.get(u),d=o.get(l),y=g instanceof n,v=[];if(y){var m=d.getChildKeys(),_=s(l,o);d.getNextSiblingKey()&&(v=v.concat(_));m.isEmpty()||(v=v.concat(_.concat([l])));v=v.concat(s(i(d,o),o))}r=g===d?p(g.getCharacterList(),c,h):g.getCharacterList().slice(0,c).concat(d.getCharacterList().slice(h));var b=g.merge({text:g.getText().slice(0,c)+d.getText().slice(h),characterList:r}),S=y&&0===c&&0===h&&d.getParentKey()===u&&null==d.getPrevSiblingKey()?a([[u,null]]):o.toSeq().skipUntil((function(t,e){return e===u})).takeUntil((function(t,e){return e===l})).filter((function(t,e){return-1===v.indexOf(e)})).concat(a([[l,null]])).map((function(t,e){return e===u?b:null})),w=o.merge(S).filter((function(t){return!!t}));y&&g!==d&&(w=f(w,g,d,o));return t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:u,anchorOffset:c,focusKey:u,focusOffset:c,isBackward:!1})})}},14730:(t,e,r)=>{
|
||
"use strict";var n=r(142307),i=r(168642)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),a=t.getCurrentContent(),u=o,s=o.getAnchorKey(),c=o.getFocusKey(),l=a.getBlockForKey(s);if(i&&"forward"===r&&s!==c)return a;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return a;if(i){if(o.getAnchorOffset()===a.getBlockForKey(s).getLength()){var f=a.getBlockForKey(l.nextSibling);if(!f||0===f.getLength())return a}}}else if(t.isSelectionAtStartOfContent())return a;if((u=e(t))===o)return a}return n.removeRange(a,u,r)}},855283:t=>{"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},845412:(t,e,r)=>{"use strict";var n=r(505880),i=r(297432),o=r(977249),a=r(522049),u=r(819362),s=r(575795),c=r(152286),l=r(684368),f=o.isBrowser("IE");function p(t,e){if(!t)return"[empty]";var r=h(t,e);if(r.nodeType===Node.TEXT_NODE)return r.textContent;l(r)||c(!1);return r.outerHTML}function h(t,e){var r=void 0!==e?e(t):[]
|
||
;if(t.nodeType===Node.TEXT_NODE){var n=t.textContent.length;return s(t).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var o=t.childNodes,a=0;a<o.length;a++)i.appendChild(h(o[a],e));return i}function g(t,e){for(var r=t,n=r;r;){if(l(r)&&n.hasAttribute("contenteditable"))return p(r,e);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function d(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function y(t,e,r,n){var o=u();if(t.extend&&a(o,e)){r>d(e)&&i.logSelectionStateFailure({anonymizedDom:g(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=e===t.focusNode;try{t.extend(e,r)}catch(a){i.logSelectionStateFailure({anonymizedDom:g(e,(function(e){var r=[];e===o&&r.push("active element");e===t.anchorNode&&r.push("selection anchor node");e===t.focusNode&&r.push("selection focus node");return r})),
|
||
extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:s,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)});throw a}}else if(t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r);t.addRange(c.cloneRange())}}function v(t,e,r,o){var a=s(e).createRange();if(r>d(e)){i.logSelectionStateFailure({anonymizedDom:g(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())});n.handleExtensionCausedError()}a.setStart(e,r);if(f)try{t.addRange(a)}catch(t){0}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=s(e);if(a(o.documentElement,e)){
|
||
var u=o.defaultView.getSelection(),c=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!u.extend&&h){var g=c,d=l;c=f;l=p;f=g;p=d;h=!1}var m=c===r&&n<=l&&i>=l,_=f===r&&n<=p&&i>=p;if(m&&_){u.removeAllRanges();v(u,e,l-n,t);y(u,e,p-n,t)}else if(h){if(_){u.removeAllRanges();v(u,e,p-n,t)}if(m){var b=u.focusNode,S=u.focusOffset;u.removeAllRanges();v(u,e,l-n,t);y(u,b,S,t)}}else{if(m){u.removeAllRanges();v(u,e,l-n,t)}_&&y(u,e,p-n,t)}}},addFocusToSelection:y}},236043:(t,e,r)=>{"use strict";var n=r(767953),i=r(25027),o=r(143393),a=r(152286),u=r(157429),s=o.List,c=o.Map,l=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var r=e.getAnchorKey(),o=t.getBlockMap(),f=o.get(r),p=f.getText();if(!p){var h=f.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return u(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}
|
||
var g=e.getAnchorOffset(),d=f.getCharacterList(),y=i(),v=f instanceof n,m=f.merge({text:p.slice(0,g),characterList:d.slice(0,g)}),_=m.merge({key:y,text:p.slice(g),characterList:d.slice(g),data:c()}),b=o.toSeq().takeUntil((function(t){return t===f})),S=o.toSeq().skipUntil((function(t){return t===f})).rest(),w=b.concat([[r,m],[y,_]],S).toOrderedMap();if(v){f.getChildKeys().isEmpty()||a(!1);w=function(t,e,r){return t.withMutations((function(t){var n=e.getKey(),i=r.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),r=e.indexOf(n)+1,o=e.toArray();o.splice(r,0,i);return t.merge({children:s(o)})}));l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:i})}));l(n,t,(function(t){return t.merge({nextSibling:i})}));l(i,t,(function(t){return t.merge({prevSibling:n})}))}))}(w,m,_)}return t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},44300:t=>{"use strict";var e=/\r\n?|\n/g
|
||
;t.exports=function(t){return t.split(e)}},446123:(t,e,r)=>{"use strict";var n=r(125668),i=r(921383),o=r(855577),a=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1};function s(t){if("file"==t.kind)return t.getAsFile()}var c=function(){function t(t){this.data=t;this.types=t.types?i(t.types):[]}var e=t.prototype;e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return u[t]}))};e.getText=function(){var t;this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text"));return t?t.replace(a,"\n"):null};e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}};e.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))};e.getLink=function(){
|
||
if(this.data.getData){if(-1!=this.types.indexOf("text/x-moz-url")){return this.data.getData("text/x-moz-url").split("\n")[0]}return-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url")}return null};e.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),r=0;r<e.length;r++){var i=e[r].type;if(!n.isImage(i))return!1}return!0};e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null};e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(s).filter(o.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]};e.hasFiles=function(){return this.getFiles().length>0};return t}();t.exports=c},272938:t=>{"use strict";t.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}},125668:t=>{"use strict";var e={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var n=r(t);return e.isImage(t)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(t){return t.split("/")}t.exports=e},292347:t=>{"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}};t.exports=r},326499:(t,e,r)=>{"use strict";function n(t,e){var r=i.get(t,e)
|
||
;return"auto"===r||"scroll"===r}var i={get:r(955892),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(n(t,"overflow")||n(t,"overflowY")||n(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},590295:t=>{"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},275255:t=>{"use strict";var e=function(){function t(t){!function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"_uri",void 0);this._uri=t}t.prototype.toString=function(){return this._uri};return t}();t.exports=e},30275:(t,e,r)=>{"use strict"
|
||
;var n=r(246232),i=r(152286),o="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",u=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+o+a+"]"),s=new RegExp("["+o+a+"]")
|
||
;function c(t){var e=u.exec(t);return null==e?null:e[0]}function l(t){var e=c(t);return null==e?n.NEUTRAL:s.exec(e)?n.RTL:n.LTR}function f(t,e){e=e||n.NEUTRAL;if(!t.length)return e;var r=l(t);return r===n.NEUTRAL?e:r}function p(t,e){e||(e=n.getGlobalDir());n.isStrong(e)||i(!1);return f(t,e)}var h={firstStrongChar:c,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(t,e){return p(t,e)===n.LTR},isDirectionRTL:function(t,e){return p(t,e)===n.RTL}};t.exports=h},246232:(t,e,r)=>{"use strict";var n=r(152286),i="LTR",o=null;function a(t){return t===i||"RTL"===t}function u(t){a(t)||n(!1);return t===i?"ltr":"rtl"}function s(t){o=t}var c={NEUTRAL:"NEUTRAL",LTR:i,RTL:"RTL",isStrong:a,getHTMLDir:u,getHTMLDirIfDifferent:function(t,e){a(t)||n(!1);a(e)||n(!1);return t===e?null:u(t)},setGlobalDir:s,initGlobalDir:function(){s(i)},getGlobalDir:function(){o||this.initGlobalDir();o||n(!1);return o}};t.exports=c},40398:(t,e,r)=>{"use strict";function n(t,e,r){
|
||
e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}var i=r(30275),o=r(246232),a=r(152286),u=function(){function t(t){n(this,"_defaultDir",void 0);n(this,"_lastDir",void 0);t?o.isStrong(t)||a(!1):t=o.getGlobalDir();this._defaultDir=t;this.reset()}var e=t.prototype;e.reset=function(){this._lastDir=this._defaultDir};e.getDirection=function(t){this._lastDir=i.getDirection(t,this._lastDir);return this._lastDir};return t}();t.exports=u},830113:(t,e,r)=>{"use strict";var n=r(152286),i=/[\uD800-\uDFFF]/;function o(t){return 55296<=t&&t<=57343}function a(t){return i.test(t)}function u(t,e){return 1+o(t.charCodeAt(e))}function s(t,e,r){e=e||0;r=void 0===r?1/0:r||0;if(!a(t))return t.substr(e,r);var n=t.length;if(n<=0||e>n||r<=0)return"";var i=0;if(e>0){for(;e>0&&i<n;e--)i+=u(t,i);if(i>=n)return""}else if(e<0){for(i=n;e<0&&0<i;e++)i-=u(t,i-1);i<0&&(i=0)}var o=n;if(r<n)for(o=i;r>0&&o<n;r--)o+=u(t,o);return t.substring(i,o)}var c={
|
||
getCodePoints:function(t){for(var e=[],r=0;r<t.length;r+=u(t,r))e.push(t.codePointAt(r));return e},getUTF16Length:u,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:o,isSurrogatePair:function(t,e){0<=e&&e<t.length||n(!1);if(e+1===t.length)return!1;var r=t.charCodeAt(e),i=t.charCodeAt(e+1);return 55296<=r&&r<=56319&&56320<=i&&i<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,r=0;r<t.length;r+=u(t,r))e++;return e},substring:function(t,e,r){(e=e||0)<0&&(e=0);(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-e);return s(t,e=e<r?e:r,n)},substr:s};t.exports=c},977249:(t,e,r)=>{"use strict";var n=r(881523),i=r(747642),o=r(552914),a=r(687926);function u(t,e,r,n){if(t===r)return!0;if(!r.startsWith(t))return!1;var o=r.slice(t.length);if(e){o=n?n(o):o;return i.contains(o,e)}return!1}function s(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}var c={isBrowser:function(t){return u(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){
|
||
return u(n.browserArchitecture,null,t)},isDevice:function(t){return u(n.deviceName,null,t)},isEngine:function(t){return u(n.engineName,n.engineVersion,t)},isPlatform:function(t){return u(n.platformName,n.platformFullVersion,t,s)},isPlatformArchitecture:function(t){return u(n.platformArchitecture,null,t)}};t.exports=o(c,a)},881523:(t,e,r)=>{"use strict";var n=r(42238),i="Unknown",o={"Mac OS":"Mac OS X"};var a,u=(new n).getResult(),s=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(u.browser.version),c={browserArchitecture:u.cpu.architecture||i,browserFullVersion:u.browser.version||i,browserMinorVersion:s.minor||i,browserName:u.browser.name||i,browserVersion:u.browser.major||i,deviceName:u.device.model||i,engineName:u.engine.name||i,engineVersion:u.engine.version||i,platformArchitecture:u.cpu.architecture||i,platformName:(a=u.os.name,o[a]||a)||i,platformVersion:u.os.version||i,platformFullVersion:u.os.version||i};t.exports=c},747642:(t,e,r)=>{
|
||
"use strict";var n=r(152286),i=/\./,o=/\|\|/,a=/\s+\-\s+/,u=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function c(t,e){var r=t.split(o);return r.length>1?r.some((function(t){return b.contains(t,e)})):function(t,e){var r=t.split(a);r.length>0&&r.length<=2||n(!1);if(1===r.length)return l(r[0],e);var i=r[0],o=r[1];d(i)&&d(o)||n(!1);return l(">="+i,e)&&l("<="+o,e)}(t=r[0].trim(),e)}function l(t,e){if(""===(t=t.trim()))return!0;var r,n=e.split(i),o=h(t),a=o.modifier,u=o.rangeComponents;switch(a){case"<":return f(n,u);case"<=":return-1===(r=_(n,u))||0===r;case">=":return p(n,u);case">":return function(t,e){return 1===_(t,e)}(n,u);case"~":case"~>":return function(t,e){var r=e.slice(),n=e.slice();n.length>1&&n.pop();var i=n.length-1,o=parseInt(n[i],10);g(o)&&(n[i]=o+1+"");return p(t,r)&&f(t,n)}(n,u);default:return function(t,e){return 0===_(t,e)}(n,u)}}function f(t,e){return-1===_(t,e)}function p(t,e){var r=_(t,e);return 1===r||0===r}function h(t){var e=t.split(i),r=e[0].match(u);r||n(!1)
|
||
;return{modifier:r[1],rangeComponents:[r[2]].concat(e.slice(1))}}function g(t){return!isNaN(t)&&isFinite(t)}function d(t){return!h(t).modifier}function y(t,e){for(var r=t.length;r<e;r++)t[r]="0"}function v(t,e){var r=t.match(s)[1],n=e.match(s)[1],i=parseInt(r,10),o=parseInt(n,10);return g(i)&&g(o)&&i!==o?m(i,o):m(t,e)}function m(t,e){typeof t!=typeof e&&n(!1);return t>e?1:t<e?-1:0}function _(t,e){for(var r=function(t,e){y(t=t.slice(),(e=e.slice()).length);for(var r=0;r<e.length;r++){var n=e[r].match(/^[x*]$/i);if(n){e[r]=t[r]="0";if("*"===n[0]&&r===e.length-1)for(var i=r;i<t.length;i++)t[i]="0"}}y(e,t.length);return[t,e]}(t,e),n=r[0],i=r[1],o=0;o<i.length;o++){var a=v(n[o],i[o]);if(a)return a}return 0}var b={contains:function(t,e){return c(t.trim(),e.trim())}};t.exports=b},638565:t=>{"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,(function(t,e){return e.toUpperCase()}))}},522049:(t,e,r)=>{"use strict";var n=r(438042);t.exports=function t(e,r){
|
||
return!(!e||!r)&&(e===r||!n(e)&&(n(r)?t(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}},921383:(t,e,r)=>{"use strict";var n=r(152286);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&n(!1);"number"!=typeof e&&n(!1);0===e||e-1 in t||n(!1);"function"==typeof t.callee&&n(!1);if(t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var r=Array(e),i=0;i<e;i++)r[i]=t[i];return r}(t):[t]}},255484:t=>{"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},855577:t=>{"use strict"
|
||
;function e(t){return function(){return t}}var r=function(){};r.thatReturns=e;r.thatReturnsFalse=e(!1);r.thatReturnsTrue=e(!0);r.thatReturnsNull=e(null);r.thatReturnsThis=function(){return this};r.thatReturnsArgument=function(t){return t};t.exports=r},819362:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},497375:t=>{"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},580386:(t,e,r)=>{"use strict";var n=r(704272);t.exports=function(t){var e=n(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},704272:(t,e,r)=>{"use strict";var n=r(522049);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!n(e,t))return{left:0,
|
||
right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-e.clientLeft,right:Math.round(r.right)-e.clientLeft,top:Math.round(r.top)-e.clientTop,bottom:Math.round(r.bottom)-e.clientTop}}},422552:(t,e,r)=>{"use strict";var n=r(497375),i=r(379954);t.exports=function(t){var e=n(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var r=i(t),o=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-o.clientWidth,u=t.scrollHeight-o.clientHeight;r.x=Math.max(0,Math.min(r.x,a));r.y=Math.max(0,Math.min(r.y,u));return r}},955892:(t,e,r)=>{"use strict";var n=r(638565),i=r(389259);function o(t){return null==t?t:String(t)}t.exports=function(t,e){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(t,null)))return o(r.getPropertyValue(i(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(t,null))return o(r.getPropertyValue(i(e)));if("display"===e)return"none"}
|
||
return t.currentStyle?o("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[n(e)]):o(t.style&&t.style[n(e)])}},379954:t=>{"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},442620:t=>{"use strict";function e(){var t;document.documentElement&&(t=document.documentElement.clientWidth);!t&&document.body&&(t=document.body.clientWidth);return t||0}function r(){var t;document.documentElement&&(t=document.documentElement.clientHeight);!t&&document.body&&(t=document.body.clientHeight);return t||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:e(),height:r()}};t.exports=n},389259:t=>{"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},152286:t=>{"use strict";var e=function(t){
|
||
if(void 0===t)throw new Error("invariant(...): Second argument must be a string.")};t.exports=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];e(r);if(!t){var a;if(void 0===r)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(a=new Error(r.replace(/%s/g,(function(){return String(i[u++])})))).name="Invariant Violation"}a.framesToPop=1;throw a}}},820101:t=>{"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},438042:(t,e,r)=>{"use strict";var n=r(820101);t.exports=function(t){return n(t)&&3==t.nodeType}},749127:t=>{"use strict";t.exports=function(t){var e=t||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var i=arguments[n];i&&(e=(e?e+" ":"")+i)}return e}},
|
||
552914:t=>{"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){if(!t)return null;var i={};for(var o in t)e.call(t,o)&&(i[o]=r.call(n,t[o],o,t));return i}},687926:t=>{"use strict";t.exports=function(t){var e={};return function(r){e.hasOwnProperty(r)||(e[r]=t.call(this,r));return e[r]}}},748899:t=>{"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},758639:(t,e,r)=>{"use strict";r(324889);t.exports=r.g.setImmediate},153003:(t,e,r)=>{"use strict";var n=r(855577);t.exports=n},143393:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype));t.prototype.constructor=t}function r(t){return a(t)?t:G(t)}e(n,r);function n(t){return u(t)?t:J(t)}e(i,r);function i(t){return s(t)?t:$(t)}e(o,r);function o(t){return a(t)&&!c(t)?t:X(t)}function a(t){return!(!t||!t[f])}function u(t){return!(!t||!t[p])}function s(t){return!(!t||!t[h])}function c(t){
|
||
return u(t)||s(t)}function l(t){return!(!t||!t[g])}r.isIterable=a;r.isKeyed=u;r.isIndexed=s;r.isAssociative=c;r.isOrdered=l;r.Keyed=n;r.Indexed=i;r.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",g="@@__IMMUTABLE_ORDERED__@@",d="delete",y=5,v=1<<y,m=v-1,_={},b={value:!1},S={value:!1};function w(t){t.value=!1;return t}function x(t){t&&(t.value=!0)}function k(){}function C(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function E(t){void 0===t.size&&(t.size=t.__iterate(D));return t.size}function O(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?E(t)+e:e}function D(){return!0}function K(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function T(t,e){return A(t,e,0)}function M(t,e){return A(t,e,e)}function A(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}
|
||
var I=0,B=1,R=2,L="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",F=L||N;function P(t){this.next=t}P.prototype.toString=function(){return"[Iterator]"};P.KEYS=I;P.VALUES=B;P.ENTRIES=R;P.prototype.inspect=P.prototype.toSource=function(){return this.toString()};P.prototype[F]=function(){return this};function z(t,e,r,n){var i=0===t?e:1===t?r:[e,r];n?n.value=i:n={value:i,done:!1};return n}function j(){return{value:void 0,done:!0}}function U(t){return!!W(t)}function q(t){return t&&"function"==typeof t.next}function H(t){var e=W(t);return e&&e.call(t)}function W(t){var e=t&&(L&&t[L]||t[N]);if("function"==typeof e)return e}function V(t){return t&&"number"==typeof t.length}e(G,r);function G(t){return null==t?at():a(t)?t.toSeq():ct(t)}G.of=function(){return G(arguments)};G.prototype.toSeq=function(){return this};G.prototype.toString=function(){return this.__toString("Seq {","}")};G.prototype.cacheResult=function(){if(!this._cache&&this.__iterateUncached){
|
||
this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this};G.prototype.__iterate=function(t,e){return ft(this,t,e,!0)};G.prototype.__iterator=function(t,e){return pt(this,t,e,!0)};e(J,G);function J(t){return null==t?at().toKeyedSeq():a(t)?u(t)?t.toSeq():t.fromEntrySeq():ut(t)}J.prototype.toKeyedSeq=function(){return this};e($,G);function $(t){return null==t?at():a(t)?u(t)?t.entrySeq():t.toIndexedSeq():st(t)}$.of=function(){return $(arguments)};$.prototype.toIndexedSeq=function(){return this};$.prototype.toString=function(){return this.__toString("Seq [","]")};$.prototype.__iterate=function(t,e){return ft(this,t,e,!1)};$.prototype.__iterator=function(t,e){return pt(this,t,e,!1)};e(X,G);function X(t){return(null==t?at():a(t)?u(t)?t.entrySeq():t:st(t)).toSetSeq()}X.of=function(){return X(arguments)};X.prototype.toSetSeq=function(){return this};G.isSeq=ot;G.Keyed=J;G.Set=X;G.Indexed=$;var Y,Z,Q,tt="@@__IMMUTABLE_SEQ__@@";G.prototype[tt]=!0;e(et,$);function et(t){
|
||
this._array=t;this.size=t.length}et.prototype.get=function(t,e){return this.has(t)?this._array[O(this,t)]:e};et.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i};et.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new P((function(){return i>n?j():z(t,i,r[e?n-i++:i++])}))};e(rt,J);function rt(t){var e=Object.keys(t);this._object=t;this._keys=e;this.size=e.length}rt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e};rt.prototype.has=function(t){return this._object.hasOwnProperty(t)};rt.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var a=n[e?i-o:o];if(!1===t(r[a],a,this))return o+1}return o};rt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new P((function(){var a=n[e?i-o:o];return o++>i?j():z(t,a,r[a])}))};rt.prototype[g]=!0;e(nt,$);function nt(t){
|
||
this._iterable=t;this.size=t.length||t.size}nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=H(this._iterable),n=0;if(q(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n};nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=H(this._iterable);if(!q(r))return new P(j);var n=0;return new P((function(){var e=r.next();return e.done?e:z(t,n++,e.value)}))};e(it,$);function it(t){this._iterator=t;this._iteratorCache=[]}it.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var a=r.value;i[o]=a;if(!1===t(a,o++,this))break}return o};it.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new P((function(){if(i>=n.length){var e=r.next()
|
||
;if(e.done)return e;n[i]=e.value}return z(t,i,n[i++])}))};function ot(t){return!(!t||!t[tt])}function at(){return Y||(Y=new et([]))}function ut(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():q(t)?new it(t).fromEntrySeq():U(t)?new nt(t).fromEntrySeq():"object"==typeof t?new rt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=lt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ct(t){var e=lt(t)||"object"==typeof t&&new rt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function lt(t){return V(t)?new et(t):q(t)?new it(t):U(t)?new nt(t):void 0}function ft(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var u=i[r?o-a:a];if(!1===e(u[1],n?u[0]:a,t))return a+1}return a}return t.__iterateUncached(e,r)}function pt(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,a=0
|
||
;return new P((function(){var t=i[r?o-a:a];return a++>o?j():z(e,n?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,r)}function ht(t,e){return e?gt(e,t,"",{"":t}):dt(t)}function gt(t,e,r,n){return Array.isArray(e)?t.call(n,r,$(e).map((function(r,n){return gt(t,r,n,e)}))):yt(e)?t.call(n,r,J(e).map((function(r,n){return gt(t,r,n,e)}))):e}function dt(t){return Array.isArray(t)?$(t).map(dt).toList():yt(t)?J(t).map(dt).toMap():t}function yt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function vt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function mt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||u(t)!==u(e)||s(t)!==s(e)||l(t)!==l(e))return!1
|
||
;if(0===t.size&&0===e.size)return!0;var r=!c(t);if(l(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&vt(i[1],t)&&(r||vt(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e;e=o}var f=!0,p=e.__iterate((function(e,n){if(r?!t.has(e):i?!vt(e,t.get(n,_)):!vt(t.get(n,_),e)){f=!1;return!1}}));return f&&t.size===p}e(_t,$);function _t(t,e){if(!(this instanceof _t))return new _t(t,e);this._value=t;this.size=void 0===e?1/0:Math.max(0,e);if(0===this.size){if(Z)return Z;Z=this}}_t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"};_t.prototype.get=function(t,e){return this.has(t)?this._value:e};_t.prototype.includes=function(t){return vt(this._value,t)};_t.prototype.slice=function(t,e){var r=this.size;return K(t,e,r)?this:new _t(this._value,M(e,r)-T(t,r))};_t.prototype.reverse=function(){return this}
|
||
;_t.prototype.indexOf=function(t){return vt(this._value,t)?0:-1};_t.prototype.lastIndexOf=function(t){return vt(this._value,t)?this.size:-1};_t.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r};_t.prototype.__iterator=function(t,e){var r=this,n=0;return new P((function(){return n<r.size?z(t,n++,r._value):j()}))};_t.prototype.equals=function(t){return t instanceof _t?vt(this._value,t._value):mt(t)};function bt(t,e){if(!t)throw new Error(e)}e(St,$);function St(t,e,r){if(!(this instanceof St))return new St(t,e,r);bt(0!==r,"Cannot step a Range by 0");t=t||0;void 0===e&&(e=1/0);r=void 0===r?1:Math.abs(r);e<t&&(r=-r);this._start=t;this._end=e;this._step=r;this.size=Math.max(0,Math.ceil((e-t)/r-1)+1);if(0===this.size){if(Q)return Q;Q=this}}St.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"};St.prototype.get=function(t,e){
|
||
return this.has(t)?this._start+O(this,t)*this._step:e};St.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)};St.prototype.slice=function(t,e){if(K(t,e,this.size))return this;t=T(t,this.size);return(e=M(e,this.size))<=t?new St(0,0):new St(this.get(t,this._end),this.get(e,this._end),this._step)};St.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1};St.prototype.lastIndexOf=function(t){return this.indexOf(t)};St.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o};St.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new P((function(){var a=i;i+=e?-n:n;return o>r?j():z(t,o++,a)}))};St.prototype.equals=function(t){
|
||
return t instanceof St?this._start===t._start&&this._end===t._end&&this._step===t._step:mt(this,t)};e(wt,r);function wt(){throw TypeError("Abstract")}e(xt,wt);function xt(){}e(kt,wt);function kt(){}e(Ct,wt);function Ct(){}wt.Keyed=xt;wt.Indexed=kt;wt.Set=Ct;var Et="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function Ot(t){return t>>>1&1073741824|3221225471&t}function Dt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;r!==t&&(r^=4294967295*t);for(;t>4294967295;)r^=t/=4294967295;return Ot(r)}if("string"===e)return t.length>Pt?Kt(t):Tt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return Mt(t);if("function"==typeof t.toString)return Tt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Kt(t){var e=Ut[t]
|
||
;if(void 0===e){e=Tt(t);if(jt===zt){jt=0;Ut={}}jt++;Ut[t]=e}return e}function Tt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return Ot(e)}function Mt(t){var e;if(Lt&&void 0!==(e=Rt.get(t)))return e;if(void 0!==(e=t[Ft]))return e;if(!It){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ft]))return e;if(void 0!==(e=Bt(t)))return e}e=++Nt;1073741824&Nt&&(Nt=0);if(Lt)Rt.set(t,e);else{if(void 0!==At&&!1===At(t))throw new Error("Non-extensible objects are not allowed as keys.");if(It)Object.defineProperty(t,Ft,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable){t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};t.propertyIsEnumerable[Ft]=e}else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ft]=e}}return e}
|
||
var At=Object.isExtensible,It=function(){try{Object.defineProperty({},"@",{});return!0}catch(t){return!1}}();function Bt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Rt,Lt="function"==typeof WeakMap;Lt&&(Rt=new WeakMap);var Nt=0,Ft="__immutablehash__";"function"==typeof Symbol&&(Ft=Symbol(Ft));var Pt=16,zt=255,jt=0,Ut={};function qt(t){bt(t!==1/0,"Cannot perform this action with an infinite size.")}e(Ht,xt);function Ht(t){return null==t?ie():Wt(t)&&!l(t)?t:ie().withMutations((function(e){var r=n(t);qt(r.size);r.forEach((function(t,r){return e.set(r,t)}))}))}Ht.prototype.toString=function(){return this.__toString("Map {","}")};Ht.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e};Ht.prototype.set=function(t,e){return oe(this,t,e)};Ht.prototype.setIn=function(t,e){return this.updateIn(t,_,(function(){return e}))};Ht.prototype.remove=function(t){return oe(this,t,_)}
|
||
;Ht.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return _}))};Ht.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)};Ht.prototype.updateIn=function(t,e,r){if(!r){r=e;e=void 0}var n=ye(this,Sr(t),e,r);return n===_?void 0:n};Ht.prototype.clear=function(){if(0===this.size)return this;if(this.__ownerID){this.size=0;this._root=null;this.__hash=void 0;this.__altered=!0;return this}return ie()};Ht.prototype.merge=function(){return pe(this,void 0,arguments)};Ht.prototype.mergeWith=function(e){return pe(this,e,t.call(arguments,1))};Ht.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,ie(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))};Ht.prototype.mergeDeep=function(){return pe(this,he,arguments)};Ht.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return pe(this,ge(e),r)};Ht.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1)
|
||
;return this.updateIn(e,ie(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))};Ht.prototype.sort=function(t){return Ue(lr(this,t))};Ht.prototype.sortBy=function(t,e){return Ue(lr(this,e,t))};Ht.prototype.withMutations=function(t){var e=this.asMutable();t(e);return e.wasAltered()?e.__ensureOwner(this.__ownerID):this};Ht.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)};Ht.prototype.asImmutable=function(){return this.__ensureOwner()};Ht.prototype.wasAltered=function(){return this.__altered};Ht.prototype.__iterator=function(t,e){return new te(this,t,e)};Ht.prototype.__iterate=function(t,e){var r=this,n=0;this._root&&this._root.iterate((function(e){n++;return t(e[1],e[0],r)}),e);return n};Ht.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;if(!t){this.__ownerID=t;this.__altered=!1;return this}return ne(this.size,this._root,t,this.__hash)};function Wt(t){return!(!t||!t[Gt])}Ht.isMap=Wt
|
||
;var Vt,Gt="@@__IMMUTABLE_MAP__@@",Jt=Ht.prototype;Jt[Gt]=!0;Jt[d]=Jt.remove;Jt.removeIn=Jt.deleteIn;function $t(t,e){this.ownerID=t;this.entries=e}$t.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(vt(r,i[o][0]))return i[o][1];return n};$t.prototype.update=function(t,e,r,n,i,o,a){for(var u=i===_,s=this.entries,c=0,l=s.length;c<l&&!vt(n,s[c][0]);c++);var f=c<l;if(f?s[c][1]===i:u)return this;x(a);(u||!f)&&x(o);if(!u||1!==s.length){if(!f&&!u&&s.length>=Se)return ce(t,s,n,i);var p=t&&t===this.ownerID,h=p?s:C(s);f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,i]:h.push([n,i]);if(p){this.entries=h;return this}return new $t(t,h)}};function Xt(t,e,r){this.ownerID=t;this.bitmap=e;this.nodes=r}Xt.prototype.get=function(t,e,r,n){void 0===e&&(e=Dt(r));var i=1<<((0===t?e:e>>>t)&m),o=this.bitmap;return 0==(o&i)?n:this.nodes[ve(o&i-1)].get(t+y,e,r,n)};Xt.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=Dt(n));var u=(0===e?r:r>>>e)&m,s=1<<u,c=this.bitmap,l=0!=(c&s)
|
||
;if(!l&&i===_)return this;var f=ve(c&s-1),p=this.nodes,h=l?p[f]:void 0,g=ae(h,t,e+y,r,n,i,o,a);if(g===h)return this;if(!l&&g&&p.length>=we)return fe(t,p,c,u,g);if(l&&!g&&2===p.length&&ue(p[1^f]))return p[1^f];if(l&&g&&1===p.length&&ue(g))return g;var d=t&&t===this.ownerID,v=l?g?c:c^s:c|s,b=l?g?me(p,f,g,d):be(p,f,d):_e(p,f,g,d);if(d){this.bitmap=v;this.nodes=b;return this}return new Xt(t,v,b)};function Yt(t,e,r){this.ownerID=t;this.count=e;this.nodes=r}Yt.prototype.get=function(t,e,r,n){void 0===e&&(e=Dt(r));var i=(0===t?e:e>>>t)&m,o=this.nodes[i];return o?o.get(t+y,e,r,n):n};Yt.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=Dt(n));var u=(0===e?r:r>>>e)&m,s=i===_,c=this.nodes,l=c[u];if(s&&!l)return this;var f=ae(l,t,e+y,r,n,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<xe)return le(t,c,p,u)}else p++;var h=t&&t===this.ownerID,g=me(c,u,f,h);if(h){this.count=p;this.nodes=g;return this}return new Yt(t,p,g)};function Zt(t,e,r){this.ownerID=t;this.keyHash=e
|
||
;this.entries=r}Zt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(vt(r,i[o][0]))return i[o][1];return n};Zt.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=Dt(n));var u=i===_;if(r!==this.keyHash){if(u)return this;x(a);x(o);return se(this,t,e,r,[n,i])}for(var s=this.entries,c=0,l=s.length;c<l&&!vt(n,s[c][0]);c++);var f=c<l;if(f?s[c][1]===i:u)return this;x(a);(u||!f)&&x(o);if(u&&2===l)return new Qt(t,this.keyHash,s[1^c]);var p=t&&t===this.ownerID,h=p?s:C(s);f?u?c===l-1?h.pop():h[c]=h.pop():h[c]=[n,i]:h.push([n,i]);if(p){this.entries=h;return this}return new Zt(t,this.keyHash,h)};function Qt(t,e,r){this.ownerID=t;this.keyHash=e;this.entry=r}Qt.prototype.get=function(t,e,r,n){return vt(r,this.entry[0])?this.entry[1]:n};Qt.prototype.update=function(t,e,r,n,i,o,a){var u=i===_,s=vt(n,this.entry[0]);if(s?i===this.entry[1]:u)return this;x(a);if(!u){if(s){if(t&&t===this.ownerID){this.entry[1]=i;return this}return new Qt(t,this.keyHash,[n,i])}x(o)
|
||
;return se(this,t,e,Dt(n),[n,i])}x(o)};$t.prototype.iterate=Zt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1};Xt.prototype.iterate=Yt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}};Qt.prototype.iterate=function(t,e){return t(this.entry)};e(te,P);function te(t,e,r){this._type=e;this._reverse=r;this._stack=t._root&&re(t._root)}te.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return ee(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return ee(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return ee(t,o.entry);e=this._stack=re(o,e)}continue}e=this._stack=this._stack.__prev}return j()};function ee(t,e){return z(t,e[0],e[1])}function re(t,e){return{node:t,index:0,__prev:e}}function ne(t,e,r,n){
|
||
var i=Object.create(Jt);i.size=t;i._root=e;i.__ownerID=r;i.__hash=n;i.__altered=!1;return i}function ie(){return Vt||(Vt=ne(0))}function oe(t,e,r){var n,i;if(t._root){var o=w(b),a=w(S);n=ae(t._root,t.__ownerID,0,void 0,e,r,o,a);if(!a.value)return t;i=t.size+(o.value?r===_?-1:1:0)}else{if(r===_)return t;i=1;n=new $t(t.__ownerID,[[e,r]])}if(t.__ownerID){t.size=i;t._root=n;t.__hash=void 0;t.__altered=!0;return t}return n?ne(i,n):ie()}function ae(t,e,r,n,i,o,a,u){if(!t){if(o===_)return t;x(u);x(a);return new Qt(e,n,[i,o])}return t.update(e,r,n,i,o,a,u)}function ue(t){return t.constructor===Qt||t.constructor===Zt}function se(t,e,r,n,i){if(t.keyHash===n)return new Zt(e,n,[t.entry,i]);var o,a=(0===r?t.keyHash:t.keyHash>>>r)&m,u=(0===r?n:n>>>r)&m;return new Xt(e,1<<a|1<<u,a===u?[se(t,e,r+y,n,i)]:(o=new Qt(e,n,i),a<u?[t,o]:[o,t]))}function ce(t,e,r,n){t||(t=new k);for(var i=new Qt(t,Dt(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}function le(t,e,r,n){
|
||
for(var i=0,o=0,a=new Array(r),u=0,s=1,c=e.length;u<c;u++,s<<=1){var l=e[u];if(void 0!==l&&u!==n){i|=s;a[o++]=l}}return new Xt(t,i,a)}function fe(t,e,r,n,i){for(var o=0,a=new Array(v),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[o++]:void 0;a[n]=i;return new Yt(t,o+1,a)}function pe(t,e,r){for(var i=[],o=0;o<r.length;o++){var u=r[o],s=n(u);a(u)||(s=s.map((function(t){return ht(t)})));i.push(s)}return de(t,e,i)}function he(t,e,r){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):vt(t,e)?t:e}function ge(t){return function(e,r,n){if(e&&e.mergeDeepWith&&a(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return vt(e,i)?e:i}}function de(t,e,r){return 0===(r=r.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var n=e?function(r,n){t.update(n,_,(function(t){return t===_?r:e(t,r,n)}))}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)})):t.constructor(r[0])}function ye(t,e,r,n){var i=t===_,o=e.next();if(o.done){var a=i?r:t,u=n(a)
|
||
;return u===a?t:u}bt(i||t&&t.set,"invalid keyPath");var s=o.value,c=i?_:t.get(s,_),l=ye(c,e,r,n);return l===c?t:l===_?t.remove(s):(i?ie():t).set(s,l)}function ve(t){t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135;t+=t>>8;return 127&(t+=t>>16)}function me(t,e,r,n){var i=n?t:C(t);i[e]=r;return i}function _e(t,e,r,n){var i=t.length+1;if(n&&e+1===i){t[e]=r;return t}for(var o=new Array(i),a=0,u=0;u<i;u++)if(u===e){o[u]=r;a=-1}else o[u]=t[u+a];return o}function be(t,e,r){var n=t.length-1;if(r&&e===n){t.pop();return t}for(var i=new Array(n),o=0,a=0;a<n;a++){a===e&&(o=1);i[a]=t[a+o]}return i}var Se=v/4,we=v/2,xe=v/4;e(ke,kt);function ke(t){var e=Be();if(null==t)return e;if(Ce(t))return t;var r=i(t),n=r.size;if(0===n)return e;qt(n);return n>0&&n<v?Ie(0,n,y,null,new De(r.toArray())):e.withMutations((function(t){t.setSize(n);r.forEach((function(e,r){return t.set(r,e)}))}))}ke.of=function(){return this(arguments)};ke.prototype.toString=function(){
|
||
return this.__toString("List [","]")};ke.prototype.get=function(t,e){if((t=O(this,t))>=0&&t<this.size){var r=Fe(this,t+=this._origin);return r&&r.array[t&m]}return e};ke.prototype.set=function(t,e){return Re(this,t,e)};ke.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this};ke.prototype.insert=function(t,e){return this.splice(t,0,e)};ke.prototype.clear=function(){if(0===this.size)return this;if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=y;this._root=this._tail=null;this.__hash=void 0;this.__altered=!0;return this}return Be()};ke.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){Pe(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))};ke.prototype.pop=function(){return Pe(this,0,-1)};ke.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){Pe(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))}
|
||
;ke.prototype.shift=function(){return Pe(this,1)};ke.prototype.merge=function(){return ze(this,void 0,arguments)};ke.prototype.mergeWith=function(e){return ze(this,e,t.call(arguments,1))};ke.prototype.mergeDeep=function(){return ze(this,he,arguments)};ke.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ze(this,ge(e),r)};ke.prototype.setSize=function(t){return Pe(this,0,t)};ke.prototype.slice=function(t,e){var r=this.size;return K(t,e,r)?this:Pe(this,T(t,r),M(e,r))};ke.prototype.__iterator=function(t,e){var r=0,n=Ae(this,e);return new P((function(){var e=n();return e===Me?j():z(t,r++,e)}))};ke.prototype.__iterate=function(t,e){for(var r,n=0,i=Ae(this,e);(r=i())!==Me&&!1!==t(r,n++,this););return n};ke.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;if(!t){this.__ownerID=t;return this}return Ie(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash)};function Ce(t){return!(!t||!t[Ee])}ke.isList=Ce
|
||
;var Ee="@@__IMMUTABLE_LIST__@@",Oe=ke.prototype;Oe[Ee]=!0;Oe[d]=Oe.remove;Oe.setIn=Jt.setIn;Oe.deleteIn=Oe.removeIn=Jt.removeIn;Oe.update=Jt.update;Oe.updateIn=Jt.updateIn;Oe.mergeIn=Jt.mergeIn;Oe.mergeDeepIn=Jt.mergeDeepIn;Oe.withMutations=Jt.withMutations;Oe.asMutable=Jt.asMutable;Oe.asImmutable=Jt.asImmutable;Oe.wasAltered=Jt.wasAltered;function De(t,e){this.array=t;this.ownerID=e}De.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&m;if(n>=this.array.length)return new De([],t);var i,o=0===n;if(e>0){var a=this.array[n];if((i=a&&a.removeBefore(t,e-y,r))===a&&o)return this}if(o&&!i)return this;var u=Ne(this,t);if(!o)for(var s=0;s<n;s++)u.array[s]=void 0;i&&(u.array[n]=i);return u};De.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&m;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-y,r))===o&&i===this.array.length-1)return this}
|
||
var a=Ne(this,t);a.array.splice(i+1);n&&(a.array[i]=n);return a};var Ke,Te,Me={};function Ae(t,e){var r=t._origin,n=t._capacity,i=je(n),o=t._tail;return a(t._root,t._level,0);function a(t,e,r){return 0===e?u(t,r):s(t,e,r)}function u(t,a){var u=a===i?o&&o.array:t&&t.array,s=a>r?0:r-a,c=n-a;c>v&&(c=v);return function(){if(s===c)return Me;var t=e?--c:s++;return u&&u[t]}}function s(t,i,o){var u,s=t&&t.array,c=o>r?0:r-o>>i,l=1+(n-o>>i);l>v&&(l=v);return function(){for(;;){if(u){var t=u();if(t!==Me)return t;u=null}if(c===l)return Me;var r=e?--l:c++;u=a(s&&s[r],i-y,o+(r<<i))}}}}function Ie(t,e,r,n,i,o,a){var u=Object.create(Oe);u.size=e-t;u._origin=t;u._capacity=e;u._level=r;u._root=n;u._tail=i;u.__ownerID=o;u.__hash=a;u.__altered=!1;return u}function Be(){return Ke||(Ke=Ie(0,0,y))}function Re(t,e,r){if((e=O(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?Pe(t,e).set(0,r):Pe(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o=w(S)
|
||
;e>=je(t._capacity)?n=Le(n,t.__ownerID,0,e,r,o):i=Le(i,t.__ownerID,t._level,e,r,o);if(!o.value)return t;if(t.__ownerID){t._root=i;t._tail=n;t.__hash=void 0;t.__altered=!0;return t}return Ie(t._origin,t._capacity,t._level,i,n)}function Le(t,e,r,n,i,o){var a,u=n>>>r&m,s=t&&u<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[u],l=Le(c,e,r-y,n,i,o);if(l===c)return t;(a=Ne(t,e)).array[u]=l;return a}if(s&&t.array[u]===i)return t;x(o);a=Ne(t,e);void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i;return a}function Ne(t,e){return e&&t&&e===t.ownerID?t:new De(t?t.array.slice():[],e)}function Fe(t,e){if(e>=je(t._capacity))return t._tail;if(e<1<<t._level+y){for(var r=t._root,n=t._level;r&&n>0;){r=r.array[e>>>n&m];n-=y}return r}}function Pe(t,e,r){void 0!==e&&(e|=0);void 0!==r&&(r|=0);var n=t.__ownerID||new k,i=t._origin,o=t._capacity,a=i+e,u=void 0===r?o:r<0?o+r:i+r;if(a===i&&u===o)return t;if(a>=u)return t.clear();for(var s=t._level,c=t._root,l=0;a+l<0;){
|
||
c=new De(c&&c.array.length?[void 0,c]:[],n);l+=1<<(s+=y)}if(l){a+=l;i+=l;u+=l;o+=l}for(var f=je(o),p=je(u);p>=1<<s+y;){c=new De(c&&c.array.length?[c]:[],n);s+=y}var h=t._tail,g=p<f?Fe(t,u-1):p>f?new De([],n):h;if(h&&p>f&&a<o&&h.array.length){for(var d=c=Ne(c,n),v=s;v>y;v-=y){var _=f>>>v&m;d=d.array[_]=Ne(d.array[_],n)}d.array[f>>>y&m]=h}u<o&&(g=g&&g.removeAfter(n,0,u));if(a>=p){a-=p;u-=p;s=y;c=null;g=g&&g.removeBefore(n,0,a)}else if(a>i||p<f){l=0;for(;c;){var b=a>>>s&m;if(b!==p>>>s&m)break;b&&(l+=(1<<s)*b);s-=y;c=c.array[b]}c&&a>i&&(c=c.removeBefore(n,s,a-l));c&&p<f&&(c=c.removeAfter(n,s,p-l));if(l){a-=l;u-=l}}if(t.__ownerID){t.size=u-a;t._origin=a;t._capacity=u;t._level=s;t._root=c;t._tail=g;t.__hash=void 0;t.__altered=!0;return t}return Ie(a,u,s,c,g)}function ze(t,e,r){for(var n=[],o=0,u=0;u<r.length;u++){var s=r[u],c=i(s);c.size>o&&(o=c.size);a(s)||(c=c.map((function(t){return ht(t)})));n.push(c)}o>t.size&&(t=t.setSize(o));return de(t,e,n)}function je(t){return t<v?0:t-1>>>y<<y}
|
||
e(Ue,Ht);function Ue(t){return null==t?We():qe(t)?t:We().withMutations((function(e){var r=n(t);qt(r.size);r.forEach((function(t,r){return e.set(r,t)}))}))}Ue.of=function(){return this(arguments)};Ue.prototype.toString=function(){return this.__toString("OrderedMap {","}")};Ue.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e};Ue.prototype.clear=function(){if(0===this.size)return this;if(this.__ownerID){this.size=0;this._map.clear();this._list.clear();return this}return We()};Ue.prototype.set=function(t,e){return Ve(this,t,e)};Ue.prototype.remove=function(t){return Ve(this,t,_)};Ue.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()};Ue.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)};Ue.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)};Ue.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this
|
||
;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);if(!t){this.__ownerID=t;this._map=e;this._list=r;return this}return He(e,r,t,this.__hash)};function qe(t){return Wt(t)&&l(t)}Ue.isOrderedMap=qe;Ue.prototype[g]=!0;Ue.prototype[d]=Ue.prototype.remove;function He(t,e,r,n){var i=Object.create(Ue.prototype);i.size=t?t.size:0;i._map=t;i._list=e;i.__ownerID=r;i.__hash=n;return i}function We(){return Te||(Te=He(ie(),Be()))}function Ve(t,e,r){var n,i,o=t._map,a=t._list,u=o.get(e),s=void 0!==u;if(r===_){if(!s)return t;if(a.size>=v&&a.size>=2*o.size){n=(i=a.filter((function(t,e){return void 0!==t&&u!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap();t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)}else{n=o.remove(e);i=u===a.size-1?a.pop():a.set(u,void 0)}}else if(s){if(r===a.get(u)[1])return t;n=o;i=a.set(u,[e,r])}else{n=o.set(e,a.size);i=a.set(a.size,[e,r])}if(t.__ownerID){t.size=n.size;t._map=n;t._list=i;t.__hash=void 0;return t}return He(n,i)}e(Ge,J)
|
||
;function Ge(t,e){this._iter=t;this._useKeys=e;this.size=t.size}Ge.prototype.get=function(t,e){return this._iter.get(t,e)};Ge.prototype.has=function(t){return this._iter.has(t)};Ge.prototype.valueSeq=function(){return this._iter.valueSeq()};Ge.prototype.reverse=function(){var t=this,e=Qe(this,!0);this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()});return e};Ge.prototype.map=function(t,e){var r=this,n=Ze(this,t,e);this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)});return n};Ge.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?yr(this):0,function(i){return t(i,e?--r:r++,n)}),e)};Ge.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(B,e),n=e?yr(this):0;return new P((function(){var i=r.next();return i.done?i:z(t,e?--n:n++,i.value,i)}))};Ge.prototype[g]=!0;e(Je,$);function Je(t){this._iter=t;this.size=t.size}
|
||
Je.prototype.includes=function(t){return this._iter.includes(t)};Je.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)};Je.prototype.__iterator=function(t,e){var r=this._iter.__iterator(B,e),n=0;return new P((function(){var e=r.next();return e.done?e:z(t,n++,e.value,e)}))};e($e,X);function $e(t){this._iter=t;this.size=t.size}$e.prototype.has=function(t){return this._iter.includes(t)};$e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)};$e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(B,e);return new P((function(){var e=r.next();return e.done?e:z(t,e.value,e.value,e)}))};e(Xe,J);function Xe(t){this._iter=t;this.size=t.size}Xe.prototype.entrySeq=function(){return this._iter.toSeq()};Xe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){dr(e);var n=a(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)}
|
||
;Xe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(B,e);return new P((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){dr(n);var i=a(n);return z(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))};Je.prototype.cacheResult=Ge.prototype.cacheResult=$e.prototype.cacheResult=Xe.prototype.cacheResult=_r;function Ye(t){var e=mr(t);e._iter=t;e.size=t.size;e.flip=function(){return t};e.reverse=function(){var e=t.reverse.apply(this);e.flip=function(){return t.reverse()};return e};e.has=function(e){return t.includes(e)};e.includes=function(e){return t.has(e)};e.cacheResult=_r;e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)};e.__iteratorUncached=function(e,r){if(e===R){var n=t.__iterator(e,r);return new P((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1];t.value[1]=e}return t}))}return t.__iterator(e===B?I:B,r)};return e}function Ze(t,e,r){var n=mr(t);n.size=t.size;n.has=function(e){
|
||
return t.has(e)};n.get=function(n,i){var o=t.get(n,_);return o===_?i:e.call(r,o,n,t)};n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)}),i)};n.__iteratorUncached=function(n,i){var o=t.__iterator(R,i);return new P((function(){var i=o.next();if(i.done)return i;var a=i.value,u=a[0];return z(n,u,e.call(r,a[1],u,t),i)}))};return n}function Qe(t,e){var r=mr(t);r._iter=t;r.size=t.size;r.reverse=function(){return t};t.flip&&(r.flip=function(){var e=Ye(t);e.reverse=function(){return t.flip()};return e});r.get=function(r,n){return t.get(e?r:-1-r,n)};r.has=function(r){return t.has(e?r:-1-r)};r.includes=function(e){return t.includes(e)};r.cacheResult=_r;r.__iterate=function(e,r){var n=this;return t.__iterate((function(t,r){return e(t,r,n)}),!r)};r.__iterator=function(e,r){return t.__iterator(e,!r)};return r}function tr(t,e,r,n){var i=mr(t);if(n){i.has=function(n){var i=t.get(n,_);return i!==_&&!!e.call(r,i,n,t)};i.get=function(n,i){
|
||
var o=t.get(n,_);return o!==_&&e.call(r,o,n,t)?o:i}}i.__iterateUncached=function(i,o){var a=this,u=0;t.__iterate((function(t,o,s){if(e.call(r,t,o,s)){u++;return i(t,n?o:u-1,a)}}),o);return u};i.__iteratorUncached=function(i,o){var a=t.__iterator(R,o),u=0;return new P((function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],l=s[1];if(e.call(r,l,c,t))return z(i,n?c:u++,l,o)}}))};return i}function er(t,e,r){var n=Ht().asMutable();t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))}));return n.asImmutable()}function rr(t,e,r){var n=u(t),i=(l(t)?Ue():Ht()).asMutable();t.__iterate((function(o,a){i.update(e.call(r,o,a,t),(function(t){return(t=t||[]).push(n?[a,o]:o),t}))}));var o=vr(t);return i.map((function(e){return gr(t,o(e))}))}function nr(t,e,r,n){var i=t.size;void 0!==e&&(e|=0);void 0!==r&&(r|=0);if(K(e,r,i))return t;var o=T(e,i),a=M(r,i);if(o!=o||a!=a)return nr(t.toSeq().cacheResult(),e,r,n);var u,s=a-o;s==s&&(u=s<0?0:s);var c=mr(t)
|
||
;c.size=0===u?u:t.size&&u||void 0;!n&&ot(t)&&u>=0&&(c.get=function(e,r){return(e=O(this,e))>=0&&e<u?t.get(e+o,r):r});c.__iterateUncached=function(e,r){var i=this;if(0===u)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;t.__iterate((function(t,r){if(!s||!(s=a++<o)){c++;return!1!==e(t,n?r:c-1,i)&&c!==u}}));return c};c.__iteratorUncached=function(e,r){if(0!==u&&r)return this.cacheResult().__iterator(e,r);var i=0!==u&&t.__iterator(e,r),a=0,s=0;return new P((function(){for(;a++<o;)i.next();if(++s>u)return j();var t=i.next();return n||e===B?t:z(e,s-1,e===I?void 0:t.value[1],t)}))};return c}function ir(t,e,r){var n=mr(t);n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;t.__iterate((function(t,i,u){return e.call(r,t,i,u)&&++a&&n(t,i,o)}));return a};n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator(R,i),u=!0;return new P((function(){if(!u)return j()
|
||
;var t=a.next();if(t.done)return t;var i=t.value,s=i[0],c=i[1];if(!e.call(r,c,s,o)){u=!1;return j()}return n===R?t:z(n,s,c,t)}))};return n}function or(t,e,r,n){var i=mr(t);i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var u=!0,s=0;t.__iterate((function(t,o,c){if(!u||!(u=e.call(r,t,o,c))){s++;return i(t,n?o:s-1,a)}}));return s};i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var u=t.__iterator(R,o),s=!0,c=0;return new P((function(){var t,o,l;do{if((t=u.next()).done)return n||i===B?t:z(i,c++,i===I?void 0:t.value[1],t);var f=t.value;o=f[0];l=f[1];s&&(s=e.call(r,l,o,a))}while(s);return i===R?t:z(i,o,l,t)}))};return i}function ar(t,e){var r=u(t),i=[t].concat(e).map((function(t){a(t)?r&&(t=n(t)):t=r?ut(t):st(Array.isArray(t)?t:[t]);return t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&u(o)||s(t)&&s(o))return o}var c=new et(i)
|
||
;r?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq());(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0);return c}function ur(t,e,r){var n=mr(t);n.__iterateUncached=function(n,i){var o=0,u=!1;function s(t,c){var l=this;t.__iterate((function(t,i){(!e||c<e)&&a(t)?s(t,c+1):!1===n(t,r?i:o++,l)&&(u=!0);return!u}),i)}s(t,0);return o};n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],s=0;return new P((function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;n===R&&(c=c[1]);if(e&&!(u.length<e)||!a(c))return r?t:z(n,s++,c,t);u.push(o);o=c.__iterator(n,i)}else o=u.pop()}return j()}))};return n}function sr(t,e,r){var n=vr(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}function cr(t,e){var r=mr(t);r.size=t.size&&2*t.size-1;r.__iterateUncached=function(r,n){var i=this,o=0;t.__iterate((function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n);return o};r.__iteratorUncached=function(r,n){
|
||
var i,o=t.__iterator(B,n),a=0;return new P((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?z(r,a++,e):z(r,a++,i.value,i)}))};return r}function lr(t,e,r){e||(e=br);var n=u(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).toArray();o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]});return n?J(o):s(t)?$(o):X(o)}function fr(t,e,r){e||(e=br);if(r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return pr(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return pr(e,t,r)?r:t}))}function pr(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function hr(t,e,n){var i=mr(t);i.size=new et(n).map((function(t){return t.size})).min();i.__iterate=function(t,e){for(var r,n=this.__iterator(B,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i};i.__iteratorUncached=function(t,i){var o=n.map((function(t){return t=r(t),H(i?t.reverse():t)
|
||
})),a=0,u=!1;return new P((function(){var r;if(!u){r=o.map((function(t){return t.next()}));u=r.some((function(t){return t.done}))}return u?j():z(t,a++,e.apply(null,r.map((function(t){return t.value}))))}))};return i}function gr(t,e){return ot(t)?e:t.constructor(e)}function dr(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function yr(t){qt(t.size);return E(t)}function vr(t){return u(t)?n:s(t)?i:o}function mr(t){return Object.create((u(t)?J:s(t)?$:X).prototype)}function _r(){if(this._iter.cacheResult){this._iter.cacheResult();this.size=this._iter.size;return this}return G.prototype.cacheResult.call(this)}function br(t,e){return t>e?1:t<e?-1:0}function Sr(t){var e=H(t);if(!e){if(!V(t))throw new TypeError("Expected iterable or array-like: "+t);e=H(r(t))}return e}e(wr,xt);function wr(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(t);Er(i,a);i.size=a.length;i._name=e;i._keys=a;i._defaultValues=t
|
||
}this._map=Ht(o)},i=n.prototype=Object.create(xr);i.constructor=n;return n}wr.prototype.toString=function(){return this.__toString(Cr(this)+" {","}")};wr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)};wr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r};wr.prototype.clear=function(){if(this.__ownerID){this._map&&this._map.clear();return this}var t=this.constructor;return t._empty||(t._empty=kr(this,ie()))};wr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Cr(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:kr(this,r)};wr.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:kr(this,e)};wr.prototype.wasAltered=function(){return this._map.wasAltered()};wr.prototype.__iterator=function(t,e){var r=this
|
||
;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)};wr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)};wr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);if(!t){this.__ownerID=t;this._map=e;return this}return kr(this,e,t)};var xr=wr.prototype;xr[d]=xr.remove;xr.deleteIn=xr.removeIn=Jt.removeIn;xr.merge=Jt.merge;xr.mergeWith=Jt.mergeWith;xr.mergeIn=Jt.mergeIn;xr.mergeDeep=Jt.mergeDeep;xr.mergeDeepWith=Jt.mergeDeepWith;xr.mergeDeepIn=Jt.mergeDeepIn;xr.setIn=Jt.setIn;xr.update=Jt.update;xr.updateIn=Jt.updateIn;xr.withMutations=Jt.withMutations;xr.asMutable=Jt.asMutable;xr.asImmutable=Jt.asImmutable;function kr(t,e,r){var n=Object.create(Object.getPrototypeOf(t));n._map=e;n.__ownerID=r;return n}function Cr(t){return t._name||t.constructor.name||"Record"}function Er(t,e){try{e.forEach(Or.bind(void 0,t))
|
||
}catch(t){}}function Or(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){bt(this.__ownerID,"Cannot set on an immutable record.");this.set(e,t)}})}e(Dr,Ct);function Dr(t){return null==t?Rr():Kr(t)&&!l(t)?t:Rr().withMutations((function(e){var r=o(t);qt(r.size);r.forEach((function(t){return e.add(t)}))}))}Dr.of=function(){return this(arguments)};Dr.fromKeys=function(t){return this(n(t).keySeq())};Dr.prototype.toString=function(){return this.__toString("Set {","}")};Dr.prototype.has=function(t){return this._map.has(t)};Dr.prototype.add=function(t){return Ir(this,this._map.set(t,!0))};Dr.prototype.remove=function(t){return Ir(this,this._map.remove(t))};Dr.prototype.clear=function(){return Ir(this,this._map.clear())};Dr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){
|
||
for(var r=0;r<e.length;r++)o(e[r]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])};Dr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.every((function(t){return t.includes(r)}))||t.remove(r)}))}))};Dr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.some((function(t){return t.includes(r)}))&&t.remove(r)}))}))};Dr.prototype.merge=function(){return this.union.apply(this,arguments)};Dr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)};Dr.prototype.sort=function(t){return Lr(lr(this,t))};Dr.prototype.sortBy=function(t,e){return Lr(lr(this,e,t))};Dr.prototype.wasAltered=function(){return this._map.wasAltered()}
|
||
;Dr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)};Dr.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)};Dr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);if(!t){this.__ownerID=t;this._map=e;return this}return this.__make(e,t)};function Kr(t){return!(!t||!t[Mr])}Dr.isSet=Kr;var Tr,Mr="@@__IMMUTABLE_SET__@@",Ar=Dr.prototype;Ar[Mr]=!0;Ar[d]=Ar.remove;Ar.mergeDeep=Ar.merge;Ar.mergeDeepWith=Ar.mergeWith;Ar.withMutations=Jt.withMutations;Ar.asMutable=Jt.asMutable;Ar.asImmutable=Jt.asImmutable;Ar.__empty=Rr;Ar.__make=Br;function Ir(t,e){if(t.__ownerID){t.size=e.size;t._map=e;return t}return e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Br(t,e){var r=Object.create(Ar);r.size=t?t.size:0;r._map=t;r.__ownerID=e;return r}function Rr(){return Tr||(Tr=Br(ie()))}e(Lr,Dr);function Lr(t){
|
||
return null==t?jr():Nr(t)?t:jr().withMutations((function(e){var r=o(t);qt(r.size);r.forEach((function(t){return e.add(t)}))}))}Lr.of=function(){return this(arguments)};Lr.fromKeys=function(t){return this(n(t).keySeq())};Lr.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Nr(t){return Kr(t)&&l(t)}Lr.isOrderedSet=Nr;var Fr,Pr=Lr.prototype;Pr[g]=!0;Pr.__empty=jr;Pr.__make=zr;function zr(t,e){var r=Object.create(Pr);r.size=t?t.size:0;r._map=t;r.__ownerID=e;return r}function jr(){return Fr||(Fr=zr(We()))}e(Ur,kt);function Ur(t){return null==t?Jr():qr(t)?t:Jr().unshiftAll(t)}Ur.of=function(){return this(arguments)};Ur.prototype.toString=function(){return this.__toString("Stack [","]")};Ur.prototype.get=function(t,e){var r=this._head;t=O(this,t);for(;r&&t--;)r=r.next;return r?r.value:e};Ur.prototype.peek=function(){return this._head&&this._head.value};Ur.prototype.push=function(){if(0===arguments.length)return this
|
||
;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};if(this.__ownerID){this.size=t;this._head=e;this.__hash=void 0;this.__altered=!0;return this}return Gr(t,e)};Ur.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;qt(t.size);var e=this.size,r=this._head;t.reverse().forEach((function(t){e++;r={value:t,next:r}}));if(this.__ownerID){this.size=e;this._head=r;this.__hash=void 0;this.__altered=!0;return this}return Gr(e,r)};Ur.prototype.pop=function(){return this.slice(1)};Ur.prototype.unshift=function(){return this.push.apply(this,arguments)};Ur.prototype.unshiftAll=function(t){return this.pushAll(t)};Ur.prototype.shift=function(){return this.pop.apply(this,arguments)};Ur.prototype.clear=function(){if(0===this.size)return this;if(this.__ownerID){this.size=0;this._head=void 0;this.__hash=void 0;this.__altered=!0;return this}return Jr()};Ur.prototype.slice=function(t,e){if(K(t,e,this.size))return this;var r=T(t,this.size)
|
||
;if(M(e,this.size)!==this.size)return kt.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;if(this.__ownerID){this.size=n;this._head=i;this.__hash=void 0;this.__altered=!0;return this}return Gr(n,i)};Ur.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;if(!t){this.__ownerID=t;this.__altered=!1;return this}return Gr(this.size,this._head,t,this.__hash)};Ur.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r};Ur.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new P((function(){if(n){var e=n.value;n=n.next;return z(t,r++,e)}return j()}))};function qr(t){return!(!t||!t[Wr])}Ur.isStack=qr;var Hr,Wr="@@__IMMUTABLE_STACK__@@",Vr=Ur.prototype;Vr[Wr]=!0;Vr.withMutations=Jt.withMutations;Vr.asMutable=Jt.asMutable;Vr.asImmutable=Jt.asImmutable;Vr.wasAltered=Jt.wasAltered;function Gr(t,e,r,n){
|
||
var i=Object.create(Vr);i.size=t;i._head=e;i.__ownerID=r;i.__hash=n;i.__altered=!1;return i}function Jr(){return Hr||(Hr=Gr(0))}function $r(t,e){var r=function(r){t.prototype[r]=e[r]};Object.keys(e).forEach(r);Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r);return t}r.Iterator=P;$r(r,{toArray:function(){qt(this.size);var t=new Array(this.size||0);this.valueSeq().__iterate((function(e,r){t[r]=e}));return t},toIndexedSeq:function(){return new Je(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Ge(this,!0)},toMap:function(){return Ht(this.toKeyedSeq())},toObject:function(){qt(this.size);var t={};this.__iterate((function(e,r){t[r]=e}));return t},toOrderedMap:function(){return Ue(this.toKeyedSeq())},toOrderedSet:function(){
|
||
return Lr(u(this)?this.valueSeq():this)},toSet:function(){return Dr(u(this)?this.valueSeq():this)},toSetSeq:function(){return new $e(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ur(u(this)?this.valueSeq():this)},toList:function(){return ke(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return gr(this,ar(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return vt(e,t)}))},entries:function(){return this.__iterator(R)},every:function(t,e){qt(this.size);var r=!0;this.__iterate((function(n,i,o){if(!t.call(e,n,i,o)){r=!1;return!1}}));return r},filter:function(t,e){return gr(this,tr(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;this.__iterate((function(n,i,o){
|
||
if(t.call(e,n,i,o)){r=[i,n];return!1}}));return r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){qt(this.size);return this.__iterate(e?t.bind(e):t)},join:function(t){qt(this.size);t=void 0!==t?""+t:",";var e="",r=!0;this.__iterate((function(n){r?r=!1:e+=t;e+=null!=n?n.toString():""}));return e},keys:function(){return this.__iterator(I)},map:function(t,e){return gr(this,Ze(this,t,e))},reduce:function(t,e,r){qt(this.size);var n,i;arguments.length<2?i=!0:n=e;this.__iterate((function(e,o,a){if(i){i=!1;n=e}else n=t.call(r,n,e,o,a)}));return n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return gr(this,Qe(this,!0))},slice:function(t,e){return gr(this,nr(this,t,e,!0))},some:function(t,e){return!this.every(tn(t),e)},sort:function(t){return gr(this,lr(this,t))},values:function(){return this.__iterator(B)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){
|
||
return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return E(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return er(this,t,e)},equals:function(t){return mt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(Qr).toIndexedSeq();e.fromEntrySeq=function(){return t.toSeq()};return e},filterNot:function(t,e){return this.filter(tn(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(D)},flatMap:function(t,e){return gr(this,sr(this,t,e))},flatten:function(t){return gr(this,ur(this,t,!0))},fromEntrySeq:function(){return new Xe(this)},get:function(t,e){return this.find((function(e,r){return vt(r,t)}),void 0,e)},getIn:function(t,e){for(var r,n=this,i=Sr(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,_):_)===_)return e}return n},groupBy:function(t,e){return rr(this,t,e)},has:function(t){return this.get(t,_)!==_},
|
||
hasIn:function(t){return this.getIn(t,_)!==_},isSubset:function(t){t="function"==typeof t.includes?t:r(t);return this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return fr(this,t)},maxBy:function(t,e){return fr(this,e,t)},min:function(t){return fr(this,t?en(t):on)},minBy:function(t,e){return fr(this,e?en(e):on,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return gr(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return gr(this,or(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tn(t),e)},sortBy:function(t,e){return gr(this,lr(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return gr(this,this.toSeq().reverse().take(t).reverse())},
|
||
takeWhile:function(t,e){return gr(this,ir(this,t,e))},takeUntil:function(t,e){return this.takeWhile(tn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=an(this))}});var Xr=r.prototype;Xr[f]=!0;Xr[F]=Xr.values;Xr.__toJS=Xr.toArray;Xr.__toStringMapper=rn;Xr.inspect=Xr.toSource=function(){return this.toString()};Xr.chain=Xr.flatMap;Xr.contains=Xr.includes;!function(){try{Object.defineProperty(Xr,"length",{get:function(){if(!r.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject")){console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t);return this.size}}}})}catch(t){}}();$r(n,{flip:function(){return gr(this,Ye(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){
|
||
return this.findKey((function(e){return vt(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return vt(e,t)}))},mapEntries:function(t,e){var r=this,n=0;return gr(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return gr(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var Yr=n.prototype;Yr[p]=!0;Yr[F]=Xr.entries;Yr.__toJS=Xr.toObject;Yr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rn(t)};$r(i,{toKeyedSeq:function(){return new Ge(this,!1)},filter:function(t,e){return gr(this,tr(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return gr(this,Qe(this,!1))},slice:function(t,e){return gr(this,nr(this,t,e,!1))},splice:function(t,e){
|
||
var r=arguments.length;e=Math.max(0|e,0);if(0===r||2===r&&!e)return this;t=T(t,t<0?this.count():this.size);var n=this.slice(0,t);return gr(this,1===r?n:n.concat(C(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return gr(this,ur(this,t,!1))},get:function(t,e){return(t=O(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=O(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return gr(this,cr(this,t))},interleave:function(){var t=[this].concat(C(arguments)),e=hr(this.toSeq(),$.of,t),r=e.flatten(!0);e.size&&(r.size=e.size*t.length);return gr(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return gr(this,or(this,t,e,!1))},zip:function(){return gr(this,hr(this,nn,[this].concat(C(arguments))))},
|
||
zipWith:function(t){var e=C(arguments);e[0]=this;return gr(this,hr(this,t,e))}});i.prototype[h]=!0;i.prototype[g]=!0;$r(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});o.prototype.has=Xr.includes;$r(J,n.prototype);$r($,i.prototype);$r(X,o.prototype);$r(xt,n.prototype);$r(kt,i.prototype);$r(Ct,o.prototype);function Zr(t,e){return e}function Qr(t,e){return[e,t]}function tn(t){return function(){return!t.apply(this,arguments)}}function en(t){return function(){return-t.apply(this,arguments)}}function rn(t){return"string"==typeof t?JSON.stringify(t):t}function nn(){return C(arguments)}function on(t,e){return t<e?1:t>e?-1:0}function an(t){if(t.size===1/0)return 0;var e=l(t),r=u(t),n=e?1:0;return un(t.__iterate(r?e?function(t,e){n=31*n+sn(Dt(t),Dt(e))|0}:function(t,e){n=n+sn(Dt(t),Dt(e))|0}:e?function(t){n=31*n+Dt(t)|0}:function(t){n=n+Dt(t)|0}),n)}function un(t,e){e=Et(e,3432918353);e=Et(e<<15|e>>>-15,461845907)
|
||
;e=Et(e<<13|e>>>-13,5);e=Et((e=(e+3864292196|0)^t)^e>>>16,2246822507);return e=Ot((e=Et(e^e>>>13,3266489909))^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return{Iterable:r,Seq:G,Collection:wt,Map:Ht,OrderedMap:Ue,List:ke,Stack:Ur,Set:Dr,OrderedSet:Lr,Record:wr,Range:St,Repeat:_t,is:vt,fromJS:ht}}()},324889:function(t,e,r){var n=r(734155);!function(t,e){"use strict";if(!t.setImmediate){var r,i,o=1,a={},u=!1,s=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t;"[object process]"==={}.toString.call(t.process)?r=function(t){n.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;t.onmessage=function(){e=!1};t.postMessage("","*");t.onmessage=r;return e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(r){r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&f(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n)
|
||
;r=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){f(t.data)};r=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?(i=s.documentElement,r=function(t){var e=s.createElement("script");e.onreadystatechange=function(){f(t);e.onreadystatechange=null;i.removeChild(e);e=null};i.appendChild(e)}):r=function(t){setTimeout(f,0,t)};c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};a[o]=i;r(o);return o++};c.clearImmediate=l}function l(t){delete a[t]}function f(t){if(u)setTimeout(f,0,t);else{var e=a[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{l(t);u=!1}}}}
|
||
}("undefined"==typeof self?void 0===r.g?this:r.g:self)},470661:t=>{"use strict";t.exports=function(t){var i,o;if((t=String(t).toLowerCase()).length<3)return t;if(t.charCodeAt(0)===e){i=!0;t="Y"+t.substr(1)}b.test(t)?t=t.substr(0,t.length-2):_.test(t)&&(t=t.substr(0,t.length-1));if(o=m.exec(t))u.test(o[1])&&(t=t.substr(0,t.length-1));else if((o=y.exec(t))&&l.test(o[1])){t=o[1];v.test(t)?t+="e":S.test(t)?t=t.substr(0,t.length-1):f.test(t)&&(t+="e")}(o=g.exec(t))&&l.test(o[1])&&(t=o[1]+"i");(o=w.exec(t))&&u.test(o[1])&&(t=o[1]+r[o[2]]);(o=x.exec(t))&&u.test(o[1])&&(t=o[1]+n[o[2]]);(o=k.exec(t))?c.test(o[1])&&(t=o[1]):(o=d.exec(t))&&c.test(o[1])&&(t=o[1]);(o=h.exec(t))&&(c.test(o[1])||s.test(o[1])&&!f.test(o[1]))&&(t=o[1]);p.test(t)&&c.test(t)&&(t=t.substr(0,t.length-1));i&&(t="y"+t.substr(1));return t};var e="y".charCodeAt(0),r={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",
|
||
alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},n={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},i="[aeiouy]",o="([^aeiou][^aeiouy]*)",a="([aeiouy][aeiou]*)",u=new RegExp("^([^aeiou][^aeiouy]*)?"+a+o),s=new RegExp("^([^aeiou][^aeiouy]*)?"+a+o+a+"?$"),c=new RegExp("^([^aeiou][^aeiouy]*)?("+a+o+"){2,}"),l=new RegExp("^([^aeiou][^aeiouy]*)?"+i),f=new RegExp("^"+o+i+"[^aeiouwxy]$"),p=/ll$/,h=/^(.+?)e$/,g=/^(.+?)y$/,d=/^(.+?(s|t))(ion)$/,y=/^(.+?)(ed|ing)$/,v=/(at|bl|iz)$/,m=/^(.+?)eed$/,_=/^.+?[^s]s$/,b=/^.+?(ss|i)es$/,S=/([^aeiouylsz])\1$/,w=new RegExp("^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$"),x=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,k=new RegExp("^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$")},108717:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});var n=r(785893),i=(r(667294),
|
||
r(294184)),o=r.n(i),a=r(294347),u=r.n(a);function s(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;return t}function c(t,e){e=null!=e?e:{};Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})));r.push.apply(r,n)}return r}(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}));return t}function l(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++){r=o[n];e.indexOf(r)>=0||(i[r]=t[r])}return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++){r=o[n];e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}}return i}
|
||
const f=function(t){var e=t.open,r=void 0!==e&&e,i=t.className,a=l(t,["open","className"]);return(0,n.jsxs)("button",c(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))));n.forEach((function(e){s(t,e,r[e])}))}return t}({type:"button",className:o()(u().btnHamburger,s({},u().btnHamburgerOpen,r),i)},a),{children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}))}},652286:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(667294);function i(){var t=(0,n.createContext)(void 0);return{Provider:function(e){var r=e.initialStore,i=e.createStore,o=e.children,a=(0,n.useRef)();if(!a.current){if(r){console.warn("Provider initialStore is deprecated and will be removed in the next version.")
|
||
;i||(i=function(){return r})}a.current=i()}return(0,n.createElement)(t.Provider,{value:a.current},o)},useStore:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,i=(0,n.useContext)(t);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return i(e,r)},useStoreApi:function(){var e=(0,n.useContext)(t);if(!e)throw new Error("Seems like you have not used zustand provider as an ancestor.");return(0,n.useMemo)((function(){return{getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}}),[e])}}}},42238:function(t,e,r){var n;!function(i,o){"use strict"
|
||
;var a="function",u="undefined",s="object",c="string",l="major",f="model",p="name",h="type",g="vendor",d="version",y="architecture",v="console",m="mobile",_="tablet",b="smarttv",S="wearable",w="embedded",x="Amazon",k="Apple",C="ASUS",E="BlackBerry",O="Firefox",D="Google",K="Huawei",T="LG",M="Microsoft",A="Motorola",I="Opera",B="Samsung",R="Sharp",L="Sony",N="Xiaomi",F="Zebra",P="Facebook",z="Chromium OS",j="Mac OS",U=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},q=function(t,e){return typeof t===c&&-1!==H(e).indexOf(H(t))},H=function(t){return t.toLowerCase()},W=function(t,e){if(typeof t===c){t=t.replace(/^\s\s*/,"");return typeof e===u?t:t.substring(0,350)}},V=function(t,e){for(var r,n,i,u,c,l,f=0;f<e.length&&!c;){var p=e[f],h=e[f+1];r=n=0;for(;r<p.length&&!c&&p[r];)if(c=p[r++].exec(t))for(i=0;i<h.length;i++){l=c[++n]
|
||
;typeof(u=h[i])===s&&u.length>0?2===u.length?typeof u[1]==a?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==a||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):o:this[u[0]]=l?u[1].call(this,l,u[2]):o:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):o):this[u]=l||o}f+=2}},G=function(t,e){for(var r in e)if(typeof e[r]===s&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(q(e[r][n],t))return"?"===r?o:r}else if(q(e[r],t))return"?"===r?o:r;return t},J={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"},$={
|
||
browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,d],[/opios[\/ ]+([\w\.]+)/i],[d,[p,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[d,[p,I]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[p,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[d,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure Browser"],d],[/\bfocus\/([\w\.]+)/i],[d,[p,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[d,[p,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[p,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[p,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[d,[p,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 Browser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,P],d],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[p,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,"Chrome WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[p,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[d,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],[p,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[p,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,d],[/(cobalt)\/([\w\.]+)/i],[p,[d,/master.|lts./,""]]],
|
||
cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,H]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,H]]],
|
||
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],[f,[g,B],[h,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,B],[h,m]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[g,k],[h,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,k],[h,_]],[/(macintosh);/i],[f,[g,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,R],[h,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,K],[h,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,K],[h,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,N],[h,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,N],[h,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[h,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[h,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[h,m]],[/\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],[f,[g,A],[h,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,A],[h,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,T],[h,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,T],[h,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[h,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[h,m]],[/(pixel c)\b/i],[f,[g,D],[h,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,D],[h,m]],[/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],[f,[g,L],[h,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,L],[h,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[h,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,x],[h,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,x],[h,m]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[h,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,E],[h,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,C],[h,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,C],[h,m]],[/(nexus 9)/i],[f,[g,"HTC"],[h,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[h,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[h,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[h,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[h,m]],[/(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],[g,f,[h,_]],[/(surface duo)/i],[f,[g,M],[h,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[h,m]],[/(u304aa)/i],[f,[g,"AT&T"],[h,m]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[h,m]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[h,_]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[h,_]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[h,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[h,_]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[h,_]],[/\b(k88) b/i],[f,[g,"ZTE"],[h,_]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[h,m]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[h,m]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[h,_]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[h,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[h,_]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[h,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[h,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[h,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[h,m]],[/\b(ph-1) /i],[f,[g,"Essential"],[h,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[h,_]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[h,_]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[h,_]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[h,_]],[/(sprint) (\w+)/i],[g,f,[h,m]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,M],[h,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,F],[h,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,F],[h,m]],[/smart-tv.+(samsung)/i],[g,[h,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,B],[h,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,T],[h,b]],[/(apple) ?tv/i],[g,[f,"Apple TV"],[h,b]],[/crkey/i],[[f,"Chromecast"],[g,D],[h,b]],[/droid.+aft(\w)( bui|\))/i],[f,[g,x],[h,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,R],[h,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,L],[h,b]],[/(mitv-\w{5}) bui/i],[f,[g,N],[h,b]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[h,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,W],[f,W],[h,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[h,v]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[f,[g,L],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,M],[h,v]],[/((pebble))app/i],[g,f,[h,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,k],[h,S]],[/droid.+; (glass) \d/i],[f,[g,D],[h,S]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,F],[h,S]],[/(quest( 2| pro)?)/i],[f,[g,P],[h,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[h,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,m]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],
|
||
engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[p,"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],[p,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,p]],
|
||
os:[[/microsoft (windows) (vista|xp)/i],[p,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[d,G,J]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[d,G,J]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,j],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,d],[/\(bb(10);/i],[d,[p,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[p,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[p,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,z],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,d],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,d]]
|
||
},X=function(t,e){if(typeof t===s){e=t;t=o}if(!(this instanceof X))return new X(t,e).getResult();var r=typeof i!==u&&i.navigator?i.navigator:o,n=t||(r&&r.userAgent?r.userAgent:""),l=r&&r.userAgentData?r.userAgentData:o,f=e?function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r}($,e):$;this.getBrowser=function(){var t,e={};e.name=o;e.version=o;V.call(e,n,f.browser);e.major=typeof(t=e.version)===c?t.replace(/[^\d\.]/g,"").split(".")[0]:o;r&&r.brave&&typeof r.brave.isBrave==a&&(e.name="Brave");return e};this.getCPU=function(){var t={};t.architecture=o;V.call(t,n,f.cpu);return t};this.getDevice=function(){var t={};t.vendor=o;t.model=o;t.type=o;V.call(t,n,f.device);!t.type&&l&&l.mobile&&(t.type=m);if("Macintosh"==t.model&&r&&typeof r.standalone!==u&&r.maxTouchPoints&&r.maxTouchPoints>2){t.model="iPad";t.type=_}return t};this.getEngine=function(){var t={};t.name=o;t.version=o;V.call(t,n,f.engine);return t};this.getOS=function(){var t={}
|
||
;t.name=o;t.version=o;V.call(t,n,f.os);!t.name&&l&&"Unknown"!=l.platform&&(t.name=l.platform.replace(/chrome os/i,z).replace(/macos/i,j));return t};this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}};this.getUA=function(){return n};this.setUA=function(t){n=typeof t===c&&t.length>350?W(t,350):t;return this};this.setUA(n);return this};X.VERSION="0.7.34";X.BROWSER=U([p,d,l]);X.CPU=U([y]);X.DEVICE=U([f,g,h,v,m,b,_,S,w]);X.ENGINE=X.OS=U([p,d]);if(typeof e!==u){t.exports&&(e=t.exports=X);e.UAParser=X}else r.amdO?(n=function(){return X}.call(e,r,e,t))!==o&&(t.exports=n):typeof i!==u&&(i.UAParser=X);var Y=typeof i!==u&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var Z=new X;Y.ua=Z.getResult();Y.ua.get=function(){return Z.getUA()};Y.ua.set=function(t){Z.setUA(t);var e=Z.getResult();for(var r in e)Y.ua[r]=e[r]}}}("object"==typeof window?window:this)}}]);
|
||
//# sourceMappingURL=c30dc89c64400a4d4e76.js.map
|