@livetiles/reach-components-react 0.4.0-preview.393 → 0.4.0-preview.394
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm2.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -113,7 +113,7 @@ var Jq=function(){return Jq=Object.assign||function(e){for(var t,n=1,i=arguments
|
|
|
113
113
|
object-assign
|
|
114
114
|
(c) Sindre Sorhus
|
|
115
115
|
@license MIT
|
|
116
|
-
*/function vW(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var _W=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=vW(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))gW.call(n,o)&&(r[o]=n[o]);if(hW){i=hW(n);for(var s=0;s<i.length;s++)mW.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},bW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yW=function(){};if("production"!==go.env.NODE_ENV){var wW=bW,FW={},kW=Function.call.bind(Object.prototype.hasOwnProperty);yW=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function xW(e,t,n,i,r){if("production"!==go.env.NODE_ENV)for(var a in e)if(kW(e,a)){var o;try{if("function"!=typeof e[a]){var s=Error((i||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}o=e[a](t,a,i,n,null,wW)}catch(e){o=e}if(!o||o instanceof Error||yW((i||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in FW)){FW[o.message]=!0;var l=r?r():"";yW("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}xW.resetWarningCache=function(){"production"!==go.env.NODE_ENV&&(FW={})};var EW=xW,CW=w.default,SW=_W,DW=bW,PW=EW,AW=Function.call.bind(Object.prototype.hasOwnProperty),TW=function(){};function LW(){return null}"production"!==go.env.NODE_ENV&&(TW=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function IW(){}function MW(){}MW.resetWarningCache=IW;if("production"!==go.env.NODE_ENV){var jW=w.default;pW.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,i="<<anonymous>>",r={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:s(LW),arrayOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,i,r,a+"["+l+"]",DW);if(u instanceof Error)return u}return null}))},element:s((function(t,n,i,r,a){var s=t[n];return e(s)?null:new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,i,r){var a=e[t];return CW.isValidElementType(a)?null:new o("Invalid "+i+" `"+r+"` of type `"+c(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,r,a,s){if(!(t[n]instanceof e)){var l=e.name||i;return new o("Invalid "+a+" `"+s+"` of type `"+((u=t[n]).constructor&&u.constructor.name?u.constructor.name:i)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var u;return null}))},node:s((function(e,t,n,i,r){return u(e[t])?null:new o("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(AW(s,u)){var d=e(s,u,i,r,a+"."+u,DW);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==go.env.NODE_ENV&&TW(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),LW;function t(t,n,i,r,s){for(var l=t[n],u=0;u<e.length;u++)if(a(l,e[u]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===d(t)?String(t):t}));return new o("Invalid "+r+" `"+s+"` of value `"+String(l)+"` supplied to `"+i+"`, expected one of "+c+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==go.env.NODE_ENV&&TW("Invalid argument supplied to oneOfType, expected an instance of array."),LW;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return TW("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),LW}return s((function(t,n,i,r,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,i,r,a,DW))return null;return new o("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var d=e[u];if(d){var f=d(s,u,i,r,a+"."+u,DW);if(f)return f}}return null}))},exact:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var u=SW({},t[n],e);for(var d in u){var f=e[d];if(!f)return new o("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(s,d,i,r,a+"."+d,DW);if(p)return p}return null}))}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e){this.message=e,this.stack=""}function s(e){if("production"!==go.env.NODE_ENV)var n={},r=0;function a(a,s,l,u,c,d,f){if(u=u||i,d=d||l,f!==DW){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==go.env.NODE_ENV&&"undefined"!=typeof console){var h=u+":"+l;!n[h]&&r<3&&(TW("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==s[l]?a?null===s[l]?new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,l,u,c,d)}var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function l(e){return s((function(t,n,i,r,a,s){var l=t[n];return c(l)!==e?new o("Invalid "+r+" `"+a+"` of type `"+d(l)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var i=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!i)return!1;var r,a=i.call(t);if(i!==t.entries){for(;!(r=a.next()).done;)if(!u(r.value))return!1}else for(;!(r=a.next()).done;){var o=r.value;if(o&&!u(o[1]))return!1}return!0;default:return!1}}function c(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function d(e){if(null==e)return""+e;var t=c(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=d(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return o.prototype=Error.prototype,r.checkPropTypes=PW,r.resetWarningCache=PW.resetWarningCache,r.PropTypes=r,r}(jW.isElement,!0)}else pW.exports=function(){function e(e,t,n,i,r,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:MW,resetWarningCache:IW};return n.PropTypes=n,n}();var NW=pW.exports,RW=!1,OW="production"!==go.env.NODE_ENV?NW.oneOfType([NW.number,NW.shape({enter:NW.number,exit:NW.number,appear:NW.number}).isRequired]):null;"production"!==go.env.NODE_ENV&&NW.oneOfType([NW.string,NW.shape({enter:NW.string,exit:NW.string,active:NW.string}),NW.shape({enter:NW.string,enterDone:NW.string,enterActive:NW.string,exit:NW.string,exitDone:NW.string,exitActive:NW.string})]);var zW=m.default.createContext(null),BW="unmounted",GW="exited",qW="entering",UW="entered",HW="exiting",WW=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r,a=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(r=GW,i.appearStatus=qW):r=UW:r=t.unmountOnExit||t.mountOnEnter?BW:GW,i.state={status:r},i.nextCallback=null,i}fW(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===BW?{status:GW}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qW&&n!==UW&&(t=qW):n!==qW&&n!==UW||(t=HW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===qW?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===GW&&this.setState({status:BW})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,r=this.props.nodeRef?[i]:[b.default.findDOMNode(this),i],a=r[0],o=r[1],s=this.getTimeouts(),l=i?s.appear:s.enter;!e&&!n||RW?this.safeSetState({status:UW},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:qW},(function(){t.props.onEntering(a,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:UW},(function(){t.props.onEntered(a,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:b.default.findDOMNode(this);t&&!RW?(this.props.onExit(i),this.safeSetState({status:HW},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:GW},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:GW},(function(){e.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:b.default.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=r[0],o=r[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===BW)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=cW(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.default.createElement(zW.Provider,{value:null},"function"==typeof n?n(e,i):m.default.cloneElement(m.default.Children.only(n),i))},t}(m.default.Component);function YW(){}WW.contextType=zW,WW.propTypes="production"!==go.env.NODE_ENV?{nodeRef:NW.shape({current:"undefined"==typeof Element?NW.any:function(e,t,n,i,r,a){var o=e[t];return NW.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,i,r,a)}}),children:NW.oneOfType([NW.func.isRequired,NW.element.isRequired]).isRequired,in:NW.bool,mountOnEnter:NW.bool,unmountOnExit:NW.bool,appear:NW.bool,enter:NW.bool,exit:NW.bool,timeout:function(e){var t=OW;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.apply(void 0,[e].concat(i))},addEndListener:NW.func,onEnter:NW.func,onEntering:NW.func,onEntered:NW.func,onExit:NW.func,onExiting:NW.func,onExited:NW.func}:{},WW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:YW,onEntering:YW,onEntered:YW,onExit:YW,onExiting:YW,onExited:YW},WW.UNMOUNTED=BW,WW.EXITED=GW,WW.ENTERING=qW,WW.ENTERED=UW,WW.EXITING=HW;var VW=WW;function KW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JW(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&i.isValidElement(e)?t(e):e}(e)})),n}function QW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ZW(e,t,n){var r=JW(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var u=r[l][i];s[r[l][i]]=n(u)}s[l]=n(l)}for(i=0;i<a.length;i++)s[a[i]]=n(a[i]);return s}(t,r);return Object.keys(a).forEach((function(o){var s=a[o];if(i.isValidElement(s)){var l=o in t,u=o in r,c=t[o],d=i.isValidElement(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&i.isValidElement(c)&&(a[o]=i.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:QW(s,"exit",e),enter:QW(s,"enter",e)})):a[o]=i.cloneElement(s,{in:!1}):a[o]=i.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:QW(s,"exit",e),enter:QW(s,"enter",e)})}})),a}var $W=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},XW=function(e){function t(t,n){var i,r=(i=e.call(this,t,n)||this).handleExited.bind(KW(i));return i.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},i}fW(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,a=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,JW(n.children,(function(e){return i.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:QW(e,"appear",n),enter:QW(e,"enter",n),exit:QW(e,"exit",n)})}))):ZW(e,a,o),firstRender:!1}},n.handleExited=function(e,t){var n=JW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=uW({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=cW(e,["component","childFactory"]),r=this.state.contextValue,a=$W(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?m.default.createElement(zW.Provider,{value:r},a):m.default.createElement(zW.Provider,{value:r},m.default.createElement(t,i,a))},t}(m.default.Component);XW.propTypes="production"!==go.env.NODE_ENV?{component:NW.any,children:NW.node,appear:NW.bool,enter:NW.bool,exit:NW.bool,childFactory:NW.func}:{},XW.defaultProps={component:"div",childFactory:function(e){return e}};var eY=XW,tY={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},nY={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},iY=0,rY=1,aY=2,oY=3,sY=4,lY=function(){};function uY(e){return"number"==typeof e&&!isNaN(e)&&e>0}function cY(e){return Object.keys(e).map((function(t){return e[t]}))}var dY=!("undefined"==typeof window||!window.document||!window.document.createElement);var fY,pY=((fY=function(e,t,n){var i=e[t];return!1===i||uY(i)?null:new Error(n+" expect "+t+" \n to be a valid Number > 0 or equal to false. "+i+" given.")}).isRequired=function(e,t,n){if(void 0===e[t])return new Error("The prop "+t+" is marked as required in \n "+n+", but its value is undefined.");fY(e,t,n)},fY),hY={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e){return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.list.has(e)&&this.list.get(e).forEach((function(n){var r=setTimeout((function(){n.apply(void 0,i)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(r)}))}};function gY(e){var t=e.enter,n=e.exit,i=e.duration,r=void 0===i?750:i,a=e.appendPosition,o=void 0!==a&&a;return function(e){var i,a,s=e.children,l=e.position,u=e.preventExitTransition,c=cW(e,["children","position","preventExitTransition"]),d=o?t+"--"+l:t,f=o?n+"--"+l:n;Array.isArray(r)&&2===r.length?(i=r[0],a=r[1]):i=a=r;return m.default.createElement(VW,uW({},c,{timeout:u?0:{enter:i,exit:a},onEnter:function(e){e.classList.add(d),e.style.animationFillMode="forwards",e.style.animationDuration=.001*i+"s"},onEntered:function(e){e.classList.remove(d),e.style.cssText=""},onExit:u?lY:function(e){e.classList.add(f),e.style.animationFillMode="forwards",e.style.animationDuration=.001*a+"s"}}),s)}}function mY(e){var t,n,i=e.delay,r=e.isRunning,a=e.closeToast,o=e.type,s=e.hide,l=e.className,u=e.style,c=e.controlledProgress,d=e.progress,f=e.rtl,p=uW({},u,{animationDuration:i+"ms",animationPlayState:r?"running":"paused",opacity:s?0:1,transform:c?"scaleX("+d+")":null}),h=WU("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+o,((t={})["Toastify__progress-bar--rtl"]=f,t),l),g=((n={})[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]=c&&d<1?null:a,n);return m.default.createElement("div",uW({className:h,style:p},g))}function vY(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function _Y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}mY.propTypes={delay:pY.isRequired,isRunning:NW.bool.isRequired,closeToast:NW.func.isRequired,rtl:NW.bool.isRequired,type:NW.string,hide:NW.bool,className:NW.oneOfType([NW.string,NW.object]),progress:NW.number,controlledProgress:NW.bool},mY.defaultProps={type:nY.DEFAULT,hide:!1};var bY=dY&&/(msie|trident)/i.test(navigator.userAgent),yY=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={isRunning:!0,preventExitTransition:!1},t.flag={canCloseOnClick:!0,canDrag:!1},t.drag={start:0,x:0,y:0,deltaX:0,removalDistance:0},t.boundingRect=null,t.ref=null,t.pauseToast=function(){t.props.autoClose&&t.setState({isRunning:!1})},t.playToast=function(){t.props.autoClose&&t.setState({isRunning:!0})},t.onDragStart=function(e){t.flag.canCloseOnClick=!0,t.flag.canDrag=!0,t.boundingRect=t.ref.getBoundingClientRect(),t.ref.style.transition="",t.drag.start=t.drag.x=vY(e.nativeEvent),t.drag.removalDistance=t.ref.offsetWidth*(t.props.draggablePercent/100)},t.onDragMove=function(e){t.flag.canDrag&&(t.state.isRunning&&t.pauseToast(),t.drag.x=vY(e),t.drag.deltaX=t.drag.x-t.drag.start,t.drag.y=_Y(e),t.drag.start!==t.drag.x&&(t.flag.canCloseOnClick=!1),t.ref.style.transform="translateX("+t.drag.deltaX+"px)",t.ref.style.opacity=1-Math.abs(t.drag.deltaX/t.drag.removalDistance))},t.onDragEnd=function(e){if(t.flag.canDrag){if(t.flag.canDrag=!1,Math.abs(t.drag.deltaX)>t.drag.removalDistance)return void t.setState({preventExitTransition:!0},t.props.closeToast);t.ref.style.transition="transform 0.2s, opacity 0.2s",t.ref.style.transform="translateX(0)",t.ref.style.opacity=1}},t.onDragTransitionEnd=function(){if(t.boundingRect){var e=t.boundingRect,n=e.top,i=e.bottom,r=e.left,a=e.right;t.props.pauseOnHover&&t.drag.x>=r&&t.drag.x<=a&&t.drag.y>=n&&t.drag.y<=i?t.pauseToast():t.playToast()}},t.onExitTransitionEnd=function(){if(bY)t.props.onExited();else{var e=t.ref.scrollHeight,n=t.ref.style;requestAnimationFrame((function(){n.minHeight="initial",n.height=e+"px",n.transition="all 0.4s ",requestAnimationFrame((function(){n.height=0,n.padding=0,n.margin=0})),setTimeout((function(){return t.props.onExited()}),400)}))}},t}fW(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(e){e.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),e.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var e,t=this,n=this.props,i=n.closeButton,r=n.children,a=n.autoClose,o=n.pauseOnHover,s=n.onClick,l=n.closeOnClick,u=n.type,c=n.hideProgressBar,d=n.closeToast,f=n.transition,p=n.position,h=n.className,g=n.bodyClassName,v=n.progressClassName,_=n.progressStyle,b=n.updateId,y=n.role,w=n.progress,F=n.rtl,k={className:WU("Toastify__toast","Toastify__toast--"+u,(e={},e["Toastify__toast--rtl"]=F,e),h)};a&&o&&(k.onMouseEnter=this.pauseToast,k.onMouseLeave=this.playToast),l&&(k.onClick=function(e){s&&s(e),t.flag.canCloseOnClick&&d()});var x=parseFloat(w)===w;return m.default.createElement(f,{in:this.props.in,appear:!0,onExited:this.onExitTransitionEnd,position:p,preventExitTransition:this.state.preventExitTransition},m.default.createElement("div",uW({onClick:s},k,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onMouseUp:this.onDragTransitionEnd,onTouchEnd:this.onDragTransitionEnd}),m.default.createElement("div",uW({},this.props.in&&{role:y},{className:WU("Toastify__toast-body",g)}),r),i&&i,(a||x)&&m.default.createElement(mY,uW({},b&&!x?{key:"pb-"+b}:{},{rtl:F,delay:a,isRunning:this.state.isRunning,closeToast:d,hide:c,type:u,style:_,className:v,controlledProgress:x,progress:w}))))},t}(i.Component);function wY(e){var t=e.closeToast,n=e.type,i=e.ariaLabel;return m.default.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},"✖︎")}yY.propTypes={closeButton:NW.oneOfType([NW.node,NW.bool]).isRequired,autoClose:pY.isRequired,children:NW.node.isRequired,closeToast:NW.func.isRequired,position:NW.oneOf(cY(tY)).isRequired,pauseOnHover:NW.bool.isRequired,pauseOnFocusLoss:NW.bool.isRequired,closeOnClick:NW.bool.isRequired,transition:NW.func.isRequired,rtl:NW.bool.isRequired,hideProgressBar:NW.bool.isRequired,draggable:NW.bool.isRequired,draggablePercent:NW.number.isRequired,in:NW.bool,onExited:NW.func,onOpen:NW.func,onClose:NW.func,type:NW.oneOf(cY(nY)),className:NW.oneOfType([NW.string,NW.object]),bodyClassName:NW.oneOfType([NW.string,NW.object]),progressClassName:NW.oneOfType([NW.string,NW.object]),progressStyle:NW.object,progress:NW.number,updateId:NW.oneOfType([NW.string,NW.number]),ariaLabel:NW.string,containerId:NW.oneOfType([NW.string,NW.number]),role:NW.string},yY.defaultProps={type:nY.DEFAULT,in:!0,onOpen:lY,onClose:lY,className:null,bodyClassName:null,progressClassName:null,updateId:null},wY.propTypes={closeToast:NW.func,arialLabel:NW.string},wY.defaultProps={ariaLabel:"close"};var FY=gY({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),kY=gY({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0});gY({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),gY({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"});var xY=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={toast:[]},t.toastKey=1,t.collection={},t.isToastActive=function(e){return-1!==t.state.toast.indexOf(e)},t}fW(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;hY.cancelEmit(oY).on(iY,(function(t,n){return e.ref?e.buildToast(t,n):null})).on(rY,(function(t){return e.ref?null==t?e.clear():e.removeToast(t):null})).emit(aY,this)},n.componentWillUnmount=function(){hY.emit(oY,this)},n.removeToast=function(e){this.setState({toast:this.state.toast.filter((function(t){return t!==e}))},this.dispatchChange)},n.dispatchChange=function(){hY.emit(sY,this.state.toast.length,this.props.containerId)},n.makeCloseButton=function(e,t,n){var r=this,a=this.props.closeButton;return i.isValidElement(e)||!1===e?a=e:!0===e&&(a=this.props.closeButton&&"boolean"!=typeof this.props.closeButton?this.props.closeButton:m.default.createElement(wY,null)),!1!==a&&i.cloneElement(a,{closeToast:function(){return r.removeToast(t)},type:n})},n.getAutoCloseDelay=function(e){return!1===e||uY(e)?e:this.props.autoClose},n.canBeRendered=function(e){return i.isValidElement(e)||"string"==typeof e||"number"==typeof e||"function"==typeof e},n.parseClassName=function(e){return"string"==typeof e?e:null!==e&&"object"==typeof e&&"toString"in e?e.toString():null},n.belongToContainer=function(e){return e.containerId===this.props.containerId},n.buildToast=function(e,t){var n=this,r=t.delay,a=cW(t,["delay"]);if(!this.canBeRendered(e))throw new Error("The element you provided cannot be rendered. You provided an element of type "+typeof e);var o=a.toastId,s=a.updateId;if(!(this.props.enableMultiContainer&&!this.belongToContainer(a)||this.isToastActive(o)&&null==s)){var l=function(){return n.removeToast(o)},u={id:o,key:a.key||this.toastKey++,type:a.type,closeToast:l,updateId:a.updateId,rtl:this.props.rtl,position:a.position||this.props.position,transition:a.transition||this.props.transition,className:this.parseClassName(a.className||this.props.toastClassName),bodyClassName:this.parseClassName(a.bodyClassName||this.props.bodyClassName),onClick:a.onClick||this.props.onClick,closeButton:this.makeCloseButton(a.closeButton,o,a.type),pauseOnHover:"boolean"==typeof a.pauseOnHover?a.pauseOnHover:this.props.pauseOnHover,pauseOnFocusLoss:"boolean"==typeof a.pauseOnFocusLoss?a.pauseOnFocusLoss:this.props.pauseOnFocusLoss,draggable:"boolean"==typeof a.draggable?a.draggable:this.props.draggable,draggablePercent:"number"!=typeof a.draggablePercent||isNaN(a.draggablePercent)?this.props.draggablePercent:a.draggablePercent,closeOnClick:"boolean"==typeof a.closeOnClick?a.closeOnClick:this.props.closeOnClick,progressClassName:this.parseClassName(a.progressClassName||this.props.progressClassName),progressStyle:this.props.progressStyle,autoClose:this.getAutoCloseDelay(a.autoClose),hideProgressBar:"boolean"==typeof a.hideProgressBar?a.hideProgressBar:this.props.hideProgressBar,progress:parseFloat(a.progress),role:"string"==typeof a.role?a.role:this.props.role};"function"==typeof a.onOpen&&(u.onOpen=a.onOpen),"function"==typeof a.onClose&&(u.onClose=a.onClose),i.isValidElement(e)&&"string"!=typeof e.type&&"number"!=typeof e.type?e=i.cloneElement(e,{closeToast:l}):"function"==typeof e&&(e=e({closeToast:l})),uY(r)?setTimeout((function(){n.appendToast(u,e,a.staleToastId)}),r):this.appendToast(u,e,a.staleToastId)}},n.appendToast=function(e,t,n){var i,r=e.id,a=e.updateId;this.collection=uW({},this.collection,((i={})[r]={options:e,content:t,position:e.position},i)),this.setState({toast:(a?[].concat(this.state.toast):[].concat(this.state.toast,[r])).filter((function(e){return e!==n}))},this.dispatchChange)},n.clear=function(){this.setState({toast:[]})},n.renderToast=function(){var e=this,t={},n=this.props,i=n.className,r=n.style;return(n.newestOnTop?Object.keys(this.collection).reverse():Object.keys(this.collection)).forEach((function(n){var i=e.collection[n],r=i.position,a=i.options,o=i.content;t[r]||(t[r]=[]),-1!==e.state.toast.indexOf(a.id)?t[r].push(m.default.createElement(yY,uW({},a,{isDocumentHidden:e.state.isDocumentHidden,key:"toast-"+a.key}),o)):(t[r].push(null),delete e.collection[n])})),Object.keys(t).map((function(n){var a,o=1===t[n].length&&null===t[n][0],s={className:WU("Toastify__toast-container","Toastify__toast-container--"+n,(a={},a["Toastify__toast-container--rtl"]=e.props.rtl,a),e.parseClassName(i)),style:o?uW({},r,{pointerEvents:"none"}):uW({},r)};return m.default.createElement(eY,uW({},s,{key:"container-"+n}),t[n])}))},n.render=function(){var e=this;return m.default.createElement("div",{ref:function(t){return e.ref=t},className:"Toastify"},this.renderToast())},t}(i.Component);xY.propTypes={position:NW.oneOf(cY(tY)),autoClose:pY,closeButton:NW.oneOfType([NW.node,NW.bool]),hideProgressBar:NW.bool,pauseOnHover:NW.bool,closeOnClick:NW.bool,newestOnTop:NW.bool,className:NW.oneOfType([NW.string,NW.object]),style:NW.object,toastClassName:NW.oneOfType([NW.string,NW.object]),bodyClassName:NW.oneOfType([NW.string,NW.object]),progressClassName:NW.oneOfType([NW.string,NW.object]),progressStyle:NW.object,transition:NW.func,rtl:NW.bool,draggable:NW.bool,draggablePercent:NW.number,pauseOnFocusLoss:NW.bool,enableMultiContainer:NW.bool,containerId:NW.oneOfType([NW.string,NW.number]),role:NW.string,onClick:NW.func},xY.defaultProps={position:tY.TOP_RIGHT,transition:FY,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:m.default.createElement(wY,null),pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,className:null,style:null,toastClassName:null,bodyClassName:null,progressClassName:null,progressStyle:null,role:"alert"};var EY=new Map,CY=null,SY=null,DY={},PY=[],AY=!1;function TY(){return EY.size>0}function LY(e,t){var n=function(e){return TY()?e?EY.get(e):EY.get(CY):null}(t.containerId);if(!n)return null;var i=n.collection[e];return void 0===i?null:i}function IY(e,t){return uW({},e,{type:t,toastId:jY(e)})}function MY(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function jY(e){return e&&("string"==typeof e.toastId||"number"==typeof e.toastId&&!isNaN(e.toastId))?e.toastId:MY()}function NY(e,t){return TY()?hY.emit(iY,e,t):(PY.push({action:iY,content:e,options:t}),AY&&dY&&(AY=!1,SY=document.createElement("div"),document.body.appendChild(SY),s.render(m.default.createElement(xY,DY),SY))),t.toastId}var RY=function(e,t){return NY(e,IY(t,t&&t.type||nY.DEFAULT))},OY=function(e){nY[e]!==nY.DEFAULT&&(RY[nY[e].toLowerCase()]=function(t,n){return NY(t,IY(n,n&&n.type||nY[e]))})};for(var zY in nY)OY(zY);function BY(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}RY.warn=RY.warning,RY.dismiss=function(e){return void 0===e&&(e=null),TY()&&hY.emit(rY,e)},RY.isActive=function(e){var t=!1;return EY.size>0&&EY.forEach((function(n){n.isToastActive(e)&&(t=!0)})),t},RY.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=LY(e,t);if(n){var i=n.options,r=n.content,a=uW({},i,{},t,{toastId:t.toastId||e});t.toastId&&t.toastId!==e?a.staleToastId=e:a.updateId=MY();var o=void 0!==a.render?a.render:r;delete a.render,NY(o,a)}}),0)},RY.done=function(e){RY.update(e,{progress:1})},RY.onChange=function(e){"function"==typeof e&&hY.on(sY,e)},RY.configure=function(e){AY=!0,DY=e},RY.POSITION=tY,RY.TYPE=nY,hY.on(aY,(function(e){CY=e.props.containerId||e,EY.set(CY,e),PY.forEach((function(e){hY.emit(e.action,e.content,e.options)})),PY=[]})).on(oY,(function(e){e?EY.delete(e.props.containerId||e):EY.clear(),0===EY.size&&hY.off(iY).off(rY),dY&&SY&&document.body.removeChild(SY)}));BY(".Toastify__toast-container{z-index:9999;-webkit-transform:translateZ(9999px);position:fixed;padding:4px;width:320px;box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;margin-left:-160px}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;margin-left:-160px}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:1px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:flex;justify-content:space-between;max-height:800px;overflow:hidden;font-family:sans-serif;cursor:pointer;direction:ltr}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--default{background:#fff;color:#aaa}.Toastify__toast--info{background:#3498db}.Toastify__toast--success{background:#07bc0c}.Toastify__toast--warning{background:#f1c40f}.Toastify__toast--error{background:#e74c3c}.Toastify__toast-body{margin:auto 0;flex:1}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0}}.Toastify__close-button{color:#fff;font-weight:700;font-size:14px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start}.Toastify__close-button--default{color:#000;opacity:.3}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@-webkit-keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:9999;opacity:.7;background-color:hsla(0,0%,100%,.7);transform-origin:left}.Toastify__progress-bar--animated{-webkit-animation:Toastify__trackProgress linear 1 forwards;animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__progress-bar--default{background:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55)}@-webkit-keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@-webkit-keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@-webkit-keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@-webkit-keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{-webkit-animation-name:Toastify__bounceInLeft;animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{-webkit-animation-name:Toastify__bounceInRight;animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{-webkit-animation-name:Toastify__bounceInDown;animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{-webkit-animation-name:Toastify__bounceInUp;animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{-webkit-animation-name:Toastify__bounceOutLeft;animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{-webkit-animation-name:Toastify__bounceOutRight;animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{-webkit-animation-name:Toastify__bounceOutUp;animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{-webkit-animation-name:Toastify__bounceOutDown;animation-name:Toastify__bounceOutDown}@-webkit-keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@-webkit-keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{-webkit-animation-name:Toastify__zoomIn;animation-name:Toastify__zoomIn}.Toastify__zoom-exit{-webkit-animation-name:Toastify__zoomOut;animation-name:Toastify__zoomOut}@-webkit-keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@-webkit-keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{-webkit-animation-name:Toastify__flipIn;animation-name:Toastify__flipIn}.Toastify__flip-exit{-webkit-animation-name:Toastify__flipOut;animation-name:Toastify__flipOut}@-webkit-keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@-webkit-keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@-webkit-keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@-webkit-keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{-webkit-animation-name:Toastify__slideInLeft;animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{-webkit-animation-name:Toastify__slideInRight;animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{-webkit-animation-name:Toastify__slideInDown;animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{-webkit-animation-name:Toastify__slideInUp;animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{-webkit-animation-name:Toastify__slideOutLeft;animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{-webkit-animation-name:Toastify__slideOutRight;animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{-webkit-animation-name:Toastify__slideOutUp;animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{-webkit-animation-name:Toastify__slideOutDown;animation-name:Toastify__slideOutDown}");var GY=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new qY(e,this.selector,this.caught))},e}(),qY=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return wa(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var i=new OH(this,void 0,void 0);this.add(i),HH(this,n,void 0,void 0,i)}},t}(RH);function UY(e,t){return void 0===t&&(t=LH),function(n){return n.lift(new HY(e,t))}}var HY=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new WY(e,this.dueTime,this.scheduler))},e}(),WY=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return wa(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(YY,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(rH);function YY(e){e.debouncedNext()}var VY=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r},e}();function KY(){return new hH}function JY(e,t){return"function"==typeof t?function(n){return n.pipe(JY((function(n,i){return YH(e(n,i)).pipe(MH((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new QY(e))}}var QY=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new ZY(e,this.project))},e}(),ZY=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return wa(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new OH(this,void 0,void 0);this.destination.add(r),this.innerSubscription=HH(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(RH);var $Y=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new XY(e,this.nextOrObserver,this.error,this.complete))},e}(),XY=function(e){function t(t,n,i,r){var a=e.call(this,t)||this;return a._tapNext=sH,a._tapError=sH,a._tapComplete=sH,a._tapError=i||sH,a._tapComplete=r||sH,YU(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||sH,a._tapError=n.error||sH,a._tapComplete=n.complete||sH),a}return wa(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(rH),eV=function(e,t){return eV=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},eV(e,t)};var tV=function(){return tV=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},tV.apply(this,arguments)};function nV(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function iV(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))}function rV(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function aV(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}function oV(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var sV,lV,uV,cV=a.createGlobalStyle(sV||(sV=oV(["\n // focus style should be visible only when keyboard navigation is activated\n // office ui fabric adds 'ms-Fabric--isFocusVisible' when the user presses keyboard keys, and removes it when the user clicks a mouse button\n\n .ms-Fabric--isFocusVisible .lt-reach {\n a:not(.ms-Button):focus,\n div[data-is-focusable]:not(.ms-PickerPersona-container):focus {\n box-shadow: none;\n outline: 2px solid ",";\n outline-offset: 2px;\n }\n\n div[data-is-focusable][role=\"listbox\"]:focus,\n div[data-is-focusable].ms-Dropdown:focus {\n &::after {\n border: 0;\n }\n }\n\n a[data-rounded-outline='true']:focus {\n border-radius: 20px;\n outline-offset: 4px;\n }\n\n button:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 2px;\n inset: 0;\n }\n }\n\n button[data-rounded-outline='50']:focus {\n &::after {\n border-radius: 50%;\n outline-offset: 4px;\n }\n }\n\n button[data-rounded-outline='true']:focus {\n &::after {\n border-radius: 20px;\n outline-offset: 4px;\n }\n }\n\n button[data-toggle-button='true']:focus {\n &::after {\n border: none;\n border-radius: 12px;\n outline-offset: 3px;\n }\n }\n\n a[data-clickable-overlay]:focus {\n outline: 0 !important;\n\n &::before {\n outline: 2px solid ",";\n outline-offset: 5px;\n }\n }\n\n input[type='checkbox']:focus + label::before {\n outline: 2px solid ",";\n }\n\n div.ms-Dropdown-item input[type='checkbox']:focus + label::before,\n button.ms-Dropdown-item:focus::after {\n outline-offset: -2px;\n }\n\n div.ms-ChoiceField-wrapper.is-inFocus {\n &::after {\n outline: 2px solid ",";\n border: 0;\n }\n }\n\n .ms-SearchBox-clearButton button:focus::after {\n outline-offset: -4px;\n }\n\n .ms-PickerPersona-container:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 0;\n }\n }\n }\n\n .ms-Fabric--isFocusVisible .lt-reach-contextual-menu {\n button:focus {\n &::after {\n outline-color: ",";\n outline-width: 2px;\n outline-offset: -2px;\n }\n }\n }\n"],["\n // focus style should be visible only when keyboard navigation is activated\n // office ui fabric adds 'ms-Fabric--isFocusVisible' when the user presses keyboard keys, and removes it when the user clicks a mouse button\n\n .ms-Fabric--isFocusVisible .lt-reach {\n a:not(.ms-Button):focus,\n div[data-is-focusable]:not(.ms-PickerPersona-container):focus {\n box-shadow: none;\n outline: 2px solid ",";\n outline-offset: 2px;\n }\n\n div[data-is-focusable][role=\"listbox\"]:focus,\n div[data-is-focusable].ms-Dropdown:focus {\n &::after {\n border: 0;\n }\n }\n\n a[data-rounded-outline='true']:focus {\n border-radius: 20px;\n outline-offset: 4px;\n }\n\n button:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 2px;\n inset: 0;\n }\n }\n\n button[data-rounded-outline='50']:focus {\n &::after {\n border-radius: 50%;\n outline-offset: 4px;\n }\n }\n\n button[data-rounded-outline='true']:focus {\n &::after {\n border-radius: 20px;\n outline-offset: 4px;\n }\n }\n\n button[data-toggle-button='true']:focus {\n &::after {\n border: none;\n border-radius: 12px;\n outline-offset: 3px;\n }\n }\n\n a[data-clickable-overlay]:focus {\n outline: 0 !important;\n\n &::before {\n outline: 2px solid ",";\n outline-offset: 5px;\n }\n }\n\n input[type='checkbox']:focus + label::before {\n outline: 2px solid ",";\n }\n\n div.ms-Dropdown-item input[type='checkbox']:focus + label::before,\n button.ms-Dropdown-item:focus::after {\n outline-offset: -2px;\n }\n\n div.ms-ChoiceField-wrapper.is-inFocus {\n &::after {\n outline: 2px solid ",";\n border: 0;\n }\n }\n\n .ms-SearchBox-clearButton button:focus::after {\n outline-offset: -4px;\n }\n\n .ms-PickerPersona-container:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 0;\n }\n }\n }\n\n .ms-Fabric--isFocusVisible .lt-reach-contextual-menu {\n button:focus {\n &::after {\n outline-color: ",";\n outline-width: 2px;\n outline-offset: -2px;\n }\n }\n }\n"])),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent})),dV=function(e){return"\n .ms-Fabric--isFocusVisible .lt-reach {\n "+e+"\n }\n"},fV=a.createGlobalStyle(lV||(lV=oV(["\n .lt-reach {\n color: ",";\n\n a {\n text-decoration: none;\n }\n\n *:focus {\n outline: none;\n }\n\n input[type='button'],\n input[type='reset'],\n input[type='submit'],\n button {\n min-width: auto;\n }\n\n h1,\n h2,\n h3,\n div,\n span,\n input,\n textarea,\n .ms-font-m,\n div.ms-Dialog,\n .ms-Label,\n .ms-Link {\n font-family: 'Roboto', sans-serif !important;\n }\n\n .ms-Fabric {\n -webkit-font-smoothing: initial !important;\n }\n\n .ms-Button--icon.ms-Button {\n\n &:hover {\n background-color: transparent;\n }\n\n &.is-expanded {\n background-color: transparent;\n }\n }\n\n /***\n UI Fabric overrides\n */\n .ms-Dialog-main {\n width: inherit;\n .ms-Dialog-button--close:hover {\n background-color: transparent;\n }\n }\n\n .ms-Dialog-main {\n width: auto !important;\n max-width: 100% !important;\n margin: 0 10px;\n }\n\n .ms-Callout {\n // max-width 100% overflows on small screens where the dialog contents\n // occupy the whole 100%\n max-width: 90% !important;\n }\n\n }\n \n .lt-reach-picker-callout .ms-PeoplePicker-Persona {\n width: auto;\n }\n\n // the pull to refresh container is placed ABOVE our element, therefore we can not use a class from our component\n // however since \"app\" is our outer-most class it should be fine to use this\n .app {\n .ptr--ptr {\n box-shadow: none;\n }\n }\n\n .lt-reach-languageselector-menu-item {\n &.selected {\n background-color: #c0c0c0;\n span {\n font-weight: bold;\n }\n }\n\n button i {\n color: inherit;\n }\n }\n\n .browser-name-safari,\n .browser-name-ios,\n .browser-name-ios-webview {\n .lt-reach-header-actions {\n height: 50px;\n }\n }\n"],["\n .lt-reach {\n color: ",";\n\n a {\n text-decoration: none;\n }\n\n *:focus {\n outline: none;\n }\n\n input[type='button'],\n input[type='reset'],\n input[type='submit'],\n button {\n min-width: auto;\n }\n\n h1,\n h2,\n h3,\n div,\n span,\n input,\n textarea,\n .ms-font-m,\n div.ms-Dialog,\n .ms-Label,\n .ms-Link {\n font-family: 'Roboto', sans-serif !important;\n }\n\n .ms-Fabric {\n -webkit-font-smoothing: initial !important;\n }\n\n .ms-Button--icon.ms-Button {\n\n &:hover {\n background-color: transparent;\n }\n\n &.is-expanded {\n background-color: transparent;\n }\n }\n\n /***\n UI Fabric overrides\n */\n .ms-Dialog-main {\n width: inherit;\n .ms-Dialog-button--close:hover {\n background-color: transparent;\n }\n }\n\n .ms-Dialog-main {\n width: auto !important;\n max-width: 100% !important;\n margin: 0 10px;\n }\n\n .ms-Callout {\n // max-width 100% overflows on small screens where the dialog contents\n // occupy the whole 100%\n max-width: 90% !important;\n }\n\n }\n \n .lt-reach-picker-callout .ms-PeoplePicker-Persona {\n width: auto;\n }\n\n // the pull to refresh container is placed ABOVE our element, therefore we can not use a class from our component\n // however since \"app\" is our outer-most class it should be fine to use this\n .app {\n .ptr--ptr {\n box-shadow: none;\n }\n }\n\n .lt-reach-languageselector-menu-item {\n &.selected {\n background-color: #c0c0c0;\n span {\n font-weight: bold;\n }\n }\n\n button i {\n color: inherit;\n }\n }\n\n .browser-name-safari,\n .browser-name-ios,\n .browser-name-ios-webview {\n .lt-reach-header-actions {\n height: 50px;\n }\n }\n"])),(function(e){return e.theme.textColors.default})),pV=WU(["browser-version-"+lm,"browser-name-"+sm],"lt-reach");!function(e){e[e.asc=1]="asc",e[e.desc=-1]="desc"}(uV||(uV={}));var hV="Language",gV="Locale";function mV(){var e=vE();return i.useMemo((function(){return{getLocalLanguage:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){switch(t.label){case 0:return[4,e.getString(hV)];case 1:return[2,Zw(t.sent())]}}))}))},saveLanguageToLocalStorage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.setString(hV,t)];case 1:return n.sent(),[2]}}))}))},saveLocaleToLocalStorage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.setString(gV,t)];case 1:return n.sent(),[2]}}))}))},getLocaleFromLocalStorage:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.getString(gV)]}))}))}}}),[e])}var vV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_V=function(e){return e&&e.Math==Math&&e},bV=_V("object"==typeof globalThis&&globalThis)||_V("object"==typeof window&&window)||_V("object"==typeof self&&self)||_V("object"==typeof vV&&vV)||Function("return this")(),yV={},wV=function(e){try{return!!e()}catch(e){return!0}},FV=!wV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),kV={},xV={}.propertyIsEnumerable,EV=Object.getOwnPropertyDescriptor,CV=EV&&!xV.call({1:2},1);kV.f=CV?function(e){var t=EV(this,e);return!!t&&t.enumerable}:xV;var SV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DV={}.toString,PV=function(e){return DV.call(e).slice(8,-1)},AV=PV,TV="".split,LV=wV((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==AV(e)?TV.call(e,""):Object(e)}:Object,IV=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},MV=LV,jV=IV,NV=function(e){return MV(jV(e))},RV=function(e){return"object"==typeof e?null!==e:"function"==typeof e},OV=RV,zV=function(e,t){if(!OV(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!OV(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!OV(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!OV(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},BV={}.hasOwnProperty,GV=function(e,t){return BV.call(e,t)},qV=RV,UV=bV.document,HV=qV(UV)&&qV(UV.createElement),WV=function(e){return HV?UV.createElement(e):{}},YV=WV,VV=!FV&&!wV((function(){return 7!=Object.defineProperty(YV("div"),"a",{get:function(){return 7}}).a})),KV=FV,JV=kV,QV=SV,ZV=NV,$V=zV,XV=GV,eK=VV,tK=Object.getOwnPropertyDescriptor;yV.f=KV?tK:function(e,t){if(e=ZV(e),t=$V(t,!0),eK)try{return tK(e,t)}catch(e){}if(XV(e,t))return QV(!JV.f.call(e,t),e[t])};var nK={},iK=RV,rK=function(e){if(!iK(e))throw TypeError(String(e)+" is not an object");return e},aK=FV,oK=VV,sK=rK,lK=zV,uK=Object.defineProperty;nK.f=aK?uK:function(e,t,n){if(sK(e),t=lK(t,!0),sK(n),oK)try{return uK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var cK=nK,dK=SV,fK=FV?function(e,t,n){return cK.f(e,t,dK(1,n))}:function(e,t,n){return e[t]=n,e},pK={exports:{}},hK=bV,gK=fK,mK=function(e,t){try{gK(hK,e,t)}catch(n){hK[e]=t}return t},vK=mK,_K="__core-js_shared__",bK=bV[_K]||vK(_K,{}),yK=bK,wK=Function.toString;"function"!=typeof yK.inspectSource&&(yK.inspectSource=function(e){return wK.call(e)});var FK=yK.inspectSource,kK=FK,xK=bV.WeakMap,EK="function"==typeof xK&&/native code/.test(kK(xK)),CK={exports:{}},SK=bK;(CK.exports=function(e,t){return SK[e]||(SK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var DK,PK,AK,TK=0,LK=Math.random(),IK=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++TK+LK).toString(36)},MK=CK.exports,jK=IK,NK=MK("keys"),RK=function(e){return NK[e]||(NK[e]=jK(e))},OK={},zK=EK,BK=RV,GK=fK,qK=GV,UK=RK,HK=OK,WK=bV.WeakMap;if(zK){var YK=new WK,VK=YK.get,KK=YK.has,JK=YK.set;DK=function(e,t){return JK.call(YK,e,t),t},PK=function(e){return VK.call(YK,e)||{}},AK=function(e){return KK.call(YK,e)}}else{var QK=UK("state");HK[QK]=!0,DK=function(e,t){return GK(e,QK,t),t},PK=function(e){return qK(e,QK)?e[QK]:{}},AK=function(e){return qK(e,QK)}}var ZK={set:DK,get:PK,has:AK,enforce:function(e){return AK(e)?PK(e):DK(e,{})},getterFor:function(e){return function(t){var n;if(!BK(t)||(n=PK(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},$K=bV,XK=fK,eJ=GV,tJ=mK,nJ=FK,iJ=ZK.get,rJ=ZK.enforce,aJ=String(String).split("String");(pK.exports=function(e,t,n,i){var r=!!i&&!!i.unsafe,a=!!i&&!!i.enumerable,o=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||eJ(n,"name")||XK(n,"name",t),rJ(n).source=aJ.join("string"==typeof t?t:"")),e!==$K?(r?!o&&e[t]&&(a=!0):delete e[t],a?e[t]=n:XK(e,t,n)):a?e[t]=n:tJ(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&iJ(this).source||nJ(this)}));var oJ=bV,sJ=bV,lJ=function(e){return"function"==typeof e?e:void 0},uJ=function(e,t){return arguments.length<2?lJ(oJ[e])||lJ(sJ[e]):oJ[e]&&oJ[e][t]||sJ[e]&&sJ[e][t]},cJ={},dJ=Math.ceil,fJ=Math.floor,pJ=function(e){return isNaN(e=+e)?0:(e>0?fJ:dJ)(e)},hJ=pJ,gJ=Math.min,mJ=function(e){return e>0?gJ(hJ(e),9007199254740991):0},vJ=pJ,_J=Math.max,bJ=Math.min,yJ=NV,wJ=mJ,FJ=function(e,t){var n=vJ(e);return n<0?_J(n+t,0):bJ(n,t)},kJ=function(e){return function(t,n,i){var r,a=yJ(t),o=wJ(a.length),s=FJ(i,o);if(e&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},xJ={includes:kJ(!0),indexOf:kJ(!1)},EJ=GV,CJ=NV,SJ=xJ.indexOf,DJ=OK,PJ=function(e,t){var n,i=CJ(e),r=0,a=[];for(n in i)!EJ(DJ,n)&&EJ(i,n)&&a.push(n);for(;t.length>r;)EJ(i,n=t[r++])&&(~SJ(a,n)||a.push(n));return a},AJ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],TJ=PJ,LJ=AJ.concat("length","prototype");cJ.f=Object.getOwnPropertyNames||function(e){return TJ(e,LJ)};var IJ={};IJ.f=Object.getOwnPropertySymbols;var MJ=cJ,jJ=IJ,NJ=rK,RJ=uJ("Reflect","ownKeys")||function(e){var t=MJ.f(NJ(e)),n=jJ.f;return n?t.concat(n(e)):t},OJ=GV,zJ=RJ,BJ=yV,GJ=nK,qJ=wV,UJ=/#|\.prototype\./,HJ=function(e,t){var n=YJ[WJ(e)];return n==KJ||n!=VJ&&("function"==typeof t?qJ(t):!!t)},WJ=HJ.normalize=function(e){return String(e).replace(UJ,".").toLowerCase()},YJ=HJ.data={},VJ=HJ.NATIVE="N",KJ=HJ.POLYFILL="P",JJ=HJ,QJ=bV,ZJ=yV.f,$J=fK,XJ=pK.exports,eQ=mK,tQ=function(e,t){for(var n=zJ(t),i=GJ.f,r=BJ.f,a=0;a<n.length;a++){var o=n[a];OJ(e,o)||i(e,o,r(t,o))}},nQ=JJ,iQ=function(e,t){var n,i,r,a,o,s=e.target,l=e.global,u=e.stat;if(n=l?QJ:u?QJ[s]||eQ(s,{}):(QJ[s]||{}).prototype)for(i in t){if(a=t[i],r=e.noTargetGet?(o=ZJ(n,i))&&o.value:n[i],!nQ(l?i:s+(u?".":"#")+i,e.forced)&&void 0!==r){if(typeof a==typeof r)continue;tQ(a,r)}(e.sham||r&&r.sham)&&$J(a,"sham",!0),XJ(n,i,a,e)}},rQ=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},aQ=IV,oQ=function(e){return Object(aQ(e))},sQ=rQ,lQ=oQ,uQ=LV,cQ=mJ,dQ=function(e){return function(t,n,i,r){sQ(n);var a=lQ(t),o=uQ(a),s=cQ(a.length),l=e?s-1:0,u=e?-1:1;if(i<2)for(;;){if(l in o){r=o[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in o&&(r=n(r,o[l],l,a));return r}},fQ={left:dQ(!1),right:dQ(!0)},pQ=wV,hQ=function(e,t){var n=[][e];return!!n&&pQ((function(){n.call(null,t||function(){throw 1},1)}))},gQ=FV,mQ=wV,vQ=GV,_Q=Object.defineProperty,bQ={},yQ=function(e){throw e},wQ=iQ,FQ=fQ.left,kQ=function(e,t){if(vQ(bQ,e))return bQ[e];t||(t={});var n=[][e],i=!!vQ(t,"ACCESSORS")&&t.ACCESSORS,r=vQ(t,0)?t[0]:yQ,a=vQ(t,1)?t[1]:void 0;return bQ[e]=!!n&&!mQ((function(){if(i&&!gQ)return!0;var e={length:-1};i?_Q(e,1,{enumerable:!0,get:yQ}):e[1]=1,n.call(e,r,a)}))},xQ=hQ("reduce"),EQ=kQ("reduce",{1:0});wQ({target:"Array",proto:!0,forced:!xQ||!EQ},{reduce:function(e){return FQ(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var CQ=bV.Promise,SQ=pK.exports,DQ=wV,PQ=!!Object.getOwnPropertySymbols&&!DQ((function(){return!String(Symbol())})),AQ=PQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,TQ=bV,LQ=CK.exports,IQ=GV,MQ=IK,jQ=PQ,NQ=AQ,RQ=LQ("wks"),OQ=TQ.Symbol,zQ=NQ?OQ:OQ&&OQ.withoutSetter||MQ,BQ=function(e){return IQ(RQ,e)||(jQ&&IQ(OQ,e)?RQ[e]=OQ[e]:RQ[e]=zQ("Symbol."+e)),RQ[e]},GQ=nK.f,qQ=GV,UQ=BQ("toStringTag"),HQ=function(e,t,n){e&&!qQ(e=n?e:e.prototype,UQ)&&GQ(e,UQ,{configurable:!0,value:t})},WQ=uJ,YQ=nK,VQ=FV,KQ=BQ("species"),JQ={exports:{}},QQ={},ZQ=QQ,$Q=BQ("iterator"),XQ=Array.prototype,eZ=rQ,tZ=function(e,t,n){if(eZ(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},nZ={};nZ[BQ("toStringTag")]="z";var iZ="[object z]"===String(nZ),rZ=PV,aZ=BQ("toStringTag"),oZ="Arguments"==rZ(function(){return arguments}()),sZ=iZ?rZ:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),aZ))?n:oZ?rZ(t):"Object"==(i=rZ(t))&&"function"==typeof t.callee?"Arguments":i},lZ=sZ,uZ=QQ,cZ=BQ("iterator"),dZ=rK,fZ=rK,pZ=function(e){return void 0!==e&&(ZQ.Array===e||XQ[$Q]===e)},hZ=mJ,gZ=tZ,mZ=function(e){if(null!=e)return e[cZ]||e["@@iterator"]||uZ[lZ(e)]},vZ=function(e,t,n,i){try{return i?t(dZ(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&dZ(r.call(e)),t}},_Z=function(e,t){this.stopped=e,this.result=t},bZ=JQ.exports=function(e,t,n,i,r){var a,o,s,l,u,c,d,f=gZ(t,n,i?2:1);if(r)a=e;else{if("function"!=typeof(o=mZ(e)))throw TypeError("Target is not iterable");if(pZ(o)){for(s=0,l=hZ(e.length);l>s;s++)if((u=i?f(fZ(d=e[s])[0],d[1]):f(e[s]))&&u instanceof _Z)return u;return new _Z(!1)}a=o.call(e)}for(c=a.next;!(d=c.call(a)).done;)if("object"==typeof(u=vZ(a,f,d.value,i))&&u&&u instanceof _Z)return u;return new _Z(!1)};bZ.stop=function(e){return new _Z(!0,e)};var yZ=BQ("iterator"),wZ=!1;try{var FZ=0,kZ={next:function(){return{done:!!FZ++}},return:function(){wZ=!0}};kZ[yZ]=function(){return this},Array.from(kZ,(function(){throw 2}))}catch(e){}var xZ,EZ,CZ,SZ=rK,DZ=rQ,PZ=BQ("species"),AZ=function(e,t){var n,i=SZ(e).constructor;return void 0===i||null==(n=SZ(i)[PZ])?t:DZ(n)},TZ=uJ("document","documentElement"),LZ=uJ("navigator","userAgent")||"",IZ=/(iphone|ipod|ipad).*applewebkit/i.test(LZ),MZ=bV,jZ=wV,NZ=PV,RZ=tZ,OZ=TZ,zZ=WV,BZ=IZ,GZ=MZ.location,qZ=MZ.setImmediate,UZ=MZ.clearImmediate,HZ=MZ.process,WZ=MZ.MessageChannel,YZ=MZ.Dispatch,VZ=0,KZ={},JZ="onreadystatechange",QZ=function(e){if(KZ.hasOwnProperty(e)){var t=KZ[e];delete KZ[e],t()}},ZZ=function(e){return function(){QZ(e)}},$Z=function(e){QZ(e.data)},XZ=function(e){MZ.postMessage(e+"",GZ.protocol+"//"+GZ.host)};qZ&&UZ||(qZ=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return KZ[++VZ]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},xZ(VZ),VZ},UZ=function(e){delete KZ[e]},"process"==NZ(HZ)?xZ=function(e){HZ.nextTick(ZZ(e))}:YZ&&YZ.now?xZ=function(e){YZ.now(ZZ(e))}:WZ&&!BZ?(CZ=(EZ=new WZ).port2,EZ.port1.onmessage=$Z,xZ=RZ(CZ.postMessage,CZ,1)):!MZ.addEventListener||"function"!=typeof postMessage||MZ.importScripts||jZ(XZ)||"file:"===GZ.protocol?xZ=JZ in zZ("script")?function(e){OZ.appendChild(zZ("script")).onreadystatechange=function(){OZ.removeChild(this),QZ(e)}}:function(e){setTimeout(ZZ(e),0)}:(xZ=XZ,MZ.addEventListener("message",$Z,!1)));var e$,t$,n$,i$,r$,a$,o$,s$,l$={set:qZ,clear:UZ},u$=bV,c$=yV.f,d$=PV,f$=l$.set,p$=IZ,h$=u$.MutationObserver||u$.WebKitMutationObserver,g$=u$.process,m$=u$.Promise,v$="process"==d$(g$),_$=c$(u$,"queueMicrotask"),b$=_$&&_$.value;b$||(e$=function(){var e,t;for(v$&&(e=g$.domain)&&e.exit();t$;){t=t$.fn,t$=t$.next;try{t()}catch(e){throw t$?i$():n$=void 0,e}}n$=void 0,e&&e.enter()},v$?i$=function(){g$.nextTick(e$)}:h$&&!p$?(r$=!0,a$=document.createTextNode(""),new h$(e$).observe(a$,{characterData:!0}),i$=function(){a$.data=r$=!r$}):m$&&m$.resolve?(o$=m$.resolve(void 0),s$=o$.then,i$=function(){s$.call(o$,e$)}):i$=function(){f$.call(u$,e$)});var y$=b$||function(e){var t={fn:e,next:void 0};n$&&(n$.next=t),t$||(t$=t,i$()),n$=t},w$={},F$=rQ,k$=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=F$(t),this.reject=F$(n)};w$.f=function(e){return new k$(e)};var x$,E$,C$=rK,S$=RV,D$=w$,P$=bV,A$=LZ,T$=bV.process,L$=T$&&T$.versions,I$=L$&&L$.v8;I$?E$=(x$=I$.split("."))[0]+x$[1]:A$&&(!(x$=A$.match(/Edge\/(\d+)/))||x$[1]>=74)&&(x$=A$.match(/Chrome\/(\d+)/))&&(E$=x$[1]);var M$,j$,N$,R$,O$=E$&&+E$,z$=iQ,B$=bV,G$=uJ,q$=CQ,U$=pK.exports,H$=function(e,t,n){for(var i in t)SQ(e,i,t[i],n);return e},W$=HQ,Y$=function(e){var t=WQ(e),n=YQ.f;VQ&&t&&!t[KQ]&&n(t,KQ,{configurable:!0,get:function(){return this}})},V$=RV,K$=rQ,J$=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Q$=PV,Z$=FK,$$=JQ.exports,X$=function(e,t){if(!t&&!wZ)return!1;var n=!1;try{var i={};i[yZ]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},eX=AZ,tX=l$.set,nX=y$,iX=function(e,t){if(C$(e),S$(t)&&t.constructor===e)return t;var n=D$.f(e);return(0,n.resolve)(t),n.promise},rX=function(e,t){var n=P$.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},aX=w$,oX=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sX=ZK,lX=JJ,uX=O$,cX=BQ("species"),dX="Promise",fX=sX.get,pX=sX.set,hX=sX.getterFor(dX),gX=q$,mX=B$.TypeError,vX=B$.document,_X=B$.process,bX=G$("fetch"),yX=aX.f,wX=yX,FX="process"==Q$(_X),kX=!!(vX&&vX.createEvent&&B$.dispatchEvent),xX="unhandledrejection",EX=lX(dX,(function(){if(!(Z$(gX)!==String(gX))){if(66===uX)return!0;if(!FX&&"function"!=typeof PromiseRejectionEvent)return!0}if(uX>=51&&/native code/.test(gX))return!1;var e=gX.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[cX]=t,!(e.then((function(){}))instanceof t)})),CX=EX||!X$((function(e){gX.all(e).catch((function(){}))})),SX=function(e){var t;return!(!V$(e)||"function"!=typeof(t=e.then))&&t},DX=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;nX((function(){for(var r=t.value,a=1==t.state,o=0;i.length>o;){var s,l,u,c=i[o++],d=a?c.ok:c.fail,f=c.resolve,p=c.reject,h=c.domain;try{d?(a||(2===t.rejection&&LX(e,t),t.rejection=1),!0===d?s=r:(h&&h.enter(),s=d(r),h&&(h.exit(),u=!0)),s===c.promise?p(mX("Promise-chain cycle")):(l=SX(s))?l.call(s,f,p):f(s)):p(r)}catch(e){h&&!u&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&AX(e,t)}))}},PX=function(e,t,n){var i,r;kX?((i=vX.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),B$.dispatchEvent(i)):i={promise:t,reason:n},(r=B$["on"+e])?r(i):e===xX&&rX("Unhandled promise rejection",n)},AX=function(e,t){tX.call(B$,(function(){var n,i=t.value;if(TX(t)&&(n=oX((function(){FX?_X.emit("unhandledRejection",i,e):PX(xX,e,i)})),t.rejection=FX||TX(t)?2:1,n.error))throw n.value}))},TX=function(e){return 1!==e.rejection&&!e.parent},LX=function(e,t){tX.call(B$,(function(){FX?_X.emit("rejectionHandled",e):PX("rejectionhandled",e,t.value)}))},IX=function(e,t,n,i){return function(r){e(t,n,r,i)}},MX=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=2,DX(e,t,!0))},jX=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw mX("Promise can't be resolved itself");var r=SX(n);r?nX((function(){var i={done:!1};try{r.call(n,IX(jX,e,i,t),IX(MX,e,i,t))}catch(n){MX(e,i,n,t)}})):(t.value=n,t.state=1,DX(e,t,!1))}catch(n){MX(e,{done:!1},n,t)}}};function NX(e){switch(null==e?void 0:e.toLowerCase()){case"da":return Promise.resolve().then((function(){return kKt}));case"de":return Promise.resolve().then((function(){return xKt}));case"fr":return Promise.resolve().then((function(){return EKt}));case"es":return Promise.resolve().then((function(){return CKt}));case"zh-tw":return Promise.resolve().then((function(){return SKt}));case"zh-cn":return Promise.resolve().then((function(){return DKt}));case"ja":return Promise.resolve().then((function(){return PKt}));case"tr":return Promise.resolve().then((function(){return AKt}));case"it":return Promise.resolve().then((function(){return TKt}));default:return Promise.resolve().then((function(){return LKt}))}}function RX(e){switch(null==e?void 0:e.toLowerCase()){case"ar-dz":return Promise.resolve().then((function(){return jKt}));case"ar-kw":return Promise.resolve().then((function(){return RKt}));case"ar-ly":return Promise.resolve().then((function(){return zKt}));case"ar-ma":return Promise.resolve().then((function(){return GKt}));case"ar-sa":return Promise.resolve().then((function(){return UKt}));case"ar-tn":return Promise.resolve().then((function(){return WKt}));case"ar":return Promise.resolve().then((function(){return VKt}));case"bg":return Promise.resolve().then((function(){return JKt}));case"bn":return Promise.resolve().then((function(){return ZKt}));case"ca":return Promise.resolve().then((function(){return XKt}));case"cs":return Promise.resolve().then((function(){return tJt}));case"da":return Promise.resolve().then((function(){return iJt}));case"de-at":return Promise.resolve().then((function(){return aJt}));case"de-ch":return Promise.resolve().then((function(){return sJt}));case"de":return Promise.resolve().then((function(){return uJt}));case"el":return Promise.resolve().then((function(){return dJt}));case"en-au":return Promise.resolve().then((function(){return pJt}));case"en-ca":return Promise.resolve().then((function(){return gJt}));case"en-gb":return Promise.resolve().then((function(){return vJt}));case"en-ie":return Promise.resolve().then((function(){return bJt}));case"en-il":return Promise.resolve().then((function(){return wJt}));case"en-nz":return Promise.resolve().then((function(){return kJt}));case"en-sg":return Promise.resolve().then((function(){return EJt}));case"es-do":return Promise.resolve().then((function(){return SJt}));case"es-us":return Promise.resolve().then((function(){return PJt}));case"es":return Promise.resolve().then((function(){return TJt}));case"et":return Promise.resolve().then((function(){return IJt}));case"fa":return Promise.resolve().then((function(){return jJt}));case"fi":return Promise.resolve().then((function(){return RJt}));case"fr-ca":return Promise.resolve().then((function(){return zJt}));case"fr-ch":return Promise.resolve().then((function(){return GJt}));case"fr":return Promise.resolve().then((function(){return UJt}));case"gu":return Promise.resolve().then((function(){return WJt}));case"he":return Promise.resolve().then((function(){return VJt}));case"hi":return Promise.resolve().then((function(){return JJt}));case"hr":return Promise.resolve().then((function(){return ZJt}));case"hu":return Promise.resolve().then((function(){return XJt}));case"id":return Promise.resolve().then((function(){return tQt}));case"it-ch":return Promise.resolve().then((function(){return iQt}));case"it":return Promise.resolve().then((function(){return aQt}));case"ja":return Promise.resolve().then((function(){return sQt}));case"kn":return Promise.resolve().then((function(){return uQt}));case"ko":return Promise.resolve().then((function(){return dQt}));case"lt":return Promise.resolve().then((function(){return pQt}));case"lv":return Promise.resolve().then((function(){return gQt}));case"ml":return Promise.resolve().then((function(){return vQt}));case"mr":return Promise.resolve().then((function(){return bQt}));case"ms-my":return Promise.resolve().then((function(){return wQt}));case"ms":return Promise.resolve().then((function(){return kQt}));case"nb":return Promise.resolve().then((function(){return EQt}));case"nl-be":return Promise.resolve().then((function(){return SQt}));case"nl":return Promise.resolve().then((function(){return PQt}));case"pl":return Promise.resolve().then((function(){return TQt}));case"pt-br":return Promise.resolve().then((function(){return IQt}));case"pt":return Promise.resolve().then((function(){return jQt}));case"ro":return Promise.resolve().then((function(){return RQt}));case"ru":return Promise.resolve().then((function(){return zQt}));case"sk":return Promise.resolve().then((function(){return GQt}));case"sl":return Promise.resolve().then((function(){return UQt}));case"sr-cyrl":return Promise.resolve().then((function(){return WQt}));case"sr":return Promise.resolve().then((function(){return VQt}));case"sv":return Promise.resolve().then((function(){return JQt}));case"sw":return Promise.resolve().then((function(){return ZQt}));case"ta":return Promise.resolve().then((function(){return XQt}));case"te":return Promise.resolve().then((function(){return tZt}));case"th":return Promise.resolve().then((function(){return iZt}));case"tr":return Promise.resolve().then((function(){return aZt}));case"uk":return Promise.resolve().then((function(){return sZt}));case"vi":return Promise.resolve().then((function(){return uZt}));case"zh-cn":return Promise.resolve().then((function(){return dZt}));case"zh-hk":return Promise.resolve().then((function(){return pZt}));case"zh-tw":return Promise.resolve().then((function(){return gZt}));default:return Promise.resolve()}}EX&&(gX=function(e){J$(this,gX,dX),K$(e),M$.call(this);var t=fX(this);try{e(IX(jX,this,t),IX(MX,this,t))}catch(e){MX(this,t,e)}},(M$=function(e){pX(this,{type:dX,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=H$(gX.prototype,{then:function(e,t){var n=hX(this),i=yX(eX(this,gX));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=FX?_X.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&DX(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),j$=function(){var e=new M$,t=fX(e);this.promise=e,this.resolve=IX(jX,e,t),this.reject=IX(MX,e,t)},aX.f=yX=function(e){return e===gX||e===N$?new j$(e):wX(e)},"function"==typeof q$&&(R$=q$.prototype.then,U$(q$.prototype,"then",(function(e,t){var n=this;return new gX((function(e,t){R$.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof bX&&z$({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return iX(gX,bX.apply(B$,arguments))}}))),z$({global:!0,wrap:!0,forced:EX},{Promise:gX}),W$(gX,dX,!1),Y$(dX),N$=G$(dX),z$({target:dX,stat:!0,forced:EX},{reject:function(e){var t=yX(this);return t.reject.call(void 0,e),t.promise}}),z$({target:dX,stat:!0,forced:EX},{resolve:function(e){return iX(this,e)}}),z$({target:dX,stat:!0,forced:CX},{all:function(e){var t=this,n=yX(t),i=n.resolve,r=n.reject,a=oX((function(){var n=K$(t.resolve),a=[],o=0,s=1;$$(e,(function(e){var l=o++,u=!1;a.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,a[l]=e,--s||i(a))}),r)})),--s||i(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=yX(t),i=n.reject,r=oX((function(){var r=K$(t.resolve);$$(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var OX=function(e){var n,r=e.children,a=e.language,o=i.useState(null),s=o[0],l=o[1],u=mV(),c=u.getLocalLanguage,d=u.getLocaleFromLocalStorage;return i.useEffect((function(){(function(){return iV(this,void 0,void 0,(function(){var e,t,n;return rV(this,(function(i){switch(i.label){case 0:return[4,d()];case 1:return e=i.sent(),t=f,null==a?[3,2]:(n=a,[3,4]);case 2:return[4,c()];case 3:n=i.sent(),i.label=4;case 4:return[4,t.apply(void 0,[n,e])];case 5:return i.sent(),[2]}}))}))})().then((function(){return null}),im.error)}),[]),(null===(n=null==s?void 0:s.resources)||void 0===n?void 0:n[s.language])?t.jsx(kE.Provider,tV({value:{language:s.language,changeLocale:function(e){return function(e,t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,zX(e||t)];case 1:return n.sent(),l((function(t){return tV(tV({},t),{locale:e})})),[2]}}))}))}(e,s.language)},changeLanguage:function(e){return iV(this,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return[4,p(e=null==e?void 0:e.toLocaleLowerCase())];case 1:return t=n.sent(),s.locale?[3,3]:[4,zX(e)];case 2:n.sent(),n.label=3;case 3:return l((function(n){return tV(tV({},n),{language:e,resources:t})})),[2]}}))}))},changeSettings:f,addResources:function(e){l((function(t){var n=Object.keys(e).reduce((function(n,i){var r;return(r={})[i]=tV(tV(tV({},n),t.resources[i]),e[i]),r}),{});return tV(tV({},t),{resources:tV(tV({},t.resources),n)})}))}}},{children:t.jsx(Xx,tV({locale:s.locale||s.language,messages:s.resources[s.language]},{children:t.jsx(FE,{children:r},void 0)}),void 0)}),void 0):null;function f(e,t){return iV(this,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return e=null==e?void 0:e.toLocaleLowerCase(),(null==s?void 0:s.language)===e&&(null==s?void 0:s.locale)===t?[2]:[4,p(e)];case 1:return n=i.sent(),[4,zX(t||e)];case 2:return i.sent(),l({language:e,locale:t,resources:n}),[2]}}))}))}function p(e){return iV(this,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,h(e)];case 1:return[2,n.sent()];case 2:return t=n.sent(),im.error(t),[2,null];case 3:return[2]}}))}))}function h(e){var t;return iV(this,void 0,void 0,(function(){var n,i,r;return rV(this,(function(a){switch(a.label){case 0:if(null==e)return[2,null];if(null===(t=null==s?void 0:s.resources)||void 0===t?void 0:t[e])return[2,s.resources];a.label=1;case 1:return a.trys.push([1,3,,4]),e=e.toLowerCase(),n=g,i=[e],[4,NX(e)];case 2:return[2,n.apply(void 0,i.concat([a.sent().default]))];case 3:return r=a.sent(),im.error(r),[2,{}];case 4:return[2]}}))}))}function g(e,t){var n,i,r,a=window.__localeResourcesInterceptor||{};return tV(tV(tV({},null!==(r=null==s?void 0:s.resources)&&void 0!==r?r:{}),((n={})[e]=t,n)),a[e]&&((i={})[e]=a[e],i))}};function zX(e){return iV(this,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:if(!e)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,RX(e)];case 2:return n.sent(),ns.locale(e),[3,4];case 3:return t=n.sent(),im.error(t),[3,4];case 4:return[2]}}))}))}var BX,GX,qX,UX,HX,WX,YX,VX,KX,JX,QX,ZX,$X,XX=["news","comments","multiLanguage","keywords","pushNotifications","mailNotification","teamsNotifications","themes","webHooks","reporting","likes","confirmation","customLogo","customName","avatars","manualChannelSubscription","bannerImages","bannerVideos","editorInlineFiles","editorInlineImages","editorInlineGallery","editorInlineVideos","editorInlineMarkup","editorInlineTable","editorInlineContact","expiryDate","onBehalfOf","editorConversations","targetAudienceRules","unreadTracking","editorInlineQuotes","selfRegistration","people","posts","newsAlerts","pages","inPageNavigation","automaticTranslation","polls","events","teams","userInvitation","languageDetection","postKeywords","hyperfish","canva","allowUserImpersonation","directoryGroupMemberCaching","inAppBrowser","externalNews","termsAndConditions","chat","recurringEvents","publicAccess","allowUserPropertiesUpdate","showMyNews","allowToUnpinMandatoryChannels","allowToReorderMandatoryChannels","useDirectoryUserPropertiesForTargetAudience","giphy","replyToComments","enableUserflow","reportingPreview","preventContentRedirectForBrandedApps","browserPushNotifications","contentHeadline","popularNewsReport","notificationFeed","unsplash","externalPages","showLikers","pageDocuments","unifiedPostView","stream","showAllNews","customFavicon","editorPreview","editorAutomaticTranslation","editorYouTubeVideos","editorVimeoVideos","editorKalturaVideos","editorMicrosoftVideos","searchEverywhere","zendesk"],e0=function(){},t0=i.createContext(null);function n0(){return i.useContext(t0)}function i0(){var e=i.useContext(t0);return null==e?void 0:e.user}function r0(){var e=i0();return function(e){var t,n=new e0;if(!e)return n;for(var i=0;i<XX.length;i++){var r=XX[i];e.featureMask?n[r]="1"===e.featureMask[i]:n[r]=!(null===(t=e.disabledFeatures)||void 0===t?void 0:t[r])}return n}(null==e?void 0:e.subscription)}!function(e){e[e.User=1]="User",e[e.Group=2]="Group"}(BX||(BX={})),function(e){e[e.AnyGroupOrAnyProperty=0]="AnyGroupOrAnyProperty",e[e.AnyGroupAndAnyProperty=1]="AnyGroupAndAnyProperty"}(GX||(GX={})),function(e){e.large="large",e.small="small"}(qX||(qX={})),function(e){e[e.Success=1]="Success",e[e.InvalidHash=2]="InvalidHash",e[e.OneDirectoryLimit=3]="OneDirectoryLimit",e[e.CurrentTenantAlreadyLinked=4]="CurrentTenantAlreadyLinked"}(UX||(UX={})),function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.MultilineText=2]="MultilineText"}(HX||(HX={})),function(e){e[e.Unknown=0]="Unknown",e[e.AdminOnly=1]="AdminOnly",e[e.UserEditable=2]="UserEditable",e[e.Hidden=3]="Hidden"}(WX||(WX={})),function(e){e.Admin="Admin",e.Editor="Editor",e.Author="Author",e.Reader="Reader",e.LimitedReader="LimitedReader",e.None="None"}(YX||(YX={})),function(e){e[e.None=0]="None",e[e.LimitedReader=5]="LimitedReader",e[e.Reader=10]="Reader",e[e.Author=20]="Author",e[e.Editor=30]="Editor",e[e.Admin=40]="Admin"}(VX||(VX={})),function(e){e[e.Success=1]="Success",e[e.InvalidHash=2]="InvalidHash",e[e.InvalidEmail=3]="InvalidEmail",e[e.NotPending=4]="NotPending"}(KX||(KX={})),function(e){e[e.Success=1]="Success",e[e.InvalidHash=2]="InvalidHash",e[e.InvalidEmail=3]="InvalidEmail",e[e.NewUserCannotBeTemporary=6]="NewUserCannotBeTemporary",e[e.NotAuthenticated=7]="NotAuthenticated",e[e.GenericError=8]="GenericError"}(JX||(JX={})),function(e){e[e.None=0]="None",e[e.MobilePush=1]="MobilePush",e[e.Email=2]="Email",e[e.Teams=4]="Teams",e[e.BrowserPush=8]="BrowserPush"}(QX||(QX={})),function(e){e[e.Unknown=0]="Unknown",e[e.Success=1]="Success",e[e.ActiveUserExists=2]="ActiveUserExists",e[e.AlreadyInvited=3]="AlreadyInvited",e[e.ActiveUserExistsDifferentEmail=4]="ActiveUserExistsDifferentEmail"}(ZX||(ZX={})),function(e){e[e.Unknown=0]="Unknown",e[e.Success=1]="Success",e[e.ActiveUserExists=2]="ActiveUserExists",e[e.AlreadyRegistered=3]="AlreadyRegistered",e[e.InvitedUserExists=4]="InvitedUserExists"}($X||($X={}));var a0=RV,o0=PV,s0=BQ("match"),l0=function(e){var t;return a0(e)&&(void 0!==(t=e[s0])?!!t:"RegExp"==o0(e))},u0=l0,c0=function(e){if(u0(e))throw TypeError("The method doesn't accept regular expressions");return e},d0=BQ("match"),f0=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[d0]=!1,"/./"[e](t)}catch(e){}}return!1},p0=c0,h0=IV;iQ({target:"String",proto:!0,forced:!f0("includes")},{includes:function(e){return!!~String(h0(this)).indexOf(p0(e),arguments.length>1?arguments[1]:void 0)}});var g0=iQ,m0=yV.f,v0=mJ,_0=c0,b0=IV,y0=f0,w0="".endsWith,F0=Math.min,k0=y0("endsWith"),x0=!k0&&!!function(){var e=m0(String.prototype,"endsWith");return e&&!e.writable}();function E0(e,t,n){var i=n,r=Array.isArray(n)?n:(null==i?void 0:i.groupIds)||[];return!!(t&&e&&r&&r.length)&&(!!t.isSubscriptionOwner||function(e,t,n){var i=t.groups.filter((function(e){return!n||n.includes(e.id)}));if(!i.length)return!1;return i.some((function(t){return t.role.roleValue>=e}))}(e,t,r))}function C0(e,t,n){var i=n,r=Array.isArray(n)?n:(null==i?void 0:i.groupIds)||[];return!!(t&&e&&r&&r.length)&&(!!t.isSubscriptionOwner||function(e,t,n){var i=t.groups.filter((function(e){return!n||n.includes(e.id)}));if(!i.length||n&&n.length!==i.length)return!1;return i.every((function(t){return t.role.roleValue>=e}))}(e,t,r))}function S0(e,t,n){return n||(n=function(){return!0}),t.groups.filter((function(t){return t.role.roleValue>=e&&n(t)}))}function D0(e){return!!e&&e.endsWith("@hidden-email.reach.livetiles.io")}g0({target:"String",proto:!0,forced:!x0&&!k0},{endsWith:function(e){var t=String(b0(this));_0(e);var n=arguments.length>1?arguments[1]:void 0,i=v0(t.length),r=void 0===n?i:F0(v0(n),i),a=String(e);return w0?w0.call(t,a,r):t.slice(r-a.length,r)===a}});var P0,A0,T0={},L0={};function I0(){var e=tU();return i.useMemo((function(){return{searchAccounts:t,searchAccountsByItemId:function(e,n,i){return t({search:i,type:BX.User,includePendingInvitationUsers:!0,includePendingRegistrationUsers:!0,localOnly:!0,excludeApiUsers:!0,itemId:n,minRole:e})},getUserInfo:function(t){L0[t]||(L0[t]=e.custom("users/"+t+"/info").get().then((function(e){return e.body().data()})).catch((function(e){if(L0[t]=null,e.response&&404===e.response.statusCode)return{userPrincipalName:t};throw e})));return L0[t]},getUserInfoById:function(t){L0[t]||(L0[t]=e.custom("users/by_id/"+t+"/info").get().then((function(e){return e.body().data()})).catch((function(e){if(L0[t]=null,e.response&&404===e.response.statusCode)return{userPrincipalName:t};throw e})));return L0[t]},getUserAvatarUrl:function(t,n){T0[t]||(T0[t]=e.custom("users/"+encodeURIComponent(t)+"/avatar?"+Wg.stringify({tenantId:n})).get().then((function(e){return e.body().data()})).catch((function(e){if(e.response&&404===e.response.statusCode)return null;throw e})));return YH(T0[t])},clearUserInfoCache:function(e){L0[e]&&delete L0[e]},clearUserAvatarCache:function(e){T0[e]&&delete T0[e]}};function t(t){var n=Wg.stringify(t);return e.all("accounts?"+n).getAll().then((function(e){return e.body(!1)}))}}),[e])}function M0(){var e=tU(),t=eU(),n=i.useContext(zF).onRequestToken;return i.useMemo((function(){return{getCurrentUser:function(e,t){void 0===t&&(t=!0);return iV(this,void 0,void 0,(function(){var n,a;return rV(this,(function(o){switch(o.label){case 0:return e?[4,i(e,t)]:[3,2];case 1:return a=o.sent(),[3,4];case 2:return[4,r(t)];case 3:a=o.sent(),o.label=4;case 4:return function(e){e&&(e.minRoles=function(e){var t=e.groups.reduce((function(e,t){return Math.max(e,t.role.roleValue)}),0),n=e.isSubscriptionOwner;return{isSubscriptionOwner:n,isAdmin:n||t>=VX.Admin,isEditor:n||t>=VX.Editor,isAuthor:n||t>=VX.Author,isReader:n||t>=VX.Reader}}(e),e.hasDirectory=e.subscription&&e.subscription.directories&&e.subscription.directories.length>0)}(n=a),[2,n]}}))}))},getCurrentOrganization:function(){return e.custom("users/current/organization").get().then((function(e){return e.body().data()})).catch((function(e){if(e.response&&404===e.response.statusCode)return null;throw e}))},updateCurrentUserProfileProperties:function(t){return e.custom("users/current/properties").put(t)},updateCurrentUserAvatar:function(e,i){return iV(this,void 0,void 0,(function(){var r,a,o;return rV(this,(function(s){switch(s.label){case 0:return(r=new FormData).append("file",i,i.name||"image."+nW.getExtension(i.type)),[4,n()];case 1:return a=s.sent(),o={method:"PUT",body:r,headers:{authorization:"Bearer "+a,"subscription-id":e}},[2,t.fetchFromApi("/users/current/avatar",o)]}}))}))},deleteCurrentUserAvatar:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.custom("users/current/avatar").delete()]}))}))}};function i(e,n){return iV(this,void 0,void 0,(function(){var i;return rV(this,(function(r){switch(r.label){case 0:return[4,t.fetchFromApi("/users/current?"+Wg.stringify({essentialOnly:n}),{headers:{Authorization:"Bearer "+e}})];case 1:return[2,404===(i=r.sent()).status?null:i.json()]}}))}))}function r(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){return[2,e.custom("users/current?"+Wg.stringify({essentialOnly:t})).get().then((function(e){return e.body().data()})).catch((function(e){if(e.response&&404===e.response.statusCode)return null;throw e}))]}))}))}}),[t,e,n])}function j0(){var e=tU(),t=mV(),n=t.saveLanguageToLocalStorage,r=t.saveLocaleToLocalStorage;return i.useMemo((function(){return{updateNotificationTypeSettings:function(t){for(var n={comments:null,mentions:null,posts:null,news:null,events:null,chat:null,pluginNotifications:null},i=function(e){Object.keys(n).every((function(t){return t!==e}))&&delete t[e]},r=0,a=Object.keys(t||{});r<a.length;r++){var o=a[r];i(o)}return e.custom("users/current/notification_settings/types").put(t).then((function(e){return e.body().data()}))},getFollowCommentsStatus:function(t,n,i){return e.custom("users/current/notification_settings/"+s(n,i)+"/"+t).get().then((function(e){return e.body().data().enabled}))},toggleFollowComments:t,followPublicPublishableItemComments:i,followEditorPublishableItemComments:a,followAllPublishableItemComments:function(e,t){i(e,t),a(e,t)},followPublishableItemComments:o,resolveSegment:s,getFollowCommentSegment:l,toggleBookmark:function(t,n){null==n.bookmarks&&(n.bookmarks=[]);var i=n.bookmarks.findIndex((function(e){return e===t}));if(i<0)return e.one("users","current").all("bookmarks").put(t,null).then((function(){return n.bookmarks.push(t),!0}));return e.one("users","current").all("bookmarks").delete(t).then((function(){return n.bookmarks.splice(i,1),!1}))},getUserProperties:function(){return e.all("users/user_properties").get("").then((function(e){return e.body().data()}))},setUserChannels:function(t){return e.custom("users/current/channels").put(t)},addContact:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.all("users/current/contacts").post(t)];case 1:return[2,n.sent().body().data()]}}))}))},deleteContact:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.all("users/current/contacts/"+t.tokenUniqueId).delete("")];case 1:return[2,n.sent().body().data()]}}))}))},getContactAccounts:function(){return e.all("users/current/contacts").getAll().then((function(e){return e.body(!1)}))},setLanguage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(i){switch(i.label){case 0:return[4,e.custom("users/current/ui_language/"+t).put(null)];case 1:return i.sent(),[4,n(t)];case 2:return i.sent(),[2]}}))}))},setContentLanguage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/content_language/"+t).put(null)];case 1:return n.sent(),[2]}}))}))},setLocale:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/locale/"+t).put(null)];case 1:return n.sent(),[4,r(t)];case 2:return n.sent(),[2]}}))}))},getGroupNotificationSettings:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/notification_settings/groups/"+t).get().then((function(e){return e.body().data()}))];case 1:return[2,n.sent()]}}))}))},updateGroupNotificationSettings:function(t,n){return iV(this,void 0,void 0,(function(){return rV(this,(function(i){switch(i.label){case 0:return[4,e.custom("users/current/notification_settings/groups/"+t).put(n).then((function(e){return e.body().data()}))];case 1:return[2,i.sent()]}}))}))},clearMyUnreadItems:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/"+t+"/unread").delete()];case 1:return n.sent(),[2]}}))}))},acceptTermsAndConditions:function(t){return e.custom("users/current/terms_and_conditions/"+t).patch({})}};function t(t,n,i,r){return e.custom("users/current/notification_settings/"+s(n,i)+"/"+t).put({enabled:r})}function i(e,t){o(e,t,A0.Public)}function a(e,t){o(e,t,A0.Editor)}function o(e,n,i){t(e,n,i,!0).then((function(){return null}),(function(e){return im.error(e)}))}function s(e,t){switch(t){case A0.Editor:return"editor_comments";case A0.Public:return l(e)+"_comments";case A0.Posts:return"post_comments";default:throw Error("Invalid scope")}}function l(e){switch(e){case P0.News:return"news";case P0.Pages:return"page";case P0.Events:return"event";default:throw Error("Invalid type")}}}),[e,n,r])}!function(e){e.News="news",e.Pages="pages",e.Posts="posts",e.Events="events",e.Comments="comments"}(P0||(P0={})),function(e){e[e.Public=0]="Public",e[e.Editor=1]="Editor",e[e.Posts=2]="Posts"}(A0||(A0={}));var N0,R0=PJ,O0=AJ,z0=Object.keys||function(e){return R0(e,O0)},B0=nK,G0=rK,q0=z0,U0=FV?Object.defineProperties:function(e,t){G0(e);for(var n,i=q0(t),r=i.length,a=0;r>a;)B0.f(e,n=i[a++],t[n]);return e},H0=rK,W0=U0,Y0=AJ,V0=OK,K0=TZ,J0=WV,Q0=RK("IE_PROTO"),Z0=function(){},$0=function(e){return"<script>"+e+"</"+"script>"},X0=function(){try{N0=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;X0=N0?function(e){e.write($0("")),e.close();var t=e.parentWindow.Object;return e=null,t}(N0):((t=J0("iframe")).style.display="none",K0.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($0("document.F=Object")),e.close(),e.F);for(var n=Y0.length;n--;)delete X0.prototype[Y0[n]];return X0()};V0[Q0]=!0;var e1=Object.create||function(e,t){var n;return null!==e?(Z0.prototype=H0(e),n=new Z0,Z0.prototype=null,n[Q0]=e):n=X0(),void 0===t?n:W0(n,t)},t1=e1,n1=nK,i1=BQ("unscopables"),r1=Array.prototype;null==r1[i1]&&n1.f(r1,i1,{configurable:!0,value:t1(null)});var a1,o1,s1,l1=function(e){r1[i1][e]=!0},u1=!wV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),c1=GV,d1=oQ,f1=u1,p1=RK("IE_PROTO"),h1=Object.prototype,g1=f1?Object.getPrototypeOf:function(e){return e=d1(e),c1(e,p1)?e[p1]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?h1:null},m1=g1,v1=fK,_1=GV,b1=BQ("iterator"),y1=!1;[].keys&&("next"in(s1=[].keys())?(o1=m1(m1(s1)))!==Object.prototype&&(a1=o1):y1=!0),null==a1&&(a1={}),_1(a1,b1)||v1(a1,b1,(function(){return this}));var w1={IteratorPrototype:a1,BUGGY_SAFARI_ITERATORS:y1},F1=w1.IteratorPrototype,k1=e1,x1=SV,E1=HQ,C1=QQ,S1=function(){return this},D1=RV,P1=rK,A1=function(e){if(!D1(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e},T1=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return P1(n),A1(i),t?e.call(n,i):n.__proto__=i,n}}():void 0),L1=iQ,I1=function(e,t,n){var i=t+" Iterator";return e.prototype=k1(F1,{next:x1(1,n)}),E1(e,i,!1),C1[i]=S1,e},M1=g1,j1=T1,N1=HQ,R1=fK,O1=pK.exports,z1=QQ,B1=w1.IteratorPrototype,G1=w1.BUGGY_SAFARI_ITERATORS,q1=BQ("iterator"),U1="keys",H1="values",W1="entries",Y1=function(){return this},V1=NV,K1=l1,J1=QQ,Q1=ZK,Z1=function(e,t,n,i,r,a,o){I1(n,t,i);var s,l,u,c=function(e){if(e===r&&g)return g;if(!G1&&e in p)return p[e];switch(e){case U1:case H1:case W1:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[q1]||p["@@iterator"]||r&&p[r],g=!G1&&h||c(r),m="Array"==t&&p.entries||h;if(m&&(s=M1(m.call(new e)),B1!==Object.prototype&&s.next&&(M1(s)!==B1&&(j1?j1(s,B1):"function"!=typeof s[q1]&&R1(s,q1,Y1)),N1(s,d,!0))),r==H1&&h&&h.name!==H1&&(f=!0,g=function(){return h.call(this)}),p[q1]!==g&&R1(p,q1,g),z1[t]=g,r)if(l={values:c(H1),keys:a?g:c(U1),entries:c(W1)},o)for(u in l)(G1||f||!(u in p))&&O1(p,u,l[u]);else L1({target:t,proto:!0,forced:G1||f},l);return l},$1="Array Iterator",X1=Q1.set,e2=Q1.getterFor($1),t2=Z1(Array,"Array",(function(e,t){X1(this,{type:$1,target:V1(e),index:0,kind:t})}),(function(){var e=e2(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");J1.Arguments=J1.Array,K1("keys"),K1("values"),K1("entries");var n2=bV,i2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r2=t2,a2=fK,o2=BQ,s2=o2("iterator"),l2=o2("toStringTag"),u2=r2.values;for(var c2 in i2){var d2=n2[c2],f2=d2&&d2.prototype;if(f2){if(f2[s2]!==u2)try{a2(f2,s2,u2)}catch(e){f2[s2]=u2}if(f2[l2]||a2(f2,l2,c2),i2[c2])for(var p2 in r2)if(f2[p2]!==r2[p2])try{a2(f2,p2,r2[p2])}catch(e){f2[p2]=r2[p2]}}}var h2=i.createContext(null);function g2(){var e=i.useContext(h2);return null!=e?e.refresh:function(){return null}}var m2,v2=function(e){var n=e.children,r=n0().refreshUser,a=ej(),o=i.useCallback((function(){var e,t;return iV(this,void 0,void 0,(function(){var n,i;return rV(this,(function(o){switch(o.label){case 0:return[4,a.query({query:_2,fetchPolicy:"no-cache",errorPolicy:"all"})];case 1:return n=o.sent(),null==(i=null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.currentUser)?[3,3]:[4,r((function(e){return tV(tV({},e),function(e){var t,n,i,r,a;return{availableSubscriptions:null!==(t=null==e?void 0:e.availableSubscriptions)&&void 0!==t?t:[],bookmarks:null!==(n=null==e?void 0:e.bookmarks)&&void 0!==n?n:[],unreadNews:null!==(i=null==e?void 0:e.unreadNews)&&void 0!==i?i:[],unreadEvents:null!==(r=null==e?void 0:e.unreadEvents)&&void 0!==r?r:[],unreadPosts:null!==(a=null==e?void 0:e.unreadPosts)&&void 0!==a?a:[],hasUnreadChats:null==e?void 0:e.hasUnreadChats,unreadFeedItemsCount:null==e?void 0:e.unreadFeedItemsCount,mostRecentPostGroups:null==e?void 0:e.mostRecentPostGroups}}(tV({bookmarks:i.bookmarkIds,availableSubscriptions:i.subscriptions},i)))}))];case 2:return[2,o.sent()];case 3:return(null==i||(null===(t=null==n?void 0:n.errors)||void 0===t?void 0:t.length)>0)&&im.error("Failed to load the currentUser with details.",null==n?void 0:n.errors),[2]}}))}))}),[a]),s=i.useMemo((function(){return{refresh:o}}),[o]);return i.useEffect((function(){o().then(null,im.error)}),[o]),t.jsx(h2.Provider,tV({value:s},{children:n}),void 0)},_2=UM(m2||(m2=oV(["\n query CurrentUserDetails {\n currentUser {\n bookmarkIds\n unreadNews {\n itemId\n channelIds\n }\n unreadEvents {\n itemId\n channelIds\n }\n unreadPosts {\n itemId\n groupId\n }\n unreadFeedItemsCount\n hasUnreadChats\n mostRecentPostGroups\n subscriptions {\n id\n subscriptionName\n company\n contact {\n displayName\n userPrincipalName\n }\n hasUnreadItems\n }\n }\n }\n"],["\n query CurrentUserDetails {\n currentUser {\n bookmarkIds\n unreadNews {\n itemId\n channelIds\n }\n unreadEvents {\n itemId\n channelIds\n }\n unreadPosts {\n itemId\n groupId\n }\n unreadFeedItemsCount\n hasUnreadChats\n mostRecentPostGroups\n subscriptions {\n id\n subscriptionName\n company\n contact {\n displayName\n userPrincipalName\n }\n hasUnreadItems\n }\n }\n }\n"]))),b2=iQ,y2=yV.f,w2=mJ,F2=c0,k2=IV,x2=f0,E2="".startsWith,C2=Math.min,S2=x2("startsWith"),D2=!S2&&!!function(){var e=y2(String.prototype,"startsWith");return e&&!e.writable}();function P2(){var e=i.useContext(_E).identifier,t=e.subscriptionHandle||e.id;return{buildPath:function(e){if(e)return"/"+t+"/"+(e.startsWith("/")?e.substring(1):e);return"/"+t},subscriptionHandle:t}}function A2(){var e=Ag().webAppUrl,t=L2();return t?"https://"+t:e}function T2(){var e=Ag().webAppUrls,t=L2();return t?aV(aV([],e),["https://"+t]):e}function L2(){var e,t=i0();return(null===(e=null==t?void 0:t.subscription)||void 0===e?void 0:e.customDomain)||process.env.NX_CUSTOM_DOMAIN}b2({target:"String",proto:!0,forced:!D2&&!S2},{startsWith:function(e){var t=String(k2(this));F2(e);var n=w2(C2(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return E2?E2.call(t,i,n):t.slice(n,n+i.length)===i}});var I2=["rm"],M2=["af","ar","as","bn","bs","bg","yue","ca","zh-TW","zh-CN","hr","cs","prs","da","nl","en","et","fj","fil","fi","fr","fr-ca","de","el","gu","ht","he","hi","mww","hu","is","id","ga","it","ja","kn","kk","sw","ko","ku","kmr","lv","lt","mg","ms","ml","mt","mi","mr","nb","or","ps","fa","pl","pt-br","pt-pt","pa","otq","rm","ro","ru","sm","sr-cyrl","sr-latn","sk","sl","es","sv","ty","ta","te","th","to","tr","uk","ur","vi","cy"];function j2(e){return e.preferredContentLanguage||e.preferredUiLanguage||Qw()||e.subscription&&e.subscription.defaultLanguage||"en"}function N2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t?t.map((function(t){return tV(tV({},t),{localizedName:e.formatMessage({id:"Generic.languages."+t.code,defaultMessage:t.englishName})})})):[]}var R2=i.createContext(null);var O2=window.System;function z2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=document.querySelector('script[type="systemjs-importmap"][data-reach-package="'+e+'"]');if(null==i){var r=document.createElement("script");r.type="systemjs-importmap",r.setAttribute("data-reach-package",e);for(var a={imports:{}},o=0,s=t;o<s.length;o++){var l=s[o].name;a.imports[l]="app:"+l}r.textContent=JSON.stringify(a,null,2),document.head.appendChild(r);for(var u=0,c=t;u<c.length;u++){var d=c[u],f=d.name,p=d.packageDefinition;O2.set("app:"+f,p)}}}var B2=function(){return null};var G2=rK,q2=function(){var e=G2(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},U2={},H2=wV;function W2(e,t){return RegExp(e,t)}U2.UNSUPPORTED_Y=H2((function(){var e=W2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),U2.BROKEN_CARET=H2((function(){var e=W2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var Y2=q2,V2=U2,K2=RegExp.prototype.exec,J2=String.prototype.replace,Q2=K2,Z2=function(){var e=/a/,t=/b*/g;return K2.call(e,"a"),K2.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),$2=V2.UNSUPPORTED_Y||V2.BROKEN_CARET,X2=void 0!==/()??/.exec("")[1];(Z2||X2||$2)&&(Q2=function(e){var t,n,i,r,a=this,o=$2&&a.sticky,s=Y2.call(a),l=a.source,u=0,c=e;return o&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,u++),n=new RegExp("^(?:"+l+")",s)),X2&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Z2&&(t=a.lastIndex),i=K2.call(o?n:a,c),o?i?(i.input=i.input.slice(u),i[0]=i[0].slice(u),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:Z2&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),X2&&i&&i.length>1&&J2.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var e3=Q2;iQ({target:"RegExp",proto:!0,forced:/./.exec!==e3},{exec:e3});var t3=pK.exports,n3=wV,i3=BQ,r3=e3,a3=fK,o3=i3("species"),s3=!n3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l3="$0"==="a".replace(/./,"$0"),u3=i3("replace"),c3=!!/./[u3]&&""===/./[u3]("a","$0"),d3=!n3((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),f3=function(e,t,n,i){var r=i3(e),a=!n3((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),o=a&&!n3((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[o3]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return t=!0,null},n[r](""),!t}));if(!a||!o||"replace"===e&&(!s3||!l3||c3)||"split"===e&&!d3){var s=/./[r],l=n(r,""[e],(function(e,t,n,i,r){return t.exec===r3?a&&!r?{done:!0,value:s.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:l3,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:c3}),u=l[0],c=l[1];t3(String.prototype,e,u),t3(RegExp.prototype,r,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}i&&a3(RegExp.prototype[r],"sham",!0)},p3=pJ,h3=IV,g3=function(e){return function(t,n){var i,r,a=String(h3(t)),o=p3(n),s=a.length;return o<0||o>=s?e?"":void 0:(i=a.charCodeAt(o))<55296||i>56319||o+1===s||(r=a.charCodeAt(o+1))<56320||r>57343?e?a.charAt(o):i:e?a.slice(o,o+2):r-56320+(i-55296<<10)+65536}},m3={codeAt:g3(!1),charAt:g3(!0)}.charAt,v3=function(e,t,n){return t+(n?m3(e,t).length:1)},_3=PV,b3=e3,y3=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==_3(e))throw TypeError("RegExp#exec called on incompatible receiver");return b3.call(e,t)},w3=f3,F3=rK,k3=oQ,x3=mJ,E3=pJ,C3=IV,S3=v3,D3=y3,P3=Math.max,A3=Math.min,T3=Math.floor,L3=/\$([$&'`]|\d\d?|<[^>]*>)/g,I3=/\$([$&'`]|\d\d?)/g,M3=function(e){return void 0===e?e:String(e)};function j3(){return i.useContext(R2).storage}function N3(e,t){var n="Plugins::"+e+"::";return{getAllKeys:i,getString:function(e){return t.getString(n+e)},setString:function(e,i){return t.setString(n+e,i)},remove:function(e){return t.remove(n+e)},clearAll:function(){return iV(this,void 0,void 0,(function(){var e,r,a,o;return rV(this,(function(s){switch(s.label){case 0:return[4,i()];case 1:e=s.sent(),r=0,a=e,s.label=2;case 2:return r<a.length?(o=a[r],[4,t.remove(n+o)]):[3,5];case 3:s.sent(),s.label=4;case 4:return r++,[3,2];case 5:return[2]}}))}))}};function i(){var e;return iV(this,void 0,void 0,(function(){var i;return rV(this,(function(r){switch(r.label){case 0:return[4,t.getAllKeys()];case 1:return i=r.sent(),[2,null!==(e=null==i?void 0:i.filter((function(e){return e.startsWith(n)})).map((function(e){return e.replace(n,"")})))&&void 0!==e?e:[]]}}))}))}}function R3(e){var t;if(404!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.statusCode))throw e}function O3(e,t){return{get:function(n){return t.custom("users/current/plugins/"+e+"/store/"+n+"/value").get().then((function(e){return e.body().data()}))},set:function(n,i){return t.custom("users/current/plugins/"+e+"/store/"+n+"/value").put(i).then((function(e){return e.body().data()}))},delete:function(n){return t.custom("users/current/plugins/"+e+"/store/"+n+"/value").delete()}}}function z3(e,t){return{get:function(n){return t.custom("subscriptions/current/plugins/"+e+"/store/"+n+"/value").get().then((function(e){return e.body().data()}))},set:function(n,i){return t.custom("subscriptions/current/plugins/"+e+"/store/"+n+"/value").put(i).then((function(e){return e.body().data()}))},delete:function(n){return t.custom("subscriptions/current/plugins/"+e+"/store/"+n+"/value").delete()}}}w3("replace",2,(function(e,t,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=i.REPLACE_KEEPS_$0,o=r?"$":"$0";return[function(n,i){var r=C3(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!r&&a||"string"==typeof i&&-1===i.indexOf(o)){var l=n(t,e,this,i);if(l.done)return l.value}var u=F3(e),c=String(this),d="function"==typeof i;d||(i=String(i));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var h=[];;){var g=D3(u,c);if(null===g)break;if(h.push(g),!f)break;""===String(g[0])&&(u.lastIndex=S3(c,x3(u.lastIndex),p))}for(var m="",v=0,_=0;_<h.length;_++){g=h[_];for(var b=String(g[0]),y=P3(A3(E3(g.index),c.length),0),w=[],F=1;F<g.length;F++)w.push(M3(g[F]));var k=g.groups;if(d){var x=[b].concat(w,y,c);void 0!==k&&x.push(k);var E=String(i.apply(void 0,x))}else E=s(b,c,y,w,k,i);y>=v&&(m+=c.slice(v,y)+E,v=y+b.length)}return m+c.slice(v)}];function s(e,n,i,r,a,o){var s=i+e.length,l=r.length,u=I3;return void 0!==a&&(a=k3(a),u=L3),t.call(o,u,(function(t,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":u=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>l){var d=T3(c/10);return 0===d?t:d<=l?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):t}u=r[c-1]}return void 0===u?"":u}))}}));var B3=function(e){var n=e.pluginId,r=e.componentName,a=e.settings,o=e.bundleUrl,s=e.bundleModificationDate,l=nV(e,["pluginId","componentName","settings","bundleUrl","bundleModificationDate"]),u=vE(),c=tU(),d=function(){var e=tU(),t=i0(),n=eU(),r=n.createApiUrl,a=n.fetchFromApi,o=i.useContext(zF).onRequestToken;return i.useMemo((function(){return{getPluginFileUrl:function(e,t,n){return t||(e.startsWith("http")?e+"?cache="+(new Date).getTime():r("/plugins/"+e,n?{cache:new Date(n).getTime()}:null))},saveDefinition:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("plugins/"+encodeURIComponent(t.pluginId)+"/definition").put(t).then((function(e){return e.body()}))];case 1:return[2,n.sent()]}}))}))},saveFile:function(e,n){return iV(this,void 0,void 0,(function(){var i,r,s;return rV(this,(function(l){switch(l.label){case 0:return(i=new FormData).append("file",n),[4,o()];case 1:return r=l.sent(),s={method:"PUT",body:i,headers:{authorization:"Bearer "+r,"subscription-id":t.subscription.id}},[2,a("/plugins/"+encodeURIComponent(e)+"/bundle",s)]}}))}))},generateApiKey:function(t,n,i){return iV(this,void 0,void 0,(function(){return rV(this,(function(r){switch(r.label){case 0:return[4,e.all("plugins/"+encodeURIComponent(t)+"/api_keys").post({displayName:n,expiryDate:i}).then((function(e){return e.body().data()}))];case 1:return[2,r.sent()]}}))}))},linkPlugin:function(t,n){return iV(this,void 0,void 0,(function(){return rV(this,(function(i){switch(i.label){case 0:return[4,e.custom("subscriptions/current/plugins/"+encodeURIComponent(t)).put({settings:n}).then((function(e){return e.body()}))];case 1:return[2,i.sent()]}}))}))},unlinkPlugin:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("subscriptions/current/plugins/"+encodeURIComponent(t)).delete().then((function(e){return e.body()}))];case 1:return[2,n.sent()]}}))}))}}}),[e,r,a,o,t.subscription.id])}().getPluginFileUrl,f=i.useMemo((function(){return i.lazy((function(){return function(e,t){return iV(this,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,O2.import(e)];case 1:return[2,{default:i.sent()[t]}];case 2:return n=i.sent(),im.error(n),[2,{default:B2}];case 3:return[2]}}))}))}(d(n,o,s),r)}))}),[r,n,d,o,s]),p=i.useMemo((function(){return{settings:a,storage:N3(n,u),userStore:O3(n,c),subscriptionStore:z3(n,c)}}),[n,a,u,c]);return t.jsx(i.Suspense,tV({fallback:t.jsx("div",{},void 0)},{children:t.jsx(R2.Provider,tV({value:p},{children:t.jsx(f,tV({name:r},l),void 0)}),void 0)}),void 0)},G3=PV,q3=Array.isArray||function(e){return"Array"==G3(e)},U3=q3,H3=mJ,W3=tZ,Y3=function(e,t,n,i,r,a,o,s){for(var l,u=r,c=0,d=!!o&&W3(o,s,3);c<i;){if(c in n){if(l=d?d(n[c],c,t):n[c],a>0&&U3(l))u=Y3(e,t,l,H3(l.length),u,a-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[u]=l}u++}c++}return u},V3=Y3,K3=RV,J3=q3,Q3=BQ("species"),Z3=V3,$3=oQ,X3=mJ,e4=rQ,t4=function(e,t){var n;return J3(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!J3(n.prototype)?K3(n)&&null===(n=n[Q3])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)};iQ({target:"Array",proto:!0},{flatMap:function(e){var t,n=$3(this),i=X3(n.length);return e4(e),(t=t4(n,0)).length=Z3(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}}),l1("flatMap");var n4,i4,r4=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},a4=rK,o4=IV,s4=r4,l4=y3;function u4(){var e=i0(),t=function(){var e=function(){var e=r.useLocation(),t=Wg.parse(e.search);if(null!=t.plugin){var n=JSON.parse(atob(t.plugin));c4.some((function(e){return e.pluginId===n.pluginId}))||(c4.push(n),window.sessionStorage.setItem("Reach::InjectedRemotePlugins",JSON.stringify(c4)))}return c4}(),t=IF(n,[],[null==e?void 0:e.length])[0];return null!=d4?d4:t;function n(){return iV(this,void 0,void 0,(function(){var t,n,i,r,a,o;return rV(this,(function(s){switch(s.label){case 0:if(d4)return[2,d4];t=[],n=0,i=e,s.label=1;case 1:return n<i.length?(r=i[n],a="http://localhost:"+r.port,[4,fetch(a+"/definition.json?rev="+(new Date).getTime())]):[3,5];case 2:return[4,s.sent().json()];case 3:(o=s.sent()).bundleUrl=a+"/index.js?rev="+(new Date).getTime(),t.push(o),s.label=4;case 4:return n++,[3,1];case 5:return[2,d4=t]}}))}))}}();return aV(aV([],(e.subscription.webPluginDefinitions||[]).filter((function(e){return!t.some((function(t){return t.pluginId===e.pluginId}))}))),t)}f3("search",1,(function(e,t,n){return[function(t){var n=o4(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=a4(e),a=String(this),o=r.lastIndex;s4(o,0)||(r.lastIndex=0);var s=l4(r,a);return s4(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]})),function(e){e.global="Global",e.page="Page",e.eventEditorFeedbackSection="EventEditorFeedbackSection",e.eventDetailViewSection="EventDetailViewSection"}(i4||(i4={}));var c4=null!==(n4=JSON.parse(window.sessionStorage.getItem("Reach::InjectedRemotePlugins")))&&void 0!==n4?n4:[];var d4=null;var f4=FV,p4=wV,h4=z0,g4=IJ,m4=kV,v4=oQ,_4=LV,b4=Object.assign,y4=Object.defineProperty,w4=!b4||p4((function(){if(f4&&1!==b4({b:1},b4(y4({},"a",{enumerable:!0,get:function(){y4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=b4({},e)[n]||h4(b4({},t)).join("")!=i}))?function(e,t){for(var n=v4(e),i=arguments.length,r=1,a=g4.f,o=m4.f;i>r;)for(var s,l=_4(arguments[r++]),u=a?h4(l).concat(a(l)):h4(l),c=u.length,d=0;c>d;)s=u[d++],f4&&!o.call(l,s)||(n[s]=l[s]);return n}:b4,F4=w4;iQ({target:"Object",stat:!0,forced:Object.assign!==F4},{assign:F4});var k4=PV,x4=pJ,E4=IV,C4="".repeat||function(e){var t=String(E4(this)),n="",i=x4(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n},S4=iQ,D4=pJ,P4=function(e){if("number"!=typeof e&&"Number"!=k4(e))throw TypeError("Incorrect invocation");return+e},A4=C4,T4=wV,L4=1..toFixed,I4=Math.floor,M4=function(e,t,n){return 0===t?n:t%2==1?M4(e,t-1,n*e):M4(e*e,t/2,n)};S4({target:"Number",proto:!0,forced:L4&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!T4((function(){L4.call({})}))},{toFixed:function(e){var t,n,i,r,a=P4(this),o=D4(e),s=[0,0,0,0,0,0],l="",u="0",c=function(e,t){for(var n=-1,i=t;++n<6;)i+=e*s[n],s[n]=i%1e7,i=I4(i/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=I4(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+A4.call("0",7-n.length)+n}return t};if(o<0||o>20)throw RangeError("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(l="-",a=-a),a>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*M4(2,69,1))-69,n=t<0?a*M4(2,-t,1):a/M4(2,t,1),n*=4503599627370496,(t=52-t)>0){for(c(0,n),i=o;i>=7;)c(1e7,0),i-=7;for(c(M4(10,i,1),0),i=t-1;i>=23;)d(1<<23),i-=23;d(1<<i),c(1,1),d(2),u=f()}else c(0,n),c(1<<-t,0),u=f()+A4.call("0",o);return u=o>0?l+((r=u.length)<=o?"0."+A4.call("0",o-r)+u:u.slice(0,r-o)+"."+u.slice(r-o)):l+u}});var j4={primaryColor:"#512DA8",secondaryColor:"#6AE6C6"},N4={palette:{themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#52A0BF",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",neutralDark:"#212121",neutralPrimary:"#333333",neutralPrimaryAlt:"#3c3c3c",neutralSecondary:"#424242",neutralSecondaryAlt:"#767676",neutralTertiary:"#a6a6a6",neutralTertiaryAlt:"#c8c8c8",neutralQuaternary:"#d0d0d0",neutralQuaternaryAlt:"#dadada",neutralLight:"#eaeaea",neutralLighter:"#f2f2f2",neutralLighterAlt:"#f8f8f8",accent:"#52A0BF",textColorOnWhiteBackground:"#52A0BF",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",blue:"#0078d7",blueDark:"#002050",blueLight:"#00bcf2",blueMid:"#00188f",error:"#a80000",green:"#107c10",greenDark:"#004b1c",greenLight:"#bad80a",info:"#107c10",magenta:"#b4009e",magentaDark:"#5c005c",magentaLight:"#e3008c",orange:"#d83b01",orangeLight:"#ff8c00",orangeLighter:"#ea4300",purple:"#5c2d91",purpleDark:"#32145a",purpleLight:"#b4a0ff",red:"#e81123",redDark:"#a80000",severeWarning:"#d83b01",success:"#107c10",teal:"#008272",tealDark:"#004b50",tealLight:"#00b294",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellow:"#ffb900",yellowLight:"#fff100"},semanticColors:{infoText:"#333333",successText:"#333333",alertBackground:"#deecf9",severeWarningBackground:"#fed9cc",successBackground:"#dff6dd",warningBackground:"#fff4ce",errorBackground:"#fde7e9",infoBackground:"#f4f4f4"},textColors:{onPrimary:"#ffffff",onSecondary:"#000000"}},R4=rK,O4=mJ,z4=IV,B4=v3,G4=y3;f3("match",1,(function(e,t,n){return[function(t){var n=z4(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=R4(e),a=String(this);if(!r.global)return G4(r,a);var o=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=G4(r,a));){var c=String(s[0]);l[u]=c,""===c&&(r.lastIndex=B4(a,O4(r.lastIndex),o)),u++}return 0===u?null:l}]}));var q4="\t\n\v\f\r \u2028\u2029\ufeff",U4=IV,H4="[\t\n\v\f\r \u2028\u2029\ufeff]",W4=RegExp("^"+H4+H4+"*"),Y4=RegExp(H4+H4+"*$"),V4=function(e){return function(t){var n=String(U4(t));return 1&e&&(n=n.replace(W4,"")),2&e&&(n=n.replace(Y4,"")),n}},K4={start:V4(1),end:V4(2),trim:V4(3)},J4=K4.trim,Q4=q4,Z4=bV.parseInt,$4=/^[+-]?0[Xx]/,X4=8!==Z4(Q4+"08")||22!==Z4(Q4+"0x16")?function(e,t){var n=J4(String(e));return Z4(n,t>>>0||($4.test(n)?16:10))}:Z4;iQ({global:!0,forced:parseInt!=X4},{parseInt:X4});var e6=f3,t6=l0,n6=rK,i6=IV,r6=AZ,a6=v3,o6=mJ,s6=y3,l6=e3,u6=wV,c6=[].push,d6=Math.min,f6=4294967295,p6=!u6((function(){return!RegExp(f6,"y")}));e6("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(i6(this)),r=void 0===n?f6:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!t6(e))return t.call(i,e,r);for(var a,o,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,d=new RegExp(e.source,u+"g");(a=l6.call(d,i))&&!((o=d.lastIndex)>c&&(l.push(i.slice(c,a.index)),a.length>1&&a.index<i.length&&c6.apply(l,a.slice(1)),s=a[0].length,c=o,l.length>=r));)d.lastIndex===a.index&&d.lastIndex++;return c===i.length?!s&&d.test("")||l.push(""):l.push(i.slice(c)),l.length>r?l.slice(0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=i6(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var o=n6(e),s=String(this),l=r6(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(p6?"y":"g"),d=new l(p6?o:"^(?:"+o.source+")",c),f=void 0===r?f6:r>>>0;if(0===f)return[];if(0===s.length)return null===s6(d,s)?[s]:[];for(var p=0,h=0,g=[];h<s.length;){d.lastIndex=p6?h:0;var m,v=s6(d,p6?s:s.slice(h));if(null===v||(m=d6(o6(d.lastIndex+(p6?0:h)),s.length))===p)h=a6(s,h,u);else{if(g.push(s.slice(p,h)),g.length===f)return g;for(var _=1;_<=v.length-1;_++)if(g.push(v[_]),g.length===f)return g;h=p=m}}return g.push(s.slice(p)),g}]}),!p6);var h6=wV,g6=q4,m6=K4.trim,v6=function(e){return h6((function(){return!!g6[e]()||"
"!="
"[e]()||g6[e].name!==e}))};iQ({target:"String",proto:!0,forced:v6("trim")},{trim:function(){return m6(this)}});var _6=pK.exports,b6=rK,y6=wV,w6=q2,F6="toString",k6=RegExp.prototype,x6=k6.toString,E6=y6((function(){return"/a/b"!=x6.call({source:"a",flags:"b"})})),C6=x6.name!=F6;(E6||C6)&&_6(RegExp.prototype,F6,(function(){var e=b6(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in k6)?w6.call(e):n)}),{unsafe:!0});var S6=function(){function e(e){var t=this;this.setRgb=function(e){-1!==e.indexOf("rgba")?t.setRgbFromRgba(e):t.setRgbFromHex(e)},this.setRgbFromHex=function(e){var n=e.replace("#","").match(/.{1,2}/g);t.r=parseInt(n[0],16),t.g=parseInt(n[1],16),t.b=parseInt(n[2],16)},this.setRgbFromRgba=function(e){var n=e.replace("rgba(","").replace(")","").split(",");t.r=parseInt(t.trim(n[0]),10),t.g=parseInt(t.trim(n[1]),10),t.b=parseInt(t.trim(n[2]),10)},this.trim=function(e){return e.replace(/^\s+|\s+$/gm,"")},this.setRgb(e)}return e.prototype.lighten=function(e){return this.r=Math.min(Math.ceil(this.r+this.r*e),255),this.g=Math.min(Math.ceil(this.g+this.g*e),255),this.b=Math.min(Math.ceil(this.b+this.b*e),255),this},e.prototype.toHex=function(){var e=function(e){return("00"+e.toString(16)).slice(-2)};return"#"+e(this.r)+e(this.g)+e(this.b)},e}(),D6=null,P6=tV({name:"Default"},j4),A6=N4.palette.neutralLighter,T6="#ffffff",L6="#333333",I6=[P6,{name:"Apatite",primaryColor:"#1570B3",secondaryColor:"#CFFF6C"},{name:"Azurite",primaryColor:"#20273C",secondaryColor:"#F4F4F4"},{name:"Cordierite",primaryColor:"#343332",secondaryColor:"#419BEB"},{name:"Nephrite",primaryColor:"#224926",secondaryColor:"#EAEAEA"},{name:"Pyrite",primaryColor:"#263251",secondaryColor:"#FFE357"},{name:"Quartz",primaryColor:"#363636",secondaryColor:"#D44579"}];function M6(e,t){var n=j6(e.primaryColor),i=e.useHighlightColorOnWhiteBackground?e.secondaryColor:e.primaryColor,r=e.useHighlightColorOnWhiteBackground?N6(i):N6(n),a={primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,textColorOnPrimary:N6(n),textColorOnSecondary:N6(e.secondaryColor),accentColor:i,textColorOnAccent:r},s=tV({},N4),l=function(e){var t={palette:{},semanticColors:{},textColors:{}},n=new S6(e.accentColor).toHex(),i=new S6(e.accentColor).lighten(-.3).toHex(),r=new S6(e.accentColor).lighten(.5).toHex(),a=j6(e.primaryColor),o=N6(i);return t.palette.themeDarker=new S6(e.primaryColor).lighten(-.4).toHex(),t.palette.themeDark=new S6(e.primaryColor).lighten(-.3).toHex(),t.palette.themeDarkAlt=a,t.palette.themePrimary=new S6(e.primaryColor).toHex(),t.palette.themeLight=new S6(e.primaryColor).lighten(.2).toHex(),t.palette.themeLighter=new S6(e.primaryColor).lighten(.65).toHex(),t.palette.themeLighterAlt=new S6(e.primaryColor).lighten(.8).toHex(),t.palette.red=new S6("#B90000").toHex(),t.palette.redDark=new S6("#a80000").toHex(),t.palette.accent=n,t.semanticColors.warningText=new S6(e.secondaryColor).lighten(.8).toHex(),t.semanticColors.inputPlaceholderText=new S6("#666666").toHex(),t.semanticColors.primaryButtonBackground=n,t.semanticColors.primaryButtonText=e.textColorOnAccent,t.semanticColors.primaryButtonBackgroundHovered=i,t.semanticColors.primaryButtonTextHovered=o,t.semanticColors.primaryButtonBackgroundPressed=i,t.semanticColors.primaryButtonTextPressed=o,t.semanticColors.inputIcon=n,t.semanticColors.inputIconHovered=i,t.semanticColors.inputBackgroundChecked=n,t.semanticColors.inputBackgroundCheckedHovered=i,t.semanticColors.inputFocusBorderAlt=n,t.semanticColors.inputPlaceholderBackgroundChecked=r,t.palette.themeSecondary=new S6(e.secondaryColor).toHex(),t.palette.themeTertiary=new S6(e.secondaryColor).lighten(-.2).toHex(),t.textColors.onPrimary=new S6(e.textColorOnPrimary).toHex(),t.textColors.onSecondary=new S6(e.textColorOnSecondary).toHex(),t.textColors.default=new S6(L6).toHex(),t.textColors.onAccent=new S6(e.textColorOnAccent).toHex(),t}(a);for(var u in l)l.hasOwnProperty(u)&&Object.assign(s[u],l[u]);return t||o.loadTheme(s),function(e){var t=[],n=".lt-reach";for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];"textColors"!==i&&(t.push(n+" .ms-bgColor-"+a+" { background-color: "+o+";}"),t.push(n+" .ms-borderColor-"+a+" { border-color: "+o+";}")),t.push(n+" .ms-fontColor-"+a+" { color: "+o+";}"),t.push(n+" .ms-fontColor-"+a+"--hover:hover {color: "+o+";}")}}D6||((D6=document.createElement("style")).type="text/css",D6.id="condense-ui-fabric-overrides",document.head.appendChild(D6));D6.innerHTML=t.join(" ")}(s),s}function j6(e){return new S6(e).lighten(-.2).toHex()}function N6(e){return function(e){var t=lW(e,L6),n=lW(e,T6);return t>n}(e)?L6:T6}var R6,O6,z6,B6,G6,q6,U6,H6,W6,Y6,V6,K6,J6,Q6,Z6=i.createContext(null),$6=function(e){var n=e.disableUiFabricThemeOverwrite,r=e.children,o=i.useState((function(){return M6(I6.find((function(e){return"Default"===e.name})),n)})),s=o[0],l=o[1];return t.jsx(Z6.Provider,tV({value:{theme:s,setTheme:function(e){return l(M6(e,n))}}},{children:t.jsx(a.ThemeProvider,tV({theme:s},{children:r}),void 0)}),void 0)};function X6(e){switch(e){case J6.YouTube:return K6.YouTube;case J6.Vimeo:return K6.Vimeo;case J6.MicrosoftStream:return K6.MicrosoftStream;case J6.GenericUrl:return K6.GenericUrl;case J6.Kaltura:return K6.Kaltura;default:return null}}!function(e){e[e.Image=0]="Image",e[e.File=1]="File",e[e.YouTubeVideo=2]="YouTubeVideo",e[e.VimeoVideo=3]="VimeoVideo",e[e.News=4]="News",e[e.Event=5]="Event",e[e.Page=6]="Page",e[e.Post=7]="Post",e[e.Giphy=8]="Giphy"}(R6||(R6={})),function(e){e.Image="IMAGE",e.File="FILE",e.YouTubeVideo="YOU_TUBE_VIDEO",e.VimeoVideo="VIMEO_VIDEO",e.News="NEWS",e.Event="EVENT",e.Page="PAGE",e.Post="POST",e.Giphy="GIPHY"}(O6||(O6={})),function(e){e[e.NotSet=0]="NotSet",e[e.Registered=1]="Registered",e[e.Declined=2]="Declined"}(z6||(z6={})),function(e){e[e.None=0]="None",e[e.FullSeries=1]="FullSeries",e[e.PerInstance=2]="PerInstance"}(B6||(B6={})),function(e){e[e.NotSet=0]="NotSet",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(G6||(G6={})),function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday"}(q6||(q6={})),function(e){e[e.Unknown=0]="Unknown",e[e.First=1]="First",e[e.Second=2]="Second",e[e.Third=3]="Third",e[e.Fourth=4]="Fourth",e[e.Last=5]="Last"}(U6||(U6={})),function(e){e[e.None=0]="None",e[e.January=1]="January",e[e.February=2]="February",e[e.March=3]="March",e[e.April=4]="April",e[e.May=5]="May",e[e.June=6]="June",e[e.July=7]="July",e[e.August=8]="August",e[e.September=9]="September",e[e.October=10]="October",e[e.November=11]="November",e[e.December=12]="December"}(H6||(H6={})),function(e){e[e.Page=0]="Page",e[e.Document=1]="Document"}(W6||(W6={})),function(e){e[e.None=0]="None",e[e.Unconfirmed=1]="Unconfirmed",e[e.Alert=2]="Alert"}(Y6||(Y6={})),function(e){e.draft="draft",e.ready="ready",e.rejected="rejected",e.approved="approved",e.deleted="deleted"}(V6||(V6={})),function(e){e[e.YouTube=0]="YouTube",e[e.Vimeo=1]="Vimeo",e[e.MicrosoftStream=2]="MicrosoftStream",e[e.GenericUrl=3]="GenericUrl",e[e.Kaltura=4]="Kaltura"}(K6||(K6={})),function(e){e.YouTube="YOUTUBE",e.Vimeo="VIMEO",e.MicrosoftStream="MICROSOFTSTREAM",e.GenericUrl="GENERICURL",e.Kaltura="KALTURA"}(J6||(J6={})),function(e){e[e.unknown=0]="unknown",e[e.pending=1]="pending",e[e.complete=2]="complete",e[e.error=3]="error"}(Q6||(Q6={}));var e9=function(e){function t(t,n){var i=e.call(this)||this;return i.actualSizeInMb=t,i.maxSizeInMb=n,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eV(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function t9(e){if(e.size>1e6*is.maxFileSizeInMb){var t=new e9(e.size/1e6,is.maxFileSizeInMb);throw dm(t,window.location.href),t}var n=new FormData;return n.append("file",e),n}function n9(e){var t=Object.keys(e||[]);return t.length?t.map((function(t){return e[t].map((function(e){return Object.assign({},e,{groupId:t})}))})).reduce((function(e,t){return e.concat(t)})):null}function i9(e){var t={};return(e||[]).forEach((function(e){t[e.groupId]||(t[e.groupId]=[]),t[e.groupId].push(e)})),t}function r9(e,t,n,i,r,a){var o=i||r;if(null==e)return o;var s=e.find((function(e){return e.name===r}))||e.find((function(e){return e.id===n}));if(!s)return o;if(!i)return a9(t,s.translations,o,a);var l=s&&s.keywords.find((function(e){return e.name===i}));return l?a9(t,l.translations,o,a):o}function a9(e,t,n,i){return null==t&&(t={}),i||(i=j2(e)),i&&t[i]||t[e.subscription.defaultLanguage]||n}var o9=10,s9=20,l9=30,u9=40,c9=60,d9=550,f9=768,p9=1024,h9=1350,g9=549,m9=767,v9=1023,_9=1349,b9=25,y9=18,w9=16,F9=14,k9=12,x9=21/9,E9=s9,C9=c9,S9=20,D9=i.createContext(null),P9=i.createContext(null);function A9(){return i.useContext(D9)}var T9,L9,I9,M9,j9,N9,R9=function(e){var n=e.children,r=i.useState(!1),a=r[0],s=r[1],l=i.useState({}),u=l[0],c=l[1],d=i.useMemo((function(){return{showErrorText:h,showInfo:p,showError:g,showWarning:m,showSuccess:v,hideNotification:_,showToast:b,showToastWarning:y,dismissToast:w}}),[c,s]),f=i.useMemo((function(){return tV(tV({},u),{isNotificationBarVisible:a})}),[u,a]);return t.jsx(D9.Provider,tV({value:d},{children:t.jsx(P9.Provider,tV({value:f},{children:n}),void 0)}),void 0);function p(e,t){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.info,actions:null,className:"ms-messageBar--info"}),s(!0)}function h(e){c({text:e,messageBarType:o.MessageBarType.error,actions:null}),s(!0)}function g(e,t){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.error,actions:null}),s(!0)}function m(e,t){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.warning,actions:null}),s(!0)}function v(e,t,n,i){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.success,className:n,actions:i}),s(!0)}function _(){s(!1)}function b(e,n,i,r){var a=t.jsx(cE,{id:e,values:n},void 0);return null==i?RY(a,r):RY(t.jsxs(O9,{children:[t.jsx(z9,{children:a},void 0),t.jsx(B9,{children:i},void 0)]},void 0),tV({},r))}function y(e,t,n){var i={autoClose:!1,type:"warning"};return n&&(i.onClose=n),b(e,t,null,i)}function w(e){RY.dismiss(e)}},O9=_.default.div.withConfig({displayName:"NotificationContext__Wrapper",componentId:"sc-ant4hw-0"})(T9||(T9=oV(["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n flex-direction: column;\n }\n"],["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n flex-direction: column;\n }\n"])),d9),z9=_.default.p.withConfig({displayName:"NotificationContext__Message",componentId:"sc-ant4hw-1"})(L9||(L9=oV(["\n flex: 1 1 auto;\n"],["\n flex: 1 1 auto;\n"]))),B9=_.default.div.withConfig({displayName:"NotificationContext__Actions",componentId:"sc-ant4hw-2"})(I9||(I9=oV(["\n margin-left: 25px;\n flex: 1 0 auto;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: 10px;\n }\n"],["\n margin-left: 25px;\n flex: 1 0 auto;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: 10px;\n }\n"])),d9),G9=function(){var e=r.useHistory(),n=i.useContext(QD).hideChrome;return i.useEffect((function(){var t=e.listen((function(){return RY.dismiss()}));return function(){return t()}}),[e]),t.jsxs(t.Fragment,{children:[t.jsx(q9,{chromeless:n},void 0),t.jsx(xY,{toastClassName:"ms-fontColor-default",bodyClassName:"ms-fontColor-default",autoClose:5e3,hideProgressBar:!0,transition:kY,closeButton:!1},void 0)]},void 0)},q9=a.createGlobalStyle(N9||(N9=oV(["\n .lt-reach .Toastify .Toastify__toast-container {\n ","\n\n ","\n }\n\n .Toastify {\n .Toastify__toast-container {\n // This allows us to have wider toasts that do not wrap too soon.\n // Toastify itself will add responsive design at 480px and span the\n // toast the full width...\n max-width: 540px;\n width: auto;\n z-index: 1000001;\n\n @media (max-width: 480px) {\n padding: 0 10px !important;\n }\n }\n\n .Toastify__toast-body {\n display: flex;\n flex: 1 1 540px;\n height: 100%;\n justify-content: center;\n flex-direction: column;\n // IE fix: this is a default value from Toastify but doesn't work properly unless added here too\n min-height: 48px;\n }\n }\n"],["\n .lt-reach .Toastify .Toastify__toast-container {\n ","\n\n ","\n }\n\n .Toastify {\n .Toastify__toast-container {\n // This allows us to have wider toasts that do not wrap too soon.\n // Toastify itself will add responsive design at 480px and span the\n // toast the full width...\n max-width: 540px;\n width: auto;\n z-index: 1000001;\n\n @media (max-width: 480px) {\n padding: 0 10px !important;\n }\n }\n\n .Toastify__toast-body {\n display: flex;\n flex: 1 1 540px;\n height: 100%;\n justify-content: center;\n flex-direction: column;\n // IE fix: this is a default value from Toastify but doesn't work properly unless added here too\n min-height: 48px;\n }\n }\n"])),(function(e){return!e.chromeless&&a.css(M9||(M9=oV(["\n top: 4em;\n "],["\n top: 4em;\n "])))}),(function(e){return e.chromeless&&a.css(j9||(j9=oV(["\n @media all and (max-width: ","px) {\n top: 0.5em;\n right: 0.5em;\n }\n "],["\n @media all and (max-width: ","px) {\n top: 0.5em;\n right: 0.5em;\n }\n "])),g9)}));function U9(){var e=tU();return i.useMemo((function(){return{getAllKeywords:t,getAllKeywordsByGroupIds:function(){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if(ZU(n))return ZH(n,null);if($U(n)&&Object.getPrototypeOf(n)===Object.prototype){var i=Object.keys(n);return ZH(i.map((function(e){return n[e]})),i)}}if("function"==typeof e[e.length-1]){var r=e.pop();return ZH(e=1===e.length&&ZU(e[0])?e[0]:e,null).pipe(MH((function(e){return r.apply(void 0,e)})))}return ZH(e,null)}(n(),t()).pipe(MH((function(e){var t=e[0],n=e[1],i={};return t.forEach((function(e){i[e.id]=n.filter((function(t){return t.groupId===e.id}))})),i}))).toPromise()},getSelectedGroups:n};function t(t){return e.all("keywords").getAll({},{"Cache-Control":t?"no-cache":"private"}).then((function(e){return e.body().map((function(e){return e.data()}))}))}function n(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.all("keyword_groups/selected").getAll().then((function(e){return e.body().map((function(e){return e.data()}))})).then((function(e){return e}))]}))}))}}),[e])}var H9,W9=i.createContext(null),Y9=function(e){var n=e.children,r=r0(),a=i.useContext(_E).identifier,o=function(){var e=tU();return i.useMemo((function(){return{getChannels:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.all("subscriptions/current/channels").getAll().then((function(e){return e.body().map((function(e){return e.data()}))}))]}))}))}}}),[e])}().getChannels,s=U9(),l=s.getAllKeywords,u=s.getSelectedGroups,c=i.useContext(hE),d=c.handleFatalError,f=c.handleAccessDeniedError,p=i.useCallback((function(){var e,t;return iV(this,void 0,void 0,(function(){var n,i,r,a,s,l,u;return rV(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),H9=new Promise((function(e){return n=e})),[4,Promise.all([o(),F(),k()])];case 1:return i=c.sent(),r=i[0],a=i[1],s=i[2],l=s.reduce((function(e,t){var n;return tV(tV({},e),((n={})[t.id]=a.filter((function(e){return e.groupId===t.id})),n))}),{}),n(r),[2,{channels:r,allKeywords:a,keywordsByGroupId:l,selectedKeywordGroups:s}];case 2:return u=c.sent(),im.error(JSON.stringify(u)),403===(null===(e=null==u?void 0:u.response)||void 0===e?void 0:e.statusCode)?f({error:null===(t=null==u?void 0:u.response)||void 0===t?void 0:t.data}):d({error:u}),[2,{}];case 3:return[2]}}))}))}),[o,l,u]),h=IF(p,{},[a.id,o,l]),g=h[0],m=g.channels,v=g.allKeywords,_=g.keywordsByGroupId,b=g.selectedKeywordGroups,y=h[3],w=i.useMemo((function(){return{channels:m,getChannels:function(){return H9},allKeywords:v,keywordsByGroupId:_,selectedKeywordGroups:b,refreshSubscription:function(){return iV(void 0,void 0,void 0,(function(){var e;return rV(this,(function(t){switch(t.label){case 0:return[4,p()];case 1:return e=t.sent(),y(e),[2]}}))}))}}}),[m,v,_,b,y,p]);return t.jsx(W9.Provider,tV({value:w},{children:n}),void 0);function F(){return iV(this,void 0,void 0,(function(){var e;return rV(this,(function(t){switch(t.label){case 0:if(!r.keywords)return[2,[]];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,l()];case 2:return[2,t.sent()];case 3:return e=t.sent(),im.error(e),[2,[]];case 4:return[2]}}))}))}function k(){return iV(this,void 0,void 0,(function(){var e;return rV(this,(function(t){switch(t.label){case 0:if(!r.keywords)return[2,[]];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,u()];case 2:return[2,t.sent()];case 3:return e=t.sent(),im.error(e),[2,[]];case 4:return[2]}}))}))}};var V9={};function K9(e){var t;(null==e?void 0:e.type)&&(null===(t=V9[e.type])||void 0===t||t.some((function(t){return t(e)})))}function J9(e,t,n){i.useEffect((function(){if(e)return V9[e]||(V9[e]=[]),V9[e].push(t),function(){V9[e]=V9[e].filter((function(e){return e!==t}))}}),aV([e],n||[]))}var Q9=iQ,Z9=rQ,$9=oQ,X9=wV,e5=hQ,t5=[],n5=t5.sort,i5=X9((function(){t5.sort(void 0)})),r5=X9((function(){t5.sort(null)})),a5=e5("sort");Q9({target:"Array",proto:!0,forced:i5||!r5||!a5},{sort:function(e){return void 0===e?n5.call($9(this)):n5.call($9(this),Z9(e))}});var o5=q3,s5=[].reverse,l5=[1,2];iQ({target:"Array",proto:!0,forced:String(l5)===String(l5.reverse())},{reverse:function(){return o5(this)&&(this.length=this.length),s5.call(this)}});var u5,c5,d5,f5=[],p5=function(e,t){f5.some((function(t){return t.handler===e}))||f5.push({handler:e,priority:t||0})},h5=function(e){f5=f5.filter((function(t){return t.handler!==e}))};!function(e){e.NotDeleted="NOT_DELETED",e.RecycleBin="RECYCLE_BIN",e.Deleted="DELETED"}(u5||(u5={})),function(e){e.Default="DEFAULT",e.GroupNameChange="GROUP_NAME_CHANGE",e.UserLeftGroup="USER_LEFT_GROUP"}(c5||(c5={})),function(e){e.Normal="NORMAL",e.LeftGroupChat="LEFT_GROUP_CHAT",e.LeftOneToOneChat="LEFT_ONE_TO_ONE_CHAT"}(d5||(d5={})),(new hH).pipe(UY(100),(function(e){return mH()((t=KY,function(e){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new VY(i,n));var r=Object.create(e,yH);return r.source=e,r.subjectFactory=i,r})(e));var t,n}));BY("/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */\n/*\n\tStyles for basic PhotoSwipe functionality (sliding area, open/close transitions)\n*/\n/* pswp = photoswipe */\n.pswp {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n touch-action: none;\n z-index: 1500;\n -webkit-text-size-adjust: 100%;\n /* create separate layer, to avoid paint on window.onscroll in webkit/blink */\n -webkit-backface-visibility: hidden;\n outline: none; }\n .pswp * {\n box-sizing: border-box; }\n .pswp img {\n max-width: none; }\n\n/* style is added when JS option showHideOpacity is set to true */\n.pswp--animate_opacity {\n /* 0.001, because opacity:0 doesn't trigger Paint action, which causes lag at start of transition */\n opacity: 0.001;\n will-change: opacity;\n /* for open/close transition */\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n.pswp--open {\n display: block; }\n\n.pswp--zoom-allowed .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-zoom-in;\n cursor: -moz-zoom-in;\n cursor: zoom-in; }\n\n.pswp--zoomed-in .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab; }\n\n.pswp--dragging .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing; }\n\n/*\n\tBackground is added as a separate element.\n\tAs animating opacity is much faster than animating rgba() background-color.\n*/\n.pswp__bg {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0;\n transform: translateZ(0);\n -webkit-backface-visibility: hidden;\n will-change: opacity; }\n\n.pswp__scroll-wrap {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden; }\n\n.pswp__container,\n.pswp__zoom-wrap {\n touch-action: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0; }\n\n/* Prevent selection and tap highlights */\n.pswp__container,\n.pswp__img {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none; }\n\n.pswp__zoom-wrap {\n position: absolute;\n width: 100%;\n transform-origin: left top;\n /* for open/close transition */\n transition: transform 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n.pswp__bg {\n will-change: opacity;\n /* for open/close transition */\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n.pswp--animated-in .pswp__bg,\n.pswp--animated-in .pswp__zoom-wrap {\n transition: none; }\n\n.pswp__container,\n.pswp__zoom-wrap {\n -webkit-backface-visibility: hidden; }\n\n.pswp__item {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden; }\n\n.pswp__img {\n position: absolute;\n width: auto;\n height: auto;\n top: 0;\n left: 0; }\n\n/*\n\tstretched thumbnail or div placeholder element (see below)\n\tstyle is added to avoid flickering in webkit/blink when layers overlap\n*/\n.pswp__img--placeholder {\n -webkit-backface-visibility: hidden; }\n\n/*\n\tdiv element that matches size of large image\n\tlarge image loads on top of it\n*/\n.pswp__img--placeholder--blank {\n background: #222; }\n\n.pswp--ie .pswp__img {\n width: 100% !important;\n height: auto !important;\n left: 0;\n top: 0; }\n\n/*\n\tError message appears when image is not loaded\n\t(JS option errorMsg controls markup)\n*/\n.pswp__error-msg {\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n text-align: center;\n font-size: 14px;\n line-height: 16px;\n margin-top: -8px;\n color: #CCC; }\n\n.pswp__error-msg a {\n color: #CCC;\n text-decoration: underline; }\n");BY('/*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */\n/*\n\n\tContents:\n\n\t1. Buttons\n\t2. Share modal and links\n\t3. Index indicator ("1 of X" counter)\n\t4. Caption\n\t5. Loading indicator\n\t6. Additional styles (root element, top bar, idle state, hidden state, etc.)\n\n*/\n/*\n\t\n\t1. Buttons\n\n */\n/* <button> css reset */\n.pswp__button {\n width: 44px;\n height: 44px;\n position: relative;\n background: none;\n cursor: pointer;\n overflow: visible;\n -webkit-appearance: none;\n display: block;\n border: 0;\n padding: 0;\n margin: 0;\n float: right;\n opacity: 0.75;\n transition: opacity 0.2s;\n box-shadow: none; }\n .pswp__button:focus, .pswp__button:hover {\n opacity: 1; }\n .pswp__button:active {\n outline: none;\n opacity: 0.9; }\n .pswp__button::-moz-focus-inner {\n padding: 0;\n border: 0; }\n\n/* pswp__ui--over-close class it added when mouse is over element that should close gallery */\n.pswp__ui--over-close .pswp__button--close {\n opacity: 1; }\n\n.pswp__button,\n.pswp__button--arrow--left:before,\n.pswp__button--arrow--right:before {\n background: url(default-skin.png) 0 0 no-repeat;\n background-size: 264px 88px;\n width: 44px;\n height: 44px; }\n\n@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {\n /* Serve SVG sprite if browser supports SVG and resolution is more than 105dpi */\n .pswp--svg .pswp__button,\n .pswp--svg .pswp__button--arrow--left:before,\n .pswp--svg .pswp__button--arrow--right:before {\n background-image: url(default-skin.svg); }\n .pswp--svg .pswp__button--arrow--left,\n .pswp--svg .pswp__button--arrow--right {\n background: none; } }\n\n.pswp__button--close {\n background-position: 0 -44px; }\n\n.pswp__button--share {\n background-position: -44px -44px; }\n\n.pswp__button--fs {\n display: none; }\n\n.pswp--supports-fs .pswp__button--fs {\n display: block; }\n\n.pswp--fs .pswp__button--fs {\n background-position: -44px 0; }\n\n.pswp__button--zoom {\n display: none;\n background-position: -88px 0; }\n\n.pswp--zoom-allowed .pswp__button--zoom {\n display: block; }\n\n.pswp--zoomed-in .pswp__button--zoom {\n background-position: -132px 0; }\n\n/* no arrows on touch screens */\n.pswp--touch .pswp__button--arrow--left,\n.pswp--touch .pswp__button--arrow--right {\n visibility: hidden; }\n\n/*\n\tArrow buttons hit area\n\t(icon is added to :before pseudo-element)\n*/\n.pswp__button--arrow--left,\n.pswp__button--arrow--right {\n background: none;\n top: 50%;\n margin-top: -50px;\n width: 70px;\n height: 100px;\n position: absolute; }\n\n.pswp__button--arrow--left {\n left: 0; }\n\n.pswp__button--arrow--right {\n right: 0; }\n\n.pswp__button--arrow--left:before,\n.pswp__button--arrow--right:before {\n content: \'\';\n top: 35px;\n background-color: rgba(0, 0, 0, 0.3);\n height: 30px;\n width: 32px;\n position: absolute; }\n\n.pswp__button--arrow--left:before {\n left: 6px;\n background-position: -138px -44px; }\n\n.pswp__button--arrow--right:before {\n right: 6px;\n background-position: -94px -44px; }\n\n/*\n\n\t2. Share modal/popup and links\n\n */\n.pswp__counter,\n.pswp__share-modal {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n\n.pswp__share-modal {\n display: block;\n background: rgba(0, 0, 0, 0.5);\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n padding: 10px;\n position: absolute;\n z-index: 1600;\n opacity: 0;\n transition: opacity 0.25s ease-out;\n -webkit-backface-visibility: hidden;\n will-change: opacity; }\n\n.pswp__share-modal--hidden {\n display: none; }\n\n.pswp__share-tooltip {\n z-index: 1620;\n position: absolute;\n background: #FFF;\n top: 56px;\n border-radius: 2px;\n display: block;\n width: auto;\n right: 44px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n transform: translateY(6px);\n transition: transform 0.25s;\n -webkit-backface-visibility: hidden;\n will-change: transform; }\n .pswp__share-tooltip a {\n display: block;\n padding: 8px 12px;\n color: #000;\n text-decoration: none;\n font-size: 14px;\n line-height: 18px; }\n .pswp__share-tooltip a:hover {\n text-decoration: none;\n color: #000; }\n .pswp__share-tooltip a:first-child {\n /* round corners on the first/last list item */\n border-radius: 2px 2px 0 0; }\n .pswp__share-tooltip a:last-child {\n border-radius: 0 0 2px 2px; }\n\n.pswp__share-modal--fade-in {\n opacity: 1; }\n .pswp__share-modal--fade-in .pswp__share-tooltip {\n transform: translateY(0); }\n\n/* increase size of share links on touch devices */\n.pswp--touch .pswp__share-tooltip a {\n padding: 16px 12px; }\n\na.pswp__share--facebook:before {\n content: \'\';\n display: block;\n width: 0;\n height: 0;\n position: absolute;\n top: -12px;\n right: 15px;\n border: 6px solid transparent;\n border-bottom-color: #FFF;\n -webkit-pointer-events: none;\n -moz-pointer-events: none;\n pointer-events: none; }\n\na.pswp__share--facebook:hover {\n background: #3E5C9A;\n color: #FFF; }\n a.pswp__share--facebook:hover:before {\n border-bottom-color: #3E5C9A; }\n\na.pswp__share--twitter:hover {\n background: #55ACEE;\n color: #FFF; }\n\na.pswp__share--pinterest:hover {\n background: #CCC;\n color: #CE272D; }\n\na.pswp__share--download:hover {\n background: #DDD; }\n\n/*\n\n\t3. Index indicator ("1 of X" counter)\n\n */\n.pswp__counter {\n position: absolute;\n left: 0;\n top: 0;\n height: 44px;\n font-size: 13px;\n line-height: 44px;\n color: #FFF;\n opacity: 0.75;\n padding: 0 10px; }\n\n/*\n\t\n\t4. Caption\n\n */\n.pswp__caption {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n min-height: 44px; }\n .pswp__caption small {\n font-size: 11px;\n color: #BBB; }\n\n.pswp__caption__center {\n text-align: left;\n max-width: 420px;\n margin: 0 auto;\n font-size: 13px;\n padding: 10px;\n line-height: 20px;\n color: #CCC; }\n\n.pswp__caption--empty {\n display: none; }\n\n/* Fake caption element, used to calculate height of next/prev image */\n.pswp__caption--fake {\n visibility: hidden; }\n\n/*\n\n\t5. Loading indicator (preloader)\n\n\tYou can play with it here - http://codepen.io/dimsemenov/pen/yyBWoR\n\n */\n.pswp__preloader {\n width: 44px;\n height: 44px;\n position: absolute;\n top: 0;\n left: 50%;\n margin-left: -22px;\n opacity: 0;\n transition: opacity 0.25s ease-out;\n will-change: opacity;\n direction: ltr; }\n\n.pswp__preloader__icn {\n width: 20px;\n height: 20px;\n margin: 12px; }\n\n.pswp__preloader--active {\n opacity: 1; }\n .pswp__preloader--active .pswp__preloader__icn {\n /* We use .gif in browsers that don\'t support CSS animation */\n background: url(preloader.gif) 0 0 no-repeat; }\n\n.pswp--css_animation .pswp__preloader--active {\n opacity: 1; }\n .pswp--css_animation .pswp__preloader--active .pswp__preloader__icn {\n -webkit-animation: clockwise 500ms linear infinite;\n animation: clockwise 500ms linear infinite; }\n .pswp--css_animation .pswp__preloader--active .pswp__preloader__donut {\n -webkit-animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite;\n animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite; }\n\n.pswp--css_animation .pswp__preloader__icn {\n background: none;\n opacity: 0.75;\n width: 14px;\n height: 14px;\n position: absolute;\n left: 15px;\n top: 15px;\n margin: 0; }\n\n.pswp--css_animation .pswp__preloader__cut {\n /* \n\t\t\tThe idea of animating inner circle is based on Polymer ("material") loading indicator \n\t\t\t by Keanu Lee https://blog.keanulee.com/2014/10/20/the-tale-of-three-spinners.html\n\t\t*/\n position: relative;\n width: 7px;\n height: 14px;\n overflow: hidden; }\n\n.pswp--css_animation .pswp__preloader__donut {\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n border: 2px solid #FFF;\n border-radius: 50%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n position: absolute;\n top: 0;\n left: 0;\n background: none;\n margin: 0; }\n\n@media screen and (max-width: 1024px) {\n .pswp__preloader {\n position: relative;\n left: auto;\n top: auto;\n margin: 0;\n float: right; } }\n\n@-webkit-keyframes clockwise {\n 0% {\n transform: rotate(0deg); }\n 100% {\n transform: rotate(360deg); } }\n\n@keyframes clockwise {\n 0% {\n transform: rotate(0deg); }\n 100% {\n transform: rotate(360deg); } }\n\n@-webkit-keyframes donut-rotate {\n 0% {\n transform: rotate(0); }\n 50% {\n transform: rotate(-140deg); }\n 100% {\n transform: rotate(0); } }\n\n@keyframes donut-rotate {\n 0% {\n transform: rotate(0); }\n 50% {\n transform: rotate(-140deg); }\n 100% {\n transform: rotate(0); } }\n\n/*\n\t\n\t6. Additional styles\n\n */\n/* root element of UI */\n.pswp__ui {\n -webkit-font-smoothing: auto;\n visibility: visible;\n opacity: 1;\n z-index: 1550; }\n\n/* top black bar with buttons and "1 of X" indicator */\n.pswp__top-bar {\n position: absolute;\n left: 0;\n top: 0;\n height: 44px;\n width: 100%; }\n\n.pswp__caption,\n.pswp__top-bar,\n.pswp--has_mouse .pswp__button--arrow--left,\n.pswp--has_mouse .pswp__button--arrow--right {\n -webkit-backface-visibility: hidden;\n will-change: opacity;\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n/* pswp--has_mouse class is added only when two subsequent mousemove events occur */\n.pswp--has_mouse .pswp__button--arrow--left,\n.pswp--has_mouse .pswp__button--arrow--right {\n visibility: visible; }\n\n.pswp__top-bar,\n.pswp__caption {\n background-color: rgba(0, 0, 0, 0.5); }\n\n/* pswp__ui--fit class is added when main image "fits" between top bar and bottom bar (caption) */\n.pswp__ui--fit .pswp__top-bar,\n.pswp__ui--fit .pswp__caption {\n background-color: rgba(0, 0, 0, 0.3); }\n\n/* pswp__ui--idle class is added when mouse isn\'t moving for several seconds (JS option timeToIdle) */\n.pswp__ui--idle .pswp__top-bar {\n opacity: 0; }\n\n.pswp__ui--idle .pswp__button--arrow--left,\n.pswp__ui--idle .pswp__button--arrow--right {\n opacity: 0; }\n\n/*\n\tpswp__ui--hidden class is added when controls are hidden\n\te.g. when user taps to toggle visibility of controls\n*/\n.pswp__ui--hidden .pswp__top-bar,\n.pswp__ui--hidden .pswp__caption,\n.pswp__ui--hidden .pswp__button--arrow--left,\n.pswp__ui--hidden .pswp__button--arrow--right {\n /* Force paint & create composition layer for controls. */\n opacity: 0.001; }\n\n/* pswp__ui--one-slide class is added when there is just one item in gallery */\n.pswp__ui--one-slide .pswp__button--arrow--left,\n.pswp__ui--one-slide .pswp__button--arrow--right,\n.pswp__ui--one-slide .pswp__counter {\n display: none; }\n\n.pswp__element--disabled {\n display: none !important; }\n\n.pswp--minimal--dark .pswp__top-bar {\n background: none; }\n');var g5={exports:{}};
|
|
116
|
+
*/function vW(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var _W=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=vW(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))gW.call(n,o)&&(r[o]=n[o]);if(hW){i=hW(n);for(var s=0;s<i.length;s++)mW.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},bW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yW=function(){};if("production"!==go.env.NODE_ENV){var wW=bW,FW={},kW=Function.call.bind(Object.prototype.hasOwnProperty);yW=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function xW(e,t,n,i,r){if("production"!==go.env.NODE_ENV)for(var a in e)if(kW(e,a)){var o;try{if("function"!=typeof e[a]){var s=Error((i||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}o=e[a](t,a,i,n,null,wW)}catch(e){o=e}if(!o||o instanceof Error||yW((i||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in FW)){FW[o.message]=!0;var l=r?r():"";yW("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}xW.resetWarningCache=function(){"production"!==go.env.NODE_ENV&&(FW={})};var EW=xW,CW=w.default,SW=_W,DW=bW,PW=EW,AW=Function.call.bind(Object.prototype.hasOwnProperty),TW=function(){};function LW(){return null}"production"!==go.env.NODE_ENV&&(TW=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function IW(){}function MW(){}MW.resetWarningCache=IW;if("production"!==go.env.NODE_ENV){var jW=w.default;pW.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,i="<<anonymous>>",r={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:s(LW),arrayOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,i,r,a+"["+l+"]",DW);if(u instanceof Error)return u}return null}))},element:s((function(t,n,i,r,a){var s=t[n];return e(s)?null:new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,i,r){var a=e[t];return CW.isValidElementType(a)?null:new o("Invalid "+i+" `"+r+"` of type `"+c(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,r,a,s){if(!(t[n]instanceof e)){var l=e.name||i;return new o("Invalid "+a+" `"+s+"` of type `"+((u=t[n]).constructor&&u.constructor.name?u.constructor.name:i)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var u;return null}))},node:s((function(e,t,n,i,r){return u(e[t])?null:new o("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(AW(s,u)){var d=e(s,u,i,r,a+"."+u,DW);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==go.env.NODE_ENV&&TW(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),LW;function t(t,n,i,r,s){for(var l=t[n],u=0;u<e.length;u++)if(a(l,e[u]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===d(t)?String(t):t}));return new o("Invalid "+r+" `"+s+"` of value `"+String(l)+"` supplied to `"+i+"`, expected one of "+c+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==go.env.NODE_ENV&&TW("Invalid argument supplied to oneOfType, expected an instance of array."),LW;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return TW("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),LW}return s((function(t,n,i,r,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,i,r,a,DW))return null;return new o("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var d=e[u];if(d){var f=d(s,u,i,r,a+"."+u,DW);if(f)return f}}return null}))},exact:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var u=SW({},t[n],e);for(var d in u){var f=e[d];if(!f)return new o("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(s,d,i,r,a+"."+d,DW);if(p)return p}return null}))}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e){this.message=e,this.stack=""}function s(e){if("production"!==go.env.NODE_ENV)var n={},r=0;function a(a,s,l,u,c,d,f){if(u=u||i,d=d||l,f!==DW){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==go.env.NODE_ENV&&"undefined"!=typeof console){var h=u+":"+l;!n[h]&&r<3&&(TW("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==s[l]?a?null===s[l]?new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,l,u,c,d)}var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function l(e){return s((function(t,n,i,r,a,s){var l=t[n];return c(l)!==e?new o("Invalid "+r+" `"+a+"` of type `"+d(l)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var i=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!i)return!1;var r,a=i.call(t);if(i!==t.entries){for(;!(r=a.next()).done;)if(!u(r.value))return!1}else for(;!(r=a.next()).done;){var o=r.value;if(o&&!u(o[1]))return!1}return!0;default:return!1}}function c(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function d(e){if(null==e)return""+e;var t=c(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=d(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return o.prototype=Error.prototype,r.checkPropTypes=PW,r.resetWarningCache=PW.resetWarningCache,r.PropTypes=r,r}(jW.isElement,!0)}else pW.exports=function(){function e(e,t,n,i,r,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:MW,resetWarningCache:IW};return n.PropTypes=n,n}();var NW=pW.exports,RW=!1,OW="production"!==go.env.NODE_ENV?NW.oneOfType([NW.number,NW.shape({enter:NW.number,exit:NW.number,appear:NW.number}).isRequired]):null;"production"!==go.env.NODE_ENV&&NW.oneOfType([NW.string,NW.shape({enter:NW.string,exit:NW.string,active:NW.string}),NW.shape({enter:NW.string,enterDone:NW.string,enterActive:NW.string,exit:NW.string,exitDone:NW.string,exitActive:NW.string})]);var zW=m.default.createContext(null),BW="unmounted",GW="exited",qW="entering",UW="entered",HW="exiting",WW=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r,a=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(r=GW,i.appearStatus=qW):r=UW:r=t.unmountOnExit||t.mountOnEnter?BW:GW,i.state={status:r},i.nextCallback=null,i}fW(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===BW?{status:GW}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==qW&&n!==UW&&(t=qW):n!==qW&&n!==UW||(t=HW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===qW?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===GW&&this.setState({status:BW})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,r=this.props.nodeRef?[i]:[b.default.findDOMNode(this),i],a=r[0],o=r[1],s=this.getTimeouts(),l=i?s.appear:s.enter;!e&&!n||RW?this.safeSetState({status:UW},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:qW},(function(){t.props.onEntering(a,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:UW},(function(){t.props.onEntered(a,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:b.default.findDOMNode(this);t&&!RW?(this.props.onExit(i),this.safeSetState({status:HW},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:GW},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:GW},(function(){e.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:b.default.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=r[0],o=r[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===BW)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=cW(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.default.createElement(zW.Provider,{value:null},"function"==typeof n?n(e,i):m.default.cloneElement(m.default.Children.only(n),i))},t}(m.default.Component);function YW(){}WW.contextType=zW,WW.propTypes="production"!==go.env.NODE_ENV?{nodeRef:NW.shape({current:"undefined"==typeof Element?NW.any:function(e,t,n,i,r,a){var o=e[t];return NW.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,i,r,a)}}),children:NW.oneOfType([NW.func.isRequired,NW.element.isRequired]).isRequired,in:NW.bool,mountOnEnter:NW.bool,unmountOnExit:NW.bool,appear:NW.bool,enter:NW.bool,exit:NW.bool,timeout:function(e){var t=OW;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.apply(void 0,[e].concat(i))},addEndListener:NW.func,onEnter:NW.func,onEntering:NW.func,onEntered:NW.func,onExit:NW.func,onExiting:NW.func,onExited:NW.func}:{},WW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:YW,onEntering:YW,onEntered:YW,onExit:YW,onExiting:YW,onExited:YW},WW.UNMOUNTED=BW,WW.EXITED=GW,WW.ENTERING=qW,WW.ENTERED=UW,WW.EXITING=HW;var VW=WW;function KW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JW(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&i.isValidElement(e)?t(e):e}(e)})),n}function QW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ZW(e,t,n){var r=JW(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var u=r[l][i];s[r[l][i]]=n(u)}s[l]=n(l)}for(i=0;i<a.length;i++)s[a[i]]=n(a[i]);return s}(t,r);return Object.keys(a).forEach((function(o){var s=a[o];if(i.isValidElement(s)){var l=o in t,u=o in r,c=t[o],d=i.isValidElement(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&i.isValidElement(c)&&(a[o]=i.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:QW(s,"exit",e),enter:QW(s,"enter",e)})):a[o]=i.cloneElement(s,{in:!1}):a[o]=i.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:QW(s,"exit",e),enter:QW(s,"enter",e)})}})),a}var $W=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},XW=function(e){function t(t,n){var i,r=(i=e.call(this,t,n)||this).handleExited.bind(KW(i));return i.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},i}fW(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,a=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,JW(n.children,(function(e){return i.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:QW(e,"appear",n),enter:QW(e,"enter",n),exit:QW(e,"exit",n)})}))):ZW(e,a,o),firstRender:!1}},n.handleExited=function(e,t){var n=JW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=uW({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=cW(e,["component","childFactory"]),r=this.state.contextValue,a=$W(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?m.default.createElement(zW.Provider,{value:r},a):m.default.createElement(zW.Provider,{value:r},m.default.createElement(t,i,a))},t}(m.default.Component);XW.propTypes="production"!==go.env.NODE_ENV?{component:NW.any,children:NW.node,appear:NW.bool,enter:NW.bool,exit:NW.bool,childFactory:NW.func}:{},XW.defaultProps={component:"div",childFactory:function(e){return e}};var eY=XW,tY={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},nY={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},iY=0,rY=1,aY=2,oY=3,sY=4,lY=function(){};function uY(e){return"number"==typeof e&&!isNaN(e)&&e>0}function cY(e){return Object.keys(e).map((function(t){return e[t]}))}var dY=!("undefined"==typeof window||!window.document||!window.document.createElement);var fY,pY=((fY=function(e,t,n){var i=e[t];return!1===i||uY(i)?null:new Error(n+" expect "+t+" \n to be a valid Number > 0 or equal to false. "+i+" given.")}).isRequired=function(e,t,n){if(void 0===e[t])return new Error("The prop "+t+" is marked as required in \n "+n+", but its value is undefined.");fY(e,t,n)},fY),hY={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e){return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.list.has(e)&&this.list.get(e).forEach((function(n){var r=setTimeout((function(){n.apply(void 0,i)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(r)}))}};function gY(e){var t=e.enter,n=e.exit,i=e.duration,r=void 0===i?750:i,a=e.appendPosition,o=void 0!==a&&a;return function(e){var i,a,s=e.children,l=e.position,u=e.preventExitTransition,c=cW(e,["children","position","preventExitTransition"]),d=o?t+"--"+l:t,f=o?n+"--"+l:n;Array.isArray(r)&&2===r.length?(i=r[0],a=r[1]):i=a=r;return m.default.createElement(VW,uW({},c,{timeout:u?0:{enter:i,exit:a},onEnter:function(e){e.classList.add(d),e.style.animationFillMode="forwards",e.style.animationDuration=.001*i+"s"},onEntered:function(e){e.classList.remove(d),e.style.cssText=""},onExit:u?lY:function(e){e.classList.add(f),e.style.animationFillMode="forwards",e.style.animationDuration=.001*a+"s"}}),s)}}function mY(e){var t,n,i=e.delay,r=e.isRunning,a=e.closeToast,o=e.type,s=e.hide,l=e.className,u=e.style,c=e.controlledProgress,d=e.progress,f=e.rtl,p=uW({},u,{animationDuration:i+"ms",animationPlayState:r?"running":"paused",opacity:s?0:1,transform:c?"scaleX("+d+")":null}),h=WU("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+o,((t={})["Toastify__progress-bar--rtl"]=f,t),l),g=((n={})[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]=c&&d<1?null:a,n);return m.default.createElement("div",uW({className:h,style:p},g))}function vY(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function _Y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}mY.propTypes={delay:pY.isRequired,isRunning:NW.bool.isRequired,closeToast:NW.func.isRequired,rtl:NW.bool.isRequired,type:NW.string,hide:NW.bool,className:NW.oneOfType([NW.string,NW.object]),progress:NW.number,controlledProgress:NW.bool},mY.defaultProps={type:nY.DEFAULT,hide:!1};var bY=dY&&/(msie|trident)/i.test(navigator.userAgent),yY=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={isRunning:!0,preventExitTransition:!1},t.flag={canCloseOnClick:!0,canDrag:!1},t.drag={start:0,x:0,y:0,deltaX:0,removalDistance:0},t.boundingRect=null,t.ref=null,t.pauseToast=function(){t.props.autoClose&&t.setState({isRunning:!1})},t.playToast=function(){t.props.autoClose&&t.setState({isRunning:!0})},t.onDragStart=function(e){t.flag.canCloseOnClick=!0,t.flag.canDrag=!0,t.boundingRect=t.ref.getBoundingClientRect(),t.ref.style.transition="",t.drag.start=t.drag.x=vY(e.nativeEvent),t.drag.removalDistance=t.ref.offsetWidth*(t.props.draggablePercent/100)},t.onDragMove=function(e){t.flag.canDrag&&(t.state.isRunning&&t.pauseToast(),t.drag.x=vY(e),t.drag.deltaX=t.drag.x-t.drag.start,t.drag.y=_Y(e),t.drag.start!==t.drag.x&&(t.flag.canCloseOnClick=!1),t.ref.style.transform="translateX("+t.drag.deltaX+"px)",t.ref.style.opacity=1-Math.abs(t.drag.deltaX/t.drag.removalDistance))},t.onDragEnd=function(e){if(t.flag.canDrag){if(t.flag.canDrag=!1,Math.abs(t.drag.deltaX)>t.drag.removalDistance)return void t.setState({preventExitTransition:!0},t.props.closeToast);t.ref.style.transition="transform 0.2s, opacity 0.2s",t.ref.style.transform="translateX(0)",t.ref.style.opacity=1}},t.onDragTransitionEnd=function(){if(t.boundingRect){var e=t.boundingRect,n=e.top,i=e.bottom,r=e.left,a=e.right;t.props.pauseOnHover&&t.drag.x>=r&&t.drag.x<=a&&t.drag.y>=n&&t.drag.y<=i?t.pauseToast():t.playToast()}},t.onExitTransitionEnd=function(){if(bY)t.props.onExited();else{var e=t.ref.scrollHeight,n=t.ref.style;requestAnimationFrame((function(){n.minHeight="initial",n.height=e+"px",n.transition="all 0.4s ",requestAnimationFrame((function(){n.height=0,n.padding=0,n.margin=0})),setTimeout((function(){return t.props.onExited()}),400)}))}},t}fW(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(e){e.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),e.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var e,t=this,n=this.props,i=n.closeButton,r=n.children,a=n.autoClose,o=n.pauseOnHover,s=n.onClick,l=n.closeOnClick,u=n.type,c=n.hideProgressBar,d=n.closeToast,f=n.transition,p=n.position,h=n.className,g=n.bodyClassName,v=n.progressClassName,_=n.progressStyle,b=n.updateId,y=n.role,w=n.progress,F=n.rtl,k={className:WU("Toastify__toast","Toastify__toast--"+u,(e={},e["Toastify__toast--rtl"]=F,e),h)};a&&o&&(k.onMouseEnter=this.pauseToast,k.onMouseLeave=this.playToast),l&&(k.onClick=function(e){s&&s(e),t.flag.canCloseOnClick&&d()});var x=parseFloat(w)===w;return m.default.createElement(f,{in:this.props.in,appear:!0,onExited:this.onExitTransitionEnd,position:p,preventExitTransition:this.state.preventExitTransition},m.default.createElement("div",uW({onClick:s},k,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onMouseUp:this.onDragTransitionEnd,onTouchEnd:this.onDragTransitionEnd}),m.default.createElement("div",uW({},this.props.in&&{role:y},{className:WU("Toastify__toast-body",g)}),r),i&&i,(a||x)&&m.default.createElement(mY,uW({},b&&!x?{key:"pb-"+b}:{},{rtl:F,delay:a,isRunning:this.state.isRunning,closeToast:d,hide:c,type:u,style:_,className:v,controlledProgress:x,progress:w}))))},t}(i.Component);function wY(e){var t=e.closeToast,n=e.type,i=e.ariaLabel;return m.default.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},"✖︎")}yY.propTypes={closeButton:NW.oneOfType([NW.node,NW.bool]).isRequired,autoClose:pY.isRequired,children:NW.node.isRequired,closeToast:NW.func.isRequired,position:NW.oneOf(cY(tY)).isRequired,pauseOnHover:NW.bool.isRequired,pauseOnFocusLoss:NW.bool.isRequired,closeOnClick:NW.bool.isRequired,transition:NW.func.isRequired,rtl:NW.bool.isRequired,hideProgressBar:NW.bool.isRequired,draggable:NW.bool.isRequired,draggablePercent:NW.number.isRequired,in:NW.bool,onExited:NW.func,onOpen:NW.func,onClose:NW.func,type:NW.oneOf(cY(nY)),className:NW.oneOfType([NW.string,NW.object]),bodyClassName:NW.oneOfType([NW.string,NW.object]),progressClassName:NW.oneOfType([NW.string,NW.object]),progressStyle:NW.object,progress:NW.number,updateId:NW.oneOfType([NW.string,NW.number]),ariaLabel:NW.string,containerId:NW.oneOfType([NW.string,NW.number]),role:NW.string},yY.defaultProps={type:nY.DEFAULT,in:!0,onOpen:lY,onClose:lY,className:null,bodyClassName:null,progressClassName:null,updateId:null},wY.propTypes={closeToast:NW.func,arialLabel:NW.string},wY.defaultProps={ariaLabel:"close"};var FY=gY({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),kY=gY({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0});gY({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),gY({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"});var xY=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={toast:[]},t.toastKey=1,t.collection={},t.isToastActive=function(e){return-1!==t.state.toast.indexOf(e)},t}fW(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;hY.cancelEmit(oY).on(iY,(function(t,n){return e.ref?e.buildToast(t,n):null})).on(rY,(function(t){return e.ref?null==t?e.clear():e.removeToast(t):null})).emit(aY,this)},n.componentWillUnmount=function(){hY.emit(oY,this)},n.removeToast=function(e){this.setState({toast:this.state.toast.filter((function(t){return t!==e}))},this.dispatchChange)},n.dispatchChange=function(){hY.emit(sY,this.state.toast.length,this.props.containerId)},n.makeCloseButton=function(e,t,n){var r=this,a=this.props.closeButton;return i.isValidElement(e)||!1===e?a=e:!0===e&&(a=this.props.closeButton&&"boolean"!=typeof this.props.closeButton?this.props.closeButton:m.default.createElement(wY,null)),!1!==a&&i.cloneElement(a,{closeToast:function(){return r.removeToast(t)},type:n})},n.getAutoCloseDelay=function(e){return!1===e||uY(e)?e:this.props.autoClose},n.canBeRendered=function(e){return i.isValidElement(e)||"string"==typeof e||"number"==typeof e||"function"==typeof e},n.parseClassName=function(e){return"string"==typeof e?e:null!==e&&"object"==typeof e&&"toString"in e?e.toString():null},n.belongToContainer=function(e){return e.containerId===this.props.containerId},n.buildToast=function(e,t){var n=this,r=t.delay,a=cW(t,["delay"]);if(!this.canBeRendered(e))throw new Error("The element you provided cannot be rendered. You provided an element of type "+typeof e);var o=a.toastId,s=a.updateId;if(!(this.props.enableMultiContainer&&!this.belongToContainer(a)||this.isToastActive(o)&&null==s)){var l=function(){return n.removeToast(o)},u={id:o,key:a.key||this.toastKey++,type:a.type,closeToast:l,updateId:a.updateId,rtl:this.props.rtl,position:a.position||this.props.position,transition:a.transition||this.props.transition,className:this.parseClassName(a.className||this.props.toastClassName),bodyClassName:this.parseClassName(a.bodyClassName||this.props.bodyClassName),onClick:a.onClick||this.props.onClick,closeButton:this.makeCloseButton(a.closeButton,o,a.type),pauseOnHover:"boolean"==typeof a.pauseOnHover?a.pauseOnHover:this.props.pauseOnHover,pauseOnFocusLoss:"boolean"==typeof a.pauseOnFocusLoss?a.pauseOnFocusLoss:this.props.pauseOnFocusLoss,draggable:"boolean"==typeof a.draggable?a.draggable:this.props.draggable,draggablePercent:"number"!=typeof a.draggablePercent||isNaN(a.draggablePercent)?this.props.draggablePercent:a.draggablePercent,closeOnClick:"boolean"==typeof a.closeOnClick?a.closeOnClick:this.props.closeOnClick,progressClassName:this.parseClassName(a.progressClassName||this.props.progressClassName),progressStyle:this.props.progressStyle,autoClose:this.getAutoCloseDelay(a.autoClose),hideProgressBar:"boolean"==typeof a.hideProgressBar?a.hideProgressBar:this.props.hideProgressBar,progress:parseFloat(a.progress),role:"string"==typeof a.role?a.role:this.props.role};"function"==typeof a.onOpen&&(u.onOpen=a.onOpen),"function"==typeof a.onClose&&(u.onClose=a.onClose),i.isValidElement(e)&&"string"!=typeof e.type&&"number"!=typeof e.type?e=i.cloneElement(e,{closeToast:l}):"function"==typeof e&&(e=e({closeToast:l})),uY(r)?setTimeout((function(){n.appendToast(u,e,a.staleToastId)}),r):this.appendToast(u,e,a.staleToastId)}},n.appendToast=function(e,t,n){var i,r=e.id,a=e.updateId;this.collection=uW({},this.collection,((i={})[r]={options:e,content:t,position:e.position},i)),this.setState({toast:(a?[].concat(this.state.toast):[].concat(this.state.toast,[r])).filter((function(e){return e!==n}))},this.dispatchChange)},n.clear=function(){this.setState({toast:[]})},n.renderToast=function(){var e=this,t={},n=this.props,i=n.className,r=n.style;return(n.newestOnTop?Object.keys(this.collection).reverse():Object.keys(this.collection)).forEach((function(n){var i=e.collection[n],r=i.position,a=i.options,o=i.content;t[r]||(t[r]=[]),-1!==e.state.toast.indexOf(a.id)?t[r].push(m.default.createElement(yY,uW({},a,{isDocumentHidden:e.state.isDocumentHidden,key:"toast-"+a.key}),o)):(t[r].push(null),delete e.collection[n])})),Object.keys(t).map((function(n){var a,o=1===t[n].length&&null===t[n][0],s={className:WU("Toastify__toast-container","Toastify__toast-container--"+n,(a={},a["Toastify__toast-container--rtl"]=e.props.rtl,a),e.parseClassName(i)),style:o?uW({},r,{pointerEvents:"none"}):uW({},r)};return m.default.createElement(eY,uW({},s,{key:"container-"+n}),t[n])}))},n.render=function(){var e=this;return m.default.createElement("div",{ref:function(t){return e.ref=t},className:"Toastify"},this.renderToast())},t}(i.Component);xY.propTypes={position:NW.oneOf(cY(tY)),autoClose:pY,closeButton:NW.oneOfType([NW.node,NW.bool]),hideProgressBar:NW.bool,pauseOnHover:NW.bool,closeOnClick:NW.bool,newestOnTop:NW.bool,className:NW.oneOfType([NW.string,NW.object]),style:NW.object,toastClassName:NW.oneOfType([NW.string,NW.object]),bodyClassName:NW.oneOfType([NW.string,NW.object]),progressClassName:NW.oneOfType([NW.string,NW.object]),progressStyle:NW.object,transition:NW.func,rtl:NW.bool,draggable:NW.bool,draggablePercent:NW.number,pauseOnFocusLoss:NW.bool,enableMultiContainer:NW.bool,containerId:NW.oneOfType([NW.string,NW.number]),role:NW.string,onClick:NW.func},xY.defaultProps={position:tY.TOP_RIGHT,transition:FY,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:m.default.createElement(wY,null),pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,className:null,style:null,toastClassName:null,bodyClassName:null,progressClassName:null,progressStyle:null,role:"alert"};var EY=new Map,CY=null,SY=null,DY={},PY=[],AY=!1;function TY(){return EY.size>0}function LY(e,t){var n=function(e){return TY()?e?EY.get(e):EY.get(CY):null}(t.containerId);if(!n)return null;var i=n.collection[e];return void 0===i?null:i}function IY(e,t){return uW({},e,{type:t,toastId:jY(e)})}function MY(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function jY(e){return e&&("string"==typeof e.toastId||"number"==typeof e.toastId&&!isNaN(e.toastId))?e.toastId:MY()}function NY(e,t){return TY()?hY.emit(iY,e,t):(PY.push({action:iY,content:e,options:t}),AY&&dY&&(AY=!1,SY=document.createElement("div"),document.body.appendChild(SY),s.render(m.default.createElement(xY,DY),SY))),t.toastId}var RY=function(e,t){return NY(e,IY(t,t&&t.type||nY.DEFAULT))},OY=function(e){nY[e]!==nY.DEFAULT&&(RY[nY[e].toLowerCase()]=function(t,n){return NY(t,IY(n,n&&n.type||nY[e]))})};for(var zY in nY)OY(zY);function BY(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}RY.warn=RY.warning,RY.dismiss=function(e){return void 0===e&&(e=null),TY()&&hY.emit(rY,e)},RY.isActive=function(e){var t=!1;return EY.size>0&&EY.forEach((function(n){n.isToastActive(e)&&(t=!0)})),t},RY.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=LY(e,t);if(n){var i=n.options,r=n.content,a=uW({},i,{},t,{toastId:t.toastId||e});t.toastId&&t.toastId!==e?a.staleToastId=e:a.updateId=MY();var o=void 0!==a.render?a.render:r;delete a.render,NY(o,a)}}),0)},RY.done=function(e){RY.update(e,{progress:1})},RY.onChange=function(e){"function"==typeof e&&hY.on(sY,e)},RY.configure=function(e){AY=!0,DY=e},RY.POSITION=tY,RY.TYPE=nY,hY.on(aY,(function(e){CY=e.props.containerId||e,EY.set(CY,e),PY.forEach((function(e){hY.emit(e.action,e.content,e.options)})),PY=[]})).on(oY,(function(e){e?EY.delete(e.props.containerId||e):EY.clear(),0===EY.size&&hY.off(iY).off(rY),dY&&SY&&document.body.removeChild(SY)}));BY(".Toastify__toast-container{z-index:9999;-webkit-transform:translateZ(9999px);position:fixed;padding:4px;width:320px;box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;margin-left:-160px}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;margin-left:-160px}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:1px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:flex;justify-content:space-between;max-height:800px;overflow:hidden;font-family:sans-serif;cursor:pointer;direction:ltr}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--default{background:#fff;color:#aaa}.Toastify__toast--info{background:#3498db}.Toastify__toast--success{background:#07bc0c}.Toastify__toast--warning{background:#f1c40f}.Toastify__toast--error{background:#e74c3c}.Toastify__toast-body{margin:auto 0;flex:1}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0}}.Toastify__close-button{color:#fff;font-weight:700;font-size:14px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start}.Toastify__close-button--default{color:#000;opacity:.3}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@-webkit-keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:9999;opacity:.7;background-color:hsla(0,0%,100%,.7);transform-origin:left}.Toastify__progress-bar--animated{-webkit-animation:Toastify__trackProgress linear 1 forwards;animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__progress-bar--default{background:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55)}@-webkit-keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@-webkit-keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@-webkit-keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@-webkit-keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{-webkit-animation-name:Toastify__bounceInLeft;animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{-webkit-animation-name:Toastify__bounceInRight;animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{-webkit-animation-name:Toastify__bounceInDown;animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{-webkit-animation-name:Toastify__bounceInUp;animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{-webkit-animation-name:Toastify__bounceOutLeft;animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{-webkit-animation-name:Toastify__bounceOutRight;animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{-webkit-animation-name:Toastify__bounceOutUp;animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{-webkit-animation-name:Toastify__bounceOutDown;animation-name:Toastify__bounceOutDown}@-webkit-keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@-webkit-keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{-webkit-animation-name:Toastify__zoomIn;animation-name:Toastify__zoomIn}.Toastify__zoom-exit{-webkit-animation-name:Toastify__zoomOut;animation-name:Toastify__zoomOut}@-webkit-keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@-webkit-keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{-webkit-animation-name:Toastify__flipIn;animation-name:Toastify__flipIn}.Toastify__flip-exit{-webkit-animation-name:Toastify__flipOut;animation-name:Toastify__flipOut}@-webkit-keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@-webkit-keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@-webkit-keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@-webkit-keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{-webkit-animation-name:Toastify__slideInLeft;animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{-webkit-animation-name:Toastify__slideInRight;animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{-webkit-animation-name:Toastify__slideInDown;animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{-webkit-animation-name:Toastify__slideInUp;animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{-webkit-animation-name:Toastify__slideOutLeft;animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{-webkit-animation-name:Toastify__slideOutRight;animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{-webkit-animation-name:Toastify__slideOutUp;animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{-webkit-animation-name:Toastify__slideOutDown;animation-name:Toastify__slideOutDown}");var GY=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new qY(e,this.selector,this.caught))},e}(),qY=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return wa(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var i=new OH(this,void 0,void 0);this.add(i),HH(this,n,void 0,void 0,i)}},t}(RH);function UY(e,t){return void 0===t&&(t=LH),function(n){return n.lift(new HY(e,t))}}var HY=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new WY(e,this.dueTime,this.scheduler))},e}(),WY=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return wa(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(YY,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(rH);function YY(e){e.debouncedNext()}var VY=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r},e}();function KY(){return new hH}function JY(e,t){return"function"==typeof t?function(n){return n.pipe(JY((function(n,i){return YH(e(n,i)).pipe(MH((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new QY(e))}}var QY=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new ZY(e,this.project))},e}(),ZY=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return wa(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new OH(this,void 0,void 0);this.destination.add(r),this.innerSubscription=HH(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(RH);var $Y=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new XY(e,this.nextOrObserver,this.error,this.complete))},e}(),XY=function(e){function t(t,n,i,r){var a=e.call(this,t)||this;return a._tapNext=sH,a._tapError=sH,a._tapComplete=sH,a._tapError=i||sH,a._tapComplete=r||sH,YU(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||sH,a._tapError=n.error||sH,a._tapComplete=n.complete||sH),a}return wa(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(rH),eV=function(e,t){return eV=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},eV(e,t)};var tV=function(){return tV=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},tV.apply(this,arguments)};function nV(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function iV(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))}function rV(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function aV(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}function oV(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var sV,lV,uV,cV=a.createGlobalStyle(sV||(sV=oV(["\n // focus style should be visible only when keyboard navigation is activated\n // office ui fabric adds 'ms-Fabric--isFocusVisible' when the user presses keyboard keys, and removes it when the user clicks a mouse button\n\n .ms-Fabric--isFocusVisible .lt-reach {\n a:not(.ms-Button):focus,\n div[data-is-focusable]:not(.ms-PickerPersona-container):focus {\n box-shadow: none;\n outline: 2px solid ",";\n outline-offset: 2px;\n }\n\n div[data-is-focusable][role=\"listbox\"]:focus,\n div[data-is-focusable].ms-Dropdown:focus {\n &::after {\n border: 0;\n }\n }\n\n a[data-rounded-outline='true']:focus {\n border-radius: 20px;\n outline-offset: 4px;\n }\n\n button:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 2px;\n inset: 0;\n }\n }\n\n button[data-rounded-outline='50']:focus {\n &::after {\n border-radius: 50%;\n outline-offset: 4px;\n }\n }\n\n button[data-rounded-outline='true']:focus {\n &::after {\n border-radius: 20px;\n outline-offset: 4px;\n }\n }\n\n button[data-toggle-button='true']:focus {\n &::after {\n border: none;\n border-radius: 12px;\n outline-offset: 3px;\n }\n }\n\n a[data-clickable-overlay]:focus {\n outline: 0 !important;\n\n &::before {\n outline: 2px solid ",";\n outline-offset: 5px;\n }\n }\n\n input[type='checkbox']:focus + label::before {\n outline: 2px solid ",";\n }\n\n div.ms-Dropdown-item input[type='checkbox']:focus + label::before,\n button.ms-Dropdown-item:focus::after {\n outline-offset: -2px;\n }\n\n div.ms-ChoiceField-wrapper.is-inFocus {\n &::after {\n outline: 2px solid ",";\n border: 0;\n }\n }\n\n .ms-SearchBox-clearButton button:focus::after {\n outline-offset: -4px;\n }\n\n .ms-PickerPersona-container:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 0;\n }\n }\n }\n\n .ms-Fabric--isFocusVisible .lt-reach-contextual-menu {\n button:focus {\n &::after {\n outline-color: ",";\n outline-width: 2px;\n outline-offset: -2px;\n }\n }\n }\n"],["\n // focus style should be visible only when keyboard navigation is activated\n // office ui fabric adds 'ms-Fabric--isFocusVisible' when the user presses keyboard keys, and removes it when the user clicks a mouse button\n\n .ms-Fabric--isFocusVisible .lt-reach {\n a:not(.ms-Button):focus,\n div[data-is-focusable]:not(.ms-PickerPersona-container):focus {\n box-shadow: none;\n outline: 2px solid ",";\n outline-offset: 2px;\n }\n\n div[data-is-focusable][role=\"listbox\"]:focus,\n div[data-is-focusable].ms-Dropdown:focus {\n &::after {\n border: 0;\n }\n }\n\n a[data-rounded-outline='true']:focus {\n border-radius: 20px;\n outline-offset: 4px;\n }\n\n button:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 2px;\n inset: 0;\n }\n }\n\n button[data-rounded-outline='50']:focus {\n &::after {\n border-radius: 50%;\n outline-offset: 4px;\n }\n }\n\n button[data-rounded-outline='true']:focus {\n &::after {\n border-radius: 20px;\n outline-offset: 4px;\n }\n }\n\n button[data-toggle-button='true']:focus {\n &::after {\n border: none;\n border-radius: 12px;\n outline-offset: 3px;\n }\n }\n\n a[data-clickable-overlay]:focus {\n outline: 0 !important;\n\n &::before {\n outline: 2px solid ",";\n outline-offset: 5px;\n }\n }\n\n input[type='checkbox']:focus + label::before {\n outline: 2px solid ",";\n }\n\n div.ms-Dropdown-item input[type='checkbox']:focus + label::before,\n button.ms-Dropdown-item:focus::after {\n outline-offset: -2px;\n }\n\n div.ms-ChoiceField-wrapper.is-inFocus {\n &::after {\n outline: 2px solid ",";\n border: 0;\n }\n }\n\n .ms-SearchBox-clearButton button:focus::after {\n outline-offset: -4px;\n }\n\n .ms-PickerPersona-container:focus {\n &::after {\n outline: 2px solid ",";\n outline-offset: 0;\n }\n }\n }\n\n .ms-Fabric--isFocusVisible .lt-reach-contextual-menu {\n button:focus {\n &::after {\n outline-color: ",";\n outline-width: 2px;\n outline-offset: -2px;\n }\n }\n }\n"])),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent}),(function(e){return e.theme.palette.accent})),dV=function(e){return"\n .ms-Fabric--isFocusVisible .lt-reach {\n "+e+"\n }\n"},fV=a.createGlobalStyle(lV||(lV=oV(["\n .lt-reach {\n color: ",";\n\n a {\n text-decoration: none;\n }\n\n *:focus {\n outline: none;\n }\n\n input[type='button'],\n input[type='reset'],\n input[type='submit'],\n button {\n min-width: auto;\n }\n\n h1,\n h2,\n h3,\n div,\n span,\n input,\n textarea,\n .ms-font-m,\n div.ms-Dialog,\n .ms-Label,\n .ms-Link {\n font-family: 'Roboto', sans-serif !important;\n }\n\n .ms-Fabric {\n -webkit-font-smoothing: initial !important;\n }\n\n .ms-Button--icon.ms-Button {\n\n &:hover {\n background-color: transparent;\n }\n\n &.is-expanded {\n background-color: transparent;\n }\n }\n\n /***\n UI Fabric overrides\n */\n .ms-Dialog-main {\n width: inherit;\n .ms-Dialog-button--close:hover {\n background-color: transparent;\n }\n }\n\n .ms-Dialog-main {\n width: auto !important;\n max-width: 100% !important;\n margin: 0 10px;\n }\n\n .ms-Callout {\n // max-width 100% overflows on small screens where the dialog contents\n // occupy the whole 100%\n max-width: 90% !important;\n }\n\n }\n \n .lt-reach-picker-callout .ms-PeoplePicker-Persona {\n width: auto;\n }\n\n // the pull to refresh container is placed ABOVE our element, therefore we can not use a class from our component\n // however since \"app\" is our outer-most class it should be fine to use this\n .app {\n .ptr--ptr {\n box-shadow: none;\n }\n }\n\n .lt-reach-languageselector-menu-item {\n &.selected {\n background-color: #c0c0c0;\n span {\n font-weight: bold;\n }\n }\n\n button i {\n color: inherit;\n }\n }\n\n .browser-name-safari,\n .browser-name-ios,\n .browser-name-ios-webview {\n .lt-reach-header-actions {\n height: 50px;\n }\n }\n"],["\n .lt-reach {\n color: ",";\n\n a {\n text-decoration: none;\n }\n\n *:focus {\n outline: none;\n }\n\n input[type='button'],\n input[type='reset'],\n input[type='submit'],\n button {\n min-width: auto;\n }\n\n h1,\n h2,\n h3,\n div,\n span,\n input,\n textarea,\n .ms-font-m,\n div.ms-Dialog,\n .ms-Label,\n .ms-Link {\n font-family: 'Roboto', sans-serif !important;\n }\n\n .ms-Fabric {\n -webkit-font-smoothing: initial !important;\n }\n\n .ms-Button--icon.ms-Button {\n\n &:hover {\n background-color: transparent;\n }\n\n &.is-expanded {\n background-color: transparent;\n }\n }\n\n /***\n UI Fabric overrides\n */\n .ms-Dialog-main {\n width: inherit;\n .ms-Dialog-button--close:hover {\n background-color: transparent;\n }\n }\n\n .ms-Dialog-main {\n width: auto !important;\n max-width: 100% !important;\n margin: 0 10px;\n }\n\n .ms-Callout {\n // max-width 100% overflows on small screens where the dialog contents\n // occupy the whole 100%\n max-width: 90% !important;\n }\n\n }\n \n .lt-reach-picker-callout .ms-PeoplePicker-Persona {\n width: auto;\n }\n\n // the pull to refresh container is placed ABOVE our element, therefore we can not use a class from our component\n // however since \"app\" is our outer-most class it should be fine to use this\n .app {\n .ptr--ptr {\n box-shadow: none;\n }\n }\n\n .lt-reach-languageselector-menu-item {\n &.selected {\n background-color: #c0c0c0;\n span {\n font-weight: bold;\n }\n }\n\n button i {\n color: inherit;\n }\n }\n\n .browser-name-safari,\n .browser-name-ios,\n .browser-name-ios-webview {\n .lt-reach-header-actions {\n height: 50px;\n }\n }\n"])),(function(e){return e.theme.textColors.default})),pV=WU(["browser-version-"+lm,"browser-name-"+sm],"lt-reach");!function(e){e[e.asc=1]="asc",e[e.desc=-1]="desc"}(uV||(uV={}));var hV="Language",gV="Locale";function mV(){var e=vE();return i.useMemo((function(){return{getLocalLanguage:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){switch(t.label){case 0:return[4,e.getString(hV)];case 1:return[2,Zw(t.sent())]}}))}))},saveLanguageToLocalStorage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.setString(hV,t)];case 1:return n.sent(),[2]}}))}))},saveLocaleToLocalStorage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.setString(gV,t)];case 1:return n.sent(),[2]}}))}))},getLocaleFromLocalStorage:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.getString(gV)]}))}))}}}),[e])}var vV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_V=function(e){return e&&e.Math==Math&&e},bV=_V("object"==typeof globalThis&&globalThis)||_V("object"==typeof window&&window)||_V("object"==typeof self&&self)||_V("object"==typeof vV&&vV)||Function("return this")(),yV={},wV=function(e){try{return!!e()}catch(e){return!0}},FV=!wV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),kV={},xV={}.propertyIsEnumerable,EV=Object.getOwnPropertyDescriptor,CV=EV&&!xV.call({1:2},1);kV.f=CV?function(e){var t=EV(this,e);return!!t&&t.enumerable}:xV;var SV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DV={}.toString,PV=function(e){return DV.call(e).slice(8,-1)},AV=PV,TV="".split,LV=wV((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==AV(e)?TV.call(e,""):Object(e)}:Object,IV=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},MV=LV,jV=IV,NV=function(e){return MV(jV(e))},RV=function(e){return"object"==typeof e?null!==e:"function"==typeof e},OV=RV,zV=function(e,t){if(!OV(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!OV(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!OV(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!OV(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},BV={}.hasOwnProperty,GV=function(e,t){return BV.call(e,t)},qV=RV,UV=bV.document,HV=qV(UV)&&qV(UV.createElement),WV=function(e){return HV?UV.createElement(e):{}},YV=WV,VV=!FV&&!wV((function(){return 7!=Object.defineProperty(YV("div"),"a",{get:function(){return 7}}).a})),KV=FV,JV=kV,QV=SV,ZV=NV,$V=zV,XV=GV,eK=VV,tK=Object.getOwnPropertyDescriptor;yV.f=KV?tK:function(e,t){if(e=ZV(e),t=$V(t,!0),eK)try{return tK(e,t)}catch(e){}if(XV(e,t))return QV(!JV.f.call(e,t),e[t])};var nK={},iK=RV,rK=function(e){if(!iK(e))throw TypeError(String(e)+" is not an object");return e},aK=FV,oK=VV,sK=rK,lK=zV,uK=Object.defineProperty;nK.f=aK?uK:function(e,t,n){if(sK(e),t=lK(t,!0),sK(n),oK)try{return uK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var cK=nK,dK=SV,fK=FV?function(e,t,n){return cK.f(e,t,dK(1,n))}:function(e,t,n){return e[t]=n,e},pK={exports:{}},hK=bV,gK=fK,mK=function(e,t){try{gK(hK,e,t)}catch(n){hK[e]=t}return t},vK=mK,_K="__core-js_shared__",bK=bV[_K]||vK(_K,{}),yK=bK,wK=Function.toString;"function"!=typeof yK.inspectSource&&(yK.inspectSource=function(e){return wK.call(e)});var FK=yK.inspectSource,kK=FK,xK=bV.WeakMap,EK="function"==typeof xK&&/native code/.test(kK(xK)),CK={exports:{}},SK=bK;(CK.exports=function(e,t){return SK[e]||(SK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var DK,PK,AK,TK=0,LK=Math.random(),IK=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++TK+LK).toString(36)},MK=CK.exports,jK=IK,NK=MK("keys"),RK=function(e){return NK[e]||(NK[e]=jK(e))},OK={},zK=EK,BK=RV,GK=fK,qK=GV,UK=RK,HK=OK,WK=bV.WeakMap;if(zK){var YK=new WK,VK=YK.get,KK=YK.has,JK=YK.set;DK=function(e,t){return JK.call(YK,e,t),t},PK=function(e){return VK.call(YK,e)||{}},AK=function(e){return KK.call(YK,e)}}else{var QK=UK("state");HK[QK]=!0,DK=function(e,t){return GK(e,QK,t),t},PK=function(e){return qK(e,QK)?e[QK]:{}},AK=function(e){return qK(e,QK)}}var ZK={set:DK,get:PK,has:AK,enforce:function(e){return AK(e)?PK(e):DK(e,{})},getterFor:function(e){return function(t){var n;if(!BK(t)||(n=PK(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},$K=bV,XK=fK,eJ=GV,tJ=mK,nJ=FK,iJ=ZK.get,rJ=ZK.enforce,aJ=String(String).split("String");(pK.exports=function(e,t,n,i){var r=!!i&&!!i.unsafe,a=!!i&&!!i.enumerable,o=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||eJ(n,"name")||XK(n,"name",t),rJ(n).source=aJ.join("string"==typeof t?t:"")),e!==$K?(r?!o&&e[t]&&(a=!0):delete e[t],a?e[t]=n:XK(e,t,n)):a?e[t]=n:tJ(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&iJ(this).source||nJ(this)}));var oJ=bV,sJ=bV,lJ=function(e){return"function"==typeof e?e:void 0},uJ=function(e,t){return arguments.length<2?lJ(oJ[e])||lJ(sJ[e]):oJ[e]&&oJ[e][t]||sJ[e]&&sJ[e][t]},cJ={},dJ=Math.ceil,fJ=Math.floor,pJ=function(e){return isNaN(e=+e)?0:(e>0?fJ:dJ)(e)},hJ=pJ,gJ=Math.min,mJ=function(e){return e>0?gJ(hJ(e),9007199254740991):0},vJ=pJ,_J=Math.max,bJ=Math.min,yJ=NV,wJ=mJ,FJ=function(e,t){var n=vJ(e);return n<0?_J(n+t,0):bJ(n,t)},kJ=function(e){return function(t,n,i){var r,a=yJ(t),o=wJ(a.length),s=FJ(i,o);if(e&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},xJ={includes:kJ(!0),indexOf:kJ(!1)},EJ=GV,CJ=NV,SJ=xJ.indexOf,DJ=OK,PJ=function(e,t){var n,i=CJ(e),r=0,a=[];for(n in i)!EJ(DJ,n)&&EJ(i,n)&&a.push(n);for(;t.length>r;)EJ(i,n=t[r++])&&(~SJ(a,n)||a.push(n));return a},AJ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],TJ=PJ,LJ=AJ.concat("length","prototype");cJ.f=Object.getOwnPropertyNames||function(e){return TJ(e,LJ)};var IJ={};IJ.f=Object.getOwnPropertySymbols;var MJ=cJ,jJ=IJ,NJ=rK,RJ=uJ("Reflect","ownKeys")||function(e){var t=MJ.f(NJ(e)),n=jJ.f;return n?t.concat(n(e)):t},OJ=GV,zJ=RJ,BJ=yV,GJ=nK,qJ=wV,UJ=/#|\.prototype\./,HJ=function(e,t){var n=YJ[WJ(e)];return n==KJ||n!=VJ&&("function"==typeof t?qJ(t):!!t)},WJ=HJ.normalize=function(e){return String(e).replace(UJ,".").toLowerCase()},YJ=HJ.data={},VJ=HJ.NATIVE="N",KJ=HJ.POLYFILL="P",JJ=HJ,QJ=bV,ZJ=yV.f,$J=fK,XJ=pK.exports,eQ=mK,tQ=function(e,t){for(var n=zJ(t),i=GJ.f,r=BJ.f,a=0;a<n.length;a++){var o=n[a];OJ(e,o)||i(e,o,r(t,o))}},nQ=JJ,iQ=function(e,t){var n,i,r,a,o,s=e.target,l=e.global,u=e.stat;if(n=l?QJ:u?QJ[s]||eQ(s,{}):(QJ[s]||{}).prototype)for(i in t){if(a=t[i],r=e.noTargetGet?(o=ZJ(n,i))&&o.value:n[i],!nQ(l?i:s+(u?".":"#")+i,e.forced)&&void 0!==r){if(typeof a==typeof r)continue;tQ(a,r)}(e.sham||r&&r.sham)&&$J(a,"sham",!0),XJ(n,i,a,e)}},rQ=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},aQ=IV,oQ=function(e){return Object(aQ(e))},sQ=rQ,lQ=oQ,uQ=LV,cQ=mJ,dQ=function(e){return function(t,n,i,r){sQ(n);var a=lQ(t),o=uQ(a),s=cQ(a.length),l=e?s-1:0,u=e?-1:1;if(i<2)for(;;){if(l in o){r=o[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in o&&(r=n(r,o[l],l,a));return r}},fQ={left:dQ(!1),right:dQ(!0)},pQ=wV,hQ=function(e,t){var n=[][e];return!!n&&pQ((function(){n.call(null,t||function(){throw 1},1)}))},gQ=FV,mQ=wV,vQ=GV,_Q=Object.defineProperty,bQ={},yQ=function(e){throw e},wQ=iQ,FQ=fQ.left,kQ=function(e,t){if(vQ(bQ,e))return bQ[e];t||(t={});var n=[][e],i=!!vQ(t,"ACCESSORS")&&t.ACCESSORS,r=vQ(t,0)?t[0]:yQ,a=vQ(t,1)?t[1]:void 0;return bQ[e]=!!n&&!mQ((function(){if(i&&!gQ)return!0;var e={length:-1};i?_Q(e,1,{enumerable:!0,get:yQ}):e[1]=1,n.call(e,r,a)}))},xQ=hQ("reduce"),EQ=kQ("reduce",{1:0});wQ({target:"Array",proto:!0,forced:!xQ||!EQ},{reduce:function(e){return FQ(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var CQ=bV.Promise,SQ=pK.exports,DQ=wV,PQ=!!Object.getOwnPropertySymbols&&!DQ((function(){return!String(Symbol())})),AQ=PQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,TQ=bV,LQ=CK.exports,IQ=GV,MQ=IK,jQ=PQ,NQ=AQ,RQ=LQ("wks"),OQ=TQ.Symbol,zQ=NQ?OQ:OQ&&OQ.withoutSetter||MQ,BQ=function(e){return IQ(RQ,e)||(jQ&&IQ(OQ,e)?RQ[e]=OQ[e]:RQ[e]=zQ("Symbol."+e)),RQ[e]},GQ=nK.f,qQ=GV,UQ=BQ("toStringTag"),HQ=function(e,t,n){e&&!qQ(e=n?e:e.prototype,UQ)&&GQ(e,UQ,{configurable:!0,value:t})},WQ=uJ,YQ=nK,VQ=FV,KQ=BQ("species"),JQ={exports:{}},QQ={},ZQ=QQ,$Q=BQ("iterator"),XQ=Array.prototype,eZ=rQ,tZ=function(e,t,n){if(eZ(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},nZ={};nZ[BQ("toStringTag")]="z";var iZ="[object z]"===String(nZ),rZ=PV,aZ=BQ("toStringTag"),oZ="Arguments"==rZ(function(){return arguments}()),sZ=iZ?rZ:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),aZ))?n:oZ?rZ(t):"Object"==(i=rZ(t))&&"function"==typeof t.callee?"Arguments":i},lZ=sZ,uZ=QQ,cZ=BQ("iterator"),dZ=rK,fZ=rK,pZ=function(e){return void 0!==e&&(ZQ.Array===e||XQ[$Q]===e)},hZ=mJ,gZ=tZ,mZ=function(e){if(null!=e)return e[cZ]||e["@@iterator"]||uZ[lZ(e)]},vZ=function(e,t,n,i){try{return i?t(dZ(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&dZ(r.call(e)),t}},_Z=function(e,t){this.stopped=e,this.result=t},bZ=JQ.exports=function(e,t,n,i,r){var a,o,s,l,u,c,d,f=gZ(t,n,i?2:1);if(r)a=e;else{if("function"!=typeof(o=mZ(e)))throw TypeError("Target is not iterable");if(pZ(o)){for(s=0,l=hZ(e.length);l>s;s++)if((u=i?f(fZ(d=e[s])[0],d[1]):f(e[s]))&&u instanceof _Z)return u;return new _Z(!1)}a=o.call(e)}for(c=a.next;!(d=c.call(a)).done;)if("object"==typeof(u=vZ(a,f,d.value,i))&&u&&u instanceof _Z)return u;return new _Z(!1)};bZ.stop=function(e){return new _Z(!0,e)};var yZ=BQ("iterator"),wZ=!1;try{var FZ=0,kZ={next:function(){return{done:!!FZ++}},return:function(){wZ=!0}};kZ[yZ]=function(){return this},Array.from(kZ,(function(){throw 2}))}catch(e){}var xZ,EZ,CZ,SZ=rK,DZ=rQ,PZ=BQ("species"),AZ=function(e,t){var n,i=SZ(e).constructor;return void 0===i||null==(n=SZ(i)[PZ])?t:DZ(n)},TZ=uJ("document","documentElement"),LZ=uJ("navigator","userAgent")||"",IZ=/(iphone|ipod|ipad).*applewebkit/i.test(LZ),MZ=bV,jZ=wV,NZ=PV,RZ=tZ,OZ=TZ,zZ=WV,BZ=IZ,GZ=MZ.location,qZ=MZ.setImmediate,UZ=MZ.clearImmediate,HZ=MZ.process,WZ=MZ.MessageChannel,YZ=MZ.Dispatch,VZ=0,KZ={},JZ="onreadystatechange",QZ=function(e){if(KZ.hasOwnProperty(e)){var t=KZ[e];delete KZ[e],t()}},ZZ=function(e){return function(){QZ(e)}},$Z=function(e){QZ(e.data)},XZ=function(e){MZ.postMessage(e+"",GZ.protocol+"//"+GZ.host)};qZ&&UZ||(qZ=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return KZ[++VZ]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},xZ(VZ),VZ},UZ=function(e){delete KZ[e]},"process"==NZ(HZ)?xZ=function(e){HZ.nextTick(ZZ(e))}:YZ&&YZ.now?xZ=function(e){YZ.now(ZZ(e))}:WZ&&!BZ?(CZ=(EZ=new WZ).port2,EZ.port1.onmessage=$Z,xZ=RZ(CZ.postMessage,CZ,1)):!MZ.addEventListener||"function"!=typeof postMessage||MZ.importScripts||jZ(XZ)||"file:"===GZ.protocol?xZ=JZ in zZ("script")?function(e){OZ.appendChild(zZ("script")).onreadystatechange=function(){OZ.removeChild(this),QZ(e)}}:function(e){setTimeout(ZZ(e),0)}:(xZ=XZ,MZ.addEventListener("message",$Z,!1)));var e$,t$,n$,i$,r$,a$,o$,s$,l$={set:qZ,clear:UZ},u$=bV,c$=yV.f,d$=PV,f$=l$.set,p$=IZ,h$=u$.MutationObserver||u$.WebKitMutationObserver,g$=u$.process,m$=u$.Promise,v$="process"==d$(g$),_$=c$(u$,"queueMicrotask"),b$=_$&&_$.value;b$||(e$=function(){var e,t;for(v$&&(e=g$.domain)&&e.exit();t$;){t=t$.fn,t$=t$.next;try{t()}catch(e){throw t$?i$():n$=void 0,e}}n$=void 0,e&&e.enter()},v$?i$=function(){g$.nextTick(e$)}:h$&&!p$?(r$=!0,a$=document.createTextNode(""),new h$(e$).observe(a$,{characterData:!0}),i$=function(){a$.data=r$=!r$}):m$&&m$.resolve?(o$=m$.resolve(void 0),s$=o$.then,i$=function(){s$.call(o$,e$)}):i$=function(){f$.call(u$,e$)});var y$=b$||function(e){var t={fn:e,next:void 0};n$&&(n$.next=t),t$||(t$=t,i$()),n$=t},w$={},F$=rQ,k$=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=F$(t),this.reject=F$(n)};w$.f=function(e){return new k$(e)};var x$,E$,C$=rK,S$=RV,D$=w$,P$=bV,A$=LZ,T$=bV.process,L$=T$&&T$.versions,I$=L$&&L$.v8;I$?E$=(x$=I$.split("."))[0]+x$[1]:A$&&(!(x$=A$.match(/Edge\/(\d+)/))||x$[1]>=74)&&(x$=A$.match(/Chrome\/(\d+)/))&&(E$=x$[1]);var M$,j$,N$,R$,O$=E$&&+E$,z$=iQ,B$=bV,G$=uJ,q$=CQ,U$=pK.exports,H$=function(e,t,n){for(var i in t)SQ(e,i,t[i],n);return e},W$=HQ,Y$=function(e){var t=WQ(e),n=YQ.f;VQ&&t&&!t[KQ]&&n(t,KQ,{configurable:!0,get:function(){return this}})},V$=RV,K$=rQ,J$=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Q$=PV,Z$=FK,$$=JQ.exports,X$=function(e,t){if(!t&&!wZ)return!1;var n=!1;try{var i={};i[yZ]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},eX=AZ,tX=l$.set,nX=y$,iX=function(e,t){if(C$(e),S$(t)&&t.constructor===e)return t;var n=D$.f(e);return(0,n.resolve)(t),n.promise},rX=function(e,t){var n=P$.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},aX=w$,oX=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sX=ZK,lX=JJ,uX=O$,cX=BQ("species"),dX="Promise",fX=sX.get,pX=sX.set,hX=sX.getterFor(dX),gX=q$,mX=B$.TypeError,vX=B$.document,_X=B$.process,bX=G$("fetch"),yX=aX.f,wX=yX,FX="process"==Q$(_X),kX=!!(vX&&vX.createEvent&&B$.dispatchEvent),xX="unhandledrejection",EX=lX(dX,(function(){if(!(Z$(gX)!==String(gX))){if(66===uX)return!0;if(!FX&&"function"!=typeof PromiseRejectionEvent)return!0}if(uX>=51&&/native code/.test(gX))return!1;var e=gX.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[cX]=t,!(e.then((function(){}))instanceof t)})),CX=EX||!X$((function(e){gX.all(e).catch((function(){}))})),SX=function(e){var t;return!(!V$(e)||"function"!=typeof(t=e.then))&&t},DX=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;nX((function(){for(var r=t.value,a=1==t.state,o=0;i.length>o;){var s,l,u,c=i[o++],d=a?c.ok:c.fail,f=c.resolve,p=c.reject,h=c.domain;try{d?(a||(2===t.rejection&&LX(e,t),t.rejection=1),!0===d?s=r:(h&&h.enter(),s=d(r),h&&(h.exit(),u=!0)),s===c.promise?p(mX("Promise-chain cycle")):(l=SX(s))?l.call(s,f,p):f(s)):p(r)}catch(e){h&&!u&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&AX(e,t)}))}},PX=function(e,t,n){var i,r;kX?((i=vX.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),B$.dispatchEvent(i)):i={promise:t,reason:n},(r=B$["on"+e])?r(i):e===xX&&rX("Unhandled promise rejection",n)},AX=function(e,t){tX.call(B$,(function(){var n,i=t.value;if(TX(t)&&(n=oX((function(){FX?_X.emit("unhandledRejection",i,e):PX(xX,e,i)})),t.rejection=FX||TX(t)?2:1,n.error))throw n.value}))},TX=function(e){return 1!==e.rejection&&!e.parent},LX=function(e,t){tX.call(B$,(function(){FX?_X.emit("rejectionHandled",e):PX("rejectionhandled",e,t.value)}))},IX=function(e,t,n,i){return function(r){e(t,n,r,i)}},MX=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=2,DX(e,t,!0))},jX=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw mX("Promise can't be resolved itself");var r=SX(n);r?nX((function(){var i={done:!1};try{r.call(n,IX(jX,e,i,t),IX(MX,e,i,t))}catch(n){MX(e,i,n,t)}})):(t.value=n,t.state=1,DX(e,t,!1))}catch(n){MX(e,{done:!1},n,t)}}};function NX(e){switch(null==e?void 0:e.toLowerCase()){case"da":return Promise.resolve().then((function(){return kKt}));case"de":return Promise.resolve().then((function(){return xKt}));case"fr":return Promise.resolve().then((function(){return EKt}));case"es":return Promise.resolve().then((function(){return CKt}));case"zh-tw":return Promise.resolve().then((function(){return SKt}));case"zh-cn":return Promise.resolve().then((function(){return DKt}));case"ja":return Promise.resolve().then((function(){return PKt}));case"tr":return Promise.resolve().then((function(){return AKt}));case"it":return Promise.resolve().then((function(){return TKt}));default:return Promise.resolve().then((function(){return LKt}))}}function RX(e){switch(null==e?void 0:e.toLowerCase()){case"ar-dz":return Promise.resolve().then((function(){return jKt}));case"ar-kw":return Promise.resolve().then((function(){return RKt}));case"ar-ly":return Promise.resolve().then((function(){return zKt}));case"ar-ma":return Promise.resolve().then((function(){return GKt}));case"ar-sa":return Promise.resolve().then((function(){return UKt}));case"ar-tn":return Promise.resolve().then((function(){return WKt}));case"ar":return Promise.resolve().then((function(){return VKt}));case"bg":return Promise.resolve().then((function(){return JKt}));case"bn":return Promise.resolve().then((function(){return ZKt}));case"ca":return Promise.resolve().then((function(){return XKt}));case"cs":return Promise.resolve().then((function(){return tJt}));case"da":return Promise.resolve().then((function(){return iJt}));case"de-at":return Promise.resolve().then((function(){return aJt}));case"de-ch":return Promise.resolve().then((function(){return sJt}));case"de":return Promise.resolve().then((function(){return uJt}));case"el":return Promise.resolve().then((function(){return dJt}));case"en-au":return Promise.resolve().then((function(){return pJt}));case"en-ca":return Promise.resolve().then((function(){return gJt}));case"en-gb":return Promise.resolve().then((function(){return vJt}));case"en-ie":return Promise.resolve().then((function(){return bJt}));case"en-il":return Promise.resolve().then((function(){return wJt}));case"en-nz":return Promise.resolve().then((function(){return kJt}));case"en-sg":return Promise.resolve().then((function(){return EJt}));case"es-do":return Promise.resolve().then((function(){return SJt}));case"es-us":return Promise.resolve().then((function(){return PJt}));case"es":return Promise.resolve().then((function(){return TJt}));case"et":return Promise.resolve().then((function(){return IJt}));case"fa":return Promise.resolve().then((function(){return jJt}));case"fi":return Promise.resolve().then((function(){return RJt}));case"fr-ca":return Promise.resolve().then((function(){return zJt}));case"fr-ch":return Promise.resolve().then((function(){return GJt}));case"fr":return Promise.resolve().then((function(){return UJt}));case"gu":return Promise.resolve().then((function(){return WJt}));case"he":return Promise.resolve().then((function(){return VJt}));case"hi":return Promise.resolve().then((function(){return JJt}));case"hr":return Promise.resolve().then((function(){return ZJt}));case"hu":return Promise.resolve().then((function(){return XJt}));case"id":return Promise.resolve().then((function(){return tQt}));case"it-ch":return Promise.resolve().then((function(){return iQt}));case"it":return Promise.resolve().then((function(){return aQt}));case"ja":return Promise.resolve().then((function(){return sQt}));case"kn":return Promise.resolve().then((function(){return uQt}));case"ko":return Promise.resolve().then((function(){return dQt}));case"lt":return Promise.resolve().then((function(){return pQt}));case"lv":return Promise.resolve().then((function(){return gQt}));case"ml":return Promise.resolve().then((function(){return vQt}));case"mr":return Promise.resolve().then((function(){return bQt}));case"ms-my":return Promise.resolve().then((function(){return wQt}));case"ms":return Promise.resolve().then((function(){return kQt}));case"nb":return Promise.resolve().then((function(){return EQt}));case"nl-be":return Promise.resolve().then((function(){return SQt}));case"nl":return Promise.resolve().then((function(){return PQt}));case"pl":return Promise.resolve().then((function(){return TQt}));case"pt-br":return Promise.resolve().then((function(){return IQt}));case"pt":return Promise.resolve().then((function(){return jQt}));case"ro":return Promise.resolve().then((function(){return RQt}));case"ru":return Promise.resolve().then((function(){return zQt}));case"sk":return Promise.resolve().then((function(){return GQt}));case"sl":return Promise.resolve().then((function(){return UQt}));case"sr-cyrl":return Promise.resolve().then((function(){return WQt}));case"sr":return Promise.resolve().then((function(){return VQt}));case"sv":return Promise.resolve().then((function(){return JQt}));case"sw":return Promise.resolve().then((function(){return ZQt}));case"ta":return Promise.resolve().then((function(){return XQt}));case"te":return Promise.resolve().then((function(){return tZt}));case"th":return Promise.resolve().then((function(){return iZt}));case"tr":return Promise.resolve().then((function(){return aZt}));case"uk":return Promise.resolve().then((function(){return sZt}));case"vi":return Promise.resolve().then((function(){return uZt}));case"zh-cn":return Promise.resolve().then((function(){return dZt}));case"zh-hk":return Promise.resolve().then((function(){return pZt}));case"zh-tw":return Promise.resolve().then((function(){return gZt}));default:return Promise.resolve()}}EX&&(gX=function(e){J$(this,gX,dX),K$(e),M$.call(this);var t=fX(this);try{e(IX(jX,this,t),IX(MX,this,t))}catch(e){MX(this,t,e)}},(M$=function(e){pX(this,{type:dX,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=H$(gX.prototype,{then:function(e,t){var n=hX(this),i=yX(eX(this,gX));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=FX?_X.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&DX(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),j$=function(){var e=new M$,t=fX(e);this.promise=e,this.resolve=IX(jX,e,t),this.reject=IX(MX,e,t)},aX.f=yX=function(e){return e===gX||e===N$?new j$(e):wX(e)},"function"==typeof q$&&(R$=q$.prototype.then,U$(q$.prototype,"then",(function(e,t){var n=this;return new gX((function(e,t){R$.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof bX&&z$({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return iX(gX,bX.apply(B$,arguments))}}))),z$({global:!0,wrap:!0,forced:EX},{Promise:gX}),W$(gX,dX,!1),Y$(dX),N$=G$(dX),z$({target:dX,stat:!0,forced:EX},{reject:function(e){var t=yX(this);return t.reject.call(void 0,e),t.promise}}),z$({target:dX,stat:!0,forced:EX},{resolve:function(e){return iX(this,e)}}),z$({target:dX,stat:!0,forced:CX},{all:function(e){var t=this,n=yX(t),i=n.resolve,r=n.reject,a=oX((function(){var n=K$(t.resolve),a=[],o=0,s=1;$$(e,(function(e){var l=o++,u=!1;a.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,a[l]=e,--s||i(a))}),r)})),--s||i(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=yX(t),i=n.reject,r=oX((function(){var r=K$(t.resolve);$$(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var OX=function(e){var n,r=e.children,a=e.language,o=i.useState(null),s=o[0],l=o[1],u=mV(),c=u.getLocalLanguage,d=u.getLocaleFromLocalStorage;return i.useEffect((function(){(function(){return iV(this,void 0,void 0,(function(){var e,t,n;return rV(this,(function(i){switch(i.label){case 0:return[4,d()];case 1:return e=i.sent(),t=f,null==a?[3,2]:(n=a,[3,4]);case 2:return[4,c()];case 3:n=i.sent(),i.label=4;case 4:return[4,t.apply(void 0,[n,e])];case 5:return i.sent(),[2]}}))}))})().then((function(){return null}),im.error)}),[]),(null===(n=null==s?void 0:s.resources)||void 0===n?void 0:n[s.language])?t.jsx(kE.Provider,tV({value:{language:s.language,changeLocale:function(e){return function(e,t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,zX(e||t)];case 1:return n.sent(),l((function(t){return tV(tV({},t),{locale:e})})),[2]}}))}))}(e,s.language)},changeLanguage:function(e){return iV(this,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return[4,p(e=null==e?void 0:e.toLocaleLowerCase())];case 1:return t=n.sent(),s.locale?[3,3]:[4,zX(e)];case 2:n.sent(),n.label=3;case 3:return l((function(n){return tV(tV({},n),{language:e,resources:t})})),[2]}}))}))},changeSettings:f,addResources:function(e){l((function(t){var n=Object.keys(e).reduce((function(n,i){var r;return(r={})[i]=tV(tV(tV({},n),t.resources[i]),e[i]),r}),{});return tV(tV({},t),{resources:tV(tV({},t.resources),n)})}))}}},{children:t.jsx(Xx,tV({locale:s.locale||s.language,messages:s.resources[s.language]},{children:t.jsx(FE,{children:r},void 0)}),void 0)}),void 0):null;function f(e,t){return iV(this,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return e=null==e?void 0:e.toLocaleLowerCase(),(null==s?void 0:s.language)===e&&(null==s?void 0:s.locale)===t?[2]:[4,p(e)];case 1:return n=i.sent(),[4,zX(t||e)];case 2:return i.sent(),l({language:e,locale:t,resources:n}),[2]}}))}))}function p(e){return iV(this,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,h(e)];case 1:return[2,n.sent()];case 2:return t=n.sent(),im.error(t),[2,null];case 3:return[2]}}))}))}function h(e){var t;return iV(this,void 0,void 0,(function(){var n,i,r;return rV(this,(function(a){switch(a.label){case 0:if(null==e)return[2,null];if(null===(t=null==s?void 0:s.resources)||void 0===t?void 0:t[e])return[2,s.resources];a.label=1;case 1:return a.trys.push([1,3,,4]),e=e.toLowerCase(),n=g,i=[e],[4,NX(e)];case 2:return[2,n.apply(void 0,i.concat([a.sent().default]))];case 3:return r=a.sent(),im.error(r),[2,{}];case 4:return[2]}}))}))}function g(e,t){var n,i,r,a=window.__localeResourcesInterceptor||{};return tV(tV(tV({},null!==(r=null==s?void 0:s.resources)&&void 0!==r?r:{}),((n={})[e]=t,n)),a[e]&&((i={})[e]=a[e],i))}};function zX(e){return iV(this,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:if(!e)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,RX(e)];case 2:return n.sent(),ns.locale(e),[3,4];case 3:return t=n.sent(),im.error(t),[3,4];case 4:return[2]}}))}))}var BX,GX,qX,UX,HX,WX,YX,VX,KX,JX,QX,ZX,$X,XX=["news","comments","multiLanguage","keywords","pushNotifications","mailNotification","teamsNotifications","themes","webHooks","reporting","likes","confirmation","customLogo","customName","avatars","manualChannelSubscription","bannerImages","bannerVideos","editorInlineFiles","editorInlineImages","editorInlineGallery","editorInlineVideos","editorInlineMarkup","editorInlineTable","editorInlineContact","expiryDate","onBehalfOf","editorConversations","targetAudienceRules","unreadTracking","editorInlineQuotes","selfRegistration","people","posts","newsAlerts","pages","inPageNavigation","automaticTranslation","polls","events","teams","userInvitation","languageDetection","postKeywords","hyperfish","canva","allowUserImpersonation","directoryGroupMemberCaching","inAppBrowser","externalNews","termsAndConditions","chat","recurringEvents","publicAccess","allowUserPropertiesUpdate","showMyNews","allowToUnpinMandatoryChannels","allowToReorderMandatoryChannels","useDirectoryUserPropertiesForTargetAudience","giphy","replyToComments","enableUserflow","reportingPreview","preventContentRedirectForBrandedApps","browserPushNotifications","contentHeadline","popularNewsReport","notificationFeed","unsplash","externalPages","showLikers","pageDocuments","unifiedPostView","stream","showAllNews","customFavicon","editorPreview","editorAutomaticTranslation","editorYouTubeVideos","editorVimeoVideos","editorKalturaVideos","editorMicrosoftVideos","searchEverywhere","zendesk","gettyImages"],e0=function(){},t0=i.createContext(null);function n0(){return i.useContext(t0)}function i0(){var e=i.useContext(t0);return null==e?void 0:e.user}function r0(){var e=i0();return function(e){var t,n=new e0;if(!e)return n;for(var i=0;i<XX.length;i++){var r=XX[i];e.featureMask?n[r]="1"===e.featureMask[i]:n[r]=!(null===(t=e.disabledFeatures)||void 0===t?void 0:t[r])}return n}(null==e?void 0:e.subscription)}!function(e){e[e.User=1]="User",e[e.Group=2]="Group"}(BX||(BX={})),function(e){e[e.AnyGroupOrAnyProperty=0]="AnyGroupOrAnyProperty",e[e.AnyGroupAndAnyProperty=1]="AnyGroupAndAnyProperty"}(GX||(GX={})),function(e){e.large="large",e.small="small"}(qX||(qX={})),function(e){e[e.Success=1]="Success",e[e.InvalidHash=2]="InvalidHash",e[e.OneDirectoryLimit=3]="OneDirectoryLimit",e[e.CurrentTenantAlreadyLinked=4]="CurrentTenantAlreadyLinked"}(UX||(UX={})),function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.MultilineText=2]="MultilineText"}(HX||(HX={})),function(e){e[e.Unknown=0]="Unknown",e[e.AdminOnly=1]="AdminOnly",e[e.UserEditable=2]="UserEditable",e[e.Hidden=3]="Hidden"}(WX||(WX={})),function(e){e.Admin="Admin",e.Editor="Editor",e.Author="Author",e.Reader="Reader",e.LimitedReader="LimitedReader",e.None="None"}(YX||(YX={})),function(e){e[e.None=0]="None",e[e.LimitedReader=5]="LimitedReader",e[e.Reader=10]="Reader",e[e.Author=20]="Author",e[e.Editor=30]="Editor",e[e.Admin=40]="Admin"}(VX||(VX={})),function(e){e[e.Success=1]="Success",e[e.InvalidHash=2]="InvalidHash",e[e.InvalidEmail=3]="InvalidEmail",e[e.NotPending=4]="NotPending"}(KX||(KX={})),function(e){e[e.Success=1]="Success",e[e.InvalidHash=2]="InvalidHash",e[e.InvalidEmail=3]="InvalidEmail",e[e.NewUserCannotBeTemporary=6]="NewUserCannotBeTemporary",e[e.NotAuthenticated=7]="NotAuthenticated",e[e.GenericError=8]="GenericError"}(JX||(JX={})),function(e){e[e.None=0]="None",e[e.MobilePush=1]="MobilePush",e[e.Email=2]="Email",e[e.Teams=4]="Teams",e[e.BrowserPush=8]="BrowserPush"}(QX||(QX={})),function(e){e[e.Unknown=0]="Unknown",e[e.Success=1]="Success",e[e.ActiveUserExists=2]="ActiveUserExists",e[e.AlreadyInvited=3]="AlreadyInvited",e[e.ActiveUserExistsDifferentEmail=4]="ActiveUserExistsDifferentEmail"}(ZX||(ZX={})),function(e){e[e.Unknown=0]="Unknown",e[e.Success=1]="Success",e[e.ActiveUserExists=2]="ActiveUserExists",e[e.AlreadyRegistered=3]="AlreadyRegistered",e[e.InvitedUserExists=4]="InvitedUserExists"}($X||($X={}));var a0=RV,o0=PV,s0=BQ("match"),l0=function(e){var t;return a0(e)&&(void 0!==(t=e[s0])?!!t:"RegExp"==o0(e))},u0=l0,c0=function(e){if(u0(e))throw TypeError("The method doesn't accept regular expressions");return e},d0=BQ("match"),f0=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[d0]=!1,"/./"[e](t)}catch(e){}}return!1},p0=c0,h0=IV;iQ({target:"String",proto:!0,forced:!f0("includes")},{includes:function(e){return!!~String(h0(this)).indexOf(p0(e),arguments.length>1?arguments[1]:void 0)}});var g0=iQ,m0=yV.f,v0=mJ,_0=c0,b0=IV,y0=f0,w0="".endsWith,F0=Math.min,k0=y0("endsWith"),x0=!k0&&!!function(){var e=m0(String.prototype,"endsWith");return e&&!e.writable}();function E0(e,t,n){var i=n,r=Array.isArray(n)?n:(null==i?void 0:i.groupIds)||[];return!!(t&&e&&r&&r.length)&&(!!t.isSubscriptionOwner||function(e,t,n){var i=t.groups.filter((function(e){return!n||n.includes(e.id)}));if(!i.length)return!1;return i.some((function(t){return t.role.roleValue>=e}))}(e,t,r))}function C0(e,t,n){var i=n,r=Array.isArray(n)?n:(null==i?void 0:i.groupIds)||[];return!!(t&&e&&r&&r.length)&&(!!t.isSubscriptionOwner||function(e,t,n){var i=t.groups.filter((function(e){return!n||n.includes(e.id)}));if(!i.length||n&&n.length!==i.length)return!1;return i.every((function(t){return t.role.roleValue>=e}))}(e,t,r))}function S0(e,t,n){return n||(n=function(){return!0}),t.groups.filter((function(t){return t.role.roleValue>=e&&n(t)}))}function D0(e){return!!e&&e.endsWith("@hidden-email.reach.livetiles.io")}g0({target:"String",proto:!0,forced:!x0&&!k0},{endsWith:function(e){var t=String(b0(this));_0(e);var n=arguments.length>1?arguments[1]:void 0,i=v0(t.length),r=void 0===n?i:F0(v0(n),i),a=String(e);return w0?w0.call(t,a,r):t.slice(r-a.length,r)===a}});var P0,A0,T0={},L0={};function I0(){var e=tU();return i.useMemo((function(){return{searchAccounts:t,searchAccountsByItemId:function(e,n,i){return t({search:i,type:BX.User,includePendingInvitationUsers:!0,includePendingRegistrationUsers:!0,localOnly:!0,excludeApiUsers:!0,itemId:n,minRole:e})},getUserInfo:function(t){L0[t]||(L0[t]=e.custom("users/"+t+"/info").get().then((function(e){return e.body().data()})).catch((function(e){if(L0[t]=null,e.response&&404===e.response.statusCode)return{userPrincipalName:t};throw e})));return L0[t]},getUserInfoById:function(t){L0[t]||(L0[t]=e.custom("users/by_id/"+t+"/info").get().then((function(e){return e.body().data()})).catch((function(e){if(L0[t]=null,e.response&&404===e.response.statusCode)return{userPrincipalName:t};throw e})));return L0[t]},getUserAvatarUrl:function(t,n){T0[t]||(T0[t]=e.custom("users/"+encodeURIComponent(t)+"/avatar?"+Wg.stringify({tenantId:n})).get().then((function(e){return e.body().data()})).catch((function(e){if(e.response&&404===e.response.statusCode)return null;throw e})));return YH(T0[t])},clearUserInfoCache:function(e){L0[e]&&delete L0[e]},clearUserAvatarCache:function(e){T0[e]&&delete T0[e]}};function t(t){var n=Wg.stringify(t);return e.all("accounts?"+n).getAll().then((function(e){return e.body(!1)}))}}),[e])}function M0(){var e=tU(),t=eU(),n=i.useContext(zF).onRequestToken;return i.useMemo((function(){return{getCurrentUser:function(e,t){void 0===t&&(t=!0);return iV(this,void 0,void 0,(function(){var n,a;return rV(this,(function(o){switch(o.label){case 0:return e?[4,i(e,t)]:[3,2];case 1:return a=o.sent(),[3,4];case 2:return[4,r(t)];case 3:a=o.sent(),o.label=4;case 4:return function(e){e&&(e.minRoles=function(e){var t=e.groups.reduce((function(e,t){return Math.max(e,t.role.roleValue)}),0),n=e.isSubscriptionOwner;return{isSubscriptionOwner:n,isAdmin:n||t>=VX.Admin,isEditor:n||t>=VX.Editor,isAuthor:n||t>=VX.Author,isReader:n||t>=VX.Reader}}(e),e.hasDirectory=e.subscription&&e.subscription.directories&&e.subscription.directories.length>0)}(n=a),[2,n]}}))}))},getCurrentOrganization:function(){return e.custom("users/current/organization").get().then((function(e){return e.body().data()})).catch((function(e){if(e.response&&404===e.response.statusCode)return null;throw e}))},updateCurrentUserProfileProperties:function(t){return e.custom("users/current/properties").put(t)},updateCurrentUserAvatar:function(e,i){return iV(this,void 0,void 0,(function(){var r,a,o;return rV(this,(function(s){switch(s.label){case 0:return(r=new FormData).append("file",i,i.name||"image."+nW.getExtension(i.type)),[4,n()];case 1:return a=s.sent(),o={method:"PUT",body:r,headers:{authorization:"Bearer "+a,"subscription-id":e}},[2,t.fetchFromApi("/users/current/avatar",o)]}}))}))},deleteCurrentUserAvatar:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.custom("users/current/avatar").delete()]}))}))}};function i(e,n){return iV(this,void 0,void 0,(function(){var i;return rV(this,(function(r){switch(r.label){case 0:return[4,t.fetchFromApi("/users/current?"+Wg.stringify({essentialOnly:n}),{headers:{Authorization:"Bearer "+e}})];case 1:return[2,404===(i=r.sent()).status?null:i.json()]}}))}))}function r(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){return[2,e.custom("users/current?"+Wg.stringify({essentialOnly:t})).get().then((function(e){return e.body().data()})).catch((function(e){if(e.response&&404===e.response.statusCode)return null;throw e}))]}))}))}}),[t,e,n])}function j0(){var e=tU(),t=mV(),n=t.saveLanguageToLocalStorage,r=t.saveLocaleToLocalStorage;return i.useMemo((function(){return{updateNotificationTypeSettings:function(t){for(var n={comments:null,mentions:null,posts:null,news:null,events:null,chat:null,pluginNotifications:null},i=function(e){Object.keys(n).every((function(t){return t!==e}))&&delete t[e]},r=0,a=Object.keys(t||{});r<a.length;r++){var o=a[r];i(o)}return e.custom("users/current/notification_settings/types").put(t).then((function(e){return e.body().data()}))},getFollowCommentsStatus:function(t,n,i){return e.custom("users/current/notification_settings/"+s(n,i)+"/"+t).get().then((function(e){return e.body().data().enabled}))},toggleFollowComments:t,followPublicPublishableItemComments:i,followEditorPublishableItemComments:a,followAllPublishableItemComments:function(e,t){i(e,t),a(e,t)},followPublishableItemComments:o,resolveSegment:s,getFollowCommentSegment:l,toggleBookmark:function(t,n){null==n.bookmarks&&(n.bookmarks=[]);var i=n.bookmarks.findIndex((function(e){return e===t}));if(i<0)return e.one("users","current").all("bookmarks").put(t,null).then((function(){return n.bookmarks.push(t),!0}));return e.one("users","current").all("bookmarks").delete(t).then((function(){return n.bookmarks.splice(i,1),!1}))},getUserProperties:function(){return e.all("users/user_properties").get("").then((function(e){return e.body().data()}))},setUserChannels:function(t){return e.custom("users/current/channels").put(t)},addContact:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.all("users/current/contacts").post(t)];case 1:return[2,n.sent().body().data()]}}))}))},deleteContact:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.all("users/current/contacts/"+t.tokenUniqueId).delete("")];case 1:return[2,n.sent().body().data()]}}))}))},getContactAccounts:function(){return e.all("users/current/contacts").getAll().then((function(e){return e.body(!1)}))},setLanguage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(i){switch(i.label){case 0:return[4,e.custom("users/current/ui_language/"+t).put(null)];case 1:return i.sent(),[4,n(t)];case 2:return i.sent(),[2]}}))}))},setContentLanguage:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/content_language/"+t).put(null)];case 1:return n.sent(),[2]}}))}))},setLocale:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/locale/"+t).put(null)];case 1:return n.sent(),[4,r(t)];case 2:return n.sent(),[2]}}))}))},getGroupNotificationSettings:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/notification_settings/groups/"+t).get().then((function(e){return e.body().data()}))];case 1:return[2,n.sent()]}}))}))},updateGroupNotificationSettings:function(t,n){return iV(this,void 0,void 0,(function(){return rV(this,(function(i){switch(i.label){case 0:return[4,e.custom("users/current/notification_settings/groups/"+t).put(n).then((function(e){return e.body().data()}))];case 1:return[2,i.sent()]}}))}))},clearMyUnreadItems:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("users/current/"+t+"/unread").delete()];case 1:return n.sent(),[2]}}))}))},acceptTermsAndConditions:function(t){return e.custom("users/current/terms_and_conditions/"+t).patch({})}};function t(t,n,i,r){return e.custom("users/current/notification_settings/"+s(n,i)+"/"+t).put({enabled:r})}function i(e,t){o(e,t,A0.Public)}function a(e,t){o(e,t,A0.Editor)}function o(e,n,i){t(e,n,i,!0).then((function(){return null}),(function(e){return im.error(e)}))}function s(e,t){switch(t){case A0.Editor:return"editor_comments";case A0.Public:return l(e)+"_comments";case A0.Posts:return"post_comments";default:throw Error("Invalid scope")}}function l(e){switch(e){case P0.News:return"news";case P0.Pages:return"page";case P0.Events:return"event";default:throw Error("Invalid type")}}}),[e,n,r])}!function(e){e.News="news",e.Pages="pages",e.Posts="posts",e.Events="events",e.Comments="comments"}(P0||(P0={})),function(e){e[e.Public=0]="Public",e[e.Editor=1]="Editor",e[e.Posts=2]="Posts"}(A0||(A0={}));var N0,R0=PJ,O0=AJ,z0=Object.keys||function(e){return R0(e,O0)},B0=nK,G0=rK,q0=z0,U0=FV?Object.defineProperties:function(e,t){G0(e);for(var n,i=q0(t),r=i.length,a=0;r>a;)B0.f(e,n=i[a++],t[n]);return e},H0=rK,W0=U0,Y0=AJ,V0=OK,K0=TZ,J0=WV,Q0=RK("IE_PROTO"),Z0=function(){},$0=function(e){return"<script>"+e+"</"+"script>"},X0=function(){try{N0=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;X0=N0?function(e){e.write($0("")),e.close();var t=e.parentWindow.Object;return e=null,t}(N0):((t=J0("iframe")).style.display="none",K0.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($0("document.F=Object")),e.close(),e.F);for(var n=Y0.length;n--;)delete X0.prototype[Y0[n]];return X0()};V0[Q0]=!0;var e1=Object.create||function(e,t){var n;return null!==e?(Z0.prototype=H0(e),n=new Z0,Z0.prototype=null,n[Q0]=e):n=X0(),void 0===t?n:W0(n,t)},t1=e1,n1=nK,i1=BQ("unscopables"),r1=Array.prototype;null==r1[i1]&&n1.f(r1,i1,{configurable:!0,value:t1(null)});var a1,o1,s1,l1=function(e){r1[i1][e]=!0},u1=!wV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),c1=GV,d1=oQ,f1=u1,p1=RK("IE_PROTO"),h1=Object.prototype,g1=f1?Object.getPrototypeOf:function(e){return e=d1(e),c1(e,p1)?e[p1]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?h1:null},m1=g1,v1=fK,_1=GV,b1=BQ("iterator"),y1=!1;[].keys&&("next"in(s1=[].keys())?(o1=m1(m1(s1)))!==Object.prototype&&(a1=o1):y1=!0),null==a1&&(a1={}),_1(a1,b1)||v1(a1,b1,(function(){return this}));var w1={IteratorPrototype:a1,BUGGY_SAFARI_ITERATORS:y1},F1=w1.IteratorPrototype,k1=e1,x1=SV,E1=HQ,C1=QQ,S1=function(){return this},D1=RV,P1=rK,A1=function(e){if(!D1(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e},T1=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return P1(n),A1(i),t?e.call(n,i):n.__proto__=i,n}}():void 0),L1=iQ,I1=function(e,t,n){var i=t+" Iterator";return e.prototype=k1(F1,{next:x1(1,n)}),E1(e,i,!1),C1[i]=S1,e},M1=g1,j1=T1,N1=HQ,R1=fK,O1=pK.exports,z1=QQ,B1=w1.IteratorPrototype,G1=w1.BUGGY_SAFARI_ITERATORS,q1=BQ("iterator"),U1="keys",H1="values",W1="entries",Y1=function(){return this},V1=NV,K1=l1,J1=QQ,Q1=ZK,Z1=function(e,t,n,i,r,a,o){I1(n,t,i);var s,l,u,c=function(e){if(e===r&&g)return g;if(!G1&&e in p)return p[e];switch(e){case U1:case H1:case W1:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[q1]||p["@@iterator"]||r&&p[r],g=!G1&&h||c(r),m="Array"==t&&p.entries||h;if(m&&(s=M1(m.call(new e)),B1!==Object.prototype&&s.next&&(M1(s)!==B1&&(j1?j1(s,B1):"function"!=typeof s[q1]&&R1(s,q1,Y1)),N1(s,d,!0))),r==H1&&h&&h.name!==H1&&(f=!0,g=function(){return h.call(this)}),p[q1]!==g&&R1(p,q1,g),z1[t]=g,r)if(l={values:c(H1),keys:a?g:c(U1),entries:c(W1)},o)for(u in l)(G1||f||!(u in p))&&O1(p,u,l[u]);else L1({target:t,proto:!0,forced:G1||f},l);return l},$1="Array Iterator",X1=Q1.set,e2=Q1.getterFor($1),t2=Z1(Array,"Array",(function(e,t){X1(this,{type:$1,target:V1(e),index:0,kind:t})}),(function(){var e=e2(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");J1.Arguments=J1.Array,K1("keys"),K1("values"),K1("entries");var n2=bV,i2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r2=t2,a2=fK,o2=BQ,s2=o2("iterator"),l2=o2("toStringTag"),u2=r2.values;for(var c2 in i2){var d2=n2[c2],f2=d2&&d2.prototype;if(f2){if(f2[s2]!==u2)try{a2(f2,s2,u2)}catch(e){f2[s2]=u2}if(f2[l2]||a2(f2,l2,c2),i2[c2])for(var p2 in r2)if(f2[p2]!==r2[p2])try{a2(f2,p2,r2[p2])}catch(e){f2[p2]=r2[p2]}}}var h2=i.createContext(null);function g2(){var e=i.useContext(h2);return null!=e?e.refresh:function(){return null}}var m2,v2=function(e){var n=e.children,r=n0().refreshUser,a=ej(),o=i.useCallback((function(){var e,t;return iV(this,void 0,void 0,(function(){var n,i;return rV(this,(function(o){switch(o.label){case 0:return[4,a.query({query:_2,fetchPolicy:"no-cache",errorPolicy:"all"})];case 1:return n=o.sent(),null==(i=null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.currentUser)?[3,3]:[4,r((function(e){return tV(tV({},e),function(e){var t,n,i,r,a;return{availableSubscriptions:null!==(t=null==e?void 0:e.availableSubscriptions)&&void 0!==t?t:[],bookmarks:null!==(n=null==e?void 0:e.bookmarks)&&void 0!==n?n:[],unreadNews:null!==(i=null==e?void 0:e.unreadNews)&&void 0!==i?i:[],unreadEvents:null!==(r=null==e?void 0:e.unreadEvents)&&void 0!==r?r:[],unreadPosts:null!==(a=null==e?void 0:e.unreadPosts)&&void 0!==a?a:[],hasUnreadChats:null==e?void 0:e.hasUnreadChats,unreadFeedItemsCount:null==e?void 0:e.unreadFeedItemsCount,mostRecentPostGroups:null==e?void 0:e.mostRecentPostGroups}}(tV({bookmarks:i.bookmarkIds,availableSubscriptions:i.subscriptions},i)))}))];case 2:return[2,o.sent()];case 3:return(null==i||(null===(t=null==n?void 0:n.errors)||void 0===t?void 0:t.length)>0)&&im.error("Failed to load the currentUser with details.",null==n?void 0:n.errors),[2]}}))}))}),[a]),s=i.useMemo((function(){return{refresh:o}}),[o]);return i.useEffect((function(){o().then(null,im.error)}),[o]),t.jsx(h2.Provider,tV({value:s},{children:n}),void 0)},_2=UM(m2||(m2=oV(["\n query CurrentUserDetails {\n currentUser {\n bookmarkIds\n unreadNews {\n itemId\n channelIds\n }\n unreadEvents {\n itemId\n channelIds\n }\n unreadPosts {\n itemId\n groupId\n }\n unreadFeedItemsCount\n hasUnreadChats\n mostRecentPostGroups\n subscriptions {\n id\n subscriptionName\n company\n contact {\n displayName\n userPrincipalName\n }\n hasUnreadItems\n }\n }\n }\n"],["\n query CurrentUserDetails {\n currentUser {\n bookmarkIds\n unreadNews {\n itemId\n channelIds\n }\n unreadEvents {\n itemId\n channelIds\n }\n unreadPosts {\n itemId\n groupId\n }\n unreadFeedItemsCount\n hasUnreadChats\n mostRecentPostGroups\n subscriptions {\n id\n subscriptionName\n company\n contact {\n displayName\n userPrincipalName\n }\n hasUnreadItems\n }\n }\n }\n"]))),b2=iQ,y2=yV.f,w2=mJ,F2=c0,k2=IV,x2=f0,E2="".startsWith,C2=Math.min,S2=x2("startsWith"),D2=!S2&&!!function(){var e=y2(String.prototype,"startsWith");return e&&!e.writable}();function P2(){var e=i.useContext(_E).identifier,t=e.subscriptionHandle||e.id;return{buildPath:function(e){if(e)return"/"+t+"/"+(e.startsWith("/")?e.substring(1):e);return"/"+t},subscriptionHandle:t}}function A2(){var e=Ag().webAppUrl,t=L2();return t?"https://"+t:e}function T2(){var e=Ag().webAppUrls,t=L2();return t?aV(aV([],e),["https://"+t]):e}function L2(){var e,t=i0();return(null===(e=null==t?void 0:t.subscription)||void 0===e?void 0:e.customDomain)||process.env.NX_CUSTOM_DOMAIN}b2({target:"String",proto:!0,forced:!D2&&!S2},{startsWith:function(e){var t=String(k2(this));F2(e);var n=w2(C2(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return E2?E2.call(t,i,n):t.slice(n,n+i.length)===i}});var I2=["rm"],M2=["af","ar","as","bn","bs","bg","yue","ca","zh-TW","zh-CN","hr","cs","prs","da","nl","en","et","fj","fil","fi","fr","fr-ca","de","el","gu","ht","he","hi","mww","hu","is","id","ga","it","ja","kn","kk","sw","ko","ku","kmr","lv","lt","mg","ms","ml","mt","mi","mr","nb","or","ps","fa","pl","pt-br","pt-pt","pa","otq","rm","ro","ru","sm","sr-cyrl","sr-latn","sk","sl","es","sv","ty","ta","te","th","to","tr","uk","ur","vi","cy"];function j2(e){return e.preferredContentLanguage||e.preferredUiLanguage||Qw()||e.subscription&&e.subscription.defaultLanguage||"en"}function N2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t?t.map((function(t){return tV(tV({},t),{localizedName:e.formatMessage({id:"Generic.languages."+t.code,defaultMessage:t.englishName})})})):[]}var R2=i.createContext(null);var O2=window.System;function z2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=document.querySelector('script[type="systemjs-importmap"][data-reach-package="'+e+'"]');if(null==i){var r=document.createElement("script");r.type="systemjs-importmap",r.setAttribute("data-reach-package",e);for(var a={imports:{}},o=0,s=t;o<s.length;o++){var l=s[o].name;a.imports[l]="app:"+l}r.textContent=JSON.stringify(a,null,2),document.head.appendChild(r);for(var u=0,c=t;u<c.length;u++){var d=c[u],f=d.name,p=d.packageDefinition;O2.set("app:"+f,p)}}}var B2=function(){return null};var G2=rK,q2=function(){var e=G2(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},U2={},H2=wV;function W2(e,t){return RegExp(e,t)}U2.UNSUPPORTED_Y=H2((function(){var e=W2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),U2.BROKEN_CARET=H2((function(){var e=W2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var Y2=q2,V2=U2,K2=RegExp.prototype.exec,J2=String.prototype.replace,Q2=K2,Z2=function(){var e=/a/,t=/b*/g;return K2.call(e,"a"),K2.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),$2=V2.UNSUPPORTED_Y||V2.BROKEN_CARET,X2=void 0!==/()??/.exec("")[1];(Z2||X2||$2)&&(Q2=function(e){var t,n,i,r,a=this,o=$2&&a.sticky,s=Y2.call(a),l=a.source,u=0,c=e;return o&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,u++),n=new RegExp("^(?:"+l+")",s)),X2&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Z2&&(t=a.lastIndex),i=K2.call(o?n:a,c),o?i?(i.input=i.input.slice(u),i[0]=i[0].slice(u),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:Z2&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),X2&&i&&i.length>1&&J2.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var e3=Q2;iQ({target:"RegExp",proto:!0,forced:/./.exec!==e3},{exec:e3});var t3=pK.exports,n3=wV,i3=BQ,r3=e3,a3=fK,o3=i3("species"),s3=!n3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l3="$0"==="a".replace(/./,"$0"),u3=i3("replace"),c3=!!/./[u3]&&""===/./[u3]("a","$0"),d3=!n3((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),f3=function(e,t,n,i){var r=i3(e),a=!n3((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),o=a&&!n3((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[o3]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return t=!0,null},n[r](""),!t}));if(!a||!o||"replace"===e&&(!s3||!l3||c3)||"split"===e&&!d3){var s=/./[r],l=n(r,""[e],(function(e,t,n,i,r){return t.exec===r3?a&&!r?{done:!0,value:s.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:l3,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:c3}),u=l[0],c=l[1];t3(String.prototype,e,u),t3(RegExp.prototype,r,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}i&&a3(RegExp.prototype[r],"sham",!0)},p3=pJ,h3=IV,g3=function(e){return function(t,n){var i,r,a=String(h3(t)),o=p3(n),s=a.length;return o<0||o>=s?e?"":void 0:(i=a.charCodeAt(o))<55296||i>56319||o+1===s||(r=a.charCodeAt(o+1))<56320||r>57343?e?a.charAt(o):i:e?a.slice(o,o+2):r-56320+(i-55296<<10)+65536}},m3={codeAt:g3(!1),charAt:g3(!0)}.charAt,v3=function(e,t,n){return t+(n?m3(e,t).length:1)},_3=PV,b3=e3,y3=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==_3(e))throw TypeError("RegExp#exec called on incompatible receiver");return b3.call(e,t)},w3=f3,F3=rK,k3=oQ,x3=mJ,E3=pJ,C3=IV,S3=v3,D3=y3,P3=Math.max,A3=Math.min,T3=Math.floor,L3=/\$([$&'`]|\d\d?|<[^>]*>)/g,I3=/\$([$&'`]|\d\d?)/g,M3=function(e){return void 0===e?e:String(e)};function j3(){return i.useContext(R2).storage}function N3(e,t){var n="Plugins::"+e+"::";return{getAllKeys:i,getString:function(e){return t.getString(n+e)},setString:function(e,i){return t.setString(n+e,i)},remove:function(e){return t.remove(n+e)},clearAll:function(){return iV(this,void 0,void 0,(function(){var e,r,a,o;return rV(this,(function(s){switch(s.label){case 0:return[4,i()];case 1:e=s.sent(),r=0,a=e,s.label=2;case 2:return r<a.length?(o=a[r],[4,t.remove(n+o)]):[3,5];case 3:s.sent(),s.label=4;case 4:return r++,[3,2];case 5:return[2]}}))}))}};function i(){var e;return iV(this,void 0,void 0,(function(){var i;return rV(this,(function(r){switch(r.label){case 0:return[4,t.getAllKeys()];case 1:return i=r.sent(),[2,null!==(e=null==i?void 0:i.filter((function(e){return e.startsWith(n)})).map((function(e){return e.replace(n,"")})))&&void 0!==e?e:[]]}}))}))}}function R3(e){var t;if(404!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.statusCode))throw e}function O3(e,t){return{get:function(n){return t.custom("users/current/plugins/"+e+"/store/"+n+"/value").get().then((function(e){return e.body().data()}))},set:function(n,i){return t.custom("users/current/plugins/"+e+"/store/"+n+"/value").put(i).then((function(e){return e.body().data()}))},delete:function(n){return t.custom("users/current/plugins/"+e+"/store/"+n+"/value").delete()}}}function z3(e,t){return{get:function(n){return t.custom("subscriptions/current/plugins/"+e+"/store/"+n+"/value").get().then((function(e){return e.body().data()}))},set:function(n,i){return t.custom("subscriptions/current/plugins/"+e+"/store/"+n+"/value").put(i).then((function(e){return e.body().data()}))},delete:function(n){return t.custom("subscriptions/current/plugins/"+e+"/store/"+n+"/value").delete()}}}w3("replace",2,(function(e,t,n,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=i.REPLACE_KEEPS_$0,o=r?"$":"$0";return[function(n,i){var r=C3(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!r&&a||"string"==typeof i&&-1===i.indexOf(o)){var l=n(t,e,this,i);if(l.done)return l.value}var u=F3(e),c=String(this),d="function"==typeof i;d||(i=String(i));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var h=[];;){var g=D3(u,c);if(null===g)break;if(h.push(g),!f)break;""===String(g[0])&&(u.lastIndex=S3(c,x3(u.lastIndex),p))}for(var m="",v=0,_=0;_<h.length;_++){g=h[_];for(var b=String(g[0]),y=P3(A3(E3(g.index),c.length),0),w=[],F=1;F<g.length;F++)w.push(M3(g[F]));var k=g.groups;if(d){var x=[b].concat(w,y,c);void 0!==k&&x.push(k);var E=String(i.apply(void 0,x))}else E=s(b,c,y,w,k,i);y>=v&&(m+=c.slice(v,y)+E,v=y+b.length)}return m+c.slice(v)}];function s(e,n,i,r,a,o){var s=i+e.length,l=r.length,u=I3;return void 0!==a&&(a=k3(a),u=L3),t.call(o,u,(function(t,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":u=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>l){var d=T3(c/10);return 0===d?t:d<=l?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):t}u=r[c-1]}return void 0===u?"":u}))}}));var B3=function(e){var n=e.pluginId,r=e.componentName,a=e.settings,o=e.bundleUrl,s=e.bundleModificationDate,l=nV(e,["pluginId","componentName","settings","bundleUrl","bundleModificationDate"]),u=vE(),c=tU(),d=function(){var e=tU(),t=i0(),n=eU(),r=n.createApiUrl,a=n.fetchFromApi,o=i.useContext(zF).onRequestToken;return i.useMemo((function(){return{getPluginFileUrl:function(e,t,n){return t||(e.startsWith("http")?e+"?cache="+(new Date).getTime():r("/plugins/"+e,n?{cache:new Date(n).getTime()}:null))},saveDefinition:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("plugins/"+encodeURIComponent(t.pluginId)+"/definition").put(t).then((function(e){return e.body()}))];case 1:return[2,n.sent()]}}))}))},saveFile:function(e,n){return iV(this,void 0,void 0,(function(){var i,r,s;return rV(this,(function(l){switch(l.label){case 0:return(i=new FormData).append("file",n),[4,o()];case 1:return r=l.sent(),s={method:"PUT",body:i,headers:{authorization:"Bearer "+r,"subscription-id":t.subscription.id}},[2,a("/plugins/"+encodeURIComponent(e)+"/bundle",s)]}}))}))},generateApiKey:function(t,n,i){return iV(this,void 0,void 0,(function(){return rV(this,(function(r){switch(r.label){case 0:return[4,e.all("plugins/"+encodeURIComponent(t)+"/api_keys").post({displayName:n,expiryDate:i}).then((function(e){return e.body().data()}))];case 1:return[2,r.sent()]}}))}))},linkPlugin:function(t,n){return iV(this,void 0,void 0,(function(){return rV(this,(function(i){switch(i.label){case 0:return[4,e.custom("subscriptions/current/plugins/"+encodeURIComponent(t)).put({settings:n}).then((function(e){return e.body()}))];case 1:return[2,i.sent()]}}))}))},unlinkPlugin:function(t){return iV(this,void 0,void 0,(function(){return rV(this,(function(n){switch(n.label){case 0:return[4,e.custom("subscriptions/current/plugins/"+encodeURIComponent(t)).delete().then((function(e){return e.body()}))];case 1:return[2,n.sent()]}}))}))}}}),[e,r,a,o,t.subscription.id])}().getPluginFileUrl,f=i.useMemo((function(){return i.lazy((function(){return function(e,t){return iV(this,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,O2.import(e)];case 1:return[2,{default:i.sent()[t]}];case 2:return n=i.sent(),im.error(n),[2,{default:B2}];case 3:return[2]}}))}))}(d(n,o,s),r)}))}),[r,n,d,o,s]),p=i.useMemo((function(){return{settings:a,storage:N3(n,u),userStore:O3(n,c),subscriptionStore:z3(n,c)}}),[n,a,u,c]);return t.jsx(i.Suspense,tV({fallback:t.jsx("div",{},void 0)},{children:t.jsx(R2.Provider,tV({value:p},{children:t.jsx(f,tV({name:r},l),void 0)}),void 0)}),void 0)},G3=PV,q3=Array.isArray||function(e){return"Array"==G3(e)},U3=q3,H3=mJ,W3=tZ,Y3=function(e,t,n,i,r,a,o,s){for(var l,u=r,c=0,d=!!o&&W3(o,s,3);c<i;){if(c in n){if(l=d?d(n[c],c,t):n[c],a>0&&U3(l))u=Y3(e,t,l,H3(l.length),u,a-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[u]=l}u++}c++}return u},V3=Y3,K3=RV,J3=q3,Q3=BQ("species"),Z3=V3,$3=oQ,X3=mJ,e4=rQ,t4=function(e,t){var n;return J3(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!J3(n.prototype)?K3(n)&&null===(n=n[Q3])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)};iQ({target:"Array",proto:!0},{flatMap:function(e){var t,n=$3(this),i=X3(n.length);return e4(e),(t=t4(n,0)).length=Z3(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}}),l1("flatMap");var n4,i4,r4=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},a4=rK,o4=IV,s4=r4,l4=y3;function u4(){var e=i0(),t=function(){var e=function(){var e=r.useLocation(),t=Wg.parse(e.search);if(null!=t.plugin){var n=JSON.parse(atob(t.plugin));c4.some((function(e){return e.pluginId===n.pluginId}))||(c4.push(n),window.sessionStorage.setItem("Reach::InjectedRemotePlugins",JSON.stringify(c4)))}return c4}(),t=IF(n,[],[null==e?void 0:e.length])[0];return null!=d4?d4:t;function n(){return iV(this,void 0,void 0,(function(){var t,n,i,r,a,o;return rV(this,(function(s){switch(s.label){case 0:if(d4)return[2,d4];t=[],n=0,i=e,s.label=1;case 1:return n<i.length?(r=i[n],a="http://localhost:"+r.port,[4,fetch(a+"/definition.json?rev="+(new Date).getTime())]):[3,5];case 2:return[4,s.sent().json()];case 3:(o=s.sent()).bundleUrl=a+"/index.js?rev="+(new Date).getTime(),t.push(o),s.label=4;case 4:return n++,[3,1];case 5:return[2,d4=t]}}))}))}}();return aV(aV([],(e.subscription.webPluginDefinitions||[]).filter((function(e){return!t.some((function(t){return t.pluginId===e.pluginId}))}))),t)}f3("search",1,(function(e,t,n){return[function(t){var n=o4(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=a4(e),a=String(this),o=r.lastIndex;s4(o,0)||(r.lastIndex=0);var s=l4(r,a);return s4(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]})),function(e){e.global="Global",e.page="Page",e.eventEditorFeedbackSection="EventEditorFeedbackSection",e.eventDetailViewSection="EventDetailViewSection"}(i4||(i4={}));var c4=null!==(n4=JSON.parse(window.sessionStorage.getItem("Reach::InjectedRemotePlugins")))&&void 0!==n4?n4:[];var d4=null;var f4=FV,p4=wV,h4=z0,g4=IJ,m4=kV,v4=oQ,_4=LV,b4=Object.assign,y4=Object.defineProperty,w4=!b4||p4((function(){if(f4&&1!==b4({b:1},b4(y4({},"a",{enumerable:!0,get:function(){y4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=b4({},e)[n]||h4(b4({},t)).join("")!=i}))?function(e,t){for(var n=v4(e),i=arguments.length,r=1,a=g4.f,o=m4.f;i>r;)for(var s,l=_4(arguments[r++]),u=a?h4(l).concat(a(l)):h4(l),c=u.length,d=0;c>d;)s=u[d++],f4&&!o.call(l,s)||(n[s]=l[s]);return n}:b4,F4=w4;iQ({target:"Object",stat:!0,forced:Object.assign!==F4},{assign:F4});var k4=PV,x4=pJ,E4=IV,C4="".repeat||function(e){var t=String(E4(this)),n="",i=x4(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n},S4=iQ,D4=pJ,P4=function(e){if("number"!=typeof e&&"Number"!=k4(e))throw TypeError("Incorrect invocation");return+e},A4=C4,T4=wV,L4=1..toFixed,I4=Math.floor,M4=function(e,t,n){return 0===t?n:t%2==1?M4(e,t-1,n*e):M4(e*e,t/2,n)};S4({target:"Number",proto:!0,forced:L4&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!T4((function(){L4.call({})}))},{toFixed:function(e){var t,n,i,r,a=P4(this),o=D4(e),s=[0,0,0,0,0,0],l="",u="0",c=function(e,t){for(var n=-1,i=t;++n<6;)i+=e*s[n],s[n]=i%1e7,i=I4(i/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=I4(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+A4.call("0",7-n.length)+n}return t};if(o<0||o>20)throw RangeError("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(l="-",a=-a),a>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*M4(2,69,1))-69,n=t<0?a*M4(2,-t,1):a/M4(2,t,1),n*=4503599627370496,(t=52-t)>0){for(c(0,n),i=o;i>=7;)c(1e7,0),i-=7;for(c(M4(10,i,1),0),i=t-1;i>=23;)d(1<<23),i-=23;d(1<<i),c(1,1),d(2),u=f()}else c(0,n),c(1<<-t,0),u=f()+A4.call("0",o);return u=o>0?l+((r=u.length)<=o?"0."+A4.call("0",o-r)+u:u.slice(0,r-o)+"."+u.slice(r-o)):l+u}});var j4={primaryColor:"#512DA8",secondaryColor:"#6AE6C6"},N4={palette:{themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#52A0BF",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",neutralDark:"#212121",neutralPrimary:"#333333",neutralPrimaryAlt:"#3c3c3c",neutralSecondary:"#424242",neutralSecondaryAlt:"#767676",neutralTertiary:"#a6a6a6",neutralTertiaryAlt:"#c8c8c8",neutralQuaternary:"#d0d0d0",neutralQuaternaryAlt:"#dadada",neutralLight:"#eaeaea",neutralLighter:"#f2f2f2",neutralLighterAlt:"#f8f8f8",accent:"#52A0BF",textColorOnWhiteBackground:"#52A0BF",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",blue:"#0078d7",blueDark:"#002050",blueLight:"#00bcf2",blueMid:"#00188f",error:"#a80000",green:"#107c10",greenDark:"#004b1c",greenLight:"#bad80a",info:"#107c10",magenta:"#b4009e",magentaDark:"#5c005c",magentaLight:"#e3008c",orange:"#d83b01",orangeLight:"#ff8c00",orangeLighter:"#ea4300",purple:"#5c2d91",purpleDark:"#32145a",purpleLight:"#b4a0ff",red:"#e81123",redDark:"#a80000",severeWarning:"#d83b01",success:"#107c10",teal:"#008272",tealDark:"#004b50",tealLight:"#00b294",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellow:"#ffb900",yellowLight:"#fff100"},semanticColors:{infoText:"#333333",successText:"#333333",alertBackground:"#deecf9",severeWarningBackground:"#fed9cc",successBackground:"#dff6dd",warningBackground:"#fff4ce",errorBackground:"#fde7e9",infoBackground:"#f4f4f4"},textColors:{onPrimary:"#ffffff",onSecondary:"#000000"}},R4=rK,O4=mJ,z4=IV,B4=v3,G4=y3;f3("match",1,(function(e,t,n){return[function(t){var n=z4(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=R4(e),a=String(this);if(!r.global)return G4(r,a);var o=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=G4(r,a));){var c=String(s[0]);l[u]=c,""===c&&(r.lastIndex=B4(a,O4(r.lastIndex),o)),u++}return 0===u?null:l}]}));var q4="\t\n\v\f\r \u2028\u2029\ufeff",U4=IV,H4="[\t\n\v\f\r \u2028\u2029\ufeff]",W4=RegExp("^"+H4+H4+"*"),Y4=RegExp(H4+H4+"*$"),V4=function(e){return function(t){var n=String(U4(t));return 1&e&&(n=n.replace(W4,"")),2&e&&(n=n.replace(Y4,"")),n}},K4={start:V4(1),end:V4(2),trim:V4(3)},J4=K4.trim,Q4=q4,Z4=bV.parseInt,$4=/^[+-]?0[Xx]/,X4=8!==Z4(Q4+"08")||22!==Z4(Q4+"0x16")?function(e,t){var n=J4(String(e));return Z4(n,t>>>0||($4.test(n)?16:10))}:Z4;iQ({global:!0,forced:parseInt!=X4},{parseInt:X4});var e6=f3,t6=l0,n6=rK,i6=IV,r6=AZ,a6=v3,o6=mJ,s6=y3,l6=e3,u6=wV,c6=[].push,d6=Math.min,f6=4294967295,p6=!u6((function(){return!RegExp(f6,"y")}));e6("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(i6(this)),r=void 0===n?f6:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!t6(e))return t.call(i,e,r);for(var a,o,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,d=new RegExp(e.source,u+"g");(a=l6.call(d,i))&&!((o=d.lastIndex)>c&&(l.push(i.slice(c,a.index)),a.length>1&&a.index<i.length&&c6.apply(l,a.slice(1)),s=a[0].length,c=o,l.length>=r));)d.lastIndex===a.index&&d.lastIndex++;return c===i.length?!s&&d.test("")||l.push(""):l.push(i.slice(c)),l.length>r?l.slice(0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=i6(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var o=n6(e),s=String(this),l=r6(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(p6?"y":"g"),d=new l(p6?o:"^(?:"+o.source+")",c),f=void 0===r?f6:r>>>0;if(0===f)return[];if(0===s.length)return null===s6(d,s)?[s]:[];for(var p=0,h=0,g=[];h<s.length;){d.lastIndex=p6?h:0;var m,v=s6(d,p6?s:s.slice(h));if(null===v||(m=d6(o6(d.lastIndex+(p6?0:h)),s.length))===p)h=a6(s,h,u);else{if(g.push(s.slice(p,h)),g.length===f)return g;for(var _=1;_<=v.length-1;_++)if(g.push(v[_]),g.length===f)return g;h=p=m}}return g.push(s.slice(p)),g}]}),!p6);var h6=wV,g6=q4,m6=K4.trim,v6=function(e){return h6((function(){return!!g6[e]()||"
"!="
"[e]()||g6[e].name!==e}))};iQ({target:"String",proto:!0,forced:v6("trim")},{trim:function(){return m6(this)}});var _6=pK.exports,b6=rK,y6=wV,w6=q2,F6="toString",k6=RegExp.prototype,x6=k6.toString,E6=y6((function(){return"/a/b"!=x6.call({source:"a",flags:"b"})})),C6=x6.name!=F6;(E6||C6)&&_6(RegExp.prototype,F6,(function(){var e=b6(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in k6)?w6.call(e):n)}),{unsafe:!0});var S6=function(){function e(e){var t=this;this.setRgb=function(e){-1!==e.indexOf("rgba")?t.setRgbFromRgba(e):t.setRgbFromHex(e)},this.setRgbFromHex=function(e){var n=e.replace("#","").match(/.{1,2}/g);t.r=parseInt(n[0],16),t.g=parseInt(n[1],16),t.b=parseInt(n[2],16)},this.setRgbFromRgba=function(e){var n=e.replace("rgba(","").replace(")","").split(",");t.r=parseInt(t.trim(n[0]),10),t.g=parseInt(t.trim(n[1]),10),t.b=parseInt(t.trim(n[2]),10)},this.trim=function(e){return e.replace(/^\s+|\s+$/gm,"")},this.setRgb(e)}return e.prototype.lighten=function(e){return this.r=Math.min(Math.ceil(this.r+this.r*e),255),this.g=Math.min(Math.ceil(this.g+this.g*e),255),this.b=Math.min(Math.ceil(this.b+this.b*e),255),this},e.prototype.toHex=function(){var e=function(e){return("00"+e.toString(16)).slice(-2)};return"#"+e(this.r)+e(this.g)+e(this.b)},e}(),D6=null,P6=tV({name:"Default"},j4),A6=N4.palette.neutralLighter,T6="#ffffff",L6="#333333",I6=[P6,{name:"Apatite",primaryColor:"#1570B3",secondaryColor:"#CFFF6C"},{name:"Azurite",primaryColor:"#20273C",secondaryColor:"#F4F4F4"},{name:"Cordierite",primaryColor:"#343332",secondaryColor:"#419BEB"},{name:"Nephrite",primaryColor:"#224926",secondaryColor:"#EAEAEA"},{name:"Pyrite",primaryColor:"#263251",secondaryColor:"#FFE357"},{name:"Quartz",primaryColor:"#363636",secondaryColor:"#D44579"}];function M6(e,t){var n=j6(e.primaryColor),i=e.useHighlightColorOnWhiteBackground?e.secondaryColor:e.primaryColor,r=e.useHighlightColorOnWhiteBackground?N6(i):N6(n),a={primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,textColorOnPrimary:N6(n),textColorOnSecondary:N6(e.secondaryColor),accentColor:i,textColorOnAccent:r},s=tV({},N4),l=function(e){var t={palette:{},semanticColors:{},textColors:{}},n=new S6(e.accentColor).toHex(),i=new S6(e.accentColor).lighten(-.3).toHex(),r=new S6(e.accentColor).lighten(.5).toHex(),a=j6(e.primaryColor),o=N6(i);return t.palette.themeDarker=new S6(e.primaryColor).lighten(-.4).toHex(),t.palette.themeDark=new S6(e.primaryColor).lighten(-.3).toHex(),t.palette.themeDarkAlt=a,t.palette.themePrimary=new S6(e.primaryColor).toHex(),t.palette.themeLight=new S6(e.primaryColor).lighten(.2).toHex(),t.palette.themeLighter=new S6(e.primaryColor).lighten(.65).toHex(),t.palette.themeLighterAlt=new S6(e.primaryColor).lighten(.8).toHex(),t.palette.red=new S6("#B90000").toHex(),t.palette.redDark=new S6("#a80000").toHex(),t.palette.accent=n,t.semanticColors.warningText=new S6(e.secondaryColor).lighten(.8).toHex(),t.semanticColors.inputPlaceholderText=new S6("#666666").toHex(),t.semanticColors.primaryButtonBackground=n,t.semanticColors.primaryButtonText=e.textColorOnAccent,t.semanticColors.primaryButtonBackgroundHovered=i,t.semanticColors.primaryButtonTextHovered=o,t.semanticColors.primaryButtonBackgroundPressed=i,t.semanticColors.primaryButtonTextPressed=o,t.semanticColors.inputIcon=n,t.semanticColors.inputIconHovered=i,t.semanticColors.inputBackgroundChecked=n,t.semanticColors.inputBackgroundCheckedHovered=i,t.semanticColors.inputFocusBorderAlt=n,t.semanticColors.inputPlaceholderBackgroundChecked=r,t.palette.themeSecondary=new S6(e.secondaryColor).toHex(),t.palette.themeTertiary=new S6(e.secondaryColor).lighten(-.2).toHex(),t.textColors.onPrimary=new S6(e.textColorOnPrimary).toHex(),t.textColors.onSecondary=new S6(e.textColorOnSecondary).toHex(),t.textColors.default=new S6(L6).toHex(),t.textColors.onAccent=new S6(e.textColorOnAccent).toHex(),t}(a);for(var u in l)l.hasOwnProperty(u)&&Object.assign(s[u],l[u]);return t||o.loadTheme(s),function(e){var t=[],n=".lt-reach";for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];"textColors"!==i&&(t.push(n+" .ms-bgColor-"+a+" { background-color: "+o+";}"),t.push(n+" .ms-borderColor-"+a+" { border-color: "+o+";}")),t.push(n+" .ms-fontColor-"+a+" { color: "+o+";}"),t.push(n+" .ms-fontColor-"+a+"--hover:hover {color: "+o+";}")}}D6||((D6=document.createElement("style")).type="text/css",D6.id="condense-ui-fabric-overrides",document.head.appendChild(D6));D6.innerHTML=t.join(" ")}(s),s}function j6(e){return new S6(e).lighten(-.2).toHex()}function N6(e){return function(e){var t=lW(e,L6),n=lW(e,T6);return t>n}(e)?L6:T6}var R6,O6,z6,B6,G6,q6,U6,H6,W6,Y6,V6,K6,J6,Q6,Z6=i.createContext(null),$6=function(e){var n=e.disableUiFabricThemeOverwrite,r=e.children,o=i.useState((function(){return M6(I6.find((function(e){return"Default"===e.name})),n)})),s=o[0],l=o[1];return t.jsx(Z6.Provider,tV({value:{theme:s,setTheme:function(e){return l(M6(e,n))}}},{children:t.jsx(a.ThemeProvider,tV({theme:s},{children:r}),void 0)}),void 0)};function X6(e){switch(e){case J6.YouTube:return K6.YouTube;case J6.Vimeo:return K6.Vimeo;case J6.MicrosoftStream:return K6.MicrosoftStream;case J6.GenericUrl:return K6.GenericUrl;case J6.Kaltura:return K6.Kaltura;default:return null}}!function(e){e[e.Image=0]="Image",e[e.File=1]="File",e[e.YouTubeVideo=2]="YouTubeVideo",e[e.VimeoVideo=3]="VimeoVideo",e[e.News=4]="News",e[e.Event=5]="Event",e[e.Page=6]="Page",e[e.Post=7]="Post",e[e.Giphy=8]="Giphy"}(R6||(R6={})),function(e){e.Image="IMAGE",e.File="FILE",e.YouTubeVideo="YOU_TUBE_VIDEO",e.VimeoVideo="VIMEO_VIDEO",e.News="NEWS",e.Event="EVENT",e.Page="PAGE",e.Post="POST",e.Giphy="GIPHY"}(O6||(O6={})),function(e){e[e.NotSet=0]="NotSet",e[e.Registered=1]="Registered",e[e.Declined=2]="Declined"}(z6||(z6={})),function(e){e[e.None=0]="None",e[e.FullSeries=1]="FullSeries",e[e.PerInstance=2]="PerInstance"}(B6||(B6={})),function(e){e[e.NotSet=0]="NotSet",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(G6||(G6={})),function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday"}(q6||(q6={})),function(e){e[e.Unknown=0]="Unknown",e[e.First=1]="First",e[e.Second=2]="Second",e[e.Third=3]="Third",e[e.Fourth=4]="Fourth",e[e.Last=5]="Last"}(U6||(U6={})),function(e){e[e.None=0]="None",e[e.January=1]="January",e[e.February=2]="February",e[e.March=3]="March",e[e.April=4]="April",e[e.May=5]="May",e[e.June=6]="June",e[e.July=7]="July",e[e.August=8]="August",e[e.September=9]="September",e[e.October=10]="October",e[e.November=11]="November",e[e.December=12]="December"}(H6||(H6={})),function(e){e[e.Page=0]="Page",e[e.Document=1]="Document"}(W6||(W6={})),function(e){e[e.None=0]="None",e[e.Unconfirmed=1]="Unconfirmed",e[e.Alert=2]="Alert"}(Y6||(Y6={})),function(e){e.draft="draft",e.ready="ready",e.rejected="rejected",e.approved="approved",e.deleted="deleted"}(V6||(V6={})),function(e){e[e.YouTube=0]="YouTube",e[e.Vimeo=1]="Vimeo",e[e.MicrosoftStream=2]="MicrosoftStream",e[e.GenericUrl=3]="GenericUrl",e[e.Kaltura=4]="Kaltura"}(K6||(K6={})),function(e){e.YouTube="YOUTUBE",e.Vimeo="VIMEO",e.MicrosoftStream="MICROSOFTSTREAM",e.GenericUrl="GENERICURL",e.Kaltura="KALTURA"}(J6||(J6={})),function(e){e[e.unknown=0]="unknown",e[e.pending=1]="pending",e[e.complete=2]="complete",e[e.error=3]="error"}(Q6||(Q6={}));var e9=function(e){function t(t,n){var i=e.call(this)||this;return i.actualSizeInMb=t,i.maxSizeInMb=n,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eV(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function t9(e){if(e.size>1e6*is.maxFileSizeInMb){var t=new e9(e.size/1e6,is.maxFileSizeInMb);throw dm(t,window.location.href),t}var n=new FormData;return n.append("file",e),n}function n9(e){var t=Object.keys(e||[]);return t.length?t.map((function(t){return e[t].map((function(e){return Object.assign({},e,{groupId:t})}))})).reduce((function(e,t){return e.concat(t)})):null}function i9(e){var t={};return(e||[]).forEach((function(e){t[e.groupId]||(t[e.groupId]=[]),t[e.groupId].push(e)})),t}function r9(e,t,n,i,r,a){var o=i||r;if(null==e)return o;var s=e.find((function(e){return e.name===r}))||e.find((function(e){return e.id===n}));if(!s)return o;if(!i)return a9(t,s.translations,o,a);var l=s&&s.keywords.find((function(e){return e.name===i}));return l?a9(t,l.translations,o,a):o}function a9(e,t,n,i){return null==t&&(t={}),i||(i=j2(e)),i&&t[i]||t[e.subscription.defaultLanguage]||n}var o9=10,s9=20,l9=30,u9=40,c9=60,d9=550,f9=768,p9=1024,h9=1350,g9=549,m9=767,v9=1023,_9=1349,b9=25,y9=18,w9=16,F9=14,k9=12,x9=21/9,E9=s9,C9=c9,S9=20,D9=i.createContext(null),P9=i.createContext(null);function A9(){return i.useContext(D9)}var T9,L9,I9,M9,j9,N9,R9=function(e){var n=e.children,r=i.useState(!1),a=r[0],s=r[1],l=i.useState({}),u=l[0],c=l[1],d=i.useMemo((function(){return{showErrorText:h,showInfo:p,showError:g,showWarning:m,showSuccess:v,hideNotification:_,showToast:b,showToastWarning:y,dismissToast:w}}),[c,s]),f=i.useMemo((function(){return tV(tV({},u),{isNotificationBarVisible:a})}),[u,a]);return t.jsx(D9.Provider,tV({value:d},{children:t.jsx(P9.Provider,tV({value:f},{children:n}),void 0)}),void 0);function p(e,t){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.info,actions:null,className:"ms-messageBar--info"}),s(!0)}function h(e){c({text:e,messageBarType:o.MessageBarType.error,actions:null}),s(!0)}function g(e,t){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.error,actions:null}),s(!0)}function m(e,t){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.warning,actions:null}),s(!0)}function v(e,t,n,i){c({messageId:e,messageValues:t,messageBarType:o.MessageBarType.success,className:n,actions:i}),s(!0)}function _(){s(!1)}function b(e,n,i,r){var a=t.jsx(cE,{id:e,values:n},void 0);return null==i?RY(a,r):RY(t.jsxs(O9,{children:[t.jsx(z9,{children:a},void 0),t.jsx(B9,{children:i},void 0)]},void 0),tV({},r))}function y(e,t,n){var i={autoClose:!1,type:"warning"};return n&&(i.onClose=n),b(e,t,null,i)}function w(e){RY.dismiss(e)}},O9=_.default.div.withConfig({displayName:"NotificationContext__Wrapper",componentId:"sc-ant4hw-0"})(T9||(T9=oV(["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n flex-direction: column;\n }\n"],["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n flex-direction: column;\n }\n"])),d9),z9=_.default.p.withConfig({displayName:"NotificationContext__Message",componentId:"sc-ant4hw-1"})(L9||(L9=oV(["\n flex: 1 1 auto;\n"],["\n flex: 1 1 auto;\n"]))),B9=_.default.div.withConfig({displayName:"NotificationContext__Actions",componentId:"sc-ant4hw-2"})(I9||(I9=oV(["\n margin-left: 25px;\n flex: 1 0 auto;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: 10px;\n }\n"],["\n margin-left: 25px;\n flex: 1 0 auto;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: 10px;\n }\n"])),d9),G9=function(){var e=r.useHistory(),n=i.useContext(QD).hideChrome;return i.useEffect((function(){var t=e.listen((function(){return RY.dismiss()}));return function(){return t()}}),[e]),t.jsxs(t.Fragment,{children:[t.jsx(q9,{chromeless:n},void 0),t.jsx(xY,{toastClassName:"ms-fontColor-default",bodyClassName:"ms-fontColor-default",autoClose:5e3,hideProgressBar:!0,transition:kY,closeButton:!1},void 0)]},void 0)},q9=a.createGlobalStyle(N9||(N9=oV(["\n .lt-reach .Toastify .Toastify__toast-container {\n ","\n\n ","\n }\n\n .Toastify {\n .Toastify__toast-container {\n // This allows us to have wider toasts that do not wrap too soon.\n // Toastify itself will add responsive design at 480px and span the\n // toast the full width...\n max-width: 540px;\n width: auto;\n z-index: 1000001;\n\n @media (max-width: 480px) {\n padding: 0 10px !important;\n }\n }\n\n .Toastify__toast-body {\n display: flex;\n flex: 1 1 540px;\n height: 100%;\n justify-content: center;\n flex-direction: column;\n // IE fix: this is a default value from Toastify but doesn't work properly unless added here too\n min-height: 48px;\n }\n }\n"],["\n .lt-reach .Toastify .Toastify__toast-container {\n ","\n\n ","\n }\n\n .Toastify {\n .Toastify__toast-container {\n // This allows us to have wider toasts that do not wrap too soon.\n // Toastify itself will add responsive design at 480px and span the\n // toast the full width...\n max-width: 540px;\n width: auto;\n z-index: 1000001;\n\n @media (max-width: 480px) {\n padding: 0 10px !important;\n }\n }\n\n .Toastify__toast-body {\n display: flex;\n flex: 1 1 540px;\n height: 100%;\n justify-content: center;\n flex-direction: column;\n // IE fix: this is a default value from Toastify but doesn't work properly unless added here too\n min-height: 48px;\n }\n }\n"])),(function(e){return!e.chromeless&&a.css(M9||(M9=oV(["\n top: 4em;\n "],["\n top: 4em;\n "])))}),(function(e){return e.chromeless&&a.css(j9||(j9=oV(["\n @media all and (max-width: ","px) {\n top: 0.5em;\n right: 0.5em;\n }\n "],["\n @media all and (max-width: ","px) {\n top: 0.5em;\n right: 0.5em;\n }\n "])),g9)}));function U9(){var e=tU();return i.useMemo((function(){return{getAllKeywords:t,getAllKeywordsByGroupIds:function(){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if(ZU(n))return ZH(n,null);if($U(n)&&Object.getPrototypeOf(n)===Object.prototype){var i=Object.keys(n);return ZH(i.map((function(e){return n[e]})),i)}}if("function"==typeof e[e.length-1]){var r=e.pop();return ZH(e=1===e.length&&ZU(e[0])?e[0]:e,null).pipe(MH((function(e){return r.apply(void 0,e)})))}return ZH(e,null)}(n(),t()).pipe(MH((function(e){var t=e[0],n=e[1],i={};return t.forEach((function(e){i[e.id]=n.filter((function(t){return t.groupId===e.id}))})),i}))).toPromise()},getSelectedGroups:n};function t(t){return e.all("keywords").getAll({},{"Cache-Control":t?"no-cache":"private"}).then((function(e){return e.body().map((function(e){return e.data()}))}))}function n(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.all("keyword_groups/selected").getAll().then((function(e){return e.body().map((function(e){return e.data()}))})).then((function(e){return e}))]}))}))}}),[e])}var H9,W9=i.createContext(null),Y9=function(e){var n=e.children,r=r0(),a=i.useContext(_E).identifier,o=function(){var e=tU();return i.useMemo((function(){return{getChannels:function(){return iV(this,void 0,void 0,(function(){return rV(this,(function(t){return[2,e.all("subscriptions/current/channels").getAll().then((function(e){return e.body().map((function(e){return e.data()}))}))]}))}))}}}),[e])}().getChannels,s=U9(),l=s.getAllKeywords,u=s.getSelectedGroups,c=i.useContext(hE),d=c.handleFatalError,f=c.handleAccessDeniedError,p=i.useCallback((function(){var e,t;return iV(this,void 0,void 0,(function(){var n,i,r,a,s,l,u;return rV(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),H9=new Promise((function(e){return n=e})),[4,Promise.all([o(),F(),k()])];case 1:return i=c.sent(),r=i[0],a=i[1],s=i[2],l=s.reduce((function(e,t){var n;return tV(tV({},e),((n={})[t.id]=a.filter((function(e){return e.groupId===t.id})),n))}),{}),n(r),[2,{channels:r,allKeywords:a,keywordsByGroupId:l,selectedKeywordGroups:s}];case 2:return u=c.sent(),im.error(JSON.stringify(u)),403===(null===(e=null==u?void 0:u.response)||void 0===e?void 0:e.statusCode)?f({error:null===(t=null==u?void 0:u.response)||void 0===t?void 0:t.data}):d({error:u}),[2,{}];case 3:return[2]}}))}))}),[o,l,u]),h=IF(p,{},[a.id,o,l]),g=h[0],m=g.channels,v=g.allKeywords,_=g.keywordsByGroupId,b=g.selectedKeywordGroups,y=h[3],w=i.useMemo((function(){return{channels:m,getChannels:function(){return H9},allKeywords:v,keywordsByGroupId:_,selectedKeywordGroups:b,refreshSubscription:function(){return iV(void 0,void 0,void 0,(function(){var e;return rV(this,(function(t){switch(t.label){case 0:return[4,p()];case 1:return e=t.sent(),y(e),[2]}}))}))}}}),[m,v,_,b,y,p]);return t.jsx(W9.Provider,tV({value:w},{children:n}),void 0);function F(){return iV(this,void 0,void 0,(function(){var e;return rV(this,(function(t){switch(t.label){case 0:if(!r.keywords)return[2,[]];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,l()];case 2:return[2,t.sent()];case 3:return e=t.sent(),im.error(e),[2,[]];case 4:return[2]}}))}))}function k(){return iV(this,void 0,void 0,(function(){var e;return rV(this,(function(t){switch(t.label){case 0:if(!r.keywords)return[2,[]];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,u()];case 2:return[2,t.sent()];case 3:return e=t.sent(),im.error(e),[2,[]];case 4:return[2]}}))}))}};var V9={};function K9(e){var t;(null==e?void 0:e.type)&&(null===(t=V9[e.type])||void 0===t||t.some((function(t){return t(e)})))}function J9(e,t,n){i.useEffect((function(){if(e)return V9[e]||(V9[e]=[]),V9[e].push(t),function(){V9[e]=V9[e].filter((function(e){return e!==t}))}}),aV([e],n||[]))}var Q9=iQ,Z9=rQ,$9=oQ,X9=wV,e5=hQ,t5=[],n5=t5.sort,i5=X9((function(){t5.sort(void 0)})),r5=X9((function(){t5.sort(null)})),a5=e5("sort");Q9({target:"Array",proto:!0,forced:i5||!r5||!a5},{sort:function(e){return void 0===e?n5.call($9(this)):n5.call($9(this),Z9(e))}});var o5=q3,s5=[].reverse,l5=[1,2];iQ({target:"Array",proto:!0,forced:String(l5)===String(l5.reverse())},{reverse:function(){return o5(this)&&(this.length=this.length),s5.call(this)}});var u5,c5,d5,f5=[],p5=function(e,t){f5.some((function(t){return t.handler===e}))||f5.push({handler:e,priority:t||0})},h5=function(e){f5=f5.filter((function(t){return t.handler!==e}))};!function(e){e.NotDeleted="NOT_DELETED",e.RecycleBin="RECYCLE_BIN",e.Deleted="DELETED"}(u5||(u5={})),function(e){e.Default="DEFAULT",e.GroupNameChange="GROUP_NAME_CHANGE",e.UserLeftGroup="USER_LEFT_GROUP"}(c5||(c5={})),function(e){e.Normal="NORMAL",e.LeftGroupChat="LEFT_GROUP_CHAT",e.LeftOneToOneChat="LEFT_ONE_TO_ONE_CHAT"}(d5||(d5={})),(new hH).pipe(UY(100),(function(e){return mH()((t=KY,function(e){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new VY(i,n));var r=Object.create(e,yH);return r.source=e,r.subjectFactory=i,r})(e));var t,n}));BY("/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */\n/*\n\tStyles for basic PhotoSwipe functionality (sliding area, open/close transitions)\n*/\n/* pswp = photoswipe */\n.pswp {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n touch-action: none;\n z-index: 1500;\n -webkit-text-size-adjust: 100%;\n /* create separate layer, to avoid paint on window.onscroll in webkit/blink */\n -webkit-backface-visibility: hidden;\n outline: none; }\n .pswp * {\n box-sizing: border-box; }\n .pswp img {\n max-width: none; }\n\n/* style is added when JS option showHideOpacity is set to true */\n.pswp--animate_opacity {\n /* 0.001, because opacity:0 doesn't trigger Paint action, which causes lag at start of transition */\n opacity: 0.001;\n will-change: opacity;\n /* for open/close transition */\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n.pswp--open {\n display: block; }\n\n.pswp--zoom-allowed .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-zoom-in;\n cursor: -moz-zoom-in;\n cursor: zoom-in; }\n\n.pswp--zoomed-in .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab; }\n\n.pswp--dragging .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing; }\n\n/*\n\tBackground is added as a separate element.\n\tAs animating opacity is much faster than animating rgba() background-color.\n*/\n.pswp__bg {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0;\n transform: translateZ(0);\n -webkit-backface-visibility: hidden;\n will-change: opacity; }\n\n.pswp__scroll-wrap {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden; }\n\n.pswp__container,\n.pswp__zoom-wrap {\n touch-action: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0; }\n\n/* Prevent selection and tap highlights */\n.pswp__container,\n.pswp__img {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none; }\n\n.pswp__zoom-wrap {\n position: absolute;\n width: 100%;\n transform-origin: left top;\n /* for open/close transition */\n transition: transform 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n.pswp__bg {\n will-change: opacity;\n /* for open/close transition */\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n.pswp--animated-in .pswp__bg,\n.pswp--animated-in .pswp__zoom-wrap {\n transition: none; }\n\n.pswp__container,\n.pswp__zoom-wrap {\n -webkit-backface-visibility: hidden; }\n\n.pswp__item {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden; }\n\n.pswp__img {\n position: absolute;\n width: auto;\n height: auto;\n top: 0;\n left: 0; }\n\n/*\n\tstretched thumbnail or div placeholder element (see below)\n\tstyle is added to avoid flickering in webkit/blink when layers overlap\n*/\n.pswp__img--placeholder {\n -webkit-backface-visibility: hidden; }\n\n/*\n\tdiv element that matches size of large image\n\tlarge image loads on top of it\n*/\n.pswp__img--placeholder--blank {\n background: #222; }\n\n.pswp--ie .pswp__img {\n width: 100% !important;\n height: auto !important;\n left: 0;\n top: 0; }\n\n/*\n\tError message appears when image is not loaded\n\t(JS option errorMsg controls markup)\n*/\n.pswp__error-msg {\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n text-align: center;\n font-size: 14px;\n line-height: 16px;\n margin-top: -8px;\n color: #CCC; }\n\n.pswp__error-msg a {\n color: #CCC;\n text-decoration: underline; }\n");BY('/*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */\n/*\n\n\tContents:\n\n\t1. Buttons\n\t2. Share modal and links\n\t3. Index indicator ("1 of X" counter)\n\t4. Caption\n\t5. Loading indicator\n\t6. Additional styles (root element, top bar, idle state, hidden state, etc.)\n\n*/\n/*\n\t\n\t1. Buttons\n\n */\n/* <button> css reset */\n.pswp__button {\n width: 44px;\n height: 44px;\n position: relative;\n background: none;\n cursor: pointer;\n overflow: visible;\n -webkit-appearance: none;\n display: block;\n border: 0;\n padding: 0;\n margin: 0;\n float: right;\n opacity: 0.75;\n transition: opacity 0.2s;\n box-shadow: none; }\n .pswp__button:focus, .pswp__button:hover {\n opacity: 1; }\n .pswp__button:active {\n outline: none;\n opacity: 0.9; }\n .pswp__button::-moz-focus-inner {\n padding: 0;\n border: 0; }\n\n/* pswp__ui--over-close class it added when mouse is over element that should close gallery */\n.pswp__ui--over-close .pswp__button--close {\n opacity: 1; }\n\n.pswp__button,\n.pswp__button--arrow--left:before,\n.pswp__button--arrow--right:before {\n background: url(default-skin.png) 0 0 no-repeat;\n background-size: 264px 88px;\n width: 44px;\n height: 44px; }\n\n@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {\n /* Serve SVG sprite if browser supports SVG and resolution is more than 105dpi */\n .pswp--svg .pswp__button,\n .pswp--svg .pswp__button--arrow--left:before,\n .pswp--svg .pswp__button--arrow--right:before {\n background-image: url(default-skin.svg); }\n .pswp--svg .pswp__button--arrow--left,\n .pswp--svg .pswp__button--arrow--right {\n background: none; } }\n\n.pswp__button--close {\n background-position: 0 -44px; }\n\n.pswp__button--share {\n background-position: -44px -44px; }\n\n.pswp__button--fs {\n display: none; }\n\n.pswp--supports-fs .pswp__button--fs {\n display: block; }\n\n.pswp--fs .pswp__button--fs {\n background-position: -44px 0; }\n\n.pswp__button--zoom {\n display: none;\n background-position: -88px 0; }\n\n.pswp--zoom-allowed .pswp__button--zoom {\n display: block; }\n\n.pswp--zoomed-in .pswp__button--zoom {\n background-position: -132px 0; }\n\n/* no arrows on touch screens */\n.pswp--touch .pswp__button--arrow--left,\n.pswp--touch .pswp__button--arrow--right {\n visibility: hidden; }\n\n/*\n\tArrow buttons hit area\n\t(icon is added to :before pseudo-element)\n*/\n.pswp__button--arrow--left,\n.pswp__button--arrow--right {\n background: none;\n top: 50%;\n margin-top: -50px;\n width: 70px;\n height: 100px;\n position: absolute; }\n\n.pswp__button--arrow--left {\n left: 0; }\n\n.pswp__button--arrow--right {\n right: 0; }\n\n.pswp__button--arrow--left:before,\n.pswp__button--arrow--right:before {\n content: \'\';\n top: 35px;\n background-color: rgba(0, 0, 0, 0.3);\n height: 30px;\n width: 32px;\n position: absolute; }\n\n.pswp__button--arrow--left:before {\n left: 6px;\n background-position: -138px -44px; }\n\n.pswp__button--arrow--right:before {\n right: 6px;\n background-position: -94px -44px; }\n\n/*\n\n\t2. Share modal/popup and links\n\n */\n.pswp__counter,\n.pswp__share-modal {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n\n.pswp__share-modal {\n display: block;\n background: rgba(0, 0, 0, 0.5);\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n padding: 10px;\n position: absolute;\n z-index: 1600;\n opacity: 0;\n transition: opacity 0.25s ease-out;\n -webkit-backface-visibility: hidden;\n will-change: opacity; }\n\n.pswp__share-modal--hidden {\n display: none; }\n\n.pswp__share-tooltip {\n z-index: 1620;\n position: absolute;\n background: #FFF;\n top: 56px;\n border-radius: 2px;\n display: block;\n width: auto;\n right: 44px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n transform: translateY(6px);\n transition: transform 0.25s;\n -webkit-backface-visibility: hidden;\n will-change: transform; }\n .pswp__share-tooltip a {\n display: block;\n padding: 8px 12px;\n color: #000;\n text-decoration: none;\n font-size: 14px;\n line-height: 18px; }\n .pswp__share-tooltip a:hover {\n text-decoration: none;\n color: #000; }\n .pswp__share-tooltip a:first-child {\n /* round corners on the first/last list item */\n border-radius: 2px 2px 0 0; }\n .pswp__share-tooltip a:last-child {\n border-radius: 0 0 2px 2px; }\n\n.pswp__share-modal--fade-in {\n opacity: 1; }\n .pswp__share-modal--fade-in .pswp__share-tooltip {\n transform: translateY(0); }\n\n/* increase size of share links on touch devices */\n.pswp--touch .pswp__share-tooltip a {\n padding: 16px 12px; }\n\na.pswp__share--facebook:before {\n content: \'\';\n display: block;\n width: 0;\n height: 0;\n position: absolute;\n top: -12px;\n right: 15px;\n border: 6px solid transparent;\n border-bottom-color: #FFF;\n -webkit-pointer-events: none;\n -moz-pointer-events: none;\n pointer-events: none; }\n\na.pswp__share--facebook:hover {\n background: #3E5C9A;\n color: #FFF; }\n a.pswp__share--facebook:hover:before {\n border-bottom-color: #3E5C9A; }\n\na.pswp__share--twitter:hover {\n background: #55ACEE;\n color: #FFF; }\n\na.pswp__share--pinterest:hover {\n background: #CCC;\n color: #CE272D; }\n\na.pswp__share--download:hover {\n background: #DDD; }\n\n/*\n\n\t3. Index indicator ("1 of X" counter)\n\n */\n.pswp__counter {\n position: absolute;\n left: 0;\n top: 0;\n height: 44px;\n font-size: 13px;\n line-height: 44px;\n color: #FFF;\n opacity: 0.75;\n padding: 0 10px; }\n\n/*\n\t\n\t4. Caption\n\n */\n.pswp__caption {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n min-height: 44px; }\n .pswp__caption small {\n font-size: 11px;\n color: #BBB; }\n\n.pswp__caption__center {\n text-align: left;\n max-width: 420px;\n margin: 0 auto;\n font-size: 13px;\n padding: 10px;\n line-height: 20px;\n color: #CCC; }\n\n.pswp__caption--empty {\n display: none; }\n\n/* Fake caption element, used to calculate height of next/prev image */\n.pswp__caption--fake {\n visibility: hidden; }\n\n/*\n\n\t5. Loading indicator (preloader)\n\n\tYou can play with it here - http://codepen.io/dimsemenov/pen/yyBWoR\n\n */\n.pswp__preloader {\n width: 44px;\n height: 44px;\n position: absolute;\n top: 0;\n left: 50%;\n margin-left: -22px;\n opacity: 0;\n transition: opacity 0.25s ease-out;\n will-change: opacity;\n direction: ltr; }\n\n.pswp__preloader__icn {\n width: 20px;\n height: 20px;\n margin: 12px; }\n\n.pswp__preloader--active {\n opacity: 1; }\n .pswp__preloader--active .pswp__preloader__icn {\n /* We use .gif in browsers that don\'t support CSS animation */\n background: url(preloader.gif) 0 0 no-repeat; }\n\n.pswp--css_animation .pswp__preloader--active {\n opacity: 1; }\n .pswp--css_animation .pswp__preloader--active .pswp__preloader__icn {\n -webkit-animation: clockwise 500ms linear infinite;\n animation: clockwise 500ms linear infinite; }\n .pswp--css_animation .pswp__preloader--active .pswp__preloader__donut {\n -webkit-animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite;\n animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite; }\n\n.pswp--css_animation .pswp__preloader__icn {\n background: none;\n opacity: 0.75;\n width: 14px;\n height: 14px;\n position: absolute;\n left: 15px;\n top: 15px;\n margin: 0; }\n\n.pswp--css_animation .pswp__preloader__cut {\n /* \n\t\t\tThe idea of animating inner circle is based on Polymer ("material") loading indicator \n\t\t\t by Keanu Lee https://blog.keanulee.com/2014/10/20/the-tale-of-three-spinners.html\n\t\t*/\n position: relative;\n width: 7px;\n height: 14px;\n overflow: hidden; }\n\n.pswp--css_animation .pswp__preloader__donut {\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n border: 2px solid #FFF;\n border-radius: 50%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n position: absolute;\n top: 0;\n left: 0;\n background: none;\n margin: 0; }\n\n@media screen and (max-width: 1024px) {\n .pswp__preloader {\n position: relative;\n left: auto;\n top: auto;\n margin: 0;\n float: right; } }\n\n@-webkit-keyframes clockwise {\n 0% {\n transform: rotate(0deg); }\n 100% {\n transform: rotate(360deg); } }\n\n@keyframes clockwise {\n 0% {\n transform: rotate(0deg); }\n 100% {\n transform: rotate(360deg); } }\n\n@-webkit-keyframes donut-rotate {\n 0% {\n transform: rotate(0); }\n 50% {\n transform: rotate(-140deg); }\n 100% {\n transform: rotate(0); } }\n\n@keyframes donut-rotate {\n 0% {\n transform: rotate(0); }\n 50% {\n transform: rotate(-140deg); }\n 100% {\n transform: rotate(0); } }\n\n/*\n\t\n\t6. Additional styles\n\n */\n/* root element of UI */\n.pswp__ui {\n -webkit-font-smoothing: auto;\n visibility: visible;\n opacity: 1;\n z-index: 1550; }\n\n/* top black bar with buttons and "1 of X" indicator */\n.pswp__top-bar {\n position: absolute;\n left: 0;\n top: 0;\n height: 44px;\n width: 100%; }\n\n.pswp__caption,\n.pswp__top-bar,\n.pswp--has_mouse .pswp__button--arrow--left,\n.pswp--has_mouse .pswp__button--arrow--right {\n -webkit-backface-visibility: hidden;\n will-change: opacity;\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1); }\n\n/* pswp--has_mouse class is added only when two subsequent mousemove events occur */\n.pswp--has_mouse .pswp__button--arrow--left,\n.pswp--has_mouse .pswp__button--arrow--right {\n visibility: visible; }\n\n.pswp__top-bar,\n.pswp__caption {\n background-color: rgba(0, 0, 0, 0.5); }\n\n/* pswp__ui--fit class is added when main image "fits" between top bar and bottom bar (caption) */\n.pswp__ui--fit .pswp__top-bar,\n.pswp__ui--fit .pswp__caption {\n background-color: rgba(0, 0, 0, 0.3); }\n\n/* pswp__ui--idle class is added when mouse isn\'t moving for several seconds (JS option timeToIdle) */\n.pswp__ui--idle .pswp__top-bar {\n opacity: 0; }\n\n.pswp__ui--idle .pswp__button--arrow--left,\n.pswp__ui--idle .pswp__button--arrow--right {\n opacity: 0; }\n\n/*\n\tpswp__ui--hidden class is added when controls are hidden\n\te.g. when user taps to toggle visibility of controls\n*/\n.pswp__ui--hidden .pswp__top-bar,\n.pswp__ui--hidden .pswp__caption,\n.pswp__ui--hidden .pswp__button--arrow--left,\n.pswp__ui--hidden .pswp__button--arrow--right {\n /* Force paint & create composition layer for controls. */\n opacity: 0.001; }\n\n/* pswp__ui--one-slide class is added when there is just one item in gallery */\n.pswp__ui--one-slide .pswp__button--arrow--left,\n.pswp__ui--one-slide .pswp__button--arrow--right,\n.pswp__ui--one-slide .pswp__counter {\n display: none; }\n\n.pswp__element--disabled {\n display: none !important; }\n\n.pswp--minimal--dark .pswp__top-bar {\n background: none; }\n');var g5={exports:{}};
|
|
117
117
|
/*! PhotoSwipe - v4.1.3 - 2019-01-08
|
|
118
118
|
* http://photoswipe.com
|
|
119
119
|
* Copyright (c) 2019 Dmitry Semenov; */!function(e,t){e.exports=function(){var e=function(e,t,n,i){var r={features:null,bind:function(e,t,n,i){var r=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[r](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){r.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){r.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(r.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(r.features)return r.features;var e=r.createEl().style,t="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var i=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&a<8&&(n.isOldIOSPhone=!0)}var o=i.match(/Android\s([0-9\.]*)/),s=o?o[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(n.isOldAndroid=!0),n.androidVersion=s),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,u,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],f=0;f<4;f++){t=d[f];for(var p=0;p<3;p++)l=c[p],u=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&u in e&&(n[l]=u);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var h=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),i=window.setTimeout((function(){e(t+n)}),n);return h=t+n,i},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r.features=n,n}};r.detectFeatures(),r.features.oldIE&&(r.bind=function(e,t,n,i){t=t.split(" ");for(var r,a=(i?"detach":"attach")+"Event",o=function(){n.handleEvent.call(n)},s=0;s<t.length;s++)if(r=t[s])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+r])return!1}else n["oldIE"+r]=o;e[a]("on"+r,n["oldIE"+r])}else e[a]("on"+r,n)});var a=this,o=25,s=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};r.extend(l,i);var u,c,d,f,p,h,g,m,v,_,b,y,w,F,k,x,E,C,S,D,P,A,T,L,I,M,j,N,R,O,z,B,G,q,U,H,W,Y,V,K,J,Q,Z,$,X,ee,te,ne,ie,re,ae,oe,se,le,ue,ce,de=function(){return{x:0,y:0}},fe=de(),pe=de(),he=de(),ge={},me=0,ve={},_e=de(),be=0,ye=!0,we=[],Fe={},ke=!1,xe=function(e,t){r.extend(a,t.publicMethods),we.push(e)},Ee=function(e){var t=Xt();return e>t-1?e-t:e<0?t+e:e},Ce={},Se=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t)},De=function(e){var t=Ce[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(a,n)}},Pe=function(){return(new Date).getTime()},Ae=function(e){le=e,a.bg.style.opacity=e*l.bgOpacity},Te=function(e,t,n,i,r){(!ke||r&&r!==a.currItem)&&(i/=r?r.fitRatio:a.currItem.fitRatio),e[A]=y+t+"px, "+n+"px"+w+" scale("+i+")"},Le=function(e){ie&&(e&&(_>a.currItem.fitRatio?ke||(dn(a.currItem,!1,!0),ke=!0):ke&&(dn(a.currItem),ke=!1)),Te(ie,he.x,he.y,_))},Ie=function(e){e.container&&Te(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Me=function(e,t){t[A]=y+e+"px, 0px"+w},je=function(e,t){if(!l.loop&&t){var n=f+(_e.x*me-e)/_e.x,i=Math.round(e-_t.x);(n<0&&i>0||n>=Xt()-1&&i<0)&&(e=_t.x+i*l.mainScrollEndFriction)}_t.x=e,Me(e,p)},Ne=function(e,t){var n=bt[e]-ve[e];return pe[e]+fe[e]+n-n*(t/b)},Re=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Oe=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},ze=null,Be=function(){ze&&(r.unbind(document,"mousemove",Be),r.addClass(e,"pswp--has_mouse"),l.mouseUsed=!0,De("mouseUsed")),ze=setTimeout((function(){ze=null}),100)},Ge=function(){r.bind(document,"keydown",a),z.transform&&r.bind(a.scrollWrap,"click",a),l.mouseUsed||r.bind(document,"mousemove",Be),r.bind(window,"resize scroll orientationchange",a),De("bindEvents")},qe=function(){r.unbind(window,"resize scroll orientationchange",a),r.unbind(window,"scroll",v.scroll),r.unbind(document,"keydown",a),r.unbind(document,"mousemove",Be),z.transform&&r.unbind(a.scrollWrap,"click",a),V&&r.unbind(window,g,a),clearTimeout(B),De("unbindEvents")},Ue=function(e,t){var n=sn(a.currItem,ge,e);return t&&(ne=n),n},He=function(e){return e||(e=a.currItem),e.initialZoomLevel},We=function(e){return e||(e=a.currItem),e.w>0?l.maxSpreadZoom:1},Ye=function(e,t,n,i){return i===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Ne(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Ve=function(){if(A){var t=z.perspective&&!L;return y="translate"+(t?"3d(":"("),void(w=z.perspective?", 0px)":")")}A="left",r.addClass(e,"pswp--ie"),Me=function(e,t){t.left=e+"px"},Ie=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,i=t*e.w,r=t*e.h;n.width=i+"px",n.height=r+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Le=function(){if(ie){var e=ie,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,i=n*t.w,r=n*t.h;e.width=i+"px",e.height=r+"px",e.left=he.x+"px",e.top=he.y+"px"}}},Ke=function(e){var t="";l.escKey&&27===e.keyCode?t="close":l.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,a[t]()))},Je=function(e){e&&(Q||J||re||W)&&(e.preventDefault(),e.stopPropagation())},Qe=function(){a.setScrollOffset(0,r.getScrollY())},Ze={},$e=0,Xe=function(e){Ze[e]&&(Ze[e].raf&&M(Ze[e].raf),$e--,delete Ze[e])},et=function(e){Ze[e]&&Xe(e),Ze[e]||($e++,Ze[e]={})},tt=function(){for(var e in Ze)Ze.hasOwnProperty(e)&&Xe(e)},nt=function(e,t,n,i,r,a,o){var s,l=Pe();et(e);var u=function(){if(Ze[e]){if((s=Pe()-l)>=i)return Xe(e),a(n),void(o&&o());a((n-t)*r(s/i)+t),Ze[e].raf=I(u)}};u()},it={shout:De,listen:Se,viewportSize:ge,options:l,isMainScrollAnimating:function(){return re},getZoomLevel:function(){return _},getCurrentIndex:function(){return f},isDragging:function(){return V},isZooming:function(){return ee},setScrollOffset:function(e,t){ve.x=e,O=ve.y=t,De("updateScrollOffset",ve)},applyZoomPan:function(e,t,n,i){he.x=t,he.y=n,_=e,Le(i)},init:function(){if(!u&&!c){var n;a.framework=r,a.template=e,a.bg=r.getChildByClass(e,"pswp__bg"),j=e.className,u=!0,z=r.detectFeatures(),I=z.raf,M=z.caf,A=z.transform,R=z.oldIE,a.scrollWrap=r.getChildByClass(e,"pswp__scroll-wrap"),a.container=r.getChildByClass(a.scrollWrap,"pswp__container"),p=a.container.style,a.itemHolders=x=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],x[0].el.style.display=x[2].el.style.display="none",Ve(),v={resize:a.updateSize,orientationchange:function(){clearTimeout(B),B=setTimeout((function(){ge.x!==a.scrollWrap.clientWidth&&a.updateSize()}),500)},scroll:Qe,keydown:Ke,click:Je};var i=z.isOldIOSPhone||z.isOldAndroid||z.isMobileOpera;for(z.animationName&&z.transform&&!i||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<we.length;n++)a["init"+we[n]]();t&&(a.ui=new t(a,r)).init(),De("firstUpdate"),f=f||l.index||0,(isNaN(f)||f<0||f>=Xt())&&(f=0),a.currItem=$t(f),(z.isOldIOSPhone||z.isOldAndroid)&&(ye=!1),e.setAttribute("aria-hidden","false"),l.modal&&(ye?e.style.position="fixed":(e.style.position="absolute",e.style.top=r.getScrollY()+"px")),void 0===O&&(De("initialLayout"),O=N=r.getScrollY());var o="pswp--open ";for(l.mainClass&&(o+=l.mainClass+" "),l.showHideOpacity&&(o+="pswp--animate_opacity "),o+=L?"pswp--touch":"pswp--notouch",o+=z.animationName?" pswp--css_animation":"",o+=z.svg?" pswp--svg":"",r.addClass(e,o),a.updateSize(),h=-1,be=null,n=0;n<s;n++)Me((n+h)*_e.x,x[n].el.style);R||r.bind(a.scrollWrap,m,a),Se("initialZoomInEnd",(function(){a.setContent(x[0],f-1),a.setContent(x[2],f+1),x[0].el.style.display=x[2].el.style.display="block",l.focus&&e.focus(),Ge()})),a.setContent(x[1],f),a.updateCurrItem(),De("afterInit"),ye||(F=setInterval((function(){$e||V||ee||_!==a.currItem.initialZoomLevel||a.updateSize()}),1e3)),r.addClass(e,"pswp--visible")}},close:function(){u&&(u=!1,c=!0,De("close"),qe(),en(a.currItem,null,!0,a.destroy))},destroy:function(){De("destroy"),Kt&&clearTimeout(Kt),e.setAttribute("aria-hidden","true"),e.className=j,F&&clearInterval(F),r.unbind(a.scrollWrap,m,a),r.unbind(window,"scroll",a),xt(),tt(),Ce=null},panTo:function(e,t,n){n||(e>ne.min.x?e=ne.min.x:e<ne.max.x&&(e=ne.max.x),t>ne.min.y?t=ne.min.y:t<ne.max.y&&(t=ne.max.y)),he.x=e,he.y=t,Le()},handleEvent:function(e){e=e||window.event,v[e.type]&&v[e.type](e)},goTo:function(e){var t=(e=Ee(e))-f;be=t,f=e,a.currItem=$t(f),me-=t,je(_e.x*me),tt(),re=!1,a.updateCurrItem()},next:function(){a.goTo(f+1)},prev:function(){a.goTo(f-1)},updateCurrZoomItem:function(e){if(e&&De("beforeChange",0),x[1].el.children.length){var t=x[1].el.children[0];ie=r.hasClass(t,"pswp__zoom-wrap")?t.style:null}else ie=null;ne=a.currItem.bounds,b=_=a.currItem.initialZoomLevel,he.x=ne.center.x,he.y=ne.center.y,e&&De("afterChange")},invalidateCurrItems:function(){k=!0;for(var e=0;e<s;e++)x[e].item&&(x[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==be){var t,n=Math.abs(be);if(!(e&&n<2)){a.currItem=$t(f),ke=!1,De("beforeChange",be),n>=s&&(h+=be+(be>0?-s:s),n=s);for(var i=0;i<n;i++)be>0?(t=x.shift(),x[s-1]=t,h++,Me((h+2)*_e.x,t.el.style),a.setContent(t,f-n+i+1+1)):(t=x.pop(),x.unshift(t),h--,Me(h*_e.x,t.el.style),a.setContent(t,f+n-i-1-1));if(ie&&1===Math.abs(be)){var r=$t(E);r.initialZoomLevel!==_&&(sn(r,ge),dn(r),Ie(r))}be=0,a.updateCurrZoomItem(),E=f,De("afterChange")}}},updateSize:function(t){if(!ye&&l.modal){var n=r.getScrollY();if(O!==n&&(e.style.top=n+"px",O=n),!t&&Fe.x===window.innerWidth&&Fe.y===window.innerHeight)return;Fe.x=window.innerWidth,Fe.y=window.innerHeight,e.style.height=Fe.y+"px"}if(ge.x=a.scrollWrap.clientWidth,ge.y=a.scrollWrap.clientHeight,Qe(),_e.x=ge.x+Math.round(ge.x*l.spacing),_e.y=ge.y,je(_e.x*me),De("beforeResize"),void 0!==h){for(var i,o,u,c=0;c<s;c++)i=x[c],Me((c+h)*_e.x,i.el.style),u=f+c-1,l.loop&&Xt()>2&&(u=Ee(u)),(o=$t(u))&&(k||o.needsUpdate||!o.bounds)?(a.cleanSlide(o),a.setContent(i,u),1===c&&(a.currItem=o,a.updateCurrZoomItem(!0)),o.needsUpdate=!1):-1===i.index&&u>=0&&a.setContent(i,u),o&&o.container&&(sn(o,ge),dn(o),Ie(o));k=!1}b=_=a.currItem.initialZoomLevel,(ne=a.currItem.bounds)&&(he.x=ne.center.x,he.y=ne.center.y,Le(!0)),De("resize")},zoomTo:function(e,t,n,i,a){t&&(b=_,bt.x=Math.abs(t.x)-he.x,bt.y=Math.abs(t.y)-he.y,Re(pe,he));var o=Ue(e,!1),s={};Ye("x",o,s,e),Ye("y",o,s,e);var l=_,u={x:he.x,y:he.y};Oe(s);var c=function(t){1===t?(_=e,he.x=s.x,he.y=s.y):(_=(e-l)*t+l,he.x=(s.x-u.x)*t+u.x,he.y=(s.y-u.y)*t+u.y),a&&a(t),Le(1===t)};n?nt("customZoomTo",0,1,n,i||r.easing.sine.inOut,c):c(1)}},rt=30,at=10,ot={},st={},lt={},ut={},ct={},dt=[],ft={},pt=[],ht={},gt=0,mt=de(),vt=0,_t=de(),bt=de(),yt=de(),wt=function(e,t){return e.x===t.x&&e.y===t.y},Ft=function(e,t){return Math.abs(e.x-t.x)<o&&Math.abs(e.y-t.y)<o},kt=function(e,t){return ht.x=Math.abs(e.x-t.x),ht.y=Math.abs(e.y-t.y),Math.sqrt(ht.x*ht.x+ht.y*ht.y)},xt=function(){Z&&(M(Z),Z=null)},Et=function(){V&&(Z=I(Et),Gt())},Ct=function(){return!("fit"===l.scaleMode&&_===a.currItem.initialZoomLevel)},St=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:St(e.parentNode,t))},Dt={},Pt=function(e,t){return Dt.prevent=!St(e.target,l.isClickableElement),De("preventDragEvent",e,t,Dt),Dt.prevent},At=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Tt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Lt=function(e,t,n){if(e-q>50){var i=pt.length>2?pt.shift():{};i.x=t,i.y=n,pt.push(i),q=e}},It=function(){var e=he.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(ge.y/2))},Mt={},jt={},Nt=[],Rt=function(e){for(;Nt.length>0;)Nt.pop();return T?(ce=0,dt.forEach((function(e){0===ce?Nt[0]=e:1===ce&&(Nt[1]=e),ce++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Nt[0]=At(e.touches[0],Mt),e.touches.length>1&&(Nt[1]=At(e.touches[1],jt))):(Mt.x=e.pageX,Mt.y=e.pageY,Mt.id="",Nt[0]=Mt),Nt},Ot=function(e,t){var n,i,r,o,s=he[e]+t[e],u=t[e]>0,c=_t.x+t.x,d=_t.x-ft.x;if(n=s>ne.min[e]||s<ne.max[e]?l.panEndFriction:1,s=he[e]+t[e]*n,(l.allowPanToNext||_===a.currItem.initialZoomLevel)&&(ie?"h"!==ae||"x"!==e||J||(u?(s>ne.min[e]&&(n=l.panEndFriction,ne.min[e],i=ne.min[e]-pe[e]),(i<=0||d<0)&&Xt()>1?(o=c,d<0&&c>ft.x&&(o=ft.x)):ne.min.x!==ne.max.x&&(r=s)):(s<ne.max[e]&&(n=l.panEndFriction,ne.max[e],i=pe[e]-ne.max[e]),(i<=0||d>0)&&Xt()>1?(o=c,d>0&&c<ft.x&&(o=ft.x)):ne.min.x!==ne.max.x&&(r=s))):o=c,"x"===e))return void 0!==o&&(je(o,!0),$=o!==ft.x),ne.min.x!==ne.max.x&&(void 0!==r?he.x=r:$||(he.x+=t.x*n)),void 0!==o;re||$||_>a.currItem.fitRatio&&(he[e]+=t[e]*n)},zt=function(e){if(!("mousedown"===e.type&&e.button>0))if(Zt)e.preventDefault();else if(!Y||"mousedown"!==e.type){if(Pt(e,!0)&&e.preventDefault(),De("pointerDown"),T){var t=r.arraySearch(dt,e.pointerId,"id");t<0&&(t=dt.length),dt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Rt(e),i=n.length;X=null,tt(),V&&1!==i||(V=oe=!0,r.bind(window,g,a),H=ue=se=W=$=Q=K=J=!1,ae=null,De("firstTouchStart",n),Re(pe,he),fe.x=fe.y=0,Re(ut,n[0]),Re(ct,ut),ft.x=_e.x*me,pt=[{x:ut.x,y:ut.y}],q=G=Pe(),Ue(_,!0),xt(),Et()),!ee&&i>1&&!re&&!$&&(b=_,J=!1,ee=K=!0,fe.y=fe.x=0,Re(pe,he),Re(ot,n[0]),Re(st,n[1]),Tt(ot,st,yt),bt.x=Math.abs(yt.x)-he.x,bt.y=Math.abs(yt.y)-he.y,te=kt(ot,st))}},Bt=function(e){if(e.preventDefault(),T){var t=r.arraySearch(dt,e.pointerId,"id");if(t>-1){var n=dt[t];n.x=e.pageX,n.y=e.pageY}}if(V){var i=Rt(e);if(ae||Q||ee)X=i;else if(_t.x!==_e.x*me)ae="h";else{var a=Math.abs(i[0].x-ut.x)-Math.abs(i[0].y-ut.y);Math.abs(a)>=at&&(ae=a>0?"h":"v",X=i)}}},Gt=function(){if(X){var e=X.length;if(0!==e)if(Re(ot,X[0]),lt.x=ot.x-ut.x,lt.y=ot.y-ut.y,ee&&e>1){if(ut.x=ot.x,ut.y=ot.y,!lt.x&&!lt.y&&wt(X[1],st))return;Re(st,X[1]),J||(J=!0,De("zoomGestureStarted"));var t=kt(ot,st),n=Yt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(ue=!0);var i=1,r=He(),o=We();if(n<r)if(l.pinchToClose&&!ue&&b<=a.currItem.initialZoomLevel){var s=1-(r-n)/(r/1.2);Ae(s),De("onPinchClose",s),se=!0}else(i=(r-n)/r)>1&&(i=1),n=r-i*(r/3);else n>o&&((i=(n-o)/(6*r))>1&&(i=1),n=o+i*r);i<0&&(i=0),Tt(ot,st,mt),fe.x+=mt.x-yt.x,fe.y+=mt.y-yt.y,Re(yt,mt),he.x=Ne("x",n),he.y=Ne("y",n),H=n>_,_=n,Le()}else{if(!ae)return;if(oe&&(oe=!1,Math.abs(lt.x)>=at&&(lt.x-=X[0].x-ct.x),Math.abs(lt.y)>=at&&(lt.y-=X[0].y-ct.y)),ut.x=ot.x,ut.y=ot.y,0===lt.x&&0===lt.y)return;if("v"===ae&&l.closeOnVerticalDrag&&!Ct()){fe.y+=lt.y,he.y+=lt.y;var u=It();return W=!0,De("onVerticalDrag",u),Ae(u),void Le()}Lt(Pe(),ot.x,ot.y),Q=!0,ne=a.currItem.bounds,Ot("x",lt)||(Ot("y",lt),Oe(he),Le())}}},qt=function(e){if(z.isOldAndroid){if(Y&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(Y),Y=setTimeout((function(){Y=0}),600))}var t;if(De("pointerUp"),Pt(e,!1)&&e.preventDefault(),T){var n=r.arraySearch(dt,e.pointerId,"id");if(n>-1)if(t=dt.splice(n,1)[0],navigator.msPointerEnabled){var i={4:"mouse",2:"touch",3:"pen"};t.type=i[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var o,s=Rt(e),u=s.length;if("mouseup"===e.type&&(u=0),2===u)return X=null,!0;1===u&&Re(ct,s[0]),0!==u||ae||re||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),De("touchRelease",e,t));var c=-1;if(0===u&&(V=!1,r.unbind(window,g,a),xt(),ee?c=0:-1!==vt&&(c=Pe()-vt)),vt=1===u?Pe():-1,o=-1!==c&&c<150?"zoom":"swipe",ee&&u<2&&(ee=!1,1===u&&(o="zoomPointerUp"),De("zoomGestureEnded")),X=null,Q||J||re||W)if(tt(),U||(U=Ut()),U.calculateSwipeSpeed("x"),W)if(It()<l.verticalDragRange)a.close();else{var d=he.y,f=le;nt("verticalDrag",0,1,300,r.easing.cubic.out,(function(e){he.y=(a.currItem.initialPosition.y-d)*e+d,Ae((1-f)*e+f),Le()})),De("onVerticalDrag",1)}else{if(($||re)&&0===u){if(Wt(o,U))return;o="zoomPointerUp"}re||("swipe"===o?!$&&_>a.currItem.fitRatio&&Ht(U):Vt())}},Ut=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){pt.length>1?(e=Pe()-q+50,t=pt[pt.length-2][i]):(e=Pe()-G,t=ct[i]),n.lastFlickOffset[i]=ut[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/e:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(he[e]>ne.min[e]?n.backAnimDestination[e]=ne.min[e]:he[e]<ne.max[e]&&(n.backAnimDestination[e]=ne.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,nt("bounceZoomPan"+e,he[e],n.backAnimDestination[e],t||300,r.easing.sine.out,(function(t){he[e]=t,Le()})))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,he[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ze.zoomPan&&(Ze.zoomPan.raf=I(n.panAnimLoop),n.now=Pe(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Le(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return he.x=Math.round(he.x),he.y=Math.round(he.y),Le(),void Xe("zoomPan")}};return n},Ht=function(e){if(e.calculateSwipeSpeed("y"),ne=a.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;et("zoomPan"),e.lastNow=Pe(),e.panAnimLoop()},Wt=function(e,t){var n,i,o;if(re||(gt=f),"swipe"===e){var s=ut.x-ct.x,u=t.lastFlickDist.x<10;s>rt&&(u||t.lastFlickOffset.x>20)?i=-1:s<-rt&&(u||t.lastFlickOffset.x<-20)&&(i=1)}i&&((f+=i)<0?(f=l.loop?Xt()-1:0,o=!0):f>=Xt()&&(f=l.loop?0:Xt()-1,o=!0),o&&!l.loop||(be+=i,me-=i,n=!0));var c,d=_e.x*me,p=Math.abs(d-_t.x);return n||d>_t.x==t.lastFlickSpeed.x>0?(c=Math.abs(t.lastFlickSpeed.x)>0?p/Math.abs(t.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,gt===f&&(n=!1),re=!0,De("mainScrollAnimStart"),nt("mainScroll",_t.x,d,c,r.easing.cubic.out,je,(function(){tt(),re=!1,gt=-1,(n||gt!==f)&&a.updateCurrItem(),De("mainScrollAnimComplete")})),n&&a.updateCurrItem(!0),n},Yt=function(e){return 1/te*e*b},Vt=function(){var e=_,t=He(),n=We();_<t?e=t:_>n&&(e=n);var i,o=1,s=le;return se&&!H&&!ue&&_<t?(a.close(),!0):(se&&(i=function(e){Ae((o-s)*e+s)}),a.zoomTo(e,0,200,r.easing.cubic.out,i),!0)};xe("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,i,r){C=e+t,S=e+n,D=e+i,P=r?e+r:""};(T=z.pointerEvent)&&z.touch&&(z.touch=!1),T?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):z.touch?(e("touch","start","move","end","cancel"),L=!0):e("mouse","down","move","up"),g=S+" "+D+" "+P,m=C,T&&!L&&(L=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=L,v[C]=zt,v[S]=Bt,v[D]=qt,P&&(v[P]=v[D]),z.touch&&(m+=" mousedown",g+=" mousemove mouseup",v.mousedown=v[C],v.mousemove=v[S],v.mouseup=v[D]),L||(l.allowPanToNext=!1)}}});var Kt,Jt,Qt,Zt,$t,Xt,en=function(t,n,i,o){var s;Kt&&clearTimeout(Kt),Zt=!0,Qt=!0,t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=l.getThumbBoundsFn&&l.getThumbBoundsFn(f);var u=i?l.hideAnimationDuration:l.showAnimationDuration,c=function(){Xe("initialZoom"),i?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Ae(1),n&&(n.style.display="block"),r.addClass(e,"pswp--animated-in"),De("initialZoom"+(i?"OutEnd":"InEnd"))),o&&o(),Zt=!1};if(!u||!s||void 0===s.x)return De("initialZoom"+(i?"Out":"In")),_=t.initialZoomLevel,Re(he,t.initialPosition),Le(),e.style.opacity=i?0:1,Ae(1),void(u?setTimeout((function(){c()}),u):c());var p=function(){var n=d,o=!a.currItem.src||a.currItem.loadError||l.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(_=s.w/t.w,he.x=s.x,he.y=s.y-N,a[o?"template":"bg"].style.opacity=.001,Le()),et("initialZoom"),i&&!n&&r.removeClass(e,"pswp--animated-in"),o&&(i?r[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){r.addClass(e,"pswp--animate_opacity")}),30)),Kt=setTimeout((function(){if(De("initialZoom"+(i?"Out":"In")),i){var a=s.w/t.w,l={x:he.x,y:he.y},d=_,f=le,p=function(t){1===t?(_=a,he.x=s.x,he.y=s.y-O):(_=(a-d)*t+d,he.x=(s.x-l.x)*t+l.x,he.y=(s.y-O-l.y)*t+l.y),Le(),o?e.style.opacity=1-t:Ae(f-t*f)};n?nt("initialZoom",0,1,u,r.easing.cubic.out,p,c):(p(1),Kt=setTimeout(c,u+20))}else _=t.initialZoomLevel,Re(he,t.initialPosition),Le(),Ae(1),o?e.style.opacity=1:Ae(1),Kt=setTimeout(c,u+20)}),i?25:90)};p()},tn={},nn=[],rn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Jt.length}},an=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},on=function(e,t,n){var i=e.bounds;i.center.x=Math.round((tn.x-t)/2),i.center.y=Math.round((tn.y-n)/2)+e.vGap.top,i.max.x=t>tn.x?Math.round(tn.x-t):i.center.x,i.max.y=n>tn.y?Math.round(tn.y-n)+e.vGap.top:i.center.y,i.min.x=t>tn.x?0:i.center.x,i.min.y=n>tn.y?e.vGap.top:i.center.y},sn=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),De("parseVerticalMargin",e)),tn.x=t.x,tn.y=t.y-e.vGap.top-e.vGap.bottom,i){var r=tn.x/e.w,a=tn.y/e.h;e.fitRatio=r<a?r:a;var o=l.scaleMode;"orig"===o?n=1:"fit"===o&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=an())}if(!n)return;return on(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=an(),e.initialPosition=e.bounds.center,e.bounds},ln=function(e,t,n,i,r,o){t.loadError||i&&(t.imageAppended=!0,dn(t,i,t===a.currItem&&ke),n.appendChild(i),o&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},un=function(e){e.loading=!0,e.loaded=!1;var t=e.img=r.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},cn=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=l.errorMsg.replace("%url%",e.src),!0},dn=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),r=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=r+"px"),t.style.width=i+"px",t.style.height=r+"px"}},fn=function(){if(nn.length){for(var e,t=0;t<nn.length;t++)(e=nn[t]).holder.index===e.index&&ln(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);nn=[]}};xe("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ee(e);var t=$t(e);t&&(!t.loaded&&!t.loading||k)&&(De("gettingData",e,t),t.src&&un(t))},initController:function(){r.extend(l,rn,!0),a.items=Jt=n,$t=a.getItemAt,(Xt=l.getNumItemsFn)()<3&&(l.loop=!1),Se("beforeChange",(function(e){var t,n=l.preload,i=null===e||e>=0,r=Math.min(n[0],Xt()),o=Math.min(n[1],Xt());for(t=1;t<=(i?o:r);t++)a.lazyLoadItem(f+t);for(t=1;t<=(i?r:o);t++)a.lazyLoadItem(f-t)})),Se("initialLayout",(function(){a.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(f)})),Se("mainScrollAnimComplete",fn),Se("initialZoomInEnd",fn),Se("destroy",(function(){for(var e,t=0;t<Jt.length;t++)(e=Jt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);nn=null}))},getItemAt:function(e){return e>=0&&void 0!==Jt[e]&&Jt[e]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!L||l.mouseUsed||screen.width>1200},setContent:function(e,t){l.loop&&(t=Ee(t));var n=a.getItemAt(e.index);n&&(n.container=null);var i,o=a.getItemAt(t);if(o){De("gettingData",t,o),e.index=t,e.item=o;var s=o.container=r.createEl("pswp__zoom-wrap");if(!o.src&&o.html&&(o.html.tagName?s.appendChild(o.html):s.innerHTML=o.html),cn(o),sn(o,ge),!o.src||o.loadError||o.loaded)o.src&&!o.loadError&&((i=r.createEl("pswp__img","img")).style.opacity=1,i.src=o.src,dn(o,i),ln(t,o,s,i));else{if(o.loadComplete=function(n){if(u){if(e&&e.index===t){if(cn(n,!0))return n.loadComplete=n.img=null,sn(n,ge),Ie(n),void(e.index===f&&a.updateCurrZoomItem());n.imageAppended?!Zt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):z.transform&&(re||Zt)?nn.push({item:n,baseDiv:s,img:n.img,index:t,holder:e,clearPlaceholder:!0}):ln(t,n,s,n.img,re||Zt,!0)}n.loadComplete=null,n.img=null,De("imageLoadComplete",t,n)}},r.features.transform){var c="pswp__img pswp__img--placeholder";c+=o.msrc?"":" pswp__img--placeholder--blank";var d=r.createEl(c,o.msrc?"img":"");o.msrc&&(d.src=o.msrc),dn(o,d),s.appendChild(d),o.placeholder=d}o.loading||un(o),a.allowProgressiveImg()&&(!Qt&&z.transform?nn.push({item:o,baseDiv:s,img:o.img,index:t,holder:e}):ln(t,o,s,o.img,!0,!0))}Qt||t!==f?Ie(o):(ie=s.style,en(o,i||o.img)),e.el.innerHTML="",e.el.appendChild(s)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var pn,hn,gn={},mn=function(e,t,n){var i=document.createEvent("CustomEvent"),r={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,r),e.target.dispatchEvent(i)};xe("Tap",{publicMethods:{initTap:function(){Se("firstTouchStart",a.onTapStart),Se("touchRelease",a.onTapRelease),Se("destroy",(function(){gn={},pn=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(pn),pn=null)},onTapRelease:function(e,t){if(t&&!Q&&!K&&!$e){var n=t;if(pn&&(clearTimeout(pn),pn=null,Ft(n,gn)))return void De("doubleTap",n);if("mouse"===t.type)return void mn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||r.hasClass(e.target,"pswp__single-tap"))return void mn(e,t);Re(gn,n),pn=setTimeout((function(){mn(e,t),pn=null}),300)}}}}),xe("DesktopZoom",{publicMethods:{initDesktopZoom:function(){R||(L?Se("mouseUsed",(function(){a.setupDesktopZoom()})):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){hn={};var n="wheel mousewheel DOMMouseScroll";Se("bindEvents",(function(){r.bind(e,n,a.handleMouseWheel)})),Se("unbindEvents",(function(){hn&&r.unbind(e,n,a.handleMouseWheel)})),a.mouseZoomedIn=!1;var i,o=function(){a.mouseZoomedIn&&(r.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),_<1?r.addClass(e,"pswp--zoom-allowed"):r.removeClass(e,"pswp--zoom-allowed"),s()},s=function(){i&&(r.removeClass(e,"pswp--dragging"),i=!1)};Se("resize",o),Se("afterChange",o),Se("pointerDown",(function(){a.mouseZoomedIn&&(i=!0,r.addClass(e,"pswp--dragging"))})),Se("pointerUp",s),t||o()},handleMouseWheel:function(e){if(_<=a.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||$e||V?e.preventDefault():A&&Math.abs(e.deltaY)>2&&(d=!0,a.close())),!0;if(e.stopPropagation(),hn.x=0,"deltaX"in e)1===e.deltaMode?(hn.x=18*e.deltaX,hn.y=18*e.deltaY):(hn.x=e.deltaX,hn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(hn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?hn.y=-.16*e.wheelDeltaY:hn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;hn.y=e.detail}Ue(_,!0);var t=he.x-hn.x,n=he.y-hn.y;(l.modal||t<=ne.min.x&&t>=ne.max.x&&n<=ne.min.y&&n>=ne.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:ge.x/2+ve.x,y:ge.y/2+ve.y};var n=l.getDoubleTapZoom(!0,a.currItem),i=_===n;a.mouseZoomedIn=!i,a.zoomTo(i?a.currItem.initialZoomLevel:n,t,333),r[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var vn,_n,bn,yn,wn,Fn,kn,xn,En,Cn,Sn,Dn,Pn={history:!0,galleryUID:1},An=function(){return Sn.hash.substring(1)},Tn=function(){vn&&clearTimeout(vn),bn&&clearTimeout(bn)},Ln=function(){var e=An(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var r=i[n].split("=");r.length<2||(t[r[0]]=r[1])}if(l.galleryPIDs){var a=t.pid;for(t.pid=0,n=0;n<Jt.length;n++)if(Jt[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},In=function(){if(bn&&clearTimeout(bn),$e||V)bn=setTimeout(In,500);else{yn?clearTimeout(_n):yn=!0;var e=f+1,t=$t(f);t.hasOwnProperty("pid")&&(e=t.pid);var n=kn+"&gid="+l.galleryUID+"&pid="+e;xn||-1===Sn.hash.indexOf(n)&&(Cn=!0);var i=Sn.href.split("#")[0]+"#"+n;Dn?"#"+n!==window.location.hash&&history[xn?"replaceState":"pushState"]("",document.title,i):xn?Sn.replace(i):Sn.hash=n,xn=!0,_n=setTimeout((function(){yn=!1}),60)}};xe("History",{publicMethods:{initHistory:function(){if(r.extend(l,Pn,!0),l.history){Sn=window.location,Cn=!1,En=!1,xn=!1,kn=An(),Dn="pushState"in history,kn.indexOf("gid=")>-1&&(kn=(kn=kn.split("&gid=")[0]).split("?gid=")[0]),Se("afterChange",a.updateURL),Se("unbindEvents",(function(){r.unbind(window,"hashchange",a.onHashChange)}));var e=function(){Fn=!0,En||(Cn?history.back():kn?Sn.hash=kn:Dn?history.pushState("",document.title,Sn.pathname+Sn.search):Sn.hash=""),Tn()};Se("unbindEvents",(function(){d&&e()})),Se("destroy",(function(){Fn||e()})),Se("firstUpdate",(function(){f=Ln().pid}));var t=kn.indexOf("pid=");t>-1&&"&"===(kn=kn.substring(0,t)).slice(-1)&&(kn=kn.slice(0,-1)),setTimeout((function(){u&&r.bind(window,"hashchange",a.onHashChange)}),40)}},onHashChange:function(){if(An()===kn)return En=!0,void a.close();yn||(wn=!0,a.goTo(Ln().pid),wn=!1)},updateURL:function(){Tn(),wn||(xn?vn=setTimeout(In,800):In())}}}),r.extend(a,it)};return e}()}(g5);var m5=g5.exports,v5={exports:{}};
|
|
@@ -160,7 +160,7 @@ var Ohe=function(){return Ohe=Object.assign||function(e){for(var t,n=1,i=argumen
|
|
|
160
160
|
object-assign
|
|
161
161
|
(c) Sindre Sorhus
|
|
162
162
|
@license MIT
|
|
163
|
-
*/function qje(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Uje=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=qje(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))Bje.call(n,o)&&(r[o]=n[o]);if(zje){i=zje(n);for(var s=0;s<i.length;s++)Gje.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},Hje="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wje=function(){};if("production"!==process.env.NODE_ENV){var Yje=Hje,Vje={},Kje=Function.call.bind(Object.prototype.hasOwnProperty);Wje=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function Jje(e,t,n,i,r){if("production"!==process.env.NODE_ENV)for(var a in e)if(Kje(e,a)){var o;try{if("function"!=typeof e[a]){var s=Error((i||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}o=e[a](t,a,i,n,null,Yje)}catch(e){o=e}if(!o||o instanceof Error||Wje((i||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in Vje)){Vje[o.message]=!0;var l=r?r():"";Wje("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}Jje.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(Vje={})};var Qje=Jje,Zje=w.default,$je=Uje,Xje=Hje,eNe=Qje,tNe=Function.call.bind(Object.prototype.hasOwnProperty),nNe=function(){};function iNe(){return null}"production"!==process.env.NODE_ENV&&(nNe=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function rNe(){}function aNe(){}aNe.resetWarningCache=rNe;if("production"!==process.env.NODE_ENV){var oNe=w.default;Oje.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,i="<<anonymous>>",r={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:s(iNe),arrayOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,i,r,a+"["+l+"]",Xje);if(u instanceof Error)return u}return null}))},element:s((function(t,n,i,r,a){var s=t[n];return e(s)?null:new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,i,r){var a=e[t];return Zje.isValidElementType(a)?null:new o("Invalid "+i+" `"+r+"` of type `"+c(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,r,a,s){if(!(t[n]instanceof e)){var l=e.name||i;return new o("Invalid "+a+" `"+s+"` of type `"+((u=t[n]).constructor&&u.constructor.name?u.constructor.name:i)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var u;return null}))},node:s((function(e,t,n,i,r){return u(e[t])?null:new o("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(tNe(s,u)){var d=e(s,u,i,r,a+"."+u,Xje);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&nNe(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),iNe;function t(t,n,i,r,s){for(var l=t[n],u=0;u<e.length;u++)if(a(l,e[u]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===d(t)?String(t):t}));return new o("Invalid "+r+" `"+s+"` of value `"+String(l)+"` supplied to `"+i+"`, expected one of "+c+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&nNe("Invalid argument supplied to oneOfType, expected an instance of array."),iNe;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return nNe("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),iNe}return s((function(t,n,i,r,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,i,r,a,Xje))return null;return new o("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var d=e[u];if(d){var f=d(s,u,i,r,a+"."+u,Xje);if(f)return f}}return null}))},exact:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var u=$je({},t[n],e);for(var d in u){var f=e[d];if(!f)return new o("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(s,d,i,r,a+"."+d,Xje);if(p)return p}return null}))}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e){this.message=e,this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function a(a,s,l,u,c,d,f){if(u=u||i,d=d||l,f!==Xje){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=u+":"+l;!n[h]&&r<3&&(nNe("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==s[l]?a?null===s[l]?new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,l,u,c,d)}var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function l(e){return s((function(t,n,i,r,a,s){var l=t[n];return c(l)!==e?new o("Invalid "+r+" `"+a+"` of type `"+d(l)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var i=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!i)return!1;var r,a=i.call(t);if(i!==t.entries){for(;!(r=a.next()).done;)if(!u(r.value))return!1}else for(;!(r=a.next()).done;){var o=r.value;if(o&&!u(o[1]))return!1}return!0;default:return!1}}function c(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function d(e){if(null==e)return""+e;var t=c(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=d(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return o.prototype=Error.prototype,r.checkPropTypes=eNe,r.resetWarningCache=eNe.resetWarningCache,r.PropTypes=r,r}(oNe.isElement,!0)}else Oje.exports=function(){function e(e,t,n,i,r,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:aNe,resetWarningCache:rNe};return n.PropTypes=n,n}();var sNe=Oje.exports,lNe=Object.freeze({__proto__:null,useCurrentUser:i0,useAccountApi:I0,useAuthenticationContext:BF,useEnvironmentConfig:Tg,useNotificationContext:A9,usePromise:IF,LinkContext:gE,TextLink:zPe,logger:im,createId:am,ResourceContext:kE,usePluginSettings:function(){var e=i.useContext(R2).settings;return null!=e?e:{}},usePluginStorage:j3,usePluginDeviceStore:j3,usePluginSubscriptionStore:function(){return i.useContext(R2).subscriptionStore},usePluginSubscriptionStoreValue:function(e,t){var n=this,r=i.useContext(R2).subscriptionStore,a=IF((function(){return r.get(e).catch(R3)}),void 0,aV(aV([],t||[]),[e])),o=a[0],s=a[1],l=a[2],u=a[3],c=a[4];return{data:o,set:function(t){return iV(n,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return n=o?JSON.parse(JSON.stringify(o)):void 0,u(t),[4,r.set(e,t).catch((function(e){return u(n),R3(e)}))];case 1:return[2,i.sent()]}}))}))},isLoading:s,error:l,refresh:c,remove:function(){return iV(n,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return t=o?JSON.parse(JSON.stringify(o)):void 0,u(void 0),[4,r.delete(e).catch((function(e){return u(t),R3(e)}))];case 1:return[2,n.sent()]}}))}))}}},usePluginUserStore:function(){return i.useContext(R2).userStore},usePluginUserStoreValue:function(e,t){var n=this,r=i.useContext(R2).userStore,a=IF((function(){return r.get(e).catch(R3)}),void 0,aV(aV([],t||[]),[e])),o=a[0],s=a[1],l=a[2],u=a[3],c=a[4];return{data:o,set:function(t){return iV(n,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return n=o?JSON.parse(JSON.stringify(o)):void 0,u(t),[4,r.set(e,t).catch((function(e){return u(n),R3(e)}))];case 1:return[2,i.sent()]}}))}))},isLoading:s,error:l,refresh:c,remove:function(){return iV(n,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return t=o?JSON.parse(JSON.stringify(o)):void 0,u(void 0),[4,r.delete(e).catch((function(e){return u(t),R3(e)}))];case 1:return[2,n.sent()]}}))}))}}},useReachApiEndPoints:function(){return{apiEndpoint:Ag().apiEndpoint}},AccountType:BX,PeoplePicker:ewe,GutterToggle:function(e){var n=e.checked,i=e.readOnly,r=e.onChange,a=e.className,o=e.iconName,s=e.activeIconName,l=e.tooltipResourceKey,u=e.ariaLabelResourceKey,c=Hx().formatMessage,d=n?s||o||"CheckboxComposite":o||"Checkbox";return t.jsx(Wye,Ohe({className:a},{children:i?t.jsx(Vye,{},void 0):t.jsx(Dye,Ohe({resourceKey:l},{children:t.jsx(Yye,{iconProps:{iconName:d},onClick:function(){return r(!n)},ariaLabel:u?c({id:u}):null},void 0)}),void 0)}),void 0)},EditorSettingsDialog:Uye,Spinner:o.Spinner,SelectionMode:o.SelectionMode,EditorHighlight:function(e){var n=e.tooltipResourceKey,i=e.className,r=zhe(e,["tooltipResourceKey","className"]);return t.jsx(Dye,Ohe({resourceKey:n,className:i},{children:t.jsx(Aye,Ohe({},r,{"data-highlight-bubble":!0}),void 0)}),void 0)},useTheme:function(){return i.useContext(Z6).theme},useSubscriptionHandlePathBuilder:P2});var uNe=[{name:"@reach/core",packageDefinition:Ohe({default:{}},lNe)}],cNe=[{name:"react",packageDefinition:Ohe(Ohe({},m.default),{default:m.default})},{name:"react-dom",packageDefinition:Ohe(Ohe({},y),{default:y})},{name:"react-is",packageDefinition:Ohe(Ohe({},w.default),{default:w.default})},{name:"prop-types",packageDefinition:Ohe({default:sNe},sNe)},{name:"react-router-dom",packageDefinition:Ohe({},v)},{name:"styled-components",packageDefinition:{default:_.default,createGlobalStyle:a.createGlobalStyle,css:a.css,useTheme:a.useTheme,isStyledComponent:a.isStyledComponent,keyframes:a.keyframes,withTheme:a.withTheme,ThemeProvider:a.ThemeProvider,ThemeContext:a.ThemeContext,ThemeConsumer:a.ThemeConsumer}},{name:"office-ui-fabric-react",packageDefinition:{default:{},Checkbox:o.Checkbox,Label:o.Label,PrimaryButton:o.PrimaryButton,Icon:o.Icon,Link:o.Link,TextField:o.TextField,ActionButton:o.ActionButton,IconButton:o.IconButton,DefaultButton:o.DefaultButton,Spinner:o.Spinner,Dropdown:o.Dropdown,ProgressIndicator:o.ProgressIndicator,Shimmer:o.Shimmer,ShimmerElementsGroup:o.ShimmerElementsGroup,ShimmerElementType:o.ShimmerElementType,DirectionalHint:o.DirectionalHint,PersonaSize:o.PersonaSize,TooltipHost:o.TooltipHost,DialogType:o.DialogType,Dialog:Whe}},{name:"react-intl",packageDefinition:{default:{},FormattedMessage:cE,useIntl:Hx,FormattedDate:dE,FormattedTime:fE,IntlProvider:Xx}},{name:"@apollo/client",packageDefinition:{default:{},gql:UM,useQuery:function(e,t){return lj(e,t,!1)},ApolloClient:jM,ApolloProvider:XM,from:cL,ApolloLink:uL,fromPromise:iL,split:dL,HttpLink:bL,InMemoryCache:gM,useLazyQuery:function(e,t){return lj(e,t,!0)},useMutation:function(e,t){var n=i.useContext(ZM()),r=i.useState({called:!1,loading:!1}),a=r[0],o=r[1],s=t?Fa(Fa({},t),{mutation:e}):{mutation:e},l=i.useRef(),u=(l.current||(l.current=new aj({options:s,context:n,result:a,setResult:o})),l.current);return u.setOptions(s),u.context=n,i.useEffect((function(){return u.afterExecute()})),u.execute(a)},ApolloError:vM,useApolloClient:ej,useSubscription:function(e,t){var n=i.useReducer((function(e){return e+1}),0)[1],r=i.useContext(ZM()),a=t?Fa(Fa({},t),{subscription:e}):{subscription:e},o=i.useState({loading:!a.skip,error:void 0,data:void 0}),s=o[0],l=o[1],u=i.useRef(),c=(u.current||(u.current=new rj({options:a,context:r,setResult:l})),u.current);return c.setOptions(a,!0),c.context=r,__DEV__&&sj(n),i.useEffect((function(){return c.afterExecute()})),i.useEffect((function(){return function(){c.cleanup(),u.current=void 0}}),[]),c.execute(s)}}},{name:"subscriptions-transport-ws",packageDefinition:{default:{},SubscriptionClient:dN}},{name:"@apollo/client/link/ws",packageDefinition:{default:{},WebSocketLink:EN}},{name:"@apollo/client/utilities",packageDefinition:{default:{},getMainDefinition:ZA}},{name:"@apollo/client/link/context",packageDefinition:{default:{},setContext:uj}}],dNe=function(e){var n=e.onRequestToken,r=e.children,a=e.subscriptionId,o=i.useState(null),s=o[0],l=o[1],u=i.useMemo((function(){return{onRequestToken:null!=n?n:function(){return Promise.resolve(s)},getIsAuthenticated:function(){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(e){return[2,null!=n||null!=s]}))}))},getCurrentEmail:function(){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(e){return[2,null]}))}))},setToken:l,onHandleError:function(e,t){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(n){return im.error(e,t),[2,Promise.reject(e)]}))}))}}}),[a,s]);return t.jsx(zF.Provider,Fa({value:u},{children:r}),void 0)},fNe="0.4.0-preview.393",pNe="101450",hNe="b35855d556f84299ca80127430329f5a5d90263f",gNe=Y,mNe=O,vNe=En("match"),_Ne=function(e){var t;return gNe(e)&&(void 0!==(t=e[vNe])?!!t:"RegExp"==mNe(e))},bNe=En("match"),yNe=function(e){if(_Ne(e))throw TypeError("The method doesn't accept regular expressions");return e},wNe=q,FNe=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[bNe]=!1,"/./"[e](t)}catch(e){}}return!1};cn({target:"String",proto:!0,forced:!FNe("includes")},{includes:function(e){return!!~String(wNe(this)).indexOf(yNe(e),arguments.length>1?arguments[1]:void 0)}});var kNe,xNe,ENe={configType:"local",authentication:{azuread:{clientId:"781a9147-6ddc-43fb-9cce-e01d7838ffe6",apiScope:"api://781a9147-6ddc-43fb-9cce-e01d7838ffe6/access_as_user",extraScopes:["https://graph.microsoft.com/User.Read","https://graph.microsoft.com/User.ReadBasic.All"],basePolicyUrl:"https://login.microsoftonline.com/",signInPolicy:"common"},b2c:{postLogoutRedirectUri:"https://livetilesglobal.com/products/livetiles-reach",clientId:"b13f12ba-c1c5-41da-8e22-1252b5fed0e4",basePolicyUrl:"https://condenseappexternaldev.b2clogin.com/condenseappexternaldev.onmicrosoft.com/",signInPolicy:"B2C_1_SignInSignUpPolicy",forgotPasswordPolicy:"B2C_1_ResetPasswordPolicy",apiScope:"https://condenseappexternaldev.onmicrosoft.com/web/access_as_user"},teams:{clientId:"c17acfe6-6106-47e6-b9ac-12c6a9e78db6",scopes:["email","openid","profile","offline_access"],extraScopes:["https://graph.microsoft.com/User.Read","https://graph.microsoft.com/User.ReadBasic.All"],basePolicyUrl:"https://login.microsoftonline.com/"}},apiEndpoint:"http://localhost:5000/api/v1",api2Endpoint:"http://localhost:5000/api/v2",api3Endpoint:"http://localhost:5000/api/v3",webSocketsEndpoint:"ws://localhost:5000/api/v2",productWebsite:"https://reach.livetilesglobal.com/",supportUrl:"https://support.livetilesglobal.com/hc/en-us/categories/360001273732-Reach",releaseNotesUrl:"https://support.livetilesglobal.com/hc/en-us/sections/900001715263-Reach",privacyUrl:"https://livetilesglobal.com/livetiles-privacy-policy",eulaUrl:"https://livetilesglobal.com/livetiles-privacy-policy",unsplash:{appName:"Condense",apiKey:"N/A",clientId:"8b17ad8ed176954881976b7e08a2a6305d01b9b708455c14bbd43780ff6b62ba"},canva:{apiKey:"6vvsr2srHeve85SXxMX1k1LD"},zendeskMessaging:{enable:!0,apiKey:"816bfec7-3beb-457a-a4a1-f462c9cb403f"},webAppUrl:"http://localhost:3000",hyperfish:{regionJumperUrl:"https://antrearegionjumper.azurewebsites.net/api/antrearegionjumper",regionJumperKey:"T1YDqmyQX/bXhFapRLdaPBenzRLMCCNafSVwzmwI7fYnkwj6wLL0Hg=="},maxFileSizeInMb:100,giphy:{apiKey:"idBrSgzpBdNCqLmXPRaoHz9DFGKK79wU"},userflow:{userflowToken:"ct_gjkrqpboc5edlg6vduhnxfti3e"},oneSignal:{appId:"dd89af4f-325e-447e-a030-654043cfbc6a"}},CNe={configType:"production",authentication:{azuread:{clientId:"d492530a-8cff-481c-90da-9c3c3f1be7da",apiScope:"api://d492530a-8cff-481c-90da-9c3c3f1be7da/access_as_user",extraScopes:["https://graph.microsoft.com/User.Read","https://graph.microsoft.com/User.ReadBasic.All"]},b2c:{clientId:"cc9987a7-c666-4be1-a81c-f80dba7ef2e9",basePolicyUrl:"https://condenseappexternal.b2clogin.com/condenseappexternal.onmicrosoft.com/",signInPolicy:"B2C_1_SignInSignUpPolicy",forgotPasswordPolicy:"B2C_1_ResetPasswordPolicy",apiScope:"https://condenseappexternal.onmicrosoft.com/web/access_as_user"},teams:{clientId:"a7c1920d-3ac0-42db-9757-078a2b321fd8"},teamsAustralia:{clientId:"29942469-c421-4026-92ef-9bf24a6fc08c"}},apiEndpoint:"https://api.reach.livetiles.io/api/v1",api2Endpoint:"https://api.reach.livetiles.io/api/v2",api3Endpoint:"https://api.reach.livetiles.io/api/v3",webSocketsEndpoint:"wss://ws.reach.livetiles.io/api/v2",webAppUrl:"https://reach.livetiles.io",additionalWebAppUrls:["https://app.reach.livetiles.io","https://app.condense.ch"],appInsightsKey:"c4758fee-1409-47a9-a508-03efd775256c",canva:{apiKey:"mYnapNU5aDqD-1xEMFZkpdzT"},giphy:{apiKey:"jqAFrpqGDwOFqeu8Rn6YfjRGkKhlxZyn"},userflow:{userflowToken:"ct_3um627fkk5cxvnkwawnaf2b4gy"},oneSignal:{appId:"47a684a5-e9e0-4aaf-84b8-9f3e6585b292"}},SNe=["//localhost","//api:5000","//api.dev.reach.livetiles.io","//api.test.reach.livetiles.io","//api.staging.reach.livetiles.io","//api-dev.condense.ch","//api-test.condense.ch","//api-staging.condense.ch"],DNe=function(e){var n=e.children,r=Ag().apiEndpoint,a=i.useMemo((function(){return function(e){return"number"!=typeof e.maxFileSizeInMb&&(e.maxFileSizeInMb=parseInt(e.maxFileSizeInMb)),e}(function(){var e=!SNe.some((function(e){return r.toLowerCase().includes(e)}));if(!e)return im.info("Will use non prod client config..."),Fa({},ENe);return Fa(Fa({},ENe),CNe)}())}),[r]);return t.jsx(Ug.Provider,Fa({value:a},{children:n}),void 0)},PNe=function(){function e(){this.storage={}}return e.prototype.remove=function(e){return delete this.storage[e],Promise.resolve()},e.prototype.clearAll=function(){return this.storage={},Promise.resolve()},e.prototype.getObject=function(e){var t;return Promise.resolve(null!==(t=this.storage[e])&&void 0!==t?t:null)},e.prototype.set=function(e,t){return this.storage[e]=t,Promise.resolve()},e.prototype.getString=function(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){switch(t.label){case 0:return[4,this.getObject(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.setString=function(e,t){return xa(this,void 0,void 0,(function(){return Ea(this,(function(n){switch(n.label){case 0:return[4,this.set(e,t)];case 1:return n.sent(),[2]}}))}))},e.prototype.getAllKeys=function(){return Promise.resolve(Object.keys(this.storage))},e}(),ANe=new PNe,TNe=function(e){var n=e.subscriptionId,i=e.children;return e.shouldUsePublicAccess?t.jsx(LNe,Fa({subscriptionId:n},{children:i}),void 0):t.jsx(t.Fragment,{children:i},void 0)},LNe=function(e){var n=e.subscriptionId,r=e.children,a=i.useContext(zF).setToken,o=vE(),s=function(){var e=eU().fetchFromApi,t=tU();return i.useMemo((function(){return{getSubscriptionBySubscriptionIdentifier:function(t){return e("/subscriptions/"+t).then((function(e){return e.status<=200?e.json():Promise.reject(e.status)}))},getTermsAndConditions:function(){return t.custom("subscriptions/current/terms_and_conditions").get().then((function(e){return e.body().data()}))}}}),[e,t])}().getSubscriptionBySubscriptionIdentifier,l=eU().fetchFromApi,u=i.useContext(hE),c=u.handleFatalError,d=u.handleAccessDeniedError,f=IF((function(){return xa(this,void 0,void 0,(function(){var e,t,i;return Ea(this,(function(r){switch(r.label){case 0:return e="Reach::PublicAccessToken::"+n,[4,o.getString(e)];case 1:return(t=r.sent())?(a(t),[2,!0]):[4,s(n)];case 2:return r.sent().allowPublicAccess?[4,v(n)]:[3,5];case 3:return i=r.sent(),a(i),[4,o.setString(e,i)];case 4:return r.sent(),[2,!0];case 5:return[2,!1]}}))}))}),!1,[n]),p=f[0],h=f[1],g=f[2];if(g)return im.error(g),c({error:g}),null;if(h)return null;if(!p){var m={message:"Public access is not enabled for the subscription "+n+"!"};return im.error(m.message),d({error:m}),null}return t.jsx(t.Fragment,{children:r},void 0);function v(e){return l("/subscriptions/"+e+"/public_access_token").then((function(e){return e.status<=200?e.text():Promise.reject(e.status)}))}},INe=function(e){var n=e.children,r=i.useState(),a=r[0],o=r[1],s=i.useState(),l=s[0],u=s[1],c=i.useState(),d=c[0],f=c[1],p=i.useMemo((function(){return{handleFatalError:o,handleAccessDeniedError:u,handleNotFoundError:f}}),[o,u,f]);return t.jsx(hE.Provider,Fa({value:p},{children:t.jsx(MNe,Fa({fatalError:a,notFoundError:d,accessDeniedError:l},{children:n}),void 0)}),void 0)},MNe=function(e){var n=e.fatalError,i=e.accessDeniedError,r=e.notFoundError,a=e.children;return n?t.jsx(jNe,{messageId:n.messageId,error:n.error},void 0):i?t.jsx(jNe,{messageId:"AccessDenied.genericMessage",error:i.error},void 0):r?t.jsx(jNe,{messageId:"NotFound.message"},void 0):t.jsx(t.Fragment,{children:a},void 0)},jNe=function(e){var n=e.messageId,r=e.error,a=Hx().formatMessage,o=i.useState(!1),s=o[0],l=o[1];return t.jsx(Cje,Fa({errorType:xje.GenericError,alertText:a({id:n||"FatalError.genericMessage"}),onClick:function(){return l(!s)}},{children:s&&t.jsxs(NNe,{children:[t.jsx(cE,{id:"Generic.error.details"},void 0),t.jsx(RNe,{children:JSON.stringify(r)||"Not provided"},void 0)]},void 0)}),void 0)},NNe=_.default.div.withConfig({displayName:"ReachErrorProvider__DetailsContainer",componentId:"sc-15225g3-0"})(kNe||(kNe=Ia(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),s9),RNe=_.default.p.withConfig({displayName:"ReachErrorProvider__Details",componentId:"sc-15225g3-1"})(xNe||(xNe=Ia(["\n opacity: 0.4;\n font-size: small;\n"],["\n opacity: 0.4;\n font-size: small;\n"]))),ONe=function(e){var n=e.children,r=i.useMemo((function(){return{onShare:function(){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(e){return[2,null]}))}))},onOpenExternalLink:a,tryGetInternalLink:function(){return null}}}),[]);return t.jsx(gE.Provider,Fa({value:r},{children:n}),void 0);function a(e){window.open(e,"_blank")}},zNe=function(){return null},BNe=Object.freeze({__proto__:null,Page:zNe,NavLinkSidebarItem:zNe,PageMenuActionItem:zNe});!function(){if(window.__is_reach_app)return;if(console.info("Reach Component Library: "+fNe+" ("+pNe+") ["+hNe+"]"),window.__did_initialize_reach_context)return;o.initializeIcons()}();var GNe=function(e){var n,r=e.children,a=i.useContext(Z6).setTheme,o=M0().getCurrentUser,s=IF((function(){var e;return xa(this,void 0,void 0,(function(){var t,n;return Ea(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,o()];case 1:return t=i.sent(),(null===(e=null==t?void 0:t.subscription)||void 0===e?void 0:e.theme)&&a(t.subscription.theme),[2,t];case 2:throw n=i.sent(),im.error(n),n;case 3:return[2]}}))}))})),l=s[0],u=s[1],c=s[2],d=s[3],f=i.useContext(hE),p=f.handleFatalError,h=f.handleNotFoundError,g=f.handleAccessDeniedError,m=i.useMemo((function(){return{user:l,refreshUser:function(e){return Promise.resolve(e&&d(e))}}}),[l]);return c?(403===(null===(n=null==c?void 0:c.response)||void 0===n?void 0:n.statusCode)?g({error:c}):p({error:c}),null):u?null:null==l?(h({}),null):t.jsx(t0.Provider,Fa({value:m},{children:r}),void 0)},qNe=function(){return i.useEffect((function(){var e=document.createElement("style");e.innerHTML="@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');",document.head.appendChild(e)}),[]),t.jsxs(t.Fragment,{children:[t.jsx(cV,{},void 0),t.jsx(fV,{},void 0)]},void 0)};var UNe=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,HNe=/[\0-\x1F\x7F-\x9F]/,WNe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,YNe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;function VNe(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function KNe(e){return Object.prototype.toString.call(e)}function JNe(e){return"[object Function]"===KNe(e)}function QNe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ZNe={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var $Ne={"http:":{validate:function(e,t,n){var i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},XNe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function eRe(e){var t=e.re=function(e){var t={};return t.src_Any=UNe.source,t.src_Cc=HNe.source,t.src_Z=WNe.source,t.src_P=YNe.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");var r=[];function a(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var i={validate:null,link:null};if(e.__compiled__[t]=i,function(e){return"[object Object]"===KNe(e)}(n))return!function(e){return"[object RegExp]"===KNe(e)}(n.validate)?JNe(n.validate)?i.validate=n.validate:a(t,n):i.validate=function(e){return function(t,n){var i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(JNe(n.normalize)?i.normalize=n.normalize:n.normalize?a(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===KNe(e)}(n)?a(t,n):r.push(t)}})),r.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var o=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(QNe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function tRe(e,t){var n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function nRe(e,t){var n=new tRe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function iRe(e,t){if(!(this instanceof iRe))return new iRe(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||ZNe.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=VNe({},ZNe,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=VNe({},$Ne,e),this.__compiled__={},this.__tlds__=XNe,this.__tlds_replaced__=!1,this.re={},eRe(this)}iRe.prototype.add=function(e,t){return this.__schemas__[e]=t,eRe(this),this},iRe.prototype.set=function(e){return this.__opts__=VNe(this.__opts__,e),this},iRe.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,i,r,a,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(i=e.match(this.re.email_fuzzy))&&(a=i.index+i[1].length,o=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},iRe.prototype.pretest=function(e){return this.re.pretest.test(e)},iRe.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},iRe.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(nRe(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)n.push(nRe(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},iRe.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),eRe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,eRe(this),this)},iRe.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},iRe.prototype.onCompile=function(){};var rRe=iRe;function aRe(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function oRe(){return oRe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},oRe.apply(this,arguments)}function sRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lRe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function uRe(e,t,n){return t&&lRe(e.prototype,t),n&&lRe(e,n),e}function cRe(e){return cRe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cRe(e)}function dRe(e){return dRe="function"==typeof Symbol&&"symbol"===cRe(Symbol.iterator)?function(e){return cRe(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":cRe(e)},dRe(e)}function fRe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pRe(e,t){return!t||"object"!==dRe(t)&&"function"!=typeof t?fRe(e):t}function hRe(e){return hRe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hRe(e)}function gRe(e,t){return gRe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gRe(e,t)}function mRe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gRe(e,t)}function vRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bRe(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yRe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wRe(e){return function(e){if(Array.isArray(e))return yRe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yRe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yRe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var FRe=function(e){return e===Object(e)?Object.keys(e):[]},kRe=function(e){return e===Object(e)?Object.values(e):[]};function xRe(e,t){var n=Object.assign({},e);return SRe(e)&&SRe(t)&&FRe(t).forEach((function(i){SRe(t[i])&&i in e?n[i]=xRe(e[i],t[i]):Object.assign(n,W8({},i,t[i]))})),n}var ERe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){return xRe(e,t)}),e)},CRe=function(e,t){var n=Object.assign({},e);if(t)for(var i=0;i<t.length;i++)delete n[t[i]];return n},SRe=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},DRe=function(e){return(e||[]).filter(Boolean)},PRe=function(e){return"&"===e[0]},ARe=function(e){return!PRe(e)},TRe=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},LRe=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=FRe(e),i={},r=0,a=n.length;r<a;r+=1){var o=n[r],s="[object Object]"!==Object.prototype.toString.call(e[o])||":"===o[0]||"@"===o[0]||t.indexOf(o)>=0;s&&(i[o]=e[o])}return i},IRe=function(e,t){for(var n=t.map(TRe),i=FRe(e),r={},a=0,o=i.length;a<o;a+=1){var s=i[a];(t.indexOf(s)>=0||n.indexOf(TRe(s))>=0)&&(r[s]=e[s])}return r},MRe=function e(t,n){for(var i=ERe.apply(void 0,[{},CRe(t,n)].concat(wRe(kRe(IRe(t,n))))),r=FRe(i).filter(PRe),a=0,o=r.length;a<o;a+=1){var s=r[a],l=e(i[s],n);n.indexOf(s)>=0?(delete i[s],i=ERe({},i,l)):i[s]=l}return i};function jRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function NRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jRe(Object(n),!0).forEach((function(t){W8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jRe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var RRe=["animationName"],ORe=function(e){var t=e.style,n=e.className;return NRe(NRe({},t?{style:LRe(t,RRe)}:{}),n?{className:n}:{})},zRe=i.createContext(ORe);zRe.Provider;var BRe=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return FRe(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e},GRe={},qRe=function(e){return function(t,n){var i,r=n||GRe;e.memoize=e.memoize||new WeakMap,e.memoize.has(r)?i=e.memoize.get(r):(i={},e.memoize.set(r,i));var a=BRe(t).join(" ");return a in i?i[a]:i[a]=e(t||[],n)}};function URe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function HRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?URe(Object(n),!0).forEach((function(t){W8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):URe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WRe=function(e){var t=e&&FRe(e)[0];return t&&t.split("__")[0].split("--")[0]},YRe=function(e,t,n){if(e){var i=e.split(" ")[0],r=[].concat(wRe(0===t.length?n.map((function(e){return"".concat(i,"--").concat(e.substring(1))})):[]),wRe(t.map((function(e){return"".concat(i,"__").concat(e)}))));return 0===t.length?[e].concat(wRe(r)):r}};function VRe(e){var t=e.style,n=e.className,i=e.classNames,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ORe,a=n||WRe(i)||(null==t?void 0:t.className),o="function"==typeof t?t:qRe((function(e,n){var o=BRe(e);Nhe(Array.isArray(o),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Nhe(!n||SRe(n),"Optional second parameter must be a plain object.");var s=o.filter(PRe),l=o.filter(ARe),u=l.length>0?function(e){return kRe(IRe(e,l))}:function(e){return[e]},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(MRe(e,s))},d=YRe(a,l,s);return VRe(HRe(HRe(HRe({},(t||n)&&{style:ERe.apply(void 0,[{}].concat(wRe(c(n)),wRe(c(t))))}),d&&{className:d.join(" ")}),i&&{classNames:i}),r)})),s=HRe({},"function"==typeof t?t:{style:t}),l=wRe(new Set([].concat(wRe(s.className?s.className.split(" "):[]),wRe(a?a.split(" "):[])))),u=i?DRe(l.map((function(e){return i[e]}))):l,c=r(HRe(HRe({},s),u.length>0?{className:u.join(" ")}:{}));return Object.assign(o,c),o}function KRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function JRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KRe(Object(n),!0).forEach((function(t){W8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KRe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var QRe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return JRe(JRe(JRe({},e),"function"==typeof t?t:{}),{},{style:JRe(JRe({},e.style),"function"==typeof t?t.style:t)})}),{})},ZRe=function(e,t,n){var r=t.style,a=t.className,o=t.classNames,s=i.useContext(zRe);return i.useMemo((function(){return VRe({style:r,className:a,classNames:o},s)}),[r,a,o,s])(n,e)},$Re=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},XRe="__id__",eOe="__display__",tOe=function(e,t){Nhe("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(eOe),i=e.indexOf(XRe);return n<0&&(n=null),i<0&&(i=null),Nhe(null!==n||null!==i,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==i?"id"===t&&i<=n||"display"===t&&n<=i?0:1:0},nOe=function(e){var t=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map((function(e){var n=_Re(t.exec(e.toString()),3),i=n[1],r=n[2];return Nhe(!r,"RegExp flags are not supported. Change /".concat(i,"/").concat(r," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")},iOe=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},rOe=function(){},aOe=function(e,t,n){for(var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rOe,a=nOe(t.map((function(e){return e.regex}))),o=2,s=t.map((function(e){var t=e.markup,n=o;return o+=iOe(t)+1,n})),l=0,u=0;null!==(i=a.exec(e));){var c=s.find((function(e){return!!i[e]})),d=s.indexOf(c),f=t[d],p=f.markup,h=f.displayTransform,g=c+tOe(p,"id"),m=c+tOe(p,"display"),v=i[g],_=h(v,i[m]),b=e.substring(l,i.index);r(b,l,u),u+=b.length,n(i[0],i.index,u,v,_,d,l),u+=_.length,l=a.lastIndex}l<e.length&&r(e.substring(l),l,u)},oOe=function(e,t){var n="";return aOe(e,t,(function(e,t,i,r,a){n+=a}),(function(e){n+=e})),n},sOe=function(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var a=function(e,t,r){void 0===i&&r+e.length>=n&&(i=t+n-r)},o=function(e,t,a,o,s,l,u){void 0===i&&a+s.length>n&&(i="NULL"===r?null:t+("END"===r?e.length:0))};return aOe(e,t,o,a),void 0===i?e.length:i},lOe=function(e,t,n,i){return e.substring(0,t)+i+e.substring(n)},uOe=function(e,t){var n=[];return aOe(e,t,(function(e,t,i,r,a,o,s){n.push({id:r,display:a,childIndex:o,index:t,plainTextIndex:i})})),n},cOe=function(e,t){return"".concat(e,"-").concat(t)},dOe=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},fOe=function(e){var t=$Re(e),n=e[e.indexOf(eOe)+eOe.length],i=e[e.indexOf(XRe)+XRe.length];return new RegExp(t.replace(eOe,"([^".concat($Re(n||""),"]+?)")).replace(XRe,"([^".concat($Re(i||""),"]+?)")))},pOe=function(e){return i.Children.toArray(e).map((function(e){var t=e.props,n=t.markup,i=t.regex,r=t.displayTransform;return{markup:n,regex:i?hOe(i,n):fOe(n),displayTransform:r||function(e,t){return t||e}}}))},hOe=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,i=iOe(t);return Nhe(n===i,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(i,")")),e},gOe=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],mOe=function(e){return function(e){var t=e;return gOe.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},vOe=function(e,t,n){return n?mOe(e).indexOf(mOe(t)):e.toLowerCase().indexOf(t.toLowerCase())},_Oe=function(e){return"number"==typeof e},bOe=function(e){return e===Object(e)?Object.keys(e):[]},yOe=function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=(t=[]).concat.apply(t,i);return Object.keys(e).reduce((function(t,n){return e.hasOwnProperty(n)&&!a.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t}),{})};function wOe(e,t){return function(n){var i=function(i){var r=i.style,a=i.className,o=i.classNames,s=bRe(i,["style","className","classNames"]),l=t?t(s):void 0,u=ZRe(e,{style:r,className:a,classNames:o},l);return m.default.createElement(n,oRe({},s,{style:u}))},r=n.displayName||n.name||"Component";return i.displayName="defaultStyle(".concat(r,")"),i}}var FOe=function(e){function t(){var e;return sRe(this,t),vRe(fRe(e=pRe(this,hRe(t).apply(this,arguments))),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return mRe(t,e),uRe(t,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var e=this.caretElement,t=e.offsetLeft,n=e.offsetTop;if(this.state.left!==t||this.state.top!==n){var i={left:t,top:n};this.setState(i),this.props.onCaretPositionChange(i)}}}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.selectionStart,r=n.selectionEnd,a=n.value,o=n.style,s=n.children,l=n.containerRef,u=pOe(s);i===r&&(e=sOe(a,u,i,"START"));var c=[],d={},f=c,p=0;return aOe(a,u,(function(e,n,i,r,a,o,s){var l=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(d,r);f.push(t.getMentionComponentForMatch(r,a,o,l))}),(function(n,i,r){if(_Oe(e)&&e>=i&&e<=i+n.length){var a=e-i;f.push(t.renderSubstring(n.substring(0,a),p)),f=[t.renderSubstring(n.substring(a),p)]}else f.push(t.renderSubstring(n,p));p++})),f.push(" "),f!==c&&c.push(this.renderHighlighterCaret(f)),m.default.createElement("div",oRe({},o,{ref:l}),c)}},{key:"renderSubstring",value:function(e,t){return m.default.createElement("span",oRe({},this.props.style("substring"),{key:t}),e)}},{key:"getMentionComponentForMatch",value:function(e,t,n,r){var a={id:e,display:t,key:r},o=i.Children.toArray(this.props.children)[n];return m.default.cloneElement(o,a)}},{key:"renderHighlighterCaret",value:function(e){return m.default.createElement("span",oRe({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),t}(i.Component);vRe(FOe,"propTypes",{selectionStart:NW.number,selectionEnd:NW.number,value:NW.string.isRequired,onCaretPositionChange:NW.func.isRequired,containerRef:NW.oneOfType([NW.func,NW.shape({current:"undefined"==typeof Element?NW.any:NW.instanceOf(Element)})]),children:NW.oneOfType([NW.element,NW.arrayOf(NW.element)]).isRequired}),vRe(FOe,"defaultProps",{value:""});var kOe=wOe({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(e){return{"&singleLine":e.singleLine}}))(FOe),xOe=function(e){function t(){return sRe(this,t),pRe(this,hRe(t).apply(this,arguments))}return mRe(t,e),uRe(t,[{key:"render",value:function(){var e=yOe(this.props,["style","classNames","className"],bOe(t.propTypes));return m.default.createElement("li",oRe({id:this.props.id,role:"option","aria-selected":this.props.focused},e,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var e=this.props,t=e.query,n=e.renderSuggestion,i=e.suggestion,r=e.index,a=e.focused,o=this.getDisplay(),s=this.renderHighlightedDisplay(o,t);return n?n(i,t,s,r,a):s}},{key:"getDisplay",value:function(){var e=this.props.suggestion;if("string"==typeof e)return e;var t=e.id,n=e.display;return void 0!==t&&n?n:t}},{key:"renderHighlightedDisplay",value:function(e){var t=this.props,n=t.ignoreAccents,i=t.query,r=t.style,a=vOe(e,i,n);return-1===a?m.default.createElement("span",r("display"),e):m.default.createElement("span",r("display"),e.substring(0,a),m.default.createElement("b",r("highlight"),e.substring(a,a+i.length)),e.substring(a+i.length))}}]),t}(i.Component);vRe(xOe,"propTypes",{id:NW.string.isRequired,query:NW.string.isRequired,index:NW.number.isRequired,ignoreAccents:NW.bool,suggestion:NW.oneOfType([NW.string,NW.shape({id:NW.oneOfType([NW.string,NW.number]).isRequired,display:NW.string})]).isRequired,renderSuggestion:NW.func,focused:NW.bool});var EOe=wOe({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(xOe);function COe(){var e=ZRe(),t=e("spinner");return m.default.createElement("div",e,m.default.createElement("div",t,m.default.createElement("div",t(["element","element1"])),m.default.createElement("div",t(["element","element2"])),m.default.createElement("div",t(["element","element3"])),m.default.createElement("div",t(["element","element4"])),m.default.createElement("div",t(["element","element5"]))))}var SOe=function(e){function t(){var e,n;sRe(this,t);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return vRe(fRe(n=pRe(this,(e=hRe(t)).call.apply(e,[this].concat(r)))),"handleMouseEnter",(function(e,t){n.props.onMouseEnter&&n.props.onMouseEnter(e)})),vRe(fRe(n),"select",(function(e,t){n.props.onSelect(e,t)})),vRe(fRe(n),"setUlElement",(function(e){n.ulElement=e})),n}return mRe(t,e),uRe(t,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var e=this.ulElement.scrollTop,t=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=t.top,i=t.bottom,r=this.ulElement.getBoundingClientRect().top;i=i-r+e,(n=n-r+e)<e?this.ulElement.scrollTop=n:i>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=i-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.a11ySuggestionsListLabel,i=e.isOpened,r=e.style,a=e.onMouseDown,o=e.containerRef,s=e.position,l=e.left,u=e.top;return i?m.default.createElement("div",oRe({},QRe({position:s||"absolute",left:l,top:u},r),{onMouseDown:a,ref:o}),m.default.createElement("ul",oRe({ref:this.setUlElement,id:t,role:"listbox","aria-label":n},r("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var e=this;return Object.values(this.props.suggestions).reduce((function(t,n){var i=n.results,r=n.queryInfo;return[].concat(aRe(t),aRe(i.map((function(n,i){return e.renderSuggestion(n,r,t.length+i)}))))}),[])}},{key:"renderSuggestion",value:function(e,t,n){var r=this,a=n===this.props.focusIndex,o=t.childIndex,s=t.query,l=i.Children.toArray(this.props.children)[o].props.renderSuggestion,u=this.props.ignoreAccents;return m.default.createElement(EOe,{style:this.props.style("item"),key:"".concat(o,"-").concat(DOe(e)),id:cOe(this.props.id,n),query:s,index:n,ignoreAccents:u,renderSuggestion:l,suggestion:e,focused:a,onClick:function(){return r.select(e,t)},onMouseEnter:function(){return r.handleMouseEnter(n)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return m.default.createElement(COe,{style:this.props.style("loadingIndicator")})}}]),t}(i.Component);vRe(SOe,"propTypes",{id:NW.string.isRequired,suggestions:NW.object.isRequired,a11ySuggestionsListLabel:NW.string,focusIndex:NW.number,position:NW.string,left:NW.number,top:NW.number,scrollFocusedIntoView:NW.bool,isLoading:NW.bool,isOpened:NW.bool.isRequired,onSelect:NW.func,ignoreAccents:NW.bool,containerRef:NW.oneOfType([NW.func,NW.shape({current:"undefined"==typeof Element?NW.any:NW.instanceOf(Element)})]),children:NW.oneOfType([NW.element,NW.arrayOf(NW.element)]).isRequired}),vRe(SOe,"defaultProps",{suggestions:{},onSelect:function(){return null}});var DOe=function(e){return"string"==typeof e?e:e.id},POe=wOe({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(SOe);function AOe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function TOe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AOe(n,!0).forEach((function(t){vRe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AOe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LOe={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},IOe=!1,MOe={singleLine:NW.bool,allowSpaceInQuery:NW.bool,allowSuggestionsAboveCursor:NW.bool,forceSuggestionsAboveCursor:NW.bool,ignoreAccents:NW.bool,a11ySuggestionsListLabel:NW.string,value:NW.string,onKeyDown:NW.func,onSelect:NW.func,onBlur:NW.func,onChange:NW.func,suggestionsPortalHost:"undefined"==typeof Element?NW.any:NW.PropTypes.instanceOf(Element),inputRef:NW.oneOfType([NW.func,NW.shape({current:"undefined"==typeof Element?NW.any:NW.instanceOf(Element)})]),children:NW.oneOfType([NW.element,NW.arrayOf(NW.element)]).isRequired},jOe=function(e){function t(e){var n;return sRe(this,t),vRe(fRe(n=pRe(this,hRe(t).call(this,e))),"setContainerElement",(function(e){n.containerElement=e})),vRe(fRe(n),"getInputProps",(function(){var e=n.props,t=e.readOnly,i=e.disabled,r=e.style;return TOe({},yOe(n.props,["style","classNames","className"],bOe(MOe)),{},r("input"),{value:n.getPlainText()},!t&&!i&&{onChange:n.handleChange,onSelect:n.handleSelect,onKeyDown:n.handleKeyDown,onBlur:n.handleBlur,onCompositionStart:n.handleCompositionStart,onCompositionEnd:n.handleCompositionEnd,onScroll:n.updateHighlighterScroll},{},n.isOpened()&&{role:"combobox","aria-controls":n.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":cOe(n.uuidSuggestionsOverlay,n.state.focusIndex)})})),vRe(fRe(n),"renderControl",(function(){var e=n.props,t=e.singleLine,i=e.style,r=n.getInputProps();return m.default.createElement("div",i("control"),n.renderHighlighter(),t?n.renderInput(r):n.renderTextarea(r))})),vRe(fRe(n),"renderInput",(function(e){return m.default.createElement("input",oRe({type:"text",ref:n.setInputRef},e))})),vRe(fRe(n),"renderTextarea",(function(e){return m.default.createElement("textarea",oRe({ref:n.setInputRef},e))})),vRe(fRe(n),"setInputRef",(function(e){n.inputElement=e;var t=n.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),vRe(fRe(n),"setSuggestionsElement",(function(e){n.suggestionsElement=e})),vRe(fRe(n),"renderSuggestionsOverlay",(function(){if(!_Oe(n.state.selectionStart))return null;var e=n.state.suggestionsPosition,t=e.position,i=e.left,r=e.top,a=m.default.createElement(POe,{id:n.uuidSuggestionsOverlay,style:n.props.style("suggestions"),position:t,left:i,top:r,focusIndex:n.state.focusIndex,scrollFocusedIntoView:n.state.scrollFocusedIntoView,containerRef:n.setSuggestionsElement,suggestions:n.state.suggestions,onSelect:n.addMention,onMouseDown:n.handleSuggestionsMouseDown,onMouseEnter:n.handleSuggestionsMouseEnter,isLoading:n.isLoading(),isOpened:n.isOpened(),ignoreAccents:n.props.ignoreAccents,a11ySuggestionsListLabel:n.props.a11ySuggestionsListLabel},n.props.children);return n.props.suggestionsPortalHost?b.default.createPortal(a,n.props.suggestionsPortalHost):a})),vRe(fRe(n),"renderHighlighter",(function(){var e=n.state,t=e.selectionStart,i=e.selectionEnd,r=n.props,a=r.singleLine,o=r.children,s=r.value,l=r.style;return m.default.createElement(kOe,{containerRef:n.setHighlighterElement,style:l("highlighter"),value:s,singleLine:a,selectionStart:t,selectionEnd:i,onCaretPositionChange:n.handleCaretPositionChange},o)})),vRe(fRe(n),"setHighlighterElement",(function(e){n.highlighterElement=e})),vRe(fRe(n),"handleCaretPositionChange",(function(e){n.setState({caretPosition:e})})),vRe(fRe(n),"getPlainText",(function(){return oOe(n.props.value||"",pOe(n.props.children))})),vRe(fRe(n),"executeOnChange",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];var a,o;return n.props.onChange?(a=n.props).onChange.apply(a,[e].concat(i)):n.props.valueLink?(o=n.props.valueLink).requestChange.apply(o,[e.target.value].concat(i)):void 0})),vRe(fRe(n),"handleChange",(function(e){if(IOe=!1,(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=n.props.value||"",i=pOe(n.props.children),r=e.target.value,a=function(e,t,n,i){var r=n.selectionStartBefore,a=n.selectionEndBefore,o=n.selectionEndAfter,s=oOe(e,i),l=s.length-t.length;"undefined"===r&&(r=o+l),"undefined"===a&&(a=r),r===a&&a===o&&s.length===t.length&&(r-=1);var u=t.slice(r,o),c=Math.min(r,o),d=a;r===o&&(d=Math.max(a,r+l));var f=sOe(e,i,c,"START"),p=sOe(e,i,d,"END"),h=sOe(e,i,c,"NULL"),g=sOe(e,i,d,"NULL"),m=null===h||null===g,v=lOe(e,f,p,u);if(!m){var _=oOe(v,i);if(_!==t){for(c=0;t[c]===_[c];)c++;u=t.slice(c,o),d=s.lastIndexOf(t.substring(o)),f=sOe(e,i,c,"START"),p=sOe(e,i,d,"END"),v=lOe(e,f,p,u)}}return v}(t,r,{selectionStartBefore:n.state.selectionStart,selectionEndBefore:n.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},i);r=oOe(a,i);var o=e.target.selectionStart,s=e.target.selectionEnd,l=!1,u=function(e,t,n){var i=n,r=!1;if(aOe(e,t,(function(e,t,a,o,s,l,u){a<=n&&a+s.length>n&&(i=a,r=!0)})),r)return i}(t,i,o);void 0!==u&&n.state.selectionEnd>u&&(s=o=u,l=!0),n.setState({selectionStart:o,selectionEnd:s,setSelectionAfterMentionChange:l});var c=uOe(a,i),d={target:{value:a}};n.executeOnChange(d,a,r,c)}})),vRe(fRe(n),"handleSelect",(function(e){if(n.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!IOe){var t=n.inputElement;e.target.selectionStart===e.target.selectionEnd?n.updateMentionsQueries(t.value,e.target.selectionStart):n.clearSuggestions(),n.updateHighlighterScroll(),n.props.onSelect(e)}})),vRe(fRe(n),"handleKeyDown",(function(e){if(0!==dOe(n.state.suggestions)&&n.suggestionsElement)switch(Object.values(LOe).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case LOe.ESC:return void n.clearSuggestions();case LOe.DOWN:return void n.shiftFocus(1);case LOe.UP:return void n.shiftFocus(-1);case LOe.RETURN:case LOe.TAB:return void n.selectFocused();default:return}else n.props.onKeyDown(e)})),vRe(fRe(n),"shiftFocus",(function(e){var t=dOe(n.state.suggestions);n.setState({focusIndex:(t+n.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),vRe(fRe(n),"selectFocused",(function(){var e=n.state,t=e.suggestions,i=e.focusIndex,r=Object.values(t).reduce((function(e,t){var n=t.results,i=t.queryInfo;return[].concat(aRe(e),aRe(n.map((function(e){return{result:e,queryInfo:i}}))))}),[])[i],a=r.result,o=r.queryInfo;n.addMention(a,o),n.setState({focusIndex:0})})),vRe(fRe(n),"handleBlur",(function(e){var t=n._suggestionsMouseDown;n._suggestionsMouseDown=!1,t||n.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){n.updateHighlighterScroll()}),1),n.props.onBlur(e,t)})),vRe(fRe(n),"handleSuggestionsMouseDown",(function(e){n._suggestionsMouseDown=!0})),vRe(fRe(n),"handleSuggestionsMouseEnter",(function(e){n.setState({focusIndex:e,scrollFocusedIntoView:!1})})),vRe(fRe(n),"updateSuggestionsPosition",(function(){var e=n.state.caretPosition,t=n.props,i=t.suggestionsPortalHost,r=t.allowSuggestionsAboveCursor,a=t.forceSuggestionsAboveCursor;if(e&&n.suggestionsElement){var o=n.suggestionsElement,s=n.highlighterElement,l=s.getBoundingClientRect(),u=NOe(s,"font-size"),c={left:l.left+e.left,top:l.top+e.top+u},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(o){var f={};if(i){f.position="fixed";var p=c.left,h=c.top;p-=NOe(o,"margin-left"),h-=NOe(o,"margin-top"),p-=s.scrollLeft,h-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);p+o.offsetWidth>g?f.left=Math.max(0,g-o.offsetWidth):f.left=p,r&&h+o.offsetHeight>d&&o.offsetHeight<h-u||a?f.top=Math.max(0,h-o.offsetHeight-u):f.top=h}else{var m=e.left-s.scrollLeft,v=e.top-s.scrollTop;m+o.offsetWidth>n.containerElement.offsetWidth?f.right=0:f.left=m,r&&c.top-s.scrollTop+o.offsetHeight>d&&o.offsetHeight<l.top-u-s.scrollTop?f.top=v-o.offsetHeight-u:f.top=v}f.left===n.state.suggestionsPosition.left&&f.top===n.state.suggestionsPosition.top&&f.position===n.state.suggestionsPosition.position||n.setState({suggestionsPosition:f})}}})),vRe(fRe(n),"updateHighlighterScroll",(function(){var e=n.inputElement,t=n.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),vRe(fRe(n),"handleCompositionStart",(function(){IOe=!0})),vRe(fRe(n),"handleCompositionEnd",(function(){IOe=!1})),vRe(fRe(n),"setSelection",(function(e,t){if(null!==e&&null!==t){var i=n.inputElement;if(i.setSelectionRange)i.setSelectionRange(e,t);else if(i.createTextRange){var r=i.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}}})),vRe(fRe(n),"updateMentionsQueries",(function(e,t){n._queryId++,n.suggestions={},n.setState({suggestions:{}});var i=n.props.value||"",r=n.props.children,a=pOe(r),o=sOe(i,a,t,"NULL");if(null!==o){var s=function(e,t){var n=uOe(e,t),i=n[n.length-1];return i?i.plainTextIndex+i.display.length:0}(i.substring(0,o),a),l=e.substring(s,t);m.default.Children.forEach(r,(function(t,i){if(t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,i=$Re(e);return new RegExp("(?:^|\\s)(".concat(i,"([^").concat(n?"":"\\s").concat(i,"]*))$"))}(t.props.trigger,n.props),a=l.match(r);if(a){var o=s+l.indexOf(a[1],a.index);n.queryData(a[2],i,o,o+a[1].length,e)}}}))}})),vRe(fRe(n),"clearSuggestions",(function(){n._queryId++,n.suggestions={},n.setState({suggestions:{},focusIndex:0})})),vRe(fRe(n),"queryData",(function(e,t,r,a,o){var s=n.props,l=s.children,u=s.ignoreAccents,c=function(e,t){return e instanceof Array?function(n,i){for(var r=[],a=0,o=e.length;a<o;++a){var s=e[a].display||e[a].id;vOe(s,n,t)>=0&&r.push(e[a])}return r}:e}(i.Children.toArray(l)[t].props.data,u),d=c(e,n.updateSuggestions.bind(null,n._queryId,t,e,r,a,o));d instanceof Array&&n.updateSuggestions(n._queryId,t,e,r,a,o,d)})),vRe(fRe(n),"updateSuggestions",(function(e,t,i,r,a,o,s){if(e===n._queryId){n.suggestions=TOe({},n.suggestions,vRe({},t,{queryInfo:{childIndex:t,query:i,querySequenceStart:r,querySequenceEnd:a,plainTextValue:o},results:s}));var l=n.state.focusIndex,u=dOe(n.suggestions);n.setState({suggestions:n.suggestions,focusIndex:l>=u?Math.max(u-1,0):l})}})),vRe(fRe(n),"addMention",(function(e,t){var r=e.id,a=e.display,o=t.childIndex,s=t.querySequenceStart,l=t.querySequenceEnd,u=t.plainTextValue,c=n.props.value||"",d=pOe(n.props.children),f=i.Children.toArray(n.props.children)[o].props,p=f.markup,h=f.displayTransform,g=f.appendSpaceOnAdd,m=f.onAdd,v=sOe(c,d,s,"START"),_=v+l-s,b=function(e,t,n){return e.replace(XRe,t).replace(eOe,n)}(p,r,a);g&&(b+=" ");var y=lOe(c,v,_,b);n.inputElement.focus();var w=h(r,a);g&&(w+=" ");var F=s+w.length;n.setState({selectionStart:F,selectionEnd:F,setSelectionAfterMentionChange:!0});var k={target:{value:y}},x=uOe(y,d),E=lOe(u,s,l,w);n.executeOnChange(k,y,E,x),m&&m(r,a,v,_),n.clearSuggestions()})),vRe(fRe(n),"isLoading",(function(){var e=!1;return m.default.Children.forEach(n.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),vRe(fRe(n),"isOpened",(function(){return _Oe(n.state.selectionStart)&&(0!==dOe(n.state.suggestions)||n.isLoading())})),vRe(fRe(n),"_queryId",0),n.suggestions={},n.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),n.handleCopy=n.handleCopy.bind(fRe(n)),n.handleCut=n.handleCut.bind(fRe(n)),n.handlePaste=n.handlePaste.bind(fRe(n)),n.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},n}return mRe(t,e),uRe(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return m.default.createElement("div",oRe({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,i=t.selectionEnd,r=this.props,a=r.value,o=r.children,s=pOe(o),l=sOe(a,s,n,"START"),u=sOe(a,s,i,"END"),c=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=lOe(a,l,u,c||d).replace(/\r/g,""),p=oOe(f,s),h={target:TOe({},e.target,{value:f})};this.executeOnChange(h,f,p,uOe(f,s))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,i=t.selectionEnd,r=this.props,a=r.children,o=r.value,s=pOe(a),l=sOe(o,s,n,"START"),u=sOe(o,s,i,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,i)),e.clipboardData.setData("text/react-mentions",o.slice(l,u))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,i=t.selectionEnd,r=this.props,a=r.children,o=r.value,s=pOe(a),l=sOe(o,s,n,"START"),u=sOe(o,s,i,"END"),c=[o.slice(0,l),o.slice(u)].join(""),d=oOe(c,s),f={target:TOe({},e.target,{value:d})};this.executeOnChange(f,c,d,uOe(o,s))}}}]),t}(m.default.Component);vRe(jOe,"propTypes",MOe),vRe(jOe,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var NOe=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},ROe=wOe({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:TOe({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}))(jOe),OOe={fontWeight:"inherit"},zOe=function(e){var t=e.display,n=e.style,i=e.className,r=e.classNames,a=ZRe(OOe,{style:n,className:i,classNames:r});return m.default.createElement("strong",a,t)};zOe.propTypes={onAdd:NW.func,onRemove:NW.func,renderSuggestion:NW.func,trigger:NW.oneOfType([NW.string,NW.instanceOf(RegExp)]),markup:NW.string,displayTransform:NW.func,allowSpaceInQuery:NW.bool,isLoading:NW.bool},zOe.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};var BOe=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function GOe(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),i=BOe.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof i&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var qOe=[".DS_Store","Thumbs.db"];function UOe(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?WOe(e.dataTransfer,e.type):HOe(e))];var n}))}))}function HOe(e){return(null!==e.target&&e.target.files?VOe(e.target.files):[]).map((function(e){return GOe(e)}))}function WOe(e,t){return xa(this,void 0,void 0,(function(){var n;return Ea(this,(function(i){switch(i.label){case 0:return e.items?(n=VOe(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(KOe))]):[3,2];case 1:return[2,YOe(JOe(i.sent()))];case 2:return[2,YOe(VOe(e.files).map((function(e){return GOe(e)})))]}}))}))}function YOe(e){return e.filter((function(e){return-1===qOe.indexOf(e.name)}))}function VOe(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function KOe(e){if("function"!=typeof e.webkitGetAsEntry)return QOe(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$Oe(t):QOe(e)}function JOe(e){return e.reduce((function(e,t){return Pa(e,Array.isArray(t)?JOe(t):[t])}),[])}function QOe(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=GOe(t);return Promise.resolve(n)}function ZOe(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){return[2,e.isDirectory?$Oe(e):XOe(e)]}))}))}function $Oe(e){var t=e.createReader();return new Promise((function(e,n){var i=[];!function r(){var a=this;t.readEntries((function(t){return xa(a,void 0,void 0,(function(){var a,o,s;return Ea(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return a=l.sent(),e(a),[3,4];case 3:return o=l.sent(),n(o),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ZOe)),i.push(s),r(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function XOe(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var i=GOe(n,e.fullPath);t(i)}),(function(e){n(e)}))}))]}))}))}function eze(e,t){return"application/x-moz-file"===e.type||function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?i.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):r===t}))}return!0}(e,t)}function tze(e,t,n){if(nze(e.size)){if(nze(t)&&nze(n))return e.size>=t&&e.size<=n;if(nze(t))return e.size>=t;if(nze(n))return e.size<=n}return!0}function nze(e){return null!=e}function ize(e,t,n,i){return e.every((function(e){return eze(e,t)&&tze(e,n,i)}))}function rze(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function aze(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function oze(e){e.preventDefault()}function sze(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function lze(e){return-1!==e.indexOf("Edge/")}function uze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return sze(e)||lze(e)}function cze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.some((function(t){return!rze(e)&&t&&t.apply(void 0,[e].concat(i)),rze(e)}))}}function dze(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function fze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function pze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pze(n,!0).forEach((function(t){gze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pze(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mze(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var vze=i.forwardRef((function(e,t){var n=e.children,r=bze(mze(e,["children"])),a=r.open,o=mze(r,["open"]);return i.useImperativeHandle(t,(function(){return{open:a}}),[a]),m.default.createElement(i.Fragment,null,n(hze({},o,{open:a})))}));vze.displayName="Dropzone",vze.propTypes={children:NW.func,accept:NW.oneOfType([NW.string,NW.arrayOf(NW.string)]),multiple:NW.bool,preventDropOnDocument:NW.bool,noClick:NW.bool,noKeyboard:NW.bool,noDrag:NW.bool,noDragEventsBubbling:NW.bool,minSize:NW.number,maxSize:NW.number,disabled:NW.bool,getFilesFromEvent:NW.func,onFileDialogCancel:NW.func,onDragEnter:NW.func,onDragLeave:NW.func,onDragOver:NW.func,onDrop:NW.func,onDropAccepted:NW.func,onDropRejected:NW.func};var _ze={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function bze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accept,n=e.disabled,r=void 0!==n&&n,a=e.getFilesFromEvent,o=void 0===a?UOe:a,s=e.maxSize,l=void 0===s?1/0:s,u=e.minSize,c=void 0===u?0:u,d=e.multiple,f=void 0===d||d,p=e.onDragEnter,h=e.onDragLeave,g=e.onDragOver,m=e.onDrop,v=e.onDropAccepted,_=e.onDropRejected,b=e.onFileDialogCancel,y=e.preventDropOnDocument,w=void 0===y||y,F=e.noClick,k=void 0!==F&&F,x=e.noKeyboard,E=void 0!==x&&x,C=e.noDrag,S=void 0!==C&&C,D=e.noDragEventsBubbling,P=void 0!==D&&D,A=i.useRef(null),T=i.useRef(null),L=i.useReducer(yze,_ze),I=fze(L,2),M=I[0],j=I[1],N=M.isFocused,R=M.isFileDialogActive,O=M.draggedFiles,z=i.useCallback((function(){T.current&&(j({type:"openDialog"}),T.current.value=null,T.current.click())}),[j]),B=function(){R&&setTimeout((function(){T.current&&(T.current.files.length||(j({type:"closeDialog"}),"function"==typeof b&&b()))}),300)};i.useEffect((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[T,R,b]);var G=i.useCallback((function(e){A.current&&A.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),z()))}),[A,T]),q=i.useCallback((function(){j({type:"focus"})}),[]),U=i.useCallback((function(){j({type:"blur"})}),[]),H=i.useCallback((function(){k||(uze()?setTimeout(z,0):z())}),[T,k]),W=i.useRef([]),Y=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),W.current=[])};i.useEffect((function(){return w&&(document.addEventListener("dragover",oze,!1),document.addEventListener("drop",Y,!1)),function(){w&&(document.removeEventListener("dragover",oze),document.removeEventListener("drop",Y))}}),[A,w]);var V=i.useCallback((function(e){e.preventDefault(),e.persist(),ee(e),-1===W.current.indexOf(e.target)&&(W.current=[].concat(dze(W.current),[e.target])),aze(e)&&Promise.resolve(o(e)).then((function(t){rze(e)&&!P||(j({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),p&&p(e))}))}),[o,p,P]),K=i.useCallback((function(e){if(e.preventDefault(),e.persist(),ee(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return aze(e)&&g&&g(e),!1}),[g,P]),J=i.useCallback((function(e){e.preventDefault(),e.persist(),ee(e);var t=W.current.filter((function(t){return t!==e.target&&A.current&&A.current.contains(t)}));W.current=t,t.length>0||(j({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),aze(e)&&h&&h(e))}),[A,h,P]),Q=i.useCallback((function(e){e.preventDefault(),e.persist(),ee(e),W.current=[],j({type:"reset"}),aze(e)&&Promise.resolve(o(e)).then((function(n){if(!rze(e)||P){var i=[],r=[];n.forEach((function(e){eze(e,t)&&tze(e,c,l)?i.push(e):r.push(e)})),!f&&i.length>1&&r.push.apply(r,dze(i.splice(0))),j({acceptedFiles:i,rejectedFiles:r,type:"setFiles"}),m&&m(i,r,e),r.length>0&&_&&_(r,e),i.length>0&&v&&v(i,e)}}))}),[f,t,c,l,o,m,v,_,P]),Z=function(e){return r?null:e},$=function(e){return E?null:Z(e)},X=function(e){return S?null:Z(e)},ee=function(e){P&&e.stopPropagation()},te=i.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=mze(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return hze(gze({onKeyDown:$(cze(i,G)),onFocus:$(cze(a,q)),onBlur:$(cze(o,U)),onClick:Z(cze(s,H)),onDragEnter:X(cze(l,V)),onDragOver:X(cze(u,K)),onDragLeave:X(cze(c,J)),onDrop:X(cze(d,Q))},n,A),r||E?{}:{tabIndex:0},{},f)}}),[A,G,q,U,H,V,K,J,Q,E,S,r]),ne=i.useCallback((function(e){e.stopPropagation()}),[]),ie=i.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,i=void 0===n?"ref":n,r=e.onChange,a=e.onClick,o=mze(e,["refKey","onChange","onClick"]),s=gze({accept:t,multiple:f,type:"file",style:{display:"none"},onChange:Z(cze(r,Q)),onClick:Z(cze(a,ne)),autoComplete:"off",tabIndex:-1},i,T);return hze({},s,{},o)}}),[T,t,f,Q,r]),re=O.length,ae=f||re<=1,oe=re>0&&ize(O,t,c,l),se=re>0&&(!oe||!ae);return hze({},M,{isDragAccept:oe,isDragReject:se,isFocused:N&&!r,getRootProps:te,getInputProps:ie,rootRef:A,inputRef:T,open:Z(z)})}function yze(e,t){switch(t.type){case"focus":return hze({},e,{isFocused:!0});case"blur":return hze({},e,{isFocused:!1});case"openDialog":return hze({},e,{isFileDialogActive:!0});case"closeDialog":return hze({},e,{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive;return hze({},e,{draggedFiles:t.draggedFiles,isDragActive:n});case"setFiles":return hze({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return hze({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[]});default:return e}}var wze={exports:{}};!function(e,t){var n;n=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function n(n,i){if("string"!=typeof n)throw new Error("slugify: string argument expected");var r=t[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},a=i.replacement||"-",o=n.split("").reduce((function(t,n){return t+(r[n]||e[n]||n)}),"").replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"").trim().replace(new RegExp("[\\s"+a+"]+","g"),a);return i.lower&&(o=o.toLowerCase()),i.strict&&(o=o.replace(new RegExp("[^a-zA-Z0-9"+a+"]","g"),"")),o}return n.extend=function(t){for(var n in t)e[n]=t[n]},n},e.exports=n(),e.exports.default=n()}(wze);var Fze,kze=wze.exports;!function(e){e.BOTH="both",e.MOUSE="mouse",e.TOUCH="touch"}(Fze||(Fze={}));var xze={exports:{}};!function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2));t.default=i.default,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function r(e){return e&&e.__esModule?e:{default:e}}t.default=u;var a=n(3),o=r(n(4)),s=n(14),l=r(n(15));function u(e){var t=e.activeClassName,n=void 0===t?"":t,r=e.activeIndex,o=void 0===r?-1:r,u=e.activeStyle,c=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,h=e.findChunks,g=e.highlightClassName,m=void 0===g?"":g,v=e.highlightStyle,_=void 0===v?{}:v,b=e.highlightTag,y=void 0===b?"mark":b,w=e.sanitize,F=e.searchWords,k=e.textToHighlight,x=e.unhighlightClassName,E=void 0===x?"":x,C=e.unhighlightStyle,S=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),D=(0,a.findAll)({autoEscape:c,caseSensitive:f,findChunks:h,sanitize:w,searchWords:F,textToHighlight:k}),P=y,A=-1,T="",L=void 0,I=(0,l.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",i({className:p},S,{children:D.map((function(e,t){var i=k.substr(e.start,e.end-e.start);if(e.highlight){A++;var r=void 0;r="object"==typeof m?f?m[i]:(m=I(m))[i.toLowerCase()]:m;var a=A===+o;T=r+" "+(a?n:""),L=!0===a&&null!=u?Object.assign({},_,u):_;var l={children:i,className:T,key:t,style:L};return"string"!=typeof P&&(l.highlightIndex=A),(0,s.createElement)(P,l)}return(0,s.createElement)("span",{children:i,className:E,key:t,style:C})}))}))}u.propTypes={activeClassName:o.default.string,activeIndex:o.default.number,activeStyle:o.default.object,autoEscape:o.default.bool,className:o.default.string,findChunks:o.default.func,highlightClassName:o.default.oneOfType([o.default.object,o.default.string]),highlightStyle:o.default.object,highlightTag:o.default.oneOfType([o.default.node,o.default.func,o.default.string]),sanitize:o.default.func,searchWords:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.instanceOf(RegExp)])).isRequired,textToHighlight:o.default.string.isRequired,unhighlightClassName:o.default.string,unhighlightStyle:o.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,o=void 0!==a&&a,s=e.findChunks,l=void 0===s?i:s,u=e.sanitize,c=e.searchWords,d=e.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:o,sanitize:u,searchWords:c,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var i=Math.max(n.end,t.end);e.push({start:n.start,end:i})}else e.push(n,t);return e}),[])},i=function(e){var t=e.autoEscape,n=e.caseSensitive,i=e.sanitize,r=void 0===i?a:i,o=e.searchWords,s=e.textToHighlight;return s=r(s),o.filter((function(e){return e})).reduce((function(e,i){i=r(i),t&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(i,n?"g":"gi"),o=void 0;o=a.exec(s);){var l=o.index,u=a.lastIndex;u>l&&e.push({start:l,end:u}),o.index==a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=i;var r=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,i=[],r=function(e,t,n){t-e>0&&i.push({start:e,end:t,highlight:n})};if(0===t.length)r(0,n,!1);else{var a=0;t.forEach((function(e){r(a,e.start,!1),r(e.start,e.end,!0),a=e.end})),r(a,n,!1)}return i};function a(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(t){var i=n(7),r=n(8),a=n(9),o=n(10),s=n(11),l=n(12);e.exports=function(e,n){var u="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:h(i.thatReturnsNull),arrayOf:function(e){return h((function(t,n,i,r,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var o=t[n];if(!Array.isArray(o))return new p("Invalid "+r+" `"+a+"` of type `"+v(o)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<o.length;l++){var u=e(o,l,i,r,a+"["+l+"]",s);if(u instanceof Error)return u}return null}))},element:h((function(t,n,i,r,a){var o=t[n];return e(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+v(o)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,i,r,a){if(!(t[n]instanceof e)){var o=e.name||c;return new p("Invalid "+r+" `"+a+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `")+i+"`, expected instance of `"+o+"`.")}var s;return null}))},node:h((function(e,t,n,i,r){return m(e[t])?null:new p("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,i,r,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var o=t[n],l=v(o);if("object"!==l)return new p("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in o)if(o.hasOwnProperty(u)){var c=e(o,u,i,r,a+"."+u,s);if(c instanceof Error)return c}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return h((function(t,n,i,r,a){for(var o=t[n],s=0;s<e.length;s++)if(f(o,e[s]))return null;return new p("Invalid "+r+" `"+a+"` of value `"+o+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(r),n),i.thatReturnsNull}return h((function(t,n,i,r,a){for(var o=0;o<e.length;o++)if(null==(0,e[o])(t,n,i,r,a,s))return null;return new p("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return h((function(t,n,i,r,a){var o=t[n],l=v(o);if("object"!==l)return new p("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var c=e[u];if(c){var d=c(o,u,i,r,a+"."+u,s);if(d)return d}}return null}))},exact:function(e){return h((function(t,n,i,r,a){var l=t[n],u=v(l);if("object"!==u)return new p("Invalid "+r+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");var c=o({},t[n],e);for(var d in c){var f=e[d];if(!f)return new p("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(l,d,i,r,a+"."+d,s);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var i={},o=0;function l(l,u,d,f,h,g,m){if(f=f||c,g=g||d,m!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+d;!i[v]&&o<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,f),i[v]=!0,o++)}return null==u[d]?l?null===u[d]?new p("The "+h+" `"+g+"` is marked as required in `"+f+"`, but its value is `null`."):new p("The "+h+" `"+g+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(u,d,f,h,g)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function g(e){return h((function(t,n,i,r,a,o){var s=t[n];return v(s)!==e?new p("Invalid "+r+" `"+a+"` of type `"+_(s)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var i,r=n.call(t);if(n!==t.entries){for(;!(i=r.next()).done;)if(!m(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!m(a[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function _(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=_(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=l,d.PropTypes=d,d}}).call(t,n(5))},function(e,t){function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,i,r,a,o,s,l){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,a,o,s,l],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(5))},function(e,t,n){(function(t){var i=n(7);if("production"!==t.env.NODE_ENV){var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=0,a="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}};i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];r.apply(void 0,[t].concat(i))}}}e.exports=i}).call(t,n(5))},function(e,t){var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,s,l=a(e),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))i.call(o,c)&&(l[c]=o[c]);if(n){s=n(o);for(var d=0;d<s.length;d++)r.call(o,s[d])&&(l[s[d]]=o[s[d]])}}return l}},function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var i=n(8),r=n(9),a=n(11),o={};e.exports=function(e,n,s,l,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{i("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",l||"React class",s,c,typeof e[c]),d=e[c](n,c,l,s,null,a)}catch(e){d=e}if(r(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof d),d instanceof Error&&!(d.message in o)){o[d.message]=!0;var f=u?u():"";r(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){var i=n(7),r=n(8),a=n(11);e.exports=function(){function e(e,t,n,i,o,s){s!==a&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t){e.exports=m.default},function(e,t){var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=void 0,r=[],a=void 0,o=!1,s=function(e,n){return t(e,r[n])},l=function(){for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];return o&&i===this&&n.length===r.length&&n.every(s)?a:(o=!0,i=this,r=n,a=e.apply(this,n))};return l}}])}(xze);var Eze=x(xze.exports),Cze={exports:{}};!function(e,t){e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:V(e)}function i(e){return s(e)?e:K(e)}function r(e){return l(e)?e:J(e)}function a(e){return o(e)&&!u(e)?e:Q(e)}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(i,n),t(r,n),t(a,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=i,n.Indexed=r,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,_=v-1,b={},y={value:!1},w={value:!1};function F(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function x(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r<n;r++)i[r]=e[r+t];return i}function C(e){return void 0===e.size&&(e.size=e.__iterate(D)),e.size}function S(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function D(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return L(e,t,0)}function T(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I=0,M=1,j=2,N="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",O=N||R;function z(e){this.next=e}function B(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function G(){return{value:void 0,done:!0}}function q(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[R]);if("function"==typeof t)return t}function Y(e){return e&&"number"==typeof e.length}function V(e){return null==e?oe():o(e)?e.toSeq():ue(e)}function K(e){return null==e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function J(e){return null==e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Q(e){return(null==e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=I,z.VALUES=M,z.ENTRIES=j,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[O]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return de(this,e,t,!0)},V.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(K,V),K.prototype.toKeyedSeq=function(){return this},t(J,V),J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(e,t){return de(this,e,t,!1)},J.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Q,V),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=K,V.Set=Q,V.Indexed=J;var Z,$,X,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return Z||(Z=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():q(e)?new ie(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return Y(e)?new te(e):U(e)?new re(e):q(e)?new ie(e):void 0}function de(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function fe(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new z((function(){var e=r[n?a-o:o];return o++>a?G():B(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,i){return Array.isArray(t)?e.call(i,n,J(t).map((function(n,i){return he(e,n,i,t)}))):me(t)?e.call(i,n,K(t).map((function(n,i){return he(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?J(e).map(ge).toList():me(e)?K(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function _e(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&ve(r[1],e)&&(n||ve(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,i){if(n?!e.has(t):r?!ve(t,e.get(i,b)):!ve(e.get(i,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ye(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(X)return X;X=this}}function Fe(){throw TypeError("Abstract")}function ke(){}function xe(){}function Ee(){}V.prototype[ee]=!0,t(te,J),te.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,i=n.length-1,r=0;r<=i;r++)if(!1===e(n[t?i-r:r],r,this))return r+1;return r},te.prototype.__iterator=function(e,t){var n=this._array,i=n.length-1,r=0;return new z((function(){return r>i?G():B(e,r,n[t?i-r++:r++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new z((function(){var o=i[t?r-a:a];return a++>r?G():B(e,o,n[o])}))},ne.prototype[h]=!0,t(ie,J),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),i=0;if(U(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!U(n))return new z(G);var i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value)}))},t(re,J),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a<r.length;)if(!1===e(r[a],a++,this))return a;for(;!(n=i.next()).done;){var o=n.value;if(r[a]=o,!1===e(o,a++,this))break}return a},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,i=this._iteratorCache,r=0;return new z((function(){if(r>=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return B(e,r,i[r++])}))},t(be,J),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new be(this._value,T(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,i=0;return new z((function(){return i<n.size?B(e,i++,n._value):G()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):_e(e)},t(we,J),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=A(e,this.size),(t=T(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;a<=n;a++){if(!1===e(r,a,this))return a+1;r+=t?-i:i}return a},we.prototype.__iterator=function(e,t){var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;return new z((function(){var o=r;return r+=t?-i:i,a>n?G():B(e,a++,o)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:_e(this,e)},t(Fe,n),t(ke,Fe),t(xe,Fe),t(Ee,Fe),Fe.Keyed=ke,Fe.Indexed=xe,Fe.Set=Ee;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function Se(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Se(n)}if("string"===t)return e.length>ze?Pe(e):Ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Te(e);if("function"==typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=qe[e];return void 0===t&&(t=Ae(e),Ge===Be&&(Ge=0,qe={}),Ge++,qe[e]=t),t}function Ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Se(t)}function Te(e){var t;if(Ne&&void 0!==(t=je.get(e)))return t;if(void 0!==(t=e[Oe]))return t;if(!Ie){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Oe]))return t;if(void 0!==(t=Me(e)))return t}if(t=++Re,1073741824&Re&&(Re=0),Ne)je.set(e,t);else{if(void 0!==Le&&!1===Le(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ie)Object.defineProperty(e,Oe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Oe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Oe]=t}}return t}var Le=Object.isExtensible,Ie=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Me(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var je,Ne="function"==typeof WeakMap;Ne&&(je=new WeakMap);var Re=0,Oe="__immutablehash__";"function"==typeof Symbol&&(Oe=Symbol(Oe));var ze=16,Be=255,Ge=0,qe={};function Ue(e){ye(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?rt():We(e)&&!c(e)?e:rt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(He,ke),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return at(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return at(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=mt(this,Fn(e),t,n);return i===b?void 0:i},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return qt(dn(this,e))},He.prototype.sortBy=function(e,t){return qt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=We;var Ye,Ve="@@__IMMUTABLE_MAP__@@",Ke=He.prototype;function Je(e,t){this.ownerID=e,this.entries=t}function Qe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ke);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ye||(Ye=it(0))}function at(e,t,n){var i,r;if(e._root){var a=F(y),o=F(w);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;r=1,i=new Je(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===b?e:(k(s),k(o),new Xe(t,i,[r,a]))}function st(e){return e.constructor===Xe||e.constructor===$e}function lt(e,t,n,i,r){if(e.keyHash===i)return new $e(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&_,s=(0===n?i:i>>>n)&_;return new Qe(t,1<<o|1<<s,o===s?[lt(e,t,n+m,i,r)]:(a=new Xe(t,i,r),o<s?[e,a]:[a,e]))}function ut(e,t,n,i){e||(e=new x);for(var r=new Xe(e,De(n),[n,i]),a=0;a<t.length;a++){var o=t[a];r=r.update(e,0,void 0,o[0],o[1])}return r}function ct(e,t,n,i){for(var r=0,a=0,o=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==i&&(r|=l,o[a++]=c)}return new Qe(e,r,o)}function dt(e,t,n,i,r){for(var a=0,o=new Array(v),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Ze(e,a+1,o)}function ft(e,t,n){for(var r=[],a=0;a<n.length;a++){var s=n[a],l=i(s);o(s)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return gt(e,t,r)}function pt(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,i){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var r=e(t,n,i);return ve(t,r)?t:r}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var i=t?function(n,i){e.update(i,b,(function(e){return e===b?n:t(e,n,i)}))}:function(t,n){e.set(n,t)},r=0;r<n.length;r++)n[r].forEach(i)})):e.constructor(n[0])}function mt(e,t,n,i){var r=e===b,a=t.next();if(a.done){var o=r?n:e,s=i(o);return s===o?e:s}ye(r||e&&e.set,"invalid keyPath");var l=a.value,u=r?b:e.get(l,b),c=mt(u,t,n,i);return c===u?e:c===b?e.remove(l):(r?rt():e).set(l,c)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function _t(e,t,n,i){var r=i?e:E(e);return r[t]=n,r}function bt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s<r;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function yt(e,t,n){var i=e.length-1;if(n&&t===i)return e.pop(),e;for(var r=new Array(i),a=0,o=0;o<i;o++)o===t&&(a=1),r[o]=e[o+a];return r}Ke[Ve]=!0,Ke[g]=Ke.remove,Ke.removeIn=Ke.deleteIn,Je.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},Je.prototype.update=function(e,t,n,i,r,a,o){for(var s=r===b,l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),!s||1!==l.length){if(!d&&!s&&l.length>=wt)return ut(e,l,i,r);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new Je(e,p)}},Qe.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=1<<((0===e?t:t>>>e)&_),a=this.bitmap;return 0==(a&r)?i:this.nodes[vt(a&r-1)].get(e+m,t,n,i)},Qe.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&r===b)return this;var d=vt(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=ot(p,e,t+m,n,i,r,a,o);if(h===p)return this;if(!c&&h&&f.length>=Ft)return dt(e,f,u,s,h);if(c&&!h&&2===f.length&&st(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&st(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?_t(f,d,h,g):yt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=y,this):new Qe(e,v,y)},Ze.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=(0===e?t:t>>>e)&_,a=this.nodes[r];return a?a.get(e+m,t,n,i):i},Ze.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=r===b,u=this.nodes,c=u[s];if(l&&!c)return this;var d=ot(c,e,t+m,n,i,r,a,o);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<kt)return ct(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=_t(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ze(e,f,h)},$e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=r===b;if(n!==this.keyHash)return s?this:(k(o),k(a),lt(this,e,t,n,[i,r]));for(var l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),s&&2===c)return new Xe(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new $e(e,this.keyHash,p)},Xe.prototype.get=function(e,t,n,i){return ve(n,this.entry[0])?this.entry[1]:i},Xe.prototype.update=function(e,t,n,i,r,a,o){var s=r===b,l=ve(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(k(o),s?void k(a):l?e&&e===this.ownerID?(this.entry[1]=r,this):new Xe(e,this.keyHash,[i,r]):(k(a),lt(this,e,t,De(i),[i,r])))},Je.prototype.iterate=$e.prototype.iterate=function(e,t){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===e(n[t?r-i:i]))return!1},Qe.prototype.iterate=Ze.prototype.iterate=function(e,t){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var a=n[t?r-i:i];if(a&&!1===a.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,i=t.node,r=t.index++;if(i.entry){if(0===r)return tt(e,i.entry)}else if(i.entries){if(r<=(n=i.entries.length-1))return tt(e,i.entries[this._reverse?n-r:r])}else if(r<=(n=i.nodes.length-1)){var a=i.nodes[this._reverse?n-r:r];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return G()};var wt=v/4,Ft=v/2,kt=v/4;function xt(e){var t=Mt();if(null==e)return t;if(Et(e))return e;var n=r(e),i=n.size;return 0===i?t:(Ue(i),i>0&&i<v?It(0,i,m,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(i),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ct])}t(xt,xe),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=Ot(this,e+=this._origin);return n&&n.array[e&_]}return t},xt.prototype.set=function(e,t){return jt(this,e,t)},xt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var i=0;i<e.length;i++)n.set(t+i,e[i])}))},xt.prototype.pop=function(){return zt(this,0,-1)},xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},xt.prototype.shift=function(){return zt(this,1)},xt.prototype.merge=function(){return Bt(this,void 0,arguments)},xt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},xt.prototype.mergeDeep=function(){return Bt(this,pt,arguments)},xt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ht(t),n)},xt.prototype.setSize=function(e){return zt(this,0,e)},xt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:zt(this,A(e,n),T(t,n))},xt.prototype.__iterator=function(e,t){var n=0,i=Lt(this,t);return new z((function(){var t=i();return t===Tt?G():B(e,n++,t)}))},xt.prototype.__iterate=function(e,t){for(var n,i=0,r=Lt(this,t);(n=r())!==Tt&&!1!==e(n,i++,this););return i},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?It(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},xt.isList=Et;var Ct="@@__IMMUTABLE_LIST__@@",St=xt.prototype;function Dt(e,t){this.array=e,this.ownerID=t}St[Ct]=!0,St[g]=St.remove,St.setIn=Ke.setIn,St.deleteIn=St.removeIn=Ke.removeIn,St.update=Ke.update,St.updateIn=Ke.updateIn,St.mergeIn=Ke.mergeIn,St.mergeDeepIn=Ke.mergeDeepIn,St.withMutations=Ke.withMutations,St.asMutable=Ke.asMutable,St.asImmutable=Ke.asImmutable,St.wasAltered=Ke.wasAltered,Dt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var i=n>>>t&_;if(i>=this.array.length)return new Dt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!r)return this;var s=Rt(this,e);if(!a)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},Dt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var i,r=n-1>>>t&_;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-m,n))===a&&r===this.array.length-1)return this}var o=Rt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Pt,At,Tt={};function Lt(e,t){var n=e._origin,i=e._capacity,r=Gt(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;return u>v&&(u=v),function(){if(l===u)return Tt;var e=t?--u:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);return c>v&&(c=v),function(){for(;;){if(s){var e=s();if(e!==Tt)return e;s=null}if(u===c)return Tt;var n=t?--c:u++;s=o(l&&l[n],r-m,a+(n<<r))}}}}function It(e,t,n,i,r,a,o){var s=Object.create(St);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=i,s._tail=r,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function Mt(){return Pt||(Pt=It(0,0,m))}function jt(e,t,n){if((t=S(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=F(w);return t>=Gt(e._capacity)?i=Nt(i,e.__ownerID,0,t,n,a):r=Nt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):It(e._origin,e._capacity,e._level,r,i):e}function Nt(e,t,n,i,r,a){var o,s=i>>>n&_,l=e&&s<e.array.length;if(!l&&void 0===r)return e;if(n>0){var u=e&&e.array[s],c=Nt(u,t,n-m,i,r,a);return c===u?e:((o=Rt(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(k(a),o=Rt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function Rt(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Ot(e,t){if(t>=Gt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,i=e._level;n&&i>0;)n=n.array[t>>>i&_],i-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new x,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new Dt(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=m);c&&(o+=c,r+=c,s+=c,a+=c);for(var d=Gt(a),f=Gt(s);f>=1<<l+m;)u=new Dt(u&&u.array.length?[u]:[],i),l+=m;var p=e._tail,h=f<d?Ot(e,s-1):f>d?new Dt([],i):p;if(p&&f>d&&o<a&&p.array.length){for(var g=u=Rt(u,i),v=l;v>m;v-=m){var b=d>>>v&_;g=g.array[b]=Rt(g.array[b],i)}g.array[d>>>m&_]=p}if(s<a&&(h=h&&h.removeAfter(i,0,s)),o>=f)o-=f,s-=f,l=m,u=null,h=h&&h.removeBefore(i,0,o);else if(o>r||f<d){for(c=0;u;){var y=o>>>l&_;if(y!==f>>>l&_)break;y&&(c+=(1<<l)*y),l-=m,u=u.array[y]}u&&o>r&&(u=u.removeBefore(i,l,o-c)),u&&f<d&&(u=u.removeAfter(i,l,f-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):It(o,s,l,u,h)}function Bt(e,t,n){for(var i=[],a=0,s=0;s<n.length;s++){var l=n[s],u=r(l);u.size>a&&(a=u.size),o(l)||(u=u.map((function(e){return pe(e)}))),i.push(u)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function Gt(e){return e<v?0:e-1>>>m<<m}function qt(e){return null==e?Wt():Ut(e)?e:Wt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return We(e)&&c(e)}function Ht(e,t,n,i){var r=Object.create(qt.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Wt(){return At||(At=Ht(rt(),Mt()))}function Yt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===b){if(!l)return e;o.size>=v&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Ht(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Jt(e){this._iter=e,this.size=e.size}function Qt(e){this._iter=e,this.size=e.size}function Zt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=yn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===j){var i=e.__iterator(t,n);return new z((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===M?I:M,n)},t}function $t(e,t,n){var i=bn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,b);return a===b?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(j,r);return new z((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return B(i,s,t.call(n,o[1],s,e),r)}))},i}function Xt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=yn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=bn(e);return i&&(r.has=function(i){var r=e.get(i,b);return r!==b&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,b);return a!==b&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(j,a),s=0;return new z((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return B(r,i?u:s++,c,a)}}))},r}function tn(e,t,n){var i=He().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(c(e)?qt():He()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=_n(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),P(t,n,r))return e;var a=A(t,r),o=T(n,r);if(a!=a||o!=o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l==l&&(s=l<0?0:l);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(u.get=function(t,n){return(t=S(this,t))>=0&&t<s?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=o++<a))return u++,!1!==t(e,i?n:u-1,r)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var r=0!==s&&e.__iterator(t,n),o=0,l=0;return new z((function(){for(;o++<a;)r.next();if(++l>s)return G();var e=r.next();return i||t===M?e:B(t,l-1,t===I?void 0:e.value[1],e)}))},u}function an(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(j,r),s=!0;return new z((function(){if(!s)return G();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?i===j?e:B(i,l,u,e):(s=!1,G())}))},i}function on(e,t,n,i){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(j,a),l=!0,u=0;return new z((function(){var e,a,c;do{if((e=s.next()).done)return i||r===M?e:B(r,u++,r===I?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,o))}while(l);return r===j?e:B(r,a,c,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var u=new te(r);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function ln(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,u){var c=this;e.__iterate((function(e,r){return(!t||u<t)&&o(e)?l(e,u+1):!1===i(e,n?r:a++,c)&&(s=!0),!s}),r)}return l(e,0),a},i.__iteratorUncached=function(i,r){var a=e.__iterator(i,r),s=[],l=0;return new z((function(){for(;a;){var e=a.next();if(!1===e.done){var u=e.value;if(i===j&&(u=u[1]),t&&!(s.length<t)||!o(u))return n?e:B(i,l++,u,e);s.push(a),a=u.__iterator(i,r)}else a=s.pop()}return G()}))},i}function un(e,t,n){var i=_n(e);return e.toSeq().map((function(r,a){return i(t.call(n,r,a,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,i){var r=this,a=0;return e.__iterate((function(e,i){return(!a||!1!==n(t,a++,r))&&!1!==n(e,a++,r)}),i),a},n.__iteratorUncached=function(n,i){var r,a=e.__iterator(M,i),o=0;return new z((function(){return(!r||o%2)&&(r=a.next()).done?r:o%2?B(n,o++,t):B(n,o++,r.value,r)}))},n}function dn(e,t,n){t||(t=wn);var i=s(e),r=0,a=e.toSeq().map((function(t,i){return[i,t,r++,n?n(t,i,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),i?K(a):l(e)?J(a):Q(a)}function fn(e,t,n){if(t||(t=wn),n){var i=e.toSeq().map((function(t,i){return[t,n(t,i,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return i&&i[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var i=e(n,t);return 0===i&&n!==t&&(null==n||n!=n)||i>0}function hn(e,t,i){var r=bn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(M,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),H(r?e.reverse():e)})),o=0,s=!1;return new z((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?G():B(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),C(e)}function _n(e){return s(e)?i:l(e)?r:a}function bn(e){return Object.create((s(e)?K:l(e)?J:Q).prototype)}function yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function wn(e,t){return e>t?1:e<t?-1:0}function Fn(e){var t=H(e);if(!t){if(!Y(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function kn(e,t){var n,i=function(a){if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var o=Object.keys(e);Sn(r,o),r.size=o.length,r._name=t,r._keys=o,r._defaultValues=e}this._map=He(a)},r=i.prototype=Object.create(xn);return r.constructor=i,i}t(qt,He),qt.of=function(){return this(arguments)},qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},qt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},qt.prototype.set=function(e,t){return Yt(this,e,t)},qt.prototype.remove=function(e){return Yt(this,e,b)},qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},qt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},qt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},qt.isOrderedMap=Ut,qt.prototype[h]=!0,qt.prototype[g]=qt.prototype.remove,t(Vt,K),Vt.prototype.get=function(e,t){return this._iter.get(e,t)},Vt.prototype.has=function(e){return this._iter.has(e)},Vt.prototype.valueSeq=function(){return this._iter.valueSeq()},Vt.prototype.reverse=function(){var e=this,t=Xt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Vt.prototype.map=function(e,t){var n=this,i=$t(this,e,t);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(e,t)}),i},Vt.prototype.__iterate=function(e,t){var n,i=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,i)}:(n=t?vn(this):0,function(r){return e(r,t?--n:n++,i)}),t)},Vt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(M,t),i=t?vn(this):0;return new z((function(){var r=n.next();return r.done?r:B(e,t?--i:i++,r.value,r)}))},Vt.prototype[h]=!0,t(Kt,J),Kt.prototype.includes=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this,i=0;return this._iter.__iterate((function(t){return e(t,i++,n)}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t),i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value,t)}))},t(Jt,Q),Jt.prototype.has=function(e){return this._iter.includes(e)},Jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Qt,K),Qt.prototype.entrySeq=function(){return this._iter.toSeq()},Qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var i=o(t);return e(i?t.get(1):t[1],i?t.get(0):t[0],n)}}),t)},Qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var i=t.value;if(i){mn(i);var r=o(i);return B(e,r?i.get(0):i[0],r?i.get(1):i[1],t)}}}))},Kt.prototype.cacheResult=Vt.prototype.cacheResult=Jt.prototype.cacheResult=Qt.prototype.cacheResult=yn,t(kn,ke),kn.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},kn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,rt()))},kn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},kn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},kn.prototype.__iterate=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var xn=kn.prototype;function En(e,t,n){var i=Object.create(Object.getPrototypeOf(e));return i._map=t,i.__ownerID=n,i}function Cn(e){return e._name||e.constructor.name||"Record"}function Sn(e,t){try{t.forEach(Dn.bind(void 0,e))}catch(e){}}function Dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ye(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pn(e){return null==e?Nn():An(e)&&!c(e)?e:Nn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function An(e){return!(!e||!e[Ln])}xn[g]=xn.remove,xn.deleteIn=xn.removeIn=Ke.removeIn,xn.merge=Ke.merge,xn.mergeWith=Ke.mergeWith,xn.mergeIn=Ke.mergeIn,xn.mergeDeep=Ke.mergeDeep,xn.mergeDeepWith=Ke.mergeDeepWith,xn.mergeDeepIn=Ke.mergeDeepIn,xn.setIn=Ke.setIn,xn.update=Ke.update,xn.updateIn=Ke.updateIn,xn.withMutations=Ke.withMutations,xn.asMutable=Ke.asMutable,xn.asImmutable=Ke.asImmutable,t(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(i(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Mn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Mn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Mn(this,this._map.clear())},Pn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Rn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Rn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,i){return e(i,i,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pn.isSet=An;var Tn,Ln="@@__IMMUTABLE_SET__@@",In=Pn.prototype;function Mn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(In);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Tn||(Tn=jn(rt()))}function Rn(e){return null==e?qn():On(e)?e:qn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function On(e){return An(e)&&c(e)}In[Ln]=!0,In[g]=In.remove,In.mergeDeep=In.merge,In.mergeDeepWith=In.mergeWith,In.withMutations=Ke.withMutations,In.asMutable=Ke.asMutable,In.asImmutable=Ke.asImmutable,In.__empty=Nn,In.__make=jn,t(Rn,Pn),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(e){return this(i(e).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=On;var zn,Bn=Rn.prototype;function Gn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function qn(){return zn||(zn=Gn(Wt()))}function Un(e){return null==e?Jn():Hn(e)?e:Jn().unshiftAll(e)}function Hn(e){return!(!e||!e[Yn])}Bn[h]=!0,Bn.__empty=qn,Bn.__make=Gn,t(Un,xe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=S(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Jn()},Un.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=A(e,this.size);if(T(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Kn(i,r)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new z((function(){if(i){var t=i.value;return i=i.next,B(e,n++,t)}return G()}))},Un.isStack=Hn;var Wn,Yn="@@__IMMUTABLE_STACK__@@",Vn=Un.prototype;function Kn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Jn(){return Wn||(Wn=Kn(0))}function Qn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Yn]=!0,Vn.withMutations=Ke.withMutations,Vn.asMutable=Ke.asMutable,Vn.asImmutable=Ke.asImmutable,Vn.wasAltered=Ke.wasAltered,n.Iterator=z,Qn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Kt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return qt(this.toKeyedSeq())},toOrderedSet:function(){return Rn(s(this)?this.valueSeq():this)},toSet:function(){return Pn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Jt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return xt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(j)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!=i?i.toString():""})),t},keys:function(){return this.__iterator(I)},map:function(e,t){return gn(this,$t(this,e,t))},reduce:function(e,t,n){var i,r;return Ue(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Xt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return _e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Qt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=Fn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,b):b)===b)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?ni(e):ai)},minBy:function(e,t){return fn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Zn=n.prototype;Zn[d]=!0,Zn[O]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=ii,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,function(){try{Object.defineProperty(Zn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Qn(i,{flip:function(){return gn(this,Zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var $n=i.prototype;function Xn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"==typeof e?JSON.stringify(e):e}function ri(){return E(arguments)}function ai(e,t){return e<t?1:e>t?-1:0}function oi(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(De(e),De(t))|0}:function(e,t){i=i+li(De(e),De(t))|0}:t?function(e){i=31*i+De(e)|0}:function(e){i=i+De(e)|0}),i)}function si(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Se((t=Ce(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return $n[f]=!0,$n[O]=Zn.entries,$n.__toJS=Zn.toObject,$n.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},Qn(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Xt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,cn(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),J.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,on(this,e,t,!1))},zip:function(){return gn(this,hn(this,ri,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),r.prototype[p]=!0,r.prototype[h]=!0,Qn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Zn.includes,Qn(K,i.prototype),Qn(J,r.prototype),Qn(Q,a.prototype),Qn(ke,i.prototype),Qn(xe,r.prototype),Qn(Ee,a.prototype),{Iterable:n,Seq:V,Collection:Fe,Map:He,OrderedMap:qt,List:xt,Stack:Un,Set:Pn,OrderedSet:Rn,Record:kn,Range:we,Repeat:be,is:ve,fromJS:pe}}()}(Cze);var Sze=Cze.exports.OrderedMap,Dze={createFromArray:function(e){return Sze(e.map((function(e){return[e.getKey(),e]})))}},Pze=Dze;var Aze=Cze.exports,Tze=Aze.Map,Lze=Aze.OrderedSet,Ize=Aze.Record,Mze=Lze(),jze={style:Mze,entity:null},Nze=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(e){return this.getStyle().includes(e)},i.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return i.create(n)},i.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return i.create(n)},i.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return i.create(n)},i.create=function(e){if(!e)return Rze;var t=Tze({style:Mze,entity:null}).merge(e),n=Oze.get(t);if(n)return n;var r=new i(t);return Oze=Oze.set(t,r),r},i.fromJS=function(e){var t=e.style,n=e.entity;return new i({style:Array.isArray(t)?Lze(t):t,entity:Array.isArray(n)?Lze(n):n})},i}(Ize(jze)),Rze=new Nze,Oze=Tze([[Tze(jze),Rze]]);Nze.EMPTY=Rze;var zze=Nze;var Bze=function(e,t,n,i){if(e.size){var r=0;e.reduce((function(e,a,o){return t(e,a)||(n(e)&&i(r,o),r=o),a})),n(e.last())&&i(r,e.count())}};var Gze=zze,qze=Bze,Uze=Cze.exports,Hze=Uze.List,Wze=Uze.Map,Yze=Uze.OrderedSet,Vze=Uze.Record,Kze=Uze.Repeat,Jze=Yze(),Qze=Vze({key:"",type:"unstyled",text:"",characterList:Hze(),depth:0,data:Wze()}),Zze=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Hze(Kze(Gze.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return 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(e){var t=this.getCharacterList().get(e);return t?t.getStyle():Jze},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},r.findStyleRanges=function(e,t){qze(this.getCharacterList(),$ze,e,t)},r.findEntityRanges=function(e,t){qze(this.getCharacterList(),Xze,e,t)},i}(Qze);function $ze(e,t){return e.getStyle()===t.getStyle()}function Xze(e,t){return e.getEntity()===t.getEntity()}var eBe=Zze;var tBe=zze,nBe=Bze,iBe=Cze.exports,rBe=iBe.List,aBe=iBe.Map,oBe=iBe.OrderedSet,sBe=iBe.Record,lBe=iBe.Repeat,uBe=oBe(),cBe={parent:null,characterList:rBe(),data:aBe(),depth:0,key:"",text:"",type:"unstyled",children:rBe(),prevSibling:null,nextSibling:null},dBe=function(e,t){return e.getStyle()===t.getStyle()},fBe=function(e,t){return e.getEntity()===t.getEntity()},pBe=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=rBe(lBe(tBe.EMPTY,n.length))),e},hBe=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cBe;return e.call(this,pBe(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return 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(e){var t=this.getCharacterList().get(e);return t?t.getStyle():uBe},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.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(e,t){nBe(this.getCharacterList(),dBe,e,t)},r.findEntityRanges=function(e,t){nBe(this.getCharacterList(),fBe,e,t)},i}(sBe(cBe)),gBe=hBe,mBe=zze,vBe=Cze.exports.Map;function _Be(e,t,n,i){var r=e.getBlockMap(),a=t.getStartKey(),o=t.getStartOffset(),s=t.getEndKey(),l=t.getEndOffset(),u=r.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===s})).concat(vBe([[s,r.get(s)]])).map((function(e,t){var r,u;a===s?(r=o,u=l):(r=t===a?o:0,u=t===s?l:e.getLength());for(var c,d=e.getCharacterList();r<u;)c=d.get(r),d=d.set(r,i?mBe.applyStyle(c,n):mBe.removeStyle(c,n)),r++;return e.set("characterList",d)}));return e.merge({blockMap:r.merge(u),selectionBefore:t,selectionAfter:t})}var bBe={add:function(e,t,n){return _Be(e,t,n,!0)},remove:function(e,t,n){return _Be(e,t,n,!1)}},yBe=zze;var wBe=function(e,t,n,i){for(var r=t,a=e.getCharacterList();r<n;)a=a.set(r,yBe.applyEntity(a.get(r),i)),r++;return e.set("characterList",a)},FBe=Cze.exports;var kBe=function(e,t,n){var i=e.getBlockMap(),r=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).toOrderedMap().merge(FBe.OrderedMap([[o,i.get(o)]])).map((function(e,t){var i=t===r?a:0,l=t===o?s:e.getLength();return wBe(e,i,l,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})},xBe={getRemovalRange:function(e,t,n,i,r){var a=n.split(" ");a=a.map((function(e,t){if("forward"===r){if(t>0)return" "+e}else if(t<a.length-1)return e+" ";return e}));for(var o,s=i,l=null,u=null,c=0;c<a.length;c++){if(e<(o=s+a[c].length)&&s<t)null!==l||(l=s),u=o;else if(null!==l)break;s=o}var d=i+n.length,f=l===i,p=u===d;return(!f&&p||f&&!p)&&("forward"===r?u!==d&&u++:l!==i&&l--),{start:l,end:u}}},EBe="production"!==go.env.NODE_ENV?function(e){}:function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")};var CBe=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(EBe(t),!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;(a=new Error(t.replace(/%s/g,(function(){return String(i[o++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}},SBe=CBe;var DBe=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==go.env.NODE_ENV?SBe(!1,"Entity key not found in this range."):SBe(!1)),n},PBe=xBe,ABe=DBe,TBe=CBe;function LBe(e,t,n,i,r,a,o){var s=n.getStartOffset(),l=n.getEndOffset(),u=e.__get(r).getMutability(),c=o?s:l;if("MUTABLE"===u)return n;var d=ABe(t,r).filter((function(e){return c<=e.end&&c>=e.start}));1!=d.length&&("production"!==go.env.NODE_ENV?TBe(!1,"There should only be one entity range within this removal range."):TBe(!1));var f=d[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});a||(o?l=f.end:s=f.start);var p=PBe.getRemovalRange(s,l,t.getText().slice(f.start,f.end),f.start,i);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var IBe=function(e,t,n,i,r){var a=i.getStartOffset(),o=i.getEndOffset(),s=t.getEntityAt(a),l=n.getEntityAt(o-1);if(!s&&!l)return i;var u=i;if(s&&s===l)u=LBe(e,t,u,r,s,!0,!0);else if(s&&l){var c=LBe(e,t,u,r,s,!1,!0),d=LBe(e,n,u,r,l,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var f=LBe(e,t,u,r,s,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var p=LBe(e,n,u,r,l,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},MBe={},jBe=Math.pow(2,24);var NBe=function(){for(var e;void 0===e||MBe.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*jBe).toString(32);return MBe[e]=!0,e},RBe=gBe,OBe=NBe,zBe=Cze.exports.OrderedMap,BBe=function(e){return e.first()instanceof RBe?function(e){var t,n={};return zBe(e.withMutations((function(e){e.forEach((function(i,r){var a=i.getKey(),o=i.getNextSiblingKey(),s=i.getPrevSiblingKey(),l=i.getChildKeys(),u=i.getParentKey(),c=OBe();if(n[a]=c,o&&(e.get(o)?e.setIn([o,"prevSibling"],c):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(i.getKey()),c))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([a,"children"],i.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return zBe(e.toArray().map((function(e){var t=OBe();return[t,e.set("key",t)]})))}(e)},GBe=zze,qBe=Bze,UBe=CBe;function HBe(e,t,n){var i=t.getCharacterList(),r=n>0?i.get(n-1):void 0,a=n<i.count()?i.get(n):void 0,o=r?r.getEntity():void 0,s=a?a.getEntity():void 0;if(s&&s===o&&"MUTABLE"!==e.__get(s).getMutability()){for(var l,u=function(e,t,n){var i;return qBe(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(i={start:e,end:t})})),"object"!=typeof i&&("production"!==go.env.NODE_ENV?UBe(!1,"Removal range must exist within character list."):UBe(!1)),i}(i,s,n),c=u.start,d=u.end;c<d;)l=i.get(c),i=i.set(c,GBe.applyEntity(l,null)),c++;return t.set("characterList",i)}return t}var WBe=function(e,t){var n=e.getBlockMap(),i=e.getEntityMap(),r={},a=t.getStartKey(),o=t.getStartOffset(),s=n.get(a),l=HBe(i,s,o);l!==s&&(r[a]=l);var u=t.getEndKey(),c=t.getEndOffset(),d=n.get(u);a===u&&(d=l);var f=HBe(i,d,c);return f!==d&&(r[u]=f),Object.keys(r).length?e.merge({blockMap:n.merge(r),selectionAfter:t}):e.set("selectionAfter",t)},YBe=BBe,VBe=WBe,KBe=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=t.getEndKey(),a=t.getEndOffset(),o=VBe(e,t).getBlockMap(),s=o.keySeq(),l=s.indexOf(n),u=s.indexOf(r)+1;return YBe(o.slice(l,u).map((function(e,t){var o=e.getText(),s=e.getCharacterList();return n===r?e.merge({text:o.slice(i,a),characterList:s.slice(i,a)}):t===n?e.merge({text:o.slice(i),characterList:s.slice(i)}):t===r?e.merge({text:o.slice(0,a),characterList:s.slice(0,a)}):e})))};var JBe=function(e,t,n){var i=e;if(n===i.count())t.forEach((function(e){i=i.push(e)}));else if(0===n)t.reverse().forEach((function(e){i=i.unshift(e)}));else{var r=i.slice(0,n),a=i.slice(n);i=r.concat(t,a).toList()}return i},QBe=Pze,ZBe=gBe,$Be=JBe,XBe=CBe,eGe=BBe,tGe=Cze.exports.List,nGe=function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(r),l=s.getText(),u=s.getCharacterList(),c=r,d=a+i.getText().length,f=null;switch(o){case"MERGE_OLD_DATA_TO_NEW_DATA":f=i.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":f=i.getData()}var p=s.getType();l&&"unstyled"===p&&(p=i.getType());var h=s.merge({text:l.slice(0,a)+i.getText()+l.slice(a),characterList:$Be(u,i.getCharacterList(),a),type:p,data:f});return e.merge({blockMap:n.set(r,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:d,focusKey:c,focusOffset:d,isBackward:!1})})},iGe=function(e,t,n,i,r,a){var o=n.first()instanceof ZBe,s=[],l=i.size,u=n.get(r),c=i.first(),d=i.last(),f=d.getLength(),p=d.getKey(),h=o&&(!u.getChildKeys().isEmpty()||!c.getChildKeys().isEmpty());n.forEach((function(e,t){t===r?(h?s.push(e):s.push(function(e,t,n){var i=e.getText(),r=e.getCharacterList(),a=i.slice(0,t),o=r.slice(0,t),s=n.first();return e.merge({text:a+s.getText(),characterList:o.concat(s.getCharacterList()),type:a?e.getType():s.getType(),data:s.getData()})}(e,a,i)),i.slice(h?0:1,l-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var i=e.getText(),r=e.getCharacterList(),a=i.length,o=i.slice(t,a),s=r.slice(t,a),l=n.last();return l.merge({text:l.getText()+o,characterList:l.getCharacterList().concat(s),data:l.getData()})}(e,a,i))):s.push(e)}));var g=QBe.createFromArray(s);return o&&(g=function(e,t,n,i){return e.withMutations((function(t){var r=n.getKey(),a=i.getKey(),o=n.getNextSiblingKey(),s=n.getParentKey(),l=function(e,t){var n=e.getKey(),i=e,r=[];for(t.get(n)&&r.push(n);i&&i.getNextSiblingKey();){var a=i.getNextSiblingKey();if(!a)break;r.push(a),i=t.get(a)}return r}(i,e),u=l[l.length-1];if(t.get(a)?(t.setIn([r,"nextSibling"],a),t.setIn([a,"prevSibling"],r)):(t.setIn([r,"nextSibling"],i.getNextSiblingKey()),t.setIn([i.getNextSiblingKey(),"prevSibling"],r)),t.setIn([u,"nextSibling"],o),o&&t.setIn([o,"prevSibling"],u),l.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var c=e.get(s).getChildKeys(),d=c.indexOf(r)+1,f=c.toArray();f.splice.apply(f,[d,0].concat(l)),t.setIn([s,"children"],tGe(f))}}))}(g,0,u,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},rGe=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==go.env.NODE_ENV?XBe(!1,"`insertFragment` should only be called with a collapsed selection state."):XBe(!1));var r=e.getBlockMap(),a=eGe(n),o=t.getStartKey(),s=t.getStartOffset(),l=r.get(o);return l instanceof ZBe&&(l.getChildKeys().isEmpty()||("production"!==go.env.NODE_ENV?XBe(!1,"`insertFragment` should not be called when a container node is selected."):XBe(!1))),1===a.size?nGe(e,t,r,a.first(),o,s,i):iGe(e,t,r,a,o,s)},aGe=JBe,oGe=CBe,sGe=Cze.exports.Repeat;var lGe=function(e,t,n,i){t.isCollapsed()||("production"!==go.env.NODE_ENV?oGe(!1,"`insertText` should only be called with a collapsed range."):oGe(!1));var r=null;if(null!=n&&(r=n.length),null==r||0===r)return e;var a=e.getBlockMap(),o=t.getStartKey(),s=t.getStartOffset(),l=a.get(o),u=l.getText(),c=l.merge({text:u.slice(0,s)+n+u.slice(s,l.getLength()),characterList:aGe(l.getCharacterList(),sGe(i,r).toList(),s)}),d=s+r;return e.merge({blockMap:a.set(o,c),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},uGe=Cze.exports.Map;var cGe=function(e,t,n){var i=t.getStartKey(),r=t.getEndKey(),a=e.getBlockMap(),o=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===r})).concat(uGe([[r,a.get(r)]])).map(n);return e.merge({blockMap:a.merge(o),selectionBefore:t,selectionAfter:t})},dGe=gBe,fGe=function(e,t){if(!(e instanceof dGe))return null;var n=e.getNextSiblingKey();if(n)return n;var i=e.getParentKey();if(!i)return null;for(var r=t.get(i);r&&!r.getNextSiblingKey();){var a=r.getParentKey();r=a?t.get(a):null}return r?r.getNextSiblingKey():null},pGe=gBe,hGe=fGe,gGe=Cze.exports;gGe.List;var mGe=gGe.Map,vGe=function(e,t,n){if(e){var i=t.get(e);i&&t.set(e,n(i))}},_Ge=function(e,t){var n=[];if(!e)return n;for(var i=t.get(e);i&&i.getParentKey();){var r=i.getParentKey();r&&n.push(r),i=r?t.get(r):null}return n},bGe=function(e,t,n){if(!e)return null;for(var i=n.get(e.getKey()).getNextSiblingKey();i&&!t.get(i);)i=n.get(i).getNextSiblingKey()||null;return i},yGe=function(e,t,n){if(!e)return null;for(var i=n.get(e.getKey()).getPrevSiblingKey();i&&!t.get(i);)i=n.get(i).getPrevSiblingKey()||null;return i},wGe=function(e,t,n,i){return e.withMutations((function(r){if(vGe(t.getKey(),r,(function(e){return e.merge({nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})})),vGe(n.getKey(),r,(function(e){return e.merge({nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})})),_Ge(t.getKey(),i).forEach((function(e){return vGe(e,r,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return r.get(e)})),nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})}))})),vGe(t.getNextSiblingKey(),r,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),vGe(t.getPrevSiblingKey(),r,(function(e){return e.merge({nextSibling:bGe(e,r,i)})})),vGe(n.getNextSiblingKey(),r,(function(e){return e.merge({prevSibling:yGe(e,r,i)})})),vGe(n.getPrevSiblingKey(),r,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),_Ge(n.getKey(),i).forEach((function(e){vGe(e,r,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return r.get(e)})),nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})}))})),function(e,t){var n=[];if(!e)return n;for(var i=hGe(e,t);i&&t.get(i);){var r=t.get(i);n.push(i),i=r.getParentKey()?hGe(r,t):null}return n}(n,i).forEach((function(e){return vGe(e,r,(function(e){return e.merge({nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();vGe(n.getKey(),r,(function(e){return e.merge({prevSibling:a})})),vGe(a,r,(function(e){return e.merge({nextSibling:n.getKey()})}));var o=a?e.get(a):null,s=o?o.getParentKey():null;if(t.getChildKeys().forEach((function(e){vGe(e,r,(function(e){return e.merge({parent:s})}))})),null!=s){var l=e.get(s);vGe(s,r,(function(e){return e.merge({children:l.getChildKeys().concat(t.getChildKeys())})}))}vGe(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),r,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},FGe=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var i=e.slice(0,t),r=e.slice(n);e=i.concat(r).toList()}return e},kGe=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),r=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=i.get(r),u=i.get(o),c=l instanceof pGe,d=[];if(c){var f=u.getChildKeys(),p=_Ge(o,i);u.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([o]))),d=d.concat(_Ge(hGe(u,i),i))}n=l===u?FGe(l.getCharacterList(),a,s):l.getCharacterList().slice(0,a).concat(u.getCharacterList().slice(s));var h=l.merge({text:l.getText().slice(0,a)+u.getText().slice(s),characterList:n}),g=c&&0===a&&0===s&&u.getParentKey()===r&&null==u.getPrevSiblingKey()?mGe([[r,null]]):i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).filter((function(e,t){return-1===d.indexOf(t)})).concat(mGe([[o,null]])).map((function(e,t){return t===r?h:null})),m=i.merge(g).filter((function(e){return!!e}));return c&&l!==u&&(m=wGe(m,l,u,i)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:r,anchorOffset:a,focusKey:r,focusOffset:a,isBackward:!1})})},xGe=gBe,EGe=NBe,CGe=Cze.exports,SGe=CBe,DGe=cGe,PGe=CGe.List,AGe=CGe.Map,TGe=function(e,t,n){if(e){var i=t.get(e);i&&t.set(e,n(i))}},LGe=function(e,t){t.isCollapsed()||("production"!==go.env.NODE_ENV?SGe(!1,"Selection range must be collapsed."):SGe(!1));var n=t.getAnchorKey(),i=e.getBlockMap(),r=i.get(n),a=r.getText();if(!a){var o=r.getType();if("unordered-list-item"===o||"ordered-list-item"===o)return DGe(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),l=r.getCharacterList(),u=EGe(),c=r instanceof xGe,d=r.merge({text:a.slice(0,s),characterList:l.slice(0,s)}),f=d.merge({key:u,text:a.slice(s),characterList:l.slice(s),data:AGe()}),p=i.toSeq().takeUntil((function(e){return e===r})),h=i.toSeq().skipUntil((function(e){return e===r})).rest(),g=p.concat([[n,d],[u,f]],h).toOrderedMap();return c&&(r.getChildKeys().isEmpty()||("production"!==go.env.NODE_ENV?SGe(!1,"ContentBlockNode must not have children"):SGe(!1)),g=function(e,t,n){return e.withMutations((function(e){var i=t.getKey(),r=n.getKey();TGe(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(i)+1,a=t.toArray();return a.splice(n,0,r),e.merge({children:PGe(a)})})),TGe(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:r})})),TGe(i,e,(function(e){return e.merge({nextSibling:r})})),TGe(r,e,(function(e){return e.merge({prevSibling:i})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},IGe=zze,MGe=bBe,jGe=kBe,NGe=IBe,RGe=KBe,OGe=rGe,zGe=lGe,BGe=CBe,GGe=cGe,qGe=WBe,UGe=kGe,HGe=LGe,WGe=Cze.exports.OrderedSet,YGe={replaceText:function(e,t,n,i,r){var a=qGe(e,t),o=UGe(a,t),s=IGe.create({style:i||WGe(),entity:r||null});return zGe(o,o.getSelectionAfter(),n,s)},insertText:function(e,t,n,i,r){return t.isCollapsed()||("production"!==go.env.NODE_ENV?BGe(!1,"Target range must be collapsed for `insertText`."):BGe(!1)),YGe.replaceText(e,t,n,i,r)},moveText:function(e,t,n){var i=RGe(e,t),r=YGe.removeRange(e,t,"backward");return YGe.replaceWithFragment(r,n,i)},replaceWithFragment:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=qGe(e,t),a=UGe(r,t);return OGe(a,a.getSelectionAfter(),n,i)},removeRange:function(e,t,n){var i,r,a,o;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),r=t.getFocusKey(),a=e.getBlockForKey(i),o=e.getBlockForKey(r);var s=t.getStartOffset(),l=t.getEndOffset(),u=a.getEntityAt(s),c=o.getEntityAt(l-1);if(i===r&&u&&u===c){var d=NGe(e.getEntityMap(),a,o,t,n);return UGe(e,d)}var f=qGe(e,t);return UGe(f,t)},splitBlock:function(e,t){var n=qGe(e,t),i=UGe(n,t);return HGe(i,i.getSelectionAfter())},applyInlineStyle:function(e,t,n){return MGe.add(e,t,n)},removeInlineStyle:function(e,t,n){return MGe.remove(e,t,n)},setBlockType:function(e,t,n){return GGe(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return GGe(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return GGe(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var i=qGe(e,t);return jGe(i,t,n)}},VGe=YGe;var KGe=function(e){return Object.keys(e).map((function(t){return e[t]}))};function JGe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QGe=Bze,ZGe=KGe,$Ge=Cze.exports,XGe=$Ge.List,eqe=$Ge.Repeat,tqe=$Ge.Record,nqe=function(){return!0},iqe=tqe({start:null,end:null}),rqe=tqe({start:null,end:null,decoratorKey:null,leaves:null}),aqe={generate:function(e,t,n){var i=t.getLength();if(!i)return XGe.of(new rqe({start:0,end:0,decoratorKey:null,leaves:XGe.of(new iqe({start:0,end:0}))}));var r=[],a=n?n.getDecorations(t,e):XGe(eqe(null,i)),o=t.getCharacterList();return QGe(a,sqe,nqe,(function(e,t){r.push(new rqe({start:e,end:t,decoratorKey:a.get(e),leaves:oqe(o.slice(e,t).toList(),e)}))})),XGe(r)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["leaves"]);return new rqe(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){JGe(e,t,n[t])}))}return e}({},n,{leaves:null!=t?XGe(Array.isArray(t)?t:ZGe(t)).map((function(e){return iqe(e)})):null}))}};function oqe(e,t){var n=[],i=e.map((function(e){return e.getStyle()})).toList();return QGe(i,sqe,nqe,(function(e,i){n.push(new iqe({start:e+t,end:i+t}))})),XGe(n)}function sqe(e,t){return e===t}var lqe=aqe;var uqe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},i}((0,Cze.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),cqe=uqe;var dqe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function fqe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pqe=cqe,hqe=CBe,gqe=dqe,mqe=(0,Cze.exports.Map)(),vqe=gqe();function _qe(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var bqe={getLastCreatedEntityKey:function(){return _qe("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),bqe.__getLastCreatedEntityKey()},create:function(e,t,n){return _qe("DraftEntity.create","contentState.createEntity"),bqe.__create(e,t,n)},add:function(e){return _qe("DraftEntity.add","contentState.addEntity"),bqe.__add(e)},get:function(e){return _qe("DraftEntity.get","contentState.getEntity"),bqe.__get(e)},__getAll:function(){return mqe},__loadWithEntities:function(e){mqe=e,vqe=gqe()},mergeData:function(e,t){return _qe("DraftEntity.mergeData","contentState.mergeEntityData"),bqe.__mergeData(e,t)},replaceData:function(e,t){return _qe("DraftEntity.replaceData","contentState.replaceEntityData"),bqe.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return vqe},__create:function(e,t,n){return bqe.__add(new pqe({type:e,mutability:t,data:n||{}}))},__add:function(e){return vqe=gqe(),mqe=mqe.set(vqe,e),vqe},__get:function(e){var t=mqe.get(e);return t||("production"!==go.env.NODE_ENV?hqe(!1,"Unknown DraftEntity key: %s.",e):hqe(!1)),t},__mergeData:function(e,t){var n=bqe.__get(e),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){fqe(e,t,n[t])}))}return e}({},n.getData(),t),r=n.set("data",i);return mqe=mqe.set(e,r),r},__replaceData:function(e,t){var n=bqe.__get(e).set("data",t);return mqe=mqe.set(e,n),n}},yqe=bqe;var wqe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return 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(e,t,n){var i=this.getAnchorKey(),r=this.getFocusKey();if(i===r&&i===e){var a=this.getStartOffset(),o=this.getEndOffset();return t<=a&&a<=n||t<=o&&o<=n}if(e!==i&&e!==r)return!1;var s=e===i?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},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()},i.createEmpty=function(e){return new i({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,Cze.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),Fqe=wqe,kqe=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},xqe=new RegExp("\r","g");var Eqe=function(e){return e.replace(xqe,"")};function Cqe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){Sqe(e,t,n[t])}))}return e}function Sqe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dqe=Pze,Pqe=zze,Aqe=eBe,Tqe=gBe,Lqe=yqe,Iqe=Fqe,Mqe=NBe,jqe=KGe,Nqe=kqe,Rqe=Cze.exports,Oqe=Eqe,zqe=Rqe.List,Bqe=Rqe.Record,Gqe=Rqe.Repeat,qqe=Rqe.Map,Uqe=Rqe.OrderedMap,Hqe=Bqe({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),Wqe=Nqe("draft_tree_data_support")?Tqe:Aqe,Yqe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getEntityMap=function(){return Lqe},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(e){return this.getBlockMap().get(e)},r.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},r.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},r.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},r.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).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(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},r.getLastCreatedEntityKey=function(){return Lqe.__getLastCreatedEntityKey()},r.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(e,t,n){return Lqe.__create(e,t,n),this},r.mergeEntityData=function(e,t){return Lqe.__mergeData(e,t),this},r.replaceEntityData=function(e,t){return Lqe.__replaceData(e,t),this},r.addEntity=function(e){return Lqe.__add(e),this},r.getEntity=function(e){return Lqe.__get(e)},r.getAllEntities=function(){return Lqe.__getAll()},r.loadWithEntities=function(e){return Lqe.__loadWithEntities(e)},i.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=Dqe.createFromArray(n),a=r.isEmpty()?new Iqe:Iqe.createEmpty(r.first().getKey());return new i({blockMap:r,entityMap:t||Lqe,selectionBefore:a,selectionAfter:a})},i.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),r=n.map((function(e){return e=Oqe(e),new Wqe({key:Mqe(),text:e,type:"unstyled",characterList:zqe(Gqe(Pqe.EMPTY,e.length))})}));return i.createFromBlockArray(r)},i.fromJS=function(e){return new i(Cqe({},e,{blockMap:Uqe(e.blockMap).map(i.createContentBlockFromJS),selectionBefore:new Iqe(e.selectionBefore),selectionAfter:new Iqe(e.selectionAfter)}))},i.createContentBlockFromJS=function(e){var t=e.characterList;return new Wqe(Cqe({},e,{data:qqe(e.data),characterList:null!=t?zqe((Array.isArray(t)?t:jqe(t)).map((function(e){return Pqe.fromJS(e)}))):void 0}))},i}(Hqe),Vqe=Yqe,Kqe=CBe,Jqe="LTR",Qqe=null;function Zqe(e){return e===Jqe||"RTL"===e}function $qe(e){return Zqe(e)||("production"!==go.env.NODE_ENV?Kqe(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Kqe(!1)),e===Jqe?"ltr":"rtl"}function Xqe(e){Qqe=e}var eUe={NEUTRAL:"NEUTRAL",LTR:Jqe,RTL:"RTL",isStrong:Zqe,getHTMLDir:$qe,getHTMLDirIfDifferent:function(e,t){return Zqe(e)||("production"!==go.env.NODE_ENV?Kqe(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Kqe(!1)),Zqe(t)||("production"!==go.env.NODE_ENV?Kqe(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):Kqe(!1)),e===t?null:$qe(e)},setGlobalDir:Xqe,initGlobalDir:function(){Xqe(Jqe)},getGlobalDir:function(){return Qqe||this.initGlobalDir(),Qqe||("production"!==go.env.NODE_ENV?Kqe(!1,"Global direction not set."):Kqe(!1)),Qqe}},tUe=eUe,nUe=CBe,iUe="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",rUe="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",aUe=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+iUe+rUe+"]"),oUe=new RegExp("["+iUe+rUe+"]");function sUe(e){var t=aUe.exec(e);return null==t?null:t[0]}function lUe(e){var t=sUe(e);return null==t?tUe.NEUTRAL:oUe.exec(t)?tUe.RTL:tUe.LTR}function uUe(e,t){if(t=t||tUe.NEUTRAL,!e.length)return t;var n=lUe(e);return n===tUe.NEUTRAL?t:n}function cUe(e,t){return t||(t=tUe.getGlobalDir()),tUe.isStrong(t)||("production"!==go.env.NODE_ENV?nUe(!1,"Fallback direction must be a strong direction"):nUe(!1)),uUe(e,t)}var dUe={firstStrongChar:sUe,firstStrongCharDir:lUe,resolveBlockDir:uUe,getDirection:cUe,isDirectionLTR:function(e,t){return cUe(e,t)===tUe.LTR},isDirectionRTL:function(e,t){return cUe(e,t)===tUe.RTL}};function fUe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pUe,hUe=dUe,gUe=eUe,mUe=CBe,vUe=function(){function e(e){fUe(this,"_defaultDir",void 0),fUe(this,"_lastDir",void 0),e?gUe.isStrong(e)||("production"!==go.env.NODE_ENV?mUe(!1,"Default direction must be a strong direction (LTR or RTL)"):mUe(!1)):e=gUe.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=hUe.getDirection(e,this._lastDir),this._lastDir},e}(),_Ue=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},bUe=vUe,yUe=Cze.exports,wUe=_Ue,FUe=yUe.OrderedMap,kUe={getDirectionMap:function(e,t){pUe?pUe.reset():pUe=new bUe;var n=e.getBlockMap(),i=n.valueSeq().map((function(e){return wUe(pUe).getDirection(e.getText())})),r=FUe(n.keySeq().zip(i));return null!=t&&yUe.is(t,r)?t:r}};function xUe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){EUe(e,t,n[t])}))}return e}function EUe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CUe=lqe,SUe=Vqe,DUe=kUe,PUe=Fqe,AUe=Cze.exports,TUe=AUe.OrderedSet,LUe=AUe.Record,IUe=AUe.Stack,MUe=AUe.OrderedMap,jUe=AUe.List,NUe=LUe({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:IUe(),selection:null,treeMap:null,undoStack:IUe()}),RUe=function(){t.createEmpty=function(e){return t.createWithContent(SUe.createFromText(""),e)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var i=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:IUe(),redoStack:IUe(),decorator:n||null,selection:PUe.createEmpty(i)})},t.create=function(e){var n=e.currentContent,i=xUe({},e,{treeMap:zUe(n,e.decorator),directionMap:DUe.getDirectionMap(n)});return new t(new NUe(i))},t.fromJS=function(e){return new t(new NUe(xUe({},e,{directionMap:null!=e.directionMap?MUe(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?TUe(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?SUe.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?IUe(e.redoStack.map((function(e){return SUe.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new PUe(e.selection):e.selection,treeMap:null!=e.treeMap?MUe(e.treeMap).map((function(e){return jUe(e).map((function(e){return CUe.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?IUe(e.undoStack.map((function(e){return SUe.fromJS(e)}))):e.undoStack,currentContent:SUe.fromJS(e.currentContent)})))},t.set=function(e,n){var i=e.getImmutable().withMutations((function(t){var i=t.get("decorator"),r=i;null===n.decorator?r=null:n.decorator&&(r=n.decorator);var a=n.currentContent||e.getCurrentContent();if(r!==i){var o,s=t.get("treeMap");return o=r&&i?function(e,t,n,i,r){return n.merge(t.toSeq().filter((function(t){return i.getDecorations(t,e)!==r.getDecorations(t,e)})).map((function(t){return CUe.generate(e,t,i)})))}(a,a.getBlockMap(),s,r,i):zUe(a,r),void t.merge({decorator:r,treeMap:o,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,i){var r=e.getCurrentContent().set("entityMap",n),a=r.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return CUe.generate(r,e,i)})))}(e,a.getBlockMap(),a.getEntityMap(),r)),t.merge(n)}));return new t(i)};var e=t.prototype;function t(e){EUe(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i>0)return r.getInlineStyleAt(i-1);if(r.getLength())return r.getInlineStyleAt(0);return GUe(e,n)}(t,n):function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i<r.getLength())return r.getInlineStyleAt(i);if(i>0)return r.getInlineStyleAt(i-1);return GUe(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return OUe(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),OUe(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),i=n.getKey(),r=n.getLength();return t.acceptSelection(e,new PUe({anchorKey:i,anchorOffset:r,focusKey:i,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=DUe.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),s=e.getCurrentContent(),l=e.getUndoStack(),u=n;o!==s.getSelectionAfter()||BUe(e,i)?(l=l.push(s),u=u.set("selectionBefore",o)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(u=u.set("selectionBefore",s.getSelectionBefore()));var c=e.getInlineStyleOverride(),d=["adjust-depth","change-block-type","split-block"];-1===d.indexOf(i)&&(c=null);var f={currentContent:u,directionMap:a,undoStack:l,redoStack:IUe(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:c};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=DUe.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=DUe.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function OUe(e,t,n){return RUe.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function zUe(e,t){return e.getBlockMap().map((function(n){return CUe.generate(e,n,t)})).toOrderedMap()}function BUe(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function GUe(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):TUe()}var qUe=RUe,UUe=gBe,HUe=fGe,WUe=Cze.exports,YUe=CBe,VUe=WUe.OrderedMap,KUe=WUe.List,JUe=function(e,t,n){if(e){var i=t.get(e);i&&t.set(e,n(i))}},QUe=function(e,t,n,i,r){if(!r)return e;var a="after"===i,o=t.getKey(),s=n.getKey(),l=t.getParentKey(),u=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),d=n.getParentKey(),f=a?n.getNextSiblingKey():s,p=a?s:n.getPrevSiblingKey();return e.withMutations((function(e){JUe(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(o))})})),JUe(c,e,(function(e){return e.merge({nextSibling:u})})),JUe(u,e,(function(e){return e.merge({prevSibling:c})})),JUe(f,e,(function(e){return e.merge({prevSibling:o})})),JUe(p,e,(function(e){return e.merge({nextSibling:o})})),JUe(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),i=a?n+1:0!==n?n-1:0,r=t.toArray();return r.splice(i,0,o),e.merge({children:KUe(r)})})),JUe(o,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))},ZUe=function(e,t,n,i){"replace"===i&&("production"!==go.env.NODE_ENV?YUe(!1,"Replacing blocks is not supported."):YUe(!1));var r=n.getKey(),a=t.getKey();a===r&&("production"!==go.env.NODE_ENV?YUe(!1,"Block cannot be moved next to itself."):YUe(!1));var o=e.getBlockMap(),s=t instanceof UUe,l=[t],u=o.delete(a);s&&(l=[],u=o.withMutations((function(e){var n=t.getNextSiblingKey(),i=HUe(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===a})).takeWhile((function(e){var t=e.getKey(),r=t===a,o=n&&t!==n,s=!n&&e.getParentKey()&&(!i||t!==i);return!!(r||o||s)})).forEach((function(t){l.push(t),e.delete(t.getKey())}))})));var c=u.toSeq().takeUntil((function(e){return e===n})),d=u.toSeq().skipUntil((function(e){return e===n})).skip(1),f=l.map((function(e){return[e.getKey(),e]})),p=VUe();if("before"===i){var h=e.getBlockBefore(r);h&&h.getKey()===t.getKey()&&("production"!==go.env.NODE_ENV?YUe(!1,"Block cannot be moved next to itself."):YUe(!1)),p=c.concat([].concat(f,[[r,n]]),d).toOrderedMap()}else if("after"===i){var g=e.getBlockAfter(r);g&&g.getKey()===a&&("production"!==go.env.NODE_ENV?YUe(!1,"Block cannot be moved next to itself."):YUe(!1)),p=c.concat([[r,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:QUe(p,t,n,i,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:a,focusKey:a})})};function $Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){XUe(e,t,n[t])}))}return e}function XUe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eHe=Pze,tHe=zze,nHe=eBe,iHe=gBe,rHe=VGe,aHe=qUe,oHe=NBe,sHe=Cze.exports,lHe=ZUe,uHe=kqe("draft_tree_data_support"),cHe=uHe?iHe:nHe,dHe=sHe.List,fHe=sHe.Repeat,pHe={insertAtomicBlock:function(e,t,n){var i=e.getCurrentContent(),r=e.getSelection(),a=rHe.removeRange(i,r,"backward"),o=a.getSelectionAfter(),s=rHe.splitBlock(a,o),l=s.getSelectionAfter(),u=rHe.setBlockType(s,l,"atomic"),c=tHe.create({entity:t}),d={key:oHe(),type:"atomic",text:n,characterList:dHe(fHe(c,n.length))},f={key:oHe(),type:"unstyled"};uHe&&(d=$Ue({},d,{nextSibling:f.key}),f=$Ue({},f,{prevSibling:d.key}));var p=[new cHe(d),new cHe(f)],h=eHe.createFromArray(p),g=rHe.replaceWithFragment(u,l,h),m=g.merge({selectionBefore:r,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return aHe.push(e,m,"insert-fragment")},moveAtomicBlock:function(e,t,n,i){var r,a=e.getCurrentContent(),o=e.getSelection();if("before"===i||"after"===i){var s=a.getBlockForKey("before"===i?n.getStartKey():n.getEndKey());r=lHe(a,t,s,i)}else{var l=rHe.removeRange(a,n,"backward"),u=l.getSelectionAfter(),c=l.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())r=lHe(l,t,c,"before");else if(u.getEndOffset()===c.getLength())r=lHe(l,t,c,"after");else{var d=rHe.splitBlock(l,u),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());r=lHe(d,t,p,"before")}}var h=r.merge({selectionBefore:o,selectionAfter:r.getSelectionAfter().set("hasFocus",!0)});return aHe.push(e,h,"move-block")}};var hHe=Cze.exports.List,gHe=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(i,r){var a=0;(0,i.strategy)(e,(function(e,t){(function(e,t,n){for(var i=t;i<n;i++)if(null!=e[i])return!1;return!0})(n,e,t)&&(!function(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}(n,e,t,r+"."+a),a++)}),t)})),hHe(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var mHe=gHe;function vHe(e){return e.replace(/\//g,"-")}var _He=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(vHe).join(" "):Array.prototype.map.call(arguments,vHe).join(" ")},bHe=m.default,yHe=_He,wHe=(0,Cze.exports.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:bHe.createElement("ul",{className:yHe("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:bHe.createElement("ol",{className:yHe("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:bHe.createElement("pre",{className:yHe("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),FHe={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},kHe={exports:{}};!function(e,t){!function(n,i){var r="function",a="undefined",o="object",s="string",l="model",u="name",c="type",d="vendor",f="version",p="architecture",h="console",g="mobile",m="tablet",v="smarttv",_="wearable",b="embedded",y="Amazon",w="Apple",F="ASUS",k="BlackBerry",x="Firefox",E="Google",C="Huawei",S="LG",D="Microsoft",P="Motorola",A="Opera",T="Samsung",L="Sony",I="Xiaomi",M="Zebra",j="Facebook",N=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},R=function(e,t){return typeof e===s&&-1!==O(t).indexOf(O(e))},O=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===a?e:e.substring(0,255)},B=function(e,t){for(var n,a,s,l,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=a=0;n<f.length&&!u;)if(u=f[n++].exec(e))for(s=0;s<p.length;s++)c=u[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==r?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==r||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):i:this[l[0]]=c?l[1].call(this,c,l[2]):i:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):i):this[l]=c||i;d+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===o&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(R(t[n][r],e))return"?"===n?i:n}else if(R(t[n],e))return"?"===n?i:n;return e},q={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"},U={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,A]],[/(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|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],f],[/\bfocus\/([\w\.]+)/i],[f,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[f,[u,x]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,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],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,"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],[u,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,O]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",O]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,O]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,T],[c,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,T],[c,g]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[d,w],[c,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,w],[c,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,C],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[l,[d,C],[c,g]],[/\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)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,I],[c,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,I],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[c,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[c,g]],[/\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],[l,[d,P],[c,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,P],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,S],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,S],[c,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[c,g]],[/(pixel c)\b/i],[l,[d,E],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,E],[c,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,L],[c,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,L],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[c,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,y],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,y],[c,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,k],[c,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,F],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,F],[c,g]],[/(nexus 9)/i],[l,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[c,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[c,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,"Sharp"],[c,g]],[/(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],[d,l,[c,g]],[/(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],[d,l,[c,m]],[/(surface duo)/i],[l,[d,D],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[c,g]],[/(u304aa)/i],[l,[d,"AT&T"],[c,g]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[c,g]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[l,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[c,g]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[c,g]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[c,m]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[c,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[c,g]],[/\b(ph-1) /i],[l,[d,"Essential"],[c,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,l,[c,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,D],[c,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,M],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,M],[c,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[c,h]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[c,h]],[/(playstation [345portablevi]+)/i],[l,[d,L],[c,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,D],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,T],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,S],[c,v]],[/(apple) ?tv/i],[d,[l,"Apple TV"],[c,v]],[/crkey/i],[[l,"Chromecast"],[d,E],[c,v]],[/droid.+aft(\w)( bui|\))/i],[l,[d,y],[c,v]],[/\(dtv[\);].+(aquos)/i],[l,[d,"Sharp"],[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,z],[l,z],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/((pebble))app/i],[d,l,[c,_]],[/droid.+; (glass) \d/i],[l,[d,E],[c,_]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,M],[c,_]],[/(quest( 2)?)/i],[l,[d,j],[c,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[c,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[c,g]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"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],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,G,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,G,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],f],[/(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],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,f]]},H=function(e,t){if(typeof e===o&&(t=e,e=i),!(this instanceof H))return new H(e,t).getResult();var r=e||(typeof n!==a&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),l=t?function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n}(U,t):U;return this.getBrowser=function(){var e={};return e.name=i,e.version=i,B.call(e,r,l.browser),e.major=function(e){return typeof e===s?e.replace(/[^\d\.]/g,"").split(".")[0]:i}(e.version),e},this.getCPU=function(){var e={};return e.architecture=i,B.call(e,r,l.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,B.call(e,r,l.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,B.call(e,r,l.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,B.call(e,r,l.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===s&&e.length>255?z(e,255):e,this},this.setUA(r),this};H.VERSION="0.7.31",H.BROWSER=N([u,f,"major"]),H.CPU=N([p]),H.DEVICE=N([l,d,c,h,g,v,m,_,b]),H.ENGINE=H.OS=N([u,f]),e.exports&&(t=e.exports=H),t.UAParser=H;var W=typeof n!==a&&(n.jQuery||n.Zepto);if(W&&!W.ua){var Y=new H;W.ua=Y.getResult(),W.ua.get=function(){return Y.getUA()},W.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:k)}(kHe,kHe.exports);var xHe="Unknown",EHe={"Mac OS":"Mac OS X"};var CHe=(new(0,kHe.exports)).getResult(),SHe=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(CHe.browser.version),DHe={browserArchitecture:CHe.cpu.architecture||xHe,browserFullVersion:CHe.browser.version||xHe,browserMinorVersion:SHe.minor||xHe,browserName:CHe.browser.name||xHe,browserVersion:CHe.browser.major||xHe,deviceName:CHe.device.model||xHe,engineName:CHe.engine.name||xHe,engineVersion:CHe.engine.version||xHe,platformArchitecture:CHe.cpu.architecture||xHe,platformName:function(e){return EHe[e]||e}(CHe.os.name)||xHe,platformVersion:CHe.os.version||xHe,platformFullVersion:CHe.os.version||xHe},PHe=DHe,AHe=CBe,THe=/\./,LHe=/\|\|/,IHe=/\s+\-\s+/,MHe=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,jHe=/^(\d*)(.*)/;function NHe(e,t){var n=e.split(LHe);return n.length>1?n.some((function(e){return VHe.contains(e,t)})):function(e,t){var n=e.split(IHe);if(n.length>0&&n.length<=2||("production"!==go.env.NODE_ENV?AHe(!1,'the "-" operator expects exactly 2 operands'):AHe(!1)),1===n.length)return RHe(n[0],t);var i=n[0],r=n[1];return qHe(i)&&qHe(r)||("production"!==go.env.NODE_ENV?AHe(!1,'operands to the "-" operator must be simple (no modifiers)'):AHe(!1)),RHe(">="+i,t)&&RHe("<="+r,t)}(e=n[0].trim(),t)}function RHe(e,t){if(""===(e=e.trim()))return!0;var n=t.split(THe),i=BHe(e),r=i.modifier,a=i.rangeComponents;switch(r){case"<":return OHe(n,a);case"<=":return function(e,t){var n=YHe(e,t);return-1===n||0===n}(n,a);case">=":return zHe(n,a);case">":return function(e,t){return 1===YHe(e,t)}(n,a);case"~":case"~>":return function(e,t){var n=t.slice(),i=t.slice();i.length>1&&i.pop();var r=i.length-1,a=parseInt(i[r],10);GHe(a)&&(i[r]=a+1+"");return zHe(e,n)&&OHe(e,i)}(n,a);default:return function(e,t){return 0===YHe(e,t)}(n,a)}}function OHe(e,t){return-1===YHe(e,t)}function zHe(e,t){var n=YHe(e,t);return 1===n||0===n}function BHe(e){var t=e.split(THe),n=t[0].match(MHe);return n||("production"!==go.env.NODE_ENV?AHe(!1,"expected regex to match but it did not"):AHe(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function GHe(e){return!isNaN(e)&&isFinite(e)}function qHe(e){return!BHe(e).modifier}function UHe(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function HHe(e,t){var n=e.match(jHe)[1],i=t.match(jHe)[1],r=parseInt(n,10),a=parseInt(i,10);return GHe(r)&&GHe(a)&&r!==a?WHe(r,a):WHe(e,t)}function WHe(e,t){return typeof e!=typeof t&&("production"!==go.env.NODE_ENV?AHe(!1,'"a" and "b" must be of the same type'):AHe(!1)),e>t?1:e<t?-1:0}function YHe(e,t){for(var n=function(e,t){UHe(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var i=t[n].match(/^[x*]$/i);if(i&&(t[n]=e[n]="0","*"===i[0]&&n===t.length-1))for(var r=n;r<e.length;r++)e[r]="0"}return UHe(t,e.length),[e,t]}(e,t),i=n[0],r=n[1],a=0;a<r.length;a++){var o=HHe(i[a],r[a]);if(o)return o}return 0}var VHe={contains:function(e,t){return NHe(e.trim(),t.trim())}},KHe=VHe,JHe=Object.prototype.hasOwnProperty;var QHe=function(e,t,n){if(!e)return null;var i={};for(var r in e)JHe.call(e,r)&&(i[r]=t.call(n,e[r],r,e));return i};var ZHe=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},$He=PHe,XHe=KHe;function eWe(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var r=n.slice(e.length);return!!t&&(r=i?i(r):r,XHe.contains(r,t))}function tWe(e){return"Windows"===$He.platformName?e.replace(/^\s*NT/,""):e}var nWe=QHe({isBrowser:function(e){return eWe($He.browserName,$He.browserFullVersion,e)},isBrowserArchitecture:function(e){return eWe($He.browserArchitecture,null,e)},isDevice:function(e){return eWe($He.deviceName,null,e)},isEngine:function(e){return eWe($He.engineName,$He.engineVersion,e)},isPlatform:function(e){return eWe($He.platformName,$He.platformFullVersion,e,tWe)},isPlatformArchitecture:function(e){return eWe($He.platformArchitecture,null,e)}},ZHe);var iWe=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var rWe=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},aWe=rWe;var oWe=function e(t){if(aWe(t)){var n=t,i=n.getAttribute("data-offset-key");if(i)return i;for(var r=0;r<n.childNodes.length;r++){var a=e(n.childNodes[r]);if(a)return a}}return null},sWe=iWe,lWe=oWe;var uWe=function(e){for(var t=e;t&&t!==sWe(e).documentElement;){var n=lWe(t);if(null!=n)return n;t=t.parentNode}return null};var cWe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function dWe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fWe=nWe,pWe=uWe,hWe=cWe,gWe=CBe,mWe=_Ue,vWe=Cze.exports.Map,_We={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},bWe=fWe.isBrowser("IE <= 11"),yWe=function(){function e(e){var t=this;dWe(this,"observer",void 0),dWe(this,"container",void 0),dWe(this,"mutations",void 0),dWe(this,"onCharData",void 0),this.container=e,this.mutations=vWe();var n=hWe(e);n.MutationObserver&&!bWe?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==go.env.NODE_ENV?gWe(!1,"Expected target to be an instance of Node"):gWe(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,_We):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=vWe(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,i=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return bWe?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(i&&i.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=mWe(pWe(e.target));this.mutations=this.mutations.set(n,t)}},e}(),wWe="-",FWe={encode:function(e,t,n){return e+wWe+t+wWe+n},decode:function(e){var t=e.split(wWe).reverse(),n=t[0],i=t[1];return{blockKey:t.slice(2).reverse().join(wWe),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}},kWe={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},xWe={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var EWe=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},CWe=CBe,SWe=EWe;var DWe=function(e){var t=e.editorContainer;return t||("production"!==go.env.NODE_ENV?CWe(!1,"Missing editorNode"):CWe(!1)),SWe(t.firstChild)||("production"!==go.env.NODE_ENV?CWe(!1,"editorNode.firstChild is not an HTMLElement"):CWe(!1)),t.firstChild},PWe=FWe,AWe=_Ue;var TWe=function(e,t,n,i,r){var a=AWe(e.getSelection());if(!t||!i)return"production"!==go.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),a;var o=PWe.decode(t),s=o.blockKey,l=e.getBlockTree(s),u=l&&l.getIn([o.decoratorKey,"leaves",o.leafKey]),c=PWe.decode(i),d=c.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!u||!p)return"production"!==go.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),a;var h=u.get("start"),g=p.get("start"),m=u?h+n:null,v=p?g+r:null,_=a.getAnchorKey()===s&&a.getAnchorOffset()===m&&a.getFocusKey()===d&&a.getFocusOffset()===v;if(_)return a;var b=!1;if(s===d){var y=u.get("end"),w=p.get("end");b=g===h&&w===y?r<n:g<h}else{var F=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===d})).first();b=F===d}return a.merge({anchorKey:s,anchorOffset:m,focusKey:d,focusOffset:v,isBackward:b})},LWe=uWe,IWe=oWe,MWe=TWe,jWe=CBe,NWe=rWe,RWe=_Ue;function OWe(e,t,n){var i=t,r=LWe(i);(null!=r||e&&(e===i||e.firstChild===i)||("production"!==go.env.NODE_ENV?jWe(!1,"Unknown node in selection range."):jWe(!1)),e===i)&&(i=i.firstChild,NWe(i)||("production"!==go.env.NODE_ENV?jWe(!1,"Invalid DraftEditorContents node."):jWe(!1)),"true"!==(i=i).getAttribute("data-contents")&&("production"!==go.env.NODE_ENV?jWe(!1,"Invalid DraftEditorContents structure."):jWe(!1)),n>0&&(n=i.childNodes.length));if(0===n){var a=null;if(null!=r)a=r;else{var o=function(e){for(;e.firstChild&&(NWe(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||IWe(e.firstChild));)e=e.firstChild;return e}(i);a=RWe(IWe(o))}return{key:a,offset:0}}var s=i.childNodes[n-1],l=null,u=null;if(IWe(s)){var c=function(e){for(;e.lastChild&&(NWe(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||IWe(e.lastChild));)e=e.lastChild;return e}(s);l=RWe(IWe(c)),u=zWe(c)}else l=RWe(r),u=zWe(s);return{key:l,offset:u}}function zWe(e){var t=e.textContent;return"\n"===t?0:t.length}var BWe=function(e,t,n,i,r,a){var o=n.nodeType===Node.TEXT_NODE,s=r.nodeType===Node.TEXT_NODE;if(o&&s)return{selectionState:MWe(e,RWe(LWe(n)),i,RWe(LWe(r)),a),needsRecovery:!1};var l=null,u=null,c=!0;return o?(l={key:RWe(LWe(n)),offset:i},u=OWe(t,r,a)):s?(u={key:RWe(LWe(r)),offset:a},l=OWe(t,n,i)):(l=OWe(t,n,i),u=OWe(t,r,a),n===r&&i===a&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:MWe(e,l.key,l.offset,u.key,u.offset),needsRecovery:c}},GWe=BWe;var qWe=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),i=n.anchorNode,r=n.anchorOffset,a=n.focusNode,o=n.focusOffset;return 0===n.rangeCount||null==i||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:GWe(e,t,i,r,a,o)},UWe=xWe,HWe=qUe,WWe=DWe,YWe=qWe;var VWe=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();UWe.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,i=YWe(n,WWe(e)),r=i.selectionState;r!==n.getSelection()&&(n=i.needsRecovery?HWe.forceSelection(n,r):HWe.acceptSelection(n,r),e.update(n))}};var KWe={notEmptyKey:function(e){return null!=e&&""!=e}},JWe=KWe.notEmptyKey;function QWe(e,t){return JWe(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var ZWe=function(e,t){var n;if(t.isCollapsed()){var i=t.getAnchorKey(),r=t.getAnchorOffset();return r>0?(n=e.getBlockForKey(i).getEntityAt(r-1))!==e.getBlockForKey(i).getEntityAt(r)?null:QWe(e.getEntityMap(),n):null}var a=t.getStartKey(),o=t.getStartOffset(),s=e.getBlockForKey(a);return n=o===s.getLength()?null:s.getEntityAt(o),QWe(e.getEntityMap(),n)},$We=yWe,XWe=VGe,eYe=FWe,tYe=qUe,nYe=kWe,iYe=DWe,rYe=qWe,aYe=ZWe,oYe=_Ue,sYe=!1,lYe=!1,uYe=null;var cYe={onCompositionStart:function(e){lYe=!0,function(e){uYe||(uYe=new $We(iYe(e))).start()}(e)},onCompositionEnd:function(e){sYe=!1,lYe=!1,setTimeout((function(){sYe||cYe.resolveComposition(e)}),20)},onSelect:VWe,onKeyDown:function(e,t){if(!lYe)return cYe.resolveComposition(e),void e._onKeyDown(t);t.which!==nYe.RIGHT&&t.which!==nYe.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===nYe.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!lYe){var t=oYe(uYe).stopAndFlushMutations();uYe=null,sYe=!0;var n=tYe.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var i=n.getCurrentContent();t.forEach((function(e,t){var r=eYe.decode(t),a=r.blockKey,o=r.decoratorKey,s=r.leafKey,l=n.getBlockTree(a).getIn([o,"leaves",s]),u=l.start,c=l.end,d=n.getSelection().merge({anchorKey:a,focusKey:a,anchorOffset:u,focusOffset:c,isBackward:!1}),f=aYe(i,d),p=i.getBlockForKey(a).getInlineStyleAt(u);i=XWe.replaceText(i,d,e,p,f),n=tYe.set(n,{currentContent:i})}));var r=rYe(n,iYe(e)).selectionState;e.restoreEditorDOM();var a=tYe.acceptSelection(n,r);e.update(tYe.push(a,i,"insert-characters"))}else e.update(n)}}},dYe=cYe,fYe=_W;function pYe(){return pYe=fYe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pYe.apply(this,arguments)}var hYe=FWe,gYe=m.default,mYe=dUe,vYe=eUe,_Ye=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.children,i=e.contentState,r=e.decorator,a=e.decoratorKey,o=e.direction,s=e.leafSet,l=e.text,u=t.getKey(),c=s.get("leaves"),d=r.getComponentForKey(a),f=r.getPropsForKey(a),p=hYe.encode(u,parseInt(a,10),0),h=l.slice(c.first().get("start"),c.last().get("end")),g=vYe.getHTMLDirIfDifferent(mYe.getDirection(h),o);return gYe.createElement(d,pYe({},f,{contentState:i,decoratedText:h,dir:g,key:p,entityKey:t.getEntityAt(s.get("start")),offsetKey:p}),n)},i}(gYe.Component),bYe=_Ye;function yYe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wYe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FYe=m.default,kYe=CBe,xYe=rWe,EYe=nWe.isBrowser("IE <= 11");var CYe=function(e){var t,n;function i(t){var n;return wYe(yYe(n=e.call(this,t)||this),"_forceFlag",void 0),wYe(yYe(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;xYe(t)||("production"!==go.env.NODE_ENV?kYe(!1,"node is not an Element"):kYe(!1));var i=t;return n?!function(e){return EYe?"\n"===e.textContent:"BR"===e.tagName}(i):i.textContent!==e.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},EYe?FYe.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):FYe.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return EYe?FYe.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):FYe.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):FYe.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},i}(FYe.Component),SYe=CYe,DYe=rWe;var PYe=function(e){return!(!e||!e.ownerDocument)&&(DYe(e)&&"BR"===e.nodeName)};var AYe=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))};var TYe=function(e){return AYe(e)&&3==e.nodeType};var LYe=function e(t,n){return!(!t||!n)&&(t===n||!TYe(t)&&(TYe(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var IYe=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},MYe=xWe,jYe=LYe,NYe=IYe,RYe=iWe,OYe=CBe,zYe=rWe,BYe=nWe.isBrowser("IE");function GYe(e,t){if(!e)return"[empty]";var n=qYe(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(zYe(n)||("production"!==go.env.NODE_ENV?OYe(!1,"Node must be an Element if it is not a text node."):OYe(!1)),n.outerHTML)}function qYe(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return RYe(e).createTextNode("[text "+i+(n.length?" | "+n.join(", "):"")+"]")}var r=e.cloneNode();1===r.nodeType&&n.length&&r.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,o=0;o<a.length;o++)r.appendChild(qYe(a[o],t));return r}function UYe(e,t){for(var n=e,i=n;n;){if(zYe(n)&&i.hasAttribute("contenteditable"))return GYe(n,t);i=n=n.parentNode}return"Could not find contentEditable parent of node"}function HYe(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function WYe(e,t,n,i){var r=NYe();if(e.extend&&null!=t&&jYe(r,t)){n>HYe(t)&&MYe.logSelectionStateFailure({anonymizedDom:UYe(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())});var a=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(o){throw MYe.logSelectionStateFailure({anonymizedDom:UYe(t,(function(t){var n=[];return t===r&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:r?r.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:a,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:n},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),o}}else if(t&&e.rangeCount>0){var o=e.getRangeAt(0);o.setEnd(t,n),e.addRange(o.cloneRange())}}function YYe(e,t,n,i){var r=RYe(t).createRange();if(n>HYe(t)&&MYe.logSelectionStateFailure({anonymizedDom:UYe(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.setStart(t,n),BYe)try{e.addRange(r)}catch(e){"production"!==go.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(r)}var VYe=function(e,t,n,i,r){var a=RYe(t);if(jYe(a.documentElement,t)){var o=a.defaultView.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),u=e.getFocusKey(),c=e.getFocusOffset(),d=e.getIsBackward();if(!o.extend&&d){var f=s,p=l;s=u,l=c,u=f,c=p,d=!1}var h=s===n&&i<=l&&r>=l,g=u===n&&i<=c&&r>=c;if(h&&g)return o.removeAllRanges(),YYe(o,t,l-i,e),void WYe(o,t,c-i,e);if(d){if(g&&(o.removeAllRanges(),YYe(o,t,c-i,e)),h){var m=o.focusNode,v=o.focusOffset;o.removeAllRanges(),YYe(o,t,l-i,e),WYe(o,m,v,e)}}else h&&(o.removeAllRanges(),YYe(o,t,l-i,e)),g&&WYe(o,t,c-i,e)}},KYe=_W;function JYe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QYe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZYe=SYe,$Ye=m.default,XYe=CBe,eVe=PYe,tVe=VYe,nVe=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return QYe(JYe(t=e.call.apply(e,[this].concat(i))||this),"leaf",void 0),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,i=t.start,r=t.text,a=n.getKey(),o=i+r.length;if(e.hasEdgeWithin(a,i,o)){var s=this.leaf;s||("production"!==go.env.NODE_ENV?XYe(!1,"Missing node"):XYe(!1));var l,u=s.firstChild;u||("production"!==go.env.NODE_ENV?XYe(!1,"Missing child"):XYe(!1)),u.nodeType===Node.TEXT_NODE?l=u:eVe(u)?l=s:(l=u.firstChild)||("production"!==go.env.NODE_ENV?XYe(!1,"Missing targetNode"):XYe(!1)),tVe(e,l,a,i,o)}}},r.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==go.env.NODE_ENV?XYe(!1,"Missing leafNode"):XYe(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var i=this.props,r=i.customStyleMap,a=i.customStyleFn,o=i.offsetKey,s=i.styleSet,l=s.reduce((function(e,t){var n={},i=r[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(n.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),KYe(e,i,n)}),{});if(a){var u=a(s,t);l=KYe(l,u)}return $Ye.createElement("span",{"data-offset-key":o,ref:function(t){return e.leaf=t},style:l},$Ye.createElement(ZYe,null,n))},i}($Ye.Component),iVe=nVe;var rVe=bYe,aVe=iVe,oVe=FWe,sVe=Cze.exports,lVe=m.default,uVe=_He;sVe.List;var cVe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,i=e.customStyleFn,r=e.customStyleMap,a=e.decorator,o=e.direction,s=e.forceSelection,l=e.hasSelection,u=e.selection,c=e.tree,d=t.getKey(),f=t.getText(),p=c.size-1,h=this.props.children||c.map((function(e,c){var h=e.get("decoratorKey"),g=e.get("leaves"),m=g.size-1,v=g.map((function(e,n){var a=oVe.encode(d,c,n),o=e.get("start"),g=e.get("end");return lVe.createElement(aVe,{key:a,offsetKey:a,block:t,start:o,selection:l?u:null,forceSelection:s,text:f.slice(o,g),styleSet:t.getInlineStyleAt(o),customStyleMap:r,customStyleFn:i,isLast:h===p&&n===m})})).toArray();return h&&a?lVe.createElement(rVe,{block:t,children:v,contentState:n,decorator:a,decoratorKey:h,direction:o,leafSet:e,text:f,key:c}):v})).toArray();return lVe.createElement("div",{"data-offset-key":oVe.encode(d,0,0),className:uVe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===o,"public/DraftStyleDefault/rtl":"RTL"===o})},h)},i}(lVe.Component),dVe=cVe;function fVe(e,t){return!!t&&(e===t.documentElement||e===t.body)}var pVe={getTop:function(e){var t=e.ownerDocument;return fVe(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;fVe(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return fVe(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;fVe(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},hVe=pVe,gVe=/-(.)/g;var mVe=/([A-Z])/g;var vVe=function(e){return e.replace(gVe,(function(e,t){return t.toUpperCase()}))},_Ve=function(e){return e.replace(mVe,"-$1").toLowerCase()};function bVe(e){return null==e?e:String(e)}var yVe=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return bVe(n.getPropertyValue(_Ve(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return bVe(n.getPropertyValue(_Ve(t)));if("display"===t)return"none"}return e.currentStyle?bVe("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[vVe(t)]):bVe(e.style&&e.style[vVe(t)])};function wVe(e,t){var n=FVe.get(e,t);return"auto"===n||"scroll"===n}var FVe={get:yVe,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(wVe(e,"overflow")||wVe(e,"overflowY")||wVe(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},kVe=FVe,xVe=LYe;var EVe=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!xVe(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var CVe=function(e){var t=EVe(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},SVe="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var DVe=function(e){return(e=e||document).scrollingElement?e.scrollingElement:SVe||"CSS1Compat"!==e.compatMode?e.body:e.documentElement};var PVe=DVe,AVe=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var TVe=function(e){var t=PVe(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=AVe(e),i=e===t?e.ownerDocument.documentElement:e,r=e.scrollWidth-i.clientWidth,a=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,r)),n.y=Math.max(0,Math.min(n.y,a)),n};function LVe(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function IVe(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function MVe(){return{width:window.innerWidth||LVe(),height:window.innerHeight||IVe()}}MVe.withoutScrollbars=function(){return{width:LVe(),height:IVe()}};var jVe=MVe,NVe=_W;function RVe(){return RVe=NVe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},RVe.apply(this,arguments)}function OVe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zVe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){BVe(e,t,n[t])}))}return e}function BVe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GVe=dVe,qVe=FWe,UVe=m.default,HVe=hVe,WVe=kVe,YVe=CVe,VVe=TVe,KVe=jVe,JVe=CBe,QVe=EWe;Cze.exports.List;var ZVe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},$Ve=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),i=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:i}},XVe=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},eKe=function(e,t,n,i,r,a){var o={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},s=i(e);return s&&(o.className=s),void 0!==r.customEditable&&(o=zVe({},o,{contentEditable:r.customEditable,suppressContentEditableWarning:!0})),o},tKe=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return BVe(OVe(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",UVe.createRef()),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this.props,n=t.block,i=t.direction,r=t.tree,a=!n.getChildKeys().isEmpty(),o=n!==e.block||r!==e.tree||i!==e.direction||ZVe(e.selection,e.block.getKey())&&e.forceSelection;return a||o},r.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var i,r=WVe.getScrollParent(n),a=VVe(r);if(r===window){var o=YVe(n);(i=o.y+o.height-KVe().height)>0&&window.scrollTo(a.x,a.y+i+10)}else{QVe(n)||("production"!==go.env.NODE_ENV?JVe(!1,"blockNode is not an HTMLElement"):JVe(!1));var s=n;(i=s.offsetHeight+s.offsetTop-(r.offsetHeight+a.y))>0&&HVe.setTop(r,HVe.getTop(r)+i+10)}}}},r.render=function(){var e=this,t=this.props,n=t.block,r=t.blockRenderMap,a=t.blockRendererFn,o=t.blockStyleFn,s=t.contentState,l=t.decorator,u=t.editorKey,c=t.editorState,d=t.customStyleFn,f=t.customStyleMap,p=t.direction,h=t.forceSelection,g=t.selection,m=t.tree,v=null;n.children.size&&(v=n.children.reduce((function(t,n){var l=qVe.encode(n,0,0),d=s.getBlockForKey(n),f=XVe(d,a),p=f.CustomComponent||i,h=$Ve(d,r),g=h.Element,m=h.wrapperTemplate,v=eKe(d,u,l,o,f,null),_=zVe({},e.props,{tree:c.getBlockTree(n),blockProps:f.customProps,offsetKey:l,block:d});return t.push(UVe.createElement(g,v,UVe.createElement(p,_))),!m||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(d,s)||function(e,t,n){var i=[],r=!0,a=!1,o=void 0;try{for(var s,l=n.reverse()[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value;if(u.type!==t)break;i.push(u)}}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}n.splice(n.indexOf(i[0]),i.length+1);var c=i.reverse(),d=c[0].key;n.push(UVe.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":qVe.encode(d,0,0)},c))}(m,g,t),t}),[]));var _=n.getKey(),b=qVe.encode(_,0,0),y=XVe(n,a),w=y.CustomComponent,F=null!=w?UVe.createElement(w,RVe({},this.props,{tree:c.getBlockTree(_),blockProps:y.customProps,offsetKey:b,block:n})):UVe.createElement(GVe,{block:n,children:v,contentState:s,customStyleFn:d,customStyleMap:f,decorator:l,direction:p,forceSelection:h,hasSelection:ZVe(g,_),selection:g,tree:m});if(n.getParentKey())return F;var k=$Ve(n,r).Element,x=eKe(n,u,b,o,y,this.wrapperRef);return UVe.createElement(k,x,F)},i}(UVe.Component),nKe=_W;function iKe(){return iKe=nKe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iKe.apply(this,arguments)}var rKe=tKe,aKe=FWe,oKe=m.default,sKe=_Ue,lKe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var i=n.getNativelyRenderedContent(),r=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==i&&n.getCurrentContent()===i||r&&a)return!1;var o=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return r!==a||o!==s||l!==u||n.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,r=e.customStyleMap,a=e.customStyleFn,o=e.editorState,s=e.editorKey,l=e.textDirectionality,u=o.getCurrentContent(),c=o.getSelection(),d=o.mustForceSelection(),f=o.getDecorator(),p=sKe(o.getDirectionMap()),h=[],g=u.getBlocksAsArray()[0];g;){var m=g.getKey(),v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:i,contentState:u,customStyleFn:a,customStyleMap:r,decorator:f,editorKey:s,editorState:o,forceSelection:d,selection:c,block:g,direction:l||p.get(m),tree:o.getBlockTree(m)},_=(t.get(g.getType())||t.get("unstyled")).wrapper;h.push({block:oKe.createElement(rKe,iKe({key:m},v)),wrapperTemplate:_,key:m,offsetKey:aKe.encode(m,0,0)});var b=g.getNextSiblingKey();g=b?u.getBlockForKey(b):null}for(var y=[],w=0;w<h.length;){var F=h[w];if(F.wrapperTemplate){var k=[];do{k.push(h[w].block),w++}while(w<h.length&&h[w].wrapperTemplate===F.wrapperTemplate);var x=oKe.cloneElement(F.wrapperTemplate,{key:F.key+"-wrap","data-offset-key":F.offsetKey},k);y.push(x)}else y.push(F.block),w++}return oKe.createElement("div",{"data-contents":"true"},y)},i}(oKe.Component),uKe=lKe,cKe=_W;function dKe(){return dKe=cKe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dKe.apply(this,arguments)}function fKe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pKe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hKe=iVe,gKe=FWe,mKe=m.default,vKe=hVe,_Ke=kVe,bKe=dUe,yKe=eUe,wKe=_He,FKe=CVe,kKe=TVe,xKe=jVe,EKe=CBe,CKe=EWe,SKe=_Ue,DKe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},PKe=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return pKe(fKe(t=e.call.apply(e,[this].concat(i))||this),"_node",void 0),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||DKe(e.selection,e.block.getKey())&&e.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var i,r=_Ke.getScrollParent(n),a=kKe(r);if(r===window){var o=FKe(n);(i=o.y+o.height-xKe().height)>0&&window.scrollTo(a.x,a.y+i+10)}else{CKe(n)||("production"!==go.env.NODE_ENV?EKe(!1,"blockNode is not an HTMLElement"):EKe(!1)),(i=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+a.y))>0&&vKe.setTop(r,vKe.getTop(r)+i+10)}}}}},r._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),r=this.props.tree.size-1,a=DKe(this.props.selection,n);return this.props.tree.map((function(o,s){var l=o.get("leaves");if(0===l.size)return null;var u=l.size-1,c=l.map((function(o,l){var c=gKe.encode(n,s,l),d=o.get("start"),f=o.get("end");return mKe.createElement(hKe,{key:c,offsetKey:c,block:t,start:d,selection:a?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(d,f),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===r&&l===u})})).toArray(),d=o.get("decoratorKey");if(null==d)return c;if(!e.props.decorator)return c;var f=SKe(e.props.decorator),p=f.getComponentForKey(d);if(!p)return c;var h=f.getPropsForKey(d),g=gKe.encode(n,s,0),m=l.first().get("start"),v=l.last().get("end"),_=i.slice(m,v),b=t.getEntityAt(o.get("start")),y=yKe.getHTMLDirIfDifferent(bKe.getDirection(_),e.props.direction),w={contentState:e.props.contentState,decoratedText:_,dir:y,start:m,end:v,blockKey:n,entityKey:b,offsetKey:g};return mKe.createElement(p,dKe({},h,w,{key:g}),c)})).toArray()},r.render=function(){var e=this,t=this.props,n=t.direction,i=t.offsetKey,r=wKe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return mKe.createElement("div",{"data-offset-key":i,className:r,ref:function(t){return e._node=t}},this._renderChildren())},i}(mKe.Component),AKe=PKe;var TKe=function(e){var t=e||"",n=arguments.length;if(n>1)for(var i=1;i<n;i++){var r=arguments[i];r&&(t=(t?t+" ":"")+r)}return t},LKe=_W;function IKe(){return IKe=LKe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},IKe.apply(this,arguments)}function MKe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){jKe(e,t,n[t])}))}return e}function jKe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NKe=AKe,RKe=FWe,OKe=m.default,zKe=_He,BKe=TKe,GKe=_Ue,qKe=function(e,t,n,i){return zKe({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===i,"public/DraftStyleDefault/listRTL":"RTL"===i})},UKe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var i=n.getNativelyRenderedContent(),r=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==i&&n.getCurrentContent()===i||r&&a)return!1;var o=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return r!==a||o!==s||l!==u||n.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,r=e.customStyleMap,a=e.customStyleFn,o=e.editorState,s=e.editorKey,l=e.preventScroll,u=e.textDirectionality,c=o.getCurrentContent(),d=o.getSelection(),f=o.mustForceSelection(),p=o.getDecorator(),h=GKe(o.getDirectionMap()),g=c.getBlocksAsArray(),m=[],v=null,_=null,b=0;b<g.length;b++){var y=g[b],w=y.getKey(),F=y.getType(),k=n(y),x=void 0,E=void 0,C=void 0;k&&(x=k.component,E=k.props,C=k.editable);var S=u||h.get(w),D=RKe.encode(w,0,0),P={contentState:c,block:y,blockProps:E,blockStyleFn:i,customStyleMap:r,customStyleFn:a,decorator:p,direction:S,forceSelection:f,offsetKey:D,preventScroll:l,selection:d,tree:o.getBlockTree(w)},A=t.get(F)||t.get("unstyled"),T=A.wrapper,L=A.element||t.get("unstyled").element,I=y.getDepth(),M="";if(i&&(M=i(y)),"li"===L)M=BKe(M,qKe(F,I,_!==T||null===v||I>v,S));var j=x||NKe,N={className:M,"data-block":!0,"data-editor":s,"data-offset-key":D,key:w};void 0!==C&&(N=MKe({},N,{contentEditable:C,suppressContentEditableWarning:!0}));var R=OKe.createElement(L,N,OKe.createElement(j,IKe({},P,{key:w})));m.push({block:R,wrapperTemplate:T,key:w,offsetKey:D}),v=T?y.getDepth():null,_=T}for(var O=[],z=0;z<m.length;){var B=m[z];if(B.wrapperTemplate){var G=[];do{G.push(m[z].block),z++}while(z<m.length&&m[z].wrapperTemplate===B.wrapperTemplate);var q=OKe.cloneElement(B.wrapperTemplate,{key:B.key+"-wrap","data-offset-key":B.offsetKey},G);O.push(q)}else O.push(B.block),z++}return OKe.createElement("div",{"data-contents":"true"},O)},i}(OKe.Component),HKe=UKe,WKe=kqe("draft_tree_data_support")?uKe:HKe,YKe={isImage:function(e){return"image"===VKe(e)[0]},isJpeg:function(e){var t=VKe(e);return YKe.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function VKe(e){return e.split("/")}var KKe=YKe,JKe=CBe;var QKe=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Array-like object expected"):JKe(!1)),"number"!=typeof t&&("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Object needs a length property"):JKe(!1)),0===t||t-1 in e||("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Object should have keys for indices"):JKe(!1)),"function"==typeof e.callee&&("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):JKe(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}(e):[e]};function ZKe(e){return function(){return e}}var $Ke=function(){};$Ke.thatReturns=ZKe,$Ke.thatReturnsFalse=ZKe(!1),$Ke.thatReturnsTrue=ZKe(!0),$Ke.thatReturnsNull=ZKe(null),$Ke.thatReturnsThis=function(){return this},$Ke.thatReturnsArgument=function(e){return e};var XKe=$Ke,eJe=KKe,tJe=QKe,nJe=XKe,iJe=new RegExp("\r\n","g"),rJe={"text/rtf":1,"text/html":1};function aJe(e){if("file"==e.kind)return e.getAsFile()}var oJe=function(){function e(e){this.data=e,this.types=e.types?tJe(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return rJe[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(iJe,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var i=t[n].type;if(!eJe.isImage(i))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(aJe).filter(nJe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),sJe=oJe,lJe=CBe,uJe=/\.textClipping$/,cJe={"text/plain":!0,"text/html":!0,"text/rtf":!0};var dJe=function(e,t){var n=0,i=[];e.forEach((function(r){!function(e,t){if(!k.FileReader||e.type&&!(e.type in cJe))return void t("");if(""===e.type){var n="";return uJe.test(e.name)&&(n=e.name.replace(uJe,"")),void t(n)}var i=new FileReader;i.onload=function(){var e=i.result;"string"!=typeof e&&("production"!==go.env.NODE_ENV?lJe(!1,'We should be calling "FileReader.readAsText" which returns a string'):lJe(!1)),t(e)},i.onerror=function(){t("")},i.readAsText(e)}(r,(function(r){n++,r&&i.push(r.slice(0,5e3)),n==e.length&&t(i.join("\r"))}))}))};var fJe=function(e){return"handled"===e||!0===e},pJe=sJe,hJe=VGe,gJe=qUe,mJe=uWe,vJe=iWe,_Je=dJe,bJe=TWe,yJe=cWe,wJe=fJe,FJe=_Ue;var kJe={onDragEnd:function(e){e.exitCurrentMode(),xJe(e)},onDrop:function(e,t){var n=new pJe(t.nativeEvent.dataTransfer),i=e._latestEditorState,r=function(e,t){var n=null,i=null,r=vJe(e.currentTarget);if("function"==typeof r.caretRangeFromPoint){var a=r.caretRangeFromPoint(e.x,e.y);n=a.startContainer,i=a.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,i=e.rangeOffset}n=FJe(n),i=FJe(i);var o=FJe(mJe(n));return bJe(t,o,i,o,i)}(t.nativeEvent,i);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=r){var a=n.getFiles();if(a.length>0){if(e.props.handleDroppedFiles&&wJe(e.props.handleDroppedFiles(r,a)))return;_Je(a,(function(t){t&&e.update(EJe(i,r,t))}))}else{var o=e._internalDrag?"internal":"external";e.props.handleDrop&&wJe(e.props.handleDrop(r,n,o))||(e._internalDrag?e.update(function(e,t){var n=hJe.moveText(e.getCurrentContent(),e.getSelection(),t);return gJe.push(e,n,"insert-fragment")}(i,r)):e.update(EJe(i,r,n.getText()))),xJe(e)}}}};function xJe(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:yJe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function EJe(e,t,n){var i=hJe.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return gJe.push(e,i,"insert-fragment")}var CJe=kJe;var SJe=function(e){var t=e.getSelection(),n=t.getAnchorKey(),i=e.getBlockTree(n),r=t.getStartOffset(),a=!1;return i.some((function(e){return r===e.get("start")?(a=!0,!0):r<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return r===t&&(a=!0,!0)}))})),a};!function(e,t){if(!e.setImmediate){var n,i,r,a=1,o={},s=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){go.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",r=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(t){e.postMessage(i+t,"*")}):e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){d(e.data)},n=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;n=function(t){var n=l.createElement("script");n.onreadystatechange=function(){d(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():n=function(e){setTimeout(d,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return o[a]=r,n(a),a++},u.clearImmediate=c}function c(e){delete o[e]}function d(e){if(s)setTimeout(d,0,e);else{var t=o[e];if(t){s=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{c(e),s=!1}}}}}("undefined"==typeof self?k:self);var DJe=k.setImmediate,PJe=VGe,AJe=qUe,TJe=ZWe,LJe=fJe,IJe=SJe,MJe=_Ue,jJe=DJe,NJe=nWe.isBrowser("Firefox");function RJe(e,t,n,i,r){var a=PJe.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return AJe.push(e,a,"insert-characters",r)}var OJe=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,i=t.data;if(i)if(e.props.handleBeforeInput&&LJe(e.props.handleBeforeInput(i,n,t.timeStamp)))t.preventDefault();else{var r=n.getSelection(),a=r.getStartOffset(),o=r.getAnchorKey();if(!r.isCollapsed())return t.preventDefault(),void e.update(RJe(n,i,n.getCurrentInlineStyle(),TJe(n.getCurrentContent(),n.getSelection()),!0));var s,l=RJe(n,i,n.getCurrentInlineStyle(),TJe(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=IJe(e._latestCommittedEditorState)),!u){var c=n.getBlockTree(o),d=l.getBlockTree(o);u=c.size!==d.size||c.zip(d).some((function(e){var t=e[0],n=e[1],r=t.get("start"),o=r+(r>=a?i.length:0),s=t.get("end"),l=s+(s>=a?i.length:0),u=n.get("start"),c=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||o!==u||l!==c||null!=d&&c-u!=s-r}))}if(u||(s=i,u=NJe&&("'"==s||"/"==s)),u||(u=MJe(l.getDirectionMap()).get(o)!==MJe(n.getDirectionMap()).get(o)),u)return t.preventDefault(),l=AJe.set(l,{forceSelection:!0}),void e.update(l);l=AJe.set(l,{nativelyRenderedContent:l.getCurrentContent()}),e._pendingStateFromBeforeInput=l,jJe((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},zJe=qUe,BJe=LYe,GJe=IYe;var qJe=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&GJe(n)===n.body){var i=n.defaultView.getSelection(),r=e.editor;1===i.rangeCount&&BJe(r,i.anchorNode)&&BJe(r,i.focusNode)&&i.removeAllRanges()}var a=e._latestEditorState,o=a.getSelection();if(o.getHasFocus()){var s=o.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(zJe.acceptSelection(a,s))}},UJe=qUe;var HJe=function(e,t){e.setMode("composite"),e.update(UJe.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},WJe=KBe;var YJe=function(e){var t=e.getSelection();return t.isCollapsed()?null:WJe(e.getCurrentContent(),t)},VJe=YJe;var KJe=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(VJe(e._latestEditorState))};var JJe=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1},QJe=VGe,ZJe=qUe,$Je=kVe,XJe=YJe,eQe=TVe,tQe=JJe;var nQe=function(e,t){var n,i=e._latestEditorState,r=i.getSelection(),a=t.target;if(r.isCollapsed())t.preventDefault();else{if(tQe(a)){var o=a;n=eQe($Je.getScrollParent(o))}var s=XJe(i);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=QJe.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return ZJe.push(e,t,"remove-range")}(i))}),0)}};var iQe=function(e,t){e.setMode("drag"),t.preventDefault()};var rQe=function(e){e._internalDrag=!0,e.setMode("drag")},aQe=qUe,oQe=nWe;var sQe=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var r=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),oQe.isBrowser("Chrome < 60.0.3081.0")?e.update(aQe.forceSelection(n,r)):e.update(aQe.acceptSelection(n,r))}},lQe=CBe,uQe=/[\uD800-\uDFFF]/;function cQe(e){return 55296<=e&&e<=57343}function dQe(e){return uQe.test(e)}function fQe(e,t){return 1+cQe(e.charCodeAt(t))}function pQe(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!dQe(e))return e.substr(t,n);var i=e.length;if(i<=0||t>i||n<=0)return"";var r=0;if(t>0){for(;t>0&&r<i;t--)r+=fQe(e,r);if(r>=i)return""}else if(t<0){for(r=i;t<0&&0<r;t++)r-=fQe(e,r-1);r<0&&(r=0)}var a=i;if(n<i)for(a=r;n>0&&a<i;n--)a+=fQe(e,a);return e.substring(r,a)}var hQe={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=fQe(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:fQe,hasSurrogateUnit:dQe,isCodeUnitInSurrogateRange:cQe,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==go.env.NODE_ENV?lQe(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):lQe(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),i=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=i&&i<=57343},strlen:function(e){if(!dQe(e))return e.length;for(var t=0,n=0;n<e.length;n+=fQe(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var i=Math.abs(n-t);return pQe(e,t=t<n?t:n,i)},substr:pQe},gQe=hQe,mQe=XKe;function vQe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=0,a="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}var _Qe="production"!==go.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];vQe.apply(void 0,[t].concat(i))}}:mQe,bQe=_Qe,yQe=bQe;var wQe=function(e,t){var n=e.getSelection();"production"!==go.env.NODE_ENV&&yQe(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var i=e.getCurrentContent(),r=n.getStartKey(),a=n.getStartOffset(),o=r,s=0;if(t>a){var l=i.getKeyBefore(r);if(null==l)o=r;else o=l,s=i.getBlockForKey(l).getText().length}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})},FQe=VGe,kQe=kqe("draft_tree_data_support");var xQe=function(e,t,n){var i=e.getSelection(),r=e.getCurrentContent(),a=i,o=i.getAnchorKey(),s=i.getFocusKey(),l=r.getBlockForKey(o);if(kQe&&"forward"===n&&o!==s)return r;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return r;if(kQe)if(i.getAnchorOffset()===r.getBlockForKey(o).getLength()){var u=r.getBlockForKey(l.nextSibling);if(!u||0===u.getLength())return r}}else if(e.isSelectionAtStartOfContent())return r;if((a=t(e))===i)return r}return FQe.removeRange(r,a,n)},EQe=qUe,CQe=gQe,SQe=wQe,DQe=xQe;var PQe=function(e){var t=DQe(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),r=t.getAnchorOffset(),a=n.getBlockForKey(i).getText()[r-1];return SQe(e,a?CQe.getUTF16Length(a,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return EQe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},AQe=VGe,TQe=FWe,LQe=qUe,IQe=KWe.notEmptyKey,MQe=uWe,jQe=PQe,NQe=_Ue,RQe=nWe.isEngine("Gecko");var OQe=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),i=n.anchorNode,r=n.isCollapsed,a=(null==i?void 0:i.nodeType)!==Node.TEXT_NODE&&(null==i?void 0:i.nodeType)!==Node.ELEMENT_NODE;if(null!=i&&!a){if(i.nodeType===Node.TEXT_NODE&&(null!==i.previousSibling||null!==i.nextSibling)){var o=i.parentNode;if(null==o)return;i.nodeValue=o.textContent;for(var s=o.firstChild;null!=s;s=s.nextSibling)s!==i&&o.removeChild(s)}var l=i.textContent,u=e._latestEditorState,c=NQe(MQe(i)),d=TQe.decode(c),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=u.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,_=u.getCurrentContent(),b=_.getBlockForKey(f),y=b.getText().slice(m,v);if(l.endsWith("\n\n")&&(l=l.slice(0,-1)),l!==y){var w,F,k,x,E=u.getSelection(),C=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),S=b.getEntityAt(m),D=IQe(S)?_.getEntity(S):null,P="MUTABLE"===(null!=D?D.getMutability():null),A=P?"spellcheck-change":"apply-entity",T=AQe.replaceText(_,C,l,b.getInlineStyleAt(m),P?b.getEntityAt(m):null);if(RQe)w=n.anchorOffset,F=n.focusOffset,x=(k=m+Math.min(w,F))+Math.abs(w-F),w=k,F=x;else{var L=l.length-y.length;k=E.getStartOffset(),x=E.getEndOffset(),w=r?x+L:k,F=x+L}var I=T.merge({selectionBefore:_.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:w,focusOffset:F})});e.update(LQe.push(u,I,A))}else{var M=t.nativeEvent.inputType;if(M){var j=function(e,t){return"deleteContentBackward"===e?jQe(t):t}(M,u);if(j!==u)return e.restoreEditorDOM(),void e.update(j)}}}},zQe=kWe;var BQe=function(e){return e.which===zQe.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},GQe=BQe,qQe=nWe.isPlatform("Mac OS X"),UQe={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return qQe&&e.altKey},usesMacOSHeuristics:function(){return qQe},hasCommandModifier:function(e){return qQe?!!e.metaKey&&!e.altKey:UQe.isCtrlKeyCommand(e)},isSoftNewlineEvent:GQe},HQe=UQe,WQe=VGe,YQe=qUe,VQe=KBe,KQe=_Ue,JQe=null,QQe={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),i=null;if(n.isCollapsed()){var r=n.getAnchorKey(),a=t.getBlockForKey(r).getLength();if(a===n.getAnchorOffset()){var o=t.getKeyAfter(r);if(null==o)return e;i=n.set("focusKey",o).set("focusOffset",0)}else i=n.set("focusOffset",a)}else i=n;i=KQe(i),JQe=VQe(t,i);var s=WQe.removeRange(t,i,"forward");return s===t?e:YQe.push(e,s,"remove-range")},paste:function(e){if(!JQe)return e;var t=WQe.replaceWithFragment(e.getCurrentContent(),e.getSelection(),JQe);return YQe.push(e,t,"insert-fragment")}},ZQe=CBe;var $Qe=nWe.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;null!=i;i=i.parentNode){var r=i===e.commonAncestorContainer;r?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,o=Array.from(t.getClientRects());if(n.push(o),r)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(i)}"production"!==go.env.NODE_ENV?ZQe(!1,"Found an unexpected detached subtree when getting range client rects."):ZQe(!1)}:function(e){return Array.from(e.getClientRects())},XQe=gQe,eZe=iWe,tZe=$Qe,nZe=CBe;function iZe(e,t){for(var n=1/0,i=1/0,r=-1/0,a=-1/0,o=0;o<e.length;o++){var s=e[o];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),i=Math.min(i,s.bottom),r=Math.max(r,s.top),a=Math.max(a,s.bottom))}return r<=i&&r-n<t&&a-i<t}function rZe(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var aZe=qUe,oZe=function(e){e.collapsed||("production"!==go.env.NODE_ENV?nZe(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):nZe(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=eZe(e),i=n.createElement("div");i.style.fontFamily=t.fontFamily,i.style.fontSize=t.fontSize,i.style.fontStyle=t.fontStyle,i.style.fontWeight=t.fontWeight,i.style.lineHeight=t.lineHeight,i.style.position="absolute",i.textContent="M";var r=n.body;r||("production"!==go.env.NODE_ENV?nZe(!1,"Missing document.body"):nZe(!1)),r.appendChild(i);var a=i.getBoundingClientRect();return r.removeChild(i),a.height}(t),i=e.endContainer,r=e.endOffset;for(e.setStart(e.startContainer,0);iZe(tZe(e),n)&&(i=e.startContainer,r=e.startOffset,i.parentNode||("production"!==go.env.NODE_ENV?nZe(!1,"Found unexpected detached subtree when traversing."):nZe(!1)),e.setStartBefore(i),1!==i.nodeType||"inline"===getComputedStyle(i).display););for(var a=i,o=r-1;;){for(var s=a.nodeValue,l=o;l>=0;l--)if(!(null!=s&&l>0&&XQe.isSurrogatePair(s,l-1))){if(e.setStart(a,l),!iZe(tZe(e),n))break;i=a,r=l}if(-1===l||0===a.childNodes.length)break;o=rZe(a=a.childNodes[l])}return e.setStart(i,r),e},sZe=BWe,lZe=wQe,uZe=xQe;var cZe=function(e,t){var n=uZe(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return lZe(e,1);var i=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return i=oZe(i),sZe(e,null,i.endContainer,i.endOffset,i.startContainer,i.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:aZe.push(e,n,"remove-range")},dZe="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),fZe=new RegExp("^(?:"+dZe+")*(?:"+"['‘’]|(?!"+dZe+").)*(?:(?!"+dZe+").)"),pZe=new RegExp("(?:(?!"+dZe+").)(?:"+"['‘’]|(?!"+dZe+").)*(?:"+dZe+")*$");function hZe(e,t){var n=t?pZe.exec(e):fZe.exec(e);return n?n[0]:e}var gZe={getBackward:function(e){return hZe(e,!0)},getForward:function(e){return hZe(e,!1)}},mZe=gZe,vZe=qUe,_Ze=wQe,bZe=xQe;var yZe=bQe;var wZe=function(e,t){var n=e.getSelection();"production"!==go.env.NODE_ENV&&yZe(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var i,r=n.getStartKey(),a=n.getStartOffset(),o=e.getCurrentContent(),s=r;return t>o.getBlockForKey(r).getText().length-a?(s=o.getKeyAfter(r),i=0):i=a+t,n.merge({focusKey:s,focusOffset:i})},FZe=gZe,kZe=qUe,xZe=wZe,EZe=xQe;var CZe=VGe,SZe=qUe;var DZe=qUe;var PZe=qUe;var AZe=qUe,TZe=gQe,LZe=wZe,IZe=xQe;var MZe=VGe,jZe=qUe,NZe=KBe;var RZe=qUe;var OZe=function(e,t,n){var i=RZe.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(RZe.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(i)}),0)):n(i);else{var r=i.getCurrentContent();n(RZe.set(i,{nativelyRenderedContent:r}))}},zZe=VGe,BZe=qUe,GZe=kWe,qZe=QQe,UZe=nWe,HZe=fJe,WZe=cZe,YZe=function(e){var t=bZe(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return _Ze(e,1);var i=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),a=mZe.getBackward(r);return _Ze(e,a.length||1)}),"backward");return t===e.getCurrentContent()?e:vZe.push(e,t,"remove-range")},VZe=function(e){var t=EZe(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(i).getText().slice(n),a=FZe.getForward(r);return xZe(e,a.length||1)}),"forward");return t===e.getCurrentContent()?e:kZe.push(e,t,"remove-range")},KZe=function(e){var t=CZe.splitBlock(e.getCurrentContent(),e.getSelection());return SZe.push(e,t,"split-block")},JZe=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return DZe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})},QZe=function(e){var t=e.getSelection(),n=t.getStartKey();return PZe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},ZZe=PQe,$Ze=function(e){var t=IZe(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),r=t.getAnchorOffset(),a=n.getBlockForKey(i).getText()[r];return LZe(e,a?TZe.getUTF16Length(a,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return AZe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},XZe=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var i,r,a=t.getAnchorKey(),o=e.getCurrentContent(),s=o.getBlockForKey(a).getLength();if(s<=1)return e;n===s?(i=t.set("anchorOffset",n-1),r=t):r=(i=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var l=NZe(o,i),u=MZe.removeRange(o,i,"backward"),c=u.getSelectionAfter(),d=c.getAnchorOffset()-1,f=c.merge({anchorOffset:d,focusOffset:d}),p=MZe.replaceWithFragment(u,f,l),h=jZe.push(e,p,"insert-fragment");return jZe.acceptSelection(h,r)},e$e=OZe,t$e=HQe.isOptionKeyCommand,n$e=UZe.isBrowser("Chrome");var i$e=function(e,t){var n=t.which,i=e._latestEditorState;function r(n){var i=e.props[n];return!!i&&(i(t),!0)}switch(n){case GZe.RETURN:if(t.preventDefault(),e.props.handleReturn&&HZe(e.props.handleReturn(t,i)))return;break;case GZe.ESC:if(t.preventDefault(),r("onEscape"))return;break;case GZe.TAB:if(r("onTab"))return;break;case GZe.UP:if(r("onUpArrow"))return;break;case GZe.RIGHT:if(r("onRightArrow"))return;break;case GZe.DOWN:if(r("onDownArrow"))return;break;case GZe.LEFT:if(r("onLeftArrow"))return;break;case GZe.SPACE:n$e&&t$e(t)&&t.preventDefault()}var a=e.props.keyBindingFn(t);if(null!=a&&""!==a)if("undo"!==a){if(t.preventDefault(),!e.props.handleKeyCommand||!HZe(e.props.handleKeyCommand(a,i,t.timeStamp))){var o=function(e,t,n){switch(e){case"redo":return BZe.redo(t);case"delete":return $Ze(t);case"delete-word":return VZe(t);case"backspace":return ZZe(t);case"backspace-word":return YZe(t);case"backspace-to-start-of-line":return WZe(t,n);case"split-block":return KZe(t);case"transpose-characters":return XZe(t);case"move-selection-to-start-of-block":return QZe(t);case"move-selection-to-end-of-block":return JZe(t);case"secondary-cut":return qZe.cut(t);case"secondary-paste":return qZe.paste(t);default:return t}}(a,i,t);o!==i&&e.update(o)}}else e$e(t,i,e.update);else if(n===GZe.SPACE&&n$e&&t$e(t)){var s=zZe.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(BZe.push(i,s,"insert-characters"))}};var r$e=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),a$e=r$e,o$e=CBe,s$e=nWe.isBrowser("IE <= 9");var l$e=function(e){var t,n=null;return!s$e&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==go.env.NODE_ENV?o$e(!1,"Missing doc.documentElement"):o$e(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},u$e=rWe;var c$e=function(e){return!(!e||!e.ownerDocument)&&(u$e(e)&&"A"===e.nodeName)},d$e=rWe;var f$e,p$e=function(e){return!(!e||!e.ownerDocument)&&(d$e(e)&&"IMG"===e.nodeName)};function h$e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){g$e(e,t,n[t])}))}return e}function g$e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m$e=zze,v$e=eBe,_$e=gBe,b$e=wHe,y$e=yqe,w$e=a$e,F$e=_He,k$e=NBe,x$e=l$e,E$e=kqe,C$e=Cze.exports,S$e=C$e.List,D$e=C$e.Map,P$e=C$e.OrderedSet,A$e=c$e,T$e=PYe,L$e=EWe,I$e=p$e,M$e=E$e("draft_tree_data_support"),j$e=new RegExp("\r","g"),N$e=new RegExp("\n","g"),R$e=new RegExp("^\n","g"),O$e=new RegExp(" ","g"),z$e=new RegExp(" ?","g"),B$e=new RegExp("​?","g"),G$e=["bold","bolder","500","600","700","800","900"],q$e=["light","lighter","normal","100","200","300","400"],U$e=["className","href","rel","target","title"],H$e=["alt","className","height","src","width"],W$e=(g$e(f$e={},F$e("public/DraftStyleDefault/depth0"),0),g$e(f$e,F$e("public/DraftStyleDefault/depth1"),1),g$e(f$e,F$e("public/DraftStyleDefault/depth2"),2),g$e(f$e,F$e("public/DraftStyleDefault/depth3"),3),g$e(f$e,F$e("public/DraftStyleDefault/depth4"),4),f$e),Y$e=D$e({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),V$e=function(e){var t={};return e.mapKeys((function(e,n){var i=[n.element];void 0!==n.aliasedElements&&i.push.apply(i,n.aliasedElements),i.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),D$e(t)},K$e=function(e){if(L$e(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},J$e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(W$e).some((function(n){e.classList.contains(n)&&(t=W$e[n])})),t},Q$e=function(e){if(!A$e(e))return!1;var t=e;return!(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)},Z$e=function(e){if(!I$e(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},$$e=function(e,t){if(!L$e(e))return t;var n=e,i=n.style.fontWeight,r=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){G$e.indexOf(i)>=0?e.add("BOLD"):q$e.indexOf(i)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},X$e=function(e){return"ul"===e||"ol"===e},eXe=function(){function e(e,t){g$e(this,"characterList",S$e()),g$e(this,"currentBlockType","unstyled"),g$e(this,"currentDepth",0),g$e(this,"currentEntity",null),g$e(this,"currentText",""),g$e(this,"wrapper",null),g$e(this,"blockConfigs",[]),g$e(this,"contentBlocks",[]),g$e(this,"entityMap",y$e),g$e(this,"blockTypeMap",void 0),g$e(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=S$e(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=y$e,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],P$e())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(M$e?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||k$e(),n=h$e({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:S$e(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=S$e(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i],a=r.nodeName.toLowerCase();if("body"===a||X$e(a)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var o=this.currentDepth,s=this.wrapper;X$e(a)&&(this.wrapper=a,X$e(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(r.childNodes),t)),this.currentDepth=o,this.wrapper=s}else{var l=this.blockTypeMap.get(a);if(void 0===l)if("#text"!==a)if("br"!==a)if(Z$e(r))this._addImgNode(r,t);else if(Q$e(r))this._addAnchorNode(r,n,t);else{var u=t;Y$e.has(a)&&(u=u.add(Y$e.get(a))),u=$$e(r,u);var c=K$e(r);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(r.childNodes),u))}else this._addBreakNode(r,t);else this._addTextNode(r,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===a?"pre":this.wrapper,"string"!=typeof l&&(l=this.disambiguate(a,this.wrapper)||l[0]||"unstyled"),!M$e&&L$e(r)&&("unordered-list-item"===l||"ordered-list-item"===l)){var p=r;this.currentDepth=J$e(p,this.currentDepth)}var h=k$e(),g=this._toBlockConfigs(Array.from(r.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:l})),this.currentDepth=d,this.wrapper=f}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var i=m$e.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(i))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,i=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==i?Math.min(t,i[0]):t)>(n=void 0!==(i=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-i[0]):n)?(this.currentText="",this.characterList=S$e()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(R$e,"")).replace(N$e," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){T$e(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(I$e(e)){var n=e,i={};H$e.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),E$e("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(A$e(e)){var i=e,r={};U$e.forEach((function(e){var t=i.getAttribute(e);t&&(r[e]=t)})),r.url=new w$e(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var r=e[i];r.parent=t,r.prevSibling=i>0?e[i-1].key:null,r.nextSibling=i<n?e[i+1].key:null,r.children=S$e(r.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new _$e(h$e({},r))),this._toContentBlocks(r.childConfigs,r.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return S$e(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),i=n.text,r=n.characterList;t.contentBlocks.push(new v$e(h$e({},e,{text:e.text+i,characterList:e.characterList.concat(r)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",i=S$e(),r=0;r<=t;r++){var a=e[r];n+=a.text,i=i.concat(a.characterList),""!==n&&"unstyled"!==a.type&&(n+="\n",i=i.push(i.last()));var o=this._extractTextFromBlockConfigs(a.childConfigs);n+=o.text,i=i.concat(o.characterList)}return{text:n,characterList:i}},e}(),tXe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x$e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b$e,i=t(e=e.trim().replace(j$e,"").replace(O$e," ").replace(z$e,"").replace(B$e,""));if(!i)return null;var r=V$e(n),a=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new eXe(r,a).addDOMNode(i).getContentBlocks()};function nXe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iXe=eBe,rXe=gBe,aXe=tXe,oXe=NBe,sXe=l$e,lXe=kqe,uXe=Cze.exports,cXe=Eqe,dXe=uXe.List,fXe=uXe.Repeat,pXe=lXe("draft_tree_data_support"),hXe=pXe?rXe:iXe,gXe={processHTML:function(e,t){return aXe(e,sXe,t)},processText:function(e,t,n){return e.reduce((function(e,i,r){i=cXe(i);var a=oXe(),o={key:a,type:n,text:i,characterList:dXe(fXe(t,i.length))};if(pXe&&0!==r){var s=r-1;o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){nXe(e,t,n[t])}))}return e}({},o,{prevSibling:(e[s]=e[s].merge({nextSibling:a})).getKey()})}return e.push(new hXe(o)),e}),[])}};var mXe=function(e,t,n,i){var r=t.getStartKey(),a=t.getEndKey(),o=e.getBlockMap(),s=o.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===a})).concat([[a,o.get(a)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,i)),e.set("depth",t)}));return o=o.merge(s),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t})},vXe=VGe,_Xe=qUe,bXe=mXe,yXe=_Ue,wXe={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===i.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return wXe.toggleInlineStyle(e,"BOLD");case"italic":return wXe.toggleInlineStyle(e,"ITALIC");case"underline":return wXe.toggleInlineStyle(e,"UNDERLINE");case"code":return wXe.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return wXe.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return wXe.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=vXe.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=_Xe.push(e,t,"insert-characters");return _Xe.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),r=n.getBlockBefore(i);if(r&&"atomic"===r.getType()){var a=n.getBlockMap().delete(r.getKey()),o=n.merge({blockMap:a,selectionAfter:t});if(o!==n)return _Xe.push(e,o,"remove-range")}var s=wXe.tryToRemoveBlockStyle(e);return s?_Xe.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),r=n.getBlockForKey(i).getLength();if(t.getStartOffset()<r)return null;var a=n.getBlockAfter(i);if(!a||"atomic"!==a.getType())return null;var o=t.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),s=vXe.removeRange(n,o,"forward");return s!==n?_Xe.push(e,s,"remove-range"):null},onTab:function(e,t,n){var i=t.getSelection(),r=i.getAnchorKey();if(r!==i.getFocusKey())return t;var a=t.getCurrentContent(),o=a.getBlockForKey(r),s=o.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var l=o.getDepth();if(!e.shiftKey&&l===n)return t;var u=bXe(a,i,e.shiftKey?-1:1,n);return _Xe.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),r=n.getEndKey(),a=e.getCurrentContent(),o=n;if(i!==r&&0===n.getEndOffset()){var s=yXe(a.getBlockBefore(r));r=s.getKey(),o=o.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:r,focusOffset:s.getLength(),isBackward:!1})}if(a.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==r})).some((function(e){return"atomic"===e.getType()})))return e;var l=a.getBlockForKey(i).getType()===t?"unstyled":t;return _Xe.push(e,vXe.setBlockType(a,o,l),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),i=t.getFocusKey();return t.isCollapsed()||n!==i?wXe.toggleBlockType(e,"code-block"):wXe.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return _Xe.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var r,a=e.getCurrentContent();return r=i.has(t)?vXe.removeInlineStyle(a,n,t):vXe.applyInlineStyle(a,n,t),_Xe.push(e,r,"change-inline-style")},toggleLink:function(e,t,n){var i=vXe.applyEntity(e.getCurrentContent(),t,n);return _Xe.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var i=t.getAnchorKey(),r=e.getCurrentContent(),a=r.getBlockForKey(i).getType(),o=r.getBlockBefore(i);if("code-block"===a&&o&&"code-block"===o.getType()&&0!==o.getLength())return null;if("unstyled"!==a)return vXe.setBlockType(r,t,"unstyled")}return null}},FXe=wXe,kXe=/\r\n?|\n/g;var xXe=Pze,EXe=zze,CXe=sJe,SXe=VGe,DXe=gXe,PXe=qUe,AXe=FXe,TXe=ZWe,LXe=dJe,IXe=fJe,MXe=function(e){return e.split(kXe)};function jXe(e,t,n){var i=SXe.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return PXe.push(e,i.set("entityMap",n),"insert-fragment")}var NXe=function(e,t){t.preventDefault();var n=new CXe(t.clipboardData);if(!n.isRichText()){var i=n.getFiles(),r=n.getText();if(i.length>0){if(e.props.handlePastedFiles&&IXe(e.props.handlePastedFiles(i)))return;return void LXe(i,(function(t){if(t=t||r){var n=e._latestEditorState,i=MXe(t),a=EXe.create({style:n.getCurrentInlineStyle(),entity:TXe(n.getCurrentContent(),n.getSelection())}),o=AXe.getCurrentBlockType(n),s=DXe.processText(i,a,o),l=xXe.createFromArray(s),u=SXe.replaceWithFragment(n.getCurrentContent(),n.getSelection(),l);e.update(PXe.push(n,u,"insert-fragment"))}}))}}var a=[],o=n.getText(),s=n.getHTML(),l=e._latestEditorState;if(!e.props.handlePastedText||!IXe(e.props.handlePastedText(o,s,l))){if(o&&(a=MXe(o)),!e.props.stripPastedStyles){var u=e.getClipboard();if(n.isRichText()&&u){if(-1!==s.indexOf(e.getEditorKey())||1===a.length&&1===u.size&&u.first().getText()===o)return void e.update(jXe(e._latestEditorState,u))}else if(u&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(a,u))return void e.update(jXe(e._latestEditorState,u));if(s){var c=DXe.processHTML(s,e.props.blockRenderMap);if(c){var d=c.contentBlocks,f=c.entityMap;if(d){var p=xXe.createFromArray(d);return void e.update(jXe(e._latestEditorState,p,f))}}}e.setClipboard(null)}if(a.length){var h=EXe.create({style:l.getCurrentInlineStyle(),entity:TXe(l.getCurrentContent(),l.getSelection())}),g=AXe.getCurrentBlockType(l),m=DXe.processText(a,h,g),v=xXe.createFromArray(m);e.update(jXe(e._latestEditorState,v))}}},RXe=nWe,OXe=OJe,zXe=qJe,BXe=HJe,GXe=KJe,qXe=nQe,UXe=iQe,HXe=rQe,WXe=sQe,YXe=OQe,VXe=i$e,KXe=NXe,JXe=VWe,QXe=RXe.isBrowser("Chrome"),ZXe=RXe.isBrowser("Firefox"),$Xe=QXe||ZXe?JXe:function(e){},XXe={onBeforeInput:OXe,onBlur:zXe,onCompositionStart:BXe,onCopy:GXe,onCut:qXe,onDragOver:UXe,onDragStart:HXe,onFocus:WXe,onInput:YXe,onKeyDown:VXe,onPaste:KXe,onSelect:JXe,onMouseUp:$Xe,onKeyUp:$Xe},e0e=b.default.unstable_flushControlled;var t0e=m.default,n0e=_He,i0e=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},r.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=n0e({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return t0e.createElement("div",{className:t},t0e.createElement("div",{className:n0e("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(t0e.Component),r0e=i0e,a0e=HQe,o0e=kWe,s0e=nWe,l0e=s0e.isPlatform("Mac OS X"),u0e=l0e&&s0e.isBrowser("Firefox < 29"),c0e=a0e.hasCommandModifier,d0e=a0e.isCtrlKeyCommand;function f0e(e){return l0e&&e.altKey||d0e(e)}var p0e=function(e){switch(e.keyCode){case 66:return c0e(e)?"bold":null;case 68:return d0e(e)?"delete":null;case 72:return d0e(e)?"backspace":null;case 73:return c0e(e)?"italic":null;case 74:return c0e(e)?"code":null;case 75:return l0e&&d0e(e)?"secondary-cut":null;case 77:case 79:return d0e(e)?"split-block":null;case 84:return l0e&&d0e(e)?"transpose-characters":null;case 85:return c0e(e)?"underline":null;case 87:return l0e&&d0e(e)?"backspace-word":null;case 89:return d0e(e)?l0e?"secondary-paste":"redo":null;case 90:return function(e){return c0e(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o0e.RETURN:return"split-block";case o0e.DELETE:return function(e){return!l0e&&e.shiftKey?null:f0e(e)?"delete-word":"delete"}(e);case o0e.BACKSPACE:return function(e){return c0e(e)&&l0e?"backspace-to-start-of-line":f0e(e)?"backspace-word":"backspace"}(e);case o0e.LEFT:return u0e&&c0e(e)?"move-selection-to-start-of-block":null;case o0e.RIGHT:return u0e&&c0e(e)?"move-selection-to-end-of-block":null;default:return null}},h0e=_W;function g0e(){return g0e=h0e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},g0e.apply(this,arguments)}function m0e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){_0e(e,t,n[t])}))}return e}function v0e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var y0e=wHe,w0e=FHe,F0e=dYe,k0e=WKe,x0e=CJe,E0e=XXe,C0e=e0e,S0e=r0e,D0e=qUe,P0e=m.default,A0e=hVe,T0e=kVe,L0e=_He,I0e=NBe,M0e=p0e,j0e=TVe,N0e=kqe,R0e=CBe,O0e=EWe,z0e=_Ue,B0e=nWe.isBrowser("IE"),G0e=!B0e,q0e={edit:E0e,composite:F0e,drag:x0e,cut:null,render:null},U0e=!1,H0e=function(e){function t(){return e.apply(this,arguments)||this}b0e(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(P0e.Component),W0e=function(e){function t(t){var n;return _0e(v0e(n=e.call(this,t)||this),"_blockSelectEvents",void 0),_0e(v0e(n),"_clipboard",void 0),_0e(v0e(n),"_handler",void 0),_0e(v0e(n),"_dragCount",void 0),_0e(v0e(n),"_internalDrag",void 0),_0e(v0e(n),"_editorKey",void 0),_0e(v0e(n),"_placeholderAccessibilityID",void 0),_0e(v0e(n),"_latestEditorState",void 0),_0e(v0e(n),"_latestCommittedEditorState",void 0),_0e(v0e(n),"_pendingStateFromBeforeInput",void 0),_0e(v0e(n),"_onBeforeInput",void 0),_0e(v0e(n),"_onBlur",void 0),_0e(v0e(n),"_onCharacterData",void 0),_0e(v0e(n),"_onCompositionEnd",void 0),_0e(v0e(n),"_onCompositionStart",void 0),_0e(v0e(n),"_onCopy",void 0),_0e(v0e(n),"_onCut",void 0),_0e(v0e(n),"_onDragEnd",void 0),_0e(v0e(n),"_onDragOver",void 0),_0e(v0e(n),"_onDragStart",void 0),_0e(v0e(n),"_onDrop",void 0),_0e(v0e(n),"_onInput",void 0),_0e(v0e(n),"_onFocus",void 0),_0e(v0e(n),"_onKeyDown",void 0),_0e(v0e(n),"_onKeyPress",void 0),_0e(v0e(n),"_onKeyUp",void 0),_0e(v0e(n),"_onMouseDown",void 0),_0e(v0e(n),"_onMouseUp",void 0),_0e(v0e(n),"_onPaste",void 0),_0e(v0e(n),"_onSelect",void 0),_0e(v0e(n),"editor",void 0),_0e(v0e(n),"editorContainer",void 0),_0e(v0e(n),"focus",void 0),_0e(v0e(n),"blur",void 0),_0e(v0e(n),"setMode",void 0),_0e(v0e(n),"exitCurrentMode",void 0),_0e(v0e(n),"restoreEditorDOM",void 0),_0e(v0e(n),"setClipboard",void 0),_0e(v0e(n),"getClipboard",void 0),_0e(v0e(n),"getEditorKey",void 0),_0e(v0e(n),"update",void 0),_0e(v0e(n),"onDragEnter",void 0),_0e(v0e(n),"onDragLeave",void 0),_0e(v0e(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),_0e(v0e(n),"focus",(function(e){var t=n.props.editorState,i=t.getSelection().getHasFocus(),r=n.editor;if(r){var a=T0e.getScrollParent(r),o=e||j0e(a),s=o.x,l=o.y;O0e(r)||("production"!==go.env.NODE_ENV?R0e(!1,"editorNode is not an HTMLElement"):R0e(!1)),r.focus(),a===window?window.scrollTo(s,l):A0e.setTop(a,l),i||n.update(D0e.forceSelection(t,t.getSelection()))}})),_0e(v0e(n),"blur",(function(){var e=n.editor;e&&(O0e(e)||("production"!==go.env.NODE_ENV?R0e(!1,"editorNode is not an HTMLElement"):R0e(!1)),e.blur())})),_0e(v0e(n),"setMode",(function(e){var t=n.props,i=t.onPaste,r=t.onCut,a=t.onCopy,o=m0e({},q0e.edit);i&&(o.onPaste=i),r&&(o.onCut=r),a&&(o.onCopy=a);var s=m0e({},q0e,{edit:o});n._handler=s[e]})),_0e(v0e(n),"exitCurrentMode",(function(){n.setMode("edit")})),_0e(v0e(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),_0e(v0e(n),"setClipboard",(function(e){n._clipboard=e})),_0e(v0e(n),"getClipboard",(function(){return n._clipboard})),_0e(v0e(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),_0e(v0e(n),"onDragEnter",(function(){n._dragCount++})),_0e(v0e(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||I0e(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==go.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}b0e(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var i=t._handler&&t._handler[e];i&&(C0e?C0e((function(){return i(t,n)})):i(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:z0e(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return P0e.createElement(S0e,e)}return null},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,r=e.customStyleFn,a=e.customStyleMap,o=e.editorState,s=e.preventScroll,l=e.readOnly,u=e.textAlignment,c=e.textDirectionality,d=L0e({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:i,customStyleMap:m0e({},w0e,a),customStyleFn:r,editorKey:this._editorKey,editorState:o,preventScroll:s,textDirectionality:c};return P0e.createElement("div",{className:d},this._renderPlaceholder(),P0e.createElement("div",{className:L0e("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},P0e.createElement("div",{"aria-activedescendant":l?null:this.props.ariaActiveDescendantID,"aria-autocomplete":l?null:this.props.ariaAutoComplete,"aria-controls":l?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":l?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":l?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:L0e({notranslate:!l,"public/DraftEditor/content":!0}),contentEditable:!l,"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:l?null:f,spellCheck:G0e&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},P0e.createElement(H0e,{editor:this,editorState:o}),P0e.createElement(k0e,g0e({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!U0e&&N0e("draft_ods_enabled")&&(U0e=!0),this.setMode("edit"),B0e&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):k.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(P0e.Component);_0e(W0e,"defaultProps",{blockRenderMap:y0e,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:M0e,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Y0e=W0e,V0e=E(Object.freeze({__proto__:null})),K0e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},J0e=K0e,Q0e=gQe.strlen;var Z0e=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,r){var a=e.getText(),o=e.getEntityAt(i);n.push({offset:Q0e(a.slice(0,i)),length:Q0e(a.slice(i,r)),key:Number(t[J0e.stringify(o)])})})),n},$0e=gQe,X0e=Bze,e1e=function(e,t){return e===t},t1e=function(e){return!!e},n1e=[];var i1e=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var i=[],r=t.map((function(e){return e.has(n)})).toList();return X0e(r,e1e,t1e,(function(t,r){var a=e.getText();i.push({offset:$0e.strlen(a.slice(0,t)),length:$0e.strlen(a.slice(t,r)),style:n})})),i}(e,t,n)}));return Array.prototype.concat.apply(n1e,n.toJS())};function r1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a1e=eBe,o1e=gBe,s1e=K0e,l1e=Z0e,u1e=i1e,c1e=CBe,d1e=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:u1e(e),entityRanges:l1e(e,t),data:e.getData().toObject()}},f1e=function(e,t,n,i){if(e instanceof a1e)n.push(d1e(e,t));else{e instanceof o1e||("production"!==go.env.NODE_ENV?c1e(!1,"block is not a BlockNode"):c1e(!1));var r=e.getParentKey(),a=i[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r1e(e,t,n[t])}))}return e}({},d1e(e,t),{children:[]});r?i[r].children.push(a):n.push(a)}},p1e=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,i=[],r={},a={},o=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var i=e.getEntityAt(t),r=s1e.stringify(i);a[r]||(a[r]=i,n[r]="".concat(o),o++)})),f1e(e,n,i,r)})),{blocks:i,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,i=t.entityMap,r={};return Object.keys(i).forEach((function(t,n){var i=e.getEntity(s1e.unstringify(t));r[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}})),{blocks:n,entityMap:r}}(e,t),t};function h1e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){g1e(e,t,n[t])}))}return e}function g1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m1e=NBe,v1e=CBe,_1e=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},b1e={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==go.env.NODE_ENV?v1e(!1,"Invalid raw state"):v1e(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var i=n.pop();t(i);var r=i.children;Array.isArray(r)||("production"!==go.env.NODE_ENV?v1e(!1,"Invalid tree raw block"):v1e(!1)),n=n.concat([].concat(r.reverse()))}}(t,(function(e){var t=h1e({},e);_1e(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?h1e({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,h1e({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var i=_1e(e),r=e.depth||0,a=h1e({},e,{children:[]});if(i){var o=n[0];if(null==o&&0===r)t.push(a);else if(null==o||o.depth<r-1){var s={key:m1e(),text:"",depth:r-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===r?t.push(s):null!=o&&o.children.push(s),s.children.push(a)}else if(o.depth===r-1)o.children.push(a);else{for(;null!=o&&o.depth>=r;)n.shift(),o=n[0];r>0?o.children.push(a):t.push(a)}}else t.push(a)})),h1e({},e,{blocks:t})}},y1e=b1e,w1e=bQe,F1e={isValidBlock:function(e,t){var n=e.getKey(),i=e.getParentKey();if(null!=i&&!t.get(i).getChildKeys().includes(n))return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing parent -> child pointer on %s",n),!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing child -> parent pointer on %s",n),!1;var r=e.getPrevSiblingKey();if(null!=r&&t.get(r).getNextSiblingKey()!==n)return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==r&&r===a?("production"!==go.env.NODE_ENV&&w1e(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==go.env.NODE_ENV&&w1e(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,i=t.shift().getKey(),r=[];null!=i;){var a=e.get(i),o=a.getChildKeys(),s=a.getNextSiblingKey();if(o.size>0){null!=s&&r.unshift(s);var l=o.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return"production"!==go.env.NODE_ENV&&w1e(!0,"%s has no first child",i),!1;i=l.getKey()}else i=null!=a.getNextSiblingKey()?a.getNextSiblingKey():r.shift();n++}return n===e.size||("production"!==go.env.NODE_ENV&&w1e(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},k1e=F1e,x1e=zze,E1e=Cze.exports.List;var C1e=function(e,t){var n=e.map((function(e,n){var i=t[n];return x1e.create({style:e,entity:i})}));return E1e(n)},S1e=gQe.substr;var D1e=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var i=S1e(e,0,t.offset).length,r=i+S1e(e,t.offset,t.length).length,a=i;a<r;a++)n[a]=t.key})),n},P1e=gQe,A1e=Cze.exports.OrderedSet,T1e=P1e.substr,L1e=A1e();var I1e=function(e,t){var n=Array(e.length).fill(L1e);return t&&t.forEach((function(t){for(var i=T1e(e,0,t.offset).length,r=i+T1e(e,t.offset,t.length).length;i<r;)n[i]=n[i].add(t.style),i++})),n};function M1e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){j1e(e,t,n[t])}))}return e}function j1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N1e=eBe,R1e=gBe,O1e=Vqe,z1e=yqe,B1e=y1e,G1e=k1e,q1e=Fqe,U1e=C1e,H1e=D1e,W1e=I1e,Y1e=NBe,V1e=Cze.exports,K1e=CBe,J1e=kqe("draft_tree_data_support"),Q1e=V1e.List,Z1e=V1e.Map,$1e=V1e.OrderedMap,X1e=function(e,t){var n=e.key,i=e.type,r=e.data;return{text:e.text,depth:e.depth||0,type:i||"unstyled",key:n||Y1e(),data:Z1e(r),characterList:e2e(e,t)}},e2e=function(e,t){var n=e.text,i=e.entityRanges,r=e.inlineStyleRanges,a=i||[];return U1e(W1e(n,r||[]),H1e(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return M1e({},e,{key:t[e.key]})}))))},t2e=function(e){return M1e({},e,{key:e.key||Y1e()})},n2e=function(e,t,n){var i=t.map((function(e){return M1e({},e,{parentRef:n})}));return e.concat(i.reverse())},i2e=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),i=J1e&&!n?B1e.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!J1e)return function(e,t){return $1e(e.map((function(e){var n=new N1e(X1e(e,t));return[n.getKey(),n]})))}(n?B1e.fromRawTreeStateToRawState(e).blocks:i,t);var r=function(e,t){return e.map(t2e).reduce((function(n,i,r){Array.isArray(i.children)||("production"!==go.env.NODE_ENV?K1e(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):K1e(!1));var a=i.children.map(t2e),o=new R1e(M1e({},X1e(i,t),{prevSibling:0===r?null:e[r-1].key,nextSibling:r===e.length-1?null:e[r+1].key,children:Q1e(a.map((function(e){return e.key})))}));n=n.set(o.getKey(),o);for(var s=n2e([],a,o);s.length>0;){var l=s.pop(),u=l.parentRef,c=u.getChildKeys(),d=c.indexOf(l.key),f=Array.isArray(l.children);if(!f){f||("production"!==go.env.NODE_ENV?K1e(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):K1e(!1));break}var p=l.children.map(t2e),h=new R1e(M1e({},X1e(l,t),{parent:u.getKey(),children:Q1e(p.map((function(e){return e.key}))),prevSibling:0===d?null:c.get(d-1),nextSibling:d===c.size-1?null:c.get(d+1)}));n=n.set(h.getKey(),h),s=n2e(s,p,h)}return n}),$1e())}(i,t);return"production"!==go.env.NODE_ENV&&(G1e.isValidTree(r)||("production"!==go.env.NODE_ENV?K1e(!1,"Should be a valid tree"):K1e(!1))),r},r2e=function(e){Array.isArray(e.blocks)||("production"!==go.env.NODE_ENV?K1e(!1,"invalid RawDraftContentState"):K1e(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var i=t[e],r=i.type,a=i.mutability,o=i.data;n[e]=z1e.__create(r,a,o||{})})),n}(e),n=i2e(e,t),i=n.isEmpty()?new q1e:q1e.createEmpty(n.first().getKey());return new O1e({blockMap:n,entityMap:t,selectionBefore:i,selectionAfter:i})},a2e=$Qe;var o2e=function(e){var t=a2e(e),n=0,i=0,r=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var o=t[1];n=o.top,i=o.right,r=o.bottom,a=o.left}else{var s=t[0];n=s.top,i=s.right,r=s.bottom,a=s.left}for(var l=1;l<t.length;l++){var u=t[l];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),i=Math.max(i,u.right),r=Math.max(r,u.bottom),a=Math.min(a,u.left))}}return{top:n,right:i,bottom:r,left:a,width:i-a,height:r-n}};var s2e={Editor:Y0e,EditorBlock:AKe,EditorState:qUe,CompositeDecorator:mHe,Entity:yqe,EntityInstance:cqe,BlockMapBuilder:Pze,CharacterMetadata:zze,ContentBlock:eBe,ContentState:Vqe,RawDraftContentState:V0e,SelectionState:Fqe,AtomicBlockUtils:pHe,KeyBindingUtil:HQe,Modifier:VGe,RichUtils:FXe,DefaultDraftBlockRenderMap:wHe,DefaultDraftInlineStyle:FHe,convertFromHTML:tXe,convertFromRaw:r2e,convertToRaw:p1e,genKey:NBe,getDefaultKeyBinding:p0e,getVisibleSelectionRect:function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),i=o2e(n),r=i.top,a=i.right,o=i.bottom,s=i.left;return 0===r&&0===a&&0===o&&0===s?null:i}},l2e=function(e,t){return e.offset===t.offset?t.length-e.length:e.offset-t.offset};function u2e(e){return u2e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u2e(e)}m.default.createElement("p",null),m.default.createElement("p",null),m.default.createElement("h1",null),m.default.createElement("h2",null),m.default.createElement("h3",null),m.default.createElement("h4",null),m.default.createElement("h5",null),m.default.createElement("h6",null),m.default.createElement("blockquote",null),m.default.createElement("li",null),m.default.createElement("ul",null),m.default.createElement("li",null),m.default.createElement("figure",null),m.default.createElement("figure",null);var c2e={exports:{}};!function(e,t){e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:V(e)}function i(e){return s(e)?e:K(e)}function r(e){return l(e)?e:J(e)}function a(e){return o(e)&&!u(e)?e:Q(e)}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(i,n),t(r,n),t(a,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=i,n.Indexed=r,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,_=v-1,b={},y={value:!1},w={value:!1};function F(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function x(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r<n;r++)i[r]=e[r+t];return i}function C(e){return void 0===e.size&&(e.size=e.__iterate(D)),e.size}function S(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function D(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return L(e,t,0)}function T(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I=0,M=1,j=2,N="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",O=N||R;function z(e){this.next=e}function B(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function G(){return{value:void 0,done:!0}}function q(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[R]);if("function"==typeof t)return t}function Y(e){return e&&"number"==typeof e.length}function V(e){return null==e?oe():o(e)?e.toSeq():ue(e)}function K(e){return null==e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function J(e){return null==e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Q(e){return(null==e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=I,z.VALUES=M,z.ENTRIES=j,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[O]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return de(this,e,t,!0)},V.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(K,V),K.prototype.toKeyedSeq=function(){return this},t(J,V),J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(e,t){return de(this,e,t,!1)},J.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Q,V),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=K,V.Set=Q,V.Indexed=J;var Z,$,X,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return Z||(Z=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():q(e)?new ie(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return Y(e)?new te(e):U(e)?new re(e):q(e)?new ie(e):void 0}function de(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function fe(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new z((function(){var e=r[n?a-o:o];return o++>a?G():B(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,i){return Array.isArray(t)?e.call(i,n,J(t).map((function(n,i){return he(e,n,i,t)}))):me(t)?e.call(i,n,K(t).map((function(n,i){return he(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?J(e).map(ge).toList():me(e)?K(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function _e(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&ve(r[1],e)&&(n||ve(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,i){if(n?!e.has(t):r?!ve(t,e.get(i,b)):!ve(e.get(i,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ye(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(X)return X;X=this}}function Fe(){throw TypeError("Abstract")}function ke(){}function xe(){}function Ee(){}V.prototype[ee]=!0,t(te,J),te.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,i=n.length-1,r=0;r<=i;r++)if(!1===e(n[t?i-r:r],r,this))return r+1;return r},te.prototype.__iterator=function(e,t){var n=this._array,i=n.length-1,r=0;return new z((function(){return r>i?G():B(e,r,n[t?i-r++:r++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new z((function(){var o=i[t?r-a:a];return a++>r?G():B(e,o,n[o])}))},ne.prototype[h]=!0,t(ie,J),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),i=0;if(U(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!U(n))return new z(G);var i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value)}))},t(re,J),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a<r.length;)if(!1===e(r[a],a++,this))return a;for(;!(n=i.next()).done;){var o=n.value;if(r[a]=o,!1===e(o,a++,this))break}return a},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,i=this._iteratorCache,r=0;return new z((function(){if(r>=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return B(e,r,i[r++])}))},t(be,J),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new be(this._value,T(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,i=0;return new z((function(){return i<n.size?B(e,i++,n._value):G()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):_e(e)},t(we,J),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=A(e,this.size),(t=T(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;a<=n;a++){if(!1===e(r,a,this))return a+1;r+=t?-i:i}return a},we.prototype.__iterator=function(e,t){var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;return new z((function(){var o=r;return r+=t?-i:i,a>n?G():B(e,a++,o)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:_e(this,e)},t(Fe,n),t(ke,Fe),t(xe,Fe),t(Ee,Fe),Fe.Keyed=ke,Fe.Indexed=xe,Fe.Set=Ee;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function Se(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Se(n)}if("string"===t)return e.length>ze?Pe(e):Ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Te(e);if("function"==typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=qe[e];return void 0===t&&(t=Ae(e),Ge===Be&&(Ge=0,qe={}),Ge++,qe[e]=t),t}function Ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Se(t)}function Te(e){var t;if(Ne&&void 0!==(t=je.get(e)))return t;if(void 0!==(t=e[Oe]))return t;if(!Ie){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Oe]))return t;if(void 0!==(t=Me(e)))return t}if(t=++Re,1073741824&Re&&(Re=0),Ne)je.set(e,t);else{if(void 0!==Le&&!1===Le(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ie)Object.defineProperty(e,Oe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Oe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Oe]=t}}return t}var Le=Object.isExtensible,Ie=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Me(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var je,Ne="function"==typeof WeakMap;Ne&&(je=new WeakMap);var Re=0,Oe="__immutablehash__";"function"==typeof Symbol&&(Oe=Symbol(Oe));var ze=16,Be=255,Ge=0,qe={};function Ue(e){ye(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?rt():We(e)&&!c(e)?e:rt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(He,ke),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return at(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return at(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=mt(this,Fn(e),t,n);return i===b?void 0:i},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return qt(dn(this,e))},He.prototype.sortBy=function(e,t){return qt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=We;var Ye,Ve="@@__IMMUTABLE_MAP__@@",Ke=He.prototype;function Je(e,t){this.ownerID=e,this.entries=t}function Qe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ke);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ye||(Ye=it(0))}function at(e,t,n){var i,r;if(e._root){var a=F(y),o=F(w);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;r=1,i=new Je(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===b?e:(k(s),k(o),new Xe(t,i,[r,a]))}function st(e){return e.constructor===Xe||e.constructor===$e}function lt(e,t,n,i,r){if(e.keyHash===i)return new $e(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&_,s=(0===n?i:i>>>n)&_;return new Qe(t,1<<o|1<<s,o===s?[lt(e,t,n+m,i,r)]:(a=new Xe(t,i,r),o<s?[e,a]:[a,e]))}function ut(e,t,n,i){e||(e=new x);for(var r=new Xe(e,De(n),[n,i]),a=0;a<t.length;a++){var o=t[a];r=r.update(e,0,void 0,o[0],o[1])}return r}function ct(e,t,n,i){for(var r=0,a=0,o=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==i&&(r|=l,o[a++]=c)}return new Qe(e,r,o)}function dt(e,t,n,i,r){for(var a=0,o=new Array(v),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Ze(e,a+1,o)}function ft(e,t,n){for(var r=[],a=0;a<n.length;a++){var s=n[a],l=i(s);o(s)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return gt(e,t,r)}function pt(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,i){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var r=e(t,n,i);return ve(t,r)?t:r}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var i=t?function(n,i){e.update(i,b,(function(e){return e===b?n:t(e,n,i)}))}:function(t,n){e.set(n,t)},r=0;r<n.length;r++)n[r].forEach(i)})):e.constructor(n[0])}function mt(e,t,n,i){var r=e===b,a=t.next();if(a.done){var o=r?n:e,s=i(o);return s===o?e:s}ye(r||e&&e.set,"invalid keyPath");var l=a.value,u=r?b:e.get(l,b),c=mt(u,t,n,i);return c===u?e:c===b?e.remove(l):(r?rt():e).set(l,c)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function _t(e,t,n,i){var r=i?e:E(e);return r[t]=n,r}function bt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s<r;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function yt(e,t,n){var i=e.length-1;if(n&&t===i)return e.pop(),e;for(var r=new Array(i),a=0,o=0;o<i;o++)o===t&&(a=1),r[o]=e[o+a];return r}Ke[Ve]=!0,Ke[g]=Ke.remove,Ke.removeIn=Ke.deleteIn,Je.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},Je.prototype.update=function(e,t,n,i,r,a,o){for(var s=r===b,l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),!s||1!==l.length){if(!d&&!s&&l.length>=wt)return ut(e,l,i,r);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new Je(e,p)}},Qe.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=1<<((0===e?t:t>>>e)&_),a=this.bitmap;return 0==(a&r)?i:this.nodes[vt(a&r-1)].get(e+m,t,n,i)},Qe.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&r===b)return this;var d=vt(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=ot(p,e,t+m,n,i,r,a,o);if(h===p)return this;if(!c&&h&&f.length>=Ft)return dt(e,f,u,s,h);if(c&&!h&&2===f.length&&st(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&st(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?_t(f,d,h,g):yt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=y,this):new Qe(e,v,y)},Ze.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=(0===e?t:t>>>e)&_,a=this.nodes[r];return a?a.get(e+m,t,n,i):i},Ze.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=r===b,u=this.nodes,c=u[s];if(l&&!c)return this;var d=ot(c,e,t+m,n,i,r,a,o);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<kt)return ct(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=_t(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ze(e,f,h)},$e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=r===b;if(n!==this.keyHash)return s?this:(k(o),k(a),lt(this,e,t,n,[i,r]));for(var l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),s&&2===c)return new Xe(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new $e(e,this.keyHash,p)},Xe.prototype.get=function(e,t,n,i){return ve(n,this.entry[0])?this.entry[1]:i},Xe.prototype.update=function(e,t,n,i,r,a,o){var s=r===b,l=ve(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(k(o),s?void k(a):l?e&&e===this.ownerID?(this.entry[1]=r,this):new Xe(e,this.keyHash,[i,r]):(k(a),lt(this,e,t,De(i),[i,r])))},Je.prototype.iterate=$e.prototype.iterate=function(e,t){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===e(n[t?r-i:i]))return!1},Qe.prototype.iterate=Ze.prototype.iterate=function(e,t){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var a=n[t?r-i:i];if(a&&!1===a.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,i=t.node,r=t.index++;if(i.entry){if(0===r)return tt(e,i.entry)}else if(i.entries){if(r<=(n=i.entries.length-1))return tt(e,i.entries[this._reverse?n-r:r])}else if(r<=(n=i.nodes.length-1)){var a=i.nodes[this._reverse?n-r:r];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return G()};var wt=v/4,Ft=v/2,kt=v/4;function xt(e){var t=Mt();if(null==e)return t;if(Et(e))return e;var n=r(e),i=n.size;return 0===i?t:(Ue(i),i>0&&i<v?It(0,i,m,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(i),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ct])}t(xt,xe),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=Ot(this,e+=this._origin);return n&&n.array[e&_]}return t},xt.prototype.set=function(e,t){return jt(this,e,t)},xt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var i=0;i<e.length;i++)n.set(t+i,e[i])}))},xt.prototype.pop=function(){return zt(this,0,-1)},xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},xt.prototype.shift=function(){return zt(this,1)},xt.prototype.merge=function(){return Bt(this,void 0,arguments)},xt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},xt.prototype.mergeDeep=function(){return Bt(this,pt,arguments)},xt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ht(t),n)},xt.prototype.setSize=function(e){return zt(this,0,e)},xt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:zt(this,A(e,n),T(t,n))},xt.prototype.__iterator=function(e,t){var n=0,i=Lt(this,t);return new z((function(){var t=i();return t===Tt?G():B(e,n++,t)}))},xt.prototype.__iterate=function(e,t){for(var n,i=0,r=Lt(this,t);(n=r())!==Tt&&!1!==e(n,i++,this););return i},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?It(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},xt.isList=Et;var Ct="@@__IMMUTABLE_LIST__@@",St=xt.prototype;function Dt(e,t){this.array=e,this.ownerID=t}St[Ct]=!0,St[g]=St.remove,St.setIn=Ke.setIn,St.deleteIn=St.removeIn=Ke.removeIn,St.update=Ke.update,St.updateIn=Ke.updateIn,St.mergeIn=Ke.mergeIn,St.mergeDeepIn=Ke.mergeDeepIn,St.withMutations=Ke.withMutations,St.asMutable=Ke.asMutable,St.asImmutable=Ke.asImmutable,St.wasAltered=Ke.wasAltered,Dt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var i=n>>>t&_;if(i>=this.array.length)return new Dt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!r)return this;var s=Rt(this,e);if(!a)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},Dt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var i,r=n-1>>>t&_;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-m,n))===a&&r===this.array.length-1)return this}var o=Rt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Pt,At,Tt={};function Lt(e,t){var n=e._origin,i=e._capacity,r=Gt(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;return u>v&&(u=v),function(){if(l===u)return Tt;var e=t?--u:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);return c>v&&(c=v),function(){for(;;){if(s){var e=s();if(e!==Tt)return e;s=null}if(u===c)return Tt;var n=t?--c:u++;s=o(l&&l[n],r-m,a+(n<<r))}}}}function It(e,t,n,i,r,a,o){var s=Object.create(St);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=i,s._tail=r,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function Mt(){return Pt||(Pt=It(0,0,m))}function jt(e,t,n){if((t=S(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=F(w);return t>=Gt(e._capacity)?i=Nt(i,e.__ownerID,0,t,n,a):r=Nt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):It(e._origin,e._capacity,e._level,r,i):e}function Nt(e,t,n,i,r,a){var o,s=i>>>n&_,l=e&&s<e.array.length;if(!l&&void 0===r)return e;if(n>0){var u=e&&e.array[s],c=Nt(u,t,n-m,i,r,a);return c===u?e:((o=Rt(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(k(a),o=Rt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function Rt(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Ot(e,t){if(t>=Gt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,i=e._level;n&&i>0;)n=n.array[t>>>i&_],i-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new x,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new Dt(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=m);c&&(o+=c,r+=c,s+=c,a+=c);for(var d=Gt(a),f=Gt(s);f>=1<<l+m;)u=new Dt(u&&u.array.length?[u]:[],i),l+=m;var p=e._tail,h=f<d?Ot(e,s-1):f>d?new Dt([],i):p;if(p&&f>d&&o<a&&p.array.length){for(var g=u=Rt(u,i),v=l;v>m;v-=m){var b=d>>>v&_;g=g.array[b]=Rt(g.array[b],i)}g.array[d>>>m&_]=p}if(s<a&&(h=h&&h.removeAfter(i,0,s)),o>=f)o-=f,s-=f,l=m,u=null,h=h&&h.removeBefore(i,0,o);else if(o>r||f<d){for(c=0;u;){var y=o>>>l&_;if(y!==f>>>l&_)break;y&&(c+=(1<<l)*y),l-=m,u=u.array[y]}u&&o>r&&(u=u.removeBefore(i,l,o-c)),u&&f<d&&(u=u.removeAfter(i,l,f-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):It(o,s,l,u,h)}function Bt(e,t,n){for(var i=[],a=0,s=0;s<n.length;s++){var l=n[s],u=r(l);u.size>a&&(a=u.size),o(l)||(u=u.map((function(e){return pe(e)}))),i.push(u)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function Gt(e){return e<v?0:e-1>>>m<<m}function qt(e){return null==e?Wt():Ut(e)?e:Wt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return We(e)&&c(e)}function Ht(e,t,n,i){var r=Object.create(qt.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Wt(){return At||(At=Ht(rt(),Mt()))}function Yt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===b){if(!l)return e;o.size>=v&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Ht(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Jt(e){this._iter=e,this.size=e.size}function Qt(e){this._iter=e,this.size=e.size}function Zt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=yn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===j){var i=e.__iterator(t,n);return new z((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===M?I:M,n)},t}function $t(e,t,n){var i=bn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,b);return a===b?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(j,r);return new z((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return B(i,s,t.call(n,o[1],s,e),r)}))},i}function Xt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=yn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=bn(e);return i&&(r.has=function(i){var r=e.get(i,b);return r!==b&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,b);return a!==b&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(j,a),s=0;return new z((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return B(r,i?u:s++,c,a)}}))},r}function tn(e,t,n){var i=He().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(c(e)?qt():He()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=_n(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),P(t,n,r))return e;var a=A(t,r),o=T(n,r);if(a!=a||o!=o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l==l&&(s=l<0?0:l);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(u.get=function(t,n){return(t=S(this,t))>=0&&t<s?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=o++<a))return u++,!1!==t(e,i?n:u-1,r)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var r=0!==s&&e.__iterator(t,n),o=0,l=0;return new z((function(){for(;o++<a;)r.next();if(++l>s)return G();var e=r.next();return i||t===M?e:B(t,l-1,t===I?void 0:e.value[1],e)}))},u}function an(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(j,r),s=!0;return new z((function(){if(!s)return G();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?i===j?e:B(i,l,u,e):(s=!1,G())}))},i}function on(e,t,n,i){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(j,a),l=!0,u=0;return new z((function(){var e,a,c;do{if((e=s.next()).done)return i||r===M?e:B(r,u++,r===I?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,o))}while(l);return r===j?e:B(r,a,c,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var u=new te(r);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function ln(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,u){var c=this;e.__iterate((function(e,r){return(!t||u<t)&&o(e)?l(e,u+1):!1===i(e,n?r:a++,c)&&(s=!0),!s}),r)}return l(e,0),a},i.__iteratorUncached=function(i,r){var a=e.__iterator(i,r),s=[],l=0;return new z((function(){for(;a;){var e=a.next();if(!1===e.done){var u=e.value;if(i===j&&(u=u[1]),t&&!(s.length<t)||!o(u))return n?e:B(i,l++,u,e);s.push(a),a=u.__iterator(i,r)}else a=s.pop()}return G()}))},i}function un(e,t,n){var i=_n(e);return e.toSeq().map((function(r,a){return i(t.call(n,r,a,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,i){var r=this,a=0;return e.__iterate((function(e,i){return(!a||!1!==n(t,a++,r))&&!1!==n(e,a++,r)}),i),a},n.__iteratorUncached=function(n,i){var r,a=e.__iterator(M,i),o=0;return new z((function(){return(!r||o%2)&&(r=a.next()).done?r:o%2?B(n,o++,t):B(n,o++,r.value,r)}))},n}function dn(e,t,n){t||(t=wn);var i=s(e),r=0,a=e.toSeq().map((function(t,i){return[i,t,r++,n?n(t,i,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),i?K(a):l(e)?J(a):Q(a)}function fn(e,t,n){if(t||(t=wn),n){var i=e.toSeq().map((function(t,i){return[t,n(t,i,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return i&&i[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var i=e(n,t);return 0===i&&n!==t&&(null==n||n!=n)||i>0}function hn(e,t,i){var r=bn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(M,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),H(r?e.reverse():e)})),o=0,s=!1;return new z((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?G():B(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),C(e)}function _n(e){return s(e)?i:l(e)?r:a}function bn(e){return Object.create((s(e)?K:l(e)?J:Q).prototype)}function yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function wn(e,t){return e>t?1:e<t?-1:0}function Fn(e){var t=H(e);if(!t){if(!Y(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function kn(e,t){var n,i=function(a){if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var o=Object.keys(e);Sn(r,o),r.size=o.length,r._name=t,r._keys=o,r._defaultValues=e}this._map=He(a)},r=i.prototype=Object.create(xn);return r.constructor=i,i}t(qt,He),qt.of=function(){return this(arguments)},qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},qt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},qt.prototype.set=function(e,t){return Yt(this,e,t)},qt.prototype.remove=function(e){return Yt(this,e,b)},qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},qt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},qt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},qt.isOrderedMap=Ut,qt.prototype[h]=!0,qt.prototype[g]=qt.prototype.remove,t(Vt,K),Vt.prototype.get=function(e,t){return this._iter.get(e,t)},Vt.prototype.has=function(e){return this._iter.has(e)},Vt.prototype.valueSeq=function(){return this._iter.valueSeq()},Vt.prototype.reverse=function(){var e=this,t=Xt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Vt.prototype.map=function(e,t){var n=this,i=$t(this,e,t);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(e,t)}),i},Vt.prototype.__iterate=function(e,t){var n,i=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,i)}:(n=t?vn(this):0,function(r){return e(r,t?--n:n++,i)}),t)},Vt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(M,t),i=t?vn(this):0;return new z((function(){var r=n.next();return r.done?r:B(e,t?--i:i++,r.value,r)}))},Vt.prototype[h]=!0,t(Kt,J),Kt.prototype.includes=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this,i=0;return this._iter.__iterate((function(t){return e(t,i++,n)}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t),i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value,t)}))},t(Jt,Q),Jt.prototype.has=function(e){return this._iter.includes(e)},Jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Qt,K),Qt.prototype.entrySeq=function(){return this._iter.toSeq()},Qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var i=o(t);return e(i?t.get(1):t[1],i?t.get(0):t[0],n)}}),t)},Qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var i=t.value;if(i){mn(i);var r=o(i);return B(e,r?i.get(0):i[0],r?i.get(1):i[1],t)}}}))},Kt.prototype.cacheResult=Vt.prototype.cacheResult=Jt.prototype.cacheResult=Qt.prototype.cacheResult=yn,t(kn,ke),kn.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},kn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,rt()))},kn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},kn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},kn.prototype.__iterate=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var xn=kn.prototype;function En(e,t,n){var i=Object.create(Object.getPrototypeOf(e));return i._map=t,i.__ownerID=n,i}function Cn(e){return e._name||e.constructor.name||"Record"}function Sn(e,t){try{t.forEach(Dn.bind(void 0,e))}catch(e){}}function Dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ye(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pn(e){return null==e?Nn():An(e)&&!c(e)?e:Nn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function An(e){return!(!e||!e[Ln])}xn[g]=xn.remove,xn.deleteIn=xn.removeIn=Ke.removeIn,xn.merge=Ke.merge,xn.mergeWith=Ke.mergeWith,xn.mergeIn=Ke.mergeIn,xn.mergeDeep=Ke.mergeDeep,xn.mergeDeepWith=Ke.mergeDeepWith,xn.mergeDeepIn=Ke.mergeDeepIn,xn.setIn=Ke.setIn,xn.update=Ke.update,xn.updateIn=Ke.updateIn,xn.withMutations=Ke.withMutations,xn.asMutable=Ke.asMutable,xn.asImmutable=Ke.asImmutable,t(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(i(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Mn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Mn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Mn(this,this._map.clear())},Pn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Rn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Rn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,i){return e(i,i,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pn.isSet=An;var Tn,Ln="@@__IMMUTABLE_SET__@@",In=Pn.prototype;function Mn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(In);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Tn||(Tn=jn(rt()))}function Rn(e){return null==e?qn():On(e)?e:qn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function On(e){return An(e)&&c(e)}In[Ln]=!0,In[g]=In.remove,In.mergeDeep=In.merge,In.mergeDeepWith=In.mergeWith,In.withMutations=Ke.withMutations,In.asMutable=Ke.asMutable,In.asImmutable=Ke.asImmutable,In.__empty=Nn,In.__make=jn,t(Rn,Pn),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(e){return this(i(e).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=On;var zn,Bn=Rn.prototype;function Gn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function qn(){return zn||(zn=Gn(Wt()))}function Un(e){return null==e?Jn():Hn(e)?e:Jn().unshiftAll(e)}function Hn(e){return!(!e||!e[Yn])}Bn[h]=!0,Bn.__empty=qn,Bn.__make=Gn,t(Un,xe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=S(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Jn()},Un.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=A(e,this.size);if(T(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Kn(i,r)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new z((function(){if(i){var t=i.value;return i=i.next,B(e,n++,t)}return G()}))},Un.isStack=Hn;var Wn,Yn="@@__IMMUTABLE_STACK__@@",Vn=Un.prototype;function Kn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Jn(){return Wn||(Wn=Kn(0))}function Qn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Yn]=!0,Vn.withMutations=Ke.withMutations,Vn.asMutable=Ke.asMutable,Vn.asImmutable=Ke.asImmutable,Vn.wasAltered=Ke.wasAltered,n.Iterator=z,Qn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Kt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return qt(this.toKeyedSeq())},toOrderedSet:function(){return Rn(s(this)?this.valueSeq():this)},toSet:function(){return Pn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Jt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return xt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(j)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!=i?i.toString():""})),t},keys:function(){return this.__iterator(I)},map:function(e,t){return gn(this,$t(this,e,t))},reduce:function(e,t,n){var i,r;return Ue(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Xt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return _e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Qt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=Fn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,b):b)===b)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?ni(e):ai)},minBy:function(e,t){return fn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Zn=n.prototype;Zn[d]=!0,Zn[O]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=ii,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,function(){try{Object.defineProperty(Zn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Qn(i,{flip:function(){return gn(this,Zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var $n=i.prototype;function Xn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"==typeof e?JSON.stringify(e):e}function ri(){return E(arguments)}function ai(e,t){return e<t?1:e>t?-1:0}function oi(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(De(e),De(t))|0}:function(e,t){i=i+li(De(e),De(t))|0}:t?function(e){i=31*i+De(e)|0}:function(e){i=i+De(e)|0}),i)}function si(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Se((t=Ce(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return $n[f]=!0,$n[O]=Zn.entries,$n.__toJS=Zn.toObject,$n.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},Qn(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Xt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,cn(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),J.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,on(this,e,t,!1))},zip:function(){return gn(this,hn(this,ri,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),r.prototype[p]=!0,r.prototype[h]=!0,Qn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Zn.includes,Qn(K,i.prototype),Qn(J,r.prototype),Qn(Q,a.prototype),Qn(ke,i.prototype),Qn(xe,r.prototype),Qn(Ee,a.prototype),{Iterable:n,Seq:V,Collection:Fe,Map:He,OrderedMap:qt,List:xt,Stack:Un,Set:Pn,OrderedSet:Rn,Record:kn,Range:we,Repeat:be,is:ve,fromJS:pe}}()}(c2e);var d2e=function(e){var t=document.implementation.createHTMLDocument("");return t.documentElement.innerHTML=e,t};function f2e(e){var t;"undefined"!=typeof DOMParser?null!==(t=(new DOMParser).parseFromString(e,"text/html"))&&null!==t.body||(t=d2e(e)):t=d2e(e);return t.body}var p2e=" ",h2e=new RegExp("\r","g"),g2e=new RegExp("\n","g"),m2e=new RegExp(" ","g"),v2e=new RegExp("\r","g"),_2e=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],b2e={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},y2e=function(e,t){return e&&!0===e.__isMiddleware?e(t):e},w2e=function(e,t,n){},F2e=function(e,t,n){return n},k2e=function(e,t){},x2e=function(e){return[]},E2e=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")};function C2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c2e.exports.Map();return!0===n?{text:"\r",inlines:[c2e.exports.OrderedSet()],entities:new Array(1),blocks:[{type:e,data:i,depth:Math.max(0,Math.min(4,t))}],isNewline:!0}:{text:"\n",inlines:[c2e.exports.OrderedSet()],entities:new Array(1),blocks:[]}}function S2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c2e.exports.Map();return{text:"\r",inlines:[c2e.exports.OrderedSet()],entities:new Array(1),blocks:[{type:e,data:n,depth:Math.max(0,Math.min(4,t))}]}}function D2e(e,t){switch(e){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return"ol"===t?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function P2e(e,t,n){return D2e(e,n)}function A2e(e,t,n){var i=b2e[e];if(i)n=n.add(i).toOrderedSet();else if(t instanceof HTMLElement){var r=t;n=n.withMutations((function(e){"bold"===r.style.fontWeight&&e.add("BOLD"),"italic"===r.style.fontStyle&&e.add("ITALIC"),"underline"===r.style.textDecoration&&e.add("UNDERLINE"),"line-through"===r.style.textDecoration&&e.add("STRIKETHROUGH")})).toOrderedSet()}return n}function T2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c2e.exports.OrderedSet();return A2e(e,t,n)}function L2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.text.slice(0,1),r=e.text.slice(-1),a="\r"===r&&"\r"===i,o="\r"!==e.text&&"\r"!==t.text,s="\r"===e.text&&!e.isNewline&&t.isNewline;if(a&&(o||s)&&(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===e.text.slice(-1)&&!0===n){if(t.text===p2e||"\n"===t.text)return e;i!==p2e&&"\n"!==i||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}var l=0===e.text.length&&t.isNewline;return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks),isNewline:l}}function I2e(e,t,n,i,r,a,o,s,l,u,c,d,f,p,h,g){var m=e.nodeName.toLowerCase(),v=!1,_="unstyled";if("#text"===m){var b=e.textContent;if(""===b.trim()&&null===i)return{text:"",inlines:[],entities:[],blocks:[]};if(""===b.trim()&&"code-block"!==i)return function(e){var t=new Array(1);return e&&(t[0]=e),{text:p2e,inlines:[c2e.exports.OrderedSet()],entities:t,blocks:[]}}(g);"code-block"!==i&&(b=b.replace(g2e,p2e));var y=Array(b.length).fill(g),w=0;return l(b,c,d,f,p).sort(l2e).forEach((function(e){var t=e.entity,n=e.offset,i=e.length,r=e.result,a=n+w;null==r&&(r=b.substr(a,i));var o=b.split("");o.splice.bind(o,a,i).apply(o,r.split("")),b=o.join(""),y.splice.bind(y,a,i).apply(y,Array(r.length).fill(t)),w+=r.length-i})),{text:b,inlines:Array(b.length).fill(t),entities:y,blocks:[]}}if("br"===m){var F=i;return null===F?C2e("unstyled",a,!0):C2e(F||"unstyled",a,h.flat)}var k={text:"",inlines:[],entities:[],blocks:[]};t=o(m,e,t=A2e(m,e,t)),"ul"!==m&&"ol"!==m||(n&&(a+=1),n=m,i=null);var x,E,C=u(m,e,n,i);if(!1===C)return{text:"",inlines:[],entities:[],blocks:[]};if("string"==typeof(C=C||{})?(x=C,E=c2e.exports.Map()):(x="string"==typeof C?C:C.type,E=C.data?c2e.exports.Map(C.data):c2e.exports.Map()),i||-1===r.indexOf(m)&&!x)if(!n||"ordered-list-item"!==i&&"unordered-list-item"!==i||"li"!==m)i&&"atomic"!==i&&"atomic"===x&&(i=x,v=!0,k=C2e(x,a,!0,E));else{var S=D2e(m,n);k=S2e(S,a),i=S,v=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"}else k=S2e(x||D2e(m,n),a,E),i=x||D2e(m,n),v=!0;var D=e.firstChild;null!=D||!g||"atomic"!==x&&"atomic"!==i||(D=document.createTextNode("a")),null!=D&&(m=D.nodeName.toLowerCase());for(var P=null;D;){P=s(m,D,c,d,f,p),k=L2e(k,I2e(D,t,n,i,r,a,o,s,l,u,c,d,f,p,h,P||g),h.flat);var A=D.nextSibling;if(A&&r.indexOf(m)>=0&&i){var T=u(m,D,n,i),L=void 0,I=void 0;!1!==T&&("string"==typeof(T=T||{})?(L=T,I=c2e.exports.Map()):(L=T.type||D2e(m,n),I=T.data?c2e.exports.Map(T.data):c2e.exports.Map()),k=L2e(k,C2e(L,a,h.flat,I),h.flat))}A&&(m=A.nodeName.toLowerCase()),D=A}return v&&(k=L2e(k,S2e(_,a,c2e.exports.Map()),h.flat)),k}function M2e(e,t,n,i,r,a,o,s,l,u,c){var d=c(e=e.trim().replace(h2e,"").replace(m2e,p2e));if(!d)return null;var f=function(e){return _2e.some((function(t){return-1!==e.indexOf("<".concat(t))}))}(e)?_2e.concat(["div"]):["div"],p=I2e(d,c2e.exports.OrderedSet(),"ul",null,f,-1,t,n,i,r,a,o,s,l,u);return 0===p.text.indexOf("\r")&&(p={text:p.text.slice(1),inlines:p.inlines.slice(1),entities:p.entities.slice(1),blocks:p.blocks}),"\r"===p.text.slice(-1)&&(p.text=p.text.slice(0,-1),p.inlines=p.inlines.slice(0,-1),p.entities=p.entities.slice(0,-1),p.blocks.pop()),0===p.blocks.length&&p.blocks.push({type:"unstyled",data:c2e.exports.Map(),depth:0}),p.text.split("\r").length===p.blocks.length+1&&p.blocks.unshift({type:"unstyled",data:c2e.exports.Map(),depth:0}),p}function j2e(e,t,n,i,r,a,o,s,l,u,c,d){var f=M2e(e,t,n,i,r,a,o,s,l,u,c);if(null==f)return[];var p=0;return f.text.split("\r").map((function(e,t){e=e.replace(v2e,"");var n=p+e.length,i=E2e(f).inlines.slice(p,n),r=E2e(f).entities.slice(p,n),a=c2e.exports.List(i.map((function(e,t){var n={style:e,entity:null};return r[t]&&(n.entity=r[t]),s2e.CharacterMetadata.create(n)})));return p=n+1,new s2e.ContentBlock({key:d(),type:E2e(f).blocks[t].type,data:E2e(f).blocks[t].data,depth:E2e(f).blocks[t].depth,text:e,characterList:a})}))}var N2e=function(e){var t=e.htmlToStyle,n=void 0===t?F2e:t,i=e.htmlToEntity,r=void 0===i?k2e:i,a=e.textToEntity,o=void 0===a?x2e:a,s=e.htmlToBlock,l=void 0===s?w2e:s;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f2e,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s2e.genKey,s=s2e.ContentState.createFromText(""),u=function(){var e;return s.createEntity?(s=(e=s).createEntity.apply(e,arguments)).getLastCreatedEntityKey():s2e.Entity.create.apply(s2e.Entity,arguments)},c=function(){var e;return s.getEntity?(e=s).getEntity.apply(e,arguments):s2e.Entity.get.apply(s2e.Entity,arguments)},d=function(){var e;s.mergeEntityData?s=(e=s).mergeEntityData.apply(e,arguments):s2e.Entity.mergeData.apply(s2e.Entity,arguments)},f=function(){var e;s.replaceEntityData?s=(e=s).replaceEntityData.apply(e,arguments):s2e.Entity.replaceData.apply(s2e.Entity,arguments)},p=j2e(e,y2e(n,T2e),y2e(r,k2e),y2e(o,x2e),y2e(l,P2e),u,c,d,f,t,i,a),h=s2e.BlockMapBuilder.createFromArray(p),g=p[0].getKey();return s.merge({blockMap:h,selectionBefore:s2e.SelectionState.createEmpty(g),selectionAfter:s2e.SelectionState.createEmpty(g)})}};BY('/**\n * Draft v0.11.6\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.DraftEditorPlaceholder-hidden{display:none}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.public-DraftStyleDefault-listLTR{direction:ltr}.public-DraftStyleDefault-listRTL{direction:rtl}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:16px 0;padding:0}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}');var R2e=32,O2e=31,z2e={};function B2e(e){e&&(e.value=!0)}function G2e(){}function q2e(e){return void 0===e.size&&(e.size=e.__iterate(H2e)),e.size}function U2e(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?q2e(e)+t:t}function H2e(){return!0}function W2e(e,t,n){return(0===e&&!J2e(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function Y2e(e,t){return K2e(e,t,0)}function V2e(e,t){return K2e(e,t,t)}function K2e(e,t,n){return void 0===e?n:J2e(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function J2e(e){return e<0||0===e&&1/e==-1/0}var Q2e="@@__IMMUTABLE_ITERABLE__@@";function Z2e(e){return Boolean(e&&e[Q2e])}var $2e="@@__IMMUTABLE_KEYED__@@";function X2e(e){return Boolean(e&&e[$2e])}var e3e="@@__IMMUTABLE_INDEXED__@@";function t3e(e){return Boolean(e&&e[e3e])}function n3e(e){return X2e(e)||t3e(e)}var i3e=function(e){return Z2e(e)?e:E3e(e)},r3e=function(e){function t(e){return X2e(e)?e:C3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(i3e),a3e=function(e){function t(e){return t3e(e)?e:S3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(i3e),o3e=function(e){function t(e){return Z2e(e)&&!n3e(e)?e:D3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(i3e);i3e.Keyed=r3e,i3e.Indexed=a3e,i3e.Set=o3e;var s3e="@@__IMMUTABLE_SEQ__@@";function l3e(e){return Boolean(e&&e[s3e])}function u3e(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function c3e(e){return Z2e(e)||u3e(e)}var d3e="@@__IMMUTABLE_ORDERED__@@";function f3e(e){return Boolean(e&&e[d3e])}var p3e="function"==typeof Symbol&&Symbol.iterator,h3e="@@iterator",g3e=p3e||h3e,m3e=function(e){this.next=e};function v3e(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function _3e(){return{value:void 0,done:!0}}function b3e(e){return!!F3e(e)}function y3e(e){return e&&"function"==typeof e.next}function w3e(e){var t=F3e(e);return t&&t.call(e)}function F3e(e){var t=e&&(p3e&&e[p3e]||e["@@iterator"]);if("function"==typeof t)return t}m3e.prototype.toString=function(){return"[Iterator]"},m3e.KEYS=0,m3e.VALUES=1,m3e.ENTRIES=2,m3e.prototype.inspect=m3e.prototype.toSource=function(){return this.toString()},m3e.prototype[g3e]=function(){return this};var k3e=Object.prototype.hasOwnProperty;function x3e(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var E3e=function(e){function t(e){return null==e?I3e():c3e(e)?e.toSeq():function(e){var t=N3e(e);if(t)return t;if("object"==typeof e)return new A3e(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var i=n.length,r=0;r!==i;){var a=n[t?i-++r:r++];if(!1===e(a[1],a[0],this))break}return r}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var i=n.length,r=0;return new m3e((function(){if(r===i)return{value:void 0,done:!0};var a=n[t?i-++r:r++];return v3e(e,a[0],a[1])}))}return this.__iteratorUncached(e,t)},t}(i3e),C3e=function(e){function t(e){return null==e?I3e().toKeyedSeq():Z2e(e)?X2e(e)?e.toSeq():e.fromEntrySeq():u3e(e)?e.toSeq():M3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(E3e),S3e=function(e){function t(e){return null==e?I3e():Z2e(e)?X2e(e)?e.entrySeq():e.toIndexedSeq():u3e(e)?e.toSeq().entrySeq():j3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(E3e),D3e=function(e){function t(e){return(Z2e(e)&&!n3e(e)?e:S3e(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(E3e);E3e.isSeq=l3e,E3e.Keyed=C3e,E3e.Set=D3e,E3e.Indexed=S3e,E3e.prototype[s3e]=!0;var P3e=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[U2e(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,i=n.length,r=0;r!==i;){var a=t?i-++r:r++;if(!1===e(n[a],a,this))break}return r},t.prototype.__iterator=function(e,t){var n=this._array,i=n.length,r=0;return new m3e((function(){if(r===i)return{value:void 0,done:!0};var a=t?i-++r:r++;return v3e(e,a,n[a])}))},t}(S3e),A3e=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return k3e.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length,a=0;a!==r;){var o=i[t?r-++a:a++];if(!1===e(n[o],o,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length,a=0;return new m3e((function(){if(a===r)return{value:void 0,done:!0};var o=i[t?r-++a:a++];return v3e(e,o,n[o])}))},t}(C3e);A3e.prototype[d3e]=!0;var T3e,L3e=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=w3e(this._collection),i=0;if(y3e(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=w3e(this._collection);if(!y3e(n))return new m3e(_3e);var i=0;return new m3e((function(){var t=n.next();return t.done?t:v3e(e,i++,t.value)}))},t}(S3e);function I3e(){return T3e||(T3e=new P3e([]))}function M3e(e){var t=Array.isArray(e)?new P3e(e):b3e(e)?new L3e(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new A3e(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function j3e(e){var t=N3e(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function N3e(e){return x3e(e)?new P3e(e):b3e(e)?new L3e(e):void 0}var R3e="@@__IMMUTABLE_MAP__@@";function O3e(e){return Boolean(e&&e[R3e])}function z3e(e){return O3e(e)&&f3e(e)}function B3e(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function G3e(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(B3e(e)&&B3e(t)&&e.equals(t))}var q3e="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function U3e(e){return e>>>1&1073741824|3221225471&e}var H3e=Object.prototype.valueOf;function W3e(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return U3e(t)}(e);case"string":return e.length>X3e?function(e){var t=n4e[e];void 0===t&&(t=Y3e(e),t4e===e4e&&(t4e=0,n4e={}),t4e++,n4e[e]=t);return t}(e):Y3e(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?U3e(e.hashCode(e)):(e.valueOf!==H3e&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(Q3e&&void 0!==(t=J3e.get(e)))return t;if(void 0!==(t=e[$3e]))return t;if(!K3e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[$3e]))return t;if(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e),void 0!==t)return t}t=++Z3e,1073741824&Z3e&&(Z3e=0);if(Q3e)J3e.set(e,t);else{if(void 0!==V3e&&!1===V3e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(K3e)Object.defineProperty(e,$3e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[$3e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[$3e]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return Y3e(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function Y3e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return U3e(t)}var V3e=Object.isExtensible,K3e=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var J3e,Q3e="function"==typeof WeakMap;Q3e&&(J3e=new WeakMap);var Z3e=0,$3e="__immutablehash__";"function"==typeof Symbol&&($3e=Symbol($3e));var X3e=16,e4e=255,t4e=0,n4e={},i4e=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=u4e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,i=l4e(this,e,t);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(e,t)}),i},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,i){return e(t,i,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(C3e);i4e.prototype[d3e]=!0;var r4e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,i=0;return t&&q2e(this),this._iter.__iterate((function(r){return e(r,t?n.size-++i:i++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,i=this._iter.__iterator(1,t),r=0;return t&&q2e(this),new m3e((function(){var a=i.next();return a.done?a:v3e(e,t?n.size-++r:r++,a.value,a)}))},t}(S3e),a4e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new m3e((function(){var t=n.next();return t.done?t:v3e(e,t.value,t.value,t)}))},t}(D3e),o4e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){y4e(t);var i=Z2e(t);return e(i?t.get(1):t[1],i?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new m3e((function(){for(;;){var t=n.next();if(t.done)return t;var i=t.value;if(i){y4e(i);var r=Z2e(i);return v3e(e,r?i.get(0):i[0],r?i.get(1):i[1],t)}}}))},t}(C3e);function s4e(e){var t=F4e(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=k4e,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var i=e.__iterator(t,n);return new m3e((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function l4e(e,t,n){var i=F4e(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,z2e);return a===z2e?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(2,r);return new m3e((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return v3e(i,s,t.call(n,o[1],s,e),r)}))},i}function u4e(e,t){var n=this,i=F4e(e);return i._iter=e,i.size=e.size,i.reverse=function(){return e},e.flip&&(i.flip=function(){var t=s4e(e);return t.reverse=function(){return e.flip()},t}),i.get=function(n,i){return e.get(t?n:-1-n,i)},i.has=function(n){return e.has(t?n:-1-n)},i.includes=function(t){return e.includes(t)},i.cacheResult=k4e,i.__iterate=function(n,i){var r=this,a=0;return i&&q2e(e),e.__iterate((function(e,o){return n(e,t?o:i?r.size-++a:a++,r)}),!i)},i.__iterator=function(i,r){var a=0;r&&q2e(e);var o=e.__iterator(2,!r);return new m3e((function(){var e=o.next();if(e.done)return e;var s=e.value;return v3e(i,t?s[0]:r?n.size-++a:a++,s[1],e)}))},i}function c4e(e,t,n,i){var r=F4e(e);return i&&(r.has=function(i){var r=e.get(i,z2e);return r!==z2e&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,z2e);return a!==z2e&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(2,a),s=0;return new m3e((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return v3e(r,i?u:s++,c,a)}}))},r}function d4e(e,t,n,i){var r=e.size;if(W2e(t,n,r))return e;var a=Y2e(t,r),o=V2e(n,r);if(a!=a||o!=o)return d4e(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l==l&&(s=l<0?0:l);var u=F4e(e);return u.size=0===s?s:e.size&&s||void 0,!i&&l3e(e)&&s>=0&&(u.get=function(t,n){return(t=U2e(this,t))>=0&&t<s?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=o++<a))return u++,!1!==t(e,i?n:u-1,r)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new m3e(_3e);var r=e.__iterator(t,n),o=0,l=0;return new m3e((function(){for(;o++<a;)r.next();if(++l>s)return{value:void 0,done:!0};var e=r.next();return i||1===t||e.done?e:v3e(t,l-1,0===t?void 0:e.value[1],e)}))},u}function f4e(e,t,n,i){var r=F4e(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(2,a),l=!0,u=0;return new m3e((function(){var e,a,c;do{if((e=s.next()).done)return i||1===r?e:v3e(r,u++,0===r?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,o))}while(l);return 2===r?e:v3e(r,a,c,e)}))},r}function p4e(e,t){var n=X2e(e),i=[e].concat(t).map((function(e){return Z2e(e)?n&&(e=r3e(e)):e=n?M3e(e):j3e(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var r=i[0];if(r===e||n&&X2e(r)||t3e(e)&&t3e(r))return r}var a=new P3e(i);return n?a=a.toKeyedSeq():t3e(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),a}function h4e(e,t,n){var i=F4e(e);return i.__iterateUncached=function(r,a){if(a)return this.cacheResult().__iterate(r,a);var o=0,s=!1;return function e(l,u){l.__iterate((function(a,l){return(!t||u<t)&&Z2e(a)?e(a,u+1):(o++,!1===r(a,n?l:o-1,i)&&(s=!0)),!s}),a)}(e,0),o},i.__iteratorUncached=function(i,r){if(r)return this.cacheResult().__iterator(i,r);var a=e.__iterator(i,r),o=[],s=0;return new m3e((function(){for(;a;){var e=a.next();if(!1===e.done){var l=e.value;if(2===i&&(l=l[1]),t&&!(o.length<t)||!Z2e(l))return n?e:v3e(i,s++,l,e);o.push(a),a=l.__iterator(i,r)}else a=o.pop()}return{value:void 0,done:!0}}))},i}function g4e(e,t,n){t||(t=x4e);var i=X2e(e),r=0,a=e.toSeq().map((function(t,i){return[i,t,r++,n?n(t,i,e):t]})).valueSeq().toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),i?C3e(a):t3e(e)?S3e(a):D3e(a)}function m4e(e,t,n){if(t||(t=x4e),n){var i=e.toSeq().map((function(t,i){return[t,n(t,i,e)]})).reduce((function(e,n){return v4e(t,e[1],n[1])?n:e}));return i&&i[0]}return e.reduce((function(e,n){return v4e(t,e,n)?n:e}))}function v4e(e,t,n){var i=e(n,t);return 0===i&&n!==t&&(null==n||n!=n)||i>0}function _4e(e,t,n,i){var r=F4e(e),a=new P3e(n).map((function(e){return e.size}));return r.size=i?a.max():a.min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(1,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=n.map((function(e){return e=i3e(e),w3e(r?e.reverse():e)})),o=0,s=!1;return new m3e((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=i?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:v3e(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function b4e(e,t){return e===t?e:l3e(e)?t:e.constructor(t)}function y4e(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function w4e(e){return X2e(e)?r3e:t3e(e)?a3e:o3e}function F4e(e){return Object.create((X2e(e)?C3e:t3e(e)?S3e:D3e).prototype)}function k4e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):E3e.prototype.cacheResult.call(this)}function x4e(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function E4e(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r<n;r++)i[r]=e[r+t];return i}function C4e(e,t){if(!e)throw new Error(t)}function S4e(e){C4e(e!==1/0,"Cannot perform this action with an infinite size.")}function D4e(e){if(x3e(e)&&"string"!=typeof e)return e;if(f3e(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function P4e(e){return"object"==typeof e&&(c3e(e)||Array.isArray(e)||function(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}(e))}function A4e(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function T4e(e,t,n){return c3e(e)?e.get(t,n):function(e,t){return c3e(e)?e.has(t):P4e(e)&&k3e.call(e,t)}(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function L4e(e){if(Array.isArray(e))return E4e(e);var t={};for(var n in e)k3e.call(e,n)&&(t[n]=e[n]);return t}function I4e(e,t,n,i){i||(i=n,n=void 0);var r=M4e(c3e(e),e,D4e(t),0,n,i);return r===z2e?n:r}function M4e(e,t,n,i,r,a){var o=t===z2e;if(i===n.length){var s=o?r:t,l=a(s);return l===s?t:l}if(!o&&!P4e(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,i).map(A4e)+"]: "+t);var u=n[i],c=o?z2e:T4e(t,u,z2e),d=M4e(c===z2e?e:c3e(c),c,n,i+1,r,a);return d===c?t:d===z2e?function(e,t){if(!P4e(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(c3e(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!k3e.call(e,t))return e;var n=L4e(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}(t,u):function(e,t,n){if(!P4e(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(c3e(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(k3e.call(e,t)&&n===e[t])return e;var i=L4e(e);return i[t]=n,i}(o?e?s6e():{}:t,u,d)}function j4e(e,t){return function(e,t,n){return I4e(e,t,z2e,(function(){return n}))}(this,e,t)}function N4e(e){return function(e,t){return I4e(e,t,(function(){return z2e}))}(this,e)}function R4e(e,t,n,i){return I4e(e,[t],n,i)}function O4e(e,t,n){return 1===arguments.length?e(this):R4e(this,e,t,n)}function z4e(e,t,n){return I4e(this,e,t,n)}function B4e(e,t,n){for(var i=[],r=0;r<t.length;r++){var a=r3e(t[r]);0!==a.size&&i.push(a)}return 0===i.length?e:0!==e.toSeq().size||e.__ownerID||1!==i.length?e.withMutations((function(e){for(var t=n?function(t,i){R4e(e,i,z2e,(function(e){return e===z2e?t:n(e,t,i)}))}:function(t,n){e.set(n,t)},r=0;r<i.length;r++)i[r].forEach(t)})):e.constructor(i[0])}function G4e(e,t,n){return q4e(e,t,function(e){function t(n,i,r){return P4e(n)&&P4e(i)?q4e(n,[i],t):e?e(n,i,r):i}return t}(n))}function q4e(e,t,n){if(!P4e(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(c3e(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var i=Array.isArray(e),r=e,a=i?a3e:r3e,o=i?function(t){r===e&&(r=L4e(r)),r.push(t)}:function(t,i){var a=k3e.call(r,i),o=a&&n?n(r[i],t,i):t;a&&o===r[i]||(r===e&&(r=L4e(r)),r[i]=o)},s=0;s<t.length;s++)a(t[s]).forEach(o);return r}function U4e(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return I4e(this,e,s6e(),(function(e){return q4e(e,t)}))}function H4e(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return I4e(this,e,s6e(),(function(e){return G4e(e,t)}))}function W4e(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Y4e(){return this.__ownerID?this:this.__ensureOwner(new G2e)}function V4e(){return this.__ensureOwner()}function K4e(){return this.__altered}r4e.prototype.cacheResult=i4e.prototype.cacheResult=a4e.prototype.cacheResult=o4e.prototype.cacheResult=k4e;var J4e=function(e){function t(t){return null==t?s6e():O3e(t)&&!f3e(t)?t:s6e().withMutations((function(n){var i=e(t);S4e(i.size),i.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return s6e().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return l6e(this,e,t)},t.prototype.remove=function(e){return l6e(this,e,z2e)},t.prototype.deleteAll=function(e){var t=i3e(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):s6e()},t.prototype.sort=function(e){return I6e(g4e(this,e))},t.prototype.sortBy=function(e,t){return I6e(g4e(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(i,r){n.set(r,e.call(t,i,r,n))}))}))},t.prototype.__iterator=function(e,t){return new i6e(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?o6e(this.size,this._root,e,this.__hash):0===this.size?s6e():(this.__ownerID=e,this.__altered=!1,this)},t}(r3e);J4e.isMap=O3e;var Q4e=J4e.prototype;Q4e[R3e]=!0,Q4e.delete=Q4e.remove,Q4e.removeAll=Q4e.deleteAll,Q4e.setIn=j4e,Q4e.removeIn=Q4e.deleteIn=N4e,Q4e.update=O4e,Q4e.updateIn=z4e,Q4e.merge=Q4e.concat=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return B4e(this,e)},Q4e.mergeWith=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return B4e(this,t,e)},Q4e.mergeDeep=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return G4e(this,e)},Q4e.mergeDeepWith=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return G4e(this,t,e)},Q4e.mergeIn=U4e,Q4e.mergeDeepIn=H4e,Q4e.withMutations=W4e,Q4e.wasAltered=K4e,Q4e.asImmutable=V4e,Q4e["@@transducer/init"]=Q4e.asMutable=Y4e,Q4e["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Q4e["@@transducer/result"]=function(e){return e.asImmutable()};var Z4e=function(e,t){this.ownerID=e,this.entries=t};Z4e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(G3e(n,r[a][0]))return r[a][1];return i},Z4e.prototype.update=function(e,t,n,i,r,a,o){for(var s=r===z2e,l=this.entries,u=0,c=l.length;u<c&&!G3e(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(B2e(o),(s||!d)&&B2e(a),!s||1!==l.length){if(!d&&!s&&l.length>=h6e)return function(e,t,n,i){e||(e=new G2e);for(var r=new t6e(e,W3e(n),[n,i]),a=0;a<t.length;a++){var o=t[a];r=r.update(e,0,void 0,o[0],o[1])}return r}(e,l,i,r);var f=e&&e===this.ownerID,p=f?l:E4e(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new Z4e(e,p)}};var $4e=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};$4e.prototype.get=function(e,t,n,i){void 0===t&&(t=W3e(n));var r=1<<((0===e?t:t>>>e)&O2e),a=this.bitmap;return 0==(a&r)?i:this.nodes[f6e(a&r-1)].get(e+5,t,n,i)},$4e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=W3e(i));var s=(0===t?n:n>>>t)&O2e,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&r===z2e)return this;var d=f6e(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=u6e(p,e,t+5,n,i,r,a,o);if(h===p)return this;if(!c&&h&&f.length>=g6e)return function(e,t,n,i,r){for(var a=0,o=new Array(R2e),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new X4e(e,a+1,o)}(e,f,u,s,h);if(c&&!h&&2===f.length&&c6e(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&c6e(h))return h;var g=e&&e===this.ownerID,m=c?h?u:u^l:u|l,v=c?h?p6e(f,d,h,g):function(e,t,n){var i=e.length-1;if(n&&t===i)return e.pop(),e;for(var r=new Array(i),a=0,o=0;o<i;o++)o===t&&(a=1),r[o]=e[o+a];return r}(f,d,g):function(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s<r;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}(f,d,h,g);return g?(this.bitmap=m,this.nodes=v,this):new $4e(e,m,v)};var X4e=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};X4e.prototype.get=function(e,t,n,i){void 0===t&&(t=W3e(n));var r=(0===e?t:t>>>e)&O2e,a=this.nodes[r];return a?a.get(e+5,t,n,i):i},X4e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=W3e(i));var s=(0===t?n:n>>>t)&O2e,l=r===z2e,u=this.nodes,c=u[s];if(l&&!c)return this;var d=u6e(c,e,t+5,n,i,r,a,o);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<m6e)return function(e,t,n,i){for(var r=0,a=0,o=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==i&&(r|=l,o[a++]=c)}return new $4e(e,r,o)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=p6e(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new X4e(e,f,h)};var e6e=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};e6e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(G3e(n,r[a][0]))return r[a][1];return i},e6e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=W3e(i));var s=r===z2e;if(n!==this.keyHash)return s?this:(B2e(o),B2e(a),d6e(this,e,t,n,[i,r]));for(var l=this.entries,u=0,c=l.length;u<c&&!G3e(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(B2e(o),(s||!d)&&B2e(a),s&&2===c)return new t6e(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:E4e(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new e6e(e,this.keyHash,p)};var t6e=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};t6e.prototype.get=function(e,t,n,i){return G3e(n,this.entry[0])?this.entry[1]:i},t6e.prototype.update=function(e,t,n,i,r,a,o){var s=r===z2e,l=G3e(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(B2e(o),s?void B2e(a):l?e&&e===this.ownerID?(this.entry[1]=r,this):new t6e(e,this.keyHash,[i,r]):(B2e(a),d6e(this,e,t,W3e(i),[i,r])))},Z4e.prototype.iterate=e6e.prototype.iterate=function(e,t){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===e(n[t?r-i:i]))return!1},$4e.prototype.iterate=X4e.prototype.iterate=function(e,t){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var a=n[t?r-i:i];if(a&&!1===a.iterate(e,t))return!1}},t6e.prototype.iterate=function(e,t){return e(this.entry)};var n6e,i6e=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&a6e(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,i=t.index++,r=void 0;if(n.entry){if(0===i)return r6e(e,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return r6e(e,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var a=n.nodes[this._reverse?r-i:i];if(a){if(a.entry)return r6e(e,a.entry);t=this._stack=a6e(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(m3e);function r6e(e,t){return v3e(e,t[0],t[1])}function a6e(e,t){return{node:e,index:0,__prev:t}}function o6e(e,t,n,i){var r=Object.create(Q4e);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function s6e(){return n6e||(n6e=o6e(0))}function l6e(e,t,n){var i,r;if(e._root){var a={value:!1},o={value:!1};if(i=u6e(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===z2e?-1:1:0)}else{if(n===z2e)return e;r=1,i=new Z4e(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?o6e(r,i):s6e()}function u6e(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===z2e?e:(B2e(s),B2e(o),new t6e(t,i,[r,a]))}function c6e(e){return e.constructor===t6e||e.constructor===e6e}function d6e(e,t,n,i,r){if(e.keyHash===i)return new e6e(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&O2e,s=(0===n?i:i>>>n)&O2e,l=o===s?[d6e(e,t,n+5,i,r)]:(a=new t6e(t,i,r),o<s?[e,a]:[a,e]);return new $4e(t,1<<o|1<<s,l)}function f6e(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function p6e(e,t,n,i){var r=i?e:E4e(e);return r[t]=n,r}var h6e=8,g6e=16,m6e=8,v6e="@@__IMMUTABLE_LIST__@@";function _6e(e){return Boolean(e&&e[v6e])}var b6e=function(e){function t(t){var n=C6e();if(null==t)return n;if(_6e(t))return t;var i=e(t),r=i.size;return 0===r?n:(S4e(r),r>0&&r<R2e?E6e(0,r,5,null,new w6e(i.toArray())):n.withMutations((function(e){e.setSize(r),i.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=U2e(this,e))>=0&&e<this.size){var n=P6e(this,e+=this._origin);return n&&n.array[e&O2e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=U2e(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?A6e(e,t).set(0,n):A6e(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a={value:!1};t>=T6e(e._capacity)?i=S6e(i,e.__ownerID,0,t,n,a):r=S6e(r,e.__ownerID,e._level,t,n,a);if(!a.value)return e;if(e.__ownerID)return e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e;return E6e(e._origin,e._capacity,e._level,r,i)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):C6e()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){A6e(n,0,t+e.length);for(var i=0;i<e.length;i++)n.set(t+i,e[i])}))},t.prototype.pop=function(){return A6e(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){A6e(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return A6e(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],i=0;i<arguments.length;i++){var r=t[i],a=e("string"!=typeof r&&b3e(r)?r:[r]);0!==a.size&&n.push(a)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return A6e(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(i){for(var r=0;r<n.size;r++)i.set(r,e.call(t,i.get(r),r,i))}))},t.prototype.slice=function(e,t){var n=this.size;return W2e(e,t,n)?this:A6e(this,Y2e(e,n),V2e(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,i=x6e(this,t);return new m3e((function(){var r=i();return r===k6e?{value:void 0,done:!0}:v3e(e,t?--n:n++,r)}))},t.prototype.__iterate=function(e,t){for(var n,i=t?this.size:0,r=x6e(this,t);(n=r())!==k6e&&!1!==e(n,t?--i:i++,this););return i},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?E6e(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?C6e():(this.__ownerID=e,this.__altered=!1,this)},t}(a3e);b6e.isList=_6e;var y6e=b6e.prototype;y6e[v6e]=!0,y6e.delete=y6e.remove,y6e.merge=y6e.concat,y6e.setIn=j4e,y6e.deleteIn=y6e.removeIn=N4e,y6e.update=O4e,y6e.updateIn=z4e,y6e.mergeIn=U4e,y6e.mergeDeepIn=H4e,y6e.withMutations=W4e,y6e.wasAltered=K4e,y6e.asImmutable=V4e,y6e["@@transducer/init"]=y6e.asMutable=Y4e,y6e["@@transducer/step"]=function(e,t){return e.push(t)},y6e["@@transducer/result"]=function(e){return e.asImmutable()};var w6e=function(e,t){this.array=e,this.ownerID=t};w6e.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var i=n>>>t&O2e;if(i>=this.array.length)return new w6e([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-5,n))===o&&a)return this}if(a&&!r)return this;var s=D6e(this,e);if(!a)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},w6e.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var i,r=n-1>>>t&O2e;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-5,n))===a&&r===this.array.length-1)return this}var o=D6e(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var F6e,k6e={};function x6e(e,t){var n=e._origin,i=e._capacity,r=T6e(i),a=e._tail;return o(e._root,e._level,0);function o(e,s,l){return 0===s?function(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;u>R2e&&(u=R2e);return function(){if(l===u)return k6e;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);c>R2e&&(c=R2e);return function(){for(;;){if(s){var e=s();if(e!==k6e)return e;s=null}if(u===c)return k6e;var n=t?--c:u++;s=o(l&&l[n],r-5,a+(n<<r))}}}(e,s,l)}}function E6e(e,t,n,i,r,a,o){var s=Object.create(y6e);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=i,s._tail=r,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function C6e(){return F6e||(F6e=E6e(0,0,5))}function S6e(e,t,n,i,r,a){var o,s=i>>>n&O2e,l=e&&s<e.array.length;if(!l&&void 0===r)return e;if(n>0){var u=e&&e.array[s],c=S6e(u,t,n-5,i,r,a);return c===u?e:((o=D6e(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(a&&B2e(a),o=D6e(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function D6e(e,t){return t&&e&&t===e.ownerID?e:new w6e(e?e.array.slice():[],t)}function P6e(e,t){if(t>=T6e(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,i=e._level;n&&i>0;)n=n.array[t>>>i&O2e],i-=5;return n}}function A6e(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new G2e,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new w6e(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=5);c&&(o+=c,r+=c,s+=c,a+=c);for(var d=T6e(a),f=T6e(s);f>=1<<l+5;)u=new w6e(u&&u.array.length?[u]:[],i),l+=5;var p=e._tail,h=f<d?P6e(e,s-1):f>d?new w6e([],i):p;if(p&&f>d&&o<a&&p.array.length){for(var g=u=D6e(u,i),m=l;m>5;m-=5){var v=d>>>m&O2e;g=g.array[v]=D6e(g.array[v],i)}g.array[d>>>5&O2e]=p}if(s<a&&(h=h&&h.removeAfter(i,0,s)),o>=f)o-=f,s-=f,l=5,u=null,h=h&&h.removeBefore(i,0,o);else if(o>r||f<d){for(c=0;u;){var _=o>>>l&O2e;if(_!==f>>>l&O2e)break;_&&(c+=(1<<l)*_),l-=5,u=u.array[_]}u&&o>r&&(u=u.removeBefore(i,l,o-c)),u&&f<d&&(u=u.removeAfter(i,l,f-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):E6e(o,s,l,u,h)}function T6e(e){return e<R2e?0:e-1>>>5<<5}var L6e,I6e=function(e){function t(e){return null==e?j6e():z3e(e)?e:j6e().withMutations((function(t){var n=r3e(e);S4e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):j6e()},t.prototype.set=function(e,t){return N6e(this,e,t)},t.prototype.remove=function(e){return N6e(this,e,z2e)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?M6e(t,n,e,this.__hash):0===this.size?j6e():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(J4e);function M6e(e,t,n,i){var r=Object.create(I6e.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function j6e(){return L6e||(L6e=M6e(s6e(),C6e()))}function N6e(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===z2e){if(!l)return e;o.size>=R2e&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):M6e(i,r)}I6e.isOrderedMap=z3e,I6e.prototype[d3e]=!0,I6e.prototype.delete=I6e.prototype.remove;var R6e="@@__IMMUTABLE_STACK__@@";function O6e(e){return Boolean(e&&e[R6e])}var z6e=function(e){function t(e){return null==e?U6e():O6e(e)?e:U6e().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=U2e(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,i=arguments.length-1;i>=0;i--)n={value:e[i],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):q6e(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&O6e(t))return t;S4e(t.size);var n=this.size,i=this._head;return t.__iterate((function(e){n++,i={value:e,next:i}}),!0),this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):q6e(n,i)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):U6e()},t.prototype.slice=function(t,n){if(W2e(t,n,this.size))return this;var i=Y2e(t,this.size);if(V2e(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var r=this.size-i,a=this._head;i--;)a=a.next;return this.__ownerID?(this.size=r,this._head=a,this.__hash=void 0,this.__altered=!0,this):q6e(r,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?q6e(this.size,this._head,e,this.__hash):0===this.size?U6e():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new P3e(this.toArray()).__iterate((function(t,i){return e(t,i,n)}),t);for(var i=0,r=this._head;r&&!1!==e(r.value,i++,this);)r=r.next;return i},t.prototype.__iterator=function(e,t){if(t)return new P3e(this.toArray()).__iterator(e,t);var n=0,i=this._head;return new m3e((function(){if(i){var t=i.value;return i=i.next,v3e(e,n++,t)}return{value:void 0,done:!0}}))},t}(a3e);z6e.isStack=O6e;var B6e,G6e=z6e.prototype;function q6e(e,t,n,i){var r=Object.create(G6e);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function U6e(){return B6e||(B6e=q6e(0))}G6e[R6e]=!0,G6e.shift=G6e.pop,G6e.unshift=G6e.push,G6e.unshiftAll=G6e.pushAll,G6e.withMutations=W4e,G6e.wasAltered=K4e,G6e.asImmutable=V4e,G6e["@@transducer/init"]=G6e.asMutable=Y4e,G6e["@@transducer/step"]=function(e,t){return e.unshift(t)},G6e["@@transducer/result"]=function(e){return e.asImmutable()};var H6e="@@__IMMUTABLE_SET__@@";function W6e(e){return Boolean(e&&e[H6e])}function Y6e(e){return W6e(e)&&f3e(e)}function V6e(e,t){if(e===t)return!0;if(!Z2e(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||X2e(e)!==X2e(t)||t3e(e)!==t3e(t)||f3e(e)!==f3e(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!n3e(e);if(f3e(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&G3e(r[1],e)&&(n||G3e(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var o=!0,s=t.__iterate((function(t,i){if(n?!e.has(t):r?!G3e(t,e.get(i,z2e)):!G3e(e.get(i,z2e),t))return o=!1,!1}));return o&&e.size===s}function K6e(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function J6e(e){if(!e||"object"!=typeof e)return e;if(!Z2e(e)){if(!P4e(e))return e;e=E3e(e)}if(X2e(e)){var t={};return e.__iterate((function(e,n){t[n]=J6e(e)})),t}var n=[];return e.__iterate((function(e){n.push(J6e(e))})),n}var Q6e=function(e){function t(t){return null==t?t9e():W6e(t)&&!f3e(t)?t:t9e().withMutations((function(n){var i=e(t);S4e(i.size),i.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(r3e(e).keySeq())},t.intersect=function(e){return(e=i3e(e).toArray()).length?$6e.intersect.apply(t(e.pop()),e):t9e()},t.union=function(e){return(e=i3e(e).toArray()).length?$6e.union.apply(t(e.pop()),e):t9e()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return X6e(this,this._map.set(e,e))},t.prototype.remove=function(e){return X6e(this,this._map.remove(e))},t.prototype.clear=function(){return X6e(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,i=[],r=[];return this.forEach((function(a){var o=e.call(t,a,a,n);o!==a&&(i.push(a),r.push(o))})),this.withMutations((function(e){i.forEach((function(t){return e.remove(t)})),r.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var i=0;i<t.length;i++)e(t[i]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var i=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||i.push(e)})),this.withMutations((function(e){i.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var i=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&i.push(e)})),this.withMutations((function(e){i.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return v9e(g4e(this,e))},t.prototype.sortBy=function(e,t){return v9e(g4e(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(o3e);Q6e.isSet=W6e;var Z6e,$6e=Q6e.prototype;function X6e(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function e9e(e,t){var n=Object.create($6e);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function t9e(){return Z6e||(Z6e=e9e(s6e()))}$6e[H6e]=!0,$6e.delete=$6e.remove,$6e.merge=$6e.concat=$6e.union,$6e.withMutations=W4e,$6e.asImmutable=V4e,$6e["@@transducer/init"]=$6e.asMutable=Y4e,$6e["@@transducer/step"]=function(e,t){return e.add(t)},$6e["@@transducer/result"]=function(e){return e.asImmutable()},$6e.__empty=t9e,$6e.__make=e9e;var n9e,i9e=function(e){function t(e,n,i){if(!(this instanceof t))return new t(e,n,i);if(C4e(0!==i,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),i=void 0===i?1:Math.abs(i),n<e&&(i=-i),this._start=e,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-e)/i-1)+1),0===this.size){if(n9e)return n9e;n9e=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+U2e(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return W2e(e,n,this.size)?this:(e=Y2e(e,this.size),(n=V2e(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,i=this._step,r=t?this._start+(n-1)*i:this._start,a=0;a!==n&&!1!==e(r,t?n-++a:a++,this);)r+=t?-i:i;return a},t.prototype.__iterator=function(e,t){var n=this.size,i=this._step,r=t?this._start+(n-1)*i:this._start,a=0;return new m3e((function(){if(a===n)return{value:void 0,done:!0};var o=r;return r+=t?-i:i,v3e(e,t?n-++a:a++,o)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:V6e(this,e)},t}(S3e);function r9e(e,t,n){for(var i=D4e(t),r=0;r!==i.length;)if((e=T4e(e,i[r++],z2e))===z2e)return n;return e}function a9e(){S4e(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}i3e.isIterable=Z2e,i3e.isKeyed=X2e,i3e.isIndexed=t3e,i3e.isAssociative=n3e,i3e.isOrdered=f3e,i3e.Iterator=m3e,K6e(i3e,{toArray:function(){S4e(this.size);var e=new Array(this.size||0),t=X2e(this),n=0;return this.__iterate((function(i,r){e[n++]=t?[r,i]:i})),e},toIndexedSeq:function(){return new r4e(this)},toJS:function(){return J6e(this)},toKeyedSeq:function(){return new i4e(this,!0)},toMap:function(){return J4e(this.toKeyedSeq())},toObject:a9e,toOrderedMap:function(){return I6e(this.toKeyedSeq())},toOrderedSet:function(){return v9e(X2e(this)?this.valueSeq():this)},toSet:function(){return Q6e(X2e(this)?this.valueSeq():this)},toSetSeq:function(){return new a4e(this)},toSeq:function(){return t3e(this)?this.toIndexedSeq():X2e(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return z6e(X2e(this)?this.valueSeq():this)},toList:function(){return b6e(X2e(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return b4e(this,p4e(this,e))},includes:function(e){return this.some((function(t){return G3e(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){S4e(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return b4e(this,c4e(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},forEach:function(e,t){return S4e(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){S4e(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!=i?i.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return b4e(this,l4e(this,e,t))},reduce:function(e,t,n){return u9e(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return u9e(this,e,t,n,arguments.length<2,!0)},reverse:function(){return b4e(this,u4e(this,!0))},slice:function(e,t){return b4e(this,d4e(this,e,t,!0))},some:function(e,t){return!this.every(f9e(e),t)},sort:function(e){return b4e(this,g4e(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return q2e(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var i=J4e().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}(this,e,t)},equals:function(e){return V6e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new P3e(e._cache);var t=e.toSeq().map(d9e).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(f9e(e),t)},findEntry:function(e,t,n){var i=n;return this.__iterate((function(n,r,a){if(e.call(t,n,r,a))return i=[r,n],!1})),i},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(H2e,null,e)},flatMap:function(e,t){return b4e(this,function(e,t,n){var i=w4e(e);return e.toSeq().map((function(r,a){return i(t.call(n,r,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return b4e(this,h4e(this,e,!0))},fromEntrySeq:function(){return new o4e(this)},get:function(e,t){return this.find((function(t,n){return G3e(n,e)}),void 0,t)},getIn:function(e,t){return r9e(this,e,t)},groupBy:function(e,t){return function(e,t,n){var i=X2e(e),r=(f3e(e)?I6e():J4e()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=w4e(e);return r.map((function(t){return b4e(e,a(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,z2e)!==z2e},hasIn:function(e){return function(e,t){return r9e(e,t,z2e)!==z2e}(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:i3e(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:i3e(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return G3e(t,e)}))},keySeq:function(){return this.toSeq().map(c9e).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return m4e(this,e)},maxBy:function(e,t){return m4e(this,t,e)},min:function(e){return m4e(this,e?p9e(e):g9e)},minBy:function(e,t){return m4e(this,t?p9e(t):g9e,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return b4e(this,f4e(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(f9e(e),t)},sortBy:function(e,t){return b4e(this,g4e(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return b4e(this,function(e,t,n){var i=F4e(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(2,r),s=!0;return new m3e((function(){if(!s)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?2===i?e:v3e(i,l,u,e):(s=!1,{value:void 0,done:!0})}))},i}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(f9e(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=f3e(e),n=X2e(e),i=t?1:0;return function(e,t){return t=q3e(t,3432918353),t=q3e(t<<15|t>>>-15,461845907),t=q3e(t<<13|t>>>-13,5),t=q3e((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=U3e((t=q3e(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){i=31*i+m9e(W3e(e),W3e(t))|0}:function(e,t){i=i+m9e(W3e(e),W3e(t))|0}:t?function(e){i=31*i+W3e(e)|0}:function(e){i=i+W3e(e)|0}),i)}(this))}});var o9e=i3e.prototype;o9e[Q2e]=!0,o9e[g3e]=o9e.values,o9e.toJSON=o9e.toArray,o9e.__toStringMapper=A4e,o9e.inspect=o9e.toSource=function(){return this.toString()},o9e.chain=o9e.flatMap,o9e.contains=o9e.includes,K6e(r3e,{flip:function(){return b4e(this,s4e(this))},mapEntries:function(e,t){var n=this,i=0;return b4e(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return b4e(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var s9e=r3e.prototype;s9e[$2e]=!0,s9e[g3e]=o9e.entries,s9e.toJSON=a9e,s9e.__toStringMapper=function(e,t){return A4e(t)+": "+A4e(e)},K6e(a3e,{toKeyedSeq:function(){return new i4e(this,!1)},filter:function(e,t){return b4e(this,c4e(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return b4e(this,u4e(this,!1))},slice:function(e,t){return b4e(this,d4e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=Y2e(e,e<0?this.count():this.size);var i=this.slice(0,e);return b4e(this,1===n?i:i.concat(E4e(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return b4e(this,h4e(this,e,!1))},get:function(e,t){return(e=U2e(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=U2e(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return b4e(this,function(e,t){var n=F4e(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,i){var r=this,a=0;return e.__iterate((function(e){return(!a||!1!==n(t,a++,r))&&!1!==n(e,a++,r)}),i),a},n.__iteratorUncached=function(n,i){var r,a=e.__iterator(1,i),o=0;return new m3e((function(){return(!r||o%2)&&(r=a.next()).done?r:o%2?v3e(n,o++,t):v3e(n,o++,r.value,r)}))},n}(this,e))},interleave:function(){var e=[this].concat(E4e(arguments)),t=_4e(this.toSeq(),S3e.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),b4e(this,n)},keySeq:function(){return i9e(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return b4e(this,f4e(this,e,t,!1))},zip:function(){var e=[this].concat(E4e(arguments));return b4e(this,_4e(this,h9e,e))},zipAll:function(){var e=[this].concat(E4e(arguments));return b4e(this,_4e(this,h9e,e,!0))},zipWith:function(e){var t=E4e(arguments);return t[0]=this,b4e(this,_4e(this,e,t))}});var l9e=a3e.prototype;function u9e(e,t,n,i,r,a){return S4e(e.size),e.__iterate((function(e,a,o){r?(r=!1,n=e):n=t.call(i,n,e,a,o)}),a),n}function c9e(e,t){return t}function d9e(e,t){return[t,e]}function f9e(e){return function(){return!e.apply(this,arguments)}}function p9e(e){return function(){return-e.apply(this,arguments)}}function h9e(){return E4e(arguments)}function g9e(e,t){return e<t?1:e>t?-1:0}function m9e(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}l9e[e3e]=!0,l9e[d3e]=!0,K6e(o3e,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o3e.prototype.has=o9e.includes,o3e.prototype.contains=o3e.prototype.includes,K6e(C3e,r3e.prototype),K6e(S3e,a3e.prototype),K6e(D3e,o3e.prototype);var v9e=function(e){function t(e){return null==e?w9e():Y6e(e)?e:w9e().withMutations((function(t){var n=o3e(e);S4e(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(r3e(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Q6e);v9e.isOrderedSet=Y6e;var _9e,b9e=v9e.prototype;function y9e(e,t){var n=Object.create(b9e);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function w9e(){return _9e||(_9e=y9e(j6e()))}b9e[d3e]=!0,b9e.zip=l9e.zip,b9e.zipWith=l9e.zipWith,b9e.__empty=w9e,b9e.__make=y9e;var F9e={exports:{}};
|
|
163
|
+
*/function qje(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Uje=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=qje(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))Bje.call(n,o)&&(r[o]=n[o]);if(zje){i=zje(n);for(var s=0;s<i.length;s++)Gje.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},Hje="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wje=function(){};if("production"!==process.env.NODE_ENV){var Yje=Hje,Vje={},Kje=Function.call.bind(Object.prototype.hasOwnProperty);Wje=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function Jje(e,t,n,i,r){if("production"!==process.env.NODE_ENV)for(var a in e)if(Kje(e,a)){var o;try{if("function"!=typeof e[a]){var s=Error((i||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}o=e[a](t,a,i,n,null,Yje)}catch(e){o=e}if(!o||o instanceof Error||Wje((i||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in Vje)){Vje[o.message]=!0;var l=r?r():"";Wje("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}Jje.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(Vje={})};var Qje=Jje,Zje=w.default,$je=Uje,Xje=Hje,eNe=Qje,tNe=Function.call.bind(Object.prototype.hasOwnProperty),nNe=function(){};function iNe(){return null}"production"!==process.env.NODE_ENV&&(nNe=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function rNe(){}function aNe(){}aNe.resetWarningCache=rNe;if("production"!==process.env.NODE_ENV){var oNe=w.default;Oje.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,i="<<anonymous>>",r={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:s(iNe),arrayOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,i,r,a+"["+l+"]",Xje);if(u instanceof Error)return u}return null}))},element:s((function(t,n,i,r,a){var s=t[n];return e(s)?null:new o("Invalid "+r+" `"+a+"` of type `"+c(s)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,i,r){var a=e[t];return Zje.isValidElementType(a)?null:new o("Invalid "+i+" `"+r+"` of type `"+c(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,r,a,s){if(!(t[n]instanceof e)){var l=e.name||i;return new o("Invalid "+a+" `"+s+"` of type `"+((u=t[n]).constructor&&u.constructor.name?u.constructor.name:i)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var u;return null}))},node:s((function(e,t,n,i,r){return u(e[t])?null:new o("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,i,r,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(tNe(s,u)){var d=e(s,u,i,r,a+"."+u,Xje);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&nNe(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),iNe;function t(t,n,i,r,s){for(var l=t[n],u=0;u<e.length;u++)if(a(l,e[u]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===d(t)?String(t):t}));return new o("Invalid "+r+" `"+s+"` of value `"+String(l)+"` supplied to `"+i+"`, expected one of "+c+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&nNe("Invalid argument supplied to oneOfType, expected an instance of array."),iNe;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return nNe("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),iNe}return s((function(t,n,i,r,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,i,r,a,Xje))return null;return new o("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var d=e[u];if(d){var f=d(s,u,i,r,a+"."+u,Xje);if(f)return f}}return null}))},exact:function(e){return s((function(t,n,i,r,a){var s=t[n],l=c(s);if("object"!==l)return new o("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var u=$je({},t[n],e);for(var d in u){var f=e[d];if(!f)return new o("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(s,d,i,r,a+"."+d,Xje);if(p)return p}return null}))}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e){this.message=e,this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function a(a,s,l,u,c,d,f){if(u=u||i,d=d||l,f!==Xje){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=u+":"+l;!n[h]&&r<3&&(nNe("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==s[l]?a?null===s[l]?new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new o("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,l,u,c,d)}var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function l(e){return s((function(t,n,i,r,a,s){var l=t[n];return c(l)!==e?new o("Invalid "+r+" `"+a+"` of type `"+d(l)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var i=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!i)return!1;var r,a=i.call(t);if(i!==t.entries){for(;!(r=a.next()).done;)if(!u(r.value))return!1}else for(;!(r=a.next()).done;){var o=r.value;if(o&&!u(o[1]))return!1}return!0;default:return!1}}function c(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function d(e){if(null==e)return""+e;var t=c(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=d(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return o.prototype=Error.prototype,r.checkPropTypes=eNe,r.resetWarningCache=eNe.resetWarningCache,r.PropTypes=r,r}(oNe.isElement,!0)}else Oje.exports=function(){function e(e,t,n,i,r,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:aNe,resetWarningCache:rNe};return n.PropTypes=n,n}();var sNe=Oje.exports,lNe=Object.freeze({__proto__:null,useCurrentUser:i0,useAccountApi:I0,useAuthenticationContext:BF,useEnvironmentConfig:Tg,useNotificationContext:A9,usePromise:IF,LinkContext:gE,TextLink:zPe,logger:im,createId:am,ResourceContext:kE,usePluginSettings:function(){var e=i.useContext(R2).settings;return null!=e?e:{}},usePluginStorage:j3,usePluginDeviceStore:j3,usePluginSubscriptionStore:function(){return i.useContext(R2).subscriptionStore},usePluginSubscriptionStoreValue:function(e,t){var n=this,r=i.useContext(R2).subscriptionStore,a=IF((function(){return r.get(e).catch(R3)}),void 0,aV(aV([],t||[]),[e])),o=a[0],s=a[1],l=a[2],u=a[3],c=a[4];return{data:o,set:function(t){return iV(n,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return n=o?JSON.parse(JSON.stringify(o)):void 0,u(t),[4,r.set(e,t).catch((function(e){return u(n),R3(e)}))];case 1:return[2,i.sent()]}}))}))},isLoading:s,error:l,refresh:c,remove:function(){return iV(n,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return t=o?JSON.parse(JSON.stringify(o)):void 0,u(void 0),[4,r.delete(e).catch((function(e){return u(t),R3(e)}))];case 1:return[2,n.sent()]}}))}))}}},usePluginUserStore:function(){return i.useContext(R2).userStore},usePluginUserStoreValue:function(e,t){var n=this,r=i.useContext(R2).userStore,a=IF((function(){return r.get(e).catch(R3)}),void 0,aV(aV([],t||[]),[e])),o=a[0],s=a[1],l=a[2],u=a[3],c=a[4];return{data:o,set:function(t){return iV(n,void 0,void 0,(function(){var n;return rV(this,(function(i){switch(i.label){case 0:return n=o?JSON.parse(JSON.stringify(o)):void 0,u(t),[4,r.set(e,t).catch((function(e){return u(n),R3(e)}))];case 1:return[2,i.sent()]}}))}))},isLoading:s,error:l,refresh:c,remove:function(){return iV(n,void 0,void 0,(function(){var t;return rV(this,(function(n){switch(n.label){case 0:return t=o?JSON.parse(JSON.stringify(o)):void 0,u(void 0),[4,r.delete(e).catch((function(e){return u(t),R3(e)}))];case 1:return[2,n.sent()]}}))}))}}},useReachApiEndPoints:function(){return{apiEndpoint:Ag().apiEndpoint}},AccountType:BX,PeoplePicker:ewe,GutterToggle:function(e){var n=e.checked,i=e.readOnly,r=e.onChange,a=e.className,o=e.iconName,s=e.activeIconName,l=e.tooltipResourceKey,u=e.ariaLabelResourceKey,c=Hx().formatMessage,d=n?s||o||"CheckboxComposite":o||"Checkbox";return t.jsx(Wye,Ohe({className:a},{children:i?t.jsx(Vye,{},void 0):t.jsx(Dye,Ohe({resourceKey:l},{children:t.jsx(Yye,{iconProps:{iconName:d},onClick:function(){return r(!n)},ariaLabel:u?c({id:u}):null},void 0)}),void 0)}),void 0)},EditorSettingsDialog:Uye,Spinner:o.Spinner,SelectionMode:o.SelectionMode,EditorHighlight:function(e){var n=e.tooltipResourceKey,i=e.className,r=zhe(e,["tooltipResourceKey","className"]);return t.jsx(Dye,Ohe({resourceKey:n,className:i},{children:t.jsx(Aye,Ohe({},r,{"data-highlight-bubble":!0}),void 0)}),void 0)},useTheme:function(){return i.useContext(Z6).theme},useSubscriptionHandlePathBuilder:P2});var uNe=[{name:"@reach/core",packageDefinition:Ohe({default:{}},lNe)}],cNe=[{name:"react",packageDefinition:Ohe(Ohe({},m.default),{default:m.default})},{name:"react-dom",packageDefinition:Ohe(Ohe({},y),{default:y})},{name:"react-is",packageDefinition:Ohe(Ohe({},w.default),{default:w.default})},{name:"prop-types",packageDefinition:Ohe({default:sNe},sNe)},{name:"react-router-dom",packageDefinition:Ohe({},v)},{name:"styled-components",packageDefinition:{default:_.default,createGlobalStyle:a.createGlobalStyle,css:a.css,useTheme:a.useTheme,isStyledComponent:a.isStyledComponent,keyframes:a.keyframes,withTheme:a.withTheme,ThemeProvider:a.ThemeProvider,ThemeContext:a.ThemeContext,ThemeConsumer:a.ThemeConsumer}},{name:"office-ui-fabric-react",packageDefinition:{default:{},Checkbox:o.Checkbox,Label:o.Label,PrimaryButton:o.PrimaryButton,Icon:o.Icon,Link:o.Link,TextField:o.TextField,ActionButton:o.ActionButton,IconButton:o.IconButton,DefaultButton:o.DefaultButton,Spinner:o.Spinner,Dropdown:o.Dropdown,ProgressIndicator:o.ProgressIndicator,Shimmer:o.Shimmer,ShimmerElementsGroup:o.ShimmerElementsGroup,ShimmerElementType:o.ShimmerElementType,DirectionalHint:o.DirectionalHint,PersonaSize:o.PersonaSize,TooltipHost:o.TooltipHost,DialogType:o.DialogType,Dialog:Whe}},{name:"react-intl",packageDefinition:{default:{},FormattedMessage:cE,useIntl:Hx,FormattedDate:dE,FormattedTime:fE,IntlProvider:Xx}},{name:"@apollo/client",packageDefinition:{default:{},gql:UM,useQuery:function(e,t){return lj(e,t,!1)},ApolloClient:jM,ApolloProvider:XM,from:cL,ApolloLink:uL,fromPromise:iL,split:dL,HttpLink:bL,InMemoryCache:gM,useLazyQuery:function(e,t){return lj(e,t,!0)},useMutation:function(e,t){var n=i.useContext(ZM()),r=i.useState({called:!1,loading:!1}),a=r[0],o=r[1],s=t?Fa(Fa({},t),{mutation:e}):{mutation:e},l=i.useRef(),u=(l.current||(l.current=new aj({options:s,context:n,result:a,setResult:o})),l.current);return u.setOptions(s),u.context=n,i.useEffect((function(){return u.afterExecute()})),u.execute(a)},ApolloError:vM,useApolloClient:ej,useSubscription:function(e,t){var n=i.useReducer((function(e){return e+1}),0)[1],r=i.useContext(ZM()),a=t?Fa(Fa({},t),{subscription:e}):{subscription:e},o=i.useState({loading:!a.skip,error:void 0,data:void 0}),s=o[0],l=o[1],u=i.useRef(),c=(u.current||(u.current=new rj({options:a,context:r,setResult:l})),u.current);return c.setOptions(a,!0),c.context=r,__DEV__&&sj(n),i.useEffect((function(){return c.afterExecute()})),i.useEffect((function(){return function(){c.cleanup(),u.current=void 0}}),[]),c.execute(s)}}},{name:"subscriptions-transport-ws",packageDefinition:{default:{},SubscriptionClient:dN}},{name:"@apollo/client/link/ws",packageDefinition:{default:{},WebSocketLink:EN}},{name:"@apollo/client/utilities",packageDefinition:{default:{},getMainDefinition:ZA}},{name:"@apollo/client/link/context",packageDefinition:{default:{},setContext:uj}}],dNe=function(e){var n=e.onRequestToken,r=e.children,a=e.subscriptionId,o=i.useState(null),s=o[0],l=o[1],u=i.useMemo((function(){return{onRequestToken:null!=n?n:function(){return Promise.resolve(s)},getIsAuthenticated:function(){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(e){return[2,null!=n||null!=s]}))}))},getCurrentEmail:function(){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(e){return[2,null]}))}))},setToken:l,onHandleError:function(e,t){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(n){return im.error(e,t),[2,Promise.reject(e)]}))}))}}}),[a,s]);return t.jsx(zF.Provider,Fa({value:u},{children:r}),void 0)},fNe="0.4.0-preview.394",pNe="101460",hNe="b44868876435b1a22292430306f171adb2142c66",gNe=Y,mNe=O,vNe=En("match"),_Ne=function(e){var t;return gNe(e)&&(void 0!==(t=e[vNe])?!!t:"RegExp"==mNe(e))},bNe=En("match"),yNe=function(e){if(_Ne(e))throw TypeError("The method doesn't accept regular expressions");return e},wNe=q,FNe=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[bNe]=!1,"/./"[e](t)}catch(e){}}return!1};cn({target:"String",proto:!0,forced:!FNe("includes")},{includes:function(e){return!!~String(wNe(this)).indexOf(yNe(e),arguments.length>1?arguments[1]:void 0)}});var kNe,xNe,ENe={configType:"local",authentication:{azuread:{clientId:"781a9147-6ddc-43fb-9cce-e01d7838ffe6",apiScope:"api://781a9147-6ddc-43fb-9cce-e01d7838ffe6/access_as_user",extraScopes:["https://graph.microsoft.com/User.Read","https://graph.microsoft.com/User.ReadBasic.All"],basePolicyUrl:"https://login.microsoftonline.com/",signInPolicy:"common"},b2c:{postLogoutRedirectUri:"https://livetilesglobal.com/products/livetiles-reach",clientId:"b13f12ba-c1c5-41da-8e22-1252b5fed0e4",basePolicyUrl:"https://condenseappexternaldev.b2clogin.com/condenseappexternaldev.onmicrosoft.com/",signInPolicy:"B2C_1_SignInSignUpPolicy",forgotPasswordPolicy:"B2C_1_ResetPasswordPolicy",apiScope:"https://condenseappexternaldev.onmicrosoft.com/web/access_as_user"},teams:{clientId:"c17acfe6-6106-47e6-b9ac-12c6a9e78db6",scopes:["email","openid","profile","offline_access"],extraScopes:["https://graph.microsoft.com/User.Read","https://graph.microsoft.com/User.ReadBasic.All"],basePolicyUrl:"https://login.microsoftonline.com/"}},apiEndpoint:"http://localhost:5000/api/v1",api2Endpoint:"http://localhost:5000/api/v2",api3Endpoint:"http://localhost:5000/api/v3",webSocketsEndpoint:"ws://localhost:5000/api/v2",productWebsite:"https://reach.livetilesglobal.com/",supportUrl:"https://support.livetilesglobal.com/hc/en-us/categories/360001273732-Reach",releaseNotesUrl:"https://support.livetilesglobal.com/hc/en-us/sections/900001715263-Reach",privacyUrl:"https://livetilesglobal.com/livetiles-privacy-policy",eulaUrl:"https://livetilesglobal.com/livetiles-privacy-policy",unsplash:{appName:"Condense",apiKey:"N/A",clientId:"8b17ad8ed176954881976b7e08a2a6305d01b9b708455c14bbd43780ff6b62ba"},canva:{apiKey:"6vvsr2srHeve85SXxMX1k1LD"},zendeskMessaging:{enable:!0,apiKey:"816bfec7-3beb-457a-a4a1-f462c9cb403f"},webAppUrl:"http://localhost:3000",hyperfish:{regionJumperUrl:"https://antrearegionjumper.azurewebsites.net/api/antrearegionjumper",regionJumperKey:"T1YDqmyQX/bXhFapRLdaPBenzRLMCCNafSVwzmwI7fYnkwj6wLL0Hg=="},maxFileSizeInMb:100,giphy:{apiKey:"idBrSgzpBdNCqLmXPRaoHz9DFGKK79wU"},userflow:{userflowToken:"ct_gjkrqpboc5edlg6vduhnxfti3e"},oneSignal:{appId:"dd89af4f-325e-447e-a030-654043cfbc6a"}},CNe={configType:"production",authentication:{azuread:{clientId:"d492530a-8cff-481c-90da-9c3c3f1be7da",apiScope:"api://d492530a-8cff-481c-90da-9c3c3f1be7da/access_as_user",extraScopes:["https://graph.microsoft.com/User.Read","https://graph.microsoft.com/User.ReadBasic.All"]},b2c:{clientId:"cc9987a7-c666-4be1-a81c-f80dba7ef2e9",basePolicyUrl:"https://condenseappexternal.b2clogin.com/condenseappexternal.onmicrosoft.com/",signInPolicy:"B2C_1_SignInSignUpPolicy",forgotPasswordPolicy:"B2C_1_ResetPasswordPolicy",apiScope:"https://condenseappexternal.onmicrosoft.com/web/access_as_user"},teams:{clientId:"a7c1920d-3ac0-42db-9757-078a2b321fd8"},teamsAustralia:{clientId:"29942469-c421-4026-92ef-9bf24a6fc08c"}},apiEndpoint:"https://api.reach.livetiles.io/api/v1",api2Endpoint:"https://api.reach.livetiles.io/api/v2",api3Endpoint:"https://api.reach.livetiles.io/api/v3",webSocketsEndpoint:"wss://ws.reach.livetiles.io/api/v2",webAppUrl:"https://reach.livetiles.io",additionalWebAppUrls:["https://app.reach.livetiles.io","https://app.condense.ch"],appInsightsKey:"c4758fee-1409-47a9-a508-03efd775256c",canva:{apiKey:"mYnapNU5aDqD-1xEMFZkpdzT"},giphy:{apiKey:"jqAFrpqGDwOFqeu8Rn6YfjRGkKhlxZyn"},userflow:{userflowToken:"ct_3um627fkk5cxvnkwawnaf2b4gy"},oneSignal:{appId:"47a684a5-e9e0-4aaf-84b8-9f3e6585b292"}},SNe=["//localhost","//api:5000","//api.dev.reach.livetiles.io","//api.test.reach.livetiles.io","//api.staging.reach.livetiles.io","//api-dev.condense.ch","//api-test.condense.ch","//api-staging.condense.ch"],DNe=function(e){var n=e.children,r=Ag().apiEndpoint,a=i.useMemo((function(){return function(e){return"number"!=typeof e.maxFileSizeInMb&&(e.maxFileSizeInMb=parseInt(e.maxFileSizeInMb)),e}(function(){var e=!SNe.some((function(e){return r.toLowerCase().includes(e)}));if(!e)return im.info("Will use non prod client config..."),Fa({},ENe);return Fa(Fa({},ENe),CNe)}())}),[r]);return t.jsx(Ug.Provider,Fa({value:a},{children:n}),void 0)},PNe=function(){function e(){this.storage={}}return e.prototype.remove=function(e){return delete this.storage[e],Promise.resolve()},e.prototype.clearAll=function(){return this.storage={},Promise.resolve()},e.prototype.getObject=function(e){var t;return Promise.resolve(null!==(t=this.storage[e])&&void 0!==t?t:null)},e.prototype.set=function(e,t){return this.storage[e]=t,Promise.resolve()},e.prototype.getString=function(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){switch(t.label){case 0:return[4,this.getObject(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.setString=function(e,t){return xa(this,void 0,void 0,(function(){return Ea(this,(function(n){switch(n.label){case 0:return[4,this.set(e,t)];case 1:return n.sent(),[2]}}))}))},e.prototype.getAllKeys=function(){return Promise.resolve(Object.keys(this.storage))},e}(),ANe=new PNe,TNe=function(e){var n=e.subscriptionId,i=e.children;return e.shouldUsePublicAccess?t.jsx(LNe,Fa({subscriptionId:n},{children:i}),void 0):t.jsx(t.Fragment,{children:i},void 0)},LNe=function(e){var n=e.subscriptionId,r=e.children,a=i.useContext(zF).setToken,o=vE(),s=function(){var e=eU().fetchFromApi,t=tU();return i.useMemo((function(){return{getSubscriptionBySubscriptionIdentifier:function(t){return e("/subscriptions/"+t).then((function(e){return e.status<=200?e.json():Promise.reject(e.status)}))},getTermsAndConditions:function(){return t.custom("subscriptions/current/terms_and_conditions").get().then((function(e){return e.body().data()}))}}}),[e,t])}().getSubscriptionBySubscriptionIdentifier,l=eU().fetchFromApi,u=i.useContext(hE),c=u.handleFatalError,d=u.handleAccessDeniedError,f=IF((function(){return xa(this,void 0,void 0,(function(){var e,t,i;return Ea(this,(function(r){switch(r.label){case 0:return e="Reach::PublicAccessToken::"+n,[4,o.getString(e)];case 1:return(t=r.sent())?(a(t),[2,!0]):[4,s(n)];case 2:return r.sent().allowPublicAccess?[4,v(n)]:[3,5];case 3:return i=r.sent(),a(i),[4,o.setString(e,i)];case 4:return r.sent(),[2,!0];case 5:return[2,!1]}}))}))}),!1,[n]),p=f[0],h=f[1],g=f[2];if(g)return im.error(g),c({error:g}),null;if(h)return null;if(!p){var m={message:"Public access is not enabled for the subscription "+n+"!"};return im.error(m.message),d({error:m}),null}return t.jsx(t.Fragment,{children:r},void 0);function v(e){return l("/subscriptions/"+e+"/public_access_token").then((function(e){return e.status<=200?e.text():Promise.reject(e.status)}))}},INe=function(e){var n=e.children,r=i.useState(),a=r[0],o=r[1],s=i.useState(),l=s[0],u=s[1],c=i.useState(),d=c[0],f=c[1],p=i.useMemo((function(){return{handleFatalError:o,handleAccessDeniedError:u,handleNotFoundError:f}}),[o,u,f]);return t.jsx(hE.Provider,Fa({value:p},{children:t.jsx(MNe,Fa({fatalError:a,notFoundError:d,accessDeniedError:l},{children:n}),void 0)}),void 0)},MNe=function(e){var n=e.fatalError,i=e.accessDeniedError,r=e.notFoundError,a=e.children;return n?t.jsx(jNe,{messageId:n.messageId,error:n.error},void 0):i?t.jsx(jNe,{messageId:"AccessDenied.genericMessage",error:i.error},void 0):r?t.jsx(jNe,{messageId:"NotFound.message"},void 0):t.jsx(t.Fragment,{children:a},void 0)},jNe=function(e){var n=e.messageId,r=e.error,a=Hx().formatMessage,o=i.useState(!1),s=o[0],l=o[1];return t.jsx(Cje,Fa({errorType:xje.GenericError,alertText:a({id:n||"FatalError.genericMessage"}),onClick:function(){return l(!s)}},{children:s&&t.jsxs(NNe,{children:[t.jsx(cE,{id:"Generic.error.details"},void 0),t.jsx(RNe,{children:JSON.stringify(r)||"Not provided"},void 0)]},void 0)}),void 0)},NNe=_.default.div.withConfig({displayName:"ReachErrorProvider__DetailsContainer",componentId:"sc-15225g3-0"})(kNe||(kNe=Ia(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),s9),RNe=_.default.p.withConfig({displayName:"ReachErrorProvider__Details",componentId:"sc-15225g3-1"})(xNe||(xNe=Ia(["\n opacity: 0.4;\n font-size: small;\n"],["\n opacity: 0.4;\n font-size: small;\n"]))),ONe=function(e){var n=e.children,r=i.useMemo((function(){return{onShare:function(){return xa(void 0,void 0,void 0,(function(){return Ea(this,(function(e){return[2,null]}))}))},onOpenExternalLink:a,tryGetInternalLink:function(){return null}}}),[]);return t.jsx(gE.Provider,Fa({value:r},{children:n}),void 0);function a(e){window.open(e,"_blank")}},zNe=function(){return null},BNe=Object.freeze({__proto__:null,Page:zNe,NavLinkSidebarItem:zNe,PageMenuActionItem:zNe});!function(){if(window.__is_reach_app)return;if(console.info("Reach Component Library: "+fNe+" ("+pNe+") ["+hNe+"]"),window.__did_initialize_reach_context)return;o.initializeIcons()}();var GNe=function(e){var n,r=e.children,a=i.useContext(Z6).setTheme,o=M0().getCurrentUser,s=IF((function(){var e;return xa(this,void 0,void 0,(function(){var t,n;return Ea(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,o()];case 1:return t=i.sent(),(null===(e=null==t?void 0:t.subscription)||void 0===e?void 0:e.theme)&&a(t.subscription.theme),[2,t];case 2:throw n=i.sent(),im.error(n),n;case 3:return[2]}}))}))})),l=s[0],u=s[1],c=s[2],d=s[3],f=i.useContext(hE),p=f.handleFatalError,h=f.handleNotFoundError,g=f.handleAccessDeniedError,m=i.useMemo((function(){return{user:l,refreshUser:function(e){return Promise.resolve(e&&d(e))}}}),[l]);return c?(403===(null===(n=null==c?void 0:c.response)||void 0===n?void 0:n.statusCode)?g({error:c}):p({error:c}),null):u?null:null==l?(h({}),null):t.jsx(t0.Provider,Fa({value:m},{children:r}),void 0)},qNe=function(){return i.useEffect((function(){var e=document.createElement("style");e.innerHTML="@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');",document.head.appendChild(e)}),[]),t.jsxs(t.Fragment,{children:[t.jsx(cV,{},void 0),t.jsx(fV,{},void 0)]},void 0)};var UNe=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,HNe=/[\0-\x1F\x7F-\x9F]/,WNe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,YNe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;function VNe(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function KNe(e){return Object.prototype.toString.call(e)}function JNe(e){return"[object Function]"===KNe(e)}function QNe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ZNe={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var $Ne={"http:":{validate:function(e,t,n){var i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},XNe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function eRe(e){var t=e.re=function(e){var t={};return t.src_Any=UNe.source,t.src_Cc=HNe.source,t.src_Z=WNe.source,t.src_P=YNe.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");var r=[];function a(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var i={validate:null,link:null};if(e.__compiled__[t]=i,function(e){return"[object Object]"===KNe(e)}(n))return!function(e){return"[object RegExp]"===KNe(e)}(n.validate)?JNe(n.validate)?i.validate=n.validate:a(t,n):i.validate=function(e){return function(t,n){var i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(JNe(n.normalize)?i.normalize=n.normalize:n.normalize?a(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===KNe(e)}(n)?a(t,n):r.push(t)}})),r.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var o=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(QNe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function tRe(e,t){var n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function nRe(e,t){var n=new tRe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function iRe(e,t){if(!(this instanceof iRe))return new iRe(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||ZNe.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=VNe({},ZNe,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=VNe({},$Ne,e),this.__compiled__={},this.__tlds__=XNe,this.__tlds_replaced__=!1,this.re={},eRe(this)}iRe.prototype.add=function(e,t){return this.__schemas__[e]=t,eRe(this),this},iRe.prototype.set=function(e){return this.__opts__=VNe(this.__opts__,e),this},iRe.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,i,r,a,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(i=e.match(this.re.email_fuzzy))&&(a=i.index+i[1].length,o=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},iRe.prototype.pretest=function(e){return this.re.pretest.test(e)},iRe.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},iRe.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(nRe(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)n.push(nRe(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},iRe.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),eRe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,eRe(this),this)},iRe.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},iRe.prototype.onCompile=function(){};var rRe=iRe;function aRe(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function oRe(){return oRe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},oRe.apply(this,arguments)}function sRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lRe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function uRe(e,t,n){return t&&lRe(e.prototype,t),n&&lRe(e,n),e}function cRe(e){return cRe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cRe(e)}function dRe(e){return dRe="function"==typeof Symbol&&"symbol"===cRe(Symbol.iterator)?function(e){return cRe(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":cRe(e)},dRe(e)}function fRe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pRe(e,t){return!t||"object"!==dRe(t)&&"function"!=typeof t?fRe(e):t}function hRe(e){return hRe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hRe(e)}function gRe(e,t){return gRe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gRe(e,t)}function mRe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gRe(e,t)}function vRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bRe(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yRe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function wRe(e){return function(e){if(Array.isArray(e))return yRe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yRe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yRe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var FRe=function(e){return e===Object(e)?Object.keys(e):[]},kRe=function(e){return e===Object(e)?Object.values(e):[]};function xRe(e,t){var n=Object.assign({},e);return SRe(e)&&SRe(t)&&FRe(t).forEach((function(i){SRe(t[i])&&i in e?n[i]=xRe(e[i],t[i]):Object.assign(n,W8({},i,t[i]))})),n}var ERe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){return xRe(e,t)}),e)},CRe=function(e,t){var n=Object.assign({},e);if(t)for(var i=0;i<t.length;i++)delete n[t[i]];return n},SRe=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},DRe=function(e){return(e||[]).filter(Boolean)},PRe=function(e){return"&"===e[0]},ARe=function(e){return!PRe(e)},TRe=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},LRe=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=FRe(e),i={},r=0,a=n.length;r<a;r+=1){var o=n[r],s="[object Object]"!==Object.prototype.toString.call(e[o])||":"===o[0]||"@"===o[0]||t.indexOf(o)>=0;s&&(i[o]=e[o])}return i},IRe=function(e,t){for(var n=t.map(TRe),i=FRe(e),r={},a=0,o=i.length;a<o;a+=1){var s=i[a];(t.indexOf(s)>=0||n.indexOf(TRe(s))>=0)&&(r[s]=e[s])}return r},MRe=function e(t,n){for(var i=ERe.apply(void 0,[{},CRe(t,n)].concat(wRe(kRe(IRe(t,n))))),r=FRe(i).filter(PRe),a=0,o=r.length;a<o;a+=1){var s=r[a],l=e(i[s],n);n.indexOf(s)>=0?(delete i[s],i=ERe({},i,l)):i[s]=l}return i};function jRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function NRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jRe(Object(n),!0).forEach((function(t){W8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jRe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var RRe=["animationName"],ORe=function(e){var t=e.style,n=e.className;return NRe(NRe({},t?{style:LRe(t,RRe)}:{}),n?{className:n}:{})},zRe=i.createContext(ORe);zRe.Provider;var BRe=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return FRe(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e},GRe={},qRe=function(e){return function(t,n){var i,r=n||GRe;e.memoize=e.memoize||new WeakMap,e.memoize.has(r)?i=e.memoize.get(r):(i={},e.memoize.set(r,i));var a=BRe(t).join(" ");return a in i?i[a]:i[a]=e(t||[],n)}};function URe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function HRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?URe(Object(n),!0).forEach((function(t){W8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):URe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WRe=function(e){var t=e&&FRe(e)[0];return t&&t.split("__")[0].split("--")[0]},YRe=function(e,t,n){if(e){var i=e.split(" ")[0],r=[].concat(wRe(0===t.length?n.map((function(e){return"".concat(i,"--").concat(e.substring(1))})):[]),wRe(t.map((function(e){return"".concat(i,"__").concat(e)}))));return 0===t.length?[e].concat(wRe(r)):r}};function VRe(e){var t=e.style,n=e.className,i=e.classNames,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ORe,a=n||WRe(i)||(null==t?void 0:t.className),o="function"==typeof t?t:qRe((function(e,n){var o=BRe(e);Nhe(Array.isArray(o),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Nhe(!n||SRe(n),"Optional second parameter must be a plain object.");var s=o.filter(PRe),l=o.filter(ARe),u=l.length>0?function(e){return kRe(IRe(e,l))}:function(e){return[e]},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(MRe(e,s))},d=YRe(a,l,s);return VRe(HRe(HRe(HRe({},(t||n)&&{style:ERe.apply(void 0,[{}].concat(wRe(c(n)),wRe(c(t))))}),d&&{className:d.join(" ")}),i&&{classNames:i}),r)})),s=HRe({},"function"==typeof t?t:{style:t}),l=wRe(new Set([].concat(wRe(s.className?s.className.split(" "):[]),wRe(a?a.split(" "):[])))),u=i?DRe(l.map((function(e){return i[e]}))):l,c=r(HRe(HRe({},s),u.length>0?{className:u.join(" ")}:{}));return Object.assign(o,c),o}function KRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function JRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KRe(Object(n),!0).forEach((function(t){W8(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KRe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var QRe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return JRe(JRe(JRe({},e),"function"==typeof t?t:{}),{},{style:JRe(JRe({},e.style),"function"==typeof t?t.style:t)})}),{})},ZRe=function(e,t,n){var r=t.style,a=t.className,o=t.classNames,s=i.useContext(zRe);return i.useMemo((function(){return VRe({style:r,className:a,classNames:o},s)}),[r,a,o,s])(n,e)},$Re=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},XRe="__id__",eOe="__display__",tOe=function(e,t){Nhe("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(eOe),i=e.indexOf(XRe);return n<0&&(n=null),i<0&&(i=null),Nhe(null!==n||null!==i,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==i?"id"===t&&i<=n||"display"===t&&n<=i?0:1:0},nOe=function(e){var t=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map((function(e){var n=_Re(t.exec(e.toString()),3),i=n[1],r=n[2];return Nhe(!r,"RegExp flags are not supported. Change /".concat(i,"/").concat(r," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")},iOe=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},rOe=function(){},aOe=function(e,t,n){for(var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rOe,a=nOe(t.map((function(e){return e.regex}))),o=2,s=t.map((function(e){var t=e.markup,n=o;return o+=iOe(t)+1,n})),l=0,u=0;null!==(i=a.exec(e));){var c=s.find((function(e){return!!i[e]})),d=s.indexOf(c),f=t[d],p=f.markup,h=f.displayTransform,g=c+tOe(p,"id"),m=c+tOe(p,"display"),v=i[g],_=h(v,i[m]),b=e.substring(l,i.index);r(b,l,u),u+=b.length,n(i[0],i.index,u,v,_,d,l),u+=_.length,l=a.lastIndex}l<e.length&&r(e.substring(l),l,u)},oOe=function(e,t){var n="";return aOe(e,t,(function(e,t,i,r,a){n+=a}),(function(e){n+=e})),n},sOe=function(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var a=function(e,t,r){void 0===i&&r+e.length>=n&&(i=t+n-r)},o=function(e,t,a,o,s,l,u){void 0===i&&a+s.length>n&&(i="NULL"===r?null:t+("END"===r?e.length:0))};return aOe(e,t,o,a),void 0===i?e.length:i},lOe=function(e,t,n,i){return e.substring(0,t)+i+e.substring(n)},uOe=function(e,t){var n=[];return aOe(e,t,(function(e,t,i,r,a,o,s){n.push({id:r,display:a,childIndex:o,index:t,plainTextIndex:i})})),n},cOe=function(e,t){return"".concat(e,"-").concat(t)},dOe=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},fOe=function(e){var t=$Re(e),n=e[e.indexOf(eOe)+eOe.length],i=e[e.indexOf(XRe)+XRe.length];return new RegExp(t.replace(eOe,"([^".concat($Re(n||""),"]+?)")).replace(XRe,"([^".concat($Re(i||""),"]+?)")))},pOe=function(e){return i.Children.toArray(e).map((function(e){var t=e.props,n=t.markup,i=t.regex,r=t.displayTransform;return{markup:n,regex:i?hOe(i,n):fOe(n),displayTransform:r||function(e,t){return t||e}}}))},hOe=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,i=iOe(t);return Nhe(n===i,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(i,")")),e},gOe=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],mOe=function(e){return function(e){var t=e;return gOe.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},vOe=function(e,t,n){return n?mOe(e).indexOf(mOe(t)):e.toLowerCase().indexOf(t.toLowerCase())},_Oe=function(e){return"number"==typeof e},bOe=function(e){return e===Object(e)?Object.keys(e):[]},yOe=function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=(t=[]).concat.apply(t,i);return Object.keys(e).reduce((function(t,n){return e.hasOwnProperty(n)&&!a.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t}),{})};function wOe(e,t){return function(n){var i=function(i){var r=i.style,a=i.className,o=i.classNames,s=bRe(i,["style","className","classNames"]),l=t?t(s):void 0,u=ZRe(e,{style:r,className:a,classNames:o},l);return m.default.createElement(n,oRe({},s,{style:u}))},r=n.displayName||n.name||"Component";return i.displayName="defaultStyle(".concat(r,")"),i}}var FOe=function(e){function t(){var e;return sRe(this,t),vRe(fRe(e=pRe(this,hRe(t).apply(this,arguments))),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return mRe(t,e),uRe(t,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var e=this.caretElement,t=e.offsetLeft,n=e.offsetTop;if(this.state.left!==t||this.state.top!==n){var i={left:t,top:n};this.setState(i),this.props.onCaretPositionChange(i)}}}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.selectionStart,r=n.selectionEnd,a=n.value,o=n.style,s=n.children,l=n.containerRef,u=pOe(s);i===r&&(e=sOe(a,u,i,"START"));var c=[],d={},f=c,p=0;return aOe(a,u,(function(e,n,i,r,a,o,s){var l=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(d,r);f.push(t.getMentionComponentForMatch(r,a,o,l))}),(function(n,i,r){if(_Oe(e)&&e>=i&&e<=i+n.length){var a=e-i;f.push(t.renderSubstring(n.substring(0,a),p)),f=[t.renderSubstring(n.substring(a),p)]}else f.push(t.renderSubstring(n,p));p++})),f.push(" "),f!==c&&c.push(this.renderHighlighterCaret(f)),m.default.createElement("div",oRe({},o,{ref:l}),c)}},{key:"renderSubstring",value:function(e,t){return m.default.createElement("span",oRe({},this.props.style("substring"),{key:t}),e)}},{key:"getMentionComponentForMatch",value:function(e,t,n,r){var a={id:e,display:t,key:r},o=i.Children.toArray(this.props.children)[n];return m.default.cloneElement(o,a)}},{key:"renderHighlighterCaret",value:function(e){return m.default.createElement("span",oRe({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),t}(i.Component);vRe(FOe,"propTypes",{selectionStart:NW.number,selectionEnd:NW.number,value:NW.string.isRequired,onCaretPositionChange:NW.func.isRequired,containerRef:NW.oneOfType([NW.func,NW.shape({current:"undefined"==typeof Element?NW.any:NW.instanceOf(Element)})]),children:NW.oneOfType([NW.element,NW.arrayOf(NW.element)]).isRequired}),vRe(FOe,"defaultProps",{value:""});var kOe=wOe({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(e){return{"&singleLine":e.singleLine}}))(FOe),xOe=function(e){function t(){return sRe(this,t),pRe(this,hRe(t).apply(this,arguments))}return mRe(t,e),uRe(t,[{key:"render",value:function(){var e=yOe(this.props,["style","classNames","className"],bOe(t.propTypes));return m.default.createElement("li",oRe({id:this.props.id,role:"option","aria-selected":this.props.focused},e,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var e=this.props,t=e.query,n=e.renderSuggestion,i=e.suggestion,r=e.index,a=e.focused,o=this.getDisplay(),s=this.renderHighlightedDisplay(o,t);return n?n(i,t,s,r,a):s}},{key:"getDisplay",value:function(){var e=this.props.suggestion;if("string"==typeof e)return e;var t=e.id,n=e.display;return void 0!==t&&n?n:t}},{key:"renderHighlightedDisplay",value:function(e){var t=this.props,n=t.ignoreAccents,i=t.query,r=t.style,a=vOe(e,i,n);return-1===a?m.default.createElement("span",r("display"),e):m.default.createElement("span",r("display"),e.substring(0,a),m.default.createElement("b",r("highlight"),e.substring(a,a+i.length)),e.substring(a+i.length))}}]),t}(i.Component);vRe(xOe,"propTypes",{id:NW.string.isRequired,query:NW.string.isRequired,index:NW.number.isRequired,ignoreAccents:NW.bool,suggestion:NW.oneOfType([NW.string,NW.shape({id:NW.oneOfType([NW.string,NW.number]).isRequired,display:NW.string})]).isRequired,renderSuggestion:NW.func,focused:NW.bool});var EOe=wOe({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(xOe);function COe(){var e=ZRe(),t=e("spinner");return m.default.createElement("div",e,m.default.createElement("div",t,m.default.createElement("div",t(["element","element1"])),m.default.createElement("div",t(["element","element2"])),m.default.createElement("div",t(["element","element3"])),m.default.createElement("div",t(["element","element4"])),m.default.createElement("div",t(["element","element5"]))))}var SOe=function(e){function t(){var e,n;sRe(this,t);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return vRe(fRe(n=pRe(this,(e=hRe(t)).call.apply(e,[this].concat(r)))),"handleMouseEnter",(function(e,t){n.props.onMouseEnter&&n.props.onMouseEnter(e)})),vRe(fRe(n),"select",(function(e,t){n.props.onSelect(e,t)})),vRe(fRe(n),"setUlElement",(function(e){n.ulElement=e})),n}return mRe(t,e),uRe(t,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var e=this.ulElement.scrollTop,t=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=t.top,i=t.bottom,r=this.ulElement.getBoundingClientRect().top;i=i-r+e,(n=n-r+e)<e?this.ulElement.scrollTop=n:i>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=i-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.a11ySuggestionsListLabel,i=e.isOpened,r=e.style,a=e.onMouseDown,o=e.containerRef,s=e.position,l=e.left,u=e.top;return i?m.default.createElement("div",oRe({},QRe({position:s||"absolute",left:l,top:u},r),{onMouseDown:a,ref:o}),m.default.createElement("ul",oRe({ref:this.setUlElement,id:t,role:"listbox","aria-label":n},r("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var e=this;return Object.values(this.props.suggestions).reduce((function(t,n){var i=n.results,r=n.queryInfo;return[].concat(aRe(t),aRe(i.map((function(n,i){return e.renderSuggestion(n,r,t.length+i)}))))}),[])}},{key:"renderSuggestion",value:function(e,t,n){var r=this,a=n===this.props.focusIndex,o=t.childIndex,s=t.query,l=i.Children.toArray(this.props.children)[o].props.renderSuggestion,u=this.props.ignoreAccents;return m.default.createElement(EOe,{style:this.props.style("item"),key:"".concat(o,"-").concat(DOe(e)),id:cOe(this.props.id,n),query:s,index:n,ignoreAccents:u,renderSuggestion:l,suggestion:e,focused:a,onClick:function(){return r.select(e,t)},onMouseEnter:function(){return r.handleMouseEnter(n)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return m.default.createElement(COe,{style:this.props.style("loadingIndicator")})}}]),t}(i.Component);vRe(SOe,"propTypes",{id:NW.string.isRequired,suggestions:NW.object.isRequired,a11ySuggestionsListLabel:NW.string,focusIndex:NW.number,position:NW.string,left:NW.number,top:NW.number,scrollFocusedIntoView:NW.bool,isLoading:NW.bool,isOpened:NW.bool.isRequired,onSelect:NW.func,ignoreAccents:NW.bool,containerRef:NW.oneOfType([NW.func,NW.shape({current:"undefined"==typeof Element?NW.any:NW.instanceOf(Element)})]),children:NW.oneOfType([NW.element,NW.arrayOf(NW.element)]).isRequired}),vRe(SOe,"defaultProps",{suggestions:{},onSelect:function(){return null}});var DOe=function(e){return"string"==typeof e?e:e.id},POe=wOe({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(SOe);function AOe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function TOe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AOe(n,!0).forEach((function(t){vRe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AOe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LOe={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},IOe=!1,MOe={singleLine:NW.bool,allowSpaceInQuery:NW.bool,allowSuggestionsAboveCursor:NW.bool,forceSuggestionsAboveCursor:NW.bool,ignoreAccents:NW.bool,a11ySuggestionsListLabel:NW.string,value:NW.string,onKeyDown:NW.func,onSelect:NW.func,onBlur:NW.func,onChange:NW.func,suggestionsPortalHost:"undefined"==typeof Element?NW.any:NW.PropTypes.instanceOf(Element),inputRef:NW.oneOfType([NW.func,NW.shape({current:"undefined"==typeof Element?NW.any:NW.instanceOf(Element)})]),children:NW.oneOfType([NW.element,NW.arrayOf(NW.element)]).isRequired},jOe=function(e){function t(e){var n;return sRe(this,t),vRe(fRe(n=pRe(this,hRe(t).call(this,e))),"setContainerElement",(function(e){n.containerElement=e})),vRe(fRe(n),"getInputProps",(function(){var e=n.props,t=e.readOnly,i=e.disabled,r=e.style;return TOe({},yOe(n.props,["style","classNames","className"],bOe(MOe)),{},r("input"),{value:n.getPlainText()},!t&&!i&&{onChange:n.handleChange,onSelect:n.handleSelect,onKeyDown:n.handleKeyDown,onBlur:n.handleBlur,onCompositionStart:n.handleCompositionStart,onCompositionEnd:n.handleCompositionEnd,onScroll:n.updateHighlighterScroll},{},n.isOpened()&&{role:"combobox","aria-controls":n.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":cOe(n.uuidSuggestionsOverlay,n.state.focusIndex)})})),vRe(fRe(n),"renderControl",(function(){var e=n.props,t=e.singleLine,i=e.style,r=n.getInputProps();return m.default.createElement("div",i("control"),n.renderHighlighter(),t?n.renderInput(r):n.renderTextarea(r))})),vRe(fRe(n),"renderInput",(function(e){return m.default.createElement("input",oRe({type:"text",ref:n.setInputRef},e))})),vRe(fRe(n),"renderTextarea",(function(e){return m.default.createElement("textarea",oRe({ref:n.setInputRef},e))})),vRe(fRe(n),"setInputRef",(function(e){n.inputElement=e;var t=n.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),vRe(fRe(n),"setSuggestionsElement",(function(e){n.suggestionsElement=e})),vRe(fRe(n),"renderSuggestionsOverlay",(function(){if(!_Oe(n.state.selectionStart))return null;var e=n.state.suggestionsPosition,t=e.position,i=e.left,r=e.top,a=m.default.createElement(POe,{id:n.uuidSuggestionsOverlay,style:n.props.style("suggestions"),position:t,left:i,top:r,focusIndex:n.state.focusIndex,scrollFocusedIntoView:n.state.scrollFocusedIntoView,containerRef:n.setSuggestionsElement,suggestions:n.state.suggestions,onSelect:n.addMention,onMouseDown:n.handleSuggestionsMouseDown,onMouseEnter:n.handleSuggestionsMouseEnter,isLoading:n.isLoading(),isOpened:n.isOpened(),ignoreAccents:n.props.ignoreAccents,a11ySuggestionsListLabel:n.props.a11ySuggestionsListLabel},n.props.children);return n.props.suggestionsPortalHost?b.default.createPortal(a,n.props.suggestionsPortalHost):a})),vRe(fRe(n),"renderHighlighter",(function(){var e=n.state,t=e.selectionStart,i=e.selectionEnd,r=n.props,a=r.singleLine,o=r.children,s=r.value,l=r.style;return m.default.createElement(kOe,{containerRef:n.setHighlighterElement,style:l("highlighter"),value:s,singleLine:a,selectionStart:t,selectionEnd:i,onCaretPositionChange:n.handleCaretPositionChange},o)})),vRe(fRe(n),"setHighlighterElement",(function(e){n.highlighterElement=e})),vRe(fRe(n),"handleCaretPositionChange",(function(e){n.setState({caretPosition:e})})),vRe(fRe(n),"getPlainText",(function(){return oOe(n.props.value||"",pOe(n.props.children))})),vRe(fRe(n),"executeOnChange",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];var a,o;return n.props.onChange?(a=n.props).onChange.apply(a,[e].concat(i)):n.props.valueLink?(o=n.props.valueLink).requestChange.apply(o,[e.target.value].concat(i)):void 0})),vRe(fRe(n),"handleChange",(function(e){if(IOe=!1,(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=n.props.value||"",i=pOe(n.props.children),r=e.target.value,a=function(e,t,n,i){var r=n.selectionStartBefore,a=n.selectionEndBefore,o=n.selectionEndAfter,s=oOe(e,i),l=s.length-t.length;"undefined"===r&&(r=o+l),"undefined"===a&&(a=r),r===a&&a===o&&s.length===t.length&&(r-=1);var u=t.slice(r,o),c=Math.min(r,o),d=a;r===o&&(d=Math.max(a,r+l));var f=sOe(e,i,c,"START"),p=sOe(e,i,d,"END"),h=sOe(e,i,c,"NULL"),g=sOe(e,i,d,"NULL"),m=null===h||null===g,v=lOe(e,f,p,u);if(!m){var _=oOe(v,i);if(_!==t){for(c=0;t[c]===_[c];)c++;u=t.slice(c,o),d=s.lastIndexOf(t.substring(o)),f=sOe(e,i,c,"START"),p=sOe(e,i,d,"END"),v=lOe(e,f,p,u)}}return v}(t,r,{selectionStartBefore:n.state.selectionStart,selectionEndBefore:n.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},i);r=oOe(a,i);var o=e.target.selectionStart,s=e.target.selectionEnd,l=!1,u=function(e,t,n){var i=n,r=!1;if(aOe(e,t,(function(e,t,a,o,s,l,u){a<=n&&a+s.length>n&&(i=a,r=!0)})),r)return i}(t,i,o);void 0!==u&&n.state.selectionEnd>u&&(s=o=u,l=!0),n.setState({selectionStart:o,selectionEnd:s,setSelectionAfterMentionChange:l});var c=uOe(a,i),d={target:{value:a}};n.executeOnChange(d,a,r,c)}})),vRe(fRe(n),"handleSelect",(function(e){if(n.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!IOe){var t=n.inputElement;e.target.selectionStart===e.target.selectionEnd?n.updateMentionsQueries(t.value,e.target.selectionStart):n.clearSuggestions(),n.updateHighlighterScroll(),n.props.onSelect(e)}})),vRe(fRe(n),"handleKeyDown",(function(e){if(0!==dOe(n.state.suggestions)&&n.suggestionsElement)switch(Object.values(LOe).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case LOe.ESC:return void n.clearSuggestions();case LOe.DOWN:return void n.shiftFocus(1);case LOe.UP:return void n.shiftFocus(-1);case LOe.RETURN:case LOe.TAB:return void n.selectFocused();default:return}else n.props.onKeyDown(e)})),vRe(fRe(n),"shiftFocus",(function(e){var t=dOe(n.state.suggestions);n.setState({focusIndex:(t+n.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),vRe(fRe(n),"selectFocused",(function(){var e=n.state,t=e.suggestions,i=e.focusIndex,r=Object.values(t).reduce((function(e,t){var n=t.results,i=t.queryInfo;return[].concat(aRe(e),aRe(n.map((function(e){return{result:e,queryInfo:i}}))))}),[])[i],a=r.result,o=r.queryInfo;n.addMention(a,o),n.setState({focusIndex:0})})),vRe(fRe(n),"handleBlur",(function(e){var t=n._suggestionsMouseDown;n._suggestionsMouseDown=!1,t||n.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){n.updateHighlighterScroll()}),1),n.props.onBlur(e,t)})),vRe(fRe(n),"handleSuggestionsMouseDown",(function(e){n._suggestionsMouseDown=!0})),vRe(fRe(n),"handleSuggestionsMouseEnter",(function(e){n.setState({focusIndex:e,scrollFocusedIntoView:!1})})),vRe(fRe(n),"updateSuggestionsPosition",(function(){var e=n.state.caretPosition,t=n.props,i=t.suggestionsPortalHost,r=t.allowSuggestionsAboveCursor,a=t.forceSuggestionsAboveCursor;if(e&&n.suggestionsElement){var o=n.suggestionsElement,s=n.highlighterElement,l=s.getBoundingClientRect(),u=NOe(s,"font-size"),c={left:l.left+e.left,top:l.top+e.top+u},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(o){var f={};if(i){f.position="fixed";var p=c.left,h=c.top;p-=NOe(o,"margin-left"),h-=NOe(o,"margin-top"),p-=s.scrollLeft,h-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);p+o.offsetWidth>g?f.left=Math.max(0,g-o.offsetWidth):f.left=p,r&&h+o.offsetHeight>d&&o.offsetHeight<h-u||a?f.top=Math.max(0,h-o.offsetHeight-u):f.top=h}else{var m=e.left-s.scrollLeft,v=e.top-s.scrollTop;m+o.offsetWidth>n.containerElement.offsetWidth?f.right=0:f.left=m,r&&c.top-s.scrollTop+o.offsetHeight>d&&o.offsetHeight<l.top-u-s.scrollTop?f.top=v-o.offsetHeight-u:f.top=v}f.left===n.state.suggestionsPosition.left&&f.top===n.state.suggestionsPosition.top&&f.position===n.state.suggestionsPosition.position||n.setState({suggestionsPosition:f})}}})),vRe(fRe(n),"updateHighlighterScroll",(function(){var e=n.inputElement,t=n.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),vRe(fRe(n),"handleCompositionStart",(function(){IOe=!0})),vRe(fRe(n),"handleCompositionEnd",(function(){IOe=!1})),vRe(fRe(n),"setSelection",(function(e,t){if(null!==e&&null!==t){var i=n.inputElement;if(i.setSelectionRange)i.setSelectionRange(e,t);else if(i.createTextRange){var r=i.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}}})),vRe(fRe(n),"updateMentionsQueries",(function(e,t){n._queryId++,n.suggestions={},n.setState({suggestions:{}});var i=n.props.value||"",r=n.props.children,a=pOe(r),o=sOe(i,a,t,"NULL");if(null!==o){var s=function(e,t){var n=uOe(e,t),i=n[n.length-1];return i?i.plainTextIndex+i.display.length:0}(i.substring(0,o),a),l=e.substring(s,t);m.default.Children.forEach(r,(function(t,i){if(t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,i=$Re(e);return new RegExp("(?:^|\\s)(".concat(i,"([^").concat(n?"":"\\s").concat(i,"]*))$"))}(t.props.trigger,n.props),a=l.match(r);if(a){var o=s+l.indexOf(a[1],a.index);n.queryData(a[2],i,o,o+a[1].length,e)}}}))}})),vRe(fRe(n),"clearSuggestions",(function(){n._queryId++,n.suggestions={},n.setState({suggestions:{},focusIndex:0})})),vRe(fRe(n),"queryData",(function(e,t,r,a,o){var s=n.props,l=s.children,u=s.ignoreAccents,c=function(e,t){return e instanceof Array?function(n,i){for(var r=[],a=0,o=e.length;a<o;++a){var s=e[a].display||e[a].id;vOe(s,n,t)>=0&&r.push(e[a])}return r}:e}(i.Children.toArray(l)[t].props.data,u),d=c(e,n.updateSuggestions.bind(null,n._queryId,t,e,r,a,o));d instanceof Array&&n.updateSuggestions(n._queryId,t,e,r,a,o,d)})),vRe(fRe(n),"updateSuggestions",(function(e,t,i,r,a,o,s){if(e===n._queryId){n.suggestions=TOe({},n.suggestions,vRe({},t,{queryInfo:{childIndex:t,query:i,querySequenceStart:r,querySequenceEnd:a,plainTextValue:o},results:s}));var l=n.state.focusIndex,u=dOe(n.suggestions);n.setState({suggestions:n.suggestions,focusIndex:l>=u?Math.max(u-1,0):l})}})),vRe(fRe(n),"addMention",(function(e,t){var r=e.id,a=e.display,o=t.childIndex,s=t.querySequenceStart,l=t.querySequenceEnd,u=t.plainTextValue,c=n.props.value||"",d=pOe(n.props.children),f=i.Children.toArray(n.props.children)[o].props,p=f.markup,h=f.displayTransform,g=f.appendSpaceOnAdd,m=f.onAdd,v=sOe(c,d,s,"START"),_=v+l-s,b=function(e,t,n){return e.replace(XRe,t).replace(eOe,n)}(p,r,a);g&&(b+=" ");var y=lOe(c,v,_,b);n.inputElement.focus();var w=h(r,a);g&&(w+=" ");var F=s+w.length;n.setState({selectionStart:F,selectionEnd:F,setSelectionAfterMentionChange:!0});var k={target:{value:y}},x=uOe(y,d),E=lOe(u,s,l,w);n.executeOnChange(k,y,E,x),m&&m(r,a,v,_),n.clearSuggestions()})),vRe(fRe(n),"isLoading",(function(){var e=!1;return m.default.Children.forEach(n.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),vRe(fRe(n),"isOpened",(function(){return _Oe(n.state.selectionStart)&&(0!==dOe(n.state.suggestions)||n.isLoading())})),vRe(fRe(n),"_queryId",0),n.suggestions={},n.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),n.handleCopy=n.handleCopy.bind(fRe(n)),n.handleCut=n.handleCut.bind(fRe(n)),n.handlePaste=n.handlePaste.bind(fRe(n)),n.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},n}return mRe(t,e),uRe(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return m.default.createElement("div",oRe({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,i=t.selectionEnd,r=this.props,a=r.value,o=r.children,s=pOe(o),l=sOe(a,s,n,"START"),u=sOe(a,s,i,"END"),c=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=lOe(a,l,u,c||d).replace(/\r/g,""),p=oOe(f,s),h={target:TOe({},e.target,{value:f})};this.executeOnChange(h,f,p,uOe(f,s))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,i=t.selectionEnd,r=this.props,a=r.children,o=r.value,s=pOe(a),l=sOe(o,s,n,"START"),u=sOe(o,s,i,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,i)),e.clipboardData.setData("text/react-mentions",o.slice(l,u))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,i=t.selectionEnd,r=this.props,a=r.children,o=r.value,s=pOe(a),l=sOe(o,s,n,"START"),u=sOe(o,s,i,"END"),c=[o.slice(0,l),o.slice(u)].join(""),d=oOe(c,s),f={target:TOe({},e.target,{value:d})};this.executeOnChange(f,c,d,uOe(o,s))}}}]),t}(m.default.Component);vRe(jOe,"propTypes",MOe),vRe(jOe,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var NOe=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},ROe=wOe({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:TOe({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}))(jOe),OOe={fontWeight:"inherit"},zOe=function(e){var t=e.display,n=e.style,i=e.className,r=e.classNames,a=ZRe(OOe,{style:n,className:i,classNames:r});return m.default.createElement("strong",a,t)};zOe.propTypes={onAdd:NW.func,onRemove:NW.func,renderSuggestion:NW.func,trigger:NW.oneOfType([NW.string,NW.instanceOf(RegExp)]),markup:NW.string,displayTransform:NW.func,allowSpaceInQuery:NW.bool,isLoading:NW.bool},zOe.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};var BOe=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function GOe(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),i=BOe.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof i&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var qOe=[".DS_Store","Thumbs.db"];function UOe(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?WOe(e.dataTransfer,e.type):HOe(e))];var n}))}))}function HOe(e){return(null!==e.target&&e.target.files?VOe(e.target.files):[]).map((function(e){return GOe(e)}))}function WOe(e,t){return xa(this,void 0,void 0,(function(){var n;return Ea(this,(function(i){switch(i.label){case 0:return e.items?(n=VOe(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(KOe))]):[3,2];case 1:return[2,YOe(JOe(i.sent()))];case 2:return[2,YOe(VOe(e.files).map((function(e){return GOe(e)})))]}}))}))}function YOe(e){return e.filter((function(e){return-1===qOe.indexOf(e.name)}))}function VOe(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function KOe(e){if("function"!=typeof e.webkitGetAsEntry)return QOe(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$Oe(t):QOe(e)}function JOe(e){return e.reduce((function(e,t){return Pa(e,Array.isArray(t)?JOe(t):[t])}),[])}function QOe(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=GOe(t);return Promise.resolve(n)}function ZOe(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){return[2,e.isDirectory?$Oe(e):XOe(e)]}))}))}function $Oe(e){var t=e.createReader();return new Promise((function(e,n){var i=[];!function r(){var a=this;t.readEntries((function(t){return xa(a,void 0,void 0,(function(){var a,o,s;return Ea(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return a=l.sent(),e(a),[3,4];case 3:return o=l.sent(),n(o),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ZOe)),i.push(s),r(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function XOe(e){return xa(this,void 0,void 0,(function(){return Ea(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var i=GOe(n,e.fullPath);t(i)}),(function(e){n(e)}))}))]}))}))}function eze(e,t){return"application/x-moz-file"===e.type||function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?i.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):r===t}))}return!0}(e,t)}function tze(e,t,n){if(nze(e.size)){if(nze(t)&&nze(n))return e.size>=t&&e.size<=n;if(nze(t))return e.size>=t;if(nze(n))return e.size<=n}return!0}function nze(e){return null!=e}function ize(e,t,n,i){return e.every((function(e){return eze(e,t)&&tze(e,n,i)}))}function rze(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function aze(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function oze(e){e.preventDefault()}function sze(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function lze(e){return-1!==e.indexOf("Edge/")}function uze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return sze(e)||lze(e)}function cze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.some((function(t){return!rze(e)&&t&&t.apply(void 0,[e].concat(i)),rze(e)}))}}function dze(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function fze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function pze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pze(n,!0).forEach((function(t){gze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pze(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mze(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var vze=i.forwardRef((function(e,t){var n=e.children,r=bze(mze(e,["children"])),a=r.open,o=mze(r,["open"]);return i.useImperativeHandle(t,(function(){return{open:a}}),[a]),m.default.createElement(i.Fragment,null,n(hze({},o,{open:a})))}));vze.displayName="Dropzone",vze.propTypes={children:NW.func,accept:NW.oneOfType([NW.string,NW.arrayOf(NW.string)]),multiple:NW.bool,preventDropOnDocument:NW.bool,noClick:NW.bool,noKeyboard:NW.bool,noDrag:NW.bool,noDragEventsBubbling:NW.bool,minSize:NW.number,maxSize:NW.number,disabled:NW.bool,getFilesFromEvent:NW.func,onFileDialogCancel:NW.func,onDragEnter:NW.func,onDragLeave:NW.func,onDragOver:NW.func,onDrop:NW.func,onDropAccepted:NW.func,onDropRejected:NW.func};var _ze={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function bze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accept,n=e.disabled,r=void 0!==n&&n,a=e.getFilesFromEvent,o=void 0===a?UOe:a,s=e.maxSize,l=void 0===s?1/0:s,u=e.minSize,c=void 0===u?0:u,d=e.multiple,f=void 0===d||d,p=e.onDragEnter,h=e.onDragLeave,g=e.onDragOver,m=e.onDrop,v=e.onDropAccepted,_=e.onDropRejected,b=e.onFileDialogCancel,y=e.preventDropOnDocument,w=void 0===y||y,F=e.noClick,k=void 0!==F&&F,x=e.noKeyboard,E=void 0!==x&&x,C=e.noDrag,S=void 0!==C&&C,D=e.noDragEventsBubbling,P=void 0!==D&&D,A=i.useRef(null),T=i.useRef(null),L=i.useReducer(yze,_ze),I=fze(L,2),M=I[0],j=I[1],N=M.isFocused,R=M.isFileDialogActive,O=M.draggedFiles,z=i.useCallback((function(){T.current&&(j({type:"openDialog"}),T.current.value=null,T.current.click())}),[j]),B=function(){R&&setTimeout((function(){T.current&&(T.current.files.length||(j({type:"closeDialog"}),"function"==typeof b&&b()))}),300)};i.useEffect((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[T,R,b]);var G=i.useCallback((function(e){A.current&&A.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),z()))}),[A,T]),q=i.useCallback((function(){j({type:"focus"})}),[]),U=i.useCallback((function(){j({type:"blur"})}),[]),H=i.useCallback((function(){k||(uze()?setTimeout(z,0):z())}),[T,k]),W=i.useRef([]),Y=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),W.current=[])};i.useEffect((function(){return w&&(document.addEventListener("dragover",oze,!1),document.addEventListener("drop",Y,!1)),function(){w&&(document.removeEventListener("dragover",oze),document.removeEventListener("drop",Y))}}),[A,w]);var V=i.useCallback((function(e){e.preventDefault(),e.persist(),ee(e),-1===W.current.indexOf(e.target)&&(W.current=[].concat(dze(W.current),[e.target])),aze(e)&&Promise.resolve(o(e)).then((function(t){rze(e)&&!P||(j({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),p&&p(e))}))}),[o,p,P]),K=i.useCallback((function(e){if(e.preventDefault(),e.persist(),ee(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return aze(e)&&g&&g(e),!1}),[g,P]),J=i.useCallback((function(e){e.preventDefault(),e.persist(),ee(e);var t=W.current.filter((function(t){return t!==e.target&&A.current&&A.current.contains(t)}));W.current=t,t.length>0||(j({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),aze(e)&&h&&h(e))}),[A,h,P]),Q=i.useCallback((function(e){e.preventDefault(),e.persist(),ee(e),W.current=[],j({type:"reset"}),aze(e)&&Promise.resolve(o(e)).then((function(n){if(!rze(e)||P){var i=[],r=[];n.forEach((function(e){eze(e,t)&&tze(e,c,l)?i.push(e):r.push(e)})),!f&&i.length>1&&r.push.apply(r,dze(i.splice(0))),j({acceptedFiles:i,rejectedFiles:r,type:"setFiles"}),m&&m(i,r,e),r.length>0&&_&&_(r,e),i.length>0&&v&&v(i,e)}}))}),[f,t,c,l,o,m,v,_,P]),Z=function(e){return r?null:e},$=function(e){return E?null:Z(e)},X=function(e){return S?null:Z(e)},ee=function(e){P&&e.stopPropagation()},te=i.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=mze(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return hze(gze({onKeyDown:$(cze(i,G)),onFocus:$(cze(a,q)),onBlur:$(cze(o,U)),onClick:Z(cze(s,H)),onDragEnter:X(cze(l,V)),onDragOver:X(cze(u,K)),onDragLeave:X(cze(c,J)),onDrop:X(cze(d,Q))},n,A),r||E?{}:{tabIndex:0},{},f)}}),[A,G,q,U,H,V,K,J,Q,E,S,r]),ne=i.useCallback((function(e){e.stopPropagation()}),[]),ie=i.useMemo((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,i=void 0===n?"ref":n,r=e.onChange,a=e.onClick,o=mze(e,["refKey","onChange","onClick"]),s=gze({accept:t,multiple:f,type:"file",style:{display:"none"},onChange:Z(cze(r,Q)),onClick:Z(cze(a,ne)),autoComplete:"off",tabIndex:-1},i,T);return hze({},s,{},o)}}),[T,t,f,Q,r]),re=O.length,ae=f||re<=1,oe=re>0&&ize(O,t,c,l),se=re>0&&(!oe||!ae);return hze({},M,{isDragAccept:oe,isDragReject:se,isFocused:N&&!r,getRootProps:te,getInputProps:ie,rootRef:A,inputRef:T,open:Z(z)})}function yze(e,t){switch(t.type){case"focus":return hze({},e,{isFocused:!0});case"blur":return hze({},e,{isFocused:!1});case"openDialog":return hze({},e,{isFileDialogActive:!0});case"closeDialog":return hze({},e,{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive;return hze({},e,{draggedFiles:t.draggedFiles,isDragActive:n});case"setFiles":return hze({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return hze({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[]});default:return e}}var wze={exports:{}};!function(e,t){var n;n=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function n(n,i){if("string"!=typeof n)throw new Error("slugify: string argument expected");var r=t[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},a=i.replacement||"-",o=n.split("").reduce((function(t,n){return t+(r[n]||e[n]||n)}),"").replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"").trim().replace(new RegExp("[\\s"+a+"]+","g"),a);return i.lower&&(o=o.toLowerCase()),i.strict&&(o=o.replace(new RegExp("[^a-zA-Z0-9"+a+"]","g"),"")),o}return n.extend=function(t){for(var n in t)e[n]=t[n]},n},e.exports=n(),e.exports.default=n()}(wze);var Fze,kze=wze.exports;!function(e){e.BOTH="both",e.MOUSE="mouse",e.TOUCH="touch"}(Fze||(Fze={}));var xze={exports:{}};!function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2));t.default=i.default,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function r(e){return e&&e.__esModule?e:{default:e}}t.default=u;var a=n(3),o=r(n(4)),s=n(14),l=r(n(15));function u(e){var t=e.activeClassName,n=void 0===t?"":t,r=e.activeIndex,o=void 0===r?-1:r,u=e.activeStyle,c=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,h=e.findChunks,g=e.highlightClassName,m=void 0===g?"":g,v=e.highlightStyle,_=void 0===v?{}:v,b=e.highlightTag,y=void 0===b?"mark":b,w=e.sanitize,F=e.searchWords,k=e.textToHighlight,x=e.unhighlightClassName,E=void 0===x?"":x,C=e.unhighlightStyle,S=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),D=(0,a.findAll)({autoEscape:c,caseSensitive:f,findChunks:h,sanitize:w,searchWords:F,textToHighlight:k}),P=y,A=-1,T="",L=void 0,I=(0,l.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",i({className:p},S,{children:D.map((function(e,t){var i=k.substr(e.start,e.end-e.start);if(e.highlight){A++;var r=void 0;r="object"==typeof m?f?m[i]:(m=I(m))[i.toLowerCase()]:m;var a=A===+o;T=r+" "+(a?n:""),L=!0===a&&null!=u?Object.assign({},_,u):_;var l={children:i,className:T,key:t,style:L};return"string"!=typeof P&&(l.highlightIndex=A),(0,s.createElement)(P,l)}return(0,s.createElement)("span",{children:i,className:E,key:t,style:C})}))}))}u.propTypes={activeClassName:o.default.string,activeIndex:o.default.number,activeStyle:o.default.object,autoEscape:o.default.bool,className:o.default.string,findChunks:o.default.func,highlightClassName:o.default.oneOfType([o.default.object,o.default.string]),highlightStyle:o.default.object,highlightTag:o.default.oneOfType([o.default.node,o.default.func,o.default.string]),sanitize:o.default.func,searchWords:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.instanceOf(RegExp)])).isRequired,textToHighlight:o.default.string.isRequired,unhighlightClassName:o.default.string,unhighlightStyle:o.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,o=void 0!==a&&a,s=e.findChunks,l=void 0===s?i:s,u=e.sanitize,c=e.searchWords,d=e.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:o,sanitize:u,searchWords:c,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var i=Math.max(n.end,t.end);e.push({start:n.start,end:i})}else e.push(n,t);return e}),[])},i=function(e){var t=e.autoEscape,n=e.caseSensitive,i=e.sanitize,r=void 0===i?a:i,o=e.searchWords,s=e.textToHighlight;return s=r(s),o.filter((function(e){return e})).reduce((function(e,i){i=r(i),t&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(i,n?"g":"gi"),o=void 0;o=a.exec(s);){var l=o.index,u=a.lastIndex;u>l&&e.push({start:l,end:u}),o.index==a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=i;var r=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,i=[],r=function(e,t,n){t-e>0&&i.push({start:e,end:t,highlight:n})};if(0===t.length)r(0,n,!1);else{var a=0;t.forEach((function(e){r(a,e.start,!1),r(e.start,e.end,!0),a=e.end})),r(a,n,!1)}return i};function a(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(t){var i=n(7),r=n(8),a=n(9),o=n(10),s=n(11),l=n(12);e.exports=function(e,n){var u="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:h(i.thatReturnsNull),arrayOf:function(e){return h((function(t,n,i,r,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var o=t[n];if(!Array.isArray(o))return new p("Invalid "+r+" `"+a+"` of type `"+v(o)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<o.length;l++){var u=e(o,l,i,r,a+"["+l+"]",s);if(u instanceof Error)return u}return null}))},element:h((function(t,n,i,r,a){var o=t[n];return e(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+v(o)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,i,r,a){if(!(t[n]instanceof e)){var o=e.name||c;return new p("Invalid "+r+" `"+a+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `")+i+"`, expected instance of `"+o+"`.")}var s;return null}))},node:h((function(e,t,n,i,r){return m(e[t])?null:new p("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,i,r,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var o=t[n],l=v(o);if("object"!==l)return new p("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in o)if(o.hasOwnProperty(u)){var c=e(o,u,i,r,a+"."+u,s);if(c instanceof Error)return c}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return h((function(t,n,i,r,a){for(var o=t[n],s=0;s<e.length;s++)if(f(o,e[s]))return null;return new p("Invalid "+r+" `"+a+"` of value `"+o+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(r),n),i.thatReturnsNull}return h((function(t,n,i,r,a){for(var o=0;o<e.length;o++)if(null==(0,e[o])(t,n,i,r,a,s))return null;return new p("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return h((function(t,n,i,r,a){var o=t[n],l=v(o);if("object"!==l)return new p("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in e){var c=e[u];if(c){var d=c(o,u,i,r,a+"."+u,s);if(d)return d}}return null}))},exact:function(e){return h((function(t,n,i,r,a){var l=t[n],u=v(l);if("object"!==u)return new p("Invalid "+r+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");var c=o({},t[n],e);for(var d in c){var f=e[d];if(!f)return new p("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(l,d,i,r,a+"."+d,s);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var i={},o=0;function l(l,u,d,f,h,g,m){if(f=f||c,g=g||d,m!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+d;!i[v]&&o<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,f),i[v]=!0,o++)}return null==u[d]?l?null===u[d]?new p("The "+h+" `"+g+"` is marked as required in `"+f+"`, but its value is `null`."):new p("The "+h+" `"+g+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(u,d,f,h,g)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function g(e){return h((function(t,n,i,r,a,o){var s=t[n];return v(s)!==e?new p("Invalid "+r+" `"+a+"` of type `"+_(s)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var i,r=n.call(t);if(n!==t.entries){for(;!(i=r.next()).done;)if(!m(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!m(a[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function _(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=_(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=l,d.PropTypes=d,d}}).call(t,n(5))},function(e,t){function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,i,r,a,o,s,l){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,a,o,s,l],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(5))},function(e,t,n){(function(t){var i=n(7);if("production"!==t.env.NODE_ENV){var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=0,a="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}};i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];r.apply(void 0,[t].concat(i))}}}e.exports=i}).call(t,n(5))},function(e,t){var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,s,l=a(e),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))i.call(o,c)&&(l[c]=o[c]);if(n){s=n(o);for(var d=0;d<s.length;d++)r.call(o,s[d])&&(l[s[d]]=o[s[d]])}}return l}},function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var i=n(8),r=n(9),a=n(11),o={};e.exports=function(e,n,s,l,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{i("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",l||"React class",s,c,typeof e[c]),d=e[c](n,c,l,s,null,a)}catch(e){d=e}if(r(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof d),d instanceof Error&&!(d.message in o)){o[d.message]=!0;var f=u?u():"";r(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){var i=n(7),r=n(8),a=n(11);e.exports=function(){function e(e,t,n,i,o,s){s!==a&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t){e.exports=m.default},function(e,t){var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=void 0,r=[],a=void 0,o=!1,s=function(e,n){return t(e,r[n])},l=function(){for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];return o&&i===this&&n.length===r.length&&n.every(s)?a:(o=!0,i=this,r=n,a=e.apply(this,n))};return l}}])}(xze);var Eze=x(xze.exports),Cze={exports:{}};!function(e,t){e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:V(e)}function i(e){return s(e)?e:K(e)}function r(e){return l(e)?e:J(e)}function a(e){return o(e)&&!u(e)?e:Q(e)}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(i,n),t(r,n),t(a,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=i,n.Indexed=r,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,_=v-1,b={},y={value:!1},w={value:!1};function F(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function x(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r<n;r++)i[r]=e[r+t];return i}function C(e){return void 0===e.size&&(e.size=e.__iterate(D)),e.size}function S(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function D(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return L(e,t,0)}function T(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I=0,M=1,j=2,N="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",O=N||R;function z(e){this.next=e}function B(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function G(){return{value:void 0,done:!0}}function q(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[R]);if("function"==typeof t)return t}function Y(e){return e&&"number"==typeof e.length}function V(e){return null==e?oe():o(e)?e.toSeq():ue(e)}function K(e){return null==e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function J(e){return null==e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Q(e){return(null==e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=I,z.VALUES=M,z.ENTRIES=j,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[O]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return de(this,e,t,!0)},V.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(K,V),K.prototype.toKeyedSeq=function(){return this},t(J,V),J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(e,t){return de(this,e,t,!1)},J.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Q,V),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=K,V.Set=Q,V.Indexed=J;var Z,$,X,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return Z||(Z=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():q(e)?new ie(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return Y(e)?new te(e):U(e)?new re(e):q(e)?new ie(e):void 0}function de(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function fe(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new z((function(){var e=r[n?a-o:o];return o++>a?G():B(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,i){return Array.isArray(t)?e.call(i,n,J(t).map((function(n,i){return he(e,n,i,t)}))):me(t)?e.call(i,n,K(t).map((function(n,i){return he(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?J(e).map(ge).toList():me(e)?K(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function _e(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&ve(r[1],e)&&(n||ve(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,i){if(n?!e.has(t):r?!ve(t,e.get(i,b)):!ve(e.get(i,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ye(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(X)return X;X=this}}function Fe(){throw TypeError("Abstract")}function ke(){}function xe(){}function Ee(){}V.prototype[ee]=!0,t(te,J),te.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,i=n.length-1,r=0;r<=i;r++)if(!1===e(n[t?i-r:r],r,this))return r+1;return r},te.prototype.__iterator=function(e,t){var n=this._array,i=n.length-1,r=0;return new z((function(){return r>i?G():B(e,r,n[t?i-r++:r++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new z((function(){var o=i[t?r-a:a];return a++>r?G():B(e,o,n[o])}))},ne.prototype[h]=!0,t(ie,J),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),i=0;if(U(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!U(n))return new z(G);var i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value)}))},t(re,J),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a<r.length;)if(!1===e(r[a],a++,this))return a;for(;!(n=i.next()).done;){var o=n.value;if(r[a]=o,!1===e(o,a++,this))break}return a},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,i=this._iteratorCache,r=0;return new z((function(){if(r>=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return B(e,r,i[r++])}))},t(be,J),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new be(this._value,T(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,i=0;return new z((function(){return i<n.size?B(e,i++,n._value):G()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):_e(e)},t(we,J),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=A(e,this.size),(t=T(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;a<=n;a++){if(!1===e(r,a,this))return a+1;r+=t?-i:i}return a},we.prototype.__iterator=function(e,t){var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;return new z((function(){var o=r;return r+=t?-i:i,a>n?G():B(e,a++,o)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:_e(this,e)},t(Fe,n),t(ke,Fe),t(xe,Fe),t(Ee,Fe),Fe.Keyed=ke,Fe.Indexed=xe,Fe.Set=Ee;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function Se(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Se(n)}if("string"===t)return e.length>ze?Pe(e):Ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Te(e);if("function"==typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=qe[e];return void 0===t&&(t=Ae(e),Ge===Be&&(Ge=0,qe={}),Ge++,qe[e]=t),t}function Ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Se(t)}function Te(e){var t;if(Ne&&void 0!==(t=je.get(e)))return t;if(void 0!==(t=e[Oe]))return t;if(!Ie){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Oe]))return t;if(void 0!==(t=Me(e)))return t}if(t=++Re,1073741824&Re&&(Re=0),Ne)je.set(e,t);else{if(void 0!==Le&&!1===Le(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ie)Object.defineProperty(e,Oe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Oe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Oe]=t}}return t}var Le=Object.isExtensible,Ie=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Me(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var je,Ne="function"==typeof WeakMap;Ne&&(je=new WeakMap);var Re=0,Oe="__immutablehash__";"function"==typeof Symbol&&(Oe=Symbol(Oe));var ze=16,Be=255,Ge=0,qe={};function Ue(e){ye(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?rt():We(e)&&!c(e)?e:rt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(He,ke),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return at(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return at(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=mt(this,Fn(e),t,n);return i===b?void 0:i},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return qt(dn(this,e))},He.prototype.sortBy=function(e,t){return qt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=We;var Ye,Ve="@@__IMMUTABLE_MAP__@@",Ke=He.prototype;function Je(e,t){this.ownerID=e,this.entries=t}function Qe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ke);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ye||(Ye=it(0))}function at(e,t,n){var i,r;if(e._root){var a=F(y),o=F(w);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;r=1,i=new Je(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===b?e:(k(s),k(o),new Xe(t,i,[r,a]))}function st(e){return e.constructor===Xe||e.constructor===$e}function lt(e,t,n,i,r){if(e.keyHash===i)return new $e(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&_,s=(0===n?i:i>>>n)&_;return new Qe(t,1<<o|1<<s,o===s?[lt(e,t,n+m,i,r)]:(a=new Xe(t,i,r),o<s?[e,a]:[a,e]))}function ut(e,t,n,i){e||(e=new x);for(var r=new Xe(e,De(n),[n,i]),a=0;a<t.length;a++){var o=t[a];r=r.update(e,0,void 0,o[0],o[1])}return r}function ct(e,t,n,i){for(var r=0,a=0,o=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==i&&(r|=l,o[a++]=c)}return new Qe(e,r,o)}function dt(e,t,n,i,r){for(var a=0,o=new Array(v),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Ze(e,a+1,o)}function ft(e,t,n){for(var r=[],a=0;a<n.length;a++){var s=n[a],l=i(s);o(s)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return gt(e,t,r)}function pt(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,i){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var r=e(t,n,i);return ve(t,r)?t:r}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var i=t?function(n,i){e.update(i,b,(function(e){return e===b?n:t(e,n,i)}))}:function(t,n){e.set(n,t)},r=0;r<n.length;r++)n[r].forEach(i)})):e.constructor(n[0])}function mt(e,t,n,i){var r=e===b,a=t.next();if(a.done){var o=r?n:e,s=i(o);return s===o?e:s}ye(r||e&&e.set,"invalid keyPath");var l=a.value,u=r?b:e.get(l,b),c=mt(u,t,n,i);return c===u?e:c===b?e.remove(l):(r?rt():e).set(l,c)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function _t(e,t,n,i){var r=i?e:E(e);return r[t]=n,r}function bt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s<r;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function yt(e,t,n){var i=e.length-1;if(n&&t===i)return e.pop(),e;for(var r=new Array(i),a=0,o=0;o<i;o++)o===t&&(a=1),r[o]=e[o+a];return r}Ke[Ve]=!0,Ke[g]=Ke.remove,Ke.removeIn=Ke.deleteIn,Je.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},Je.prototype.update=function(e,t,n,i,r,a,o){for(var s=r===b,l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),!s||1!==l.length){if(!d&&!s&&l.length>=wt)return ut(e,l,i,r);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new Je(e,p)}},Qe.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=1<<((0===e?t:t>>>e)&_),a=this.bitmap;return 0==(a&r)?i:this.nodes[vt(a&r-1)].get(e+m,t,n,i)},Qe.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&r===b)return this;var d=vt(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=ot(p,e,t+m,n,i,r,a,o);if(h===p)return this;if(!c&&h&&f.length>=Ft)return dt(e,f,u,s,h);if(c&&!h&&2===f.length&&st(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&st(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?_t(f,d,h,g):yt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=y,this):new Qe(e,v,y)},Ze.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=(0===e?t:t>>>e)&_,a=this.nodes[r];return a?a.get(e+m,t,n,i):i},Ze.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=r===b,u=this.nodes,c=u[s];if(l&&!c)return this;var d=ot(c,e,t+m,n,i,r,a,o);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<kt)return ct(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=_t(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ze(e,f,h)},$e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=r===b;if(n!==this.keyHash)return s?this:(k(o),k(a),lt(this,e,t,n,[i,r]));for(var l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),s&&2===c)return new Xe(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new $e(e,this.keyHash,p)},Xe.prototype.get=function(e,t,n,i){return ve(n,this.entry[0])?this.entry[1]:i},Xe.prototype.update=function(e,t,n,i,r,a,o){var s=r===b,l=ve(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(k(o),s?void k(a):l?e&&e===this.ownerID?(this.entry[1]=r,this):new Xe(e,this.keyHash,[i,r]):(k(a),lt(this,e,t,De(i),[i,r])))},Je.prototype.iterate=$e.prototype.iterate=function(e,t){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===e(n[t?r-i:i]))return!1},Qe.prototype.iterate=Ze.prototype.iterate=function(e,t){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var a=n[t?r-i:i];if(a&&!1===a.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,i=t.node,r=t.index++;if(i.entry){if(0===r)return tt(e,i.entry)}else if(i.entries){if(r<=(n=i.entries.length-1))return tt(e,i.entries[this._reverse?n-r:r])}else if(r<=(n=i.nodes.length-1)){var a=i.nodes[this._reverse?n-r:r];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return G()};var wt=v/4,Ft=v/2,kt=v/4;function xt(e){var t=Mt();if(null==e)return t;if(Et(e))return e;var n=r(e),i=n.size;return 0===i?t:(Ue(i),i>0&&i<v?It(0,i,m,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(i),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ct])}t(xt,xe),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=Ot(this,e+=this._origin);return n&&n.array[e&_]}return t},xt.prototype.set=function(e,t){return jt(this,e,t)},xt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var i=0;i<e.length;i++)n.set(t+i,e[i])}))},xt.prototype.pop=function(){return zt(this,0,-1)},xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},xt.prototype.shift=function(){return zt(this,1)},xt.prototype.merge=function(){return Bt(this,void 0,arguments)},xt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},xt.prototype.mergeDeep=function(){return Bt(this,pt,arguments)},xt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ht(t),n)},xt.prototype.setSize=function(e){return zt(this,0,e)},xt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:zt(this,A(e,n),T(t,n))},xt.prototype.__iterator=function(e,t){var n=0,i=Lt(this,t);return new z((function(){var t=i();return t===Tt?G():B(e,n++,t)}))},xt.prototype.__iterate=function(e,t){for(var n,i=0,r=Lt(this,t);(n=r())!==Tt&&!1!==e(n,i++,this););return i},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?It(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},xt.isList=Et;var Ct="@@__IMMUTABLE_LIST__@@",St=xt.prototype;function Dt(e,t){this.array=e,this.ownerID=t}St[Ct]=!0,St[g]=St.remove,St.setIn=Ke.setIn,St.deleteIn=St.removeIn=Ke.removeIn,St.update=Ke.update,St.updateIn=Ke.updateIn,St.mergeIn=Ke.mergeIn,St.mergeDeepIn=Ke.mergeDeepIn,St.withMutations=Ke.withMutations,St.asMutable=Ke.asMutable,St.asImmutable=Ke.asImmutable,St.wasAltered=Ke.wasAltered,Dt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var i=n>>>t&_;if(i>=this.array.length)return new Dt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!r)return this;var s=Rt(this,e);if(!a)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},Dt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var i,r=n-1>>>t&_;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-m,n))===a&&r===this.array.length-1)return this}var o=Rt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Pt,At,Tt={};function Lt(e,t){var n=e._origin,i=e._capacity,r=Gt(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;return u>v&&(u=v),function(){if(l===u)return Tt;var e=t?--u:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);return c>v&&(c=v),function(){for(;;){if(s){var e=s();if(e!==Tt)return e;s=null}if(u===c)return Tt;var n=t?--c:u++;s=o(l&&l[n],r-m,a+(n<<r))}}}}function It(e,t,n,i,r,a,o){var s=Object.create(St);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=i,s._tail=r,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function Mt(){return Pt||(Pt=It(0,0,m))}function jt(e,t,n){if((t=S(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=F(w);return t>=Gt(e._capacity)?i=Nt(i,e.__ownerID,0,t,n,a):r=Nt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):It(e._origin,e._capacity,e._level,r,i):e}function Nt(e,t,n,i,r,a){var o,s=i>>>n&_,l=e&&s<e.array.length;if(!l&&void 0===r)return e;if(n>0){var u=e&&e.array[s],c=Nt(u,t,n-m,i,r,a);return c===u?e:((o=Rt(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(k(a),o=Rt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function Rt(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Ot(e,t){if(t>=Gt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,i=e._level;n&&i>0;)n=n.array[t>>>i&_],i-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new x,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new Dt(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=m);c&&(o+=c,r+=c,s+=c,a+=c);for(var d=Gt(a),f=Gt(s);f>=1<<l+m;)u=new Dt(u&&u.array.length?[u]:[],i),l+=m;var p=e._tail,h=f<d?Ot(e,s-1):f>d?new Dt([],i):p;if(p&&f>d&&o<a&&p.array.length){for(var g=u=Rt(u,i),v=l;v>m;v-=m){var b=d>>>v&_;g=g.array[b]=Rt(g.array[b],i)}g.array[d>>>m&_]=p}if(s<a&&(h=h&&h.removeAfter(i,0,s)),o>=f)o-=f,s-=f,l=m,u=null,h=h&&h.removeBefore(i,0,o);else if(o>r||f<d){for(c=0;u;){var y=o>>>l&_;if(y!==f>>>l&_)break;y&&(c+=(1<<l)*y),l-=m,u=u.array[y]}u&&o>r&&(u=u.removeBefore(i,l,o-c)),u&&f<d&&(u=u.removeAfter(i,l,f-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):It(o,s,l,u,h)}function Bt(e,t,n){for(var i=[],a=0,s=0;s<n.length;s++){var l=n[s],u=r(l);u.size>a&&(a=u.size),o(l)||(u=u.map((function(e){return pe(e)}))),i.push(u)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function Gt(e){return e<v?0:e-1>>>m<<m}function qt(e){return null==e?Wt():Ut(e)?e:Wt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return We(e)&&c(e)}function Ht(e,t,n,i){var r=Object.create(qt.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Wt(){return At||(At=Ht(rt(),Mt()))}function Yt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===b){if(!l)return e;o.size>=v&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Ht(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Jt(e){this._iter=e,this.size=e.size}function Qt(e){this._iter=e,this.size=e.size}function Zt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=yn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===j){var i=e.__iterator(t,n);return new z((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===M?I:M,n)},t}function $t(e,t,n){var i=bn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,b);return a===b?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(j,r);return new z((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return B(i,s,t.call(n,o[1],s,e),r)}))},i}function Xt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=yn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=bn(e);return i&&(r.has=function(i){var r=e.get(i,b);return r!==b&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,b);return a!==b&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(j,a),s=0;return new z((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return B(r,i?u:s++,c,a)}}))},r}function tn(e,t,n){var i=He().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(c(e)?qt():He()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=_n(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),P(t,n,r))return e;var a=A(t,r),o=T(n,r);if(a!=a||o!=o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l==l&&(s=l<0?0:l);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(u.get=function(t,n){return(t=S(this,t))>=0&&t<s?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=o++<a))return u++,!1!==t(e,i?n:u-1,r)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var r=0!==s&&e.__iterator(t,n),o=0,l=0;return new z((function(){for(;o++<a;)r.next();if(++l>s)return G();var e=r.next();return i||t===M?e:B(t,l-1,t===I?void 0:e.value[1],e)}))},u}function an(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(j,r),s=!0;return new z((function(){if(!s)return G();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?i===j?e:B(i,l,u,e):(s=!1,G())}))},i}function on(e,t,n,i){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(j,a),l=!0,u=0;return new z((function(){var e,a,c;do{if((e=s.next()).done)return i||r===M?e:B(r,u++,r===I?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,o))}while(l);return r===j?e:B(r,a,c,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var u=new te(r);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function ln(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,u){var c=this;e.__iterate((function(e,r){return(!t||u<t)&&o(e)?l(e,u+1):!1===i(e,n?r:a++,c)&&(s=!0),!s}),r)}return l(e,0),a},i.__iteratorUncached=function(i,r){var a=e.__iterator(i,r),s=[],l=0;return new z((function(){for(;a;){var e=a.next();if(!1===e.done){var u=e.value;if(i===j&&(u=u[1]),t&&!(s.length<t)||!o(u))return n?e:B(i,l++,u,e);s.push(a),a=u.__iterator(i,r)}else a=s.pop()}return G()}))},i}function un(e,t,n){var i=_n(e);return e.toSeq().map((function(r,a){return i(t.call(n,r,a,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,i){var r=this,a=0;return e.__iterate((function(e,i){return(!a||!1!==n(t,a++,r))&&!1!==n(e,a++,r)}),i),a},n.__iteratorUncached=function(n,i){var r,a=e.__iterator(M,i),o=0;return new z((function(){return(!r||o%2)&&(r=a.next()).done?r:o%2?B(n,o++,t):B(n,o++,r.value,r)}))},n}function dn(e,t,n){t||(t=wn);var i=s(e),r=0,a=e.toSeq().map((function(t,i){return[i,t,r++,n?n(t,i,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),i?K(a):l(e)?J(a):Q(a)}function fn(e,t,n){if(t||(t=wn),n){var i=e.toSeq().map((function(t,i){return[t,n(t,i,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return i&&i[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var i=e(n,t);return 0===i&&n!==t&&(null==n||n!=n)||i>0}function hn(e,t,i){var r=bn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(M,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),H(r?e.reverse():e)})),o=0,s=!1;return new z((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?G():B(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),C(e)}function _n(e){return s(e)?i:l(e)?r:a}function bn(e){return Object.create((s(e)?K:l(e)?J:Q).prototype)}function yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function wn(e,t){return e>t?1:e<t?-1:0}function Fn(e){var t=H(e);if(!t){if(!Y(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function kn(e,t){var n,i=function(a){if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var o=Object.keys(e);Sn(r,o),r.size=o.length,r._name=t,r._keys=o,r._defaultValues=e}this._map=He(a)},r=i.prototype=Object.create(xn);return r.constructor=i,i}t(qt,He),qt.of=function(){return this(arguments)},qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},qt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},qt.prototype.set=function(e,t){return Yt(this,e,t)},qt.prototype.remove=function(e){return Yt(this,e,b)},qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},qt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},qt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},qt.isOrderedMap=Ut,qt.prototype[h]=!0,qt.prototype[g]=qt.prototype.remove,t(Vt,K),Vt.prototype.get=function(e,t){return this._iter.get(e,t)},Vt.prototype.has=function(e){return this._iter.has(e)},Vt.prototype.valueSeq=function(){return this._iter.valueSeq()},Vt.prototype.reverse=function(){var e=this,t=Xt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Vt.prototype.map=function(e,t){var n=this,i=$t(this,e,t);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(e,t)}),i},Vt.prototype.__iterate=function(e,t){var n,i=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,i)}:(n=t?vn(this):0,function(r){return e(r,t?--n:n++,i)}),t)},Vt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(M,t),i=t?vn(this):0;return new z((function(){var r=n.next();return r.done?r:B(e,t?--i:i++,r.value,r)}))},Vt.prototype[h]=!0,t(Kt,J),Kt.prototype.includes=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this,i=0;return this._iter.__iterate((function(t){return e(t,i++,n)}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t),i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value,t)}))},t(Jt,Q),Jt.prototype.has=function(e){return this._iter.includes(e)},Jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Qt,K),Qt.prototype.entrySeq=function(){return this._iter.toSeq()},Qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var i=o(t);return e(i?t.get(1):t[1],i?t.get(0):t[0],n)}}),t)},Qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var i=t.value;if(i){mn(i);var r=o(i);return B(e,r?i.get(0):i[0],r?i.get(1):i[1],t)}}}))},Kt.prototype.cacheResult=Vt.prototype.cacheResult=Jt.prototype.cacheResult=Qt.prototype.cacheResult=yn,t(kn,ke),kn.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},kn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,rt()))},kn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},kn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},kn.prototype.__iterate=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var xn=kn.prototype;function En(e,t,n){var i=Object.create(Object.getPrototypeOf(e));return i._map=t,i.__ownerID=n,i}function Cn(e){return e._name||e.constructor.name||"Record"}function Sn(e,t){try{t.forEach(Dn.bind(void 0,e))}catch(e){}}function Dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ye(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pn(e){return null==e?Nn():An(e)&&!c(e)?e:Nn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function An(e){return!(!e||!e[Ln])}xn[g]=xn.remove,xn.deleteIn=xn.removeIn=Ke.removeIn,xn.merge=Ke.merge,xn.mergeWith=Ke.mergeWith,xn.mergeIn=Ke.mergeIn,xn.mergeDeep=Ke.mergeDeep,xn.mergeDeepWith=Ke.mergeDeepWith,xn.mergeDeepIn=Ke.mergeDeepIn,xn.setIn=Ke.setIn,xn.update=Ke.update,xn.updateIn=Ke.updateIn,xn.withMutations=Ke.withMutations,xn.asMutable=Ke.asMutable,xn.asImmutable=Ke.asImmutable,t(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(i(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Mn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Mn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Mn(this,this._map.clear())},Pn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Rn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Rn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,i){return e(i,i,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pn.isSet=An;var Tn,Ln="@@__IMMUTABLE_SET__@@",In=Pn.prototype;function Mn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(In);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Tn||(Tn=jn(rt()))}function Rn(e){return null==e?qn():On(e)?e:qn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function On(e){return An(e)&&c(e)}In[Ln]=!0,In[g]=In.remove,In.mergeDeep=In.merge,In.mergeDeepWith=In.mergeWith,In.withMutations=Ke.withMutations,In.asMutable=Ke.asMutable,In.asImmutable=Ke.asImmutable,In.__empty=Nn,In.__make=jn,t(Rn,Pn),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(e){return this(i(e).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=On;var zn,Bn=Rn.prototype;function Gn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function qn(){return zn||(zn=Gn(Wt()))}function Un(e){return null==e?Jn():Hn(e)?e:Jn().unshiftAll(e)}function Hn(e){return!(!e||!e[Yn])}Bn[h]=!0,Bn.__empty=qn,Bn.__make=Gn,t(Un,xe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=S(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Jn()},Un.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=A(e,this.size);if(T(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Kn(i,r)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new z((function(){if(i){var t=i.value;return i=i.next,B(e,n++,t)}return G()}))},Un.isStack=Hn;var Wn,Yn="@@__IMMUTABLE_STACK__@@",Vn=Un.prototype;function Kn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Jn(){return Wn||(Wn=Kn(0))}function Qn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Yn]=!0,Vn.withMutations=Ke.withMutations,Vn.asMutable=Ke.asMutable,Vn.asImmutable=Ke.asImmutable,Vn.wasAltered=Ke.wasAltered,n.Iterator=z,Qn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Kt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return qt(this.toKeyedSeq())},toOrderedSet:function(){return Rn(s(this)?this.valueSeq():this)},toSet:function(){return Pn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Jt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return xt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(j)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!=i?i.toString():""})),t},keys:function(){return this.__iterator(I)},map:function(e,t){return gn(this,$t(this,e,t))},reduce:function(e,t,n){var i,r;return Ue(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Xt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return _e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Qt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=Fn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,b):b)===b)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?ni(e):ai)},minBy:function(e,t){return fn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Zn=n.prototype;Zn[d]=!0,Zn[O]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=ii,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,function(){try{Object.defineProperty(Zn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Qn(i,{flip:function(){return gn(this,Zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var $n=i.prototype;function Xn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"==typeof e?JSON.stringify(e):e}function ri(){return E(arguments)}function ai(e,t){return e<t?1:e>t?-1:0}function oi(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(De(e),De(t))|0}:function(e,t){i=i+li(De(e),De(t))|0}:t?function(e){i=31*i+De(e)|0}:function(e){i=i+De(e)|0}),i)}function si(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Se((t=Ce(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return $n[f]=!0,$n[O]=Zn.entries,$n.__toJS=Zn.toObject,$n.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},Qn(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Xt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,cn(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),J.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,on(this,e,t,!1))},zip:function(){return gn(this,hn(this,ri,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),r.prototype[p]=!0,r.prototype[h]=!0,Qn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Zn.includes,Qn(K,i.prototype),Qn(J,r.prototype),Qn(Q,a.prototype),Qn(ke,i.prototype),Qn(xe,r.prototype),Qn(Ee,a.prototype),{Iterable:n,Seq:V,Collection:Fe,Map:He,OrderedMap:qt,List:xt,Stack:Un,Set:Pn,OrderedSet:Rn,Record:kn,Range:we,Repeat:be,is:ve,fromJS:pe}}()}(Cze);var Sze=Cze.exports.OrderedMap,Dze={createFromArray:function(e){return Sze(e.map((function(e){return[e.getKey(),e]})))}},Pze=Dze;var Aze=Cze.exports,Tze=Aze.Map,Lze=Aze.OrderedSet,Ize=Aze.Record,Mze=Lze(),jze={style:Mze,entity:null},Nze=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(e){return this.getStyle().includes(e)},i.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return i.create(n)},i.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return i.create(n)},i.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return i.create(n)},i.create=function(e){if(!e)return Rze;var t=Tze({style:Mze,entity:null}).merge(e),n=Oze.get(t);if(n)return n;var r=new i(t);return Oze=Oze.set(t,r),r},i.fromJS=function(e){var t=e.style,n=e.entity;return new i({style:Array.isArray(t)?Lze(t):t,entity:Array.isArray(n)?Lze(n):n})},i}(Ize(jze)),Rze=new Nze,Oze=Tze([[Tze(jze),Rze]]);Nze.EMPTY=Rze;var zze=Nze;var Bze=function(e,t,n,i){if(e.size){var r=0;e.reduce((function(e,a,o){return t(e,a)||(n(e)&&i(r,o),r=o),a})),n(e.last())&&i(r,e.count())}};var Gze=zze,qze=Bze,Uze=Cze.exports,Hze=Uze.List,Wze=Uze.Map,Yze=Uze.OrderedSet,Vze=Uze.Record,Kze=Uze.Repeat,Jze=Yze(),Qze=Vze({key:"",type:"unstyled",text:"",characterList:Hze(),depth:0,data:Wze()}),Zze=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Hze(Kze(Gze.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return 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(e){var t=this.getCharacterList().get(e);return t?t.getStyle():Jze},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},r.findStyleRanges=function(e,t){qze(this.getCharacterList(),$ze,e,t)},r.findEntityRanges=function(e,t){qze(this.getCharacterList(),Xze,e,t)},i}(Qze);function $ze(e,t){return e.getStyle()===t.getStyle()}function Xze(e,t){return e.getEntity()===t.getEntity()}var eBe=Zze;var tBe=zze,nBe=Bze,iBe=Cze.exports,rBe=iBe.List,aBe=iBe.Map,oBe=iBe.OrderedSet,sBe=iBe.Record,lBe=iBe.Repeat,uBe=oBe(),cBe={parent:null,characterList:rBe(),data:aBe(),depth:0,key:"",text:"",type:"unstyled",children:rBe(),prevSibling:null,nextSibling:null},dBe=function(e,t){return e.getStyle()===t.getStyle()},fBe=function(e,t){return e.getEntity()===t.getEntity()},pBe=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=rBe(lBe(tBe.EMPTY,n.length))),e},hBe=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cBe;return e.call(this,pBe(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return 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(e){var t=this.getCharacterList().get(e);return t?t.getStyle():uBe},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.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(e,t){nBe(this.getCharacterList(),dBe,e,t)},r.findEntityRanges=function(e,t){nBe(this.getCharacterList(),fBe,e,t)},i}(sBe(cBe)),gBe=hBe,mBe=zze,vBe=Cze.exports.Map;function _Be(e,t,n,i){var r=e.getBlockMap(),a=t.getStartKey(),o=t.getStartOffset(),s=t.getEndKey(),l=t.getEndOffset(),u=r.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===s})).concat(vBe([[s,r.get(s)]])).map((function(e,t){var r,u;a===s?(r=o,u=l):(r=t===a?o:0,u=t===s?l:e.getLength());for(var c,d=e.getCharacterList();r<u;)c=d.get(r),d=d.set(r,i?mBe.applyStyle(c,n):mBe.removeStyle(c,n)),r++;return e.set("characterList",d)}));return e.merge({blockMap:r.merge(u),selectionBefore:t,selectionAfter:t})}var bBe={add:function(e,t,n){return _Be(e,t,n,!0)},remove:function(e,t,n){return _Be(e,t,n,!1)}},yBe=zze;var wBe=function(e,t,n,i){for(var r=t,a=e.getCharacterList();r<n;)a=a.set(r,yBe.applyEntity(a.get(r),i)),r++;return e.set("characterList",a)},FBe=Cze.exports;var kBe=function(e,t,n){var i=e.getBlockMap(),r=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).toOrderedMap().merge(FBe.OrderedMap([[o,i.get(o)]])).map((function(e,t){var i=t===r?a:0,l=t===o?s:e.getLength();return wBe(e,i,l,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})},xBe={getRemovalRange:function(e,t,n,i,r){var a=n.split(" ");a=a.map((function(e,t){if("forward"===r){if(t>0)return" "+e}else if(t<a.length-1)return e+" ";return e}));for(var o,s=i,l=null,u=null,c=0;c<a.length;c++){if(e<(o=s+a[c].length)&&s<t)null!==l||(l=s),u=o;else if(null!==l)break;s=o}var d=i+n.length,f=l===i,p=u===d;return(!f&&p||f&&!p)&&("forward"===r?u!==d&&u++:l!==i&&l--),{start:l,end:u}}},EBe="production"!==go.env.NODE_ENV?function(e){}:function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")};var CBe=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(EBe(t),!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;(a=new Error(t.replace(/%s/g,(function(){return String(i[o++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}},SBe=CBe;var DBe=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==go.env.NODE_ENV?SBe(!1,"Entity key not found in this range."):SBe(!1)),n},PBe=xBe,ABe=DBe,TBe=CBe;function LBe(e,t,n,i,r,a,o){var s=n.getStartOffset(),l=n.getEndOffset(),u=e.__get(r).getMutability(),c=o?s:l;if("MUTABLE"===u)return n;var d=ABe(t,r).filter((function(e){return c<=e.end&&c>=e.start}));1!=d.length&&("production"!==go.env.NODE_ENV?TBe(!1,"There should only be one entity range within this removal range."):TBe(!1));var f=d[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});a||(o?l=f.end:s=f.start);var p=PBe.getRemovalRange(s,l,t.getText().slice(f.start,f.end),f.start,i);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var IBe=function(e,t,n,i,r){var a=i.getStartOffset(),o=i.getEndOffset(),s=t.getEntityAt(a),l=n.getEntityAt(o-1);if(!s&&!l)return i;var u=i;if(s&&s===l)u=LBe(e,t,u,r,s,!0,!0);else if(s&&l){var c=LBe(e,t,u,r,s,!1,!0),d=LBe(e,n,u,r,l,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var f=LBe(e,t,u,r,s,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var p=LBe(e,n,u,r,l,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},MBe={},jBe=Math.pow(2,24);var NBe=function(){for(var e;void 0===e||MBe.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*jBe).toString(32);return MBe[e]=!0,e},RBe=gBe,OBe=NBe,zBe=Cze.exports.OrderedMap,BBe=function(e){return e.first()instanceof RBe?function(e){var t,n={};return zBe(e.withMutations((function(e){e.forEach((function(i,r){var a=i.getKey(),o=i.getNextSiblingKey(),s=i.getPrevSiblingKey(),l=i.getChildKeys(),u=i.getParentKey(),c=OBe();if(n[a]=c,o&&(e.get(o)?e.setIn([o,"prevSibling"],c):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(i.getKey()),c))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([a,"children"],i.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return zBe(e.toArray().map((function(e){var t=OBe();return[t,e.set("key",t)]})))}(e)},GBe=zze,qBe=Bze,UBe=CBe;function HBe(e,t,n){var i=t.getCharacterList(),r=n>0?i.get(n-1):void 0,a=n<i.count()?i.get(n):void 0,o=r?r.getEntity():void 0,s=a?a.getEntity():void 0;if(s&&s===o&&"MUTABLE"!==e.__get(s).getMutability()){for(var l,u=function(e,t,n){var i;return qBe(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(i={start:e,end:t})})),"object"!=typeof i&&("production"!==go.env.NODE_ENV?UBe(!1,"Removal range must exist within character list."):UBe(!1)),i}(i,s,n),c=u.start,d=u.end;c<d;)l=i.get(c),i=i.set(c,GBe.applyEntity(l,null)),c++;return t.set("characterList",i)}return t}var WBe=function(e,t){var n=e.getBlockMap(),i=e.getEntityMap(),r={},a=t.getStartKey(),o=t.getStartOffset(),s=n.get(a),l=HBe(i,s,o);l!==s&&(r[a]=l);var u=t.getEndKey(),c=t.getEndOffset(),d=n.get(u);a===u&&(d=l);var f=HBe(i,d,c);return f!==d&&(r[u]=f),Object.keys(r).length?e.merge({blockMap:n.merge(r),selectionAfter:t}):e.set("selectionAfter",t)},YBe=BBe,VBe=WBe,KBe=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=t.getEndKey(),a=t.getEndOffset(),o=VBe(e,t).getBlockMap(),s=o.keySeq(),l=s.indexOf(n),u=s.indexOf(r)+1;return YBe(o.slice(l,u).map((function(e,t){var o=e.getText(),s=e.getCharacterList();return n===r?e.merge({text:o.slice(i,a),characterList:s.slice(i,a)}):t===n?e.merge({text:o.slice(i),characterList:s.slice(i)}):t===r?e.merge({text:o.slice(0,a),characterList:s.slice(0,a)}):e})))};var JBe=function(e,t,n){var i=e;if(n===i.count())t.forEach((function(e){i=i.push(e)}));else if(0===n)t.reverse().forEach((function(e){i=i.unshift(e)}));else{var r=i.slice(0,n),a=i.slice(n);i=r.concat(t,a).toList()}return i},QBe=Pze,ZBe=gBe,$Be=JBe,XBe=CBe,eGe=BBe,tGe=Cze.exports.List,nGe=function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(r),l=s.getText(),u=s.getCharacterList(),c=r,d=a+i.getText().length,f=null;switch(o){case"MERGE_OLD_DATA_TO_NEW_DATA":f=i.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":f=i.getData()}var p=s.getType();l&&"unstyled"===p&&(p=i.getType());var h=s.merge({text:l.slice(0,a)+i.getText()+l.slice(a),characterList:$Be(u,i.getCharacterList(),a),type:p,data:f});return e.merge({blockMap:n.set(r,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:d,focusKey:c,focusOffset:d,isBackward:!1})})},iGe=function(e,t,n,i,r,a){var o=n.first()instanceof ZBe,s=[],l=i.size,u=n.get(r),c=i.first(),d=i.last(),f=d.getLength(),p=d.getKey(),h=o&&(!u.getChildKeys().isEmpty()||!c.getChildKeys().isEmpty());n.forEach((function(e,t){t===r?(h?s.push(e):s.push(function(e,t,n){var i=e.getText(),r=e.getCharacterList(),a=i.slice(0,t),o=r.slice(0,t),s=n.first();return e.merge({text:a+s.getText(),characterList:o.concat(s.getCharacterList()),type:a?e.getType():s.getType(),data:s.getData()})}(e,a,i)),i.slice(h?0:1,l-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var i=e.getText(),r=e.getCharacterList(),a=i.length,o=i.slice(t,a),s=r.slice(t,a),l=n.last();return l.merge({text:l.getText()+o,characterList:l.getCharacterList().concat(s),data:l.getData()})}(e,a,i))):s.push(e)}));var g=QBe.createFromArray(s);return o&&(g=function(e,t,n,i){return e.withMutations((function(t){var r=n.getKey(),a=i.getKey(),o=n.getNextSiblingKey(),s=n.getParentKey(),l=function(e,t){var n=e.getKey(),i=e,r=[];for(t.get(n)&&r.push(n);i&&i.getNextSiblingKey();){var a=i.getNextSiblingKey();if(!a)break;r.push(a),i=t.get(a)}return r}(i,e),u=l[l.length-1];if(t.get(a)?(t.setIn([r,"nextSibling"],a),t.setIn([a,"prevSibling"],r)):(t.setIn([r,"nextSibling"],i.getNextSiblingKey()),t.setIn([i.getNextSiblingKey(),"prevSibling"],r)),t.setIn([u,"nextSibling"],o),o&&t.setIn([o,"prevSibling"],u),l.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var c=e.get(s).getChildKeys(),d=c.indexOf(r)+1,f=c.toArray();f.splice.apply(f,[d,0].concat(l)),t.setIn([s,"children"],tGe(f))}}))}(g,0,u,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},rGe=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==go.env.NODE_ENV?XBe(!1,"`insertFragment` should only be called with a collapsed selection state."):XBe(!1));var r=e.getBlockMap(),a=eGe(n),o=t.getStartKey(),s=t.getStartOffset(),l=r.get(o);return l instanceof ZBe&&(l.getChildKeys().isEmpty()||("production"!==go.env.NODE_ENV?XBe(!1,"`insertFragment` should not be called when a container node is selected."):XBe(!1))),1===a.size?nGe(e,t,r,a.first(),o,s,i):iGe(e,t,r,a,o,s)},aGe=JBe,oGe=CBe,sGe=Cze.exports.Repeat;var lGe=function(e,t,n,i){t.isCollapsed()||("production"!==go.env.NODE_ENV?oGe(!1,"`insertText` should only be called with a collapsed range."):oGe(!1));var r=null;if(null!=n&&(r=n.length),null==r||0===r)return e;var a=e.getBlockMap(),o=t.getStartKey(),s=t.getStartOffset(),l=a.get(o),u=l.getText(),c=l.merge({text:u.slice(0,s)+n+u.slice(s,l.getLength()),characterList:aGe(l.getCharacterList(),sGe(i,r).toList(),s)}),d=s+r;return e.merge({blockMap:a.set(o,c),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},uGe=Cze.exports.Map;var cGe=function(e,t,n){var i=t.getStartKey(),r=t.getEndKey(),a=e.getBlockMap(),o=a.toSeq().skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===r})).concat(uGe([[r,a.get(r)]])).map(n);return e.merge({blockMap:a.merge(o),selectionBefore:t,selectionAfter:t})},dGe=gBe,fGe=function(e,t){if(!(e instanceof dGe))return null;var n=e.getNextSiblingKey();if(n)return n;var i=e.getParentKey();if(!i)return null;for(var r=t.get(i);r&&!r.getNextSiblingKey();){var a=r.getParentKey();r=a?t.get(a):null}return r?r.getNextSiblingKey():null},pGe=gBe,hGe=fGe,gGe=Cze.exports;gGe.List;var mGe=gGe.Map,vGe=function(e,t,n){if(e){var i=t.get(e);i&&t.set(e,n(i))}},_Ge=function(e,t){var n=[];if(!e)return n;for(var i=t.get(e);i&&i.getParentKey();){var r=i.getParentKey();r&&n.push(r),i=r?t.get(r):null}return n},bGe=function(e,t,n){if(!e)return null;for(var i=n.get(e.getKey()).getNextSiblingKey();i&&!t.get(i);)i=n.get(i).getNextSiblingKey()||null;return i},yGe=function(e,t,n){if(!e)return null;for(var i=n.get(e.getKey()).getPrevSiblingKey();i&&!t.get(i);)i=n.get(i).getPrevSiblingKey()||null;return i},wGe=function(e,t,n,i){return e.withMutations((function(r){if(vGe(t.getKey(),r,(function(e){return e.merge({nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})})),vGe(n.getKey(),r,(function(e){return e.merge({nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})})),_Ge(t.getKey(),i).forEach((function(e){return vGe(e,r,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return r.get(e)})),nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})}))})),vGe(t.getNextSiblingKey(),r,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),vGe(t.getPrevSiblingKey(),r,(function(e){return e.merge({nextSibling:bGe(e,r,i)})})),vGe(n.getNextSiblingKey(),r,(function(e){return e.merge({prevSibling:yGe(e,r,i)})})),vGe(n.getPrevSiblingKey(),r,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),_Ge(n.getKey(),i).forEach((function(e){vGe(e,r,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return r.get(e)})),nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})}))})),function(e,t){var n=[];if(!e)return n;for(var i=hGe(e,t);i&&t.get(i);){var r=t.get(i);n.push(i),i=r.getParentKey()?hGe(r,t):null}return n}(n,i).forEach((function(e){return vGe(e,r,(function(e){return e.merge({nextSibling:bGe(e,r,i),prevSibling:yGe(e,r,i)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();vGe(n.getKey(),r,(function(e){return e.merge({prevSibling:a})})),vGe(a,r,(function(e){return e.merge({nextSibling:n.getKey()})}));var o=a?e.get(a):null,s=o?o.getParentKey():null;if(t.getChildKeys().forEach((function(e){vGe(e,r,(function(e){return e.merge({parent:s})}))})),null!=s){var l=e.get(s);vGe(s,r,(function(e){return e.merge({children:l.getChildKeys().concat(t.getChildKeys())})}))}vGe(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),r,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},FGe=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var i=e.slice(0,t),r=e.slice(n);e=i.concat(r).toList()}return e},kGe=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),r=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=i.get(r),u=i.get(o),c=l instanceof pGe,d=[];if(c){var f=u.getChildKeys(),p=_Ge(o,i);u.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([o]))),d=d.concat(_Ge(hGe(u,i),i))}n=l===u?FGe(l.getCharacterList(),a,s):l.getCharacterList().slice(0,a).concat(u.getCharacterList().slice(s));var h=l.merge({text:l.getText().slice(0,a)+u.getText().slice(s),characterList:n}),g=c&&0===a&&0===s&&u.getParentKey()===r&&null==u.getPrevSiblingKey()?mGe([[r,null]]):i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).filter((function(e,t){return-1===d.indexOf(t)})).concat(mGe([[o,null]])).map((function(e,t){return t===r?h:null})),m=i.merge(g).filter((function(e){return!!e}));return c&&l!==u&&(m=wGe(m,l,u,i)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:r,anchorOffset:a,focusKey:r,focusOffset:a,isBackward:!1})})},xGe=gBe,EGe=NBe,CGe=Cze.exports,SGe=CBe,DGe=cGe,PGe=CGe.List,AGe=CGe.Map,TGe=function(e,t,n){if(e){var i=t.get(e);i&&t.set(e,n(i))}},LGe=function(e,t){t.isCollapsed()||("production"!==go.env.NODE_ENV?SGe(!1,"Selection range must be collapsed."):SGe(!1));var n=t.getAnchorKey(),i=e.getBlockMap(),r=i.get(n),a=r.getText();if(!a){var o=r.getType();if("unordered-list-item"===o||"ordered-list-item"===o)return DGe(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),l=r.getCharacterList(),u=EGe(),c=r instanceof xGe,d=r.merge({text:a.slice(0,s),characterList:l.slice(0,s)}),f=d.merge({key:u,text:a.slice(s),characterList:l.slice(s),data:AGe()}),p=i.toSeq().takeUntil((function(e){return e===r})),h=i.toSeq().skipUntil((function(e){return e===r})).rest(),g=p.concat([[n,d],[u,f]],h).toOrderedMap();return c&&(r.getChildKeys().isEmpty()||("production"!==go.env.NODE_ENV?SGe(!1,"ContentBlockNode must not have children"):SGe(!1)),g=function(e,t,n){return e.withMutations((function(e){var i=t.getKey(),r=n.getKey();TGe(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(i)+1,a=t.toArray();return a.splice(n,0,r),e.merge({children:PGe(a)})})),TGe(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:r})})),TGe(i,e,(function(e){return e.merge({nextSibling:r})})),TGe(r,e,(function(e){return e.merge({prevSibling:i})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},IGe=zze,MGe=bBe,jGe=kBe,NGe=IBe,RGe=KBe,OGe=rGe,zGe=lGe,BGe=CBe,GGe=cGe,qGe=WBe,UGe=kGe,HGe=LGe,WGe=Cze.exports.OrderedSet,YGe={replaceText:function(e,t,n,i,r){var a=qGe(e,t),o=UGe(a,t),s=IGe.create({style:i||WGe(),entity:r||null});return zGe(o,o.getSelectionAfter(),n,s)},insertText:function(e,t,n,i,r){return t.isCollapsed()||("production"!==go.env.NODE_ENV?BGe(!1,"Target range must be collapsed for `insertText`."):BGe(!1)),YGe.replaceText(e,t,n,i,r)},moveText:function(e,t,n){var i=RGe(e,t),r=YGe.removeRange(e,t,"backward");return YGe.replaceWithFragment(r,n,i)},replaceWithFragment:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=qGe(e,t),a=UGe(r,t);return OGe(a,a.getSelectionAfter(),n,i)},removeRange:function(e,t,n){var i,r,a,o;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),r=t.getFocusKey(),a=e.getBlockForKey(i),o=e.getBlockForKey(r);var s=t.getStartOffset(),l=t.getEndOffset(),u=a.getEntityAt(s),c=o.getEntityAt(l-1);if(i===r&&u&&u===c){var d=NGe(e.getEntityMap(),a,o,t,n);return UGe(e,d)}var f=qGe(e,t);return UGe(f,t)},splitBlock:function(e,t){var n=qGe(e,t),i=UGe(n,t);return HGe(i,i.getSelectionAfter())},applyInlineStyle:function(e,t,n){return MGe.add(e,t,n)},removeInlineStyle:function(e,t,n){return MGe.remove(e,t,n)},setBlockType:function(e,t,n){return GGe(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return GGe(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return GGe(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var i=qGe(e,t);return jGe(i,t,n)}},VGe=YGe;var KGe=function(e){return Object.keys(e).map((function(t){return e[t]}))};function JGe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QGe=Bze,ZGe=KGe,$Ge=Cze.exports,XGe=$Ge.List,eqe=$Ge.Repeat,tqe=$Ge.Record,nqe=function(){return!0},iqe=tqe({start:null,end:null}),rqe=tqe({start:null,end:null,decoratorKey:null,leaves:null}),aqe={generate:function(e,t,n){var i=t.getLength();if(!i)return XGe.of(new rqe({start:0,end:0,decoratorKey:null,leaves:XGe.of(new iqe({start:0,end:0}))}));var r=[],a=n?n.getDecorations(t,e):XGe(eqe(null,i)),o=t.getCharacterList();return QGe(a,sqe,nqe,(function(e,t){r.push(new rqe({start:e,end:t,decoratorKey:a.get(e),leaves:oqe(o.slice(e,t).toList(),e)}))})),XGe(r)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["leaves"]);return new rqe(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){JGe(e,t,n[t])}))}return e}({},n,{leaves:null!=t?XGe(Array.isArray(t)?t:ZGe(t)).map((function(e){return iqe(e)})):null}))}};function oqe(e,t){var n=[],i=e.map((function(e){return e.getStyle()})).toList();return QGe(i,sqe,nqe,(function(e,i){n.push(new iqe({start:e+t,end:i+t}))})),XGe(n)}function sqe(e,t){return e===t}var lqe=aqe;var uqe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},i}((0,Cze.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),cqe=uqe;var dqe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function fqe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pqe=cqe,hqe=CBe,gqe=dqe,mqe=(0,Cze.exports.Map)(),vqe=gqe();function _qe(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var bqe={getLastCreatedEntityKey:function(){return _qe("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),bqe.__getLastCreatedEntityKey()},create:function(e,t,n){return _qe("DraftEntity.create","contentState.createEntity"),bqe.__create(e,t,n)},add:function(e){return _qe("DraftEntity.add","contentState.addEntity"),bqe.__add(e)},get:function(e){return _qe("DraftEntity.get","contentState.getEntity"),bqe.__get(e)},__getAll:function(){return mqe},__loadWithEntities:function(e){mqe=e,vqe=gqe()},mergeData:function(e,t){return _qe("DraftEntity.mergeData","contentState.mergeEntityData"),bqe.__mergeData(e,t)},replaceData:function(e,t){return _qe("DraftEntity.replaceData","contentState.replaceEntityData"),bqe.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return vqe},__create:function(e,t,n){return bqe.__add(new pqe({type:e,mutability:t,data:n||{}}))},__add:function(e){return vqe=gqe(),mqe=mqe.set(vqe,e),vqe},__get:function(e){var t=mqe.get(e);return t||("production"!==go.env.NODE_ENV?hqe(!1,"Unknown DraftEntity key: %s.",e):hqe(!1)),t},__mergeData:function(e,t){var n=bqe.__get(e),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){fqe(e,t,n[t])}))}return e}({},n.getData(),t),r=n.set("data",i);return mqe=mqe.set(e,r),r},__replaceData:function(e,t){var n=bqe.__get(e).set("data",t);return mqe=mqe.set(e,n),n}},yqe=bqe;var wqe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return 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(e,t,n){var i=this.getAnchorKey(),r=this.getFocusKey();if(i===r&&i===e){var a=this.getStartOffset(),o=this.getEndOffset();return t<=a&&a<=n||t<=o&&o<=n}if(e!==i&&e!==r)return!1;var s=e===i?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},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()},i.createEmpty=function(e){return new i({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,Cze.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),Fqe=wqe,kqe=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},xqe=new RegExp("\r","g");var Eqe=function(e){return e.replace(xqe,"")};function Cqe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){Sqe(e,t,n[t])}))}return e}function Sqe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dqe=Pze,Pqe=zze,Aqe=eBe,Tqe=gBe,Lqe=yqe,Iqe=Fqe,Mqe=NBe,jqe=KGe,Nqe=kqe,Rqe=Cze.exports,Oqe=Eqe,zqe=Rqe.List,Bqe=Rqe.Record,Gqe=Rqe.Repeat,qqe=Rqe.Map,Uqe=Rqe.OrderedMap,Hqe=Bqe({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),Wqe=Nqe("draft_tree_data_support")?Tqe:Aqe,Yqe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getEntityMap=function(){return Lqe},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(e){return this.getBlockMap().get(e)},r.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},r.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},r.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},r.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).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(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},r.getLastCreatedEntityKey=function(){return Lqe.__getLastCreatedEntityKey()},r.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(e,t,n){return Lqe.__create(e,t,n),this},r.mergeEntityData=function(e,t){return Lqe.__mergeData(e,t),this},r.replaceEntityData=function(e,t){return Lqe.__replaceData(e,t),this},r.addEntity=function(e){return Lqe.__add(e),this},r.getEntity=function(e){return Lqe.__get(e)},r.getAllEntities=function(){return Lqe.__getAll()},r.loadWithEntities=function(e){return Lqe.__loadWithEntities(e)},i.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=Dqe.createFromArray(n),a=r.isEmpty()?new Iqe:Iqe.createEmpty(r.first().getKey());return new i({blockMap:r,entityMap:t||Lqe,selectionBefore:a,selectionAfter:a})},i.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),r=n.map((function(e){return e=Oqe(e),new Wqe({key:Mqe(),text:e,type:"unstyled",characterList:zqe(Gqe(Pqe.EMPTY,e.length))})}));return i.createFromBlockArray(r)},i.fromJS=function(e){return new i(Cqe({},e,{blockMap:Uqe(e.blockMap).map(i.createContentBlockFromJS),selectionBefore:new Iqe(e.selectionBefore),selectionAfter:new Iqe(e.selectionAfter)}))},i.createContentBlockFromJS=function(e){var t=e.characterList;return new Wqe(Cqe({},e,{data:qqe(e.data),characterList:null!=t?zqe((Array.isArray(t)?t:jqe(t)).map((function(e){return Pqe.fromJS(e)}))):void 0}))},i}(Hqe),Vqe=Yqe,Kqe=CBe,Jqe="LTR",Qqe=null;function Zqe(e){return e===Jqe||"RTL"===e}function $qe(e){return Zqe(e)||("production"!==go.env.NODE_ENV?Kqe(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Kqe(!1)),e===Jqe?"ltr":"rtl"}function Xqe(e){Qqe=e}var eUe={NEUTRAL:"NEUTRAL",LTR:Jqe,RTL:"RTL",isStrong:Zqe,getHTMLDir:$qe,getHTMLDirIfDifferent:function(e,t){return Zqe(e)||("production"!==go.env.NODE_ENV?Kqe(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Kqe(!1)),Zqe(t)||("production"!==go.env.NODE_ENV?Kqe(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):Kqe(!1)),e===t?null:$qe(e)},setGlobalDir:Xqe,initGlobalDir:function(){Xqe(Jqe)},getGlobalDir:function(){return Qqe||this.initGlobalDir(),Qqe||("production"!==go.env.NODE_ENV?Kqe(!1,"Global direction not set."):Kqe(!1)),Qqe}},tUe=eUe,nUe=CBe,iUe="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",rUe="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",aUe=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+iUe+rUe+"]"),oUe=new RegExp("["+iUe+rUe+"]");function sUe(e){var t=aUe.exec(e);return null==t?null:t[0]}function lUe(e){var t=sUe(e);return null==t?tUe.NEUTRAL:oUe.exec(t)?tUe.RTL:tUe.LTR}function uUe(e,t){if(t=t||tUe.NEUTRAL,!e.length)return t;var n=lUe(e);return n===tUe.NEUTRAL?t:n}function cUe(e,t){return t||(t=tUe.getGlobalDir()),tUe.isStrong(t)||("production"!==go.env.NODE_ENV?nUe(!1,"Fallback direction must be a strong direction"):nUe(!1)),uUe(e,t)}var dUe={firstStrongChar:sUe,firstStrongCharDir:lUe,resolveBlockDir:uUe,getDirection:cUe,isDirectionLTR:function(e,t){return cUe(e,t)===tUe.LTR},isDirectionRTL:function(e,t){return cUe(e,t)===tUe.RTL}};function fUe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pUe,hUe=dUe,gUe=eUe,mUe=CBe,vUe=function(){function e(e){fUe(this,"_defaultDir",void 0),fUe(this,"_lastDir",void 0),e?gUe.isStrong(e)||("production"!==go.env.NODE_ENV?mUe(!1,"Default direction must be a strong direction (LTR or RTL)"):mUe(!1)):e=gUe.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=hUe.getDirection(e,this._lastDir),this._lastDir},e}(),_Ue=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},bUe=vUe,yUe=Cze.exports,wUe=_Ue,FUe=yUe.OrderedMap,kUe={getDirectionMap:function(e,t){pUe?pUe.reset():pUe=new bUe;var n=e.getBlockMap(),i=n.valueSeq().map((function(e){return wUe(pUe).getDirection(e.getText())})),r=FUe(n.keySeq().zip(i));return null!=t&&yUe.is(t,r)?t:r}};function xUe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){EUe(e,t,n[t])}))}return e}function EUe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CUe=lqe,SUe=Vqe,DUe=kUe,PUe=Fqe,AUe=Cze.exports,TUe=AUe.OrderedSet,LUe=AUe.Record,IUe=AUe.Stack,MUe=AUe.OrderedMap,jUe=AUe.List,NUe=LUe({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:IUe(),selection:null,treeMap:null,undoStack:IUe()}),RUe=function(){t.createEmpty=function(e){return t.createWithContent(SUe.createFromText(""),e)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var i=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:IUe(),redoStack:IUe(),decorator:n||null,selection:PUe.createEmpty(i)})},t.create=function(e){var n=e.currentContent,i=xUe({},e,{treeMap:zUe(n,e.decorator),directionMap:DUe.getDirectionMap(n)});return new t(new NUe(i))},t.fromJS=function(e){return new t(new NUe(xUe({},e,{directionMap:null!=e.directionMap?MUe(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?TUe(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?SUe.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?IUe(e.redoStack.map((function(e){return SUe.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new PUe(e.selection):e.selection,treeMap:null!=e.treeMap?MUe(e.treeMap).map((function(e){return jUe(e).map((function(e){return CUe.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?IUe(e.undoStack.map((function(e){return SUe.fromJS(e)}))):e.undoStack,currentContent:SUe.fromJS(e.currentContent)})))},t.set=function(e,n){var i=e.getImmutable().withMutations((function(t){var i=t.get("decorator"),r=i;null===n.decorator?r=null:n.decorator&&(r=n.decorator);var a=n.currentContent||e.getCurrentContent();if(r!==i){var o,s=t.get("treeMap");return o=r&&i?function(e,t,n,i,r){return n.merge(t.toSeq().filter((function(t){return i.getDecorations(t,e)!==r.getDecorations(t,e)})).map((function(t){return CUe.generate(e,t,i)})))}(a,a.getBlockMap(),s,r,i):zUe(a,r),void t.merge({decorator:r,treeMap:o,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,i){var r=e.getCurrentContent().set("entityMap",n),a=r.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return CUe.generate(r,e,i)})))}(e,a.getBlockMap(),a.getEntityMap(),r)),t.merge(n)}));return new t(i)};var e=t.prototype;function t(e){EUe(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i>0)return r.getInlineStyleAt(i-1);if(r.getLength())return r.getInlineStyleAt(0);return GUe(e,n)}(t,n):function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i<r.getLength())return r.getInlineStyleAt(i);if(i>0)return r.getInlineStyleAt(i-1);return GUe(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return OUe(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),OUe(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),i=n.getKey(),r=n.getLength();return t.acceptSelection(e,new PUe({anchorKey:i,anchorOffset:r,focusKey:i,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=DUe.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),s=e.getCurrentContent(),l=e.getUndoStack(),u=n;o!==s.getSelectionAfter()||BUe(e,i)?(l=l.push(s),u=u.set("selectionBefore",o)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(u=u.set("selectionBefore",s.getSelectionBefore()));var c=e.getInlineStyleOverride(),d=["adjust-depth","change-block-type","split-block"];-1===d.indexOf(i)&&(c=null);var f={currentContent:u,directionMap:a,undoStack:l,redoStack:IUe(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:c};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=DUe.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=DUe.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function OUe(e,t,n){return RUe.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function zUe(e,t){return e.getBlockMap().map((function(n){return CUe.generate(e,n,t)})).toOrderedMap()}function BUe(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function GUe(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):TUe()}var qUe=RUe,UUe=gBe,HUe=fGe,WUe=Cze.exports,YUe=CBe,VUe=WUe.OrderedMap,KUe=WUe.List,JUe=function(e,t,n){if(e){var i=t.get(e);i&&t.set(e,n(i))}},QUe=function(e,t,n,i,r){if(!r)return e;var a="after"===i,o=t.getKey(),s=n.getKey(),l=t.getParentKey(),u=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),d=n.getParentKey(),f=a?n.getNextSiblingKey():s,p=a?s:n.getPrevSiblingKey();return e.withMutations((function(e){JUe(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(o))})})),JUe(c,e,(function(e){return e.merge({nextSibling:u})})),JUe(u,e,(function(e){return e.merge({prevSibling:c})})),JUe(f,e,(function(e){return e.merge({prevSibling:o})})),JUe(p,e,(function(e){return e.merge({nextSibling:o})})),JUe(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),i=a?n+1:0!==n?n-1:0,r=t.toArray();return r.splice(i,0,o),e.merge({children:KUe(r)})})),JUe(o,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))},ZUe=function(e,t,n,i){"replace"===i&&("production"!==go.env.NODE_ENV?YUe(!1,"Replacing blocks is not supported."):YUe(!1));var r=n.getKey(),a=t.getKey();a===r&&("production"!==go.env.NODE_ENV?YUe(!1,"Block cannot be moved next to itself."):YUe(!1));var o=e.getBlockMap(),s=t instanceof UUe,l=[t],u=o.delete(a);s&&(l=[],u=o.withMutations((function(e){var n=t.getNextSiblingKey(),i=HUe(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===a})).takeWhile((function(e){var t=e.getKey(),r=t===a,o=n&&t!==n,s=!n&&e.getParentKey()&&(!i||t!==i);return!!(r||o||s)})).forEach((function(t){l.push(t),e.delete(t.getKey())}))})));var c=u.toSeq().takeUntil((function(e){return e===n})),d=u.toSeq().skipUntil((function(e){return e===n})).skip(1),f=l.map((function(e){return[e.getKey(),e]})),p=VUe();if("before"===i){var h=e.getBlockBefore(r);h&&h.getKey()===t.getKey()&&("production"!==go.env.NODE_ENV?YUe(!1,"Block cannot be moved next to itself."):YUe(!1)),p=c.concat([].concat(f,[[r,n]]),d).toOrderedMap()}else if("after"===i){var g=e.getBlockAfter(r);g&&g.getKey()===a&&("production"!==go.env.NODE_ENV?YUe(!1,"Block cannot be moved next to itself."):YUe(!1)),p=c.concat([[r,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:QUe(p,t,n,i,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:a,focusKey:a})})};function $Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){XUe(e,t,n[t])}))}return e}function XUe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eHe=Pze,tHe=zze,nHe=eBe,iHe=gBe,rHe=VGe,aHe=qUe,oHe=NBe,sHe=Cze.exports,lHe=ZUe,uHe=kqe("draft_tree_data_support"),cHe=uHe?iHe:nHe,dHe=sHe.List,fHe=sHe.Repeat,pHe={insertAtomicBlock:function(e,t,n){var i=e.getCurrentContent(),r=e.getSelection(),a=rHe.removeRange(i,r,"backward"),o=a.getSelectionAfter(),s=rHe.splitBlock(a,o),l=s.getSelectionAfter(),u=rHe.setBlockType(s,l,"atomic"),c=tHe.create({entity:t}),d={key:oHe(),type:"atomic",text:n,characterList:dHe(fHe(c,n.length))},f={key:oHe(),type:"unstyled"};uHe&&(d=$Ue({},d,{nextSibling:f.key}),f=$Ue({},f,{prevSibling:d.key}));var p=[new cHe(d),new cHe(f)],h=eHe.createFromArray(p),g=rHe.replaceWithFragment(u,l,h),m=g.merge({selectionBefore:r,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return aHe.push(e,m,"insert-fragment")},moveAtomicBlock:function(e,t,n,i){var r,a=e.getCurrentContent(),o=e.getSelection();if("before"===i||"after"===i){var s=a.getBlockForKey("before"===i?n.getStartKey():n.getEndKey());r=lHe(a,t,s,i)}else{var l=rHe.removeRange(a,n,"backward"),u=l.getSelectionAfter(),c=l.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())r=lHe(l,t,c,"before");else if(u.getEndOffset()===c.getLength())r=lHe(l,t,c,"after");else{var d=rHe.splitBlock(l,u),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());r=lHe(d,t,p,"before")}}var h=r.merge({selectionBefore:o,selectionAfter:r.getSelectionAfter().set("hasFocus",!0)});return aHe.push(e,h,"move-block")}};var hHe=Cze.exports.List,gHe=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(i,r){var a=0;(0,i.strategy)(e,(function(e,t){(function(e,t,n){for(var i=t;i<n;i++)if(null!=e[i])return!1;return!0})(n,e,t)&&(!function(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}(n,e,t,r+"."+a),a++)}),t)})),hHe(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var mHe=gHe;function vHe(e){return e.replace(/\//g,"-")}var _He=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(vHe).join(" "):Array.prototype.map.call(arguments,vHe).join(" ")},bHe=m.default,yHe=_He,wHe=(0,Cze.exports.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:bHe.createElement("ul",{className:yHe("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:bHe.createElement("ol",{className:yHe("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:bHe.createElement("pre",{className:yHe("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),FHe={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},kHe={exports:{}};!function(e,t){!function(n,i){var r="function",a="undefined",o="object",s="string",l="model",u="name",c="type",d="vendor",f="version",p="architecture",h="console",g="mobile",m="tablet",v="smarttv",_="wearable",b="embedded",y="Amazon",w="Apple",F="ASUS",k="BlackBerry",x="Firefox",E="Google",C="Huawei",S="LG",D="Microsoft",P="Motorola",A="Opera",T="Samsung",L="Sony",I="Xiaomi",M="Zebra",j="Facebook",N=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},R=function(e,t){return typeof e===s&&-1!==O(t).indexOf(O(e))},O=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===a?e:e.substring(0,255)},B=function(e,t){for(var n,a,s,l,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=a=0;n<f.length&&!u;)if(u=f[n++].exec(e))for(s=0;s<p.length;s++)c=u[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==r?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==r||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):i:this[l[0]]=c?l[1].call(this,c,l[2]):i:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):i):this[l]=c||i;d+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===o&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(R(t[n][r],e))return"?"===n?i:n}else if(R(t[n],e))return"?"===n?i:n;return e},q={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"},U={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,A]],[/(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|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],f],[/\bfocus\/([\w\.]+)/i],[f,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[f,[u,x]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,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],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,"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],[u,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,O]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",O]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,O]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,T],[c,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,T],[c,g]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[d,w],[c,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,w],[c,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,C],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[l,[d,C],[c,g]],[/\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)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,I],[c,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,I],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[c,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[c,g]],[/\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],[l,[d,P],[c,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,P],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,S],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,S],[c,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[c,g]],[/(pixel c)\b/i],[l,[d,E],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,E],[c,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,L],[c,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,L],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[c,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,y],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,y],[c,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,k],[c,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,F],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,F],[c,g]],[/(nexus 9)/i],[l,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[c,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[c,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,"Sharp"],[c,g]],[/(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],[d,l,[c,g]],[/(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],[d,l,[c,m]],[/(surface duo)/i],[l,[d,D],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[c,g]],[/(u304aa)/i],[l,[d,"AT&T"],[c,g]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[c,g]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[l,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[c,g]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[c,g]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[c,m]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[c,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[c,g]],[/\b(ph-1) /i],[l,[d,"Essential"],[c,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,l,[c,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,D],[c,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,M],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,M],[c,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[c,h]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[c,h]],[/(playstation [345portablevi]+)/i],[l,[d,L],[c,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,D],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,T],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,S],[c,v]],[/(apple) ?tv/i],[d,[l,"Apple TV"],[c,v]],[/crkey/i],[[l,"Chromecast"],[d,E],[c,v]],[/droid.+aft(\w)( bui|\))/i],[l,[d,y],[c,v]],[/\(dtv[\);].+(aquos)/i],[l,[d,"Sharp"],[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,z],[l,z],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/((pebble))app/i],[d,l,[c,_]],[/droid.+; (glass) \d/i],[l,[d,E],[c,_]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,M],[c,_]],[/(quest( 2)?)/i],[l,[d,j],[c,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[c,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[c,g]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"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],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,G,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,G,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],f],[/(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],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,f]]},H=function(e,t){if(typeof e===o&&(t=e,e=i),!(this instanceof H))return new H(e,t).getResult();var r=e||(typeof n!==a&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),l=t?function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n}(U,t):U;return this.getBrowser=function(){var e={};return e.name=i,e.version=i,B.call(e,r,l.browser),e.major=function(e){return typeof e===s?e.replace(/[^\d\.]/g,"").split(".")[0]:i}(e.version),e},this.getCPU=function(){var e={};return e.architecture=i,B.call(e,r,l.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,B.call(e,r,l.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,B.call(e,r,l.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,B.call(e,r,l.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===s&&e.length>255?z(e,255):e,this},this.setUA(r),this};H.VERSION="0.7.31",H.BROWSER=N([u,f,"major"]),H.CPU=N([p]),H.DEVICE=N([l,d,c,h,g,v,m,_,b]),H.ENGINE=H.OS=N([u,f]),e.exports&&(t=e.exports=H),t.UAParser=H;var W=typeof n!==a&&(n.jQuery||n.Zepto);if(W&&!W.ua){var Y=new H;W.ua=Y.getResult(),W.ua.get=function(){return Y.getUA()},W.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:k)}(kHe,kHe.exports);var xHe="Unknown",EHe={"Mac OS":"Mac OS X"};var CHe=(new(0,kHe.exports)).getResult(),SHe=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(CHe.browser.version),DHe={browserArchitecture:CHe.cpu.architecture||xHe,browserFullVersion:CHe.browser.version||xHe,browserMinorVersion:SHe.minor||xHe,browserName:CHe.browser.name||xHe,browserVersion:CHe.browser.major||xHe,deviceName:CHe.device.model||xHe,engineName:CHe.engine.name||xHe,engineVersion:CHe.engine.version||xHe,platformArchitecture:CHe.cpu.architecture||xHe,platformName:function(e){return EHe[e]||e}(CHe.os.name)||xHe,platformVersion:CHe.os.version||xHe,platformFullVersion:CHe.os.version||xHe},PHe=DHe,AHe=CBe,THe=/\./,LHe=/\|\|/,IHe=/\s+\-\s+/,MHe=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,jHe=/^(\d*)(.*)/;function NHe(e,t){var n=e.split(LHe);return n.length>1?n.some((function(e){return VHe.contains(e,t)})):function(e,t){var n=e.split(IHe);if(n.length>0&&n.length<=2||("production"!==go.env.NODE_ENV?AHe(!1,'the "-" operator expects exactly 2 operands'):AHe(!1)),1===n.length)return RHe(n[0],t);var i=n[0],r=n[1];return qHe(i)&&qHe(r)||("production"!==go.env.NODE_ENV?AHe(!1,'operands to the "-" operator must be simple (no modifiers)'):AHe(!1)),RHe(">="+i,t)&&RHe("<="+r,t)}(e=n[0].trim(),t)}function RHe(e,t){if(""===(e=e.trim()))return!0;var n=t.split(THe),i=BHe(e),r=i.modifier,a=i.rangeComponents;switch(r){case"<":return OHe(n,a);case"<=":return function(e,t){var n=YHe(e,t);return-1===n||0===n}(n,a);case">=":return zHe(n,a);case">":return function(e,t){return 1===YHe(e,t)}(n,a);case"~":case"~>":return function(e,t){var n=t.slice(),i=t.slice();i.length>1&&i.pop();var r=i.length-1,a=parseInt(i[r],10);GHe(a)&&(i[r]=a+1+"");return zHe(e,n)&&OHe(e,i)}(n,a);default:return function(e,t){return 0===YHe(e,t)}(n,a)}}function OHe(e,t){return-1===YHe(e,t)}function zHe(e,t){var n=YHe(e,t);return 1===n||0===n}function BHe(e){var t=e.split(THe),n=t[0].match(MHe);return n||("production"!==go.env.NODE_ENV?AHe(!1,"expected regex to match but it did not"):AHe(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function GHe(e){return!isNaN(e)&&isFinite(e)}function qHe(e){return!BHe(e).modifier}function UHe(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function HHe(e,t){var n=e.match(jHe)[1],i=t.match(jHe)[1],r=parseInt(n,10),a=parseInt(i,10);return GHe(r)&&GHe(a)&&r!==a?WHe(r,a):WHe(e,t)}function WHe(e,t){return typeof e!=typeof t&&("production"!==go.env.NODE_ENV?AHe(!1,'"a" and "b" must be of the same type'):AHe(!1)),e>t?1:e<t?-1:0}function YHe(e,t){for(var n=function(e,t){UHe(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var i=t[n].match(/^[x*]$/i);if(i&&(t[n]=e[n]="0","*"===i[0]&&n===t.length-1))for(var r=n;r<e.length;r++)e[r]="0"}return UHe(t,e.length),[e,t]}(e,t),i=n[0],r=n[1],a=0;a<r.length;a++){var o=HHe(i[a],r[a]);if(o)return o}return 0}var VHe={contains:function(e,t){return NHe(e.trim(),t.trim())}},KHe=VHe,JHe=Object.prototype.hasOwnProperty;var QHe=function(e,t,n){if(!e)return null;var i={};for(var r in e)JHe.call(e,r)&&(i[r]=t.call(n,e[r],r,e));return i};var ZHe=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},$He=PHe,XHe=KHe;function eWe(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var r=n.slice(e.length);return!!t&&(r=i?i(r):r,XHe.contains(r,t))}function tWe(e){return"Windows"===$He.platformName?e.replace(/^\s*NT/,""):e}var nWe=QHe({isBrowser:function(e){return eWe($He.browserName,$He.browserFullVersion,e)},isBrowserArchitecture:function(e){return eWe($He.browserArchitecture,null,e)},isDevice:function(e){return eWe($He.deviceName,null,e)},isEngine:function(e){return eWe($He.engineName,$He.engineVersion,e)},isPlatform:function(e){return eWe($He.platformName,$He.platformFullVersion,e,tWe)},isPlatformArchitecture:function(e){return eWe($He.platformArchitecture,null,e)}},ZHe);var iWe=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var rWe=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},aWe=rWe;var oWe=function e(t){if(aWe(t)){var n=t,i=n.getAttribute("data-offset-key");if(i)return i;for(var r=0;r<n.childNodes.length;r++){var a=e(n.childNodes[r]);if(a)return a}}return null},sWe=iWe,lWe=oWe;var uWe=function(e){for(var t=e;t&&t!==sWe(e).documentElement;){var n=lWe(t);if(null!=n)return n;t=t.parentNode}return null};var cWe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function dWe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fWe=nWe,pWe=uWe,hWe=cWe,gWe=CBe,mWe=_Ue,vWe=Cze.exports.Map,_We={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},bWe=fWe.isBrowser("IE <= 11"),yWe=function(){function e(e){var t=this;dWe(this,"observer",void 0),dWe(this,"container",void 0),dWe(this,"mutations",void 0),dWe(this,"onCharData",void 0),this.container=e,this.mutations=vWe();var n=hWe(e);n.MutationObserver&&!bWe?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==go.env.NODE_ENV?gWe(!1,"Expected target to be an instance of Node"):gWe(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,_We):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=vWe(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,i=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return bWe?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(i&&i.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=mWe(pWe(e.target));this.mutations=this.mutations.set(n,t)}},e}(),wWe="-",FWe={encode:function(e,t,n){return e+wWe+t+wWe+n},decode:function(e){var t=e.split(wWe).reverse(),n=t[0],i=t[1];return{blockKey:t.slice(2).reverse().join(wWe),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}},kWe={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},xWe={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var EWe=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},CWe=CBe,SWe=EWe;var DWe=function(e){var t=e.editorContainer;return t||("production"!==go.env.NODE_ENV?CWe(!1,"Missing editorNode"):CWe(!1)),SWe(t.firstChild)||("production"!==go.env.NODE_ENV?CWe(!1,"editorNode.firstChild is not an HTMLElement"):CWe(!1)),t.firstChild},PWe=FWe,AWe=_Ue;var TWe=function(e,t,n,i,r){var a=AWe(e.getSelection());if(!t||!i)return"production"!==go.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),a;var o=PWe.decode(t),s=o.blockKey,l=e.getBlockTree(s),u=l&&l.getIn([o.decoratorKey,"leaves",o.leafKey]),c=PWe.decode(i),d=c.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!u||!p)return"production"!==go.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),a;var h=u.get("start"),g=p.get("start"),m=u?h+n:null,v=p?g+r:null,_=a.getAnchorKey()===s&&a.getAnchorOffset()===m&&a.getFocusKey()===d&&a.getFocusOffset()===v;if(_)return a;var b=!1;if(s===d){var y=u.get("end"),w=p.get("end");b=g===h&&w===y?r<n:g<h}else{var F=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===d})).first();b=F===d}return a.merge({anchorKey:s,anchorOffset:m,focusKey:d,focusOffset:v,isBackward:b})},LWe=uWe,IWe=oWe,MWe=TWe,jWe=CBe,NWe=rWe,RWe=_Ue;function OWe(e,t,n){var i=t,r=LWe(i);(null!=r||e&&(e===i||e.firstChild===i)||("production"!==go.env.NODE_ENV?jWe(!1,"Unknown node in selection range."):jWe(!1)),e===i)&&(i=i.firstChild,NWe(i)||("production"!==go.env.NODE_ENV?jWe(!1,"Invalid DraftEditorContents node."):jWe(!1)),"true"!==(i=i).getAttribute("data-contents")&&("production"!==go.env.NODE_ENV?jWe(!1,"Invalid DraftEditorContents structure."):jWe(!1)),n>0&&(n=i.childNodes.length));if(0===n){var a=null;if(null!=r)a=r;else{var o=function(e){for(;e.firstChild&&(NWe(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||IWe(e.firstChild));)e=e.firstChild;return e}(i);a=RWe(IWe(o))}return{key:a,offset:0}}var s=i.childNodes[n-1],l=null,u=null;if(IWe(s)){var c=function(e){for(;e.lastChild&&(NWe(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||IWe(e.lastChild));)e=e.lastChild;return e}(s);l=RWe(IWe(c)),u=zWe(c)}else l=RWe(r),u=zWe(s);return{key:l,offset:u}}function zWe(e){var t=e.textContent;return"\n"===t?0:t.length}var BWe=function(e,t,n,i,r,a){var o=n.nodeType===Node.TEXT_NODE,s=r.nodeType===Node.TEXT_NODE;if(o&&s)return{selectionState:MWe(e,RWe(LWe(n)),i,RWe(LWe(r)),a),needsRecovery:!1};var l=null,u=null,c=!0;return o?(l={key:RWe(LWe(n)),offset:i},u=OWe(t,r,a)):s?(u={key:RWe(LWe(r)),offset:a},l=OWe(t,n,i)):(l=OWe(t,n,i),u=OWe(t,r,a),n===r&&i===a&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:MWe(e,l.key,l.offset,u.key,u.offset),needsRecovery:c}},GWe=BWe;var qWe=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),i=n.anchorNode,r=n.anchorOffset,a=n.focusNode,o=n.focusOffset;return 0===n.rangeCount||null==i||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:GWe(e,t,i,r,a,o)},UWe=xWe,HWe=qUe,WWe=DWe,YWe=qWe;var VWe=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();UWe.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,i=YWe(n,WWe(e)),r=i.selectionState;r!==n.getSelection()&&(n=i.needsRecovery?HWe.forceSelection(n,r):HWe.acceptSelection(n,r),e.update(n))}};var KWe={notEmptyKey:function(e){return null!=e&&""!=e}},JWe=KWe.notEmptyKey;function QWe(e,t){return JWe(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var ZWe=function(e,t){var n;if(t.isCollapsed()){var i=t.getAnchorKey(),r=t.getAnchorOffset();return r>0?(n=e.getBlockForKey(i).getEntityAt(r-1))!==e.getBlockForKey(i).getEntityAt(r)?null:QWe(e.getEntityMap(),n):null}var a=t.getStartKey(),o=t.getStartOffset(),s=e.getBlockForKey(a);return n=o===s.getLength()?null:s.getEntityAt(o),QWe(e.getEntityMap(),n)},$We=yWe,XWe=VGe,eYe=FWe,tYe=qUe,nYe=kWe,iYe=DWe,rYe=qWe,aYe=ZWe,oYe=_Ue,sYe=!1,lYe=!1,uYe=null;var cYe={onCompositionStart:function(e){lYe=!0,function(e){uYe||(uYe=new $We(iYe(e))).start()}(e)},onCompositionEnd:function(e){sYe=!1,lYe=!1,setTimeout((function(){sYe||cYe.resolveComposition(e)}),20)},onSelect:VWe,onKeyDown:function(e,t){if(!lYe)return cYe.resolveComposition(e),void e._onKeyDown(t);t.which!==nYe.RIGHT&&t.which!==nYe.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===nYe.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!lYe){var t=oYe(uYe).stopAndFlushMutations();uYe=null,sYe=!0;var n=tYe.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var i=n.getCurrentContent();t.forEach((function(e,t){var r=eYe.decode(t),a=r.blockKey,o=r.decoratorKey,s=r.leafKey,l=n.getBlockTree(a).getIn([o,"leaves",s]),u=l.start,c=l.end,d=n.getSelection().merge({anchorKey:a,focusKey:a,anchorOffset:u,focusOffset:c,isBackward:!1}),f=aYe(i,d),p=i.getBlockForKey(a).getInlineStyleAt(u);i=XWe.replaceText(i,d,e,p,f),n=tYe.set(n,{currentContent:i})}));var r=rYe(n,iYe(e)).selectionState;e.restoreEditorDOM();var a=tYe.acceptSelection(n,r);e.update(tYe.push(a,i,"insert-characters"))}else e.update(n)}}},dYe=cYe,fYe=_W;function pYe(){return pYe=fYe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pYe.apply(this,arguments)}var hYe=FWe,gYe=m.default,mYe=dUe,vYe=eUe,_Ye=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.children,i=e.contentState,r=e.decorator,a=e.decoratorKey,o=e.direction,s=e.leafSet,l=e.text,u=t.getKey(),c=s.get("leaves"),d=r.getComponentForKey(a),f=r.getPropsForKey(a),p=hYe.encode(u,parseInt(a,10),0),h=l.slice(c.first().get("start"),c.last().get("end")),g=vYe.getHTMLDirIfDifferent(mYe.getDirection(h),o);return gYe.createElement(d,pYe({},f,{contentState:i,decoratedText:h,dir:g,key:p,entityKey:t.getEntityAt(s.get("start")),offsetKey:p}),n)},i}(gYe.Component),bYe=_Ye;function yYe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wYe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FYe=m.default,kYe=CBe,xYe=rWe,EYe=nWe.isBrowser("IE <= 11");var CYe=function(e){var t,n;function i(t){var n;return wYe(yYe(n=e.call(this,t)||this),"_forceFlag",void 0),wYe(yYe(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;xYe(t)||("production"!==go.env.NODE_ENV?kYe(!1,"node is not an Element"):kYe(!1));var i=t;return n?!function(e){return EYe?"\n"===e.textContent:"BR"===e.tagName}(i):i.textContent!==e.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},EYe?FYe.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):FYe.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return EYe?FYe.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):FYe.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):FYe.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},i}(FYe.Component),SYe=CYe,DYe=rWe;var PYe=function(e){return!(!e||!e.ownerDocument)&&(DYe(e)&&"BR"===e.nodeName)};var AYe=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))};var TYe=function(e){return AYe(e)&&3==e.nodeType};var LYe=function e(t,n){return!(!t||!n)&&(t===n||!TYe(t)&&(TYe(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var IYe=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},MYe=xWe,jYe=LYe,NYe=IYe,RYe=iWe,OYe=CBe,zYe=rWe,BYe=nWe.isBrowser("IE");function GYe(e,t){if(!e)return"[empty]";var n=qYe(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(zYe(n)||("production"!==go.env.NODE_ENV?OYe(!1,"Node must be an Element if it is not a text node."):OYe(!1)),n.outerHTML)}function qYe(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return RYe(e).createTextNode("[text "+i+(n.length?" | "+n.join(", "):"")+"]")}var r=e.cloneNode();1===r.nodeType&&n.length&&r.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,o=0;o<a.length;o++)r.appendChild(qYe(a[o],t));return r}function UYe(e,t){for(var n=e,i=n;n;){if(zYe(n)&&i.hasAttribute("contenteditable"))return GYe(n,t);i=n=n.parentNode}return"Could not find contentEditable parent of node"}function HYe(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function WYe(e,t,n,i){var r=NYe();if(e.extend&&null!=t&&jYe(r,t)){n>HYe(t)&&MYe.logSelectionStateFailure({anonymizedDom:UYe(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())});var a=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(o){throw MYe.logSelectionStateFailure({anonymizedDom:UYe(t,(function(t){var n=[];return t===r&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:r?r.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:a,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:n},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),o}}else if(t&&e.rangeCount>0){var o=e.getRangeAt(0);o.setEnd(t,n),e.addRange(o.cloneRange())}}function YYe(e,t,n,i){var r=RYe(t).createRange();if(n>HYe(t)&&MYe.logSelectionStateFailure({anonymizedDom:UYe(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.setStart(t,n),BYe)try{e.addRange(r)}catch(e){"production"!==go.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(r)}var VYe=function(e,t,n,i,r){var a=RYe(t);if(jYe(a.documentElement,t)){var o=a.defaultView.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),u=e.getFocusKey(),c=e.getFocusOffset(),d=e.getIsBackward();if(!o.extend&&d){var f=s,p=l;s=u,l=c,u=f,c=p,d=!1}var h=s===n&&i<=l&&r>=l,g=u===n&&i<=c&&r>=c;if(h&&g)return o.removeAllRanges(),YYe(o,t,l-i,e),void WYe(o,t,c-i,e);if(d){if(g&&(o.removeAllRanges(),YYe(o,t,c-i,e)),h){var m=o.focusNode,v=o.focusOffset;o.removeAllRanges(),YYe(o,t,l-i,e),WYe(o,m,v,e)}}else h&&(o.removeAllRanges(),YYe(o,t,l-i,e)),g&&WYe(o,t,c-i,e)}},KYe=_W;function JYe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QYe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZYe=SYe,$Ye=m.default,XYe=CBe,eVe=PYe,tVe=VYe,nVe=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return QYe(JYe(t=e.call.apply(e,[this].concat(i))||this),"leaf",void 0),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,i=t.start,r=t.text,a=n.getKey(),o=i+r.length;if(e.hasEdgeWithin(a,i,o)){var s=this.leaf;s||("production"!==go.env.NODE_ENV?XYe(!1,"Missing node"):XYe(!1));var l,u=s.firstChild;u||("production"!==go.env.NODE_ENV?XYe(!1,"Missing child"):XYe(!1)),u.nodeType===Node.TEXT_NODE?l=u:eVe(u)?l=s:(l=u.firstChild)||("production"!==go.env.NODE_ENV?XYe(!1,"Missing targetNode"):XYe(!1)),tVe(e,l,a,i,o)}}},r.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==go.env.NODE_ENV?XYe(!1,"Missing leafNode"):XYe(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var i=this.props,r=i.customStyleMap,a=i.customStyleFn,o=i.offsetKey,s=i.styleSet,l=s.reduce((function(e,t){var n={},i=r[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(n.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),KYe(e,i,n)}),{});if(a){var u=a(s,t);l=KYe(l,u)}return $Ye.createElement("span",{"data-offset-key":o,ref:function(t){return e.leaf=t},style:l},$Ye.createElement(ZYe,null,n))},i}($Ye.Component),iVe=nVe;var rVe=bYe,aVe=iVe,oVe=FWe,sVe=Cze.exports,lVe=m.default,uVe=_He;sVe.List;var cVe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,i=e.customStyleFn,r=e.customStyleMap,a=e.decorator,o=e.direction,s=e.forceSelection,l=e.hasSelection,u=e.selection,c=e.tree,d=t.getKey(),f=t.getText(),p=c.size-1,h=this.props.children||c.map((function(e,c){var h=e.get("decoratorKey"),g=e.get("leaves"),m=g.size-1,v=g.map((function(e,n){var a=oVe.encode(d,c,n),o=e.get("start"),g=e.get("end");return lVe.createElement(aVe,{key:a,offsetKey:a,block:t,start:o,selection:l?u:null,forceSelection:s,text:f.slice(o,g),styleSet:t.getInlineStyleAt(o),customStyleMap:r,customStyleFn:i,isLast:h===p&&n===m})})).toArray();return h&&a?lVe.createElement(rVe,{block:t,children:v,contentState:n,decorator:a,decoratorKey:h,direction:o,leafSet:e,text:f,key:c}):v})).toArray();return lVe.createElement("div",{"data-offset-key":oVe.encode(d,0,0),className:uVe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===o,"public/DraftStyleDefault/rtl":"RTL"===o})},h)},i}(lVe.Component),dVe=cVe;function fVe(e,t){return!!t&&(e===t.documentElement||e===t.body)}var pVe={getTop:function(e){var t=e.ownerDocument;return fVe(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;fVe(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return fVe(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;fVe(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},hVe=pVe,gVe=/-(.)/g;var mVe=/([A-Z])/g;var vVe=function(e){return e.replace(gVe,(function(e,t){return t.toUpperCase()}))},_Ve=function(e){return e.replace(mVe,"-$1").toLowerCase()};function bVe(e){return null==e?e:String(e)}var yVe=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return bVe(n.getPropertyValue(_Ve(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return bVe(n.getPropertyValue(_Ve(t)));if("display"===t)return"none"}return e.currentStyle?bVe("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[vVe(t)]):bVe(e.style&&e.style[vVe(t)])};function wVe(e,t){var n=FVe.get(e,t);return"auto"===n||"scroll"===n}var FVe={get:yVe,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(wVe(e,"overflow")||wVe(e,"overflowY")||wVe(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},kVe=FVe,xVe=LYe;var EVe=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!xVe(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var CVe=function(e){var t=EVe(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},SVe="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var DVe=function(e){return(e=e||document).scrollingElement?e.scrollingElement:SVe||"CSS1Compat"!==e.compatMode?e.body:e.documentElement};var PVe=DVe,AVe=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var TVe=function(e){var t=PVe(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=AVe(e),i=e===t?e.ownerDocument.documentElement:e,r=e.scrollWidth-i.clientWidth,a=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,r)),n.y=Math.max(0,Math.min(n.y,a)),n};function LVe(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function IVe(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function MVe(){return{width:window.innerWidth||LVe(),height:window.innerHeight||IVe()}}MVe.withoutScrollbars=function(){return{width:LVe(),height:IVe()}};var jVe=MVe,NVe=_W;function RVe(){return RVe=NVe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},RVe.apply(this,arguments)}function OVe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zVe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){BVe(e,t,n[t])}))}return e}function BVe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GVe=dVe,qVe=FWe,UVe=m.default,HVe=hVe,WVe=kVe,YVe=CVe,VVe=TVe,KVe=jVe,JVe=CBe,QVe=EWe;Cze.exports.List;var ZVe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},$Ve=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),i=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:i}},XVe=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},eKe=function(e,t,n,i,r,a){var o={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},s=i(e);return s&&(o.className=s),void 0!==r.customEditable&&(o=zVe({},o,{contentEditable:r.customEditable,suppressContentEditableWarning:!0})),o},tKe=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return BVe(OVe(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",UVe.createRef()),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this.props,n=t.block,i=t.direction,r=t.tree,a=!n.getChildKeys().isEmpty(),o=n!==e.block||r!==e.tree||i!==e.direction||ZVe(e.selection,e.block.getKey())&&e.forceSelection;return a||o},r.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var i,r=WVe.getScrollParent(n),a=VVe(r);if(r===window){var o=YVe(n);(i=o.y+o.height-KVe().height)>0&&window.scrollTo(a.x,a.y+i+10)}else{QVe(n)||("production"!==go.env.NODE_ENV?JVe(!1,"blockNode is not an HTMLElement"):JVe(!1));var s=n;(i=s.offsetHeight+s.offsetTop-(r.offsetHeight+a.y))>0&&HVe.setTop(r,HVe.getTop(r)+i+10)}}}},r.render=function(){var e=this,t=this.props,n=t.block,r=t.blockRenderMap,a=t.blockRendererFn,o=t.blockStyleFn,s=t.contentState,l=t.decorator,u=t.editorKey,c=t.editorState,d=t.customStyleFn,f=t.customStyleMap,p=t.direction,h=t.forceSelection,g=t.selection,m=t.tree,v=null;n.children.size&&(v=n.children.reduce((function(t,n){var l=qVe.encode(n,0,0),d=s.getBlockForKey(n),f=XVe(d,a),p=f.CustomComponent||i,h=$Ve(d,r),g=h.Element,m=h.wrapperTemplate,v=eKe(d,u,l,o,f,null),_=zVe({},e.props,{tree:c.getBlockTree(n),blockProps:f.customProps,offsetKey:l,block:d});return t.push(UVe.createElement(g,v,UVe.createElement(p,_))),!m||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(d,s)||function(e,t,n){var i=[],r=!0,a=!1,o=void 0;try{for(var s,l=n.reverse()[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u=s.value;if(u.type!==t)break;i.push(u)}}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}n.splice(n.indexOf(i[0]),i.length+1);var c=i.reverse(),d=c[0].key;n.push(UVe.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":qVe.encode(d,0,0)},c))}(m,g,t),t}),[]));var _=n.getKey(),b=qVe.encode(_,0,0),y=XVe(n,a),w=y.CustomComponent,F=null!=w?UVe.createElement(w,RVe({},this.props,{tree:c.getBlockTree(_),blockProps:y.customProps,offsetKey:b,block:n})):UVe.createElement(GVe,{block:n,children:v,contentState:s,customStyleFn:d,customStyleMap:f,decorator:l,direction:p,forceSelection:h,hasSelection:ZVe(g,_),selection:g,tree:m});if(n.getParentKey())return F;var k=$Ve(n,r).Element,x=eKe(n,u,b,o,y,this.wrapperRef);return UVe.createElement(k,x,F)},i}(UVe.Component),nKe=_W;function iKe(){return iKe=nKe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iKe.apply(this,arguments)}var rKe=tKe,aKe=FWe,oKe=m.default,sKe=_Ue,lKe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var i=n.getNativelyRenderedContent(),r=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==i&&n.getCurrentContent()===i||r&&a)return!1;var o=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return r!==a||o!==s||l!==u||n.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,r=e.customStyleMap,a=e.customStyleFn,o=e.editorState,s=e.editorKey,l=e.textDirectionality,u=o.getCurrentContent(),c=o.getSelection(),d=o.mustForceSelection(),f=o.getDecorator(),p=sKe(o.getDirectionMap()),h=[],g=u.getBlocksAsArray()[0];g;){var m=g.getKey(),v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:i,contentState:u,customStyleFn:a,customStyleMap:r,decorator:f,editorKey:s,editorState:o,forceSelection:d,selection:c,block:g,direction:l||p.get(m),tree:o.getBlockTree(m)},_=(t.get(g.getType())||t.get("unstyled")).wrapper;h.push({block:oKe.createElement(rKe,iKe({key:m},v)),wrapperTemplate:_,key:m,offsetKey:aKe.encode(m,0,0)});var b=g.getNextSiblingKey();g=b?u.getBlockForKey(b):null}for(var y=[],w=0;w<h.length;){var F=h[w];if(F.wrapperTemplate){var k=[];do{k.push(h[w].block),w++}while(w<h.length&&h[w].wrapperTemplate===F.wrapperTemplate);var x=oKe.cloneElement(F.wrapperTemplate,{key:F.key+"-wrap","data-offset-key":F.offsetKey},k);y.push(x)}else y.push(F.block),w++}return oKe.createElement("div",{"data-contents":"true"},y)},i}(oKe.Component),uKe=lKe,cKe=_W;function dKe(){return dKe=cKe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dKe.apply(this,arguments)}function fKe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pKe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hKe=iVe,gKe=FWe,mKe=m.default,vKe=hVe,_Ke=kVe,bKe=dUe,yKe=eUe,wKe=_He,FKe=CVe,kKe=TVe,xKe=jVe,EKe=CBe,CKe=EWe,SKe=_Ue,DKe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},PKe=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return pKe(fKe(t=e.call.apply(e,[this].concat(i))||this),"_node",void 0),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||DKe(e.selection,e.block.getKey())&&e.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var i,r=_Ke.getScrollParent(n),a=kKe(r);if(r===window){var o=FKe(n);(i=o.y+o.height-xKe().height)>0&&window.scrollTo(a.x,a.y+i+10)}else{CKe(n)||("production"!==go.env.NODE_ENV?EKe(!1,"blockNode is not an HTMLElement"):EKe(!1)),(i=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+a.y))>0&&vKe.setTop(r,vKe.getTop(r)+i+10)}}}}},r._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),r=this.props.tree.size-1,a=DKe(this.props.selection,n);return this.props.tree.map((function(o,s){var l=o.get("leaves");if(0===l.size)return null;var u=l.size-1,c=l.map((function(o,l){var c=gKe.encode(n,s,l),d=o.get("start"),f=o.get("end");return mKe.createElement(hKe,{key:c,offsetKey:c,block:t,start:d,selection:a?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(d,f),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===r&&l===u})})).toArray(),d=o.get("decoratorKey");if(null==d)return c;if(!e.props.decorator)return c;var f=SKe(e.props.decorator),p=f.getComponentForKey(d);if(!p)return c;var h=f.getPropsForKey(d),g=gKe.encode(n,s,0),m=l.first().get("start"),v=l.last().get("end"),_=i.slice(m,v),b=t.getEntityAt(o.get("start")),y=yKe.getHTMLDirIfDifferent(bKe.getDirection(_),e.props.direction),w={contentState:e.props.contentState,decoratedText:_,dir:y,start:m,end:v,blockKey:n,entityKey:b,offsetKey:g};return mKe.createElement(p,dKe({},h,w,{key:g}),c)})).toArray()},r.render=function(){var e=this,t=this.props,n=t.direction,i=t.offsetKey,r=wKe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return mKe.createElement("div",{"data-offset-key":i,className:r,ref:function(t){return e._node=t}},this._renderChildren())},i}(mKe.Component),AKe=PKe;var TKe=function(e){var t=e||"",n=arguments.length;if(n>1)for(var i=1;i<n;i++){var r=arguments[i];r&&(t=(t?t+" ":"")+r)}return t},LKe=_W;function IKe(){return IKe=LKe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},IKe.apply(this,arguments)}function MKe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){jKe(e,t,n[t])}))}return e}function jKe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NKe=AKe,RKe=FWe,OKe=m.default,zKe=_He,BKe=TKe,GKe=_Ue,qKe=function(e,t,n,i){return zKe({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===i,"public/DraftStyleDefault/listRTL":"RTL"===i})},UKe=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var i=n.getNativelyRenderedContent(),r=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==i&&n.getCurrentContent()===i||r&&a)return!1;var o=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return r!==a||o!==s||l!==u||n.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,r=e.customStyleMap,a=e.customStyleFn,o=e.editorState,s=e.editorKey,l=e.preventScroll,u=e.textDirectionality,c=o.getCurrentContent(),d=o.getSelection(),f=o.mustForceSelection(),p=o.getDecorator(),h=GKe(o.getDirectionMap()),g=c.getBlocksAsArray(),m=[],v=null,_=null,b=0;b<g.length;b++){var y=g[b],w=y.getKey(),F=y.getType(),k=n(y),x=void 0,E=void 0,C=void 0;k&&(x=k.component,E=k.props,C=k.editable);var S=u||h.get(w),D=RKe.encode(w,0,0),P={contentState:c,block:y,blockProps:E,blockStyleFn:i,customStyleMap:r,customStyleFn:a,decorator:p,direction:S,forceSelection:f,offsetKey:D,preventScroll:l,selection:d,tree:o.getBlockTree(w)},A=t.get(F)||t.get("unstyled"),T=A.wrapper,L=A.element||t.get("unstyled").element,I=y.getDepth(),M="";if(i&&(M=i(y)),"li"===L)M=BKe(M,qKe(F,I,_!==T||null===v||I>v,S));var j=x||NKe,N={className:M,"data-block":!0,"data-editor":s,"data-offset-key":D,key:w};void 0!==C&&(N=MKe({},N,{contentEditable:C,suppressContentEditableWarning:!0}));var R=OKe.createElement(L,N,OKe.createElement(j,IKe({},P,{key:w})));m.push({block:R,wrapperTemplate:T,key:w,offsetKey:D}),v=T?y.getDepth():null,_=T}for(var O=[],z=0;z<m.length;){var B=m[z];if(B.wrapperTemplate){var G=[];do{G.push(m[z].block),z++}while(z<m.length&&m[z].wrapperTemplate===B.wrapperTemplate);var q=OKe.cloneElement(B.wrapperTemplate,{key:B.key+"-wrap","data-offset-key":B.offsetKey},G);O.push(q)}else O.push(B.block),z++}return OKe.createElement("div",{"data-contents":"true"},O)},i}(OKe.Component),HKe=UKe,WKe=kqe("draft_tree_data_support")?uKe:HKe,YKe={isImage:function(e){return"image"===VKe(e)[0]},isJpeg:function(e){var t=VKe(e);return YKe.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function VKe(e){return e.split("/")}var KKe=YKe,JKe=CBe;var QKe=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Array-like object expected"):JKe(!1)),"number"!=typeof t&&("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Object needs a length property"):JKe(!1)),0===t||t-1 in e||("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Object should have keys for indices"):JKe(!1)),"function"==typeof e.callee&&("production"!==go.env.NODE_ENV?JKe(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):JKe(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}(e):[e]};function ZKe(e){return function(){return e}}var $Ke=function(){};$Ke.thatReturns=ZKe,$Ke.thatReturnsFalse=ZKe(!1),$Ke.thatReturnsTrue=ZKe(!0),$Ke.thatReturnsNull=ZKe(null),$Ke.thatReturnsThis=function(){return this},$Ke.thatReturnsArgument=function(e){return e};var XKe=$Ke,eJe=KKe,tJe=QKe,nJe=XKe,iJe=new RegExp("\r\n","g"),rJe={"text/rtf":1,"text/html":1};function aJe(e){if("file"==e.kind)return e.getAsFile()}var oJe=function(){function e(e){this.data=e,this.types=e.types?tJe(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return rJe[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(iJe,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var i=t[n].type;if(!eJe.isImage(i))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(aJe).filter(nJe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),sJe=oJe,lJe=CBe,uJe=/\.textClipping$/,cJe={"text/plain":!0,"text/html":!0,"text/rtf":!0};var dJe=function(e,t){var n=0,i=[];e.forEach((function(r){!function(e,t){if(!k.FileReader||e.type&&!(e.type in cJe))return void t("");if(""===e.type){var n="";return uJe.test(e.name)&&(n=e.name.replace(uJe,"")),void t(n)}var i=new FileReader;i.onload=function(){var e=i.result;"string"!=typeof e&&("production"!==go.env.NODE_ENV?lJe(!1,'We should be calling "FileReader.readAsText" which returns a string'):lJe(!1)),t(e)},i.onerror=function(){t("")},i.readAsText(e)}(r,(function(r){n++,r&&i.push(r.slice(0,5e3)),n==e.length&&t(i.join("\r"))}))}))};var fJe=function(e){return"handled"===e||!0===e},pJe=sJe,hJe=VGe,gJe=qUe,mJe=uWe,vJe=iWe,_Je=dJe,bJe=TWe,yJe=cWe,wJe=fJe,FJe=_Ue;var kJe={onDragEnd:function(e){e.exitCurrentMode(),xJe(e)},onDrop:function(e,t){var n=new pJe(t.nativeEvent.dataTransfer),i=e._latestEditorState,r=function(e,t){var n=null,i=null,r=vJe(e.currentTarget);if("function"==typeof r.caretRangeFromPoint){var a=r.caretRangeFromPoint(e.x,e.y);n=a.startContainer,i=a.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,i=e.rangeOffset}n=FJe(n),i=FJe(i);var o=FJe(mJe(n));return bJe(t,o,i,o,i)}(t.nativeEvent,i);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=r){var a=n.getFiles();if(a.length>0){if(e.props.handleDroppedFiles&&wJe(e.props.handleDroppedFiles(r,a)))return;_Je(a,(function(t){t&&e.update(EJe(i,r,t))}))}else{var o=e._internalDrag?"internal":"external";e.props.handleDrop&&wJe(e.props.handleDrop(r,n,o))||(e._internalDrag?e.update(function(e,t){var n=hJe.moveText(e.getCurrentContent(),e.getSelection(),t);return gJe.push(e,n,"insert-fragment")}(i,r)):e.update(EJe(i,r,n.getText()))),xJe(e)}}}};function xJe(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:yJe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function EJe(e,t,n){var i=hJe.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return gJe.push(e,i,"insert-fragment")}var CJe=kJe;var SJe=function(e){var t=e.getSelection(),n=t.getAnchorKey(),i=e.getBlockTree(n),r=t.getStartOffset(),a=!1;return i.some((function(e){return r===e.get("start")?(a=!0,!0):r<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return r===t&&(a=!0,!0)}))})),a};!function(e,t){if(!e.setImmediate){var n,i,r,a=1,o={},s=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){go.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",r=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(t){e.postMessage(i+t,"*")}):e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){d(e.data)},n=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;n=function(t){var n=l.createElement("script");n.onreadystatechange=function(){d(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():n=function(e){setTimeout(d,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return o[a]=r,n(a),a++},u.clearImmediate=c}function c(e){delete o[e]}function d(e){if(s)setTimeout(d,0,e);else{var t=o[e];if(t){s=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{c(e),s=!1}}}}}("undefined"==typeof self?k:self);var DJe=k.setImmediate,PJe=VGe,AJe=qUe,TJe=ZWe,LJe=fJe,IJe=SJe,MJe=_Ue,jJe=DJe,NJe=nWe.isBrowser("Firefox");function RJe(e,t,n,i,r){var a=PJe.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return AJe.push(e,a,"insert-characters",r)}var OJe=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,i=t.data;if(i)if(e.props.handleBeforeInput&&LJe(e.props.handleBeforeInput(i,n,t.timeStamp)))t.preventDefault();else{var r=n.getSelection(),a=r.getStartOffset(),o=r.getAnchorKey();if(!r.isCollapsed())return t.preventDefault(),void e.update(RJe(n,i,n.getCurrentInlineStyle(),TJe(n.getCurrentContent(),n.getSelection()),!0));var s,l=RJe(n,i,n.getCurrentInlineStyle(),TJe(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=IJe(e._latestCommittedEditorState)),!u){var c=n.getBlockTree(o),d=l.getBlockTree(o);u=c.size!==d.size||c.zip(d).some((function(e){var t=e[0],n=e[1],r=t.get("start"),o=r+(r>=a?i.length:0),s=t.get("end"),l=s+(s>=a?i.length:0),u=n.get("start"),c=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||o!==u||l!==c||null!=d&&c-u!=s-r}))}if(u||(s=i,u=NJe&&("'"==s||"/"==s)),u||(u=MJe(l.getDirectionMap()).get(o)!==MJe(n.getDirectionMap()).get(o)),u)return t.preventDefault(),l=AJe.set(l,{forceSelection:!0}),void e.update(l);l=AJe.set(l,{nativelyRenderedContent:l.getCurrentContent()}),e._pendingStateFromBeforeInput=l,jJe((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},zJe=qUe,BJe=LYe,GJe=IYe;var qJe=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&GJe(n)===n.body){var i=n.defaultView.getSelection(),r=e.editor;1===i.rangeCount&&BJe(r,i.anchorNode)&&BJe(r,i.focusNode)&&i.removeAllRanges()}var a=e._latestEditorState,o=a.getSelection();if(o.getHasFocus()){var s=o.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(zJe.acceptSelection(a,s))}},UJe=qUe;var HJe=function(e,t){e.setMode("composite"),e.update(UJe.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},WJe=KBe;var YJe=function(e){var t=e.getSelection();return t.isCollapsed()?null:WJe(e.getCurrentContent(),t)},VJe=YJe;var KJe=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(VJe(e._latestEditorState))};var JJe=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1},QJe=VGe,ZJe=qUe,$Je=kVe,XJe=YJe,eQe=TVe,tQe=JJe;var nQe=function(e,t){var n,i=e._latestEditorState,r=i.getSelection(),a=t.target;if(r.isCollapsed())t.preventDefault();else{if(tQe(a)){var o=a;n=eQe($Je.getScrollParent(o))}var s=XJe(i);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=QJe.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return ZJe.push(e,t,"remove-range")}(i))}),0)}};var iQe=function(e,t){e.setMode("drag"),t.preventDefault()};var rQe=function(e){e._internalDrag=!0,e.setMode("drag")},aQe=qUe,oQe=nWe;var sQe=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var r=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),oQe.isBrowser("Chrome < 60.0.3081.0")?e.update(aQe.forceSelection(n,r)):e.update(aQe.acceptSelection(n,r))}},lQe=CBe,uQe=/[\uD800-\uDFFF]/;function cQe(e){return 55296<=e&&e<=57343}function dQe(e){return uQe.test(e)}function fQe(e,t){return 1+cQe(e.charCodeAt(t))}function pQe(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!dQe(e))return e.substr(t,n);var i=e.length;if(i<=0||t>i||n<=0)return"";var r=0;if(t>0){for(;t>0&&r<i;t--)r+=fQe(e,r);if(r>=i)return""}else if(t<0){for(r=i;t<0&&0<r;t++)r-=fQe(e,r-1);r<0&&(r=0)}var a=i;if(n<i)for(a=r;n>0&&a<i;n--)a+=fQe(e,a);return e.substring(r,a)}var hQe={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=fQe(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:fQe,hasSurrogateUnit:dQe,isCodeUnitInSurrogateRange:cQe,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==go.env.NODE_ENV?lQe(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):lQe(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),i=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=i&&i<=57343},strlen:function(e){if(!dQe(e))return e.length;for(var t=0,n=0;n<e.length;n+=fQe(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var i=Math.abs(n-t);return pQe(e,t=t<n?t:n,i)},substr:pQe},gQe=hQe,mQe=XKe;function vQe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=0,a="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}var _Qe="production"!==go.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];vQe.apply(void 0,[t].concat(i))}}:mQe,bQe=_Qe,yQe=bQe;var wQe=function(e,t){var n=e.getSelection();"production"!==go.env.NODE_ENV&&yQe(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var i=e.getCurrentContent(),r=n.getStartKey(),a=n.getStartOffset(),o=r,s=0;if(t>a){var l=i.getKeyBefore(r);if(null==l)o=r;else o=l,s=i.getBlockForKey(l).getText().length}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})},FQe=VGe,kQe=kqe("draft_tree_data_support");var xQe=function(e,t,n){var i=e.getSelection(),r=e.getCurrentContent(),a=i,o=i.getAnchorKey(),s=i.getFocusKey(),l=r.getBlockForKey(o);if(kQe&&"forward"===n&&o!==s)return r;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return r;if(kQe)if(i.getAnchorOffset()===r.getBlockForKey(o).getLength()){var u=r.getBlockForKey(l.nextSibling);if(!u||0===u.getLength())return r}}else if(e.isSelectionAtStartOfContent())return r;if((a=t(e))===i)return r}return FQe.removeRange(r,a,n)},EQe=qUe,CQe=gQe,SQe=wQe,DQe=xQe;var PQe=function(e){var t=DQe(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),r=t.getAnchorOffset(),a=n.getBlockForKey(i).getText()[r-1];return SQe(e,a?CQe.getUTF16Length(a,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return EQe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},AQe=VGe,TQe=FWe,LQe=qUe,IQe=KWe.notEmptyKey,MQe=uWe,jQe=PQe,NQe=_Ue,RQe=nWe.isEngine("Gecko");var OQe=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),i=n.anchorNode,r=n.isCollapsed,a=(null==i?void 0:i.nodeType)!==Node.TEXT_NODE&&(null==i?void 0:i.nodeType)!==Node.ELEMENT_NODE;if(null!=i&&!a){if(i.nodeType===Node.TEXT_NODE&&(null!==i.previousSibling||null!==i.nextSibling)){var o=i.parentNode;if(null==o)return;i.nodeValue=o.textContent;for(var s=o.firstChild;null!=s;s=s.nextSibling)s!==i&&o.removeChild(s)}var l=i.textContent,u=e._latestEditorState,c=NQe(MQe(i)),d=TQe.decode(c),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=u.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,_=u.getCurrentContent(),b=_.getBlockForKey(f),y=b.getText().slice(m,v);if(l.endsWith("\n\n")&&(l=l.slice(0,-1)),l!==y){var w,F,k,x,E=u.getSelection(),C=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),S=b.getEntityAt(m),D=IQe(S)?_.getEntity(S):null,P="MUTABLE"===(null!=D?D.getMutability():null),A=P?"spellcheck-change":"apply-entity",T=AQe.replaceText(_,C,l,b.getInlineStyleAt(m),P?b.getEntityAt(m):null);if(RQe)w=n.anchorOffset,F=n.focusOffset,x=(k=m+Math.min(w,F))+Math.abs(w-F),w=k,F=x;else{var L=l.length-y.length;k=E.getStartOffset(),x=E.getEndOffset(),w=r?x+L:k,F=x+L}var I=T.merge({selectionBefore:_.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:w,focusOffset:F})});e.update(LQe.push(u,I,A))}else{var M=t.nativeEvent.inputType;if(M){var j=function(e,t){return"deleteContentBackward"===e?jQe(t):t}(M,u);if(j!==u)return e.restoreEditorDOM(),void e.update(j)}}}},zQe=kWe;var BQe=function(e){return e.which===zQe.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},GQe=BQe,qQe=nWe.isPlatform("Mac OS X"),UQe={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return qQe&&e.altKey},usesMacOSHeuristics:function(){return qQe},hasCommandModifier:function(e){return qQe?!!e.metaKey&&!e.altKey:UQe.isCtrlKeyCommand(e)},isSoftNewlineEvent:GQe},HQe=UQe,WQe=VGe,YQe=qUe,VQe=KBe,KQe=_Ue,JQe=null,QQe={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),i=null;if(n.isCollapsed()){var r=n.getAnchorKey(),a=t.getBlockForKey(r).getLength();if(a===n.getAnchorOffset()){var o=t.getKeyAfter(r);if(null==o)return e;i=n.set("focusKey",o).set("focusOffset",0)}else i=n.set("focusOffset",a)}else i=n;i=KQe(i),JQe=VQe(t,i);var s=WQe.removeRange(t,i,"forward");return s===t?e:YQe.push(e,s,"remove-range")},paste:function(e){if(!JQe)return e;var t=WQe.replaceWithFragment(e.getCurrentContent(),e.getSelection(),JQe);return YQe.push(e,t,"insert-fragment")}},ZQe=CBe;var $Qe=nWe.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;null!=i;i=i.parentNode){var r=i===e.commonAncestorContainer;r?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,o=Array.from(t.getClientRects());if(n.push(o),r)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(i)}"production"!==go.env.NODE_ENV?ZQe(!1,"Found an unexpected detached subtree when getting range client rects."):ZQe(!1)}:function(e){return Array.from(e.getClientRects())},XQe=gQe,eZe=iWe,tZe=$Qe,nZe=CBe;function iZe(e,t){for(var n=1/0,i=1/0,r=-1/0,a=-1/0,o=0;o<e.length;o++){var s=e[o];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),i=Math.min(i,s.bottom),r=Math.max(r,s.top),a=Math.max(a,s.bottom))}return r<=i&&r-n<t&&a-i<t}function rZe(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var aZe=qUe,oZe=function(e){e.collapsed||("production"!==go.env.NODE_ENV?nZe(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):nZe(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=eZe(e),i=n.createElement("div");i.style.fontFamily=t.fontFamily,i.style.fontSize=t.fontSize,i.style.fontStyle=t.fontStyle,i.style.fontWeight=t.fontWeight,i.style.lineHeight=t.lineHeight,i.style.position="absolute",i.textContent="M";var r=n.body;r||("production"!==go.env.NODE_ENV?nZe(!1,"Missing document.body"):nZe(!1)),r.appendChild(i);var a=i.getBoundingClientRect();return r.removeChild(i),a.height}(t),i=e.endContainer,r=e.endOffset;for(e.setStart(e.startContainer,0);iZe(tZe(e),n)&&(i=e.startContainer,r=e.startOffset,i.parentNode||("production"!==go.env.NODE_ENV?nZe(!1,"Found unexpected detached subtree when traversing."):nZe(!1)),e.setStartBefore(i),1!==i.nodeType||"inline"===getComputedStyle(i).display););for(var a=i,o=r-1;;){for(var s=a.nodeValue,l=o;l>=0;l--)if(!(null!=s&&l>0&&XQe.isSurrogatePair(s,l-1))){if(e.setStart(a,l),!iZe(tZe(e),n))break;i=a,r=l}if(-1===l||0===a.childNodes.length)break;o=rZe(a=a.childNodes[l])}return e.setStart(i,r),e},sZe=BWe,lZe=wQe,uZe=xQe;var cZe=function(e,t){var n=uZe(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return lZe(e,1);var i=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return i=oZe(i),sZe(e,null,i.endContainer,i.endOffset,i.startContainer,i.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:aZe.push(e,n,"remove-range")},dZe="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),fZe=new RegExp("^(?:"+dZe+")*(?:"+"['‘’]|(?!"+dZe+").)*(?:(?!"+dZe+").)"),pZe=new RegExp("(?:(?!"+dZe+").)(?:"+"['‘’]|(?!"+dZe+").)*(?:"+dZe+")*$");function hZe(e,t){var n=t?pZe.exec(e):fZe.exec(e);return n?n[0]:e}var gZe={getBackward:function(e){return hZe(e,!0)},getForward:function(e){return hZe(e,!1)}},mZe=gZe,vZe=qUe,_Ze=wQe,bZe=xQe;var yZe=bQe;var wZe=function(e,t){var n=e.getSelection();"production"!==go.env.NODE_ENV&&yZe(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var i,r=n.getStartKey(),a=n.getStartOffset(),o=e.getCurrentContent(),s=r;return t>o.getBlockForKey(r).getText().length-a?(s=o.getKeyAfter(r),i=0):i=a+t,n.merge({focusKey:s,focusOffset:i})},FZe=gZe,kZe=qUe,xZe=wZe,EZe=xQe;var CZe=VGe,SZe=qUe;var DZe=qUe;var PZe=qUe;var AZe=qUe,TZe=gQe,LZe=wZe,IZe=xQe;var MZe=VGe,jZe=qUe,NZe=KBe;var RZe=qUe;var OZe=function(e,t,n){var i=RZe.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(RZe.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(i)}),0)):n(i);else{var r=i.getCurrentContent();n(RZe.set(i,{nativelyRenderedContent:r}))}},zZe=VGe,BZe=qUe,GZe=kWe,qZe=QQe,UZe=nWe,HZe=fJe,WZe=cZe,YZe=function(e){var t=bZe(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return _Ze(e,1);var i=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),a=mZe.getBackward(r);return _Ze(e,a.length||1)}),"backward");return t===e.getCurrentContent()?e:vZe.push(e,t,"remove-range")},VZe=function(e){var t=EZe(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),r=e.getCurrentContent().getBlockForKey(i).getText().slice(n),a=FZe.getForward(r);return xZe(e,a.length||1)}),"forward");return t===e.getCurrentContent()?e:kZe.push(e,t,"remove-range")},KZe=function(e){var t=CZe.splitBlock(e.getCurrentContent(),e.getSelection());return SZe.push(e,t,"split-block")},JZe=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return DZe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})},QZe=function(e){var t=e.getSelection(),n=t.getStartKey();return PZe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},ZZe=PQe,$Ze=function(e){var t=IZe(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),r=t.getAnchorOffset(),a=n.getBlockForKey(i).getText()[r];return LZe(e,a?TZe.getUTF16Length(a,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return AZe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},XZe=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var i,r,a=t.getAnchorKey(),o=e.getCurrentContent(),s=o.getBlockForKey(a).getLength();if(s<=1)return e;n===s?(i=t.set("anchorOffset",n-1),r=t):r=(i=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var l=NZe(o,i),u=MZe.removeRange(o,i,"backward"),c=u.getSelectionAfter(),d=c.getAnchorOffset()-1,f=c.merge({anchorOffset:d,focusOffset:d}),p=MZe.replaceWithFragment(u,f,l),h=jZe.push(e,p,"insert-fragment");return jZe.acceptSelection(h,r)},e$e=OZe,t$e=HQe.isOptionKeyCommand,n$e=UZe.isBrowser("Chrome");var i$e=function(e,t){var n=t.which,i=e._latestEditorState;function r(n){var i=e.props[n];return!!i&&(i(t),!0)}switch(n){case GZe.RETURN:if(t.preventDefault(),e.props.handleReturn&&HZe(e.props.handleReturn(t,i)))return;break;case GZe.ESC:if(t.preventDefault(),r("onEscape"))return;break;case GZe.TAB:if(r("onTab"))return;break;case GZe.UP:if(r("onUpArrow"))return;break;case GZe.RIGHT:if(r("onRightArrow"))return;break;case GZe.DOWN:if(r("onDownArrow"))return;break;case GZe.LEFT:if(r("onLeftArrow"))return;break;case GZe.SPACE:n$e&&t$e(t)&&t.preventDefault()}var a=e.props.keyBindingFn(t);if(null!=a&&""!==a)if("undo"!==a){if(t.preventDefault(),!e.props.handleKeyCommand||!HZe(e.props.handleKeyCommand(a,i,t.timeStamp))){var o=function(e,t,n){switch(e){case"redo":return BZe.redo(t);case"delete":return $Ze(t);case"delete-word":return VZe(t);case"backspace":return ZZe(t);case"backspace-word":return YZe(t);case"backspace-to-start-of-line":return WZe(t,n);case"split-block":return KZe(t);case"transpose-characters":return XZe(t);case"move-selection-to-start-of-block":return QZe(t);case"move-selection-to-end-of-block":return JZe(t);case"secondary-cut":return qZe.cut(t);case"secondary-paste":return qZe.paste(t);default:return t}}(a,i,t);o!==i&&e.update(o)}}else e$e(t,i,e.update);else if(n===GZe.SPACE&&n$e&&t$e(t)){var s=zZe.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(BZe.push(i,s,"insert-characters"))}};var r$e=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),a$e=r$e,o$e=CBe,s$e=nWe.isBrowser("IE <= 9");var l$e=function(e){var t,n=null;return!s$e&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==go.env.NODE_ENV?o$e(!1,"Missing doc.documentElement"):o$e(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},u$e=rWe;var c$e=function(e){return!(!e||!e.ownerDocument)&&(u$e(e)&&"A"===e.nodeName)},d$e=rWe;var f$e,p$e=function(e){return!(!e||!e.ownerDocument)&&(d$e(e)&&"IMG"===e.nodeName)};function h$e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){g$e(e,t,n[t])}))}return e}function g$e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m$e=zze,v$e=eBe,_$e=gBe,b$e=wHe,y$e=yqe,w$e=a$e,F$e=_He,k$e=NBe,x$e=l$e,E$e=kqe,C$e=Cze.exports,S$e=C$e.List,D$e=C$e.Map,P$e=C$e.OrderedSet,A$e=c$e,T$e=PYe,L$e=EWe,I$e=p$e,M$e=E$e("draft_tree_data_support"),j$e=new RegExp("\r","g"),N$e=new RegExp("\n","g"),R$e=new RegExp("^\n","g"),O$e=new RegExp(" ","g"),z$e=new RegExp(" ?","g"),B$e=new RegExp("​?","g"),G$e=["bold","bolder","500","600","700","800","900"],q$e=["light","lighter","normal","100","200","300","400"],U$e=["className","href","rel","target","title"],H$e=["alt","className","height","src","width"],W$e=(g$e(f$e={},F$e("public/DraftStyleDefault/depth0"),0),g$e(f$e,F$e("public/DraftStyleDefault/depth1"),1),g$e(f$e,F$e("public/DraftStyleDefault/depth2"),2),g$e(f$e,F$e("public/DraftStyleDefault/depth3"),3),g$e(f$e,F$e("public/DraftStyleDefault/depth4"),4),f$e),Y$e=D$e({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),V$e=function(e){var t={};return e.mapKeys((function(e,n){var i=[n.element];void 0!==n.aliasedElements&&i.push.apply(i,n.aliasedElements),i.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),D$e(t)},K$e=function(e){if(L$e(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},J$e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(W$e).some((function(n){e.classList.contains(n)&&(t=W$e[n])})),t},Q$e=function(e){if(!A$e(e))return!1;var t=e;return!(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)},Z$e=function(e){if(!I$e(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},$$e=function(e,t){if(!L$e(e))return t;var n=e,i=n.style.fontWeight,r=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){G$e.indexOf(i)>=0?e.add("BOLD"):q$e.indexOf(i)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},X$e=function(e){return"ul"===e||"ol"===e},eXe=function(){function e(e,t){g$e(this,"characterList",S$e()),g$e(this,"currentBlockType","unstyled"),g$e(this,"currentDepth",0),g$e(this,"currentEntity",null),g$e(this,"currentText",""),g$e(this,"wrapper",null),g$e(this,"blockConfigs",[]),g$e(this,"contentBlocks",[]),g$e(this,"entityMap",y$e),g$e(this,"blockTypeMap",void 0),g$e(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=S$e(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=y$e,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],P$e())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(M$e?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||k$e(),n=h$e({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:S$e(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=S$e(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i],a=r.nodeName.toLowerCase();if("body"===a||X$e(a)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var o=this.currentDepth,s=this.wrapper;X$e(a)&&(this.wrapper=a,X$e(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(r.childNodes),t)),this.currentDepth=o,this.wrapper=s}else{var l=this.blockTypeMap.get(a);if(void 0===l)if("#text"!==a)if("br"!==a)if(Z$e(r))this._addImgNode(r,t);else if(Q$e(r))this._addAnchorNode(r,n,t);else{var u=t;Y$e.has(a)&&(u=u.add(Y$e.get(a))),u=$$e(r,u);var c=K$e(r);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(r.childNodes),u))}else this._addBreakNode(r,t);else this._addTextNode(r,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===a?"pre":this.wrapper,"string"!=typeof l&&(l=this.disambiguate(a,this.wrapper)||l[0]||"unstyled"),!M$e&&L$e(r)&&("unordered-list-item"===l||"ordered-list-item"===l)){var p=r;this.currentDepth=J$e(p,this.currentDepth)}var h=k$e(),g=this._toBlockConfigs(Array.from(r.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:l})),this.currentDepth=d,this.wrapper=f}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var i=m$e.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(i))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,i=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==i?Math.min(t,i[0]):t)>(n=void 0!==(i=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-i[0]):n)?(this.currentText="",this.characterList=S$e()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(R$e,"")).replace(N$e," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){T$e(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(I$e(e)){var n=e,i={};H$e.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),E$e("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(A$e(e)){var i=e,r={};U$e.forEach((function(e){var t=i.getAttribute(e);t&&(r[e]=t)})),r.url=new w$e(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var r=e[i];r.parent=t,r.prevSibling=i>0?e[i-1].key:null,r.nextSibling=i<n?e[i+1].key:null,r.children=S$e(r.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new _$e(h$e({},r))),this._toContentBlocks(r.childConfigs,r.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return S$e(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),i=n.text,r=n.characterList;t.contentBlocks.push(new v$e(h$e({},e,{text:e.text+i,characterList:e.characterList.concat(r)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",i=S$e(),r=0;r<=t;r++){var a=e[r];n+=a.text,i=i.concat(a.characterList),""!==n&&"unstyled"!==a.type&&(n+="\n",i=i.push(i.last()));var o=this._extractTextFromBlockConfigs(a.childConfigs);n+=o.text,i=i.concat(o.characterList)}return{text:n,characterList:i}},e}(),tXe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x$e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b$e,i=t(e=e.trim().replace(j$e,"").replace(O$e," ").replace(z$e,"").replace(B$e,""));if(!i)return null;var r=V$e(n),a=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new eXe(r,a).addDOMNode(i).getContentBlocks()};function nXe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iXe=eBe,rXe=gBe,aXe=tXe,oXe=NBe,sXe=l$e,lXe=kqe,uXe=Cze.exports,cXe=Eqe,dXe=uXe.List,fXe=uXe.Repeat,pXe=lXe("draft_tree_data_support"),hXe=pXe?rXe:iXe,gXe={processHTML:function(e,t){return aXe(e,sXe,t)},processText:function(e,t,n){return e.reduce((function(e,i,r){i=cXe(i);var a=oXe(),o={key:a,type:n,text:i,characterList:dXe(fXe(t,i.length))};if(pXe&&0!==r){var s=r-1;o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){nXe(e,t,n[t])}))}return e}({},o,{prevSibling:(e[s]=e[s].merge({nextSibling:a})).getKey()})}return e.push(new hXe(o)),e}),[])}};var mXe=function(e,t,n,i){var r=t.getStartKey(),a=t.getEndKey(),o=e.getBlockMap(),s=o.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===a})).concat([[a,o.get(a)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,i)),e.set("depth",t)}));return o=o.merge(s),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t})},vXe=VGe,_Xe=qUe,bXe=mXe,yXe=_Ue,wXe={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===i.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return wXe.toggleInlineStyle(e,"BOLD");case"italic":return wXe.toggleInlineStyle(e,"ITALIC");case"underline":return wXe.toggleInlineStyle(e,"UNDERLINE");case"code":return wXe.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return wXe.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return wXe.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=vXe.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=_Xe.push(e,t,"insert-characters");return _Xe.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),r=n.getBlockBefore(i);if(r&&"atomic"===r.getType()){var a=n.getBlockMap().delete(r.getKey()),o=n.merge({blockMap:a,selectionAfter:t});if(o!==n)return _Xe.push(e,o,"remove-range")}var s=wXe.tryToRemoveBlockStyle(e);return s?_Xe.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),r=n.getBlockForKey(i).getLength();if(t.getStartOffset()<r)return null;var a=n.getBlockAfter(i);if(!a||"atomic"!==a.getType())return null;var o=t.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),s=vXe.removeRange(n,o,"forward");return s!==n?_Xe.push(e,s,"remove-range"):null},onTab:function(e,t,n){var i=t.getSelection(),r=i.getAnchorKey();if(r!==i.getFocusKey())return t;var a=t.getCurrentContent(),o=a.getBlockForKey(r),s=o.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var l=o.getDepth();if(!e.shiftKey&&l===n)return t;var u=bXe(a,i,e.shiftKey?-1:1,n);return _Xe.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),r=n.getEndKey(),a=e.getCurrentContent(),o=n;if(i!==r&&0===n.getEndOffset()){var s=yXe(a.getBlockBefore(r));r=s.getKey(),o=o.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:r,focusOffset:s.getLength(),isBackward:!1})}if(a.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==r})).some((function(e){return"atomic"===e.getType()})))return e;var l=a.getBlockForKey(i).getType()===t?"unstyled":t;return _Xe.push(e,vXe.setBlockType(a,o,l),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),i=t.getFocusKey();return t.isCollapsed()||n!==i?wXe.toggleBlockType(e,"code-block"):wXe.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return _Xe.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var r,a=e.getCurrentContent();return r=i.has(t)?vXe.removeInlineStyle(a,n,t):vXe.applyInlineStyle(a,n,t),_Xe.push(e,r,"change-inline-style")},toggleLink:function(e,t,n){var i=vXe.applyEntity(e.getCurrentContent(),t,n);return _Xe.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var i=t.getAnchorKey(),r=e.getCurrentContent(),a=r.getBlockForKey(i).getType(),o=r.getBlockBefore(i);if("code-block"===a&&o&&"code-block"===o.getType()&&0!==o.getLength())return null;if("unstyled"!==a)return vXe.setBlockType(r,t,"unstyled")}return null}},FXe=wXe,kXe=/\r\n?|\n/g;var xXe=Pze,EXe=zze,CXe=sJe,SXe=VGe,DXe=gXe,PXe=qUe,AXe=FXe,TXe=ZWe,LXe=dJe,IXe=fJe,MXe=function(e){return e.split(kXe)};function jXe(e,t,n){var i=SXe.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return PXe.push(e,i.set("entityMap",n),"insert-fragment")}var NXe=function(e,t){t.preventDefault();var n=new CXe(t.clipboardData);if(!n.isRichText()){var i=n.getFiles(),r=n.getText();if(i.length>0){if(e.props.handlePastedFiles&&IXe(e.props.handlePastedFiles(i)))return;return void LXe(i,(function(t){if(t=t||r){var n=e._latestEditorState,i=MXe(t),a=EXe.create({style:n.getCurrentInlineStyle(),entity:TXe(n.getCurrentContent(),n.getSelection())}),o=AXe.getCurrentBlockType(n),s=DXe.processText(i,a,o),l=xXe.createFromArray(s),u=SXe.replaceWithFragment(n.getCurrentContent(),n.getSelection(),l);e.update(PXe.push(n,u,"insert-fragment"))}}))}}var a=[],o=n.getText(),s=n.getHTML(),l=e._latestEditorState;if(!e.props.handlePastedText||!IXe(e.props.handlePastedText(o,s,l))){if(o&&(a=MXe(o)),!e.props.stripPastedStyles){var u=e.getClipboard();if(n.isRichText()&&u){if(-1!==s.indexOf(e.getEditorKey())||1===a.length&&1===u.size&&u.first().getText()===o)return void e.update(jXe(e._latestEditorState,u))}else if(u&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(a,u))return void e.update(jXe(e._latestEditorState,u));if(s){var c=DXe.processHTML(s,e.props.blockRenderMap);if(c){var d=c.contentBlocks,f=c.entityMap;if(d){var p=xXe.createFromArray(d);return void e.update(jXe(e._latestEditorState,p,f))}}}e.setClipboard(null)}if(a.length){var h=EXe.create({style:l.getCurrentInlineStyle(),entity:TXe(l.getCurrentContent(),l.getSelection())}),g=AXe.getCurrentBlockType(l),m=DXe.processText(a,h,g),v=xXe.createFromArray(m);e.update(jXe(e._latestEditorState,v))}}},RXe=nWe,OXe=OJe,zXe=qJe,BXe=HJe,GXe=KJe,qXe=nQe,UXe=iQe,HXe=rQe,WXe=sQe,YXe=OQe,VXe=i$e,KXe=NXe,JXe=VWe,QXe=RXe.isBrowser("Chrome"),ZXe=RXe.isBrowser("Firefox"),$Xe=QXe||ZXe?JXe:function(e){},XXe={onBeforeInput:OXe,onBlur:zXe,onCompositionStart:BXe,onCopy:GXe,onCut:qXe,onDragOver:UXe,onDragStart:HXe,onFocus:WXe,onInput:YXe,onKeyDown:VXe,onPaste:KXe,onSelect:JXe,onMouseUp:$Xe,onKeyUp:$Xe},e0e=b.default.unstable_flushControlled;var t0e=m.default,n0e=_He,i0e=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},r.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=n0e({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return t0e.createElement("div",{className:t},t0e.createElement("div",{className:n0e("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(t0e.Component),r0e=i0e,a0e=HQe,o0e=kWe,s0e=nWe,l0e=s0e.isPlatform("Mac OS X"),u0e=l0e&&s0e.isBrowser("Firefox < 29"),c0e=a0e.hasCommandModifier,d0e=a0e.isCtrlKeyCommand;function f0e(e){return l0e&&e.altKey||d0e(e)}var p0e=function(e){switch(e.keyCode){case 66:return c0e(e)?"bold":null;case 68:return d0e(e)?"delete":null;case 72:return d0e(e)?"backspace":null;case 73:return c0e(e)?"italic":null;case 74:return c0e(e)?"code":null;case 75:return l0e&&d0e(e)?"secondary-cut":null;case 77:case 79:return d0e(e)?"split-block":null;case 84:return l0e&&d0e(e)?"transpose-characters":null;case 85:return c0e(e)?"underline":null;case 87:return l0e&&d0e(e)?"backspace-word":null;case 89:return d0e(e)?l0e?"secondary-paste":"redo":null;case 90:return function(e){return c0e(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o0e.RETURN:return"split-block";case o0e.DELETE:return function(e){return!l0e&&e.shiftKey?null:f0e(e)?"delete-word":"delete"}(e);case o0e.BACKSPACE:return function(e){return c0e(e)&&l0e?"backspace-to-start-of-line":f0e(e)?"backspace-word":"backspace"}(e);case o0e.LEFT:return u0e&&c0e(e)?"move-selection-to-start-of-block":null;case o0e.RIGHT:return u0e&&c0e(e)?"move-selection-to-end-of-block":null;default:return null}},h0e=_W;function g0e(){return g0e=h0e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},g0e.apply(this,arguments)}function m0e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){_0e(e,t,n[t])}))}return e}function v0e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var y0e=wHe,w0e=FHe,F0e=dYe,k0e=WKe,x0e=CJe,E0e=XXe,C0e=e0e,S0e=r0e,D0e=qUe,P0e=m.default,A0e=hVe,T0e=kVe,L0e=_He,I0e=NBe,M0e=p0e,j0e=TVe,N0e=kqe,R0e=CBe,O0e=EWe,z0e=_Ue,B0e=nWe.isBrowser("IE"),G0e=!B0e,q0e={edit:E0e,composite:F0e,drag:x0e,cut:null,render:null},U0e=!1,H0e=function(e){function t(){return e.apply(this,arguments)||this}b0e(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(P0e.Component),W0e=function(e){function t(t){var n;return _0e(v0e(n=e.call(this,t)||this),"_blockSelectEvents",void 0),_0e(v0e(n),"_clipboard",void 0),_0e(v0e(n),"_handler",void 0),_0e(v0e(n),"_dragCount",void 0),_0e(v0e(n),"_internalDrag",void 0),_0e(v0e(n),"_editorKey",void 0),_0e(v0e(n),"_placeholderAccessibilityID",void 0),_0e(v0e(n),"_latestEditorState",void 0),_0e(v0e(n),"_latestCommittedEditorState",void 0),_0e(v0e(n),"_pendingStateFromBeforeInput",void 0),_0e(v0e(n),"_onBeforeInput",void 0),_0e(v0e(n),"_onBlur",void 0),_0e(v0e(n),"_onCharacterData",void 0),_0e(v0e(n),"_onCompositionEnd",void 0),_0e(v0e(n),"_onCompositionStart",void 0),_0e(v0e(n),"_onCopy",void 0),_0e(v0e(n),"_onCut",void 0),_0e(v0e(n),"_onDragEnd",void 0),_0e(v0e(n),"_onDragOver",void 0),_0e(v0e(n),"_onDragStart",void 0),_0e(v0e(n),"_onDrop",void 0),_0e(v0e(n),"_onInput",void 0),_0e(v0e(n),"_onFocus",void 0),_0e(v0e(n),"_onKeyDown",void 0),_0e(v0e(n),"_onKeyPress",void 0),_0e(v0e(n),"_onKeyUp",void 0),_0e(v0e(n),"_onMouseDown",void 0),_0e(v0e(n),"_onMouseUp",void 0),_0e(v0e(n),"_onPaste",void 0),_0e(v0e(n),"_onSelect",void 0),_0e(v0e(n),"editor",void 0),_0e(v0e(n),"editorContainer",void 0),_0e(v0e(n),"focus",void 0),_0e(v0e(n),"blur",void 0),_0e(v0e(n),"setMode",void 0),_0e(v0e(n),"exitCurrentMode",void 0),_0e(v0e(n),"restoreEditorDOM",void 0),_0e(v0e(n),"setClipboard",void 0),_0e(v0e(n),"getClipboard",void 0),_0e(v0e(n),"getEditorKey",void 0),_0e(v0e(n),"update",void 0),_0e(v0e(n),"onDragEnter",void 0),_0e(v0e(n),"onDragLeave",void 0),_0e(v0e(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),_0e(v0e(n),"focus",(function(e){var t=n.props.editorState,i=t.getSelection().getHasFocus(),r=n.editor;if(r){var a=T0e.getScrollParent(r),o=e||j0e(a),s=o.x,l=o.y;O0e(r)||("production"!==go.env.NODE_ENV?R0e(!1,"editorNode is not an HTMLElement"):R0e(!1)),r.focus(),a===window?window.scrollTo(s,l):A0e.setTop(a,l),i||n.update(D0e.forceSelection(t,t.getSelection()))}})),_0e(v0e(n),"blur",(function(){var e=n.editor;e&&(O0e(e)||("production"!==go.env.NODE_ENV?R0e(!1,"editorNode is not an HTMLElement"):R0e(!1)),e.blur())})),_0e(v0e(n),"setMode",(function(e){var t=n.props,i=t.onPaste,r=t.onCut,a=t.onCopy,o=m0e({},q0e.edit);i&&(o.onPaste=i),r&&(o.onCut=r),a&&(o.onCopy=a);var s=m0e({},q0e,{edit:o});n._handler=s[e]})),_0e(v0e(n),"exitCurrentMode",(function(){n.setMode("edit")})),_0e(v0e(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),_0e(v0e(n),"setClipboard",(function(e){n._clipboard=e})),_0e(v0e(n),"getClipboard",(function(){return n._clipboard})),_0e(v0e(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),_0e(v0e(n),"onDragEnter",(function(){n._dragCount++})),_0e(v0e(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||I0e(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==go.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}b0e(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var i=t._handler&&t._handler[e];i&&(C0e?C0e((function(){return i(t,n)})):i(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:z0e(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return P0e.createElement(S0e,e)}return null},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,r=e.customStyleFn,a=e.customStyleMap,o=e.editorState,s=e.preventScroll,l=e.readOnly,u=e.textAlignment,c=e.textDirectionality,d=L0e({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:i,customStyleMap:m0e({},w0e,a),customStyleFn:r,editorKey:this._editorKey,editorState:o,preventScroll:s,textDirectionality:c};return P0e.createElement("div",{className:d},this._renderPlaceholder(),P0e.createElement("div",{className:L0e("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},P0e.createElement("div",{"aria-activedescendant":l?null:this.props.ariaActiveDescendantID,"aria-autocomplete":l?null:this.props.ariaAutoComplete,"aria-controls":l?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":l?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":l?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:L0e({notranslate:!l,"public/DraftEditor/content":!0}),contentEditable:!l,"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:l?null:f,spellCheck:G0e&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},P0e.createElement(H0e,{editor:this,editorState:o}),P0e.createElement(k0e,g0e({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!U0e&&N0e("draft_ods_enabled")&&(U0e=!0),this.setMode("edit"),B0e&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):k.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(P0e.Component);_0e(W0e,"defaultProps",{blockRenderMap:y0e,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:M0e,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Y0e=W0e,V0e=E(Object.freeze({__proto__:null})),K0e={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},J0e=K0e,Q0e=gQe.strlen;var Z0e=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,r){var a=e.getText(),o=e.getEntityAt(i);n.push({offset:Q0e(a.slice(0,i)),length:Q0e(a.slice(i,r)),key:Number(t[J0e.stringify(o)])})})),n},$0e=gQe,X0e=Bze,e1e=function(e,t){return e===t},t1e=function(e){return!!e},n1e=[];var i1e=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var i=[],r=t.map((function(e){return e.has(n)})).toList();return X0e(r,e1e,t1e,(function(t,r){var a=e.getText();i.push({offset:$0e.strlen(a.slice(0,t)),length:$0e.strlen(a.slice(t,r)),style:n})})),i}(e,t,n)}));return Array.prototype.concat.apply(n1e,n.toJS())};function r1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a1e=eBe,o1e=gBe,s1e=K0e,l1e=Z0e,u1e=i1e,c1e=CBe,d1e=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:u1e(e),entityRanges:l1e(e,t),data:e.getData().toObject()}},f1e=function(e,t,n,i){if(e instanceof a1e)n.push(d1e(e,t));else{e instanceof o1e||("production"!==go.env.NODE_ENV?c1e(!1,"block is not a BlockNode"):c1e(!1));var r=e.getParentKey(),a=i[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r1e(e,t,n[t])}))}return e}({},d1e(e,t),{children:[]});r?i[r].children.push(a):n.push(a)}},p1e=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,i=[],r={},a={},o=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var i=e.getEntityAt(t),r=s1e.stringify(i);a[r]||(a[r]=i,n[r]="".concat(o),o++)})),f1e(e,n,i,r)})),{blocks:i,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,i=t.entityMap,r={};return Object.keys(i).forEach((function(t,n){var i=e.getEntity(s1e.unstringify(t));r[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}})),{blocks:n,entityMap:r}}(e,t),t};function h1e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){g1e(e,t,n[t])}))}return e}function g1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m1e=NBe,v1e=CBe,_1e=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},b1e={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==go.env.NODE_ENV?v1e(!1,"Invalid raw state"):v1e(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var i=n.pop();t(i);var r=i.children;Array.isArray(r)||("production"!==go.env.NODE_ENV?v1e(!1,"Invalid tree raw block"):v1e(!1)),n=n.concat([].concat(r.reverse()))}}(t,(function(e){var t=h1e({},e);_1e(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?h1e({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,h1e({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var i=_1e(e),r=e.depth||0,a=h1e({},e,{children:[]});if(i){var o=n[0];if(null==o&&0===r)t.push(a);else if(null==o||o.depth<r-1){var s={key:m1e(),text:"",depth:r-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===r?t.push(s):null!=o&&o.children.push(s),s.children.push(a)}else if(o.depth===r-1)o.children.push(a);else{for(;null!=o&&o.depth>=r;)n.shift(),o=n[0];r>0?o.children.push(a):t.push(a)}}else t.push(a)})),h1e({},e,{blocks:t})}},y1e=b1e,w1e=bQe,F1e={isValidBlock:function(e,t){var n=e.getKey(),i=e.getParentKey();if(null!=i&&!t.get(i).getChildKeys().includes(n))return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing parent -> child pointer on %s",n),!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing child -> parent pointer on %s",n),!1;var r=e.getPrevSiblingKey();if(null!=r&&t.get(r).getNextSiblingKey()!==n)return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==r&&r===a?("production"!==go.env.NODE_ENV&&w1e(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==go.env.NODE_ENV&&w1e(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==go.env.NODE_ENV&&w1e(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,i=t.shift().getKey(),r=[];null!=i;){var a=e.get(i),o=a.getChildKeys(),s=a.getNextSiblingKey();if(o.size>0){null!=s&&r.unshift(s);var l=o.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return"production"!==go.env.NODE_ENV&&w1e(!0,"%s has no first child",i),!1;i=l.getKey()}else i=null!=a.getNextSiblingKey()?a.getNextSiblingKey():r.shift();n++}return n===e.size||("production"!==go.env.NODE_ENV&&w1e(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},k1e=F1e,x1e=zze,E1e=Cze.exports.List;var C1e=function(e,t){var n=e.map((function(e,n){var i=t[n];return x1e.create({style:e,entity:i})}));return E1e(n)},S1e=gQe.substr;var D1e=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var i=S1e(e,0,t.offset).length,r=i+S1e(e,t.offset,t.length).length,a=i;a<r;a++)n[a]=t.key})),n},P1e=gQe,A1e=Cze.exports.OrderedSet,T1e=P1e.substr,L1e=A1e();var I1e=function(e,t){var n=Array(e.length).fill(L1e);return t&&t.forEach((function(t){for(var i=T1e(e,0,t.offset).length,r=i+T1e(e,t.offset,t.length).length;i<r;)n[i]=n[i].add(t.style),i++})),n};function M1e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){j1e(e,t,n[t])}))}return e}function j1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N1e=eBe,R1e=gBe,O1e=Vqe,z1e=yqe,B1e=y1e,G1e=k1e,q1e=Fqe,U1e=C1e,H1e=D1e,W1e=I1e,Y1e=NBe,V1e=Cze.exports,K1e=CBe,J1e=kqe("draft_tree_data_support"),Q1e=V1e.List,Z1e=V1e.Map,$1e=V1e.OrderedMap,X1e=function(e,t){var n=e.key,i=e.type,r=e.data;return{text:e.text,depth:e.depth||0,type:i||"unstyled",key:n||Y1e(),data:Z1e(r),characterList:e2e(e,t)}},e2e=function(e,t){var n=e.text,i=e.entityRanges,r=e.inlineStyleRanges,a=i||[];return U1e(W1e(n,r||[]),H1e(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return M1e({},e,{key:t[e.key]})}))))},t2e=function(e){return M1e({},e,{key:e.key||Y1e()})},n2e=function(e,t,n){var i=t.map((function(e){return M1e({},e,{parentRef:n})}));return e.concat(i.reverse())},i2e=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),i=J1e&&!n?B1e.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!J1e)return function(e,t){return $1e(e.map((function(e){var n=new N1e(X1e(e,t));return[n.getKey(),n]})))}(n?B1e.fromRawTreeStateToRawState(e).blocks:i,t);var r=function(e,t){return e.map(t2e).reduce((function(n,i,r){Array.isArray(i.children)||("production"!==go.env.NODE_ENV?K1e(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):K1e(!1));var a=i.children.map(t2e),o=new R1e(M1e({},X1e(i,t),{prevSibling:0===r?null:e[r-1].key,nextSibling:r===e.length-1?null:e[r+1].key,children:Q1e(a.map((function(e){return e.key})))}));n=n.set(o.getKey(),o);for(var s=n2e([],a,o);s.length>0;){var l=s.pop(),u=l.parentRef,c=u.getChildKeys(),d=c.indexOf(l.key),f=Array.isArray(l.children);if(!f){f||("production"!==go.env.NODE_ENV?K1e(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):K1e(!1));break}var p=l.children.map(t2e),h=new R1e(M1e({},X1e(l,t),{parent:u.getKey(),children:Q1e(p.map((function(e){return e.key}))),prevSibling:0===d?null:c.get(d-1),nextSibling:d===c.size-1?null:c.get(d+1)}));n=n.set(h.getKey(),h),s=n2e(s,p,h)}return n}),$1e())}(i,t);return"production"!==go.env.NODE_ENV&&(G1e.isValidTree(r)||("production"!==go.env.NODE_ENV?K1e(!1,"Should be a valid tree"):K1e(!1))),r},r2e=function(e){Array.isArray(e.blocks)||("production"!==go.env.NODE_ENV?K1e(!1,"invalid RawDraftContentState"):K1e(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var i=t[e],r=i.type,a=i.mutability,o=i.data;n[e]=z1e.__create(r,a,o||{})})),n}(e),n=i2e(e,t),i=n.isEmpty()?new q1e:q1e.createEmpty(n.first().getKey());return new O1e({blockMap:n,entityMap:t,selectionBefore:i,selectionAfter:i})},a2e=$Qe;var o2e=function(e){var t=a2e(e),n=0,i=0,r=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var o=t[1];n=o.top,i=o.right,r=o.bottom,a=o.left}else{var s=t[0];n=s.top,i=s.right,r=s.bottom,a=s.left}for(var l=1;l<t.length;l++){var u=t[l];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),i=Math.max(i,u.right),r=Math.max(r,u.bottom),a=Math.min(a,u.left))}}return{top:n,right:i,bottom:r,left:a,width:i-a,height:r-n}};var s2e={Editor:Y0e,EditorBlock:AKe,EditorState:qUe,CompositeDecorator:mHe,Entity:yqe,EntityInstance:cqe,BlockMapBuilder:Pze,CharacterMetadata:zze,ContentBlock:eBe,ContentState:Vqe,RawDraftContentState:V0e,SelectionState:Fqe,AtomicBlockUtils:pHe,KeyBindingUtil:HQe,Modifier:VGe,RichUtils:FXe,DefaultDraftBlockRenderMap:wHe,DefaultDraftInlineStyle:FHe,convertFromHTML:tXe,convertFromRaw:r2e,convertToRaw:p1e,genKey:NBe,getDefaultKeyBinding:p0e,getVisibleSelectionRect:function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),i=o2e(n),r=i.top,a=i.right,o=i.bottom,s=i.left;return 0===r&&0===a&&0===o&&0===s?null:i}},l2e=function(e,t){return e.offset===t.offset?t.length-e.length:e.offset-t.offset};function u2e(e){return u2e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u2e(e)}m.default.createElement("p",null),m.default.createElement("p",null),m.default.createElement("h1",null),m.default.createElement("h2",null),m.default.createElement("h3",null),m.default.createElement("h4",null),m.default.createElement("h5",null),m.default.createElement("h6",null),m.default.createElement("blockquote",null),m.default.createElement("li",null),m.default.createElement("ul",null),m.default.createElement("li",null),m.default.createElement("figure",null),m.default.createElement("figure",null);var c2e={exports:{}};!function(e,t){e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:V(e)}function i(e){return s(e)?e:K(e)}function r(e){return l(e)?e:J(e)}function a(e){return o(e)&&!u(e)?e:Q(e)}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(i,n),t(r,n),t(a,n),n.isIterable=o,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=i,n.Indexed=r,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,_=v-1,b={},y={value:!1},w={value:!1};function F(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function x(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r<n;r++)i[r]=e[r+t];return i}function C(e){return void 0===e.size&&(e.size=e.__iterate(D)),e.size}function S(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function D(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return L(e,t,0)}function T(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I=0,M=1,j=2,N="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",O=N||R;function z(e){this.next=e}function B(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function G(){return{value:void 0,done:!0}}function q(e){return!!W(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[R]);if("function"==typeof t)return t}function Y(e){return e&&"number"==typeof e.length}function V(e){return null==e?oe():o(e)?e.toSeq():ue(e)}function K(e){return null==e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function J(e){return null==e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Q(e){return(null==e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=I,z.VALUES=M,z.ENTRIES=j,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[O]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return de(this,e,t,!0)},V.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(K,V),K.prototype.toKeyedSeq=function(){return this},t(J,V),J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(e,t){return de(this,e,t,!1)},J.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Q,V),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=K,V.Set=Q,V.Indexed=J;var Z,$,X,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return Z||(Z=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():q(e)?new ie(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return Y(e)?new te(e):U(e)?new re(e):q(e)?new ie(e):void 0}function de(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function fe(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new z((function(){var e=r[n?a-o:o];return o++>a?G():B(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,i){return Array.isArray(t)?e.call(i,n,J(t).map((function(n,i){return he(e,n,i,t)}))):me(t)?e.call(i,n,K(t).map((function(n,i){return he(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?J(e).map(ge).toList():me(e)?K(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function _e(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&ve(r[1],e)&&(n||ve(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,i){if(n?!e.has(t):r?!ve(t,e.get(i,b)):!ve(e.get(i,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ye(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(X)return X;X=this}}function Fe(){throw TypeError("Abstract")}function ke(){}function xe(){}function Ee(){}V.prototype[ee]=!0,t(te,J),te.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,i=n.length-1,r=0;r<=i;r++)if(!1===e(n[t?i-r:r],r,this))return r+1;return r},te.prototype.__iterator=function(e,t){var n=this._array,i=n.length-1,r=0;return new z((function(){return r>i?G():B(e,r,n[t?i-r++:r++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new z((function(){var o=i[t?r-a:a];return a++>r?G():B(e,o,n[o])}))},ne.prototype[h]=!0,t(ie,J),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),i=0;if(U(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!U(n))return new z(G);var i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value)}))},t(re,J),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a<r.length;)if(!1===e(r[a],a++,this))return a;for(;!(n=i.next()).done;){var o=n.value;if(r[a]=o,!1===e(o,a++,this))break}return a},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,i=this._iteratorCache,r=0;return new z((function(){if(r>=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return B(e,r,i[r++])}))},t(be,J),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new be(this._value,T(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,i=0;return new z((function(){return i<n.size?B(e,i++,n._value):G()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):_e(e)},t(we,J),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=A(e,this.size),(t=T(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;a<=n;a++){if(!1===e(r,a,this))return a+1;r+=t?-i:i}return a},we.prototype.__iterator=function(e,t){var n=this.size-1,i=this._step,r=t?this._start+n*i:this._start,a=0;return new z((function(){var o=r;return r+=t?-i:i,a>n?G():B(e,a++,o)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:_e(this,e)},t(Fe,n),t(ke,Fe),t(xe,Fe),t(Ee,Fe),Fe.Keyed=ke,Fe.Indexed=xe,Fe.Set=Ee;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function Se(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Se(n)}if("string"===t)return e.length>ze?Pe(e):Ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Te(e);if("function"==typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=qe[e];return void 0===t&&(t=Ae(e),Ge===Be&&(Ge=0,qe={}),Ge++,qe[e]=t),t}function Ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Se(t)}function Te(e){var t;if(Ne&&void 0!==(t=je.get(e)))return t;if(void 0!==(t=e[Oe]))return t;if(!Ie){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Oe]))return t;if(void 0!==(t=Me(e)))return t}if(t=++Re,1073741824&Re&&(Re=0),Ne)je.set(e,t);else{if(void 0!==Le&&!1===Le(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ie)Object.defineProperty(e,Oe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Oe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Oe]=t}}return t}var Le=Object.isExtensible,Ie=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Me(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var je,Ne="function"==typeof WeakMap;Ne&&(je=new WeakMap);var Re=0,Oe="__immutablehash__";"function"==typeof Symbol&&(Oe=Symbol(Oe));var ze=16,Be=255,Ge=0,qe={};function Ue(e){ye(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?rt():We(e)&&!c(e)?e:rt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(He,ke),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return at(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return at(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=mt(this,Fn(e),t,n);return i===b?void 0:i},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return qt(dn(this,e))},He.prototype.sortBy=function(e,t){return qt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=We;var Ye,Ve="@@__IMMUTABLE_MAP__@@",Ke=He.prototype;function Je(e,t){this.ownerID=e,this.entries=t}function Qe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ke);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ye||(Ye=it(0))}function at(e,t,n){var i,r;if(e._root){var a=F(y),o=F(w);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;r=1,i=new Je(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===b?e:(k(s),k(o),new Xe(t,i,[r,a]))}function st(e){return e.constructor===Xe||e.constructor===$e}function lt(e,t,n,i,r){if(e.keyHash===i)return new $e(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&_,s=(0===n?i:i>>>n)&_;return new Qe(t,1<<o|1<<s,o===s?[lt(e,t,n+m,i,r)]:(a=new Xe(t,i,r),o<s?[e,a]:[a,e]))}function ut(e,t,n,i){e||(e=new x);for(var r=new Xe(e,De(n),[n,i]),a=0;a<t.length;a++){var o=t[a];r=r.update(e,0,void 0,o[0],o[1])}return r}function ct(e,t,n,i){for(var r=0,a=0,o=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==i&&(r|=l,o[a++]=c)}return new Qe(e,r,o)}function dt(e,t,n,i,r){for(var a=0,o=new Array(v),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Ze(e,a+1,o)}function ft(e,t,n){for(var r=[],a=0;a<n.length;a++){var s=n[a],l=i(s);o(s)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return gt(e,t,r)}function pt(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,i){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var r=e(t,n,i);return ve(t,r)?t:r}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var i=t?function(n,i){e.update(i,b,(function(e){return e===b?n:t(e,n,i)}))}:function(t,n){e.set(n,t)},r=0;r<n.length;r++)n[r].forEach(i)})):e.constructor(n[0])}function mt(e,t,n,i){var r=e===b,a=t.next();if(a.done){var o=r?n:e,s=i(o);return s===o?e:s}ye(r||e&&e.set,"invalid keyPath");var l=a.value,u=r?b:e.get(l,b),c=mt(u,t,n,i);return c===u?e:c===b?e.remove(l):(r?rt():e).set(l,c)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function _t(e,t,n,i){var r=i?e:E(e);return r[t]=n,r}function bt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s<r;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function yt(e,t,n){var i=e.length-1;if(n&&t===i)return e.pop(),e;for(var r=new Array(i),a=0,o=0;o<i;o++)o===t&&(a=1),r[o]=e[o+a];return r}Ke[Ve]=!0,Ke[g]=Ke.remove,Ke.removeIn=Ke.deleteIn,Je.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},Je.prototype.update=function(e,t,n,i,r,a,o){for(var s=r===b,l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),!s||1!==l.length){if(!d&&!s&&l.length>=wt)return ut(e,l,i,r);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new Je(e,p)}},Qe.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=1<<((0===e?t:t>>>e)&_),a=this.bitmap;return 0==(a&r)?i:this.nodes[vt(a&r-1)].get(e+m,t,n,i)},Qe.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&r===b)return this;var d=vt(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=ot(p,e,t+m,n,i,r,a,o);if(h===p)return this;if(!c&&h&&f.length>=Ft)return dt(e,f,u,s,h);if(c&&!h&&2===f.length&&st(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&st(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?_t(f,d,h,g):yt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=y,this):new Qe(e,v,y)},Ze.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=(0===e?t:t>>>e)&_,a=this.nodes[r];return a?a.get(e+m,t,n,i):i},Ze.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&_,l=r===b,u=this.nodes,c=u[s];if(l&&!c)return this;var d=ot(c,e,t+m,n,i,r,a,o);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<kt)return ct(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=_t(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ze(e,f,h)},$e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(ve(n,r[a][0]))return r[a][1];return i},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=r===b;if(n!==this.keyHash)return s?this:(k(o),k(a),lt(this,e,t,n,[i,r]));for(var l=this.entries,u=0,c=l.length;u<c&&!ve(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(k(o),(s||!d)&&k(a),s&&2===c)return new Xe(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:E(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new $e(e,this.keyHash,p)},Xe.prototype.get=function(e,t,n,i){return ve(n,this.entry[0])?this.entry[1]:i},Xe.prototype.update=function(e,t,n,i,r,a,o){var s=r===b,l=ve(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(k(o),s?void k(a):l?e&&e===this.ownerID?(this.entry[1]=r,this):new Xe(e,this.keyHash,[i,r]):(k(a),lt(this,e,t,De(i),[i,r])))},Je.prototype.iterate=$e.prototype.iterate=function(e,t){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===e(n[t?r-i:i]))return!1},Qe.prototype.iterate=Ze.prototype.iterate=function(e,t){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var a=n[t?r-i:i];if(a&&!1===a.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,i=t.node,r=t.index++;if(i.entry){if(0===r)return tt(e,i.entry)}else if(i.entries){if(r<=(n=i.entries.length-1))return tt(e,i.entries[this._reverse?n-r:r])}else if(r<=(n=i.nodes.length-1)){var a=i.nodes[this._reverse?n-r:r];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return G()};var wt=v/4,Ft=v/2,kt=v/4;function xt(e){var t=Mt();if(null==e)return t;if(Et(e))return e;var n=r(e),i=n.size;return 0===i?t:(Ue(i),i>0&&i<v?It(0,i,m,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(i),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ct])}t(xt,xe),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=Ot(this,e+=this._origin);return n&&n.array[e&_]}return t},xt.prototype.set=function(e,t){return jt(this,e,t)},xt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var i=0;i<e.length;i++)n.set(t+i,e[i])}))},xt.prototype.pop=function(){return zt(this,0,-1)},xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},xt.prototype.shift=function(){return zt(this,1)},xt.prototype.merge=function(){return Bt(this,void 0,arguments)},xt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},xt.prototype.mergeDeep=function(){return Bt(this,pt,arguments)},xt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ht(t),n)},xt.prototype.setSize=function(e){return zt(this,0,e)},xt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:zt(this,A(e,n),T(t,n))},xt.prototype.__iterator=function(e,t){var n=0,i=Lt(this,t);return new z((function(){var t=i();return t===Tt?G():B(e,n++,t)}))},xt.prototype.__iterate=function(e,t){for(var n,i=0,r=Lt(this,t);(n=r())!==Tt&&!1!==e(n,i++,this););return i},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?It(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},xt.isList=Et;var Ct="@@__IMMUTABLE_LIST__@@",St=xt.prototype;function Dt(e,t){this.array=e,this.ownerID=t}St[Ct]=!0,St[g]=St.remove,St.setIn=Ke.setIn,St.deleteIn=St.removeIn=Ke.removeIn,St.update=Ke.update,St.updateIn=Ke.updateIn,St.mergeIn=Ke.mergeIn,St.mergeDeepIn=Ke.mergeDeepIn,St.withMutations=Ke.withMutations,St.asMutable=Ke.asMutable,St.asImmutable=Ke.asImmutable,St.wasAltered=Ke.wasAltered,Dt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var i=n>>>t&_;if(i>=this.array.length)return new Dt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!r)return this;var s=Rt(this,e);if(!a)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},Dt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var i,r=n-1>>>t&_;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-m,n))===a&&r===this.array.length-1)return this}var o=Rt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Pt,At,Tt={};function Lt(e,t){var n=e._origin,i=e._capacity,r=Gt(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;return u>v&&(u=v),function(){if(l===u)return Tt;var e=t?--u:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);return c>v&&(c=v),function(){for(;;){if(s){var e=s();if(e!==Tt)return e;s=null}if(u===c)return Tt;var n=t?--c:u++;s=o(l&&l[n],r-m,a+(n<<r))}}}}function It(e,t,n,i,r,a,o){var s=Object.create(St);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=i,s._tail=r,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function Mt(){return Pt||(Pt=It(0,0,m))}function jt(e,t,n){if((t=S(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=F(w);return t>=Gt(e._capacity)?i=Nt(i,e.__ownerID,0,t,n,a):r=Nt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):It(e._origin,e._capacity,e._level,r,i):e}function Nt(e,t,n,i,r,a){var o,s=i>>>n&_,l=e&&s<e.array.length;if(!l&&void 0===r)return e;if(n>0){var u=e&&e.array[s],c=Nt(u,t,n-m,i,r,a);return c===u?e:((o=Rt(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(k(a),o=Rt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function Rt(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Ot(e,t){if(t>=Gt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,i=e._level;n&&i>0;)n=n.array[t>>>i&_],i-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new x,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new Dt(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=m);c&&(o+=c,r+=c,s+=c,a+=c);for(var d=Gt(a),f=Gt(s);f>=1<<l+m;)u=new Dt(u&&u.array.length?[u]:[],i),l+=m;var p=e._tail,h=f<d?Ot(e,s-1):f>d?new Dt([],i):p;if(p&&f>d&&o<a&&p.array.length){for(var g=u=Rt(u,i),v=l;v>m;v-=m){var b=d>>>v&_;g=g.array[b]=Rt(g.array[b],i)}g.array[d>>>m&_]=p}if(s<a&&(h=h&&h.removeAfter(i,0,s)),o>=f)o-=f,s-=f,l=m,u=null,h=h&&h.removeBefore(i,0,o);else if(o>r||f<d){for(c=0;u;){var y=o>>>l&_;if(y!==f>>>l&_)break;y&&(c+=(1<<l)*y),l-=m,u=u.array[y]}u&&o>r&&(u=u.removeBefore(i,l,o-c)),u&&f<d&&(u=u.removeAfter(i,l,f-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):It(o,s,l,u,h)}function Bt(e,t,n){for(var i=[],a=0,s=0;s<n.length;s++){var l=n[s],u=r(l);u.size>a&&(a=u.size),o(l)||(u=u.map((function(e){return pe(e)}))),i.push(u)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function Gt(e){return e<v?0:e-1>>>m<<m}function qt(e){return null==e?Wt():Ut(e)?e:Wt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return We(e)&&c(e)}function Ht(e,t,n,i){var r=Object.create(qt.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Wt(){return At||(At=Ht(rt(),Mt()))}function Yt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===b){if(!l)return e;o.size>=v&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Ht(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Jt(e){this._iter=e,this.size=e.size}function Qt(e){this._iter=e,this.size=e.size}function Zt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=yn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===j){var i=e.__iterator(t,n);return new z((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===M?I:M,n)},t}function $t(e,t,n){var i=bn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,b);return a===b?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(j,r);return new z((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return B(i,s,t.call(n,o[1],s,e),r)}))},i}function Xt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=yn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=bn(e);return i&&(r.has=function(i){var r=e.get(i,b);return r!==b&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,b);return a!==b&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(j,a),s=0;return new z((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return B(r,i?u:s++,c,a)}}))},r}function tn(e,t,n){var i=He().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(c(e)?qt():He()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=_n(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),P(t,n,r))return e;var a=A(t,r),o=T(n,r);if(a!=a||o!=o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l==l&&(s=l<0?0:l);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(u.get=function(t,n){return(t=S(this,t))>=0&&t<s?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=o++<a))return u++,!1!==t(e,i?n:u-1,r)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var r=0!==s&&e.__iterator(t,n),o=0,l=0;return new z((function(){for(;o++<a;)r.next();if(++l>s)return G();var e=r.next();return i||t===M?e:B(t,l-1,t===I?void 0:e.value[1],e)}))},u}function an(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(j,r),s=!0;return new z((function(){if(!s)return G();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?i===j?e:B(i,l,u,e):(s=!1,G())}))},i}function on(e,t,n,i){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(j,a),l=!0,u=0;return new z((function(){var e,a,c;do{if((e=s.next()).done)return i||r===M?e:B(r,u++,r===I?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,o))}while(l);return r===j?e:B(r,a,c,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var u=new te(r);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function ln(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,u){var c=this;e.__iterate((function(e,r){return(!t||u<t)&&o(e)?l(e,u+1):!1===i(e,n?r:a++,c)&&(s=!0),!s}),r)}return l(e,0),a},i.__iteratorUncached=function(i,r){var a=e.__iterator(i,r),s=[],l=0;return new z((function(){for(;a;){var e=a.next();if(!1===e.done){var u=e.value;if(i===j&&(u=u[1]),t&&!(s.length<t)||!o(u))return n?e:B(i,l++,u,e);s.push(a),a=u.__iterator(i,r)}else a=s.pop()}return G()}))},i}function un(e,t,n){var i=_n(e);return e.toSeq().map((function(r,a){return i(t.call(n,r,a,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,i){var r=this,a=0;return e.__iterate((function(e,i){return(!a||!1!==n(t,a++,r))&&!1!==n(e,a++,r)}),i),a},n.__iteratorUncached=function(n,i){var r,a=e.__iterator(M,i),o=0;return new z((function(){return(!r||o%2)&&(r=a.next()).done?r:o%2?B(n,o++,t):B(n,o++,r.value,r)}))},n}function dn(e,t,n){t||(t=wn);var i=s(e),r=0,a=e.toSeq().map((function(t,i){return[i,t,r++,n?n(t,i,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),i?K(a):l(e)?J(a):Q(a)}function fn(e,t,n){if(t||(t=wn),n){var i=e.toSeq().map((function(t,i){return[t,n(t,i,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return i&&i[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var i=e(n,t);return 0===i&&n!==t&&(null==n||n!=n)||i>0}function hn(e,t,i){var r=bn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(M,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),H(r?e.reverse():e)})),o=0,s=!1;return new z((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?G():B(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),C(e)}function _n(e){return s(e)?i:l(e)?r:a}function bn(e){return Object.create((s(e)?K:l(e)?J:Q).prototype)}function yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function wn(e,t){return e>t?1:e<t?-1:0}function Fn(e){var t=H(e);if(!t){if(!Y(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function kn(e,t){var n,i=function(a){if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var o=Object.keys(e);Sn(r,o),r.size=o.length,r._name=t,r._keys=o,r._defaultValues=e}this._map=He(a)},r=i.prototype=Object.create(xn);return r.constructor=i,i}t(qt,He),qt.of=function(){return this(arguments)},qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},qt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},qt.prototype.set=function(e,t){return Yt(this,e,t)},qt.prototype.remove=function(e){return Yt(this,e,b)},qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},qt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},qt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},qt.isOrderedMap=Ut,qt.prototype[h]=!0,qt.prototype[g]=qt.prototype.remove,t(Vt,K),Vt.prototype.get=function(e,t){return this._iter.get(e,t)},Vt.prototype.has=function(e){return this._iter.has(e)},Vt.prototype.valueSeq=function(){return this._iter.valueSeq()},Vt.prototype.reverse=function(){var e=this,t=Xt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Vt.prototype.map=function(e,t){var n=this,i=$t(this,e,t);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(e,t)}),i},Vt.prototype.__iterate=function(e,t){var n,i=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,i)}:(n=t?vn(this):0,function(r){return e(r,t?--n:n++,i)}),t)},Vt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(M,t),i=t?vn(this):0;return new z((function(){var r=n.next();return r.done?r:B(e,t?--i:i++,r.value,r)}))},Vt.prototype[h]=!0,t(Kt,J),Kt.prototype.includes=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this,i=0;return this._iter.__iterate((function(t){return e(t,i++,n)}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t),i=0;return new z((function(){var t=n.next();return t.done?t:B(e,i++,t.value,t)}))},t(Jt,Q),Jt.prototype.has=function(e){return this._iter.includes(e)},Jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Qt,K),Qt.prototype.entrySeq=function(){return this._iter.toSeq()},Qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var i=o(t);return e(i?t.get(1):t[1],i?t.get(0):t[0],n)}}),t)},Qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(M,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var i=t.value;if(i){mn(i);var r=o(i);return B(e,r?i.get(0):i[0],r?i.get(1):i[1],t)}}}))},Kt.prototype.cacheResult=Vt.prototype.cacheResult=Jt.prototype.cacheResult=Qt.prototype.cacheResult=yn,t(kn,ke),kn.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},kn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,rt()))},kn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},kn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},kn.prototype.__iterate=function(e,t){var n=this;return i(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var xn=kn.prototype;function En(e,t,n){var i=Object.create(Object.getPrototypeOf(e));return i._map=t,i.__ownerID=n,i}function Cn(e){return e._name||e.constructor.name||"Record"}function Sn(e,t){try{t.forEach(Dn.bind(void 0,e))}catch(e){}}function Dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ye(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pn(e){return null==e?Nn():An(e)&&!c(e)?e:Nn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function An(e){return!(!e||!e[Ln])}xn[g]=xn.remove,xn.deleteIn=xn.removeIn=Ke.removeIn,xn.merge=Ke.merge,xn.mergeWith=Ke.mergeWith,xn.mergeIn=Ke.mergeIn,xn.mergeDeep=Ke.mergeDeep,xn.mergeDeepWith=Ke.mergeDeepWith,xn.mergeDeepIn=Ke.mergeDeepIn,xn.setIn=Ke.setIn,xn.update=Ke.update,xn.updateIn=Ke.updateIn,xn.withMutations=Ke.withMutations,xn.asMutable=Ke.asMutable,xn.asImmutable=Ke.asImmutable,t(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(i(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Mn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Mn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Mn(this,this._map.clear())},Pn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Rn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Rn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,i){return e(i,i,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pn.isSet=An;var Tn,Ln="@@__IMMUTABLE_SET__@@",In=Pn.prototype;function Mn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function jn(e,t){var n=Object.create(In);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Nn(){return Tn||(Tn=jn(rt()))}function Rn(e){return null==e?qn():On(e)?e:qn().withMutations((function(t){var n=a(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function On(e){return An(e)&&c(e)}In[Ln]=!0,In[g]=In.remove,In.mergeDeep=In.merge,In.mergeDeepWith=In.mergeWith,In.withMutations=Ke.withMutations,In.asMutable=Ke.asMutable,In.asImmutable=Ke.asImmutable,In.__empty=Nn,In.__make=jn,t(Rn,Pn),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(e){return this(i(e).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=On;var zn,Bn=Rn.prototype;function Gn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function qn(){return zn||(zn=Gn(Wt()))}function Un(e){return null==e?Jn():Hn(e)?e:Jn().unshiftAll(e)}function Hn(e){return!(!e||!e[Yn])}Bn[h]=!0,Bn.__empty=qn,Bn.__make=Gn,t(Un,xe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=S(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Kn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Kn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Jn()},Un.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=A(e,this.size);if(T(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Kn(i,r)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new z((function(){if(i){var t=i.value;return i=i.next,B(e,n++,t)}return G()}))},Un.isStack=Hn;var Wn,Yn="@@__IMMUTABLE_STACK__@@",Vn=Un.prototype;function Kn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Jn(){return Wn||(Wn=Kn(0))}function Qn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Yn]=!0,Vn.withMutations=Ke.withMutations,Vn.asMutable=Ke.asMutable,Vn.asImmutable=Ke.asImmutable,Vn.wasAltered=Ke.wasAltered,n.Iterator=z,Qn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Kt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return qt(this.toKeyedSeq())},toOrderedSet:function(){return Rn(s(this)?this.valueSeq():this)},toSet:function(){return Pn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Jt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return xt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(j)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!=i?i.toString():""})),t},keys:function(){return this.__iterator(I)},map:function(e,t){return gn(this,$t(this,e,t))},reduce:function(e,t,n){var i,r;return Ue(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Xt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return _e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Qt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=Fn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,b):b)===b)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?ni(e):ai)},minBy:function(e,t){return fn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Zn=n.prototype;Zn[d]=!0,Zn[O]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=ii,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,function(){try{Object.defineProperty(Zn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Qn(i,{flip:function(){return gn(this,Zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var $n=i.prototype;function Xn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"==typeof e?JSON.stringify(e):e}function ri(){return E(arguments)}function ai(e,t){return e<t?1:e>t?-1:0}function oi(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(De(e),De(t))|0}:function(e,t){i=i+li(De(e),De(t))|0}:t?function(e){i=31*i+De(e)|0}:function(e){i=i+De(e)|0}),i)}function si(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Se((t=Ce(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return $n[f]=!0,$n[O]=Zn.entries,$n.__toJS=Zn.toObject,$n.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},Qn(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Xt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,cn(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),J.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,on(this,e,t,!1))},zip:function(){return gn(this,hn(this,ri,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),r.prototype[p]=!0,r.prototype[h]=!0,Qn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Zn.includes,Qn(K,i.prototype),Qn(J,r.prototype),Qn(Q,a.prototype),Qn(ke,i.prototype),Qn(xe,r.prototype),Qn(Ee,a.prototype),{Iterable:n,Seq:V,Collection:Fe,Map:He,OrderedMap:qt,List:xt,Stack:Un,Set:Pn,OrderedSet:Rn,Record:kn,Range:we,Repeat:be,is:ve,fromJS:pe}}()}(c2e);var d2e=function(e){var t=document.implementation.createHTMLDocument("");return t.documentElement.innerHTML=e,t};function f2e(e){var t;"undefined"!=typeof DOMParser?null!==(t=(new DOMParser).parseFromString(e,"text/html"))&&null!==t.body||(t=d2e(e)):t=d2e(e);return t.body}var p2e=" ",h2e=new RegExp("\r","g"),g2e=new RegExp("\n","g"),m2e=new RegExp(" ","g"),v2e=new RegExp("\r","g"),_2e=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],b2e={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},y2e=function(e,t){return e&&!0===e.__isMiddleware?e(t):e},w2e=function(e,t,n){},F2e=function(e,t,n){return n},k2e=function(e,t){},x2e=function(e){return[]},E2e=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")};function C2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c2e.exports.Map();return!0===n?{text:"\r",inlines:[c2e.exports.OrderedSet()],entities:new Array(1),blocks:[{type:e,data:i,depth:Math.max(0,Math.min(4,t))}],isNewline:!0}:{text:"\n",inlines:[c2e.exports.OrderedSet()],entities:new Array(1),blocks:[]}}function S2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c2e.exports.Map();return{text:"\r",inlines:[c2e.exports.OrderedSet()],entities:new Array(1),blocks:[{type:e,data:n,depth:Math.max(0,Math.min(4,t))}]}}function D2e(e,t){switch(e){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return"ol"===t?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function P2e(e,t,n){return D2e(e,n)}function A2e(e,t,n){var i=b2e[e];if(i)n=n.add(i).toOrderedSet();else if(t instanceof HTMLElement){var r=t;n=n.withMutations((function(e){"bold"===r.style.fontWeight&&e.add("BOLD"),"italic"===r.style.fontStyle&&e.add("ITALIC"),"underline"===r.style.textDecoration&&e.add("UNDERLINE"),"line-through"===r.style.textDecoration&&e.add("STRIKETHROUGH")})).toOrderedSet()}return n}function T2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c2e.exports.OrderedSet();return A2e(e,t,n)}function L2e(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.text.slice(0,1),r=e.text.slice(-1),a="\r"===r&&"\r"===i,o="\r"!==e.text&&"\r"!==t.text,s="\r"===e.text&&!e.isNewline&&t.isNewline;if(a&&(o||s)&&(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===e.text.slice(-1)&&!0===n){if(t.text===p2e||"\n"===t.text)return e;i!==p2e&&"\n"!==i||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}var l=0===e.text.length&&t.isNewline;return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks),isNewline:l}}function I2e(e,t,n,i,r,a,o,s,l,u,c,d,f,p,h,g){var m=e.nodeName.toLowerCase(),v=!1,_="unstyled";if("#text"===m){var b=e.textContent;if(""===b.trim()&&null===i)return{text:"",inlines:[],entities:[],blocks:[]};if(""===b.trim()&&"code-block"!==i)return function(e){var t=new Array(1);return e&&(t[0]=e),{text:p2e,inlines:[c2e.exports.OrderedSet()],entities:t,blocks:[]}}(g);"code-block"!==i&&(b=b.replace(g2e,p2e));var y=Array(b.length).fill(g),w=0;return l(b,c,d,f,p).sort(l2e).forEach((function(e){var t=e.entity,n=e.offset,i=e.length,r=e.result,a=n+w;null==r&&(r=b.substr(a,i));var o=b.split("");o.splice.bind(o,a,i).apply(o,r.split("")),b=o.join(""),y.splice.bind(y,a,i).apply(y,Array(r.length).fill(t)),w+=r.length-i})),{text:b,inlines:Array(b.length).fill(t),entities:y,blocks:[]}}if("br"===m){var F=i;return null===F?C2e("unstyled",a,!0):C2e(F||"unstyled",a,h.flat)}var k={text:"",inlines:[],entities:[],blocks:[]};t=o(m,e,t=A2e(m,e,t)),"ul"!==m&&"ol"!==m||(n&&(a+=1),n=m,i=null);var x,E,C=u(m,e,n,i);if(!1===C)return{text:"",inlines:[],entities:[],blocks:[]};if("string"==typeof(C=C||{})?(x=C,E=c2e.exports.Map()):(x="string"==typeof C?C:C.type,E=C.data?c2e.exports.Map(C.data):c2e.exports.Map()),i||-1===r.indexOf(m)&&!x)if(!n||"ordered-list-item"!==i&&"unordered-list-item"!==i||"li"!==m)i&&"atomic"!==i&&"atomic"===x&&(i=x,v=!0,k=C2e(x,a,!0,E));else{var S=D2e(m,n);k=S2e(S,a),i=S,v=!0,_="ul"===n?"unordered-list-item":"ordered-list-item"}else k=S2e(x||D2e(m,n),a,E),i=x||D2e(m,n),v=!0;var D=e.firstChild;null!=D||!g||"atomic"!==x&&"atomic"!==i||(D=document.createTextNode("a")),null!=D&&(m=D.nodeName.toLowerCase());for(var P=null;D;){P=s(m,D,c,d,f,p),k=L2e(k,I2e(D,t,n,i,r,a,o,s,l,u,c,d,f,p,h,P||g),h.flat);var A=D.nextSibling;if(A&&r.indexOf(m)>=0&&i){var T=u(m,D,n,i),L=void 0,I=void 0;!1!==T&&("string"==typeof(T=T||{})?(L=T,I=c2e.exports.Map()):(L=T.type||D2e(m,n),I=T.data?c2e.exports.Map(T.data):c2e.exports.Map()),k=L2e(k,C2e(L,a,h.flat,I),h.flat))}A&&(m=A.nodeName.toLowerCase()),D=A}return v&&(k=L2e(k,S2e(_,a,c2e.exports.Map()),h.flat)),k}function M2e(e,t,n,i,r,a,o,s,l,u,c){var d=c(e=e.trim().replace(h2e,"").replace(m2e,p2e));if(!d)return null;var f=function(e){return _2e.some((function(t){return-1!==e.indexOf("<".concat(t))}))}(e)?_2e.concat(["div"]):["div"],p=I2e(d,c2e.exports.OrderedSet(),"ul",null,f,-1,t,n,i,r,a,o,s,l,u);return 0===p.text.indexOf("\r")&&(p={text:p.text.slice(1),inlines:p.inlines.slice(1),entities:p.entities.slice(1),blocks:p.blocks}),"\r"===p.text.slice(-1)&&(p.text=p.text.slice(0,-1),p.inlines=p.inlines.slice(0,-1),p.entities=p.entities.slice(0,-1),p.blocks.pop()),0===p.blocks.length&&p.blocks.push({type:"unstyled",data:c2e.exports.Map(),depth:0}),p.text.split("\r").length===p.blocks.length+1&&p.blocks.unshift({type:"unstyled",data:c2e.exports.Map(),depth:0}),p}function j2e(e,t,n,i,r,a,o,s,l,u,c,d){var f=M2e(e,t,n,i,r,a,o,s,l,u,c);if(null==f)return[];var p=0;return f.text.split("\r").map((function(e,t){e=e.replace(v2e,"");var n=p+e.length,i=E2e(f).inlines.slice(p,n),r=E2e(f).entities.slice(p,n),a=c2e.exports.List(i.map((function(e,t){var n={style:e,entity:null};return r[t]&&(n.entity=r[t]),s2e.CharacterMetadata.create(n)})));return p=n+1,new s2e.ContentBlock({key:d(),type:E2e(f).blocks[t].type,data:E2e(f).blocks[t].data,depth:E2e(f).blocks[t].depth,text:e,characterList:a})}))}var N2e=function(e){var t=e.htmlToStyle,n=void 0===t?F2e:t,i=e.htmlToEntity,r=void 0===i?k2e:i,a=e.textToEntity,o=void 0===a?x2e:a,s=e.htmlToBlock,l=void 0===s?w2e:s;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f2e,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s2e.genKey,s=s2e.ContentState.createFromText(""),u=function(){var e;return s.createEntity?(s=(e=s).createEntity.apply(e,arguments)).getLastCreatedEntityKey():s2e.Entity.create.apply(s2e.Entity,arguments)},c=function(){var e;return s.getEntity?(e=s).getEntity.apply(e,arguments):s2e.Entity.get.apply(s2e.Entity,arguments)},d=function(){var e;s.mergeEntityData?s=(e=s).mergeEntityData.apply(e,arguments):s2e.Entity.mergeData.apply(s2e.Entity,arguments)},f=function(){var e;s.replaceEntityData?s=(e=s).replaceEntityData.apply(e,arguments):s2e.Entity.replaceData.apply(s2e.Entity,arguments)},p=j2e(e,y2e(n,T2e),y2e(r,k2e),y2e(o,x2e),y2e(l,P2e),u,c,d,f,t,i,a),h=s2e.BlockMapBuilder.createFromArray(p),g=p[0].getKey();return s.merge({blockMap:h,selectionBefore:s2e.SelectionState.createEmpty(g),selectionAfter:s2e.SelectionState.createEmpty(g)})}};BY('/**\n * Draft v0.11.6\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.DraftEditorPlaceholder-hidden{display:none}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.public-DraftStyleDefault-listLTR{direction:ltr}.public-DraftStyleDefault-listRTL{direction:rtl}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:16px 0;padding:0}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}');var R2e=32,O2e=31,z2e={};function B2e(e){e&&(e.value=!0)}function G2e(){}function q2e(e){return void 0===e.size&&(e.size=e.__iterate(H2e)),e.size}function U2e(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?q2e(e)+t:t}function H2e(){return!0}function W2e(e,t,n){return(0===e&&!J2e(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function Y2e(e,t){return K2e(e,t,0)}function V2e(e,t){return K2e(e,t,t)}function K2e(e,t,n){return void 0===e?n:J2e(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function J2e(e){return e<0||0===e&&1/e==-1/0}var Q2e="@@__IMMUTABLE_ITERABLE__@@";function Z2e(e){return Boolean(e&&e[Q2e])}var $2e="@@__IMMUTABLE_KEYED__@@";function X2e(e){return Boolean(e&&e[$2e])}var e3e="@@__IMMUTABLE_INDEXED__@@";function t3e(e){return Boolean(e&&e[e3e])}function n3e(e){return X2e(e)||t3e(e)}var i3e=function(e){return Z2e(e)?e:E3e(e)},r3e=function(e){function t(e){return X2e(e)?e:C3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(i3e),a3e=function(e){function t(e){return t3e(e)?e:S3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(i3e),o3e=function(e){function t(e){return Z2e(e)&&!n3e(e)?e:D3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(i3e);i3e.Keyed=r3e,i3e.Indexed=a3e,i3e.Set=o3e;var s3e="@@__IMMUTABLE_SEQ__@@";function l3e(e){return Boolean(e&&e[s3e])}function u3e(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function c3e(e){return Z2e(e)||u3e(e)}var d3e="@@__IMMUTABLE_ORDERED__@@";function f3e(e){return Boolean(e&&e[d3e])}var p3e="function"==typeof Symbol&&Symbol.iterator,h3e="@@iterator",g3e=p3e||h3e,m3e=function(e){this.next=e};function v3e(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function _3e(){return{value:void 0,done:!0}}function b3e(e){return!!F3e(e)}function y3e(e){return e&&"function"==typeof e.next}function w3e(e){var t=F3e(e);return t&&t.call(e)}function F3e(e){var t=e&&(p3e&&e[p3e]||e["@@iterator"]);if("function"==typeof t)return t}m3e.prototype.toString=function(){return"[Iterator]"},m3e.KEYS=0,m3e.VALUES=1,m3e.ENTRIES=2,m3e.prototype.inspect=m3e.prototype.toSource=function(){return this.toString()},m3e.prototype[g3e]=function(){return this};var k3e=Object.prototype.hasOwnProperty;function x3e(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var E3e=function(e){function t(e){return null==e?I3e():c3e(e)?e.toSeq():function(e){var t=N3e(e);if(t)return t;if("object"==typeof e)return new A3e(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var i=n.length,r=0;r!==i;){var a=n[t?i-++r:r++];if(!1===e(a[1],a[0],this))break}return r}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var i=n.length,r=0;return new m3e((function(){if(r===i)return{value:void 0,done:!0};var a=n[t?i-++r:r++];return v3e(e,a[0],a[1])}))}return this.__iteratorUncached(e,t)},t}(i3e),C3e=function(e){function t(e){return null==e?I3e().toKeyedSeq():Z2e(e)?X2e(e)?e.toSeq():e.fromEntrySeq():u3e(e)?e.toSeq():M3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(E3e),S3e=function(e){function t(e){return null==e?I3e():Z2e(e)?X2e(e)?e.entrySeq():e.toIndexedSeq():u3e(e)?e.toSeq().entrySeq():j3e(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(E3e),D3e=function(e){function t(e){return(Z2e(e)&&!n3e(e)?e:S3e(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(E3e);E3e.isSeq=l3e,E3e.Keyed=C3e,E3e.Set=D3e,E3e.Indexed=S3e,E3e.prototype[s3e]=!0;var P3e=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[U2e(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,i=n.length,r=0;r!==i;){var a=t?i-++r:r++;if(!1===e(n[a],a,this))break}return r},t.prototype.__iterator=function(e,t){var n=this._array,i=n.length,r=0;return new m3e((function(){if(r===i)return{value:void 0,done:!0};var a=t?i-++r:r++;return v3e(e,a,n[a])}))},t}(S3e),A3e=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return k3e.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length,a=0;a!==r;){var o=i[t?r-++a:a++];if(!1===e(n[o],o,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length,a=0;return new m3e((function(){if(a===r)return{value:void 0,done:!0};var o=i[t?r-++a:a++];return v3e(e,o,n[o])}))},t}(C3e);A3e.prototype[d3e]=!0;var T3e,L3e=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=w3e(this._collection),i=0;if(y3e(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=w3e(this._collection);if(!y3e(n))return new m3e(_3e);var i=0;return new m3e((function(){var t=n.next();return t.done?t:v3e(e,i++,t.value)}))},t}(S3e);function I3e(){return T3e||(T3e=new P3e([]))}function M3e(e){var t=Array.isArray(e)?new P3e(e):b3e(e)?new L3e(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new A3e(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function j3e(e){var t=N3e(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function N3e(e){return x3e(e)?new P3e(e):b3e(e)?new L3e(e):void 0}var R3e="@@__IMMUTABLE_MAP__@@";function O3e(e){return Boolean(e&&e[R3e])}function z3e(e){return O3e(e)&&f3e(e)}function B3e(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function G3e(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(B3e(e)&&B3e(t)&&e.equals(t))}var q3e="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function U3e(e){return e>>>1&1073741824|3221225471&e}var H3e=Object.prototype.valueOf;function W3e(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return U3e(t)}(e);case"string":return e.length>X3e?function(e){var t=n4e[e];void 0===t&&(t=Y3e(e),t4e===e4e&&(t4e=0,n4e={}),t4e++,n4e[e]=t);return t}(e):Y3e(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?U3e(e.hashCode(e)):(e.valueOf!==H3e&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(Q3e&&void 0!==(t=J3e.get(e)))return t;if(void 0!==(t=e[$3e]))return t;if(!K3e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[$3e]))return t;if(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e),void 0!==t)return t}t=++Z3e,1073741824&Z3e&&(Z3e=0);if(Q3e)J3e.set(e,t);else{if(void 0!==V3e&&!1===V3e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(K3e)Object.defineProperty(e,$3e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[$3e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[$3e]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return Y3e(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function Y3e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return U3e(t)}var V3e=Object.isExtensible,K3e=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var J3e,Q3e="function"==typeof WeakMap;Q3e&&(J3e=new WeakMap);var Z3e=0,$3e="__immutablehash__";"function"==typeof Symbol&&($3e=Symbol($3e));var X3e=16,e4e=255,t4e=0,n4e={},i4e=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=u4e(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,i=l4e(this,e,t);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(e,t)}),i},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,i){return e(t,i,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(C3e);i4e.prototype[d3e]=!0;var r4e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,i=0;return t&&q2e(this),this._iter.__iterate((function(r){return e(r,t?n.size-++i:i++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,i=this._iter.__iterator(1,t),r=0;return t&&q2e(this),new m3e((function(){var a=i.next();return a.done?a:v3e(e,t?n.size-++r:r++,a.value,a)}))},t}(S3e),a4e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new m3e((function(){var t=n.next();return t.done?t:v3e(e,t.value,t.value,t)}))},t}(D3e),o4e=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){y4e(t);var i=Z2e(t);return e(i?t.get(1):t[1],i?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new m3e((function(){for(;;){var t=n.next();if(t.done)return t;var i=t.value;if(i){y4e(i);var r=Z2e(i);return v3e(e,r?i.get(0):i[0],r?i.get(1):i[1],t)}}}))},t}(C3e);function s4e(e){var t=F4e(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=k4e,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var i=e.__iterator(t,n);return new m3e((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function l4e(e,t,n){var i=F4e(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,z2e);return a===z2e?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(2,r);return new m3e((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return v3e(i,s,t.call(n,o[1],s,e),r)}))},i}function u4e(e,t){var n=this,i=F4e(e);return i._iter=e,i.size=e.size,i.reverse=function(){return e},e.flip&&(i.flip=function(){var t=s4e(e);return t.reverse=function(){return e.flip()},t}),i.get=function(n,i){return e.get(t?n:-1-n,i)},i.has=function(n){return e.has(t?n:-1-n)},i.includes=function(t){return e.includes(t)},i.cacheResult=k4e,i.__iterate=function(n,i){var r=this,a=0;return i&&q2e(e),e.__iterate((function(e,o){return n(e,t?o:i?r.size-++a:a++,r)}),!i)},i.__iterator=function(i,r){var a=0;r&&q2e(e);var o=e.__iterator(2,!r);return new m3e((function(){var e=o.next();if(e.done)return e;var s=e.value;return v3e(i,t?s[0]:r?n.size-++a:a++,s[1],e)}))},i}function c4e(e,t,n,i){var r=F4e(e);return i&&(r.has=function(i){var r=e.get(i,z2e);return r!==z2e&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,z2e);return a!==z2e&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(2,a),s=0;return new m3e((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return v3e(r,i?u:s++,c,a)}}))},r}function d4e(e,t,n,i){var r=e.size;if(W2e(t,n,r))return e;var a=Y2e(t,r),o=V2e(n,r);if(a!=a||o!=o)return d4e(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l==l&&(s=l<0?0:l);var u=F4e(e);return u.size=0===s?s:e.size&&s||void 0,!i&&l3e(e)&&s>=0&&(u.get=function(t,n){return(t=U2e(this,t))>=0&&t<s?e.get(t+a,n):n}),u.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=o++<a))return u++,!1!==t(e,i?n:u-1,r)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new m3e(_3e);var r=e.__iterator(t,n),o=0,l=0;return new m3e((function(){for(;o++<a;)r.next();if(++l>s)return{value:void 0,done:!0};var e=r.next();return i||1===t||e.done?e:v3e(t,l-1,0===t?void 0:e.value[1],e)}))},u}function f4e(e,t,n,i){var r=F4e(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(2,a),l=!0,u=0;return new m3e((function(){var e,a,c;do{if((e=s.next()).done)return i||1===r?e:v3e(r,u++,0===r?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,o))}while(l);return 2===r?e:v3e(r,a,c,e)}))},r}function p4e(e,t){var n=X2e(e),i=[e].concat(t).map((function(e){return Z2e(e)?n&&(e=r3e(e)):e=n?M3e(e):j3e(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var r=i[0];if(r===e||n&&X2e(r)||t3e(e)&&t3e(r))return r}var a=new P3e(i);return n?a=a.toKeyedSeq():t3e(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),a}function h4e(e,t,n){var i=F4e(e);return i.__iterateUncached=function(r,a){if(a)return this.cacheResult().__iterate(r,a);var o=0,s=!1;return function e(l,u){l.__iterate((function(a,l){return(!t||u<t)&&Z2e(a)?e(a,u+1):(o++,!1===r(a,n?l:o-1,i)&&(s=!0)),!s}),a)}(e,0),o},i.__iteratorUncached=function(i,r){if(r)return this.cacheResult().__iterator(i,r);var a=e.__iterator(i,r),o=[],s=0;return new m3e((function(){for(;a;){var e=a.next();if(!1===e.done){var l=e.value;if(2===i&&(l=l[1]),t&&!(o.length<t)||!Z2e(l))return n?e:v3e(i,s++,l,e);o.push(a),a=l.__iterator(i,r)}else a=o.pop()}return{value:void 0,done:!0}}))},i}function g4e(e,t,n){t||(t=x4e);var i=X2e(e),r=0,a=e.toSeq().map((function(t,i){return[i,t,r++,n?n(t,i,e):t]})).valueSeq().toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),i?C3e(a):t3e(e)?S3e(a):D3e(a)}function m4e(e,t,n){if(t||(t=x4e),n){var i=e.toSeq().map((function(t,i){return[t,n(t,i,e)]})).reduce((function(e,n){return v4e(t,e[1],n[1])?n:e}));return i&&i[0]}return e.reduce((function(e,n){return v4e(t,e,n)?n:e}))}function v4e(e,t,n){var i=e(n,t);return 0===i&&n!==t&&(null==n||n!=n)||i>0}function _4e(e,t,n,i){var r=F4e(e),a=new P3e(n).map((function(e){return e.size}));return r.size=i?a.max():a.min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(1,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=n.map((function(e){return e=i3e(e),w3e(r?e.reverse():e)})),o=0,s=!1;return new m3e((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=i?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:v3e(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function b4e(e,t){return e===t?e:l3e(e)?t:e.constructor(t)}function y4e(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function w4e(e){return X2e(e)?r3e:t3e(e)?a3e:o3e}function F4e(e){return Object.create((X2e(e)?C3e:t3e(e)?S3e:D3e).prototype)}function k4e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):E3e.prototype.cacheResult.call(this)}function x4e(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function E4e(e,t){t=t||0;for(var n=Math.max(0,e.length-t),i=new Array(n),r=0;r<n;r++)i[r]=e[r+t];return i}function C4e(e,t){if(!e)throw new Error(t)}function S4e(e){C4e(e!==1/0,"Cannot perform this action with an infinite size.")}function D4e(e){if(x3e(e)&&"string"!=typeof e)return e;if(f3e(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function P4e(e){return"object"==typeof e&&(c3e(e)||Array.isArray(e)||function(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}(e))}function A4e(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function T4e(e,t,n){return c3e(e)?e.get(t,n):function(e,t){return c3e(e)?e.has(t):P4e(e)&&k3e.call(e,t)}(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function L4e(e){if(Array.isArray(e))return E4e(e);var t={};for(var n in e)k3e.call(e,n)&&(t[n]=e[n]);return t}function I4e(e,t,n,i){i||(i=n,n=void 0);var r=M4e(c3e(e),e,D4e(t),0,n,i);return r===z2e?n:r}function M4e(e,t,n,i,r,a){var o=t===z2e;if(i===n.length){var s=o?r:t,l=a(s);return l===s?t:l}if(!o&&!P4e(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,i).map(A4e)+"]: "+t);var u=n[i],c=o?z2e:T4e(t,u,z2e),d=M4e(c===z2e?e:c3e(c),c,n,i+1,r,a);return d===c?t:d===z2e?function(e,t){if(!P4e(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(c3e(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!k3e.call(e,t))return e;var n=L4e(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}(t,u):function(e,t,n){if(!P4e(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(c3e(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(k3e.call(e,t)&&n===e[t])return e;var i=L4e(e);return i[t]=n,i}(o?e?s6e():{}:t,u,d)}function j4e(e,t){return function(e,t,n){return I4e(e,t,z2e,(function(){return n}))}(this,e,t)}function N4e(e){return function(e,t){return I4e(e,t,(function(){return z2e}))}(this,e)}function R4e(e,t,n,i){return I4e(e,[t],n,i)}function O4e(e,t,n){return 1===arguments.length?e(this):R4e(this,e,t,n)}function z4e(e,t,n){return I4e(this,e,t,n)}function B4e(e,t,n){for(var i=[],r=0;r<t.length;r++){var a=r3e(t[r]);0!==a.size&&i.push(a)}return 0===i.length?e:0!==e.toSeq().size||e.__ownerID||1!==i.length?e.withMutations((function(e){for(var t=n?function(t,i){R4e(e,i,z2e,(function(e){return e===z2e?t:n(e,t,i)}))}:function(t,n){e.set(n,t)},r=0;r<i.length;r++)i[r].forEach(t)})):e.constructor(i[0])}function G4e(e,t,n){return q4e(e,t,function(e){function t(n,i,r){return P4e(n)&&P4e(i)?q4e(n,[i],t):e?e(n,i,r):i}return t}(n))}function q4e(e,t,n){if(!P4e(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(c3e(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var i=Array.isArray(e),r=e,a=i?a3e:r3e,o=i?function(t){r===e&&(r=L4e(r)),r.push(t)}:function(t,i){var a=k3e.call(r,i),o=a&&n?n(r[i],t,i):t;a&&o===r[i]||(r===e&&(r=L4e(r)),r[i]=o)},s=0;s<t.length;s++)a(t[s]).forEach(o);return r}function U4e(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return I4e(this,e,s6e(),(function(e){return q4e(e,t)}))}function H4e(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return I4e(this,e,s6e(),(function(e){return G4e(e,t)}))}function W4e(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Y4e(){return this.__ownerID?this:this.__ensureOwner(new G2e)}function V4e(){return this.__ensureOwner()}function K4e(){return this.__altered}r4e.prototype.cacheResult=i4e.prototype.cacheResult=a4e.prototype.cacheResult=o4e.prototype.cacheResult=k4e;var J4e=function(e){function t(t){return null==t?s6e():O3e(t)&&!f3e(t)?t:s6e().withMutations((function(n){var i=e(t);S4e(i.size),i.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return s6e().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return l6e(this,e,t)},t.prototype.remove=function(e){return l6e(this,e,z2e)},t.prototype.deleteAll=function(e){var t=i3e(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):s6e()},t.prototype.sort=function(e){return I6e(g4e(this,e))},t.prototype.sortBy=function(e,t){return I6e(g4e(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(i,r){n.set(r,e.call(t,i,r,n))}))}))},t.prototype.__iterator=function(e,t){return new i6e(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?o6e(this.size,this._root,e,this.__hash):0===this.size?s6e():(this.__ownerID=e,this.__altered=!1,this)},t}(r3e);J4e.isMap=O3e;var Q4e=J4e.prototype;Q4e[R3e]=!0,Q4e.delete=Q4e.remove,Q4e.removeAll=Q4e.deleteAll,Q4e.setIn=j4e,Q4e.removeIn=Q4e.deleteIn=N4e,Q4e.update=O4e,Q4e.updateIn=z4e,Q4e.merge=Q4e.concat=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return B4e(this,e)},Q4e.mergeWith=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return B4e(this,t,e)},Q4e.mergeDeep=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return G4e(this,e)},Q4e.mergeDeepWith=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return G4e(this,t,e)},Q4e.mergeIn=U4e,Q4e.mergeDeepIn=H4e,Q4e.withMutations=W4e,Q4e.wasAltered=K4e,Q4e.asImmutable=V4e,Q4e["@@transducer/init"]=Q4e.asMutable=Y4e,Q4e["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Q4e["@@transducer/result"]=function(e){return e.asImmutable()};var Z4e=function(e,t){this.ownerID=e,this.entries=t};Z4e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(G3e(n,r[a][0]))return r[a][1];return i},Z4e.prototype.update=function(e,t,n,i,r,a,o){for(var s=r===z2e,l=this.entries,u=0,c=l.length;u<c&&!G3e(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(B2e(o),(s||!d)&&B2e(a),!s||1!==l.length){if(!d&&!s&&l.length>=h6e)return function(e,t,n,i){e||(e=new G2e);for(var r=new t6e(e,W3e(n),[n,i]),a=0;a<t.length;a++){var o=t[a];r=r.update(e,0,void 0,o[0],o[1])}return r}(e,l,i,r);var f=e&&e===this.ownerID,p=f?l:E4e(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new Z4e(e,p)}};var $4e=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};$4e.prototype.get=function(e,t,n,i){void 0===t&&(t=W3e(n));var r=1<<((0===e?t:t>>>e)&O2e),a=this.bitmap;return 0==(a&r)?i:this.nodes[f6e(a&r-1)].get(e+5,t,n,i)},$4e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=W3e(i));var s=(0===t?n:n>>>t)&O2e,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&r===z2e)return this;var d=f6e(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=u6e(p,e,t+5,n,i,r,a,o);if(h===p)return this;if(!c&&h&&f.length>=g6e)return function(e,t,n,i,r){for(var a=0,o=new Array(R2e),s=0;0!==n;s++,n>>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new X4e(e,a+1,o)}(e,f,u,s,h);if(c&&!h&&2===f.length&&c6e(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&c6e(h))return h;var g=e&&e===this.ownerID,m=c?h?u:u^l:u|l,v=c?h?p6e(f,d,h,g):function(e,t,n){var i=e.length-1;if(n&&t===i)return e.pop(),e;for(var r=new Array(i),a=0,o=0;o<i;o++)o===t&&(a=1),r[o]=e[o+a];return r}(f,d,g):function(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s<r;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}(f,d,h,g);return g?(this.bitmap=m,this.nodes=v,this):new $4e(e,m,v)};var X4e=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};X4e.prototype.get=function(e,t,n,i){void 0===t&&(t=W3e(n));var r=(0===e?t:t>>>e)&O2e,a=this.nodes[r];return a?a.get(e+5,t,n,i):i},X4e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=W3e(i));var s=(0===t?n:n>>>t)&O2e,l=r===z2e,u=this.nodes,c=u[s];if(l&&!c)return this;var d=u6e(c,e,t+5,n,i,r,a,o);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<m6e)return function(e,t,n,i){for(var r=0,a=0,o=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==i&&(r|=l,o[a++]=c)}return new $4e(e,r,o)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=p6e(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new X4e(e,f,h)};var e6e=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};e6e.prototype.get=function(e,t,n,i){for(var r=this.entries,a=0,o=r.length;a<o;a++)if(G3e(n,r[a][0]))return r[a][1];return i},e6e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=W3e(i));var s=r===z2e;if(n!==this.keyHash)return s?this:(B2e(o),B2e(a),d6e(this,e,t,n,[i,r]));for(var l=this.entries,u=0,c=l.length;u<c&&!G3e(i,l[u][0]);u++);var d=u<c;if(d?l[u][1]===r:s)return this;if(B2e(o),(s||!d)&&B2e(a),s&&2===c)return new t6e(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:E4e(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[i,r]:p.push([i,r]),f?(this.entries=p,this):new e6e(e,this.keyHash,p)};var t6e=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};t6e.prototype.get=function(e,t,n,i){return G3e(n,this.entry[0])?this.entry[1]:i},t6e.prototype.update=function(e,t,n,i,r,a,o){var s=r===z2e,l=G3e(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(B2e(o),s?void B2e(a):l?e&&e===this.ownerID?(this.entry[1]=r,this):new t6e(e,this.keyHash,[i,r]):(B2e(a),d6e(this,e,t,W3e(i),[i,r])))},Z4e.prototype.iterate=e6e.prototype.iterate=function(e,t){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===e(n[t?r-i:i]))return!1},$4e.prototype.iterate=X4e.prototype.iterate=function(e,t){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var a=n[t?r-i:i];if(a&&!1===a.iterate(e,t))return!1}},t6e.prototype.iterate=function(e,t){return e(this.entry)};var n6e,i6e=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&a6e(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,i=t.index++,r=void 0;if(n.entry){if(0===i)return r6e(e,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return r6e(e,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var a=n.nodes[this._reverse?r-i:i];if(a){if(a.entry)return r6e(e,a.entry);t=this._stack=a6e(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(m3e);function r6e(e,t){return v3e(e,t[0],t[1])}function a6e(e,t){return{node:e,index:0,__prev:t}}function o6e(e,t,n,i){var r=Object.create(Q4e);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function s6e(){return n6e||(n6e=o6e(0))}function l6e(e,t,n){var i,r;if(e._root){var a={value:!1},o={value:!1};if(i=u6e(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===z2e?-1:1:0)}else{if(n===z2e)return e;r=1,i=new Z4e(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?o6e(r,i):s6e()}function u6e(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===z2e?e:(B2e(s),B2e(o),new t6e(t,i,[r,a]))}function c6e(e){return e.constructor===t6e||e.constructor===e6e}function d6e(e,t,n,i,r){if(e.keyHash===i)return new e6e(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&O2e,s=(0===n?i:i>>>n)&O2e,l=o===s?[d6e(e,t,n+5,i,r)]:(a=new t6e(t,i,r),o<s?[e,a]:[a,e]);return new $4e(t,1<<o|1<<s,l)}function f6e(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function p6e(e,t,n,i){var r=i?e:E4e(e);return r[t]=n,r}var h6e=8,g6e=16,m6e=8,v6e="@@__IMMUTABLE_LIST__@@";function _6e(e){return Boolean(e&&e[v6e])}var b6e=function(e){function t(t){var n=C6e();if(null==t)return n;if(_6e(t))return t;var i=e(t),r=i.size;return 0===r?n:(S4e(r),r>0&&r<R2e?E6e(0,r,5,null,new w6e(i.toArray())):n.withMutations((function(e){e.setSize(r),i.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=U2e(this,e))>=0&&e<this.size){var n=P6e(this,e+=this._origin);return n&&n.array[e&O2e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=U2e(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?A6e(e,t).set(0,n):A6e(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a={value:!1};t>=T6e(e._capacity)?i=S6e(i,e.__ownerID,0,t,n,a):r=S6e(r,e.__ownerID,e._level,t,n,a);if(!a.value)return e;if(e.__ownerID)return e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e;return E6e(e._origin,e._capacity,e._level,r,i)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):C6e()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){A6e(n,0,t+e.length);for(var i=0;i<e.length;i++)n.set(t+i,e[i])}))},t.prototype.pop=function(){return A6e(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){A6e(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return A6e(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],i=0;i<arguments.length;i++){var r=t[i],a=e("string"!=typeof r&&b3e(r)?r:[r]);0!==a.size&&n.push(a)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return A6e(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(i){for(var r=0;r<n.size;r++)i.set(r,e.call(t,i.get(r),r,i))}))},t.prototype.slice=function(e,t){var n=this.size;return W2e(e,t,n)?this:A6e(this,Y2e(e,n),V2e(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,i=x6e(this,t);return new m3e((function(){var r=i();return r===k6e?{value:void 0,done:!0}:v3e(e,t?--n:n++,r)}))},t.prototype.__iterate=function(e,t){for(var n,i=t?this.size:0,r=x6e(this,t);(n=r())!==k6e&&!1!==e(n,t?--i:i++,this););return i},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?E6e(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?C6e():(this.__ownerID=e,this.__altered=!1,this)},t}(a3e);b6e.isList=_6e;var y6e=b6e.prototype;y6e[v6e]=!0,y6e.delete=y6e.remove,y6e.merge=y6e.concat,y6e.setIn=j4e,y6e.deleteIn=y6e.removeIn=N4e,y6e.update=O4e,y6e.updateIn=z4e,y6e.mergeIn=U4e,y6e.mergeDeepIn=H4e,y6e.withMutations=W4e,y6e.wasAltered=K4e,y6e.asImmutable=V4e,y6e["@@transducer/init"]=y6e.asMutable=Y4e,y6e["@@transducer/step"]=function(e,t){return e.push(t)},y6e["@@transducer/result"]=function(e){return e.asImmutable()};var w6e=function(e,t){this.array=e,this.ownerID=t};w6e.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var i=n>>>t&O2e;if(i>=this.array.length)return new w6e([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-5,n))===o&&a)return this}if(a&&!r)return this;var s=D6e(this,e);if(!a)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},w6e.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var i,r=n-1>>>t&O2e;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-5,n))===a&&r===this.array.length-1)return this}var o=D6e(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var F6e,k6e={};function x6e(e,t){var n=e._origin,i=e._capacity,r=T6e(i),a=e._tail;return o(e._root,e._level,0);function o(e,s,l){return 0===s?function(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,u=i-o;u>R2e&&(u=R2e);return function(){if(l===u)return k6e;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,r,a){var s,l=e&&e.array,u=a>n?0:n-a>>r,c=1+(i-a>>r);c>R2e&&(c=R2e);return function(){for(;;){if(s){var e=s();if(e!==k6e)return e;s=null}if(u===c)return k6e;var n=t?--c:u++;s=o(l&&l[n],r-5,a+(n<<r))}}}(e,s,l)}}function E6e(e,t,n,i,r,a,o){var s=Object.create(y6e);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=i,s._tail=r,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function C6e(){return F6e||(F6e=E6e(0,0,5))}function S6e(e,t,n,i,r,a){var o,s=i>>>n&O2e,l=e&&s<e.array.length;if(!l&&void 0===r)return e;if(n>0){var u=e&&e.array[s],c=S6e(u,t,n-5,i,r,a);return c===u?e:((o=D6e(e,t)).array[s]=c,o)}return l&&e.array[s]===r?e:(a&&B2e(a),o=D6e(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function D6e(e,t){return t&&e&&t===e.ownerID?e:new w6e(e?e.array.slice():[],t)}function P6e(e,t){if(t>=T6e(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,i=e._level;n&&i>0;)n=n.array[t>>>i&O2e],i-=5;return n}}function A6e(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new G2e,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,u=e._root,c=0;o+c<0;)u=new w6e(u&&u.array.length?[void 0,u]:[],i),c+=1<<(l+=5);c&&(o+=c,r+=c,s+=c,a+=c);for(var d=T6e(a),f=T6e(s);f>=1<<l+5;)u=new w6e(u&&u.array.length?[u]:[],i),l+=5;var p=e._tail,h=f<d?P6e(e,s-1):f>d?new w6e([],i):p;if(p&&f>d&&o<a&&p.array.length){for(var g=u=D6e(u,i),m=l;m>5;m-=5){var v=d>>>m&O2e;g=g.array[v]=D6e(g.array[v],i)}g.array[d>>>5&O2e]=p}if(s<a&&(h=h&&h.removeAfter(i,0,s)),o>=f)o-=f,s-=f,l=5,u=null,h=h&&h.removeBefore(i,0,o);else if(o>r||f<d){for(c=0;u;){var _=o>>>l&O2e;if(_!==f>>>l&O2e)break;_&&(c+=(1<<l)*_),l-=5,u=u.array[_]}u&&o>r&&(u=u.removeBefore(i,l,o-c)),u&&f<d&&(u=u.removeAfter(i,l,f-c)),c&&(o-=c,s-=c)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):E6e(o,s,l,u,h)}function T6e(e){return e<R2e?0:e-1>>>5<<5}var L6e,I6e=function(e){function t(e){return null==e?j6e():z3e(e)?e:j6e().withMutations((function(t){var n=r3e(e);S4e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):j6e()},t.prototype.set=function(e,t){return N6e(this,e,t)},t.prototype.remove=function(e){return N6e(this,e,z2e)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?M6e(t,n,e,this.__hash):0===this.size?j6e():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(J4e);function M6e(e,t,n,i){var r=Object.create(I6e.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function j6e(){return L6e||(L6e=M6e(s6e(),C6e()))}function N6e(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===z2e){if(!l)return e;o.size>=R2e&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):M6e(i,r)}I6e.isOrderedMap=z3e,I6e.prototype[d3e]=!0,I6e.prototype.delete=I6e.prototype.remove;var R6e="@@__IMMUTABLE_STACK__@@";function O6e(e){return Boolean(e&&e[R6e])}var z6e=function(e){function t(e){return null==e?U6e():O6e(e)?e:U6e().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=U2e(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,i=arguments.length-1;i>=0;i--)n={value:e[i],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):q6e(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&O6e(t))return t;S4e(t.size);var n=this.size,i=this._head;return t.__iterate((function(e){n++,i={value:e,next:i}}),!0),this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):q6e(n,i)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):U6e()},t.prototype.slice=function(t,n){if(W2e(t,n,this.size))return this;var i=Y2e(t,this.size);if(V2e(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var r=this.size-i,a=this._head;i--;)a=a.next;return this.__ownerID?(this.size=r,this._head=a,this.__hash=void 0,this.__altered=!0,this):q6e(r,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?q6e(this.size,this._head,e,this.__hash):0===this.size?U6e():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new P3e(this.toArray()).__iterate((function(t,i){return e(t,i,n)}),t);for(var i=0,r=this._head;r&&!1!==e(r.value,i++,this);)r=r.next;return i},t.prototype.__iterator=function(e,t){if(t)return new P3e(this.toArray()).__iterator(e,t);var n=0,i=this._head;return new m3e((function(){if(i){var t=i.value;return i=i.next,v3e(e,n++,t)}return{value:void 0,done:!0}}))},t}(a3e);z6e.isStack=O6e;var B6e,G6e=z6e.prototype;function q6e(e,t,n,i){var r=Object.create(G6e);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function U6e(){return B6e||(B6e=q6e(0))}G6e[R6e]=!0,G6e.shift=G6e.pop,G6e.unshift=G6e.push,G6e.unshiftAll=G6e.pushAll,G6e.withMutations=W4e,G6e.wasAltered=K4e,G6e.asImmutable=V4e,G6e["@@transducer/init"]=G6e.asMutable=Y4e,G6e["@@transducer/step"]=function(e,t){return e.unshift(t)},G6e["@@transducer/result"]=function(e){return e.asImmutable()};var H6e="@@__IMMUTABLE_SET__@@";function W6e(e){return Boolean(e&&e[H6e])}function Y6e(e){return W6e(e)&&f3e(e)}function V6e(e,t){if(e===t)return!0;if(!Z2e(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||X2e(e)!==X2e(t)||t3e(e)!==t3e(t)||f3e(e)!==f3e(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!n3e(e);if(f3e(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&G3e(r[1],e)&&(n||G3e(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var o=!0,s=t.__iterate((function(t,i){if(n?!e.has(t):r?!G3e(t,e.get(i,z2e)):!G3e(e.get(i,z2e),t))return o=!1,!1}));return o&&e.size===s}function K6e(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function J6e(e){if(!e||"object"!=typeof e)return e;if(!Z2e(e)){if(!P4e(e))return e;e=E3e(e)}if(X2e(e)){var t={};return e.__iterate((function(e,n){t[n]=J6e(e)})),t}var n=[];return e.__iterate((function(e){n.push(J6e(e))})),n}var Q6e=function(e){function t(t){return null==t?t9e():W6e(t)&&!f3e(t)?t:t9e().withMutations((function(n){var i=e(t);S4e(i.size),i.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(r3e(e).keySeq())},t.intersect=function(e){return(e=i3e(e).toArray()).length?$6e.intersect.apply(t(e.pop()),e):t9e()},t.union=function(e){return(e=i3e(e).toArray()).length?$6e.union.apply(t(e.pop()),e):t9e()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return X6e(this,this._map.set(e,e))},t.prototype.remove=function(e){return X6e(this,this._map.remove(e))},t.prototype.clear=function(){return X6e(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,i=[],r=[];return this.forEach((function(a){var o=e.call(t,a,a,n);o!==a&&(i.push(a),r.push(o))})),this.withMutations((function(e){i.forEach((function(t){return e.remove(t)})),r.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var i=0;i<t.length;i++)e(t[i]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var i=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||i.push(e)})),this.withMutations((function(e){i.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var i=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&i.push(e)})),this.withMutations((function(e){i.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return v9e(g4e(this,e))},t.prototype.sortBy=function(e,t){return v9e(g4e(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(o3e);Q6e.isSet=W6e;var Z6e,$6e=Q6e.prototype;function X6e(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function e9e(e,t){var n=Object.create($6e);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function t9e(){return Z6e||(Z6e=e9e(s6e()))}$6e[H6e]=!0,$6e.delete=$6e.remove,$6e.merge=$6e.concat=$6e.union,$6e.withMutations=W4e,$6e.asImmutable=V4e,$6e["@@transducer/init"]=$6e.asMutable=Y4e,$6e["@@transducer/step"]=function(e,t){return e.add(t)},$6e["@@transducer/result"]=function(e){return e.asImmutable()},$6e.__empty=t9e,$6e.__make=e9e;var n9e,i9e=function(e){function t(e,n,i){if(!(this instanceof t))return new t(e,n,i);if(C4e(0!==i,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),i=void 0===i?1:Math.abs(i),n<e&&(i=-i),this._start=e,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-e)/i-1)+1),0===this.size){if(n9e)return n9e;n9e=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+U2e(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return W2e(e,n,this.size)?this:(e=Y2e(e,this.size),(n=V2e(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,i=this._step,r=t?this._start+(n-1)*i:this._start,a=0;a!==n&&!1!==e(r,t?n-++a:a++,this);)r+=t?-i:i;return a},t.prototype.__iterator=function(e,t){var n=this.size,i=this._step,r=t?this._start+(n-1)*i:this._start,a=0;return new m3e((function(){if(a===n)return{value:void 0,done:!0};var o=r;return r+=t?-i:i,v3e(e,t?n-++a:a++,o)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:V6e(this,e)},t}(S3e);function r9e(e,t,n){for(var i=D4e(t),r=0;r!==i.length;)if((e=T4e(e,i[r++],z2e))===z2e)return n;return e}function a9e(){S4e(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}i3e.isIterable=Z2e,i3e.isKeyed=X2e,i3e.isIndexed=t3e,i3e.isAssociative=n3e,i3e.isOrdered=f3e,i3e.Iterator=m3e,K6e(i3e,{toArray:function(){S4e(this.size);var e=new Array(this.size||0),t=X2e(this),n=0;return this.__iterate((function(i,r){e[n++]=t?[r,i]:i})),e},toIndexedSeq:function(){return new r4e(this)},toJS:function(){return J6e(this)},toKeyedSeq:function(){return new i4e(this,!0)},toMap:function(){return J4e(this.toKeyedSeq())},toObject:a9e,toOrderedMap:function(){return I6e(this.toKeyedSeq())},toOrderedSet:function(){return v9e(X2e(this)?this.valueSeq():this)},toSet:function(){return Q6e(X2e(this)?this.valueSeq():this)},toSetSeq:function(){return new a4e(this)},toSeq:function(){return t3e(this)?this.toIndexedSeq():X2e(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return z6e(X2e(this)?this.valueSeq():this)},toList:function(){return b6e(X2e(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return b4e(this,p4e(this,e))},includes:function(e){return this.some((function(t){return G3e(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){S4e(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return b4e(this,c4e(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},forEach:function(e,t){return S4e(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){S4e(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!=i?i.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return b4e(this,l4e(this,e,t))},reduce:function(e,t,n){return u9e(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return u9e(this,e,t,n,arguments.length<2,!0)},reverse:function(){return b4e(this,u4e(this,!0))},slice:function(e,t){return b4e(this,d4e(this,e,t,!0))},some:function(e,t){return!this.every(f9e(e),t)},sort:function(e){return b4e(this,g4e(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return q2e(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var i=J4e().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}(this,e,t)},equals:function(e){return V6e(this,e)},entrySeq:function(){var e=this;if(e._cache)return new P3e(e._cache);var t=e.toSeq().map(d9e).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(f9e(e),t)},findEntry:function(e,t,n){var i=n;return this.__iterate((function(n,r,a){if(e.call(t,n,r,a))return i=[r,n],!1})),i},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(H2e,null,e)},flatMap:function(e,t){return b4e(this,function(e,t,n){var i=w4e(e);return e.toSeq().map((function(r,a){return i(t.call(n,r,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return b4e(this,h4e(this,e,!0))},fromEntrySeq:function(){return new o4e(this)},get:function(e,t){return this.find((function(t,n){return G3e(n,e)}),void 0,t)},getIn:function(e,t){return r9e(this,e,t)},groupBy:function(e,t){return function(e,t,n){var i=X2e(e),r=(f3e(e)?I6e():J4e()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=w4e(e);return r.map((function(t){return b4e(e,a(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,z2e)!==z2e},hasIn:function(e){return function(e,t){return r9e(e,t,z2e)!==z2e}(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:i3e(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:i3e(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return G3e(t,e)}))},keySeq:function(){return this.toSeq().map(c9e).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return m4e(this,e)},maxBy:function(e,t){return m4e(this,t,e)},min:function(e){return m4e(this,e?p9e(e):g9e)},minBy:function(e,t){return m4e(this,t?p9e(t):g9e,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return b4e(this,f4e(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(f9e(e),t)},sortBy:function(e,t){return b4e(this,g4e(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return b4e(this,function(e,t,n){var i=F4e(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(2,r),s=!0;return new m3e((function(){if(!s)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var r=e.value,l=r[0],u=r[1];return t.call(n,u,l,a)?2===i?e:v3e(i,l,u,e):(s=!1,{value:void 0,done:!0})}))},i}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(f9e(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=f3e(e),n=X2e(e),i=t?1:0;return function(e,t){return t=q3e(t,3432918353),t=q3e(t<<15|t>>>-15,461845907),t=q3e(t<<13|t>>>-13,5),t=q3e((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=U3e((t=q3e(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){i=31*i+m9e(W3e(e),W3e(t))|0}:function(e,t){i=i+m9e(W3e(e),W3e(t))|0}:t?function(e){i=31*i+W3e(e)|0}:function(e){i=i+W3e(e)|0}),i)}(this))}});var o9e=i3e.prototype;o9e[Q2e]=!0,o9e[g3e]=o9e.values,o9e.toJSON=o9e.toArray,o9e.__toStringMapper=A4e,o9e.inspect=o9e.toSource=function(){return this.toString()},o9e.chain=o9e.flatMap,o9e.contains=o9e.includes,K6e(r3e,{flip:function(){return b4e(this,s4e(this))},mapEntries:function(e,t){var n=this,i=0;return b4e(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return b4e(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var s9e=r3e.prototype;s9e[$2e]=!0,s9e[g3e]=o9e.entries,s9e.toJSON=a9e,s9e.__toStringMapper=function(e,t){return A4e(t)+": "+A4e(e)},K6e(a3e,{toKeyedSeq:function(){return new i4e(this,!1)},filter:function(e,t){return b4e(this,c4e(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return b4e(this,u4e(this,!1))},slice:function(e,t){return b4e(this,d4e(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=Y2e(e,e<0?this.count():this.size);var i=this.slice(0,e);return b4e(this,1===n?i:i.concat(E4e(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return b4e(this,h4e(this,e,!1))},get:function(e,t){return(e=U2e(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=U2e(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return b4e(this,function(e,t){var n=F4e(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,i){var r=this,a=0;return e.__iterate((function(e){return(!a||!1!==n(t,a++,r))&&!1!==n(e,a++,r)}),i),a},n.__iteratorUncached=function(n,i){var r,a=e.__iterator(1,i),o=0;return new m3e((function(){return(!r||o%2)&&(r=a.next()).done?r:o%2?v3e(n,o++,t):v3e(n,o++,r.value,r)}))},n}(this,e))},interleave:function(){var e=[this].concat(E4e(arguments)),t=_4e(this.toSeq(),S3e.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),b4e(this,n)},keySeq:function(){return i9e(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return b4e(this,f4e(this,e,t,!1))},zip:function(){var e=[this].concat(E4e(arguments));return b4e(this,_4e(this,h9e,e))},zipAll:function(){var e=[this].concat(E4e(arguments));return b4e(this,_4e(this,h9e,e,!0))},zipWith:function(e){var t=E4e(arguments);return t[0]=this,b4e(this,_4e(this,e,t))}});var l9e=a3e.prototype;function u9e(e,t,n,i,r,a){return S4e(e.size),e.__iterate((function(e,a,o){r?(r=!1,n=e):n=t.call(i,n,e,a,o)}),a),n}function c9e(e,t){return t}function d9e(e,t){return[t,e]}function f9e(e){return function(){return!e.apply(this,arguments)}}function p9e(e){return function(){return-e.apply(this,arguments)}}function h9e(){return E4e(arguments)}function g9e(e,t){return e<t?1:e>t?-1:0}function m9e(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}l9e[e3e]=!0,l9e[d3e]=!0,K6e(o3e,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o3e.prototype.has=o9e.includes,o3e.prototype.contains=o3e.prototype.includes,K6e(C3e,r3e.prototype),K6e(S3e,a3e.prototype),K6e(D3e,o3e.prototype);var v9e=function(e){function t(e){return null==e?w9e():Y6e(e)?e:w9e().withMutations((function(t){var n=o3e(e);S4e(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(r3e(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Q6e);v9e.isOrderedSet=Y6e;var _9e,b9e=v9e.prototype;function y9e(e,t){var n=Object.create(b9e);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function w9e(){return _9e||(_9e=y9e(j6e()))}b9e[d3e]=!0,b9e.zip=l9e.zip,b9e.zipWith=l9e.zipWith,b9e.__empty=w9e,b9e.__make=y9e;var F9e={exports:{}};
|
|
164
164
|
/*!
|
|
165
165
|
Copyright (c) 2015 Jed Watson.
|
|
166
166
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|