1/*! For license information please see 168.c599bc5942bc72ab.js.LICENSE.txt */ 2(self.webpackChunk=self.webpackChunk||[]).push([[168],{43987:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var r=n(96540),i=n(5556),o=n.n(i),s=n(95093),a=n.n(s),u=n(10985),c=n(57234),l=n.n(c),f=n(74848);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,h(r.key),r)}}function h(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}function v(t,e,n){return e=g(e),function(t,e){if(e&&("object"==d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],g(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var _=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=v(this,e,[t])).state={subject:"",cc:"",message:"",rmessage:l().createEmptyValue(),visible:!1,to:{user_id:0,name:""},recipient:"",from:"",observation:{},includeInfo:1,loading:!1,sent:!1,errors:{recipient:[],from:[],cc:[],subject:[],message:[]}},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.setState({visible:this.props.visible,to:this.props.contact.to,from:this.props.contact.from,observation:this.props.observation,recipient:this.props.contact.to.name})}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.contact.to.user_id===this.state.to.user_id&&t.observation.id===this.state.observation.id||this.setState({to:t.contact.to,from:t.contact.from,observation:t.observation,recipient:t.contact.to.name}),t.visible!==this.state.visible&&this.setState({visible:t.visible})}},{key:"close",value:function(){this.setState({subject:"",cc:"",message:"",to:{user_id:0,name:""},recipient:"",from:"",observation:{},includeInfo:0,loading:!1,sent:!1,errors:{recipient:[],from:[],cc:[],subject:[],message:[]}}),this.props.onCloseRequest()}},{key:"send",value:function(t){var e=this;t.preventDefault(),this.setState({loading:!0}),axios.post("/admin/web/contact/user",{recipient:this.state.to.user_id,from:this.state.from,observation_id:this.state.observation.observation_id,cc:this.state.cc,subject:this.state.subject,message:this.state.rmessage.toString("markdown"),include_observation:this.state.includeInfo?1:0}).then(function(t){e.setState({loading:!1,sent:!0})}).catch(function(t){e.setState({loading:!1});var n=t.response;if(n&&422===n.status){var r=n.data;e.setState({errors:{recipient:r.recipient||[],from:r.from||[],cc:r.cc||[],subject:r.subject||[],message:r.message||[]}})}})}},{key:"renderFormColumn",value:function(){var t=this;if(!this.state.sent)return(0,f.jsxs)("div",{className:"column",children:[(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label",children:(0,f.jsx)("label",{className:"label",children:"From"})}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsxs)("div",{className:"field",children:[(0,f.jsx)("div",{className:"control",children:(0,f.jsx)("input",{type:"email",className:"input".concat(this.state.errors.from.length>0?" is-danger":""),value:this.state.from,onChange:function(e){var n=e.target;t.setState({from:n.value})}})}),this.state.errors.from.map(function(t,e){return(0,f.jsx)("p",{className:"help is-danger",children:t},e)})]})})]}),(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label",children:(0,f.jsx)("label",{className:"label",children:"To"})}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsxs)("div",{className:"field",children:[(0,f.jsx)("div",{className:"control",style:{backgroundColor:"whitesmoke",padding:".5rem",BorderRadius:"2px"},children:this.state.to.name}),this.state.errors.recipient.map(function(t,e){return(0,f.jsx)("p",{className:"help is-danger",children:t},e)})]})})]}),(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label",children:(0,f.jsx)("label",{className:"label",children:"CC/BCC"})}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsx)("div",{className:"field",children:(0,f.jsxs)("div",{className:"control",children:[(0,f.jsx)("input",{type:"text",className:"input".concat(this.state.errors.cc.length>0?" is-danger":""),placeholder:"Comma separated email addresses",value:this.state.cc,onChange:function(e){var n=e.target;t.setState({cc:n.value})}}),this.state.errors.cc.map(function(t,e){return(0,f.jsx)("p",{className:"help is-danger",children:t},e)})]})})})]}),(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label",children:(0,f.jsx)("label",{className:"label",children:"Subject"})}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsxs)("div",{className:"field",children:[(0,f.jsx)("div",{className:"control",children:(0,f.jsx)("input",{type:"text",className:"input".concat(this.state.errors.subject.length>0?" is-danger":""),placeholder:"Subject",value:this.state.subject,onChange:function(e){var n=e.target;t.setState({subject:n.value})}})}),this.state.errors.subject.map(function(t,e){return(0,f.jsx)("p",{className:"help is-danger",children:t},e)})]})})]}),(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label"}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsx)("div",{className:"field",children:(0,f.jsx)("div",{className:"control",children:(0,f.jsxs)("label",{className:"checkbox",children:[(0,f.jsx)("input",{type:"checkbox",className:"mr-0",value:1,checked:this.state.includeInfo,onChange:function(e){var n=e.target;return t.setState({includeInfo:n.checked})}})," Include information about this observation?"]})})})})]}),(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label",children:(0,f.jsx)("label",{className:"label",children:"Message"})}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsxs)("div",{className:"field",children:[(0,f.jsx)("div",{className:"control is-expanded",children:(0,f.jsx)(l(),{value:this.state.rmessage,onChange:function(e){return t.setState({rmessage:e})}})}),this.state.errors.message.map(function(t,e){return(0,f.jsx)("p",{className:"help is-danger",children:t},e)})]})})]})]})}},{key:"___tmpSaveTextArea",value:function(){var t=this;return(0,f.jsxs)("div",{className:"field is-horizontal",children:[(0,f.jsx)("div",{className:"field-label",children:(0,f.jsx)("label",{className:"label",children:"Message"})}),(0,f.jsx)("div",{className:"field-body",children:(0,f.jsxs)("div",{className:"field",children:[(0,f.jsx)("div",{className:"control is-expanded",children:(0,f.jsx)("textarea",{className:"textarea".concat(this.state.errors.message.length>
20?" is-danger":""),placeholder:"Message",onChange:function(e){var n=e.target;return t.setState({message:n.value})}})}),this.state.errors.message.map(function(t,e){return(0,f.jsx)("p",{className:"help is-danger",children:t},e)}),(0,f.jsxs)("p",{className:"help",children:["You may use ",(0,f.jsx)("a",{href:"https://daringfireball.net/projects/markdown/syntax",children:"Markdown"})," syntax to style your email."]})]})})]})}},{key:"renderPreviewColumn",value:function(){if(!this.state.sent){var t=this.state.observation;if(void 0!==t.observation_category){var e=t.location.address;return(0,f.jsxs)("div",{className:"column",style:{backgroundColor:"whitesmoke"},children:[(0,f.jsx)("h5",{className:"title is-5",children:"Message Preview"}),(0,f.jsxs)("div",{className:"p-1",style:{backgroundColor:"#fff"},children:[""!==this.state.subject.trim()?(0,f.jsx)("h2",{className:"title is-5",children:this.state.subject}):null,this.renderPreview(),this.state.includeInfo?(0,f.jsx)("table",{className:"table",children:(0,f.jsxs)("tbody",{children:[(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{children:"Category"}),(0,f.jsxs)("td",{children:[t.observation_category,"Other"===t.observation_category?" (".concat(t.meta_data.otherLabel,")"):null]})]}),null!==e?(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{children:"Found Near"}),(0,f.jsx)("td",{children:e.formatted})]}):null,(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{children:"Date Collected"}),(0,f.jsx)("td",{children:a()(t.date).format("LL")})]}),(0,f.jsx)("tr",{children:(0,f.jsx)("th",{colSpan:2,children:(0,f.jsx)("a",{href:"/observation/".concat(t.observation_id),target:"_blank",children:"View full details of observation"})})})]})}):null]})]})}}}},{key:"renderPreview",value:function(){var t=this.state.rmessage.toString("html");return""!==t.trim()||this.state.includeInfo||""!==this.state.subject.trim()?(0,f.jsx)("div",{className:"content",dangerouslySetInnerHTML:{__html:t}}):(0,f.jsx)("p",{className:"text-muted",children:"Preview will be displayed here"})}},{key:"renderSentColumn",value:function(){if(this.state.sent)return(0,f.jsx)("div",{className:"column",children:(0,f.jsx)("div",{className:"notification is-success",children:"Your message has been sent successfully. If the submitter responds to your email, the message will be redirected to your mailbox automatically."})})}},{key:"render",value:function(){var t=this.state.to;return(0,f.jsxs)("div",{className:"modal".concat(this.state.visible?" is-active":""),children:[(0,f.jsx)("div",{className:"modal-background",onClick:this.close.bind(this)}),(0,f.jsxs)("div",{className:"modal-card modal-card-lg",children:[(0,f.jsx)(u.A,{visible:this.state.loading}),(0,f.jsxs)("header",{className:"modal-card-head",children:[(0,f.jsxs)("p",{className:"modal-card-title",children:["Contact ",t.name]}),(0,f.jsx)("button",{type:"button",className:"delete",onClick:this.close.bind(this)})]}),(0,f.jsx)("section",{className:"modal-card-body",children:(0,f.jsxs)("div",{className:"columns",children:[this.renderFormColumn(),this.renderPreviewColumn(),this.renderSentColumn()]})}),(0,f.jsx)("footer",{className:"modal-card-foot",children:this.state.sent?(0,f.jsx)("button",{type:"button",className:"button is-success",onClick:this.close.bind(this),children:"Done"}):(0,f.jsxs)("div",{className:"flexbox flex-space-between",children:[(0,f.jsx)("button",{type:"button",className:"button is-success",onClick:this.send.bind(this),children:"Send"}),(0,f.jsx)("button",{type:"button",className:"button",onClick:this.close.bind(this),children:"Cancel"})]})})]})]})}}])&&p(n.prototype,r),i&&p(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);_.propTypes={contact:o().object.isRequired,onCloseRequest:o().func.isRequired,observation:o().object.isRequired,visible:o().bool},_.defaultProps={visible:!1}},58971:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});n(96540);var r=n(67902),i=n(19480),o=n(10985),s=n(43987),a=n(43533),u=n(74848);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==c(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=d(this,e,[t])).state={observations:[],search:"",searchTermCategory:"all",loading:!1,currentPage:1,total:0,pages:[],perPage:3,pageLoading:!0,categories:[],selectedCategory:0,selectedStatus:0,showEmail:!1,user:{},collections:[],contact:{to:{user_id:0,email:""},from:"",observation:{}}},document.title="Curate - TreeSnap",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(a=[{key:"componentDidMount",value:function(){var t=this.getBrowserPage();this.loadObservations(Object.assign({},this.state,{page:t})),this.loadUser(),this.loadCategories(),this.loadCollections()}},{key:"loadObservations",value:function(t){var e=this;this.setState({loading:!0}),void 0===t&&(t=this.state),axios.get("/admin/web/curate/observations/".concat(t.perPage),{params:{page:t.page,search:t.search,category:"0"!==t.selectedCategory&&t.selectedCategory?t.selectedCategory:"",status:"0"!==t.selectedStatus&&t.selectedStatus?t.selectedStatus:""}}).then(function(n){var r=n.data.data,i={loading:!1,observations:r.observations,currentPage:r.currentPage,total:r.total,hasMorePages:r.hasMorePages,perPage:t.perPage,pages:e.generatePages(r.total,t.perPage),pageLoading:!1};e.setState(i),e.setBrowserHistory(i)}).catch(function(t){e.setState({loading:!1}),console.log("Network Error: ",t)})}},{key:"loadUser",value:function(){var t=this;axios.get("/web/user").then(function(e){t.setState({user:e.data.data})}).catch(function(t){console.log(t)})}},{key:"loadCategories",value:function(){var t=this;axios.get("/web/observations/categories").then(function(e){var n=e.data.data.map(function(t){return{label:t,value:t}});t.setState({categories:n})}).catch(function(t){console.log(t)})}},{key:"generatePages",value:function(t,e){for(var n=[],r=Math.ceil(t/e),i=1;i<=r;i++)n.push(i);return n}},{key:"searchFilter",value:function(t){var e=this.state;e.search=t,e.page=1,this.loadObservations(e),this.setState({search:t,page:1})}},{key:"setBrowserHistory",value:function(t){this.props.history.replace("/curate/?page=".concat(t.currentPage))}},{key:"getBrowserPage",value:function(){var t=i.A.parseUrl(this.props.history.location.search);if(void 0!==t.page){var e=parseInt(t.page);if(!isNaN(e))return e}return 1}},{key:"nextPage",value:function(){if(this.state.hasMorePages){var t=this.state.currentPage+1;this.goToPage(t)}}},{key:"prevPage",value:function(){if(1!==this.state.currentPage){var t=this.state.currentPage-1;this.goToPage(t)}}},{key:"goToPage",value:function(t){var e=this.state;e.page=t,this.loadObservations(e),this.setBrowserHistory(e)}},{key:"changeCategory",value:function(t){this.setState({selectedCategory:t,page:1});var e=this.state;e.selectedCategory=t,e.page=1,this.loadObservations(e)}},{key:"changeStatus",value:function(t){this.setState({selectedStatus:t,page:1});var e=this.state;e.page=1,e.selectedStatus=t,this.loadObservations(e)}},{key:"changePerPage",value:function(t){t=parseInt(t),this.setState({perPage:t,page:1});var e=this.state;e.page=1,e.perPage=t,this.loadObservations(e)}},{key:"_renderFilters",value:function(){var t=this;return(0,u.jsxs)("div",{className:"columns is-multiline",children:[(0,u.jsx)("div",{className:"column is-4",children:(0,u.jsx)("div",{className:"field",children:(0,u.jsx)("div",{className:"control",children:(0,u.jsx)("input",{type:"search",className:"input",placeholder:"Search",onChange:function(e){var n=e.target;return t.searchFilter(n.value)},value:this.state.search})})})}),(0,u.jsx)("div",{className:"column is-4",children:(0,u.jsx)("div",{className:"field",children:(0,u.jsx)("div",{className:"control",children:(0,u.jsx)("span",{className:"select is-full-width",children:(0,u.jsxs)("select",{value:this.state.selectedStatus,onChange:function(e){var n=e.target;return t.changeStatus(n.value)},children:[(0,u.jsx)("option",{value:0,children:"Any Status"}),(0,u.jsx)("option",{value:"marked_correct_by_anyone",children:"Species marked correct by anyone"}),(0,u.jsx)("option",{value:"marked_correct_by_me",children:"Species marked correct by me"})]})})})})}),(0,u.jsx)("div",{className:"column is-4",children:(0,u.jsx)("div",{className:"field",children:(0,u.jsx)("div",{className:"control",children:(0,u.jsx)("span",{className:"select is-full-width",children:(0,u.jsxs)("select",{value:this.state.selectedCategory,onChange:function(e){var n=e.target;return t.changeCategory(n.value)},children:[(0,u.jsx)("option",{value:0,children:"Any Species"}),this.state.categories.map(function(t,e){return(0,u.jsx)("option",{value:t.value,children:t.label},e)})]})})})})})]})}},{key:"loadCollections",value:function(){var t=this;axios.get("/web/collections/customizable/1").then(function(e){t.setState({collections:e.data.data})}).catch(function(t){console.log(t)})}},{key:"_renderObservation",value:function(t){var e=this;return(0,u.jsx)("div",{className:"column is-4-desktop is-6-tablet",children:(0,u.jsx)(r.A,{observation:t,showMarks:!0,loading:this.state.loading,collections:this.state.collections,onEmailRequest:function(t){e.setState({showEmail
2:!0,contact:{to:{user_id:t.user.id,name:t.user.name},from:e.state.user.email,observation:t}})}})},t.observation_id)}},{key:"_renderPageLinks",value:function(){var t=this;return(0,u.jsxs)("nav",{className:"pagination is-centered",children:[(0,u.jsx)("a",{className:"pagination-previous",onClick:this.prevPage.bind(this),disabled:1===this.state.currentPage,children:"Previous"}),(0,u.jsx)("ul",{className:"pagination-list",children:(0,u.jsxs)("li",{children:["Page ",(0,u.jsx)("span",{className:"select is-small",children:(0,u.jsx)("select",{value:this.state.currentPage,onChange:function(e){var n=e.target;return t.goToPage(n.value)},children:this.state.pages.map(function(t){return(0,u.jsx)("option",{value:t,children:t},"page_".concat(t))})})})," out of ",this.state.pages.length," pages"]})}),(0,u.jsx)("a",{className:"pagination-next",onClick:this.nextPage.bind(this),disabled:!this.state.hasMorePages,children:"Next"})]})}},{key:"render",value:function(){var t=this;return(0,u.jsxs)("div",{children:[(0,u.jsx)(o.A,{visible:this.state.pageLoading}),(0,u.jsx)(s.A,{visible:this.state.showEmail,contact:this.state.contact,observation:this.state.contact.observation,onCloseRequest:function(){return t.setState({showEmail:!1})}}),(0,u.jsx)("h1",{className:"title is-3",children:"Curate Observations"}),(0,u.jsxs)("div",{className:"columns flex-v-center mb-none",children:[(0,u.jsx)("div",{className:"column",children:(0,u.jsx)("p",{children:(0,u.jsx)("b",{children:"Filter"})})}),(0,u.jsx)("div",{className:"column has-text-right",children:(0,u.jsxs)("p",{children:[this.state.total," total observations. Showing",(0,u.jsx)("span",{className:"select is-small ml-0 mr-0",children:(0,u.jsxs)("select",{value:this.state.perPage,onChange:function(e){var n=e.target;return t.changePerPage(n.value)},children:[(0,u.jsx)("option",{value:3,children:"3"}),(0,u.jsx)("option",{value:6,children:"6"}),(0,u.jsx)("option",{value:12,children:"12"}),(0,u.jsx)("option",{value:24,children:"24"}),(0,u.jsx)("option",{value:48,children:"48"})]})}),"per page."]})})]}),this._renderFilters(),(0,u.jsxs)("div",{className:"columns is-multiline",children:[0===this.state.observations.length?(0,u.jsx)("p",{children:"No results found"}):null,this.state.observations.map(this._renderObservation.bind(this))]}),this._renderPageLinks()]})}}])&&l(n.prototype,a),c&&l(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,c}(a.A)},93118:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(96540),i=n(5556),o=n.n(i),s=n(74848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return this.props.visible?(0,s.jsxs)("div",{className:"modal is-active",children:[(0,s.jsx)("div",{className:"modal-background",onClick:this.props.onCloseRequest}),this.props.showCloseButton?(0,s.jsx)("button",{className:"close-modal",onClick:this.props.onCloseRequest,style:{zIndex:999999},children:(0,s.jsx)("i",{className:"fa fa-times"})}):null,(0,s.jsx)("div",{className:"modal-content".concat(this.props.modalContentClassName?" ".concat(this.props.modalContentClassName):""),children:(0,s.jsx)("div",{className:"box",children:this.props.children})})]}):null}}])&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);h.propTypes={visible:o().bool.isRequired,onCloseRequest:o().func.isRequired,showCloseButton:o().bool,modalContentClassName:o().string},h.defaultProps={showCloseButton:!0,modalContentClassName:""}},20242:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r=n(96540),i=n(5556),o=n.n(i),s=n(10985),a=n(72060),u=n(74848);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==c(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=d(this,e,[t])).state={loading:!1,collection_id:0,label:"",errors:{label:[],collection_id:[]}},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(r=[{key:"submit",value:function(t){var e=this;if(t.preventDefault(),this.validate()){this.setState({loading:!0});var n=parseInt(this.state.collection_id);axios.post("/web/collection/attach",{observation_id:this.props.observationId,collection_id:0!==n?n:"",label:this.state.label}).then(function(t){e.setState({label:"",collection_id:0,errors:{label:[],collection_id:[]},loading:!1}),e.props.onSubmit(t.data.data)}).catch(function(t){var n=t.response;if(n&&422===n.status){var r=n.data;e.setState({errors:{label:r.label||[],collection_id:r.collection_id||[]},loading:!1})}else console.log(t)})}}},{key:"validate",value:function(){var t=this.state.label,e=this.state.collection_id;return""!==t.trim()||0!==e||(this.setState({errors:{label:["Please select an existing collection or type a new collection label."],collection_id:[]}}),!1)}},{key:"render",value:function(){var t=this;return a.A.authenticated()?(0,u.jsxs)("form",{action:"#",method:"POST",onSubmit:this.submit.bind(this),children:[(0,u.jsxs)("div",{className:"field",children:[(0,u.jsx)("label",{className:"label",children:"Collection Name"}),(0,u.jsxs)("div",{className:"control",children:[(0,u.jsx)("span",{className:"select".concat(this.state.errors.collection_id.length>0?" is-danger":""),children:(0,u.jsxs)("select",{value:this.state.collection_id,onChange:function(e){var n=e.target;return t.setState({collection_id:n.value})},children:[(0,u.jsx)("option",{value:"0",children:"[Select Collection]"}),this.props.collections.map(function(t,e){return(0,u.jsx)("option",{value:t.value,children:t.label},e)})]})}),this.state.errors.collection_id.map(function(t,e){return(0,u.jsx)("p",{className:"help is-danger",children:t},e)})]})]}),(0,u.jsxs)("div",{className:"field",children:[(0,u.jsx)("label",{className:"label",children:"Or Create New Collection"}),(0,u.jsxs)("div",{className:"control",children:[(0,u.jsx)("input",{type:"text",className:"input".concat(this.state.errors.label.length>0?" is-danger":""),onChange:function(e){var n=e.target;return t.setState({label:n.value})},value:this.state.label,placeholder:"Type new collection label",readOnly:0!==parseInt(this.state.collection_id),disabled:0!==parseInt(this.state.collection_id)}),this.state.errors.label.map(function(t,e){return(0,u.jsx)("p",{className:"help is-danger",children:t},e)})]}),(0,u.jsx)("p",{className:"help",children:"The selected observation will be automatically added to the newly created collection."})]}),(0,u.jsx)("div",{className:"field",children:(0,u.jsx)("div",{className:"control",children:(0,u.jsx)("button",{type:"submit",className:"button is-primary",children:"Add Observation"})})}),(0,u.jsx)(s.A,{visible:this.state.loading})]}):(0,u.jsxs)("div",{className:"content",children:[(0,u.jsx)("p",{children:"You must be logged in to add this observation to a collection."}),(0,u.jsxs)("p",{children:["Please ",(0,u.jsx)("a",{href:"/login",children:"login"})," or ",(0,u.jsx)("a",{href:"/register",children:"create an account"})," first."]})]})}}])&&l(n.prototype,r),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);y.propTypes={observationId:o().number.isRequired,collections:o().array,onSubmit:o().func},y.defaultProps={collections:[],onSubmit:function(){}}},33616:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r=n(96540),i=n(5556),o=n.n(i),s=n(10985),a=n(72060),u=n(74848);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==c(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=d(this,e,[t])).state={reason:0,comments:"",errors:{reason:[],comments:[]},flagged:!1,flag_id:0,loading:!1},n.reasons=["This tree is the wrong species","This tree is on my private land and I would like it removed","This submission is spam","This submission is inappropriate","Other"],n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.setState({flagged:this.props.flagged,flag_id:this.props.flagId})}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.flagged!==this.state.flagged&&this.setState({flagged:t.flagged})}},{key:"undo",value:function(t){var e=this;t.preventDefault(),this.setState({loading:!0}),axios.delete("/web/flag/".concat(this.state.flag_id)).then(function(t){e.setState({loading:!1}),e.props.onUndo(t.data.data)}).catch(function(t){e.setState({loading:!1}),console.log(t)})}},{key:"submit",value:function(t){var e=this;t.preventDefault(),this.validate()&&(this.setState({loading:!0}),axios.post("/web/flag",{observation_id:this.props.observationId,reason:this.state.reason,comments:this.state.comments}).then(function(t){var n=t.data.data;e.setState({loading:!1,reason:0,comments:"",errors:{reason:[],comments:[]},flag_id:n.id}),e.props.onSubmit(n)}).catch(function(t){e.setState({loading:!1});var n=t.response;if(n&&422===n.status){var r=n.data;e.setState({errors:{reason:r.reason||[],comments:r.comments||[]}})}else console.log(t)}))}},{key:"validate",value:function(){var t={reason:[],comments:[]},e=!1;return 0===this.state.reason&&(t.reason=["The reason field is required."],e=!0),"Other"===this.state.reason&&""===this.state.comments.trim()&&(t.comments=["Please specify the other reason."],e=!0),this.setState({errors:t}),!e}},{key:"renderFlagForm",value:function(){var t=this;return(0,u.jsxs)("form",{action:"#",method:"POST",onSubmit:this.submit.bind(this),children:[(0,u.jsx)("p",{className:"mb-0",children:"Alert site administrators of an issue with this observation."}),(0,u.jsxs)("div",{className:"field",children:[(0,u.jsx)("label",{className:"label",children:"Reason"}),(0,u.jsxs)("div",{className:"control",children:[(0,u.jsx)("span",{className:"select".concat(this.state.errors.reason.length>0?" is-danger":""),children:(0,u.jsxs)("select",{value:this.state.reason,onChange:function(e){var n=e.target;return t.setState({reason:n.value})},children:[(0,u.jsx)("option",{value:"0",disabled:!0,children:"[Reason]"}),this.reasons.map(function(t,e){return(0,u.jsx)("option",{value:t,children:t},e)})]})}),this.state.errors.reason.map(function(t,e){return(0,u.jsx)("p",{className:"help is-danger",children:t},e)})]})]}),(0,u.jsxs)("div",{className:"field",children:[(0,u.jsx)("label",{className:"label",children:"Additional Comments"}),(0,u.jsxs)("div",{className:"control",children:[(0,u.jsx)("textarea",{className:"card-textarea-sm textarea".concat(this.state.errors.comments.length>0?" is-danger":""),value:this.state.comments,onChange:function(e){var n=e.target;return t.setState({comments:n.value})}}),this.state.errors.comments.map(function(t,e){return(0,u.jsx)("p",{className:"help is-danger",children:t},e)})]})]}),(0,u.jsx)("div",{className:"field",children:(0,u.jsx)("div",{className:"control",children:(0,u.jsx)("button",{type:"submit",className:"button is-primary",children:"Flag Observation"})})})]})}},{key:"renderUndoForm",value:function(){return(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"notification is-success",children:"Observation has been flagged and administrators will be notified shortly."}),(0,u.jsx)("button",{className:"button",onClick:this.undo.bind(this),children:"Undo"})]})}},{key:"render",value:function(){return a.A.authenticated()?(0,u.jsxs)("div",{children:[this.state.flagged?this.renderUndoForm():this.renderFlagForm(),(0,u.jsx)(s.A,{visible:this.state.loading})]}):(0,u.jsxs)("div",{className:"content",children:[(0,u.jsx)("p",{children:"You must be logged in to flag this observation."}),(0,u.jsxs)("p",{children:["Please ",(0,u.jsx)("a",{href:"/login",children:"login"})," or ",(0,u.jsx)("a",{href:"/register",children:"create an account"})," first."]})]})}}])&&l(n.prototype,r),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);y.propTypes={observationId:o().number.isRequired,onSubmit:o().func,flagged:o().bool,onUndo:o().func,flagId:o().number},y.defaultProps={flagged:0,flagId:0,onSubmit:function(){},onUndo:function(){}}},70180:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(96540),i=n(5556),o=n.n(i),s=n(74122),a=n(57061),u=n(10985),c=n(73811),l=n(74848);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}var d=["center","zoom","onBoundsChange","onLoad","loadingMap","className","style","selectionMode","onBoundsSelected"];function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?p(Object(n),!0).forEach(function(e){v(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function v(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function g(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}function m(t,e,n){return e=b(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,n||[],b(t).constructor):e.apply(t,n))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_=function(){return!!t})()}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var w=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=m(this,e,[t])).cluster=null,n.markers=[],n.rectangle=null,n.colors={"American Chestnut":"https://maps.google.com/mapfiles/ms/icons/green-dot.png",Ash:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png",Hemlock:"https://maps.google.com/mapfiles/ms/icons/red-dot.png","White Oak":"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png",Other:"https://maps.google.com/mapfiles/ms/icons/purple-dot.png"},n.state={drawing:!1,drawStart:null,drawCurrent:null},n._onOverlayMouseDown=n._onOverlayMouseDown.bind(n),n._onOverlayMouseMove=n._onOverlayMouseMove.bind(n),n._onOverlayMouseUp=n._onOverlayMouseUp.bind(n),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(e,t),n=e,i=[{key:"_emitSelectedBoundsFromRectangle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit";if(this.rectangle&&this.props.onBoundsSelected){var e=this.rectangle.getBounds();
2if(e){var n=e.getNorthEast(),r=e.getSouthWest(),i={southWest:{lat:r.lat(),lng:r.lng()},northEast:{lat:n.lat(),lng:n.lng()}};this.props.onBoundsSelected(i,{source:t})}}}},{key:"componentDidMount",value:function(){var t=this,e={center:{lat:this.props.center.lat,lng:this.props.center.lng},zoom:this.props.zoom,zoomControl:!0,minZoom:4,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,position:google.maps.ControlPosition.TOP_CENTER},noClear:!0};this.maps=new google.maps.Map(this.refs.mapContainer,e),this.setState({center:e.center,zoom:e.zoom}),this.maps.addListener("idle",function(){t.props.onBoundsChange(t.getBounds())}),this.maps.addListener("click",function(){return a.A.emit("mapClicked")}),this.cluster=new MarkerClusterer(this.maps,[],{imagePath:"/images/map/m",maxZoom:8}),google.maps.event.addListenerOnce(this.maps,"idle",this.props.onLoad)}},{key:"resize",value:function(){var t=this;setTimeout(function(){google.maps.event.trigger(t.maps,"resize")},300)}},{key:"goTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;this.maps.setCenter(t),this.maps.setZoom(e),google.maps.event.trigger(this.maps,"idle")}},{key:"renderChildren",value:function(){var t=this;return this.refs&&this.refs.mapContainer?r.Children.map(this.props.children,function(e){return e.type===s.A?r.cloneElement(e,{maps:t.maps,onCreate:function(e){t.markers.push(e),t.createCluster()},onDestroy:function(e){t.markers=t.markers.filter(function(t){return e!==t}),t.createCluster(),e.setMap(null)}}):e}):null}},{key:"getBounds",value:function(){return this.maps.getBounds()}},{key:"getCenter",value:function(){return this.maps.getCenter()}},{key:"getZoom",value:function(){return this.maps.getZoom()}},{key:"getMaps",value:function(){return this.maps}},{key:"createCluster",value:function(){if(0===this.props.children.length&&null!==this.cluster&&this.cluster.clearMarkers(),this.props.children.length>0&&this.markers.length===this.props.children.length){if(null!==this.cluster)return this.cluster.clearMarkers(),void this.cluster.addMarkers(this.markers);this.cluster=new MarkerClusterer(this.maps,this.markers,{imagePath:"/images/map/m",maxZoom:7})}}},{key:"showBoundingBox",value:function(t){var e=this;this.rectangle&&this.rectangle.setMap(null),this.rectangle=new google.maps.Rectangle({bounds:{south:t.southWest.lat,west:t.southWest.lng,north:t.northEast.lat,east:t.northEast.lng},map:this.maps,editable:!0,strokeColor:"#2A9D8F",strokeOpacity:.9,strokeWeight:2,fillColor:"#2A9D8F",fillOpacity:.18,clickable:!1,zIndex:1}),this.rectangle.addListener("bounds_changed",function(){e._emitSelectedBoundsFromRectangle("edit")})}},{key:"clearBoundingBox",value:function(){this.rectangle&&(this.rectangle.setMap(null),this.rectangle=null)}},{key:"closeInfoWindow",value:function(){c.A.close()}},{key:"highlightMarker",value:function(t){if(t)if(t.getMap())t.setAnimation(google.maps.Animation.BOUNCE),this._highlightedMarker=t,this._highlightedCluster=null;else if(this.cluster)for(var e=this.cluster.getClusters(),n=0;n<e.length;n++)if(-1!==e[n].getMarkers().indexOf(t)){var r=e[n].clusterIcon_;r&&r.div_&&r.div_.classList.add("cluster-highlighted"),this._highlightedCluster=e[n],this._highlightedMarker=null;break}}},{key:"unhighlightMarker",value:function(t){if(t&&(this._highlightedMarker&&(this._highlightedMarker.setAnimation(null),this._highlightedMarker=null),this._highlightedCluster)){var e=this._highlightedCluster.clusterIcon_;e&&e.div_&&e.div_.classList.remove("cluster-highlighted"),this._highlightedCluster=null}}},{key:"_onOverlayMouseDown",value:function(t){if(this.props.selectionMode){var e=this.refs.mapContainer.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;this.setState({drawing:!0,drawStart:{x:n,y:r},drawCurrent:{x:n,y:r}})}}},{key:"_onOverlayMouseMove",value:function(t){if(this.state.drawing){var e=this.refs.mapContainer.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;this.setState({drawCurrent:{x:n,y:r}})}}},{key:"_onOverlayMouseUp",value:function(t){if(this.state.drawing){var e=this.refs.mapContainer.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top,i=this.state.drawStart;this.setState({drawing:!1,drawStart:null,drawCurrent:null}),this._pixelToLatLngSelection(i,{x:n,y:r},e)}}},{key:"_pixelToLatLngSelection",value:function(t,e,n){var r=this.maps.getBounds();
2if(r){var i=r.getNorthEast(),o=r.getSouthWest(),s=n.width,a=n.height,u=(i.lng()-o.lng())/s,c=(i.lat()-o.lat())/a,l=Math.min(t.x,e.x),f=Math.max(t.x,e.x),d=Math.min(t.y,e.y),p=Math.max(t.y,e.y),h={southWest:{lat:i.lat()-p*c,lng:o.lng()+l*u},northEast:{lat:i.lat()-d*c,lng:o.lng()+f*u}};this.showBoundingBox(h),this.props.onBoundsSelected&&this.props.onBoundsSelected(h,{source:"draw"})}}},{key:"_renderSelectionOverlay",value:function(){if(!this.props.selectionMode)return null;var t=this.state,e=t.drawing,n=t.drawStart,r=t.drawCurrent,i=null;return e&&n&&r&&(i={left:Math.min(n.x,r.x),top:Math.min(n.y,r.y),width:Math.abs(r.x-n.x),height:Math.abs(r.y-n.y)}),(0,l.jsx)("div",{className:"map-selection-overlay",onMouseDown:this._onOverlayMouseDown,onMouseMove:this._onOverlayMouseMove,onMouseUp:this._onOverlayMouseUp,children:i&&(0,l.jsx)("div",{className:"map-selection-box",style:i})})}},{key:"render",value:function(){var t=this.props,e=(t.center,t.zoom,t.onBoundsChange,t.onLoad,t.loadingMap,t.className),n=(t.style,t.selectionMode,t.onBoundsSelected,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,d));return["map-root",e].filter(Boolean).join(" "),(0,l.jsx)("div",{className:this.props.wrapperClassName,style:this.props.wrapperStyle,children:(0,l.jsxs)("div",h(h({ref:"mapContainer"},n),{},{className:this.props.mapClassName,style:h(h({},this.props.mapStyle),{},{position:"relative"}),children:[this.renderChildren(),(0,l.jsx)("div",{className:"map-spinner-container",children:(0,l.jsx)(u.A,{inline:!0,visible:this.props.loadingMap,style:{position:"absolute"}})}),this._renderSelectionOverlay()]}))})}}],i&&y(n.prototype,i),o&&y(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);w.propTypes={center:o().object,zoom:o().number,onBoundsChange:o().func,onLoad:o().func,loadingMap:o().bool,selectionMode:o().bool,onBoundsSelected:o().func,wrapperClassName:o().string,wrapperStyle:o().object,mapClassName:o().string,mapStyle:o().object},w.defaultProps={center:{lat:40.354388,lng:-95.998237},zoom:4,onBoundsChange:function(t){},onLoad:function(){},loadingMap:!1,selectionMode:!1,onBoundsSelected:null,wrapperClassName:"",wrapperStyle:{},mapClassName:"",mapStyle:{}}},74122:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(96540),i=n(5556),o=n.n(i),s=n(40961),a=n(73811),u=n(57061),c=n(72060);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function p(t,e,n){return e=v(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=p(this,e,[t])).marker="",n.colors={"American Chestnut":"https://maps.google.com/mapfiles/ms/icons/green-dot.png",Ash:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png",Hemlock:"https://maps.google.com/mapfiles/ms/icons/red-dot.png","White Oak":"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png",Other:"https://maps.google.com/mapfiles/ms/icons/purple-dot.png"},n.event=u.A.listen("mapClicked",function(){n.callout&&n.callout.close()}),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){var t;this.marker=new google.maps.Marker({title:this.props.title,position:{lat:this.props.position.latitude,lng:this.props.position.longitude},map:this.props.maps}),this.callout=a.A,this.marker.setVisible(this.props.show),this.marker.addListener("click",this.openCallout.bind(this)),t=this.canSeeLocation()?this.colors[this.marker.title]||"https://maps.google.com/mapfiles/ms/icons/purple-dot.png":"/images/map/q-dot.png",this.marker.setIcon(t),this.props.onCreate(this.marker)}},{key:"canSeeLocation",value:function(){return c.A.can("view accurate location")||c.A.owns(this.props.owner_id)||c.A.inGroupWith(this.props.owner_id)}},{key:"openCallout",value:function(){this.callout.close(),this.callout.setContent(this.renderCallout()),this.callout.open(this.props.map,this.marker),this.props.onClick()}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){this.marker.setVisible(t.show)}},{key:"renderCallout",value:function(){var t=document.createElement("div");return s.render(this.props.children,t),t}},{key:"render",value:function(){return null}},{key:"componentWillUnmount",value:function(){this.props.onDestroy(this.marker)}}])&&f(n.prototype,r),i&&f(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);g.propTypes={maps:o().object,position:o().object.isRequired,title:o().string,
2show:o().bool,onCreate:o().func,onClick:o().func,onDestroy:o().func,owner_id:o().number},g.defaultProps={title:"",show:!0,onCreate:function(){},onClick:function(){},onHide:function(){},onDestroy:function(){},owner_id:0}},85469:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(96540),i=n(5556),o=n.n(i),s=n(74848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"close",value:function(){this.props.permanent||this.props.onCloseRequest()}},{key:"render",value:function(){return(0,s.jsxs)("div",{className:"modal is-active",children:[this.props.permanent||!this.props.showClose?null:(0,s.jsx)("button",{className:"close-modal",onClick:this.close.bind(this),style:{zIndex:999999},children:(0,s.jsx)("i",{className:"fa fa-times"})}),(0,s.jsx)("div",{className:"modal-background",onClick:this.close.bind(this)}),this.props.card?this.props.children:(0,s.jsx)("div",{className:"modal-content image-slider",style:{width:"100%",maxWidth:"700px"},children:this.props.children})]})}}])&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);h.propTypes={onCloseRequest:o().func.isRequired,permanent:o().bool,showClose:o().bool,card:o().bool},h.defaultProps={permanent:!1,showClose:!0,card:!1}},40199:(t,e,n)=>{"use strict";n.d(e,{A:()=>v});var r=n(96540),i=n(40961),o=n(5556),s=n.n(o),a=n(74848);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function f(t,e,n){return e=p(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}
2function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=f(this,e,[t])).state={show:!1,hiding:!1,marginTop:window.scrollY>70?-40:0},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,s=[{key:"_remove",value:function(){this.stack&&this.stack.length>0&&document.body.removeChild(this.stack.shift())}},{key:"push",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",o=document.createElement("div");i.render(r.createElement(e,{message:t,type:n,container:o}),o),document.body.appendChild(o),this.stack.length>0&&this._remove(),this.stack.push(o)}}],(o=[{key:"componentDidMount",value:function(){var t=this;this.timer=setTimeout(function(){t.hide()},5e3),setTimeout(function(){t.setState({show:!0})},100),window.addEventListener("scroll",this.handleWindowScroll.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleWindowScroll.bind(this))}},{key:"handleWindowScroll",value:function(){var t=window.scrollY>70?-40:0;this.setState({marginTop:t})}},{key:"hide",value:function(){this.setState({hiding:!0}),clearTimeout(this.timer)}},{key:"render",value:function(){var t="";switch(this.props.type){case"success":case"danger":case"info":case"warning":t="is-".concat(this.props.type);break;default:t="is-success"}t+=this.state.show?" show":"",t+=this.state.hiding?" hiding":"";var e=this.state.marginTop;return(0,a.jsxs)("div",{className:"notification push-notification ".concat(t),style:{marginTop:e+"px"},children:[(0,a.jsx)("button",{type:"button",className:"delete",onClick:this.hide.bind(this)}),this.props.message]})}}])&&c(n.prototype,o),s&&c(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(r.Component);v.propTypes={message:s().string.isRequired,type:s().string,container:s().object.isRequired},v.defaultProps={type:"success"},v.stack=[]},67902:(t,e,n)=>{"use strict";n.d(e,{A:()=>E});var r=n(96540),i=n(5556),o=n.n(i),s=n(94843),a=n(95093),u=n.n(a),c=n(20242),l=n(33616),f=n(70180),d=n(74122),p=n(10985),h=n(40199),v=n(24813),y=n(54625),g=n(72060),m=n(23644),_=n(74848);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function w(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}function x(t,e,n){return e=j(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],j(t).constructor):e.apply(t,n))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(k=function(){return!!t})()}
2function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}var E=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=x(this,e,[t])).state={slide:!1,slideContent:"",flagged:!1,flag_id:0,addedToCollection:!1,observationId:0,loading:!1,confirmation:{id:-1,correct:null},correctMarks:0,incorrectMarks:0,showDetailsModal:!1,showShareLinkModal:!1},n.timeoutWatcher=null,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(e,t),n=e,r=[{key:"componentDidMount",value:function(){var t=this.props.observation;t.flags.length>0&&this.setState({flagged:!0,flag_id:t.flags[0].id}),t.confirmations.length>0&&this.setState({confirmation:t.confirmations[0]}),this.props.showMarks&&this.loadMarks()}},{key:"loadMarks",value:function(){var t=this,e=this.props.observation;if(void 0===e.correct_marks||void 0===e.incorrect_marks){var n=this.props.observation.observation_id;axios.get("/web/confirmations/count/".concat(n)).then(function(e){var n=e.data.data;t.setState({correctMarks:n.correct,incorrectMarks:n.incorrect})}).catch(function(t){console.log(t)})}else this.setState({correctMarks:e.correct_marks,incorrectMarks:e.incorrect_marks})}},{key:"shouldSlide",value:function(t){var e=this.state.slideContent,n=this.state.slide;this.timeoutWatcher&&clearTimeout(this.timeoutWatcher),e!==t?n?this.setState({slideContent:t}):this.setState({slide:!n,slideContent:t}):this.slowCloseSlideContent()}},{key:"slowCloseSlideContent",value:function(){var t=this;this.setState({slide:!1}),this.timeoutWatcher=setTimeout(function(){t.setState({slideContent:""})},500)}},{key:"renderMap",value:function(){var t=this,e=this.props.observation,n=e.images.images?e.images.images[0]:"/images/placeholder.png";return(0,_.jsx)(f.A,{ref:function(e){return t.maps=e},style:{height:"100%",zIndex:"0"},center:{lat:e.location.latitude,lng:e.location.longitude},zoom:4,children:(0,_.jsx)(d.A,{title:e.observation_category,position:e.location,owner_id:e.user_id,show:!0,children:(0,_.jsxs)("div",{className:"media callout",children:[(0,_.jsx)("div",{className:"media-left mr-0",children:(0,_.jsx)("img",{src:n,alt:e.observation_category,style:{width:50,height:"auto"}})}),(0,_.jsxs)("div",{className:"media-content",children:[(0,_.jsx)("div",{className:"mb-0",children:(0,_.jsx)("strong",{children:e.observation_category})}),(0,_.jsxs)("div",{className:"mb-0",children:["By ",e.user.name]}),(0,_.jsx)("a",{href:"/observation/".concat(e.observation_id),children:"See full description"})]})]})})})}},{key:"removeFromCollection",value:function(t,e){var n=this;this.setState({loading:!0}),axios.delete("/web/collection/detach",{params:{collection_id:t.id,observation_id:e.observation_id}}).then(function(e){n.setState({loading:!1}),n.props.onRemovedFromCollection(t)}).catch(function(t){console.log(t.response),n.setState({loading:!1})})}},{key:"renderCollectionForm",value:function(){var t=this,e=this.props.observation;return(0,_.jsxs)("div",{className:"card-slide-container",children:[(0,_.jsx)("h3",{className:"title is-5",children:"Add to Collection"}),this.state.addedToCollection?(0,_.jsxs)("div",{className:"content",children:[(0,_.jsx)("p",{className:"text-success",children:"Observation was successfully added to your collection."}),(0,_.jsxs)("div",{className:"flexbox flex-row flex-v-center flex-space-between",children:[(0,_.jsx)("button",{type:"button",className:"button is-link is-paddingless",onClick:function(){return t.setState({addedToCollection:!1})},children:"Add to Another Collection"}),(0,_.jsx)("button",{className:"button",type:"button",onClick:function(){t.setState({addedToCollection:!1}),t.slowCloseSlideContent()},children:"Done"})]})]}):(0,_.jsx)(c.A,{observationId:e.observation_id,collections:this.props.collections,onSubmit:function(e){t.setState({addedToCollection:!0}
2),t.props.onCollectionCreated(e)}}),e.collections.map(function(n){return(0,_.jsxs)("div",{className:"mt-1 flexbox flex-row flex-v-center flex-space-between",style:{marginBottom:"0.1rem"},children:[(0,_.jsxs)("p",{style:{paddingRight:"5px"},children:['Found in "',n.label,'"']}),(0,_.jsx)("button",{onClick:function(){return t.removeFromCollection(n,e)},className:"button is-small is-danger is-outlined",children:"Remove"})]},"collection_".concat(n.id))})]})}},{key:"renderSlideContent",value:function(t){var e=this,n=this.props.observation;switch(t){case"addToCollection":return this.renderCollectionForm();case"flag":return(0,_.jsxs)("div",{className:"card-slide-container",children:[(0,_.jsx)("h3",{className:"title is-5",children:"Flag Observation"}),(0,_.jsx)(l.A,{observationId:n.observation_id,onSubmit:function(t){e.setState({flagged:!0,flag_id:t.id}),e.props.onFlagChange("added",t)},onUndo:function(t){e.setState({flagged:!1,flag_id:0}),e.props.onFlagChange("removed",t)},flagged:this.state.flagged,flagId:this.state.flag_id})]});case"map":return this.renderMap();default:return null}}},{key:"confirm",value:function(t,e){var n=this;if(this.state.confirmation.correct===t)return this.deleteConfirmation(this.state.confirmation),h.A.push("Unmarked observation","warning"),void(t?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1}));this.setState({confirmation:{id:0,correct:t}}),-1!==this.state.confirmation.id&&(this.state.confirmation.correct?this.setState({correctMarks:this.state.correctMarks-1}):this.setState({incorrectMarks:this.state.incorrectMarks-1})),axios.post("/admin/web/confirmations",{observation_id:e.observation_id,correct:t}).then(function(t){var e=t.data.data;n.setState({confirmation:e});var r=e.correct?"correct":"incorrect";h.A.push("Marked observation as ".concat(r," species"),e.correct?"success":"danger"),e.correct?n.setState({correctMarks:n.state.correctMarks+1}):n.setState({incorrectMarks:n.state.incorrectMarks+1})}).catch(function(t){console.log(t.response)})}},{key:"deleteConfirmation",value:function(t){t.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/".concat(t.id)).then(function(t){}).catch(function(t){console.log(t.response)}))}},{key:"_renderMarks",value:function(){if(this.props.showMarks)return(0,_.jsxs)("div",{className:"card-footer marks-section",children:[(0,_.jsxs)("div",{className:"card-footer-item",style:{zIndex:0},children:[(0,_.jsx)("span",{children:this.state.incorrectMarks}),(0,_.jsx)("span",{className:"icon ml-0 mr-0",children:(0,_.jsx)("b",{className:"fa fa-times text-danger"})}),(0,_.jsx)("span",{children:"Marks"})]}),(0,_.jsxs)("div",{className:"card-footer-item",style:{zIndex:0},children:[(0,_.jsx)("span",{children:this.state.correctMarks}),(0,_.jsx)("span",{className:"icon ml-0 mr-0",children:(0,_.jsx)("b",{className:"fa fa-check text-success"})}),(0,_.jsx)("span",{children:"Marks"})]})]})}},{key:"getAddress",value:function(t){var e=t.location.address,n={addressLine1:"",addressLine2:"",address:""};return"object"!==b(e)||Array.isArray(e)||null===e?n:{addressLine1:(e=(e=e.formatted).split(",")).shift(),addressLine2:e.join(","),address:e}}},{key:"render",value:function(){var t=this,e=this.props.observation,n=e.observation_category+("Other"===e.observation_category?" (".concat(e.meta_data.otherLabel,")"):""),r=this.state.confirmation,i=this.getAddress(e),o=i.address,a=i.addressLine1,c=i.addressLine2;return(0,_.jsxs)("div",{className:"observation-card-container",children:[(0,_.jsxs)("div",{className:"card",style:{opacity:this.props.loading?.1:1},children:[(0,_.jsxs)("header",{className:"card-header",children:[(0,_.jsx)(y.N_,{to:"/observation/".concat(e.observation_id),className:"card-header-title text-ellipsis",title:"Visit Observation Page",children:n}),g.A.can("confirm species")?(0,_.jsx)("a",{className:"card-header-icon is-clear".concat(-1===r.id||r.correct?"":" is-active"),onClick:function(){return t.confirm(!1,e)},children:(0,_.jsx)(s.A,{label:-1===r.id||r.correct?"Mark as incorrect species":"Undo",hideOnClick:!1,children:(0,_.jsx)("span",{className:"icon",children:(0,_.jsx)("i",{className:"fa fa-times"})})})}
2):null,g.A.can("confirm species")?(0,_.jsx)("a",{className:"card-header-icon is-clear".concat(-1!==r.id&&r.correct?" is-active":""),onClick:function(){return t.confirm(!0,e)},children:(0,_.jsx)(s.A,{label:-1!==r.id&&r.correct?"Undo":"Confirm species",hideOnClick:!1,children:(0,_.jsx)("span",{className:"icon",children:(0,_.jsx)("i",{className:"fa fa-check"})})})}):null]}),(0,_.jsxs)("div",{className:"relative-block",children:[(0,_.jsx)(p.A,{visible:this.state.loading}),(0,_.jsx)("div",{className:"has-bg-image relative-block is-positioned-relatively",children:(0,_.jsx)("div",{className:"card-image img-bg-zoom",style:{backgroundImage:"url(".concat(e.thumbnail||"/images/placeholder.png",")")},children:(0,_.jsxs)("a",{className:"sidebar-img-overlay flexbox flex-v-center flex-h-center flex-column z-10",onClick:function(){t.setState({showDetailsModal:!0})},children:[(0,_.jsx)("i",{className:"fa fa-photo"}),(0,_.jsx)("div",{className:"has-text-centered",children:"Click for More Details"})]})})}),this._renderMarks(),(0,_.jsx)("div",{className:"card-content",children:(0,_.jsxs)("div",{className:"content",children:[this.props.owner?null:(0,_.jsxs)("span",{children:["By ",e.user.name,(0,_.jsx)("br",{})]}),(0,_.jsx)("a",{onClick:function(e){e.preventDefault(),t.setState({showDetailsModal:!0})},children:"Quick View"}),(0,_.jsx)("br",{}),e.custom_id?(0,_.jsxs)("div",{children:[(0,_.jsxs)("small",{children:[(0,_.jsx)("strong",{children:"Custom ID"})," ",e.custom_id]}),(0,_.jsx)("br",{})]}):(0,_.jsx)("div",{children:(0,_.jsxs)("small",{children:[(0,_.jsx)("strong",{children:"ID"})," ",e.mobile_id]})}),this.props.owner||g.A.can("view accurate location")?(0,_.jsxs)("small",{className:"no-wrap",children:[e.location.latitude,", ",e.location.longitude,(0,_.jsx)("br",{})]}):null,(0,_.jsx)("small",{children:u()(e.date).format("MMM, D YYYY H:m A Z")}),""!==o?(0,_.jsxs)("div",{className:"text-ellipsis",title:o,children:[(0,_.jsxs)("small",{children:[(0,_.jsx)("b",{children:"Near"})," ",a]}),(0,_.jsx)("br",{}),(0,_.jsx)("small",{style:{marginLeft:"35px"},children:c})]}):(0,_.jsx)("div",{style:{height:48},children:"Address is unavailable"})]})}),(0,_.jsx)("div",{className:"card-slide-content".concat(this.state.slide?" show":""),children:(0,_.jsxs)("div",{className:"p-1 relative-block",children:[(0,_.jsx)("button",{className:"close button",type:"button",onClick:this.slowCloseSlideContent.bind(this),children:(0,_.jsx)("i",{className:"fa fa-times"})}),this.renderSlideContent(this.state.slideContent)]})})]}),(0,_.jsxs)("footer",{className:"card-footer card-footer-z-index",children:[(0,_.jsx)("a",{className:"card-footer-item is-paddingless",onClick:function(){return t.shouldSlide("addToCollection")},children:(0,_.jsx)(s.A,{label:"Add to Collection",style:{padding:"0.75rem"},children:(0,_.jsx)("span",{className:"icon is-small is-marginless",children:(0,_.jsx)("i",{className:"fa fa-star"})})})}),(0,_.jsx)("a",{className:"card-footer-item is-paddingless",onClick:function(){return t.shouldSlide("map")},children:(0,_.jsx)(s.A,{label:"Show on Map",style:{padding:"0.75rem"},children:(0,_.jsx)("span",{className:"icon is-small is-marginless",children:(0,_.jsx)("i",{className:"fa fa-map"})})})}),g.A.can("contact users")&&!this.props.owner?(0,_.jsx)("a",{className:"card-footer-item is-paddingless",onClick:function(){t.props.onEmailRequest(e)},children:(0,_.jsx)(s.A,{label:"Contact Submitter",style:{padding:"0.75rem"},children:(0,_.jsx)("span",{className:"icon is-small is-marginless",children:(0,_.jsx)("i",{className:"fa fa-envelope"})})})}):null,this.props.owner?null:(0,_.jsx)("a",{className:"card-footer-item is-paddingless",onClick:function(){return t.shouldSlide("flag")},children:(0,_.jsx)(s.A,{label:"Flag as Inappropriate",style:{padding:"0.75rem"},children:(0,_.jsx)("span",{className:"icon is-small is-marginless",children:(0,_.jsx)("i",{className:"fa fa-flag".concat(this.state.flagged?" text-danger":"")})})})}),this.props.owner?(0,_.jsx)("a",{className:"card-footer-item is-paddingless",onClick:function(){return t.setState({showShareLinkModal:!0})},children:(0,_.jsx)(s.A,{label:"Share",style:{padding:"0.75rem"},children:(0,_.jsx)("span",{className:"icon is-small is-marginless",children:(0,_.jsx)("i",{className:"fa fa-share"})})})}):null]})]}
2),this.state.showDetailsModal?(0,_.jsx)(v.A,{observation:e,onCloseRequest:function(){return t.setState({showDetailsModal:!1})},visible:!0}):null,this.state.showShareLinkModal?(0,_.jsx)(m.A,{observationID:this.props.observation.observation_id,onCloseRequest:function(){return t.setState({showShareLinkModal:!1})},visible:!0}):null]})}},{key:"createUrl",value:function(t){var e=window.location;return e.port?"".concat(e.protocol,"//").concat(e.hostname,":").concat(e.port,"/observation/").concat(t):"".concat(e.protocol,"//").concat(e.hostname,"/observation/").concat(t)}}],r&&S(n.prototype,r),i&&S(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);E.propTypes={observation:o().object.isRequired,onFlagChange:o().func,onCollectionCreated:o().func,onRemovedFromCollection:o().func,onEmailRequest:o().func,collections:o().array,loading:o().bool,showMarks:o().bool,owner:o().bool,marks:o().object},E.defaultProps={onFlagChange:function(){},onCollectionCreated:function(t){},onEmailRequest:function(t){},onRemovedFromCollection:function(t){},collections:[],loading:!1,showMarks:!1,owner:!1,marks:{}}},31686:(t,e,n)=>{"use strict";n.d(e,{A:()=>Q});var r=n(96540),i=n(5556),o=n.n(i),s=n(70180),a=n(74122),u=n(85469),c=n(78074),l=n(95093),f=n.n(l),d=n(93118),p=n(33616),h=n(20242),v=n(72632),y=n(9170),g=n(72060),m=n(57061),_=n(54625),b=n(43987),S=n(23644),w=n(74848);function x(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||j(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||j(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){if(t){if("string"==typeof t)return M(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function E(t){var e=t.statusUpdates,n=t.statusUpdatesLoading,i=(t.showAllStatusUpdates,t.expandedStatusUpdateIds),o=(t.isStatusUpdateTextTruncated,t.onToggleExpanded),s=t.onEdit,a=t.onDelete,u=(t.onToggleShowAll,t.containerRef),c=t.currentObservationId,l=g.A.admin()||g.A.scientist(),d=l,p=k((0,r.useState)("desc"),2),h=p[0],v=p[1],y=e.filter(function(t){return!t.scientists_only||d}),m=function(t){var e=f()(t);return e.isValid()?e.valueOf():0},_=x(y).sort(function(t,e){var n=m(null==t?void 0:t.date),r=m(null==e?void 0:e.date);if(n!==r)return"desc"===h?r-n:n-r;var i=m(null==t?void 0:t.created_at),o=m(null==e?void 0:e.created_at);if(i!==o)return"desc"===h?o-i:i-o;var s=Number((null==t?void 0:t.id)||0),a=Number((null==e?void 0:e.id)||0);return"desc"===h?a-s:s-a});return(0,w.jsx)("div",{className:"obs-status-updates-container",ref:u,children:(0,w.jsxs)("div",{className:"obs-update-table-wrapper",children:[(0,w.jsxs)("div",{className:"obs-update-table__header",children:[(0,w.jsxs)("div",{className:"obs-update-table__hcol obs-update-table__hcol--date",onClick:function(){return v(function(t){return"desc"===t?"asc":"desc"})},role:"button",tabIndex:0,onKeyDown:function(t){return("Enter"===t.key||" "===t.key)&&v(function(t){return"desc"===t?"asc":"desc"})},children:[(0,w.jsx)("span",{children:"Date"}),(0,w.jsx)("i",{className:"fa fa-chevron-".concat("desc"===h?"down":"up"," obs-update-table__sort-icon")})]}),(0,w.jsx)("div",{className:"obs-update-table__hcol obs-update-table__hcol--status",children:"Status"}),(0,w.jsx)("div",{className:"obs-update-table__hcol obs-update-table__hcol--chevron","aria-hidden":"true"})]}),(0,w.jsx)("div",{className:"obs-update-table__body",children:n?(0,w.jsx)("p",{className:"obs-status-loading obs-status-empty-msg",children:"Loading..."}):0===y.length?(0,w.jsx)("p",{className:"obs-status-loading obs-status-empty-msg",children:"No status updates or repeat observations have been recorded for this observation."}):_.map(function(t){var e,n,r,u=i.includes(t.id),d=(t.notes||"").trim(),p=t.repeat_observation_id&&t.status&&0===Number(t.status.id),h=String((null==t||null===(e=t.status)||void 0===e?void 0:e.text)||"").toLowerCase(),v=String((null==t?void 0:t.notes)||"").toLowerCase(),y=p&&(!0===t.is_initial_repeat_link||h.includes("initial observation")||v.includes("is the initial observation")),g=t.observation_mobile_id||t.observation_id,m=t.repeat_observation_mobile_id||t.repeat_observation_id,_=t.status?t.status.text:"â",b=p?y?t.observation_id:t.repeat_observation_id:null,S=Boolean(p&&null!==b&&Number(c)===Number(b)),x=Boolean(p&&!S),k=l&&p,j=l&&!p,M=!p;return(0,w.jsxs)("div",{className:"obs-update-row".concat(p?" obs-update-row--repeat":""),children:[(0,w.jsxs)("div",{className:"obs-update-row__cells".concat(x?" obs-update-row__cells--other-obs":"").concat(S?" obs-update-row__cells--current-obs":""),onClick:x?function(){window.location.href="/observation/".concat(b)}:M?function(){return o(t.id)}:void 0,children:[(0,w.jsx)("div",{className:"obs-update-row__col obs-update-row__col--date".concat(S?" obs-update-row__col--bold":""),children:(n=t.date,r=f()(n),r.isValid()?r.format("MMM D, YYYY"):"â")}),(0,w.jsxs)("div",{className:"obs-update-row__col obs-update-row__col--status".concat(S?" obs-update-row__col--bold":""),children:[function(){if(!p)return(0,w.jsx)("span",{children:_});var e,n,r=y?t.observation_id:t.repeat_observation_id,i=y?"Initial Observation":"Repeat Observation",o=(e=r,(n=String((y?g:m)||"").trim())?Number(c)===Number(e)?(0,w.jsx)("span",{className:"obs-repeat-link-status__current",children:n}):(0,w.jsx)("a",{className:"obs-repeat-link-status__link",href:"/observation/".concat(e),onClick:function(t){return t.stopPropagation()},children:n}):null),s=o?"".concat(i," - "):i;return(0,w.jsxs)("span",{className:"obs-repeat-link-status",children:[s,o]})}(),t.scientists_only&&(0,w.jsxs)("span",{className:"obs-update-row__scientists-badge",children:[(0,w.jsx)("i",{className:"fa fa-flask"}),(0,w.jsx)("span",{className:"obs-update-row__scientists-label",children:"Scientists Only"})]})]}),(0,w.jsx)("div",{className:"obs-update-row__col obs-update-row__col--action",children:p&&k?(0,w.jsxs)("button",{type:"button",className:"obs-update-row__unlink-btn",title:"Decouple linked observations",onClick:function(e){e.stopPropagation(),a(t)},children:[(0,w.jsx)("i",{className:"fa fa-chain-broken","aria-hidden":"true"}),(0,w.jsx)("span",{className:"is-sr-only",children:"Decouple linked observations"})]}):M?(0,w.jsx)("i",{className:"fa fa-chevron-".concat(u?"up":"down"," obs-update-row__chevron")}):null})]}),M&&u&&(0,w.jsxs)("div",{className:"obs-update-row__dropdown",children:[(0,w.jsxs)("div",{className:"obs-update-row__author",children:[(0,w.jsx)("i",{className:"fa fa-user-o obs-update-card__meta-icon"}),(0,w.jsx)("span",{children:t.user?t.user.name:"â"})]}),(0,w.jsx)("div",{className:"obs-update-row__note",children:d?(0,w.jsx)("p",{className:"obs-update-note obs-update-note--expanded",children:t.notes}):(0,w.jsx)("p",{className:"obs-update-note--empty",children:"No notes"})}),j&&(0,w.jsxs)("div",{className:"obs-update-card__actions",children:[(0,w.jsxs)("button",{type:"button",className:"button is-small is-outlined",onClick:function(e){e.stopPropagation(),s(t)},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-pencil"})}),(0,w.jsx)("span",{children:"Edit"})]}),(0,w.jsxs)("button",{type:"button",className:"button is-small is-outlined is-danger",onClick:function(e){e.stopPropagation(),a(t)},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-tras
2h"})}),(0,w.jsx)("span",{children:"Delete"})]})]})]})]},t.id)})})]})})}E.propTypes={statusUpdates:o().array.isRequired,statusUpdatesLoading:o().bool.isRequired,showAllStatusUpdates:o().bool.isRequired,expandedStatusUpdateIds:o().array.isRequired,isStatusUpdateTextTruncated:o().func.isRequired,onToggleExpanded:o().func.isRequired,onEdit:o().func.isRequired,onDelete:o().func.isRequired,onToggleShowAll:o().func.isRequired,containerRef:o().func,currentObservationId:o().oneOfType([o().string,o().number])},E.defaultProps={containerRef:function(){}};n(24813);var N=n(94843),O=n(40199);function C(t,e){return I(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||A(t,e)||T()}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(t){if(Array.isArray(t))return t}function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function D(t){return function(t){if(Array.isArray(t))return P(t)}(t)||z(t)||A(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){if(t){if("string"==typeof t)return P(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function z(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach(function(e){U(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function U(t,e,n){return(e=K(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,K(r.key),r)}}function K(t){var e=function(t,e){if("object"!=L(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==L(e)?e:e+""}function Y(t,e,n){return e=H(e),function(t,e){if(e&&("object"==L(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,q()?Reflect.construct(e,n||[],H(t).constructor):e.apply(t,n))}function q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(q=function(){return!!t})()}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}var G={status_id:"",date:f()().format("YYYY-MM-DD"),notes:"",scientists_only:!1},V={images:"General Photo",seeds:"Seed Photo",flowers:"Flower Photo"},Q=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Y(this,e,[t])).linkCandidatesRequestId=0,n.pendingLinkDropdownField="",n.state={activeTab:"photos",userHasSelectedTab:!1,selectedUnit:window.TreeSnap.units||"US",observation:null,markers:[],center:{lat:40.354388,lng:-95.998237},zoom:4,deleted:!1,confirmation:{id:-1,correct:null},correctMarks:0,incorrectMarks:0,correctMarksUsers:[],incorrectMarksUsers:[],collections:[],showControlModal:!1,controlModalContent:"",showShareLinkModal:!1,showSubObservationModal:!1,showModal:!1,showEmail
2:!1,subObservationKey:null,selectedImageIndex:0,contact:{to:{user_id:0,name:""},from:""},statusUpdates:[],statusUpdatesLoading:!1,availableStatuses:[],showAllStatusUpdates:!1,expandedStatusUpdateIds:[],showCreateModal:!1,createForm:R({},G),createSubmitting:!1,showLinkRepeatModal:!1,linkForm:{initial_observation_id:"",repeat_observation_id:"",initial_observation_collected_at:"",repeat_observation_collected_at:"",initial_observation_is_repeat:!1,repeat_observation_is_repeat:!1,initial_observation_has_repeats:!1,repeat_observation_has_repeats:!1,initial_observation_input:"",repeat_observation_input:"",initial_observation_search_input:"",repeat_observation_search_input:""},linkCandidates:[],linkSearchLoading:!1,linkSearchLoadingMore:!1,linkCandidatesPage:1,linkCandidatesHasMore:!1,linkCandidatesTotal:0,linkCandidatesQuery:"",activeLinkDropdownField:"",linkSubmitting:!1,showEditModal:!1,editingUpdate:null,editForm:{status_id:"",date:"",notes:"",scientists_only:!1},editSubmitting:!1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(e,t),n=e,r=[{key:"componentDidMount",value:function(){var t=this.props.observation;this.setupObservation(t),this.loadMarks(),this.loadCollections(),this.loadStatusUpdates(t),t.confirmations.length>0&&this.setState({confirmation:t.confirmations[0]}),g.A.authenticated()&&this.loadAvailableStatuses(),g.A.can("contact users")&&this.loadContactInfo(t),window.fixHeight&&window.fixHeight()}},{key:"componentDidUpdate",value:function(t){t.observation!==this.props.observation&&(this.setupObservation(this.props.observation),this.loadStatusUpdates(this.props.observation))}},{key:"loadContactInfo",value:function(t){var e=this;axios.get("/web/user").then(function(n){var r=n.data;e.setState({contact:{from:r.data.email,to:{user_id:t.user.id,name:t.user.name}}})}).catch(console.log)}},{key:"loadStatusUpdates",value:function(t){var e=this,n=t.observation_id||t.id;this.setState({statusUpdatesLoading:!0}),axios.get("/web/observation/".concat(n,"/status-updates")).then(function(t){var n=t.data,r=e.sortStatusUpdates(n.data.map(function(t){return e.normalizeStatusUpdate(t)}));e.setState({statusUpdates:r,statusUpdatesLoading:!1})}).catch(function(t){console.log(t),e.setState({statusUpdatesLoading:!1})})}},{key:"loadAvailableStatuses",value:function(){var t=this;axios.get("/web/statuses").then(function(e){var n=e.data;t.setState({availableStatuses:n.data})}).catch(console.log)}},{key:"loadCollections",value:function(){var t=this;this.props.showControls&&axios.get("/web/collections/customizable/1").then(function(e){var n=e.data;t.setState({collections:n.data})}).catch(console.log)}},{key:"loadMarks",value:function(){var t=this,e=this.props.observation;void 0===e.correct_marks||void 0===e.incorrect_marks?axios.get("/web/confirmations/count/".concat(e.observation_id)).then(function(e){var n=e.data.data;t.setState({correctMarks:n.correct,incorrectMarks:n.incorrect,correctMarksUsers:D(n.correct_users),incorrectMarksUsers:D(n.incorrect_users)})}).catch(console.log):this.setState({correctMarks:e.correct_marks,incorrectMarks:e.incorrect_marks})}},{key:"setupObservation",value:function(t){var e=this;void 0!==t.location&&(t.latitude=t.location.latitude,t.longitude=t.location.longitude,t.collection_date=f()(t.date).format("LLL"));var n=t.observation_id||t.id||"",r=this.getObservationLinkDisplayValue(t);this.setState({markers:[{user_id:t.user_id,image:t.images.images?t.images.images[0]:"",position:{latitude:t.latitude,longitude:t.longitude}}],center:{lat:t.latitude,lng:t.longitude},zoom:4,loading:!1,collections:this.state.collections,observation:t,activeTab:"photos",userHasSelectedTab:!1,linkForm:{initial_observation_id:n?Number(n):"",repeat_observation_id:"",initial_observation_collected_at:t.date||t.collection_date||"",repeat_observation_collected_at:"",initial_observation_is_repeat:Boolean(t.original_observation_id),repeat_observation_is_repeat:!1,initial_observation_has_repeats:!1,repeat_observation_has_repeats:!1,initial_observation_input:r,repeat_observation_input:"",initial_observation_search_input:"",repeat_observation_search_input:""}}),setTimeout(function(){e.map&&e.map.goTo({lat:t.latitude,lng:t.longitude},4)},500)}},{key:"normalizeStatusUpdateDate",value:function(t){if(!t)return"";if(f().isMoment(t))return t.format("YYYY-MM-DD");if(t instanceof Date&&!Number.isNaN(t.valueOf()))return f()(t).format("YYYY-MM-DD");if("string"==typeof t){var e=t.trim().match(/^(\d{4}-\d{2}-\d{2})/);if(e)return e[1];var n=f()(t.trim(),f().ISO_8601,!0);if(n.isValid())return n.format("YYYY-MM-DD");var r=f()(t.trim());if(r.isValid())return r.format("YYYY-MM-DD")}return""}},{key:"normalizeStatusUpdate",value:function(t){return t?R({},t):t}},{key:"parseDateMoment",value:function(t){if(!t)return null;if(f().isMoment(t))return t.clone();if(t instanceof Date&&!Number.isNaN(t.valueOf()))return f()(t);var e=f()(t);return e.isValid()?e:null}},{key:"formatStatusDate",value:function(t){var e=this.parseDateMoment(t);return e?e.format("MMM D, YYYY"):"â"}},{key:"parseDateTimeMoment",value:function(t){if(!t)return null;if(f().isMoment(t))return t.clone();var e=f()(t);return e.isValid()?e:null}},{key:"getApiErrorMessage",value:function(t,e){var n,r=(null==t||null===(n=t.response)||void 0===n?void 0:n.data)||{},i=null==r?void 0:r.errors;if(i&&"object"===L(i)){var o=Object.values(i).flat().find(function(t){return"string"==typeof t&&t.trim().length>0});if(o)return o}return"string"==typeof(null==r?void 0:r.message)&&r.message.trim().length>0?r.message:"string"==typeof(null==r?void 0:r.error)&&r.error.trim().length>0?r.error:e}},{key:"getObservationStatusMinDate",value:function(t){if(!t)return"";var e=this.normalizeStatusUpdateDate(t.date||t.collection_date);return e||this.normalizeStatusUpdateDate(t.collection_date)||""}},{key:"sortStatusUpdates",value:function(t){var e=this;return D(t).sort(function(t,n){var r=e.parseDateTimeMoment(t.created_at),i=e.parseDateTimeMoment(n.created_at);if(r&&i){var o=i.valueOf()-r.valueOf();if(0!==o)return o}if(!r&&i)return 1;if(r&&!i)return-1;var s=e.parseDateMoment(t.date),a=e.parseDateMoment(n.date);if(s&&a){var u=a.valueOf()-s.valueOf();if(0!==u)return u}
2return!s&&a?1:s&&!a?-1:void 0!==t.id&&void 0!==n.id?Number(n.id)-Number(t.id):0})}},{key:"getNotesRemaining",value:function(t){return 150-(t||"").length}},{key:"statusAppliesToCategory",value:function(t,e){return Boolean(t&&(t.species===e||"Any"===t.species))}},{key:"isRepeatObservationStatus",value:function(t){return Boolean(t&&"string"==typeof t.text&&["Initial Observation","Repeat Observation Listed"].includes(t.text)&&"Any"===t.species)}},{key:"isRepeatLinkStatusUpdate",value:function(t){var e;return Boolean((null==t?void 0:t.repeat_observation_id)&&0===Number(null==t||null===(e=t.status)||void 0===e?void 0:e.id))}},{key:"getLinkedObservationEntries",value:function(t){var e=this,n={};t.forEach(function(t){var r;if(e.isRepeatLinkStatusUpdate(t)){var i=String((null==t?void 0:t.notes)||"").toLowerCase(),o=String((null==t||null===(r=t.status)||void 0===r?void 0:r.text)||"").toLowerCase(),s=!0===t.is_initial_repeat_link||i.includes("is the initial observation")||o.includes("initial observation"),a=Number(s?t.observation_id:t.repeat_observation_id);if(a){var u=s?t.observation_mobile_id||t.observation_id:t.repeat_observation_mobile_id||t.repeat_observation_id,c=n[a];n[a]={id:a,mobileId:u||a,isInitial:Boolean((null==c?void 0:c.isInitial)||s)}}}});var r=Object.values(n),i=r.filter(function(t){return t.isInitial}).sort(function(t,e){return t.id-e.id}),o=r.filter(function(t){return!t.isInitial}).sort(function(t,e){return t.id-e.id});return[].concat(D(i),D(o))}},{key:"hasObservationAsInitialWithRepeats",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.statusUpdates,n=Number(t);if(!n)return!1;var r=this.getLinkedObservationEntries(e),i=r.some(function(t){return Number(t.id)===n&&t.isInitial}),o=r.some(function(t){return Number(t.id)!==n});return i&&o}},{key:"getStatusesForCategory",value:function(t){var e=this;return this.state.availableStatuses.filter(function(n){return e.statusAppliesToCategory(n,t)&&!e.isRepeatObservationStatus(n)})}},{key:"getLatestVisibleUpdate",value:function(t){var e=this,n=g.A.admin()||g.A.scientist();return t.filter(function(t){return!t.scientists_only||n}).reduce(function(t,n){if(!t)return n;var r=e.parseDateMoment(t.date),i=e.parseDateMoment(n.date);return i?r?i.isAfter(r)?n:t:n:t},null)}},{key:"resolveStatus",value:function(t,e){return t.status?t.status:t.status_id&&e.find(function(e){return String(e.id)===String(t.status_id)})||null}},{key:"getTabClass",value:function(t){return t===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.activeTab)?"is-active":""}},{key:"selectTab",value:function(t){this.setState({activeTab:t,userHasSelectedTab:!0})}},{key:"getAccuracy",value:function(){return-2===parseInt(this.state.observation.location.accuracy)?"Entered manually by the user":g.A.can("view accurate location")||g.A.owns(this.state.observation)?"Within ".concat(this.state.observation.location.accuracy," meter radius"):"Within 5 miles radius"}},{key:"getObservationImages",value:function(){var t=this.state.observation.images,e=0;return Object.keys(t).flatMap(function(n){return t[n].map(function(t){return{original:t,key:n,index:e++}})})}},{key:"getImageLabel",value:function(t){var e;if(t.key&&t.key.startsWith("Photo Test_")){var n=parseInt(t.key.split("_")[1],10);return"Photo Test - Tree ".concat(n+1)}return null!==(e=V[t.key])&&void 0!==e?e:t.key}},{key:"isStatusUpdateTextTruncated",value:function(t){var e=((null==t?void 0:t.notes)||"").trim();return e.includes("\n")||e.length>140}},{key:"openStatusUpdatesFromHeader",value:function(t){var e=this;t&&this.setState(function(n){var r={};if(e.isStatusUpdateTextTruncated(t)){var i=n.expandedStatusUpdateIds||[];r.expandedStatusUpdateIds=i.includes(t.id)?i:[].concat(D(i),[t.id])}return r},function(){e.statusUpdatesContainer&&(e.statusUpdatesContainer.scrollTop=0)})}},{key:"toggleStatusUpdateExpanded",value:function(t){this.setState(function(e){var n=e.expandedStatusUpdateIds;return{expandedStatusUpdateIds:n.includes(t)?n.filter(function(e){return e!==t}):[].concat(D(n),[t])}})}},{key:"openEditModal",value:function(t){this.setState({showEditModal:!0,editingUpdate:t,editForm:{status_id:t.status?String(t.status.id):"",date:this.normalizeStatusUpdateDate(t.date),notes:t.notes||"",scientists_only:t.scientists_only||!1}})}},{key:"submitCreateStatusUpdate",value:function(){var t=this,e=this.state,n=e.createForm,r=e.observation,i=e.availableStatuses,o=r.observation_id||r.id,s=this.getObservationStatusMinDate(r);s&&n.date&&n.date<s?O.A.push("Date must be on or after ".concat(this.formatStatusDate(s),"."),"danger"):(this.setState({createSubmitting:!0}),axios.post("/web/status-update",{observation_id:o,status_id:n.status_id,date:n.date,notes:n.notes,scientists_only:n.scientists_only}).then(function(e){var n=e.data,r=t.normalizeStatusUpdate(n.data);r.user||(r.user=g.A._user),r.status=t.resolveStatus(r,i),t.setState(function(e){return{statusUpdates:t.sortStatusUpdates([].concat(D(e.statusUpdates),[r])),showCreateModal:!1,createSubmitting:!1,createForm:R({},G)}}),O.A.push("Status update created successfully.","success")}
2).catch(function(e){console.log(e),t.setState({createSubmitting:!1}),O.A.push("Failed to create status update.","danger")}))}},{key:"submitEditStatusUpdate",value:function(){var t=this,e=this.state,n=e.editForm,r=e.editingUpdate,i=e.availableStatuses,o=this.getObservationStatusMinDate(this.state.observation);o&&n.date&&n.date<o?O.A.push("Date must be on or after ".concat(this.formatStatusDate(o),"."),"danger"):(this.setState({editSubmitting:!0}),axios.put("/web/status-update/".concat(r.id),{status_id:n.status_id,date:n.date,notes:n.notes,scientists_only:n.scientists_only}).then(function(e){var n=e.data,o=t.normalizeStatusUpdate(n.data);o.user||(o.user=r.user||g.A._user),o.status=t.resolveStatus(o,i),t.setState(function(e){return{statusUpdates:t.sortStatusUpdates(e.statusUpdates.map(function(t){return t.id===o.id?o:t})),showEditModal:!1,editingUpdate:null,editSubmitting:!1}}),O.A.push("Status update saved.","success")}).catch(function(e){console.log(e),t.setState({editSubmitting:!1}),O.A.push("Failed to save status update.","danger")}))}},{key:"deleteStatusUpdate",value:function(t){var e,n,r,i=this,o=Boolean((null==t?void 0:t.repeat_observation_id)&&0===Number(null==t||null===(e=t.status)||void 0===e?void 0:e.id));if(confirm(o?"Are you sure you want to decouple these linked observations? This will unlink the two observations.":"Are you sure you want to delete this status update? This action cannot be undone.")){var s=(null===(n=this.state.observation)||void 0===n?void 0:n.observation_id)||(null===(r=this.state.observation)||void 0===r?void 0:r.id);axios.delete("/web/status-update/".concat(t.id),{params:o&&s?{current_observation_id:s}:{}}).then(function(e){var n=e.data,r=(null==n?void 0:n.data)||{},o=parseInt(r.unlinked_observation_id,10);i.setState(function(e){var n,r;return{expandedStatusUpdateIds:e.expandedStatusUpdateIds.filter(function(e){return e!==t.id}),observation:o&&Number((null===(n=e.observation)||void 0===n?void 0:n.observation_id)||(null===(r=e.observation)||void 0===r?void 0:r.id))===o?R(R({},e.observation),{},{original_observation_id:null}):e.observation}}),i.loadStatusUpdates(i.state.observation),O.A.push(r.message||"Status update deleted.","warning")}).catch(function(t){var e;console.log(t);var n=(null==t||null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.message)||"Failed to delete status update.";O.A.push(n,"danger")})}}},{key:"loadLinkCandidates",value:function(){var t,e,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=++this.linkCandidatesRequestId,a=(null===(t=this.state.observation)||void 0===t?void 0:t.observation_id)||(null===(e=this.state.observation)||void 0===e?void 0:e.id);return this.setState({linkSearchLoading:!o,linkSearchLoadingMore:o}),axios.get("/web/observations/link-candidates",{params:{q:r,current_observation_id:a,page:i,per_page:25}}).then(function(t){var e=t.data;if(s!==n.linkCandidatesRequestId)return{ignored:!0};var a=(null==e?void 0:e.data)||{},u=Array.isArray(a)?a:Array.isArray(a.items)?a.items:[],c=Array.isArray(a)?u.length>=25:Boolean(a.has_more),l=Array.isArray(a)?u.length:Number.isFinite(Number(a.total_count))?Number(a.total_count):u.length;return n.setState(function(t){return{linkCandidates:o?[].concat(D(t.linkCandidates),D(u)).filter(function(t,e,n){return n.findIndex(function(e){return e.id===t.id})===e}):u,linkCandidatesPage:i,linkCandidatesHasMore:c,linkCandidatesTotal:l,linkCandidatesQuery:r,linkSearchLoading:!1,linkSearchLoadingMore:!1}}),{ignored:!1,page:i,query:r}}).catch(function(t){return s!==n.linkCandidatesRequestId?{ignored:!0}:(console.log(t),n.setState({linkSearchLoading:!1,linkSearchLoadingMore:!1}),{ignored:!1,error:t})})}},{key:"getObservationLinkDisplayValue",value:function(t){var e,n;return t?this.formatLinkCandidateLabel({id:t.id||t.observation_id,mobile_id:t.mobile_id,custom_id:t.custom_id,custom_ids:Array.isArray(t.custom_ids)?t.custom_ids:Array.isArray(t.custom_identifiers)?t.custom_identifiers.map(function(t){return null==t?void 0:t.identifier}):[],collected_at:t.date||t.collection_date||"",submitter_name:(null==t||null===(e=t.user)||void 0===e?void 0:e.name)||"",submitter_is_anonymous:Boolean(null==t||null===(n=t.user)||void 0===n?void 0:n.is_anonymous)}):""}},{key:"getLinkCandidateId",value:function(t){return t?t.mobile_id?String(t.mobile_id):t.
2id?String(t.id):"":""}},{key:"getLinkCandidateCustomIds",value:function(t){if(!t)return[];var e=[];return t.custom_id&&e.push(String(t.custom_id)),Array.isArray(t.custom_ids)&&t.custom_ids.forEach(function(t){t&&e.push(String(t))}),D(new Set(e))}},{key:"formatLinkCandidateSubmitter",value:function(t){if(!t)return"Anonymous";if(t.submitter_is_anonymous)return"Anonymous";var e=(t.submitter_name||"").trim();if(!e)return"Anonymous";var n=e.split(/\s+/).filter(Boolean);if(0===n.length)return"Anonymous";var r=n[0];if(1===n.length)return r;var i=n[n.length-1].charAt(0).toUpperCase();return"".concat(r," ").concat(i,".")}},{key:"formatLinkCandidateDate",value:function(t){var e=(null==t?void 0:t.date)||(null==t?void 0:t.collection_date)||"",n=e?f()(e):null;return n&&n.isValid()?n.format("M/D/YY"):"Unknown"}},{key:"getLinkCandidateDetailsText",value:function(t){var e=this.getLinkCandidateCustomIds(t),n=[];return e.length>0&&n.push("Custom ID(s): ".concat(e.join("|"))),n.push("Date: ".concat(this.formatLinkCandidateDate(t))),n.push("Submitter: ".concat(this.formatLinkCandidateSubmitter(t))),n.join(", ")}},{key:"formatLinkCandidateLabel",value:function(t){var e=this.getLinkCandidateId(t),n=this.getLinkCandidateDetailsText(t);return e?"ID: ".concat(e," - ").concat(n):""}},{key:"renderLinkCandidateOption",value:function(t){return(0,w.jsxs)("div",{className:"obs-link-candidate-option",children:[(0,w.jsxs)("span",{className:"obs-link-candidate-option__id",children:["ID: ",this.getLinkCandidateId(t)]}),(0,w.jsx)("span",{className:"obs-link-candidate-option__details",children:this.getLinkCandidateDetailsText(t)})]})}},{key:"renderLinkCandidateDisplayValue",value:function(t){if(!t)return(0,w.jsx)("span",{className:"obs-link-candidate-display__placeholder",children:"Choose an observation..."});var e,n=String(t).split(" - "),r=I(e=n)||z(e)||A(e)||T(),i=r[0],o=P(r).slice(1).join(" - ");return(0,w.jsxs)("span",{className:"obs-link-candidate-display__value",children:[(0,w.jsx)("span",{className:"obs-link-candidate-display__id",children:i}),(0,w.jsx)("span",{className:"obs-link-candidate-display__details",children:o})]})}},{key:"openLinkCandidateDropdown",value:function(t){var e=this,n="".concat(t,"_observation_search_input"),r=this.state.linkForm[n]||"";(this.state.activeLinkDropdownField!==t||this.state.linkSearchLoading)&&(this.pendingLinkDropdownField=t,this.loadLinkCandidates(r||"",1,!1).then(function(n){!n||n.ignored||n.error||e.pendingLinkDropdownField===t&&e.setState({activeLinkDropdownField:t})}))}},{key:"handleLinkSearchChange",value:function(t,e){this.setState(function(n){return{activeLinkDropdownField:t,linkForm:R(R({},n.linkForm),{},U(U(U(U(U(U({},"".concat(t,"_observation_search_input"),e),"".concat(t,"_observation_input"),""),"".concat(t,"_observation_id"),""),"".concat(t,"_observation_collected_at"),""),"".concat(t,"_observation_is_repeat"),!1),"".concat(t,"_observation_has_repeats"),!1))}}),this.loadLinkCandidates(e,1,!1)}},{key:"selectLinkCandidate",value:function(t,e){var n=this,r="boolean"==typeof(null==e?void 0:e.is_repeat)?e.is_repeat:Number(null==e?void 0:e.initial_observation_id)!==Number(null==e?void 0:e.id),i=Boolean(null==e?void 0:e.has_repeats);this.pendingLinkDropdownField="",this.setState(function(o){return{activeLinkDropdownField:"",linkForm:R(R({},o.linkForm),{},U(U(U(U(U(U({},"".concat(t,"_observation_id"),e.id),"".concat(t,"_observation_collected_at"),e.collection_date||e.date||""),"".concat(t,"_observation_is_repeat"),Boolean(r)),"".concat(t,"_observation_has_repeats"),i),"".concat(t,"_observation_input"),n.formatLinkCandidateLabel(e)),"".concat(t,"_observation_search_input"),""))}})}},{key:"loadMoreLinkCandidatesIfNeeded",value:function(t){var e=this.state,n=e.linkSearchLoadingMore,r=e.linkCandidatesHasMore,i=e.linkCandidatesPage,o=e.linkCandidatesQuery;if(!n&&r){var s=t.target;s.scrollHeight-s.scrollTop-s.clientHeight>40||this.loadLinkCandidates(o,i+1,!0)}}},{key:"openLinkRepeatModal",value:function(){var t,e,n,r,i;if(g.A.admin()||g.A.scientist()){var o=(null===(t=this.state.observation)||void 0===t?void 0:t.observation_id)||(null===(e=this.state.observation)||void 0===e?void 0:e.id)||"",s=this.getObservationLinkDisplayValue(this.state.observation),a=this.hasObservationAsInitialWithRepeats(o);this.pendingLinkDropdownField="",this.setState({showLinkRepeatModal:!0,activeLinkDropdownField:"",linkCandidates:[],linkCandidatesPage:1,linkCandidatesHasMore:!1,linkCandidatesTotal:0,linkCandidatesQuery:"",linkForm:{initial_observation_id:o?Number(o):"",repeat_observation_id:"",initial_observation_collected_at:(null===(n=this.state.observation)||void 0===n?void 0:n.date)||(null===(r=this.state.observation)||void 0===r?void 0:r.collection_date)||"",repeat_observation_collected_at:"",initial_observation_is_repeat:Boolean(null===(i=this.state.observation)||void 0===i?void 0:i.original_observation_id),repeat_observation_is_repeat:!1,initial_observation_has_repeats:a,repeat_observation_has_repeats:!1,initial_observation_input:s,repeat_observation_input:"",initial_observation_search_input:"",repeat_observation_search_input:""}}),this.loadLinkCandidates("")}}},{key:"switchLinkObservationValues",value:function(){this.setState(function(t){return{linkForm:{initial_observation_id:t.linkForm.repeat_observation_id,repeat_observation_id:t.linkForm.initial_observation_id,initial_observation_collected_at:t.linkForm.repeat_observation_collected_at,repeat_observation_collected_at:t.linkForm.initial_observation_collected_at,initial_observation_is_repeat:t.linkForm.repeat_observation_is_repeat,repeat_observation_is_repeat:t.linkForm.initial_observation_is_repeat,initial_observation_has_repeats:t.linkForm.repeat_observation_has_repeats,repeat_observation_has_repeats:t.linkForm.initial_observation_has_repeats,initial_observation_input:t.linkForm.repeat_observation_input,repeat_observation_input:t.linkForm.initial_observation_input,initial_observation_search_input:t.linkForm.repeat_observation_search_input,repeat_observation_search_input:t.linkForm.initial_observation_search_input}}})}},{key:"submitLinkRepeatObservation",value:function(){var t=this,e=this.state,n=e.linkForm,r=e.observation,i=parseInt(n.initial_observation_id,10),o=parseInt(n.repeat_observation_id,10);if(i&&o&&i!==o)if(n.repeat_observation_has_repeats)O.A.push("Selected repeat observation is currently marked as an initial observation for one or more repeats. Unlink those repeats first.","danger");else{var s=Number((null==r?void 0:r.observation_id)||(null==r?void 0:r.id))===i&&((null==r?void 0:r.date)||(null==r?void 0:r.collection_date))||"",a=Number((null==r?void 0:r.observation_id)||(null==r?void 0:r.id))===o&&((null==r?void 0:r.date)||(null==r?void 0:r.collection_date))||"",u=this.parseDateTimeMoment(n.initial_observation_collected_at||s),c=this.parseDateTimeMoment(n.repeat_observation_collected_at||a);if(u&&c){var l=c.isAfter(u),f=c.isSame(u)&&o>i;if(!l&&!f)return void O.A.push("Repeat observation must be collected after the initial observation.","danger")}this.setState({linkSubmitting:!0}),axios.post("/web/observation/link-repeat",{initial_observation_id:i,repeat_observation_id:o}).then(function(e){var n,s=e.data,a=(null==r?void 0:r.observation_id)||(null==r?void 0:r.id),u=parseInt(null==s||null===(n=s.data)||void 0===n?void 0:n.observation_id,10)||i;t.loadStatusUpdates(r),t.setState(function(e){var n,r,i;return{showLinkRepeatModal:!1,activeLinkDropdownField:"",linkSubmitting:!1,linkForm:{initial_observation_id:a?Number(a):"",repeat_observation_id:"",initial_observation_collected_at:(null===(n=e.observation)||void 0===n?void 0:n.date)||(null===(r=e.observation)||void 0===r?void 0:r.collection_date)||"",repeat_observation_collected_at:"",initial_observation_is_repeat:Boolean(null===(i=e.observation)||void 0===i?void 0:i.original_observation_id),repeat_observation_is_repeat:!1,initial_observation_has_repeats:t.hasObservationAsInitialWithRepeats(a),repeat_observation_has_repeats:!1,initial_observation_input:t.getObservationLinkDisplayValue(e.observation),repeat_observation_input:""},observation:a===o?R(R({},e.observation),{},{original_observation_id:u}):e.observation}}),O.A.push("Repeat observation linked successfully.","success")}
2).catch(function(e){console.log(e),t.setState({linkSubmitting:!1});var n=t.getApiErrorMessage(e,"Failed to link repeat observation.");O.A.push(n,"danger")})}else O.A.push("Please select two different observations to link.","danger")}},{key:"adjustMarkCount",value:function(t,e){t?this.setState(function(t){return{correctMarks:t.correctMarks+e,correctMarksUsers:e>0?[].concat(D(t.correctMarksUsers),[g.A._user.name]):t.correctMarksUsers.filter(function(t){return t!==g.A._user.name})}}):this.setState(function(t){return{incorrectMarks:t.incorrectMarks+e,incorrectMarksUsers:e>0?[].concat(D(t.incorrectMarksUsers),[g.A._user.name]):t.incorrectMarksUsers.filter(function(t){return t!==g.A._user.name})}})}},{key:"confirm",value:function(t,e){var n=this;if(this.state.confirmation.correct===t)return this.deleteConfirmation(this.state.confirmation),this.adjustMarkCount(t,-1),void O.A.push("Unmarked observation","warning");-1!==this.state.confirmation.id&&this.adjustMarkCount(this.state.confirmation.correct,-1),this.setState({confirmation:{id:0,correct:t}}),axios.post("/admin/web/confirmations",{observation_id:e.observation_id,correct:t}).then(function(t){var e=t.data.data;n.setState({confirmation:e}),n.adjustMarkCount(e.correct,1);var r=e.correct?"correct":"incorrect";O.A.push("Marked observation as ".concat(r," species"),e.correct?"success":"danger")}).catch(function(t){console.log(t.response)})}},{key:"deleteConfirmation",value:function(t){t.id<=0||(this.setState({confirmation:{id:-1,correct:null}}),axios.delete("/admin/web/confirmation/".concat(t.id)).catch(function(t){console.log(t.response)}))}},{key:"destroyObservation",value:function(t){var e=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/".concat(t.observation_id)).then(function(){e.setState({deleted:!0}),m.A.emit("observation_deleted")}).catch(function(t){if(t.response){var e=t.response,n=e.status,r=e.data;return 500===n?alert("Server error. Please try again later."):401===n||403===n?alert("You are unauthorized to delete this observation."):void alert(r)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"renderNotesCounter",value:function(t){var e=(t||"").length,n=this.getNotesRemaining(t);return(0,w.jsxs)("p",{className:"help".concat(n<0?" is-danger":""),style:{marginTop:"0.35rem"},children:[e," / ",150," characters used"]})}},{key:"renderImage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getImageLabel(t),i=this.state.observation.images.images.length>1,o=function(){n||e.setState({selectedImageIndex:t.index||0,showModal:!0})};return(0,w.jsxs)("div",{className:"image-gallery-image".concat(n?" max-h-90vh":"").concat(n?"":" obs-photo-zoom-cursor"),style:{backgroundColor:i?"#222":"transparent",position:"relative"},onClick:o,role:n?void 0:"button",tabIndex:n?void 0:0,onKeyDown:n?void 0:function(t){return("Enter"===t.key||" "===t.key)&&o()},children:[(0,w.jsx)("img",{src:t.original,alt:"Plant Image",className:n?"":"obs-photo-zoom-cursor"}),(0,w.jsx)("div",{className:"obs-image-caption",children:r})]})}},{key:"openPhotoGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.setState({selectedImageIndex:t,showModal:!0})}},{key:"renderMetaDataRow",value:function(t,e,n,r){return!0===y.A.isJson(e)&&(e=JSON.parse(e),Array.isArray(e)?e=e.join(", "):"object"===L(e)&&(e=Object.values(e).join(", "))),"function"==typeof e.trim&&0===e.trim().length?null:(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:t}),(0,w.jsxs)("td",{children:[e," ",r||"","comment"===n&&this.props.observation.has_private_comments&&(0,w.jsxs)("p",{className:"help",children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-lock"})}),(0,w.jsx)("span",{children:"Only you can see this comment"})]})]})]},n)}},{key:"renderCategoryClickerRow",value:function(t,e,n){return(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:t}),(0,w.jsx)("td",{children:e[n].categories.map(function(t,r){return(0,w.jsxs)("span",{children:[e[n].counts[r]+" "+t,(0,w.jsx)("br",{})]},r)})})]},n)}},{key:"renderStatusUpdateFormFields",value:function(t,e,n,r){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"field",children:[(0,w.jsxs)("label",{className:"label",children:["Status ",(0,w.jsx)("span",{className:"has-text-danger",children:"*"})]}),0===n.length?(0,w.jsx)("p",{className:"help is-danger",children:"No statuses are available for this observation category."}):(0,w.jsx)("div",{className:"control",children:(0,w.jsx)("div",{className:"select obs-select-full",children:(0,w.jsxs)("select",{value:t.status_id,onChange:function(t){return e("status_id",t.target.value)},children:[(0,w.jsx)("option",{value:"",children:"Select a status..."}),n.map(function(t){return(0,w.jsx)("option",{value:t.id,children:t.text},t.id)})]})})})]}),(0,w.jsxs)("div",{className:"field",children:[(0,w.jsxs)("label",{className:"label",children:["Date ",(0,w.jsx)("span",{className:"has-text-danger",children:"*"})]}),(0,w.jsx)("div",{className:"control",children:(0,w.jsx)("input",{className:"input",type:"date",value:t.date,min:r||void 0,onChange:function(t){return e("date",t.target.value)}})})]}),(0,w.jsxs)("div",{className:"field",children:[(0,w.jsx)("label",{className:"label",children:"Notes"}),(0,w.jsxs)("div",{className:"control",children:[(0,w.jsx)("textarea",{className:"textarea",placeholder:"Optional notes...",maxLength:150,value:t.notes,onChange:function(t){return e("notes",t.target.value)}}),this.renderNotesCounter(t.notes)]})]}),(0,w.jsx)("div",{className:"field",children:(0,w.jsx)("div",{className:"control",children:(0,w.jsxs)("label",{className:"checkbox",children:[(0,w.jsx)("input",{type:"checkbox",checked:t.scientists_only,onChange:function(t){return e("scientists_only",t.target.checked)},style:{marginRight:"0.5rem"}}),"Only Visible to Scientists"]})})}),(!t.status_id||!t.date)&&(0,w.jsx)("p",{className:"help is-danger",style:{marginBottom:"0.5rem"},children:"Status and date are required."})]})}},{key:"renderCreateModal",value:function(){var t=this,e=this.state,n=e.showCreateModal,r=e.createForm,i=e.createSubmitting,o=e.observation,s=this.getStatusesForCategory(o.observation_category),a=this.getObservationStatusMinDate(o);return(0,w.jsxs)(d.A,{visible:n,onCloseRequest:function(){return t.setState({showCreateModal:!1})},children:[(0,w.jsx)("h3",{className:"title is-4",children:"Create Status Upd
2ate"}),this.renderStatusUpdateFormFields(r,function(e,n){return t.setState(function(t){return{createForm:R(R({},t.createForm),{},U({},e,n))}})},s,a),(0,w.jsx)("div",{className:"field",children:(0,w.jsxs)("div",{className:"obs-modal-actions",children:[(0,w.jsx)("button",{type:"button",className:"button is-primary".concat(i?" is-loading":""),disabled:i||0===s.length||!r.status_id||!r.date||this.getNotesRemaining(r.notes)<0,onClick:function(){return t.submitCreateStatusUpdate()},children:"Create"}),(0,w.jsx)("button",{type:"button",className:"button is-outlined",disabled:i,onClick:function(){return t.setState({showCreateModal:!1})},children:"Cancel"})]})})]})}},{key:"renderEditModal",value:function(){var t=this,e=this.state,n=e.showEditModal,r=e.editForm,i=e.editSubmitting,o=e.observation;if(!o)return null;var s=this.getStatusesForCategory(o.observation_category),a=this.getObservationStatusMinDate(o);return(0,w.jsxs)(d.A,{visible:n,onCloseRequest:function(){return t.setState({showEditModal:!1,editingUpdate:null})},children:[(0,w.jsx)("h3",{className:"title is-4",children:"Edit Status Update"}),this.renderStatusUpdateFormFields(r,function(e,n){return t.setState(function(t){return{editForm:R(R({},t.editForm),{},U({},e,n))}})},s,a),(0,w.jsx)("div",{className:"field",children:(0,w.jsxs)("div",{className:"obs-modal-actions",children:[(0,w.jsx)("button",{type:"button",className:"button is-primary".concat(i?" is-loading":""),disabled:i||0===s.length||!r.status_id||!r.date||this.getNotesRemaining(r.notes)<0,onClick:function(){return t.submitEditStatusUpdate()},children:"Save"}),(0,w.jsx)("button",{type:"button",className:"button is-outlined",disabled:i,onClick:function(){return t.setState({showEditModal:!1,editingUpdate:null})},children:"Cancel"})]})})]})}},{key:"renderLinkCandidateDropdownField",value:function(t,e){var n=this,r=this.state,i=r.linkForm,o=r.linkCandidates,s=r.activeLinkDropdownField,a=r.linkSearchLoading,u=r.linkSearchLoadingMore,c=r.linkCandidatesTotal,l="".concat(t,"_observation_input"),f="".concat(t,"_observation_search_input"),d=i[l]||"",p=i[f]||"",h=s===t;return(0,w.jsxs)("div",{className:"field obs-link-candidate-field",children:[(0,w.jsx)("label",{className:"label",children:e}),(0,w.jsx)("div",{className:"control",children:(0,w.jsx)("button",{type:"button",className:"obs-link-candidate-display",onFocus:function(){return n.openLinkCandidateDropdown(t)},onClick:function(){return n.openLinkCandidateDropdown(t)},children:this.renderLinkCandidateDisplayValue(d)})}),h&&(0,w.jsxs)("div",{className:"box obs-link-candidate-dropdown",children:[(0,w.jsx)("div",{className:"field obs-link-candidate-dropdown__search",children:(0,w.jsxs)("div",{className:"control has-icons-right",children:[(0,w.jsx)("input",{className:"input",type:"text",placeholder:"Search by ID, Custom ID, Date, or Submitter...",value:p,onChange:function(e){return n.handleLinkSearchChange(t,e.target.value)},autoFocus:!0}),(0,w.jsx)("span",{className:"icon is-small is-right",children:(0,w.jsx)("i",{className:"fa fa-search"})})]})}),(0,w.jsxs)("div",{className:"obs-link-candidate-dropdown__list",onScroll:function(t){return n.loadMoreLinkCandidatesIfNeeded(t)},children:[o.map(function(e){return(0,w.jsx)("button",{type:"button",className:"button is-white is-fullwidth has-text-left",style:{justifyContent:"space-between",borderRadius:0},onClick:function(){return n.selectLinkCandidate(t,e)},children:n.renderLinkCandidateOption(e)},e.id)}),!a&&0===o.length&&(0,w.jsx)("p",{className:"help",style:{padding:"0.75rem"},children:"No observations found."}),!a&&u&&(0,w.jsx)("p",{className:"help",style:{padding:"0.75rem"},children:"Loading more observations..."})]}),(0,w.jsx)("div",{className:"obs-link-candidate-dropdown__footer",children:(0,w.jsxs)("span",{className:"obs-link-candidate-dropdown__total",children:["Total: ",c.toLocaleString()]})})]})]})}},{key:"renderLinkRepeatModal",value:function(){var t=this,e=this.state,n=e.showLinkRepeatModal,r=e.linkForm,i=e.linkSubmitting,o=parseInt(r.initial_observation_id,10),s=parseInt(r.repeat_observation_id,10),a=Boolean(s&&r.repeat_observation_is_repeat),u=Boolean(s&&r.repeat_observation_has_repeats),c=o&&s&&o!==s&&!a&&!u;return(0,w.jsx)(d.A,{visible:n,modalContentClassName:"obs-link-repeat-modal-content",onCloseRequest:function(){t.pendingLinkDropdownField="",t.setState({showLinkRepeatModal:!1,activeLinkDropdownField:""})},children:(0,w.jsxs)("div",{className:"obs-link-repeat-modal",children:[(0,w.jsx)("h3",{className:"title is-4",children:"Link Repeat Observation"}),(0,w.jsxs)("div",{className:"obs-link-repeat-modal__body",children:[this.renderLinkCandidateDropdownField("initial","Initial Observation"),(0,w.jsx)("div",{className:"field",style:{display:"flex",justifyContent:"center"},children:(0,w.jsx)("button",{type:"button",className:"button is-outlined",onClick:function(){return t.switchLinkObservationValues()},title:"Swap observations",children:(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-exchange"})})})}),this.renderLinkCandidateDropdownField("repeat","Repeat Observation"),(0,w.jsx)("p",{className:"help",style:{marginTop:"1rem",marginBottom:"0.5rem"},children:"Options show ID, custom ID(s) when available, upload date, and submitter. Only observations from the same species are listed."}),!c&&(0,w.jsx)("p",{className:"help is-danger",style:{marginBottom:"0.5rem"},children:a?"Selected observation is already linked as a repeat. Unlink it before creating a new link.":u?"Selected repeat observation is currently marked as an initial observation for one or more repeats. Unlink those repeats first.":"Select two different observations."})]}),(0,w.jsxs)("div",{className:"obs-modal-actions obs-link-repeat-modal__actions",children:[(0,w.jsx)("button",{type:"button",className:"button is-primary".concat(i?" is-loading":""),disabled:!c||i,onClick:function(){return t.submitLinkRepeatObservation()},children:"Link Observations"}),(0,w.jsx)("button",{type:"button",className:"button is-outlined",disabled:i,onClick:function(){t.pendingLinkDropdownField="",t.setState({showLinkRepeatModal:!1,activeLinkDropdownField:""})},children:"Cancel"})]})]})})}},{key:"renderConfirmationControls",value:function(){var t=this,e=this.state,n=e.confirmation,r=e.correctMarks,i=e.incorrectMarks,o=e.correctMarksUsers,s=e.incorrectMarksUsers,a=this.state.observation;
2return g.A.can("confirm species")?(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"flex-row",style:{marginTop:"0.5rem"},children:[(0,w.jsx)("a",{className:"button mr-2 is-outlined is-clear".concat(-1===n.id||n.correct?"":" is-active"),onClick:function(){return t.confirm(!1,a)},children:(0,w.jsxs)(N.A,{label:-1===n.id||n.correct?"Mark as incorrect species.":"Undo",hideOnClick:!1,children:[(0,w.jsx)("span",{children:i}),(0,w.jsx)("span",{className:"icon is-small mr-1",children:(0,w.jsx)("b",{className:"fa fa-times text-danger"})}),(0,w.jsx)("span",{children:"Marks"})]})}),s&&s.length>0&&(0,w.jsxs)("span",{children:["Marked incorrect by: ",s.join(", ")]})]}),(0,w.jsxs)("div",{className:"flex-row",style:{marginTop:"0.5rem"},children:[(0,w.jsx)("a",{className:"button mr-2 is-outlined is-clear".concat(-1!==n.id&&n.correct?" is-active":""),onClick:function(){return t.confirm(!0,a)},children:(0,w.jsxs)(N.A,{label:-1!==n.id&&n.correct?"Undo":"Confirm species",hideOnClick:!1,children:[(0,w.jsx)("span",{children:r}),(0,w.jsx)("span",{className:"icon is-small mr-1",children:(0,w.jsx)("b",{className:"fa fa-check text-success"})}),(0,w.jsx)("span",{children:"Marks"})]})}),o&&o.length>0&&(0,w.jsxs)("span",{children:["Marked correct by: ",o.join(", ")]})]})]}):(0,w.jsxs)("div",{className:"flex-row",style:{marginTop:"0.5rem"},children:[(0,w.jsxs)("div",{className:"disabled",children:[(0,w.jsx)("span",{children:i}),(0,w.jsx)("span",{className:"icon is-small ml-1 mr-1",children:(0,w.jsx)("b",{className:"fa fa-times text-danger"})}),(0,w.jsx)("span",{children:"Marks"})]}),(0,w.jsxs)("div",{className:"disabled",children:[(0,w.jsx)("span",{children:r}),(0,w.jsx)("span",{className:"icon is-small ml-1 mr-1",children:(0,w.jsx)("b",{className:"fa fa-check text-success"})}),(0,w.jsx)("span",{children:"Marks"})]})]})}},{key:"renderControls",value:function(){var t=this;if(!this.props.showControls)return null;var e=this.state.observation,n=g.A.can("delete observations")||g.A.owns(e),r="metric"===this.state.selectedUnit?"Metric Units":"US Units",i="metric"===this.state.selectedUnit?"fa-globe":"fa-balance-scale";return(0,w.jsx)("div",{className:"obs-controls-wrapper",children:(0,w.jsxs)("div",{className:"observation-tools",children:[(0,w.jsxs)("div",{className:"observation-tools__row",children:[(0,w.jsxs)("label",{className:"button is-outlined obs-tool-btn obs-tool-select-btn",children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa ".concat(i," text-success")})}),(0,w.jsx)("span",{children:r}),(0,w.jsx)("span",{className:"icon is-small obs-tool-select-btn__chevron",children:(0,w.jsx)("i",{className:"fa fa-angle-down"})}),(0,w.jsxs)("select",{className:"obs-tool-select-btn__select",value:this.state.selectedUnit,onChange:function(e){var n=e.target;window.units=n.value,t.setState({selectedUnit:n.value})},children:[(0,w.jsx)("option",{value:"US",children:"US Units"}),(0,w.jsx)("option",{value:"metric",children:"Metric Units"})]})]}),n&&(0,w.jsxs)("button",{type:"button",className:"button is-outlined is-danger obs-tool-btn",onClick:function(){return t.destroyObservation(e)},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-tras
2h"})}),(0,w.jsx)("span",{children:"Delete Observation"})]}),g.A.owns(e)&&(0,w.jsxs)("a",{className:"button is-outlined obs-tool-btn",onClick:function(){return t.setState({showShareLinkModal:!0})},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-share text-success"})}),(0,w.jsx)("span",{children:"Share Link"})]})]}),(0,w.jsxs)("div",{className:"observation-tools__row",children:[(0,w.jsxs)("a",{className:"button is-outlined obs-tool-btn",onClick:function(){return t.setState({controlModalContent:"collection",showControlModal:!0})},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-star text-success"})}),(0,w.jsx)("span",{children:"Add to Collection"})]}),0===e.flags.length&&(0,w.jsxs)("a",{className:"button is-outlined obs-tool-btn",onClick:function(){return t.setState({controlModalContent:"flag",showControlModal:!0})},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-flag text-danger"})}),(0,w.jsx)("span",{children:"Flag Observation"})]}),g.A.can("contact users")&&(0,w.jsxs)("a",{className:"button is-outlined obs-tool-btn",onClick:function(){return t.setState({showEmail:!0})},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-envelope text-info"})}),(0,w.jsx)("span",{children:"Contact Submitter"})]})]}),this.renderConfirmationControls(),this.renderControlModal()]})})}},{key:"renderControlModal",value:function(){var t=this,e=this.state,n=e.showControlModal,r=e.controlModalContent;return(0,w.jsxs)(d.A,{visible:n,onCloseRequest:function(){return t.setState({showControlModal:!1})},children:["flag"===r&&this.renderFlagForm(),"collection"===r&&this.renderCollectionForm()]})}},{key:"renderFlagForm",value:function(){var t=this;return(0,w.jsx)(p.A,{observationId:this.state.observation.observation_id,onSubmit:function(e){t.props.onFlagCreated(e),t.setState({showControlModal:!1})}})}},{key:"renderCollectionForm",value:function(){var t=this;return(0,w.jsxs)("div",{children:[(0,w.jsx)("h3",{className:"title is-4",children:"Add to Collection"}),(0,w.jsx)(h.A,{observationId:this.state.observation.observation_id,collections:this.state.collections,onSubmit:function(e){t.props.onAddedToCollection(e),t.setState({showControlModal:!1})}})]})}},{key:"_renderMetaData",value:function(t,e,n,r){if(!0===y.A.isJson(e)&&(e=JSON.parse(e)),Array.isArray(e)?e=e.map(function(t){return"object"===L(t)&&null!==t?JSON.stringify(t):t}).join(", "):"object"===L(e)&&null!==e&&(e=Object.values(e).map(function(t){return"object"===L(t)&&null!==t?JSON.stringify(t):t}).join(", ")),"function"==typeof e.trim&&0===e.trim().length)return null}},{key:"renderImagesModal",value:function(){var t=this,e=this.state.observation;return this.state.showModal&&0!==e.images.images.length?(0,w.jsx)(u.A,{onCloseRequest:function(){return t.setState({showModal:!1})},children:(0,w.jsx)(c.A,{items:this.getObservationImages(),startIndex:this.state.selectedImageIndex,slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this.renderImage.bind(this)})}):null}},{key:"_renderCategoryClicker",value:function(t,e,n){return(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:t}),(0,w.jsx)("td",{children:e[n].categories.map(this._renderCategory.bind(this,[e[n]]))})]},n)}},{key:"_renderCategory",value:function(t,e,n){return(0,w.jsxs)("span",{children:[t[0].counts[n]+" "+e,(0,w.jsx)("br",{})]},n)}},{key:"formatImageLabel",value:function(t){return t.replace(/_(\d+)$/,function(t,e){return" - ".concat(parseInt(e)+1)}).replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,function(t){return t.toUpperCase()})}},{key:"renderSubObservationModal",value:function(){var t,e=this,n=this.state,r=n.showSubObservationModal,i=n.observation,o=(null==i||null===(t=i.meta_data)||void 0===t?void 0:t.ashNearbySurvey)||[];return(0,w.jsx)(d.A,{visible:r,onCloseRequest:function(){return e.setState({showSubObservationModal:!1})},children:(0,w.jsx)("div",{children:Array.isArray(o)&&o.length>0?(0,w.jsxs)("table",{border:"1",style:{width:"100%",borderCollapse:"collapse"},children:[(0,w.jsx)("thead",{children:(0,w.jsx)("tr",{children:Object.keys(o[0]).map(function(t){if("id"===t)return null;var e="metadata"===t?"DATA":"name"===t?"TREE #":t.toUpperCase();return(0,w.jsx)("th",{style:{padding:"8px",textAlign:"left",background:"#2A8B78"},children:e},t)})})}),(0,w.jsx)("tbody",{children:o.map(function(t,e){return(0,w.jsx)("tr",{children:Object.entries(t).map(function(t,e){var n=C(t,2),r=n[0],i=n[1];return"id"===r?null:"notes"===r?(0,w.jsx)("td",{style:{padding:"8px",border:"1px solid #ddd"},children:i||"N/A"},e):(0,w.jsx)("td",{style:{padding:"8px",border:"1px solid #ddd"},children:"metadata"===r&&Array.isArray(i)?i.map(function(t,e){return(0,w.jsxs)("div",{children:[(0,w.jsxs)("strong",{children:[t.label[0].toUpperCase(),":"]})," ",t.value||"N/A"]},e)}):"metadata"===r?Object.entries(i).map(function(t,e){var n=C(t,2)[1];return(0,w.jsxs)("div",{children:[(0,w.jsxs)("strong",{children:[n.label[0].toUpperCase(),":"]})," ",n.value||"N/A"]},e)}
2):i||"N/A"},e)})},e)})})]}):(0,w.jsx)("p",{children:"No data available"})})})}},{key:"destroy",value:function(t){var e=this;confirm("Are you sure you want to delete this observation? This action cannot be undone.")&&axios.delete("/web/observation/".concat(t.observation_id)).then(function(t){e.setState({deleted:!0}),m.A.emit("observation_deleted")}).catch(function(t){if(t.response){var e=t.response.status;return 500===e?void alert("Server error. Please try again later."):401===e||403===e?void alert("You are unauthorized to delete this observation."):void alert(t.response.data)}alert("Unknown error occurred. Please contact us to fix this issue.")})}},{key:"deleted",value:function(){return(0,w.jsx)("div",{className:"box has-text-centered",children:(0,w.jsxs)("div",{className:"content",children:[(0,w.jsx)("h4",{className:"title is-4",children:"Observation Deleted"}),(0,w.jsx)("p",{children:"Observation has been deleted successfully"}),(0,w.jsx)(_.N_,{to:"/",className:"button is-primary",children:"Back to Home Page"})]})})}},{key:"renderEmailModal",value:function(){var t=this;return g.A.can("contact users")?(0,w.jsx)(b.A,{visible:this.state.showEmail,contact:this.state.contact,observation:this.state.observation,onCloseRequest:function(){return t.setState({showEmail:!1})}}):null}},{key:"renderDeleted",value:function(){return(0,w.jsx)("div",{className:"box has-text-centered",children:(0,w.jsxs)("div",{className:"content",children:[(0,w.jsx)("h4",{className:"title is-4",children:"Observation Deleted"}),(0,w.jsx)("p",{children:"Observation has been deleted successfully"}),(0,w.jsx)(_.N_,{to:"/",className:"button is-primary",children:"Back to Home Page"})]})})}},{key:"render",value:function(){var t,e=this;if(this.state.deleted)return this.renderDeleted();if(!this.state.observation)return null;var n=this.state,r=n.statusUpdates,i=n.observation,o=i.meta_data,u=this.getStatusesForCategory(i.observation_category).length>0&&(g.A.admin()||g.A.scientist()),l="map"===this.state.activeTab?"map":"photos",f=this.getLatestVisibleUpdate(r),d=g.A.admin()||g.A.scientist()?(0,w.jsx)("a",{href:"/admin/user/".concat(i.user_id),children:i.user.name}):i.user.name;return this.props.showControls,g.A.can("delete observations")||g.A.owns(i),this.state.deleted?this.deleted():this.state.observation?(0,w.jsxs)("div",{className:"box",children:[(0,w.jsxs)("div",{className:"columns mb-none",children:[(0,w.jsxs)("div",{className:"column is-8-desktop",style:{minHeight:"300px"},children:[(0,w.jsx)("div",{className:"obs-meta-header",children:(0,w.jsxs)("h3",{className:"title is-4 obs-title mb-none",children:[i.observation_category,f&&(0,w.jsx)("span",{className:"tag is-medium obs-status-tag",onClick:function(){return e.openStatusUpdatesFromHeader(f)},children:f.status?f.status.text:"â"})]})}),(0,w.jsxs)("div",{className:"flexbox flex-column flex-space-between obs-meta-inner",style:{minHeight:"300px"},children:[(0,w.jsx)("table",{className:"table is-striped obs-meta-table",style:{tableLayout:"fixed"},children:(0,w.jsxs)("tbody",{children:[(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Submitted By"}),(0,w.jsx)("td",{children:d})]}),i.custom_id&&(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Custom Tree Identifier"}),(0,w.jsx)("td",{children:i.custom_id})]}),i.mobile_id&&(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"ID"}),(0,w.jsx)("td",{children:i.mobile_id})]}),Object.keys(o).map(function(t){if(t.includes("_values")||t.includes("_units")||t.includes("_confidence"))return null;var n=null,r=void 0!==v.A[t]?v.A[t]:t,i=o[t];return void 0!==o["".concat(t,"_values")]&&(n=o["".concat(t,"_values")]["".concat(e.state.selectedUnit,"_unit")],i=o["".concat(t,"_values")]["".concat(e.state.selectedUnit,"_value")]),o[t].category_clicker?e._renderCategoryClicker(r,o,t):"nearbyButternutClicker"===t||"ashNearbySurvey"===t||"butternutNearbySurvey"===t||"beechNearbySurvey"===t?null:e.renderMetaDataRow(r,i,t,n)}),void 0!==o.ashNearbySurvey?(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Ash Nearby Survey"}),0===o.ashNearbySurvey.length?(0,w.jsx)("td",{children:"No nearby survey data"}):(0,w.jsx)("td",{children:(0,w.jsx)("a",{onClick:function(){return e.setState({showSubObservationModal:!0,subObservationKey:"ashNearbySurvey"})},children:"View Nearby Ash Survey"})})]}):null,void 0!==o.butternutNearbySurvey?(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Seedling Survey"}),0===o.butternutNearbySurvey.length?(0,w.jsx)("td",{children:"No seedling survey data"}):(0,w.jsx)("td",{children:(0,w.jsx)("a",{onClick:function(){return e.setState({showSubObservationModal:!0,subObservationKey:"butternutNearbySurvey"})},children:"View Seedling Survey"})})]}):null,void 0!==o.beechNearbySurvey?(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Nearby Beech Survey"}),0===o.beechNearbySurvey.length?(0,w.jsx)("td",{children:"No nearby survey data"}):(0,w.jsx)("td",{children:(0,w.jsx)("a",{onClick:function(){return e.setState({showSubObservationModal:!0,subObservationKey:"beechNearbySurvey"})},children:"View Nearby Beech Survey"})})]}):null,(null===(t=i.location.address)||void 0===t?void 0:t.formatted)&&(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Address"}),(0,w.jsx)("td",{children:i.location.address.formatted})]}),(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Coordinates"}),(0,w.jsxs)("td",{children:[i.location.latitude,", ",i.location.longitude]})]}),i.location.accuracy&&(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Location Accuracy"}),(0,w.jsx)("td",{children:this.getAccuracy()})]}),(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Date Collected"}),(0,w.jsx)("td",{children:i.collection_date})]}),f&&(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Last Update"}),(0,w.jsx)("td",{children:f.status?f.status.text:"â"})]}),0!==i.images.length&&(0,w.jsxs)("tr",{children:[(0,w.jsx)("th",{children:"Photos"}),(0,w.jsx)("td",{children:(0,w.jsx)("a",{onClick:function(){return e.setState({showModal:!0})},children:"See All Photos"})})]})]})}),this.renderControls()]})]}),(0,w.jsxs)("div",{className:"column obs-tabs-column",children:[(g.A.admin()||g.A.scientist()||r.length>0)&&(0,w.jsxs)("div",{className:"obs-status-section",ref:function(t){return e.statusUpdatesSection=t},children:[(0,w.jsxs)("div",{className:"obs-status-section__heading",children:[(0,w.jsx)("h3",{className:"title is-4 mb-none obs-status-section__title",children:"Status Upd
2ates"}),(0,w.jsxs)("div",{className:"obs-status-section__actions",children:[(g.A.admin()||g.A.scientist())&&(0,w.jsxs)("button",{type:"button",className:"button is-primary obs-status-action-btn",onClick:function(){return e.openLinkRepeatModal()},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-link"})}),(0,w.jsx)("span",{children:"Link Repeat"})]}),u&&(0,w.jsxs)("button",{type:"button",className:"button is-primary obs-status-action-btn",onClick:function(){return e.setState({showCreateModal:!0})},children:[(0,w.jsx)("span",{className:"icon is-small",children:(0,w.jsx)("i",{className:"fa fa-plus"})}),(0,w.jsx)("span",{children:"New Update"})]})]})]}),(0,w.jsx)("div",{className:"obs-panel obs-status-section__panel",children:(0,w.jsx)(E,{statusUpdates:r,statusUpdatesLoading:this.state.statusUpdatesLoading,currentObservationId:i.observation_id||i.id,canCreateStatusUpdates:u,showAllStatusUpdates:this.state.showAllStatusUpdates,expandedStatusUpdateIds:this.state.expandedStatusUpdateIds,formatStatusDate:this.formatStatusDate.bind(this),isStatusUpdateTextTruncated:this.isStatusUpdateTextTruncated.bind(this),onToggleExpanded:this.toggleStatusUpdateExpanded.bind(this),onEdit:this.openEditModal.bind(this),onDelete:this.deleteStatusUpdate.bind(this),onToggleShowAll:function(){return e.setState({showAllStatusUpdates:!e.state.showAllStatusUpdates})},onOpenLinkRepeat:function(){return e.openLinkRepeatModal()},onOpenCreate:function(){return e.setState({showCreateModal:!0})},containerRef:function(t){return e.statusUpdatesContainer=t}})})]}),(0,w.jsxs)("div",{className:"obs-media-section",children:[(0,w.jsx)("div",{className:"tabs has-no-shadow obs-tabs-bar",children:(0,w.jsxs)("ul",{className:"obs-tabs-list",children:[(0,w.jsx)("li",{className:"obs-tabs-item ".concat(this.getTabClass("photos",l)),children:(0,w.jsx)("a",{onClick:function(){return e.selectTab("photos")},children:"Photos"})}),(0,w.jsx)("li",{className:"obs-tabs-item ".concat(this.getTabClass("map",l)),children:(0,w.jsx)("a",{onClick:function(){return e.selectTab("map")},children:"Map"})})]})}),"map"===l&&(0,w.jsx)("div",{className:"obs-map-panel",children:(0,w.jsx)(s.A,{ref:function(t){return e.map=t},style:{height:"100%"},center:this.state.center,zoom:this.state.zoom,children:this.state.markers.map(function(t,e){return(0,w.jsx)(a.A,{owner_id:t.user_id,position:t.position,show:!0,children:""!==t.image&&(0,w.jsx)("div",{className:"callout",children:(0,w.jsx)("img",{src:t.image,alt:t.title,style:{height:100,width:"auto"}})})},e)})})}),"photos"===l&&(0,w.jsx)("div",{className:"obs-panel",children:(0,w.jsx)("div",{className:"obs-photo-gallery",children:(0,w.jsx)(c.A,{items:this.getObservationImages(),slideInterval:2e3,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,renderItem:this.renderImage.bind(this)})})})]})]})]}),this.renderImagesModal(),this.renderEmailModal(),this.renderSubObservationModal(),this.renderCreateModal(),this.renderEditModal(),this.renderLinkRepeatModal(),this.state.showShareLinkModal&&(0,w.jsx)(S.A,{observationID:this.props.observation.observation_id,onCloseRequest:function(){return e.setState({showShareLinkModal:!1})},visible:!0})]}):null}}],r&&F(n.prototype,r),i&&F(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);Q.propTypes={observation:o().object.isRequired,showControls:o().bool,onAddedToCollection:o().func,onFlagCreated:o().func},Q.defaultProps={showControls:!1,onFlagCreated:function(t){},onAddedToCollection:function(t){}}},24813:(t,e,n)=>{"use strict";n.d(e,{A:()=>v});var r=n(96540),i=n(5556),o=n.n(i),s=n(31686),a=n(74848);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==u(e)?e:e+""}function f(t,e,n){return e=p(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var v=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(r=[{key:"close",value:function(){this.props.onCloseRequest()}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,a.jsxs)("div",{className:"modal".concat(this.props.visible?" is-active":""),children:[(0,a.jsx)("div",{className:"modal-background",onClick:this.close.bind(this)}),(0,a.jsx)("div",{className:"modal-content modal-card-lg",children:(0,a.jsx)(s.A,{observation:this.props.observation})}),(0,a.jsx)("button",{className:"modal-close",onClick:this.close.bind(this)})]})}}])&&c(n.prototype,r),i&&c(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);v.propTypes={visible:o().bool.isRequired,onCloseRequest:o().func.isRequired,observation:o().object.isRequired}},23644:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(96540),i=n(5556),o=n.n(i),s=n(74848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=l(this,e,[t])).state={shareLocation:"exact",shareLink:"",shareLinkExact:""},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,r=[{key:"close",value:function(){this.props.onCloseRequest
2()}},{key:"componentDidMount",value:function(){var t=this.props.observationID;this.setState({shareLink:"https://treesnap.org/observation/".concat(t)}),this.makeExactShareLink()}},{key:"render",value:function(){var t=this;return(0,s.jsxs)("div",{className:"modal".concat(this.props.visible?" is-active":""),children:[(0,s.jsx)("div",{className:"modal-background",onClick:this.close.bind(this)}),(0,s.jsxs)("div",{className:"modal-content",children:[(0,s.jsx)("header",{className:"modal-card-head",children:(0,s.jsx)("p",{className:"modal-card-title",children:"Shareable Link"})}),(0,s.jsxs)("section",{className:"modal-card-body",children:[(0,s.jsx)("div",{className:"field",children:(0,s.jsxs)("div",{className:"control",children:[(0,s.jsx)("label",{className:"label",children:"Privacy Settings"}),(0,s.jsx)("div",{className:"select",children:(0,s.jsxs)("select",{onChange:function(e){return t.setState({shareLocation:e.target.value})},value:this.state.shareLocation,children:[(0,s.jsx)("option",{value:"not exact",children:"Share without exact location"}),(0,s.jsx)("option",{value:"exact",children:" Share with exact location"})]})})]})}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{className:"label",children:"Copy the Following Link to Share this Obsevation"}),(0,s.jsx)("div",{className:"control",children:(0,s.jsx)("input",{type:"text",readOnly:!0,className:"input",style:{maxWidth:"400px"},value:"exact"===this.state.shareLocation?this.state.shareLinkExact:this.state.shareLink})})]}),"exact"===this.state.shareLocation?(0,s.jsxs)("p",{children:["People with this link ",(0,s.jsx)("b",{children:"will be able"})," to see the exact location of your observation. You may change the privacy settings above."]}):(0,s.jsxs)("p",{children:["People with this link will ",(0,s.jsx)("b",{children:"NOT"})," be able to see the exact location of your observation. You may change the privacy settings above."]})]})]}),(0,s.jsx)("button",{onClick:this.close.bind(this)})]})}},{key:"getShareLink",value:function(){return"exact"===this.state.shareLocation?(this.state.shareLinkExact||this.setState({shareLinkExact:this.makeExactShareLink()}),this.state.shareLinkExact):this.state.shareLink}},{key:"makeExactShareLink",value:function(){var t=this,e=this.props.observationID;axios.get("/web/share/observation/".concat(e)).then(function(e){var n=e.data.data;t.setState({shareLinkExact:n})}).catch(function(t){console.log(t);var e=t.response;e&&500===e.status&&alert("Network Error. Please contact us to resolve this issue.")})}}],r&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);h.propTypes={visible:o().bool.isRequired,onCloseRequest:o().func.isRequired}},10985:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(96540),i=n(5556),o=n.n(i),s=n(74848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return this.props.visible?this.props.inline?(0,s.jsx)("div",{className:"mt-1",style:this.props.containerStyle,children:(0,s.jsx)("i",{className:"fa fa-refresh fa-spin fa-2x"})}):(0,s.jsxs)("div",{className:"spinner-overlay",style:this.props.containerStyle,children:[(0,s.jsx)("div",{className:"overlay-blur"}),(0,s.jsx)("span",{className:"spinner-container",children:(0,s.jsx)("i",{className:"is-loading"})})]}):null}}])&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);h.propTypes={visible:o().bool.isRequired,containerStyle:o().object,inline:o().bool},h.defaultProps={containerStyle:{},inline:!1}},94843:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(96540),i=n(5556),o=n.n(i),s=n(74848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function l(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function p(t,e,n){return e=v(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=p(this,e,[t])).state={show:!1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return(0,s.jsxs)("span",c(c({className:"tooltip ".concat(this.props.position),onMouseEnter:function(){return t.setState({show:!0})},onMouseLeave:function(){return t.setState({show:!1})}},_.omit(this.props,Object.keys(e.propTypes))),{},{onClick:function(){t.props.hideOnClick&&t.setState({show:!1})},children:[this.props.children,(0,s.jsx)("div",{className:"tooltip-text".concat(this.state.show?" show":""),children:this.props.label})]}))}}])&&f(n.prototype,r),i&&f(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.Component);g.propTypes={label:o().string.isRequired,position:o().string,hideOnClick:o().bool},g.defaultProps={position:"top",hideOnClick:!0}},73811:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=new google.maps.InfoWindow},72632:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=window.TreeSnap.metaLabels},9170:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==r(e)?e:e+""}n.d(e,{A:()=>s});var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"isJson",value:function(t){try{JSON.parse(t)}catch(t){return!1}return!0}},{key:"unit",value:function(t){return{feet:"US"===window.TreeSnap.units?"Feet":"Meters",inches:"US"===window.TreeSnap.units?"Inches":"cm"}[t.toLowerCase()]||null}},{key:"flattenObject",value:function(t){var e=this;return Object.keys(t).map(function(n){return Array.isArray(t[n])?_.flattenDeep(t[n]):"object"===r(t[n])?e.flattenObject(t[n]):t[n]})}}],(e=null)&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},43533:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function s(t,e,n){return e=u(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}n.d(e,{A:()=>l});var l=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=s(this,e,[t]),window.ga&&setTimeout(function(){return window.ga("send","pageview")},2500),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,r&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n(96540).Component)},20181:(t,e,n)=>{var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return l.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=o.test(t);return n||s.test(t)?a(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,s,a,u,c=0,l=!1,f=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function _(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-c>=o}function b(){var t=h();if(_(t))return S(t);a=setTimeout(b,function(t){var n=e-(t-u);return f?p(n,o-(t-c)):n}(t))}function S(t){return a=void 0,g&&r?m(t):(r=i=void 0,s)}function w(){var t=h(),n=_(t);if(r=arguments,i=this,u=t,n){if(void 0===a)return function(t){return c=t,a=setTimeout(b,e),l?m(t):s}(u);if(f)return a=setTimeout(b,e),m(u)}return void 0===a&&(a=setTimeout(b,e)),s}return e=y(e)||0,v(n)&&(l=!!n.leading,o=(f="maxWait"in n)?d(y(n.maxWait)||0,e):o,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=u=i=a=void 0},w.flush=function(){return void 0===a?s:S(h())},w}},25858:(t,e,n)=>{var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function y(t,e,n){var i,o,s,a,u,c,l=0,f=!1,d=!1,y=!0;if("function"!=typeof t)throw new TypeError(r);function _(e){var n=i,r=o;return i=o=void 0,l=e,a=t.apply(r,n)}function b(t){var n=t-c;return void 0===c||n>=e||n<0||d&&t-l>=s}function S(){var t=v();if(b(t))return w(t);u=setTimeout(S,function(t){var n=e-(t-c);return d?h(n,s-(t-l)):n}(t))}function w(t){return u=void 0,y&&i?_(t):(i=o=void 0,a)}function x(){var t=v(),n=b(t);if(i=arguments,o=this,c=t,n){if(void 0===u)return function(t){return l=t,u=setTimeout(S,e),f?_(t):a}(c);if(d)return u=setTimeout(S,e),_(c)}return void 0===u&&(u=setTimeout(S,e)),a}return e=m(e)||0,g(n)&&(f=!!n.leading,s=(d="maxWait"in n)?p(m(n.maxWait)||0,e):s,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},x.flush=function(){return void 0===u?a:w(v())},x}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;
2if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=s.test(t);return n||a.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError(r);return g(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),y(t,e,{leading:i,maxWait:e,trailing:o})}},35358:(t,e,n)=>{var r={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=35358},78074:(t,e,n)=>{"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}
2(),o=f(n(96540)),s=n(10188),a=f(n(25858)),u=f(n(20181)),c=f(n(43591)),l=f(n(5556));function f(t){return t&&t.__esModule?t:{default:t}}var d=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],p=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.slideToIndex=function(t,e){var r=n.state,i=r.currentIndex;if(!r.isTransitioning){e&&n._intervalId&&(n.pause(!1),n.play(!1));var o=n.props.items.length-1,s=t;t<0?s=o:t>o&&(s=0),n.setState({previousIndex:i,currentIndex:s,isTransitioning:s!==i,offsetPercentage:0,style:{transition:"all "+n.props.slideDuration+"ms ease-out"}},n._onSliding)}},n._onSliding=function(){var t=n.state.isTransitioning;n._transitionTimer=window.setTimeout(function(){t&&(n.setState({isTransitioning:!t}),n.props.onSlide&&n.props.onSlide(n.state.currentIndex))},n.props.slideDuration+50)},n._handleScreenChange=function(){var t=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;n.props.onScreenChange&&n.props.onScreenChange(t),n.setState({isFullscreen:!!t})},n._toggleFullScreen=function(){n.state.isFullscreen?n.exitFullScreen():n.fullScreen()},n._togglePlay=function(){n._intervalId?n.pause():n.play()},n._initGalleryResizing=function(t){t&&(n._imageGallerySlideWrapper=t,n.resizeObserver=new c.default(n._createResizeObserver),n.resizeObserver.observe(t))},n._createResizeObserver=(0,u.default)(function(t){t&&t.forEach(function(){n._handleResize()})},300),n._handleResize=function(){var t=n.state.currentIndex;n._imageGallery&&n.setState({galleryWidth:n._imageGallery.offsetWidth}),n._imageGallerySlideWrapper&&n.setState({gallerySlideWrapperHeight:n._imageGallerySlideWrapper.offsetHeight}),n._thumbnailsWrapper&&(n._isThumbnailVertical()?n.setState({thumbnailsWrapperHeight:n._thumbnailsWrapper.offsetHeight}):n.setState({thumbnailsWrapperWidth:n._thumbnailsWrapper.offsetWidth})),n._setThumbsTranslate(-n._getThumbsTranslate(t))},n._handleKeyDown=function(t){if(!n.props.disableArrowKeys){switch(parseInt(t.keyCode||t.which||0)){case 37:n._canSlideLeft()&&!n._intervalId&&n._slideLeft();break;case 39:n._canSlideRight()&&!n._intervalId&&n._slideRight();break;case 27:n.state.isFullscreen&&!n.props.useBrowserFullscreen&&n.exitFullScreen()}}},n._handleImageError=function(t){n.props.defaultImage&&-1===t.target.src.indexOf(n.props.defaultImage)&&(t.target.src=n.props.defaultImage)},n._handleOnSwiped=function(t){var e=t.event,r=t.dir,i=t.velocity;if(!n.props.disableSwipe){var o=n.state,a=o.scrollingUpDown,u=o.scrollingLeftRight,c=n.props.isRTL;if(n.props.stopPropagation&&e.stopPropagation(),a&&n.setState({scrollingUpDown:!1}),u&&n.setState({scrollingLeftRight:!1}),!a){var l=(r===s.LEFT?1:-1)*(c?-1:1),f=i>n.props.flickThreshold;n._handleOnSwipedTo(l,f)}}},n._handleSwiping=function(t){var e=t.event,r=t.absX,i=t.dir;if(!n.props.disableSwipe){var o=n.state,a=o.galleryWidth,u=o.isTransitioning,c=o.scrollingUpDown,l=o.scrollingLeftRight,f=n.props.swipingTransitionDuration;if(n._setScrollDirection(i),n.props.stopPropagation&&e.stopPropagation(),(n.props.preventDefaultTouchmoveEvent||l)&&e.cancelable&&e.preventDefault(),u||c)n.setState({offsetPercentage:0});else{var d=i===s.RIGHT?1:-1,p=r/a*100;Math.abs(p)>=100&&(p=100);var h={transition:"transform "+f+"ms ease-out"};n.setState({offsetPercentage:d*p,style:h})}}},n._slideLeft=function(){n.props.isRTL?n._slideNext():n._slidePrevious()},n._slideRight=function(){n.props.isRTL?n._slidePrevious():n._slideNext()},n._slidePrevious=function(t){n.slideToIndex(n.state.currentIndex-1,t)},n._slideNext=function(t){n.slideToIndex(n.state.currentIndex+1,t)},n._renderItem=function(t){var e=n.props.onImageError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-image"},t.imageSet?o.default.createElement("picture",{onLoad:n.props.onImageLoad,onError:e},t.imageSet.map(function(t,e){return o.default.createElement("source",{key:e,media:t.media,srcSet:t.srcSet,type:t.type})}),o.default.createElement("img",{alt:t.originalAlt,src:t.original})):o.default.createElement("img",{src:t.original,alt:t.originalAlt,srcSet:t.srcSet,sizes:t.sizes,title:t.originalTitle,onLoad:n.props.onImageLoad,onError:e}),t.description&&o.default.createElement("span",{className:"image-gallery-description"},t.description))},n._renderThumbInner=function(t){var e=n.props.onThumbnailError||n._handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbn
2ail-inner"},o.default.createElement("img",{src:t.thumbnail,alt:t.thumbnailAlt,title:t.thumbnailTitle,onError:e}),t.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},t.thumbnailLabel))},n._onThumbnailClick=function(t,e){n.slideToIndex(e,t),n.props.onThumbnailClick&&n.props.onThumbnailClick(t,e)},n._onThumbnailMouseOver=function(t,e){n._thumbnailMouseOverTimer&&(window.clearTimeout(n._thumbnailMouseOverTimer),n._thumbnailMouseOverTimer=null),n._thumbnailMouseOverTimer=window.setTimeout(function(){n.slideToIndex(e),n.pause()},300)},n._onThumbnailMouseLeave=function(){n._thumbnailMouseOverTimer&&(window.clearTimeout(n._thumbnailMouseOverTimer),n._thumbnailMouseOverTimer=null,n.props.autoPlay&&n.play())},n.state={currentIndex:t.startIndex,thumbsTranslate:0,offsetPercentage:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n._unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,a.default)(n._unthrottledSlideToIndex,t.slideDuration,{trailing:!1}),t.lazyLoad&&(n._lazyLoaded=[]),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidUpdate",value:function(t,e){var n=t.items.length!==this.props.items.length,r=t.items!==this.props.items,i=t.startIndex!==this.props.startIndex;n&&this._handleResize(),e.currentIndex!==this.state.currentIndex&&this._slideThumbnailBar(e.currentIndex),t.slideDuration!==this.props.slideDuration&&(this.slideToIndex=(0,a.default)(this._unthrottledSlideToIndex,this.props.slideDuration,{trailing:!1})),!this.props.lazyLoad||t.lazyLoad&&!r||(this._lazyLoaded=[]),(i||r)&&this.setState({currentIndex:this.props.startIndex})}},{key:"componentDidMount",value:function(){this.props.autoPlay&&this.play(),window.addEventListener("keydown",this._handleKeyDown),this._onScreenChangeEvent()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this._handleKeyDown),this._offScreenChangeEvent(),this._intervalId&&(window.clearInterval(this._intervalId),this._intervalId=null),this.resizeObserver&&this._imageGallerySlideWrapper&&this.resizeObserver.unobserve(this._imageGallerySlideWrapper),this._transitionTimer&&window.clearTimeout(this._transitionTimer),this._createResizeObserver&&this._createResizeObserver()}},{key:"play",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._intervalId){var n=this.props,r=n.slideInterval,i=n.slideDuration;this.setState({isPlaying:!0}),this._intervalId=window.setInterval(function(){t.props.infinite||t._canSlideRight()?t.slideToIndex(t.state.currentIndex+1):t.pause()},Math.max(r,i)),this.props.onPlay&&e&&this.props.onPlay(this.state.currentIndex)}}},{key:"pause",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._intervalId&&(window.clearInterval(this._intervalId),this._intervalId=null,this.setState({isPlaying:!1}),this.props.onPause&&t&&this.props.onPause(this.state.currentIndex))}},{key:"setModalFullscreen",value:function(t){this.setState({modalFullscreen:t}),this.props.onScreenChange&&this.props.onScreenChange(t)}},{key:"fullScreen",value:function(){var t=this._imageGallery;this.props.useBrowserFullscreen?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){this.state.isFullscreen&&(this.props.useBrowserFullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"_onScreenChangeEvent",value:function(){var t=this;d.map(function(e){document.addEventListener(e,t._handleScreenChange)})}},{key:"_offScreenChangeEvent",value:function(){var t=this;d.map(function(e){document.removeEventListener(e,t._handleScreenChange)})}},{key:"_isThumbnailVertical",value:function(){var t=this.props.thumbnailPosition;return"left"===t||"right"===t}},{key:"_setScrollDirection",value:function(t){var e=this.state,n=e.scrollingUpDown,r=e.scrollingLeftRight;n||r||(t===s.LEFT||t===s.RIGHT?this.setState({scrollingLeftRight:!0}):this.setState({scrollingUpDown:!0}))}},{key:"_handleOnSwipedTo",value:function(t,e){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this._sufficientSwipeOffset()&&!e||i||(o+=t),t<0?this._canSlideLeft()||(o=r):this._canSlideRight()||(o=r),this._unthrottledSlideToIndex(o)}},{key:"_sufficientSwipeOffset",value:function(){return Math.abs(this.state.offsetPercentage)>this.props.swipeThreshold}},{key:"_canNavigate",value:function(){return this.props.items.length>=2}},{key:"_canSlideLeft",value:function(){return this.props.infinite||(this.props.isRTL?this._canSlideNext():this._canSlidePrevious())}},{key:"_canSlideRight",value:function(){return this.props.infinite||(this.props.isRTL?this._canSlidePrevious():this._canSlideNext())}},{key:"_canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"_canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"_slideThumbnailBar",value:function(t){var e=this.state,n=e.thumbsTranslate,r=e.currentIndex;if(0===this.state.currentIndex)this._setThumbsTranslate(0);else{var i=Math.abs(t-r),o=this._getThumbsTranslate(i);o>0&&(t<r?this._setThumbsTranslate(n-o):t>r&&this._setThumbsTranslate(n+o))}}},{key:"_setThumbsTranslate",value:function(t){this.setState({thumbsTranslate:t})}},{key:"_getThumbsTranslate",value:function(t){if(this.props.disableThumbnailScroll)return 0;var e=this.state,n=e.thumbnailsWrapperWidth,r=e.thumbnailsWrapperHeight,i=void 0;if(this._thumbnails){if(this._isThumbnailVertical()){if(this._thumbnails.scrollHeight<=r)return 0;i=this._thumbnails.scrollHeight-r}else{if(this._thumbnails.scrollWidth<=n||n<=0)return 0;i=this._thumbnails.scrollWidth-n}return t*(i/(this._thumbnails.children.length-1))}}},{key:"_getAlignmentClassName",value:function(t){var e=this.state.currentIndex,n="",r="left",i="right";switch(t){case e-1:n=" "+r;break;case e:n=" center";break;case e+1:n=" "+i}return this.props.items.length>=3&&this.props.infinite&&(0===t&&e===this.props.items.length-1?n=" "+i:t===this.props.items.length-1&&0===e&&(n=" "+r)),n}},{key:"_isGoingFromFirstToLast",value:function(){var t=this.state,e=t.currentIndex,n=t.previousIndex,r=this.props.items.length-1;return 0===n&&e===r}},{key:"_isGoingFromLastToFirst",value:function(){var t=this.state,e=t.currentIndex;return t.previousIndex===this.props.items.length-1&&0===e}},{key:"_getTranslateXForTwoSlide",value:function(t){var e=this.state,n=e.currentIndex,r=e.offsetPercentage,i=e.previousIndex,o=-100*n+100*t+r;return r>0?this.direction="left":r<0&&(this.direction="right"),0===n&&1===t&&r>0?o=-100+r:1===n&&0===t&&r<0&&(o=100+r),n!==i?0===i&&0===t&&0===r&&"left"===this.direction?o=100:1===i&&1===t&&0===r&&"right"===this.direction&&(o=-100):0===n&&1===t&&0===r&&"left"===this.direction?o=-100:1===n&&0===t&&0===r&&"right"===this.direction&&(o=100),o}},{key:"_getThumbnailBarHeight",value:function(){return this._isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"_shouldPushSlideOnInfiniteMode",value:function(t){return!this._slideIsTransitioning(t)||this._ignoreIsTransitioning()&&!this._isFirstOrLastSlide(t)}},{key:"_slideIsTransitioning",value:function(t){var e=this.state,n=e.isTransitioning,r=e.previousIndex,i=e.currentIndex;return n&&!(t===r||t===i)}},{key:"_isFirstOrLastSlide",value:function(t){return t===this.props.items.length-1||0===t}},{key:"_ignoreIsTransitioning",value:function(){var t=this.state,e=t.previousIndex,n=t.currentIndex,r=this.props.items.length-1;return Math.abs(e-n)>1&&!(0===e&&n===r)&&!(e===r&&0===n)}},{key:"_getSlideStyle",value:function(t){var e=this.state,n=e.currentIndex,r=e.offsetPercentage,i=this.props,o=i.infinite,s=i.items,a=i.useTranslate3D,u=i.isRTL,c=-100*n,l=s.length-1,f=(c+100*t)*(u?-1:1)+r;o&&s.length>2&&(0===n&&t===l?f=-100*(u?-1:1)+r:n===l&&0===t&&(f=100*(u?-1:1)+r)),o&&2===s.length&&(f=this._getTranslateXForTwoSlide(t));var d="translate("+f+"%, 0)";return a&&(d="translate3d("+f+"%, 0, 0)"),{WebkitTransform:d,MozTransform:d,msTransform:d,OTransform:d,transform:d}}},{key:"_getThumbnailStyle",value:function(){var t=void 0,e=this.props,n=e.useTranslate3D,r=e.isRTL,i=this.state.thumbsTranslate,o=r?-1*i:i;return this._isThumbnailVertical()?(t="translate(0, "+i+"px)",n&&(t="translate3d(0, "+i+"px, 0)")):(t="translate("+o+"px, 0)",n&&
2(t="translate3d("+o+"px, 0, 0)")),{WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,transform:t}}},{key:"render",value:function(){var t=this,e=this.state,n=e.currentIndex,i=e.isFullscreen,a=e.modalFullscreen,u=e.isPlaying,c=this.props,l=c.infinite,f=c.slideOnThumbnailOver,d=c.isRTL,p=c.lazyLoad,h=this._getThumbnailStyle(),v=this.props.thumbnailPosition,y=this._slideLeft,g=this._slideRight,m=[],_=[],b=[];this.props.items.forEach(function(e,i){var s=t._getAlignmentClassName(i),a=e.originalClass?" "+e.originalClass:"",u=e.thumbnailClass?" "+e.thumbnailClass:"",c=e.renderItem||t.props.renderItem||t._renderItem,d=e.renderThumbInner||t.props.renderThumbInner||t._renderThumbInner,h=!p||s||t._lazyLoaded[i];h&&p&&!t._lazyLoaded[i]&&(t._lazyLoaded[i]=!0);var v=t._getSlideStyle(i),y=o.default.createElement("div",{key:i,className:"image-gallery-slide"+s+a,style:r(v,t.state.style),onClick:t.props.onClick,onTouchMove:t.props.onTouchMove,onTouchEnd:t.props.onTouchEnd,onTouchStart:t.props.onTouchStart,onMouseOver:t.props.onMouseOver,onMouseLeave:t.props.onMouseLeave,role:t.props.onClick&&"button"},h?c(e):o.default.createElement("div",{style:{height:"100%"}}));if(l?t._shouldPushSlideOnInfiniteMode(i)&&m.push(y):m.push(y),t.props.showThumbnails&&_.push(o.default.createElement("a",{key:i,role:"button","aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1),className:"image-gallery-thumbnail"+(n===i?" active":"")+u,onMouseLeave:f?t._onThumbnailMouseLeave:void 0,onMouseOver:function(e){return f?t._onThumbnailMouseOver(e,i):void 0},onClick:function(e){return t._onThumbnailClick(e,i)}},d(e))),t.props.showBullets){b.push(o.default.createElement("button",{key:i,type:"button",className:["image-gallery-bullet",n===i?"active":"",e.bulletClass||""].join(" "),onClick:function(r){return e.bulletOnClick&&e.bulletOnClick({item:e,itemIndex:i,currentIndex:n}),t.slideToIndex.call(t,i,r)},"aria-pressed":n===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}});var S=o.default.createElement("div",{ref:this._initGalleryResizing,className:"image-gallery-slide-wrapper "+v+" "+(d?"image-gallery-rtl":"")},this.props.renderCustomControls&&this.props.renderCustomControls(),this.props.showFullscreenButton&&this.props.renderFullscreenButton(this._toggleFullScreen,i),this.props.showPlayButton&&this.props.renderPlayPauseButton(this._togglePlay,u),this._canNavigate()?[this.props.showNav&&o.default.createElement("span",{key:"navigation"},this.props.renderLeftNav(y,!this._canSlideLeft()),this.props.renderRightNav(g,!this._canSlideRight())),o.default.createElement(s.Swipeable,{className:"image-gallery-swipe",key:"swipeable",delta:0,onSwiping:this._handleSwiping,onSwiped:this._handleOnSwiped},o.default.createElement("div",{className:"image-gallery-slides"},m))]:o.default.createElement("div",{className:"image-gallery-slides"},m),this.props.showBullets&&o.default.createElement("div",{className:"image-gallery-bullets"},o.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},b)),this.props.showIndex&&o.default.createElement("div",{className:"image-gallery-index"},o.default.createElement("span",{className:"image-gallery-index-current"},this.state.currentIndex+1),o.default.createElement("span",{className:"image-gallery-index-separator"},this.props.indexSeparator),o.default.createElement("span",{className:"image-gallery-index-total"},this.props.items.length))),w=["image-gallery",this.props.additionalClass,a?"fullscreen-modal":""].filter(function(t){return"string"==typeof t}).join(" ");return o.default.createElement("div",{ref:function(e){return t._imageGallery=e},className:w,"aria-live":"polite"},o.default.createElement("div",{className:"image-gallery-content"+(i?" fullscreen":"")},("bottom"===v||"right"===v)&&S,this.props.showThumbnails&&o.default.createElement("div",{className:"image-gallery-thumbnails-wrapper "+v+" "+(!this._isThumbnailVertical()&&d?"thumbnails-wrapper-rtl":""),style:this._getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:function(e){return t._thumbnailsWrapper=e}},o.default.createElement("div",{ref:function(e){return t._thumbnails=e}
2,className:"image-gallery-thumbnails-container",style:h,"aria-label":"Thumbnail Navigation"},_))),("top"===v||"left"===v)&&S))}}]),e}(o.default.Component);p.propTypes={flickThreshold:l.default.number,items:l.default.array.isRequired,showNav:l.default.bool,autoPlay:l.default.bool,lazyLoad:l.default.bool,infinite:l.default.bool,showIndex:l.default.bool,showBullets:l.default.bool,showThumbnails:l.default.bool,showPlayButton:l.default.bool,showFullscreenButton:l.default.bool,disableThumbnailScroll:l.default.bool,disableArrowKeys:l.default.bool,disableSwipe:l.default.bool,useBrowserFullscreen:l.default.bool,preventDefaultTouchmoveEvent:l.default.bool,defaultImage:l.default.string,indexSeparator:l.default.string,thumbnailPosition:l.default.string,startIndex:l.default.number,slideDuration:l.default.number,slideInterval:l.default.number,slideOnThumbnailOver:l.default.bool,swipeThreshold:l.default.number,swipingTransitionDuration:l.default.number,onSlide:l.default.func,onScreenChange:l.default.func,onPause:l.default.func,onPlay:l.default.func,onClick:l.default.func,onImageLoad:l.default.func,onImageError:l.default.func,onTouchMove:l.default.func,onTouchEnd:l.default.func,onTouchStart:l.default.func,onMouseOver:l.default.func,onMouseLeave:l.default.func,onThumbnailError:l.default.func,onThumbnailClick:l.default.func,renderCustomControls:l.default.func,renderLeftNav:l.default.func,renderRightNav:l.default.func,renderPlayPauseButton:l.default.func,renderFullscreenButton:l.default.func,renderItem:l.default.func,stopPropagation:l.default.bool,additionalClass:l.default.string,useTranslate3D:l.default.bool,isRTL:l.default.bool},p.defaultProps={items:[],showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableArrowKeys:!1,disableSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,preventDefaultTouchmoveEvent:!1,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,slideInterval:3e3,swipeThreshold:30,renderLeftNav:function(t,e){return o.default.createElement("button",{type:"button",className:"image-gallery-left-nav",disabled:e,onClick:t,"aria-label":"Previous Slide"})},renderRightNav:function(t,e){return o.default.createElement("button",{type:"button",className:"image-gallery-right-nav",disabled:e,onClick:t,"aria-label":"Next Slide"})},renderPlayPauseButton:function(t,e){return o.default.createElement("button",{type:"button",className:"image-gallery-play-button"+(e?" active":""),onClick:t,"aria-label":"Play or Pause Slideshow"})},renderFullscreenButton:function(t,e){return o.default.createElement("button",{type:"button",className:"image-gallery-fullscreen-button"+(e?" active":""),onClick:t,"aria-label":"Open Fullscreen"})}},e.A=p},57234:(t,e,n)=>{t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=142)}([function(t,e,n){"use strict";function r(t,e,n){return y.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function i(t,e){return t.getBlockMap().map(function(n){return a.generate(t,n,e)}).toOrderedMap()}function o(t,e){for(var n,r=t.getBlockBefore(e);r;){if(n=r.getLength())return r.getInlineStyleAt(n-1);r=t.getBlockBefore(r.getKey())}return d()}var s=n(35)||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(111),u=n(80),c=n(186),l=n(1),f=n(47),d=l.OrderedSet,p=l.Record,h=l.Stack,v=p({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:h(),selection:null,treeMap:null,undoStack:h()}),y=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._immutable=e}return t.createEmpty=function(e){return t.createWithContent(u.createFromText(""),e)},t.createWithContent=function(e,n){var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:h(),redoStack:h(),decorator:n||null,selection:f.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=e.decorator,o=s({},e,{treeMap:i(n,r),directionMap:c.getDirectionMap(n)});return new t(new v(o))},t.set=function(e,n){return new t(e.getImmutable().withMutations(function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var s=n.currentContent||e.getCurrentContent();if(o!==r){var u,c=t.get("treeMap");return u=o&&r?function(t,e,n,r,i){return n.merge(e.toSeq().filter(function(e){return r.getDecorations(e,t)!==i.getDecorations(e,t)}).map(function(e){return a.generate(t,e,r)}))}(s,s.getBlockMap(),c,o,r):i(s,o),void t.merge({decorator:o,treeMap:u,nativelyRenderedContent:null})}s!==e.getCurrentContent()&&t.set("treeMap",function(t,e,n,r){var i=t.getCurrentContent().set("entityMap",n),o=i.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter(function(t,e){return t!==o.get(e)}).map(function(t){return a.generate(i,t,r)}))}
vendor: 5,255 bytes, line 2
2(e,s.getBlockMap(),s.getEntityMap(),o)),t.merge(n)}))},t.prototype.toJS=function(){return this.getImmutable().toJS()},t.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.prototype.getSelection=function(){return this.getImmutable().get("selection")},t.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},t.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},t.prototype.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),i=t.getBlockForKey(n);return r>0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):o(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),i=t.getBlockForKey(n);return r<i.getLength()?i.getInlineStyleAt(r):r>0?i.getInlineStyleAt(r-1):o(t,n)}(e,n)},t.prototype.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.prototype.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.prototype.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(t,e){return r(t,e,!1)},t.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),r(t,e,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new f({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){if(e.getCurrentContent()===n)return e;var i="insert-characters"!==r,o=c.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var s=e.getSelection(),a=e.getCurrentContent(),u=e.getUndoStack(),l=n;s!==a.getSelectionAfter()||function(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(e,r)?(u=u.push(a),l=l.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",a.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var d={currentContent:l,directionMap:o,undoStack:u,redoStack:h(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.prototype.getImmutable=function(){return this._immutable},t}();t.exports=y},function(t,e,n){t.exports=function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:O(t)}function n(t){return s(t)?t:C(t)}function r(t){return a(t)?t:T(t)}function i(t){return o(t)&&!u(t)?t:I(t)}function o(t){return!(!t||!t[He])}function s(t){return!(!t||!t[We])}function a(t){return!(!t||!t[Ge])}function u(t){return s(t)||a(t)}function c(t){return!(!t||!t[Ve])}function l(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function d(){}function p(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function h(t){return void 0===t.size&&(t.size=t.__iterate(y)),t.size}function v(t,e){if("number"!=typeof e){var n=e>>>0;
vendor: 3,336 bytes, line 2
2if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?h(t)+e:e}function y(){return!0}function g(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function m(t,e){return b(t,e,0)}function _(t,e){return b(t,e,e)}function b(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function S(t){this.next=t}function w(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function x(){return{value:void 0,done:!0}}function k(t){return!!E(t)}function j(t){return t&&"function"==typeof t.next}function M(t){var e=E(t);return e&&e.call(t)}function E(t){var e=t&&(on&&t[on]||t[sn]);if("function"==typeof e)return e}function N(t){return t&&"number"==typeof t.length}function O(t){return null==t?B():o(t)?t.toSeq():function(t){var e=F(t)||"object"==typeof t&&new D(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function C(t){return null==t?B().toKeyedSeq():o(t)?s(t)?t.toSeq():t.fromEntrySeq():R(t)}function T(t){return null==t?B():o(t)?s(t)?t.entrySeq():t.toIndexedSeq():U(t)}function I(t){return(null==t?B():o(t)?s(t)?t.entrySeq():t:U(t)).toSetSeq()}function L(t){this._array=t,this.size=t.length}function D(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function A(t){this._iterable=t,this.size=t.length||t.size}function z(t){this._iterator=t,this._iteratorCache=[]}function P(t){return!(!t||!t[fn])}function B(){return un||(un=new L([]))}function R(t){var e=Array.isArray(t)?new L(t).fromEntrySeq():j(t)?new z(t).fromEntrySeq():k(t)?new A(t).fromEntrySeq():"object"==typeof t?new D(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function U(t){var e=F(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function F(t){return N(t)?new L(t):j(t)?new z(t):k(t)?new A(t):void 0}function K(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,s=0;s<=o;s++){var a=i[n?o-s:s];if(!1===e(a[1],r?a[0]:s,t))return s+1}return s}return t.__iterateUncached(e,n)}function Y(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,s=0;return new S(function(){var t=i[n?o-s:s];return s++>o?{value:void 0,done:!0}:w(e,r?t[0]:s-1,t[1])})}return t.__iteratorUncached(e,n)}function q(t,e){return e?H(e,t,"",{"":t}):W(t)}function H(t,e,n,r){return Array.isArray(e)?t.call(r,n,T(e).map(function(n,r){return H(t,n,r,e)})):G(e)?t.call(r,n,C(e).map(function(n,r){return H(t,n,r,e)})):e}function W(t){return Array.isArray(t)?T(t).map(W).toList():G(t)?C(t).map(W).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}function V(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function Q(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&V(i[1],t)&&(n||V(i[0],e))})&&r.next().done}var i=!1;
vendor: 1,811 bytes, line 2
2if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var l=t;t=e,e=l}var f=!0,d=e.__iterate(function(e,r){if(n?!t.has(e):i?!V(e,t.get(r,Xe)):!V(t.get(r,Xe),e))return f=!1,!1});return f&&t.size===d}function Z(t,e){if(!(this instanceof Z))return new Z(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(cn)return cn;cn=this}}function J(t,e){if(!t)throw new Error(e)}function X(t,e,n){if(!(this instanceof X))return new X(t,e,n);if(J(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(ln)return ln;ln=this}}function $(){throw TypeError("Abstract")}function tt(){}function et(){}function nt(){}function rt(t){return t>>>1&1073741824|3221225471&t}function it(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return rt(n)}if("string"===e)return t.length>_n?function(t){var e=wn[t];return void 0===e&&(e=ot(t),Sn===bn&&(Sn=0,wn={}),Sn++,wn[t]=e),e}(t):ot(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(yn&&void 0!==(e=dn.get(t)))return e;if(void 0!==(e=t[mn]))return e;if(!vn){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[mn]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++gn,1073741824&gn&&(gn=0),yn)dn.set(t,e);else{if(void 0!==hn&&!1===hn(t))throw new Error("Non-extensible objects are not allowed as keys.");
vendor: 22,329 bytes, line 2
2if(vn)Object.defineProperty(t,mn,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[mn]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[mn]=e}}return e}(t);if("function"==typeof t.toString)return ot(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ot(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return rt(e)}function st(t){J(t!==1/0,"Cannot perform this action with an infinite size.")}function at(t){return null==t?mt():ut(t)&&!c(t)?t:mt().withMutations(function(e){var r=n(t);st(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function ut(t){return!(!t||!t[xn])}function ct(t,e){this.ownerID=t,this.entries=e}function lt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function ft(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function dt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function pt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function ht(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&yt(t._root)}function vt(t,e){return w(t,e[0],e[1])}function yt(t,e){return{node:t,index:0,__prev:e}}function gt(t,e,n,r){var i=Object.create(kn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function mt(){return jn||(jn=gt(0))}function _t(t,e,n){var r,i;if(t._root){var o=l($e),s=l(tn);if(r=bt(t._root,t.__ownerID,0,void 0,e,n,o,s),!s.value)return t;i=t.size+(o.value?n===Xe?-1:1:0)}else{if(n===Xe)return t;i=1,r=new ct(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?gt(i,r):mt()}function bt(t,e,n,r,i,o,s,a){return t?t.update(e,n,r,i,o,s,a):o===Xe?t:(f(a),f(s),new pt(e,r,[i,o]))}function St(t){return t.constructor===pt||t.constructor===dt}function wt(t,e,n,r,i){if(t.keyHash===r)return new dt(e,r,[t.entry,i]);var o,s=(0===n?t.keyHash:t.keyHash>>>n)&Je,a=(0===n?r:r>>>n)&Je;return new lt(e,1<<s|1<<a,s===a?[wt(t,e,n+Qe,r,i)]:(o=new pt(e,r,i),s<a?[t,o]:[o,t]))}function xt(t,e,n,r){t||(t=new d);for(var i=new pt(t,it(n),[n,r]),o=0;o<e.length;o++){var s=e[o];i=i.update(t,0,void 0,s[0],s[1])}return i}function kt(t,e,r){for(var i=[],s=0;s<r.length;s++){var a=r[s],u=n(a);o(a)||(u=u.map(function(t){return q(t)})),i.push(u)}return Et(t,e,i)}function jt(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):V(t,e)?t:e}function Mt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return V(e,i)?e:i}}function Et(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,Xe,function(t){return t===Xe?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function Nt(t,e,n,r){var i=t===Xe,o=e.next();if(o.done){var s=i?n:t,a=r(s);return a===s?t:a}J(i||t&&t.set,"invalid keyPath");var u=o.value,c=i?Xe:t.get(u,Xe),l=Nt(c,e,n,r);return l===c?t:l===Xe?t.remove(u):(i?mt():t).set(u,l)}function Ot(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Ct(t,e,n,r){var i=r?t:p(t);return i[e]=n,i}function Tt(t){var e=zt();if(null==t)return e;if(It(t))return t;var n=r(t),i=n.size;return 0===i?e:(st(i),i>0&&i<Ze?At(0,i,Qe,null,new Lt(n.toArray())):e.withMutations(function(t){t.setSize(i),n.forEach(function(e,n){return t.set(n,e)})}))}function It(t){return!(!t||!t[On])}function Lt(t,e){this.array=t,this.ownerID=e}function Dt(t,e){function n(t,e,n){return 0===e?r(t,n):i(t,e,n)}function r(t,n){var r=n===a?u&&u.array:t&&t.array,i=n>o?0:o-n,c=s-n;return c>Ze&&(c=Ze),function(){if(i===c)return Ln;var t=e?--c:i++;return r&&r[t]}}function i(t,r,i){var a,u=t&&t.array,c=i>o?0:o-i>>r,l=1+(s-i>>r);return l>Ze&&(l=Ze),function(){for(;;){if(a){var t=a();if(t!==Ln)return t;a=null}if(c===l)return Ln;var o=e?--l:c++;a=n(u&&u[o],r-Qe,i+(o<<r))}}}var o=t._origin,s=t._capacity,a=Kt(s),u=t._tail;return n(t._root,t._level,0)}function At(t,e,n,r,i,o,s){var a=Object.create(Cn);return a.size=e-t,a._origin=t,a._capacity=e,a._level=n,a._root=r,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function zt(){return Tn||(Tn=At(0,0,Qe))}function Pt(t,e,n,r,i,o){var s,a=r>>>n&Je,u=t&&a<t.array.length;if(!u&&void 0===i)return t;if(n>0){var c=t&&t.array[a],l=Pt(c,e,n-Qe,r,i,o);return l===c?t:((s=Bt(t,e)).array[a]=l,s)}return u&&t.array[a]===i?t:(f(o),s=Bt(t,e),void 0===i&&a===s.array.length-1?s.array.pop():s.array[a]=i,s)}function Bt(t,e){return e&&t&&e===t.ownerID?t:new Lt(t?t.array.slice():[],e)}function Rt(t,e){if(e>=Kt(t._capacity))return t._tail;if(e<1<<t._level+Qe){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&Je],r-=Qe;return n}}function Ut(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new d,i=t._origin,o=t._capacity,s=i+e,a=void 0===n?o:n<0?o+n:i+n;if(s===i&&a===o)return t;if(s>=a)return t.clear();for(var u=t._level,c=t._root,l=0;s+l<0;)c=new Lt(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Qe);l&&(s+=l,i+=l,a+=l,o+=l);for(var f=Kt(o),p=Kt(a);p>=1<<u+Qe;)c=new Lt(c&&c.array.length?[c]:[],r),u+=Qe;var h=t._tail,v=p<f?Rt(t,a-1):p>f?new Lt([],r):h;if(h&&p>f&&s<o&&h.array.length){for(var y=c=Bt(c,r),g=u;g>Qe;g-=Qe){var m=f>>>g&Je;y=y.array[m]=Bt(y.array[m],r)}y.array[f>>>Qe&Je]=h}if(a<o&&(v=v&&v.removeAfter(r,0,a)),s>=p)s-=p,a-=p,u=Qe,c=null,v=v&&v.removeBefore(r,0,s);else if(s>i||p<f){for(l=0;c;){var _=s>>>u&Je;if(_!==p>>>u&Je)break;_&&(l+=(1<<u)*_),u-=Qe,c=c.array[_]}c&&s>i&&(c=c.removeBefore(r,u,s-l)),c&&p<f&&(c=c.removeAfter(r,u,p-l)),l&&(s-=l,a-=l)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=u,t._root=c,t._tail=v,t.__hash=void 0,t.__altered=!0,t):At(s,a,u,c,v)}function Ft(t,e,n){for(var i=[],s=0,a=0;a<n.length;a++){var u=n[a],c=r(u);c.size>s&&(s=c.size),o(u)||(c=c.map(function(t){return q(t)})),i.push(c)}return s>t.size&&(t=t.setSize(s)),Et(t,e,i)}function Kt(t){return t<Ze?0:t-1>>>Qe<<Qe}function Yt(t){return null==t?Wt():qt(t)?t:Wt().withMutations(function(e){var r=n(t);st(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function qt(t){return ut(t)&&c(t)}function Ht(t,e,n,r){var i=Object.create(Yt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function Wt(){return In||(In=Ht(mt(),zt()))}function Gt(t,e,n){var r,i,o=t._map,s=t._list,a=o.get(e),u=void 0!==a;if(n===Xe){if(!u)return t;s.size>=Ze&&s.size>=2*o.size?(i=s.filter(function(t,e){return void 0!==t&&a!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=a===s.size-1?s.pop():s.set(a,void 0))}else if(u){if(n===s.get(a)[1])return t;r=o,i=s.set(a,[e,n])}else r=o.set(e,s.size),i=s.set(s.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Ht(r,i)}function Vt(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Qt(t){this._iter=t,this.size=t.size}function Zt(t){this._iter=t,this.size=t.size}function Jt(t){this._iter=t,this.size=t.size}function Xt(t){var e=pe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=he,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===rn){var r=t.__iterator(e,n);return new S(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===nn?en:nn,n)},e}function $t(t,e,n){var r=pe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,Xe);return o===Xe?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,s){return!1!==r(e.call(n,t,i,s),i,o)},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(rn,i);return new S(function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return w(r,a,e.call(n,s[1],a,t),i)})},r}function te(t,e){var n=pe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Xt(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=he,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function ee(t,e,n,r){var i=pe(t);return r&&(i.has=function(r){var i=t.get(r,Xe);return i!==Xe&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,Xe);return o!==Xe&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return a++,i(t,r?o:a-1,s)},o),a},i.__iteratorUncached=function(i,o){var s=t.__iterator(rn,o),a=0;return new S(function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return w(i,r?c:a++,l,o)}})},i}function ne(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),g(e,n,i))return t;var o=m(e,i),s=_(n,i);if(o!=o||s!=s)return ne(t.toSeq().cacheResult(),e,n,r);var a,u=s-o;u==u&&(a=u<0?0:u);var c=pe(t);return c.size=0===a?a:t.size&&a||void 0,!r&&P(t)&&a>=0&&(c.get=function(e,n){return(e=v(this,e))>=0&&e<a?t.get(e+o,n):n}),c.__iterateUncached=function(e,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(e,n);var s=0,u=!0,c=0;return t.__iterate(function(t,n){if(!u||!(u=s++<o))return c++,!1!==e(t,r?n:c-1,i)&&c!==a}),c},c.__iteratorUncached=function(e,n){if(0!==a&&n)return this.cacheResult().__iterator(e,n);var i=0!==a&&t.__iterator(e,n),s=0,u=0;return new S(function(){for(;s++<o;)i.next();if(++u>a)return{value:void 0,done:!0};var t=i.next();return r||e===nn?t:w(e,u-1,e===en?void 0:t.value[1],t)})},c}function re(t,e,n,r){var i=pe(t);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,u=0;return t.__iterate(function(t,o,c){if(!a||!(a=e.call(n,t,o,c)))return u++,i(t,r?o:u-1,s)}),u},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(rn,o),u=!0,c=0;return new S(function(){var t,o,l;do{if((t=a.next()).done)return r||i===nn?t:w(i,c++,i===en?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(n,l,o,s))}while(u);return i===rn?t:w(i,o,l,t)})},i}function ie(t,e,n){var r=pe(t);return r.__iterateUncached=function(r,i){var s=0,a=!1;return function t(u,c){var l=this;u.__iterate(function(i,u){return(!e||c<e)&&o(i)?t(i,c+1):!1===r(i,n?u:s++,l)&&(a=!0),!a},i)}(t,0),s},r.__iteratorUncached=function(r,i){var s=t.__iterator(r,i),a=[],u=0;return new S(function(){for(;s;){var t=s.next();if(!1===t.done){var c=t.value;if(r===rn&&(c=c[1]),e&&!(a.length<e)||!o(c))return n?t:w(r,u++,c,t);a.push(s),s=c.__iterator(r,i)}else s=a.pop()}return{value:void 0,done:!0}})},r}function oe(t,e,n){e||(e=ve);var r=s(t),i=0,o=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return o.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?C(o):a(t)?T(o):I(o)}function se(t,e,n){if(e||(e=ve),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return ae(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return ae(e,t,n)?n:t})}function ae(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function ue(t,n,r){var i=pe(t);return i.size=new L(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(nn,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),M(i?t.reverse():t)}),s=0,a=!1;return new S(function(){var e;return a||(e=o.map(function(t){return t.next()}),a=e.some(function(t){return t.done})),a?{value:void 0,done:!0}:w(t,s++,n.apply(null,e.map(function(t){return t.value})))})},i}function ce(t,e){return P(t)?e:t.constructor(e)}function le(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function fe(t){return st(t.size),h(t)}function de(t){return s(t)?n:a(t)?r:i}function pe(t){return Object.create((s(t)?C:a(t)?T:I).prototype)}function he(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function ve(t,e){return t>e?1:t<e?-1:0}function ye(t){var n=M(t);if(!n){if(!N(t))throw new TypeError("Expected iterable or array-like: "+t);n=M(e(t))}return n}function ge(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(t);(function(t,e){try{e.forEach(be.bind(void 0,t))}catch(t){}})(i,s),i.size=s.length,i._name=e,i._keys=s,i._defaultValues=t}this._map=at(o)},i=r.prototype=Object.create(Dn);return i.constructor=r,r}function me(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function _e(t){return t._name||t.constructor.name||"Record"}function be(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){J(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Se(t){return null==t?je():we(t)&&!c(t)?t:je().withMutations(function(e){var n=i(t);st(n.size),n.forEach(function(t){return e.add(t)})})}function we(t){return!(!t||!t[zn])}function xe(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function ke(t,e){var n=Object.create(Pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function je(){return An||(An=ke(mt()))}function Me(t){return null==t?Oe():Ee(t)?t:Oe().withMutations(function(e){var n=i(t);st(n.size),n.forEach(function(t){return e.add(t)})})}function Ee(t){return we(t)&&c(t)}function Ne(t,e){var n=Object.create(Rn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Oe(){return Bn||(Bn=Ne(Wt()))}function Ce(t){return null==t?Le():Te(t)?t:Le().unshiftAll(t)}function Te(t){return!(!t||!t[Fn])}function Ie(t,e,n,r){var i=Object.create(Kn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Le(){return Un||(Un=Ie(0))}function De(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Ae(t,e){return e}function ze(t,e){return[e,t]}function Pe(t){return function(){return!t.apply(this,arguments)}}function Be(t){return function(){return-t.apply(this,arguments)}}function Re(t){return"string"==typeof t?JSON.stringify(t):t}function Ue(){return p(arguments)}function Fe(t,e){return t<e?1:t>e?-1:0}function Ke(t){if(t.size===1/0)return 0;var e=c(t),n=s(t),r=e?1:0;return function(t,e){return e=pn(e,3432918353),e=pn(e<<15|e>>>-15,461845907),e=pn(e<<13|e>>>-13,5),e=pn((e=(e+3864292196|0)^t)^e>>>16,2246822507),rt((e=pn(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Ye(it(t),it(e))|0}:function(t,e){r=r+Ye(it(t),it(e))|0}:e?function(t){r=31*r+it(t)|0}:function(t){r=r+it(t)|0}),r)}function Ye(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var qe=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=s,e.isIndexed=a,e.isAssociative=u,e.isOrdered=c,e.Keyed=n,e.Indexed=r,e.Set=i;var He="@@__IMMUTABLE_ITERABLE__@@",We="@@__IMMUTABLE_KEYED__@@",Ge="@@__IMMUTABLE_INDEXED__@@",Ve="@@__IMMUTABLE_ORDERED__@@",Qe=5,Ze=1<<Qe,Je=Ze-1,Xe={},$e={value:!1},tn={value:!1},en=0,nn=1,rn=2,on="function"==typeof Symbol&&Symbol.iterator,sn="@@iterator",an=on||sn;S.prototype.toString=function(){return"[Iterator]"},S.KEYS=en,S.VALUES=nn,S.ENTRIES=rn,S.prototype.inspect=S.prototype.toSource=function(){return this.toString()},S.prototype[an]=function(){return this},t(O,e),O.of=function(){return O(arguments)},O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(t,e){return K(this,t,e,!0)},O.prototype.__iterator=function(t,e){return Y(this,t,e,!0)},t(C,O),C.prototype.toKeyedSeq=function(){return this},t(T,O),T.of=function(){return T(arguments)},T.prototype.toIndexedSeq=function(){return this},T.prototype.toString=function(){return this.__toString("Seq [","]")},T.prototype.__iterate=function(t,e){return K(this,t,e,!1)},T.prototype.__iterator=function(t,e){return Y(this,t,e,!1)},t(I,O),I.of=function(){return I(arguments)},I.prototype.toSetSeq=function(){return this},O.isSeq=P,O.Keyed=C,O.Set=I,O.Indexed=T;var un,cn,ln,fn="@@__IMMUTABLE_SEQ__@@";O.prototype[fn]=!0,t(L,T),L.prototype.get=function(t,e){return this.has(t)?this._array[v(this,t)]:e},L.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},L.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new S(function(){return i>r?{value:void 0,done:!0}:w(t,i,n[e?r-i++:i++])})},t(D,C),D.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},D.prototype.has=function(t){return this._object.hasOwnProperty(t)},D.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var s=r[e?i-o:o];if(!1===t(n[s],s,this))return o+1}return o},D.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new S(function(){var s=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:w(t,s,n[s])})},D.prototype[Ve]=!0,t(A,T),A.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=M(this._iterable),r=0;if(j(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},A.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=M(this._iterable);if(!j(n))return new S(x);var r=0;return new S(function(){var e=n.next();return e.done?e:w(t,r++,e.value)})},t(z,T),z.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(!1===t(r[i],i++,this))return i;for(var o;!(o=n.next()).done;){var s=o.value;if(r[i]=s,!1===t(s,i++,this))break}return i},z.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new S(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return w(t,i,r[i++])})},t(Z,T),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(t,e){return this.has(t)?this._value:e},Z.prototype.includes=function(t){return V(this._value,t)},Z.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new Z(this._value,_(e,n)-m(t,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(t){return V(this._value,t)?0:-1},Z.prototype.lastIndexOf=function(t){return V(this._value,t)?this.size:-1},Z.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},Z.prototype.__iterator=function(t,e){var n=this,r=0;return new S(function(){return r<n.size?w(t,r++,n._value):{value:void 0,done:!0}})},Z.prototype.equals=function(t){return t instanceof Z?V(this._value,t._value):Q(t)},t(X,T),X.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},X.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},X.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},X.prototype.slice=function(t,e){return g(t,e,this.size)?this:(t=m(t,this.size),(e=_(e,this.size))<=t?new X(0,0):new X(this.get(t,this._end),this.get(e,this._end),this._step))},X.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},X.prototype.lastIndexOf=function(t){return this.indexOf(t)},X.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===t(i,o,this))return o+1;i+=e?-r:r}return o},X.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new S(function(){var s=i;return i+=e?-r:r,o>n?{value:void 0,done:!0}:w(t,o++,s)})},X.prototype.equals=function(t){return t instanceof X?this._start===t._start&&this._end===t._end&&this._step===t._step:Q(this,t)},t($,e),t(tt,$),t(et,$),t(nt,$),$.Keyed=tt,$.Indexed=et,$.Set=nt;var dn,pn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},hn=Object.isExtensible,vn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),yn="function"==typeof WeakMap;yn&&(dn=new WeakMap);var gn=0,mn="__immutablehash__";"function"==typeof Symbol&&(mn=Symbol(mn));var _n=16,bn=255,Sn=0,wn={};t(at,tt),at.prototype.toString=function(){return this.__toString("Map {","}")},at.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},at.prototype.set=function(t,e){return _t(this,t,e)},at.prototype.setIn=function(t,e){return this.updateIn(t,Xe,function(){return e})},at.prototype.remove=function(t){return _t(this,t,Xe)},at.prototype.deleteIn=function(t){return this.updateIn(t,function(){return Xe})},at.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},at.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Nt(this,ye(t),e,n);return r===Xe?void 0:r},at.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):mt()},at.prototype.merge=function(){return kt(this,void 0,arguments)},at.prototype.mergeWith=function(t){return kt(this,t,qe.call(arguments,1
vendor: 4,366 bytes, line 2
2))},at.prototype.mergeIn=function(t){var e=qe.call(arguments,1);return this.updateIn(t,mt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},at.prototype.mergeDeep=function(){return kt(this,jt,arguments)},at.prototype.mergeDeepWith=function(t){var e=qe.call(arguments,1);return kt(this,Mt(t),e)},at.prototype.mergeDeepIn=function(t){var e=qe.call(arguments,1);return this.updateIn(t,mt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},at.prototype.sort=function(t){return Yt(oe(this,t))},at.prototype.sortBy=function(t,e){return Yt(oe(this,e,t))},at.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},at.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},at.prototype.asImmutable=function(){return this.__ensureOwner()},at.prototype.wasAltered=function(){return this.__altered},at.prototype.__iterator=function(t,e){return new ht(this,t,e)},at.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},at.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?gt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},at.isMap=ut;var xn="@@__IMMUTABLE_MAP__@@",kn=at.prototype;kn[xn]=!0,kn.delete=kn.remove,kn.removeIn=kn.deleteIn,ct.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(V(n,i[o][0]))return i[o][1];return r},ct.prototype.update=function(t,e,n,r,i,o,s){for(var a=i===Xe,u=this.entries,c=0,l=u.length;c<l&&!V(r,u[c][0]);c++);var d=c<l;if(d?u[c][1]===i:a)return this;if(f(s),(a||!d)&&f(o),!a||1!==u.length){if(!d&&!a&&u.length>=Mn)return xt(t,u,r,i);var h=t&&t===this.ownerID,v=h?u:p(u);return d?a?c===l-1?v.pop():v[c]=v.pop():v[c]=[r,i]:v.push([r,i]),h?(this.entries=v,this):new ct(t,v)}},lt.prototype.get=function(t,e,n,r){void 0===e&&(e=it(n));var i=1<<((0===t?e:e>>>t)&Je),o=this.bitmap;return 0==(o&i)?r:this.nodes[Ot(o&i-1)].get(t+Qe,e,n,r)},lt.prototype.update=function(t,e,n,r,i,o,s){void 0===n&&(n=it(r));var a=(0===e?n:n>>>e)&Je,u=1<<a,c=this.bitmap,l=0!=(c&u);if(!l&&i===Xe)return this;var f=Ot(c&u-1),d=this.nodes,p=l?d[f]:void 0,h=bt(p,t,e+Qe,n,r,i,o,s);if(h===p)return this;if(!l&&h&&d.length>=En)return function(t,e,n,r,i){for(var o=0,s=new Array(Ze),a=0;0!==n;a++,n>>>=1)s[a]=1&n?e[o++]:void 0;return s[r]=i,new ft(t,o+1,s)}(t,d,c,a,h);if(l&&!h&&2===d.length&&St(d[1^f]))return d[1^f];if(l&&h&&1===d.length&&St(h))return h;var v=t&&t===this.ownerID,y=l?h?c:c^u:c|u,g=l?h?Ct(d,f,h,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,s=0;s<r;s++)s===e&&(o=1),i[s]=t[s+o];return i}(d,f,v):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),s=0,a=0;a<i;a++)a===e?(o[a]=n,s=-1):o[a]=t[a+s];return o}(d,f,h,v);return v?(this.bitmap=y,this.nodes=g,this):new lt(t,y,g)},ft.prototype.get=function(t,e,n,r){void 0===e&&(e=it(n));var i=(0===t?e:e>>>t)&Je,o=this.nodes[i];return o?o.get(t+Qe,e,n,r):r},ft.prototype.update=function(t,e,n,r,i,o,s){void 0===n&&(n=it(r));var a=(0===e?n:n>>>e)&Je,u=i===Xe,c=this.nodes,l=c[a];if(u&&!l)return this;var f=bt(l,t,e+Qe,n,r,i,o,s);if(f===l)return this;var d=this.count;if(l){if(!f&&--d<Nn)return function(t,e,n,r){for(var i=0,o=0,s=new Array(n),a=0,u=1,c=e.length;a<c;a++,u<<=1){var l=e[a];void 0!==l&&a!==r&&(i|=u,s[o++]=l)}return new lt(t,i,s)}(t,c,d,a)}else d++;var p=t&&t===this.ownerID,h=Ct(c,a,f,p);return p?(this.count=d,this.nodes=h,this):new ft(t,d,h)},dt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(V(n,i[o][0]))return i[o][1];return r},dt.prototype.update=function(t,e,n,r,i,o,s){void 0===n&&(n=it(r));var a=i===Xe;if(n!==this.keyHash)return a?this:(f(s),f(o),wt(this,t,e,n,[r,i]));for(var u=this.entries,c=0,l=u.length;c<l&&!V(r,u[c][0]);c++);var d=c<l;if(d?u[c][1]===i:a)return this;if(f(s),(a||!d)&&f(o),a&&2===l)return new pt(t,this.keyHash,u[1^c]);var h=t&&t===this.ownerID,v=h?u:p(u);return d?a?c===l-1?v.pop():v[c]=v.pop():v[c]=[r,i]:v.push([r,i]),h?(this.entries=v,this):new dt(t,this.keyHash,v)},pt.prototype.get=function(t,e,n,r){return V(n,this.entry[0])?this.entry[1]:r},pt.prototype.update=function(t,e,n,r,i,o,s){var a=i===Xe,u=V(r,this.entry[0]);
vendor: 3,346 bytes, line 2
2return(u?i===this.entry[1]:a)?this:(f(s),a?void f(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new pt(t,this.keyHash,[r,i]):(f(o),wt(this,t,e,it(r),[r,i])))},ct.prototype.iterate=dt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},lt.prototype.iterate=ft.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&!1===o.iterate(t,e))return!1}},pt.prototype.iterate=function(t,e){return t(this.entry)},t(ht,S),ht.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return vt(t,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return vt(t,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return vt(t,o.entry);e=this._stack=yt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var jn,Mn=Ze/4,En=Ze/2,Nn=Ze/4;t(Tt,et),Tt.of=function(){return this(arguments)},Tt.prototype.toString=function(){return this.__toString("List [","]")},Tt.prototype.get=function(t,e){if((t=v(this,t))>=0&&t<this.size){var n=Rt(this,t+=this._origin);return n&&n.array[t&Je]}return e},Tt.prototype.set=function(t,e){return function(t,e,n){if((e=v(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Ut(t,e).set(0,n):Ut(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=l(tn);return e>=Kt(t._capacity)?r=Pt(r,t.__ownerID,0,e,n,o):i=Pt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):At(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},Tt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Tt.prototype.insert=function(t,e){return this.splice(t,0,e)},Tt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Qe,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):zt()},Tt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Ut(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},Tt.prototype.pop=function(){return Ut(this,0,-1)},Tt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Ut(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},Tt.prototype.shift=function(){return Ut(this,1)},Tt.prototype.merge=function(){return Ft(this,void 0,arguments)},Tt.prototype.mergeWith=function(t){return Ft(this,t,qe.call(arguments,1))},Tt.prototype.mergeDeep=function(){return Ft(this,jt,arguments)},Tt.prototype.mergeDeepWith=function(t){var e=qe.call(arguments,1);return Ft(this,Mt(t),e)},Tt.prototype.setSize=function(t){return Ut(this,0,t)},Tt.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:Ut(this,m(t,n),_(e,n))},Tt.prototype.__iterator=function(t,e){var n=0,r=Dt(this,e);return new S(function(){var e=r();return e===Ln?{value:void 0,done:!0}:w(t,n++,e)})},Tt.prototype.__iterate=function(t,e){for(var n,r=0,i=Dt(this,e);(n=i())!==Ln&&!1!==t(n,r++,this););return r},Tt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?At(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Tt.isList=It;
vendor: 6,531 bytes, line 2
2var On="@@__IMMUTABLE_LIST__@@",Cn=Tt.prototype;Cn[On]=!0,Cn.delete=Cn.remove,Cn.setIn=kn.setIn,Cn.deleteIn=Cn.removeIn=kn.removeIn,Cn.update=kn.update,Cn.updateIn=kn.updateIn,Cn.mergeIn=kn.mergeIn,Cn.mergeDeepIn=kn.mergeDeepIn,Cn.withMutations=kn.withMutations,Cn.asMutable=kn.asMutable,Cn.asImmutable=kn.asImmutable,Cn.wasAltered=kn.wasAltered,Lt.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&Je;if(r>=this.array.length)return new Lt([],t);var i,o=0===r;if(e>0){var s=this.array[r];if((i=s&&s.removeBefore(t,e-Qe,n))===s&&o)return this}if(o&&!i)return this;var a=Bt(this,t);if(!o)for(var u=0;u<r;u++)a.array[u]=void 0;return i&&(a.array[r]=i),a},Lt.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&Je;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-Qe,n))===o&&i===this.array.length-1)return this}var s=Bt(this,t);return s.array.splice(i+1),r&&(s.array[i]=r),s};var Tn,In,Ln={};t(Yt,at),Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Yt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Yt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},Yt.prototype.set=function(t,e){return Gt(this,t,e)},Yt.prototype.remove=function(t){return Gt(this,t,Xe)},Yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Yt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Yt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Yt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Ht(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Yt.isOrderedMap=qt,Yt.prototype[Ve]=!0,Yt.prototype.delete=Yt.prototype.remove,t(Vt,C),Vt.prototype.get=function(t,e){return this._iter.get(t,e)},Vt.prototype.has=function(t){return this._iter.has(t)},Vt.prototype.valueSeq=function(){return this._iter.valueSeq()},Vt.prototype.reverse=function(){var t=this,e=te(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Vt.prototype.map=function(t,e){var n=this,r=$t(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Vt.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?fe(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Vt.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(nn,e),r=e?fe(this):0;return new S(function(){var i=n.next();return i.done?i:w(t,e?--r:r++,i.value,i)})},Vt.prototype[Ve]=!0,t(Qt,T),Qt.prototype.includes=function(t){return this._iter.includes(t)},Qt.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Qt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(nn,e),r=0;return new S(function(){var e=n.next();return e.done?e:w(t,r++,e.value,e)})},t(Zt,I),Zt.prototype.has=function(t){return this._iter.includes(t)},Zt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Zt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(nn,e);return new S(function(){var e=n.next();return e.done?e:w(t,e.value,e.value,e)})},t(Jt,C),Jt.prototype.entrySeq=function(){return this._iter.toSeq()},Jt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){le(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Jt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(nn,e);return new S(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){le(r);var i=o(r);return w(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},Qt.prototype.cacheResult=Vt.prototype.cacheResult=Zt.prototype.cacheResult=Jt.prototype.cacheResult=he,t(ge,tt),ge.prototype.toString=function(){return this.__toString(_e(this)+" {","}")},ge.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},ge.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},ge.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=me(this,mt()))},ge.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+_e(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:me(this,n)},ge.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:me(this,e)},ge.prototype.wasAltered=function(){return this._map.wasAltered()},ge.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},ge.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},ge.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?me(this,e,t):(this.__ownerID=t,this._map=e,this)};var Dn=ge.prototype;Dn.delete=Dn.remove,Dn.deleteIn=Dn.removeIn=kn.removeIn,Dn.merge=kn.merge,Dn.mergeWith=kn.mergeWith,Dn.mergeIn=kn.mergeIn,Dn.mergeDeep=kn.mergeDeep,Dn.mergeDeepWith=kn.mergeDeepWith,Dn.mergeDeepIn=kn.mergeDeepIn,Dn.setIn=kn.setIn,Dn.update=kn.update,Dn.updateIn=kn.updateIn,Dn.withMutations=kn.withMutations,Dn.asMutable=kn.asMutable,Dn.asImmutable=kn.asImmutable,t(Se,nt),Se.of=function(){return this(arguments)},Se.fromKeys=function(t){return this(n(t).keySeq())},Se.prototype.toString=function(){return this.__toString("Set {","}")},Se.prototype.has=function(t){return this._map.has(t)},Se.prototype.add=function(t){return xe(this,this._map.set(t,!0))},Se.prototype.remove=function(t){return xe(this,this._map.remove(t))},Se.prototype.clear=function(){return xe(this,this._map.clear())},Se.prototype.union=function(){var t=qe.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;
vendor: 6,267 bytes, line 2
2n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Se.prototype.intersect=function(){var t=qe.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Se.prototype.subtract=function(){var t=qe.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Se.prototype.merge=function(){return this.union.apply(this,arguments)},Se.prototype.mergeWith=function(t){var e=qe.call(arguments,1);return this.union.apply(this,e)},Se.prototype.sort=function(t){return Me(oe(this,t))},Se.prototype.sortBy=function(t,e){return Me(oe(this,e,t))},Se.prototype.wasAltered=function(){return this._map.wasAltered()},Se.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Se.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Se.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Se.isSet=we;var An,zn="@@__IMMUTABLE_SET__@@",Pn=Se.prototype;Pn[zn]=!0,Pn.delete=Pn.remove,Pn.mergeDeep=Pn.merge,Pn.mergeDeepWith=Pn.mergeWith,Pn.withMutations=kn.withMutations,Pn.asMutable=kn.asMutable,Pn.asImmutable=kn.asImmutable,Pn.__empty=je,Pn.__make=ke,t(Me,Se),Me.of=function(){return this(arguments)},Me.fromKeys=function(t){return this(n(t).keySeq())},Me.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Me.isOrderedSet=Ee;var Bn,Rn=Me.prototype;Rn[Ve]=!0,Rn.__empty=Oe,Rn.__make=Ne,t(Ce,et),Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("Stack [","]")},Ce.prototype.get=function(t,e){var n=this._head;for(t=v(this,t);n&&t--;)n=n.next;return n?n.value:e},Ce.prototype.peek=function(){return this._head&&this._head.value},Ce.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ie(t,e)},Ce.prototype.pushAll=function(t){if(0===(t=r(t)).size)return this;st(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ie(e,n)},Ce.prototype.pop=function(){return this.slice(1)},Ce.prototype.unshift=function(){return this.push.apply(this,arguments)},Ce.prototype.unshiftAll=function(t){return this.pushAll(t)},Ce.prototype.shift=function(){return this.pop.apply(this,arguments)},Ce.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):Le()},Ce.prototype.slice=function(t,e){if(g(t,e,this.size))return this;var n=m(t,this.size);if(_(e,this.size)!==this.size)return et.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ie(r,i)},Ce.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ie(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ce.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Ce.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new S(function(){if(r){var e=r.value;return r=r.next,w(t,n++,e)}return{value:void 0,done:!0}})},Ce.isStack=Te;var Un,Fn="@@__IMMUTABLE_STACK__@@",Kn=Ce.prototype;Kn[Fn]=!0,Kn.withMutations=kn.withMutations,Kn.asMutable=kn.asMutable,Kn.asImmutable=kn.asImmutable,Kn.wasAltered=kn.wasAltered,e.Iterator=S,De(e,{toArray:function(){st(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Qt(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return at(this.toKeyedSeq())},toObject:function(){st(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Yt(this.toKeyedSeq())},toOrderedSet:function(){return Me(s(this)?this.valueSeq():this)},toSet:function(){return Se(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ce(s(this)?this.valueSeq():this)},toList:function(){return Tt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return ce(this,function(t,e){var r=s(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?R(t):U(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&s(u)||a(t)&&a(u))return u}var c=new L(i);return r?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}(this,qe.call(arguments,0)))},includes:function(t){return this.some(function(e){return V(e,t)})},entries:function(){return this.__iterator(rn)},every:function(t,e){st(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return ce(this,ee(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)}
vendor: 7,490 bytes, line 2
2,forEach:function(t,e){return st(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){st(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(en)},map:function(t,e){return ce(this,$t(this,t,e))},reduce:function(t,e,n){var r,i;return st(this.size),arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,s){i?(i=!1,r=e):r=t.call(n,r,e,o,s)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return ce(this,te(this,!0))},slice:function(t,e){return ce(this,ne(this,t,e,!0))},some:function(t,e){return!this.every(Pe(t),e)},sort:function(t){return ce(this,oe(this,t))},values:function(){return this.__iterator(nn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return h(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=at().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return Q(this,t)},entrySeq:function(){var t=this;if(t._cache)return new L(t._cache);var e=t.toSeq().map(ze).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Pe(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(y)},flatMap:function(t,e){return ce(this,function(t,e,n){var r=de(t);return t.toSeq().map(function(i,o){return r(e.call(n,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return ce(this,ie(this,t,!0))},fromEntrySeq:function(){return new Jt(this)},get:function(t,e){return this.find(function(e,n){return V(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=ye(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Xe):Xe)===Xe)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),i=(c(t)?Yt():at()).asMutable();t.__iterate(function(o,s){i.update(e.call(n,o,s,t),function(t){return(t=t||[]).push(r?[s,o]:o),t})});var o=de(t);return i.map(function(e){return ce(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,Xe)!==Xe},hasIn:function(t){return this.getIn(t,Xe)!==Xe},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:e(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ae).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return se(this,t)},maxBy:function(t,e){return se(this,e,t)},min:function(t){return se(this,t?Be(t):Fe)},minBy:function(t,e){return se(this,e?Be(e):Fe,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ce(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ce(this,re(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Pe(t),e)},sortBy:function(t,e){return ce(this,oe(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ce(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ce(this,function(t,e,n){var r=pe(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var s=0;return t.__iterate(function(t,i,a){return e.call(n,t,i,a)&&++s&&r(t,i,o)}),s},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var s=t.__iterator(rn,i),a=!0;return new S(function(){if(!a)return{value:void 0,done:!0};var t=s.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(n,c,u,o)?r===rn?t:w(r,u,c,t):(a=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Pe(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ke(this))}});var Yn=e.prototype;Yn[He]=!0,Yn[an]=Yn.values,Yn.__toJS=Yn.toArray,Yn.__toStringMapper=Re,Yn.inspect=Yn.toSource=function(){return this.toString()},Yn.chain=Yn.flatMap,Yn.contains=Yn.includes,function(){try{Object.defineProperty(Yn,"length",{get:function(){if(!e.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),De(n,{flip:function(){return ce(this,Xt(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return V(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return V(e,t)})},mapEntries:function(t,e){var n=this,r=0;return ce(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return ce(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var qn=n.prototype;return qn[We]=!0,qn[an]=Yn.entries,qn.__toJS=Yn.toObject,qn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Re(t)},De(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(t,e){return ce(this,ee(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return ce(this,te(this,!1))},slice:function(t,e){return ce(this,ne(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=m(t,t<0?this.count():this.size);var r=this.slice(0,t);return ce(this,1===n?r:r.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return ce(this,ie(this,t,!1))},get:function(t,e){return(t=v(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=v(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return ce(this,function(t,e){var n=pe(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate(function(t,r){return(!o||!1!==n(e,o++,i))&&!1!==n(t,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(nn,r),s=0;return new S(function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?w(n,s++,e):w(n,s++,i.value,i)})},n}(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=ue(this.toSeq(),T.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),ce(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return ce(this,re(this,t,e,!1))},zip:function(){return ce(this,ue(this,Ue,[this].concat(p(arguments))))},zipWith:function(t){var e=p(arguments);return e[0]=this,ce(this,ue(this,t,e))}}),r.prototype[Ge]=!0,r.prototype[Ve]=!0,De(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Yn.includes,De(C,n.prototype),De(T,r.prototype),De(
2I,i.prototype),De(tt,n.prototype),De(et,r.prototype),De(nt,i.prototype),{Iterable:e,Seq:O,Collection:$,Map:at,OrderedMap:Yt,List:Tt,Stack:Ce,Set:Se,OrderedSet:Me,Record:ge,Range:X,Repeat:Z,is:V,fromJS:q}}()},function(t,e,n){"use strict";var r=function(t){};t.exports=function(t,e,n,i,o,s,a,u){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,s,a,u],f=0;(c=new Error(e.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(t,e){t.exports=n(96540)},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";var r=n(11),i=n(175),o=n(108),s=n(1),a=n(176),u=n(178),c=n(57),l=n(181),f=n(182),d=n(2),p=n(183),h=n(109),v=n(184),y=n(185),g=s.OrderedSet,m={replaceText:function(t,e,n,i,o){var s=h(t,e),a=v(s,e),u=r.create({style:i||g(),entity:o||null});return f(a,a.getSelectionAfter(),n,u)},insertText:function(t,e,n,r,i){return e.isCollapsed()||d(!1),m.replaceText(t,e,n,r,i)},moveText:function(t,e,n){var r=c(t,e),i=m.removeRange(t,e,"backward");return m.replaceWithFragment(i,n,r)},replaceWithFragment:function(t,e,n){var r=h(t,e),i=v(r,e);return l(i,i.getSelectionAfter(),n)},removeRange:function(t,e,n){var r,i,s=void 0,a=void 0;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),i=e.getFocusKey(),s=t.getBlockForKey(r),a=t.getBlockForKey(i);var c=e.getStartOffset(),l=e.getEndOffset(),f=s.getEntityAt(c),d=a.getEntityAt(l-1);
2if(r===i&&f&&f===d){var p=u(t.getEntityMap(),s,a,e,n);return v(t,p)}var y=e;o.draft_segmented_entities_behavior&&(y=u(t.getEntityMap(),s,a,e,n));var g=h(t,y);return v(g,y)},splitBlock:function(t,e){var n=h(t,e),r=v(n,e);return y(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return i.add(t,e,n)},removeInlineStyle:function(t,e,n){return i.remove(t,e,n)},setBlockType:function(t,e,n){return p(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return p(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return p(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var r=h(t,e);return a(r,e,n)}};t.exports=m},function(t,e,n){var r=n(70)("wks"),i=n(51),o=n(12).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e,n){var r=n(12),i=n(4),o=n(31),s=n(25),a=function(t,e,n){var u,c,l,f=t&a.F,d=t&a.G,p=t&a.S,h=t&a.P,v=t&a.B,y=t&a.W,g=d?i:i[e]||(i[e]={}),m=g.prototype,_=d?r:p?r[e]:(r[e]||{}).prototype;for(u in d&&(n=e),n)(c=!f&&_&&void 0!==_[u])&&u in g||(l=c?_[u]:n[u],g[u]=d&&"function"!=typeof _[u]?n[u]:v&&c?o(l,r):y&&_[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?o(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[u]=l,t&a.R&&m&&!m[u]&&s(m,u,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},function(t,e,n){var r=n(26),i=n(96),o=n(64),s=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var r=n(174),i=n(46),o=n(11),s=n(189),a=n(34),u=n(80),c=n(83),l=n(114),f=n(190),d=n(116),p=n(58),h=n(5),v=n(112),y=n(0),g=n(62),m=n(251),_=n(47),b=n(253),S={Editor:f,EditorBlock:d,EditorState:y,CompositeDecorator:s,Entity:p,EntityInstance:v,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:a,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:g,Modifier:h,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(129),convertFromRaw:n(256),convertToRaw:b,genKey:n(17),getDefaultKeyBinding:n(89),getVisibleSelectionRect:n(260)};t.exports=S},function(t,e,n){"use strict";var r=n(1),i=r.Map,o=r.OrderedSet,s=r.Record,a=o(),u={style:a,entity:null},c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getStyle=function(){return this.get("style")},e.prototype.getEntity=function(){return this.get("entity")},e.prototype.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,n){var r=t.set("style",t.getStyle().add(n));return e.create(r)},e.removeStyle=function(t,n){var r=t.set("style",t.getStyle().remove(n));return e.create(r)},e.applyEntity=function(t,n){var r=t.getEntity()===n?t:t.set("entity",n);return e.create(r)},e.create=function(t){if(!t)return l;var n=i({style:a,entity:null}).merge(t),r=f.get(n);if(r)return r;var o=new e(n);return f=f.set(n,o),o},e}(s(u)),l=new c,f=i([[i(u),l]]);c.EMPTY=l,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(32)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";
2e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(94));e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(99));e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(t,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";var r={},i=Math.pow(2,24);t.exports=function(){for(var t=void 0;void 0===t||r.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*i).toString(32);return r[t]=!0,t}},function(t,e,n){"use strict";function r(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var i=n.slice(t.length);return!!e&&(i=r?r(i):i,s.contains(i,e))}function i(t){return"Windows"===o.platformName?t.replace(/^\s*NT/,""):t}var o=n(195),s=n(198),a=n(199),u=n(200),c={isBrowser:function(t){return r(o.browserName,o.browserFullVersion,t)},isBrowserArchitecture:function(t){return r(o.browserArchitecture,null,t)},isDevice:function(t){return r(o.deviceName,null,t)},isEngine:function(t){return r(o.engineName,o.engineVersion,t)},isPlatform:function(t){return r(o.platformName,o.platformFullVersion,t,i)},isPlatformArchitecture:function(t){return r(o.platformArchitecture,null,t)}};t.exports=a(c,u)},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],e))}else{var s=[];for(o=0;o<r.parts.length;o++)s.push(l(r.parts[o],e));h[r.id]={id:r.id,refs:1,parts:s}}}}function i(t,e){for(var n=[],r={},i=0;i<t.length;
2i++){var o=t[i],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function o(t,e){var n=y(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=_[_.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),_.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function s(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=_.indexOf(t);e>=0&&_.splice(e,1)}function a(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),o(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),o(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var c=m++;n=g||(g=a(e)),r=f.bind(null,n,c,!1),i=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n,e),i=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=d.bind(null,n),i=function(){s(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function f(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=S(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function d(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=b(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}var h={},v=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),y=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),g=null,m=0,_=[],b=n(289);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=v()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=i(t,e);return r(n,e),function(t){for(var o=[],s=0;s<n.length;s++){var a=n[s];(u=h[a.id]).refs--,o.push(u)}t&&r(i(t,e),e);for(s=0;s<o.length;s++){var u;if(0===(u=o[s]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete h[u.id]}}}};var S=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){t.exports={default:n(150),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(73));e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(n(167)),o=r(n(171)),s=r(n(73));e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){var r;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(n.apply(null,r));else if("object"===o)for(var s in r)i.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=n:void 0!==(r=function(){return n}.apply(e,[]))&&(t.exports=r)}()},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var r=n(9),i=n(42);t.exports=n(13)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(27);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}
2Object.defineProperty(e,"__esModule",{value:!0});var i=n(262);Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}),Object.defineProperty(e,"Constants",{enumerable:!0,get:function(){return r(i).default}});var o=n(263);Object.defineProperty(e,"getEntityRanges",{enumerable:!0,get:function(){return r(o).default}});var s=n(91);Object.defineProperty(e,"getSelectedBlocks",{enumerable:!0,get:function(){return r(s).default}});var a=n(264);Object.defineProperty(e,"selectionContainsEntity",{enumerable:!0,get:function(){return r(a).default}});var u=n(265);Object.defineProperty(e,"callModifierForSelectedBlocks",{enumerable:!0,get:function(){return r(u).default}})},function(t,e,n){"use strict";function r(t){return!0===o[t]}function i(t){return"function"==typeof t}e.__esModule=!0,e.default=function(t,e){null==e&&(e=Object.getPrototypeOf(t));var n=Object.getOwnPropertyNames(e),o=Array.isArray(n),s=0;for(n=o?n:n[Symbol.iterator]();;){var a;if(o){if(s>=n.length)break;a=n[s++]}else{if((s=n.next()).done)break;a=s.value}var u=a;i(e[u])&&!r(u)&&(t[u]=e[u].bind(t))}};var o={getChildContext:!0,render:!0,componentWillMount:!0,componentDidMount:!0,componentWillReceiveProps:!0,shouldComponentUpdate:!0,componentWillUpdate:!0,componentDidUpdate:!0,componentWillUnmount:!0}},function(t,e,n){var r=n(95);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";function r(t,e){return t.getStyle()===e.getStyle()}function i(t,e){return t.getEntity()===e.getEntity()}var o=n(1),s=n(56),a=o.List,u=o.Map,c=o.OrderedSet,l=o.Record,f=c(),d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getKey=function(){return this.get("key")},e.prototype.getType=function(){return this.get("type")},e.prototype.getText=function(){return this.get("text")},e.prototype.getCharacterList=function(){return this.get("characterList")},e.prototype.getLength=function(){return this.getText().length},e.prototype.getDepth=function(){return this.get("depth")},e.prototype.getData=function(){return this.get("data")},e.prototype.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},e.prototype.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},e.prototype.findStyleRanges=function(t,e){s(this.getCharacterList(),r,t,e)},e.prototype.findEntityRanges=function(t,e){s(this.getCharacterList(),i,t,e)},e}(l({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}));t.exports=d},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(a[c]=n[c]);if(r){s=r(n);for(var l=0;l<s.length;l++)o.call(n,s[l])&&(a[s[l]]=n[s[l]])}}return a}},function(t,e){t.exports=n(40961)},function(t,e,n){"use strict";function r(t){return u<=t&&t<=f}function i(t){return d.test(t)}function o(t,e){return 1+r(t.charCodeAt(e))}function s(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!i(t))return t.substr(e,n);var r=t.length;if(r<=0||e>r||n<=0)return"";var s=0;if(e>0){for(;e>0&&s<r;e--)s+=o(t,s);if(s>=r)return""}else if(e<0){for(s=r;e<0&&0<s;e++)s-=o(t,s-1);s<0&&(s=0)}var a=r;if(n<r)for(a=s;n>0&&a<r;n--)a+=o(t,a);return t.substring(s,a)}var a=n(2),u=55296,c=56319,l=56320,f=57343,d=/[\uD800-\uDFFF]/,p={getCodePoints:function(t){for(var e=[],n=0;n<t.length;
2n+=o(t,n))e.push(t.codePointAt(n));return e},getUTF16Length:o,hasSurrogateUnit:i,isCodeUnitInSurrogateRange:r,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||a(!1),e+1===t.length)return!1;var n=t.charCodeAt(e),r=t.charCodeAt(e+1);return u<=n&&n<=c&&l<=r&&r<=f},strlen:function(t){if(!i(t))return t.length;for(var e=0,n=0;n<t.length;n+=o(t,n))e++;return e},substring:function(t,e,n){(e=e||0)<0&&(e=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-e);return s(t,e=e<n?e:n,r)},substr:s};t.exports=p},function(t,e,n){var r=n(65),i=n(67);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(67);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(98),i=n(71);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(99));e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";var r=n(154)(!0);n(74)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(1).OrderedMap,i={createFromArray:function(t){return r(t.map(function(t){return[t.getKey(),t]}))}};t.exports=i},function(t,e,n){"use strict";var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},e.prototype.getAnchorKey=function(){return this.get("anchorKey")},e.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},e.prototype.getFocusKey=function(){return this.get("focusKey")},e.prototype.getFocusOffset=function(){return this.get("focusOffset")},e.prototype.getIsBackward=function(){return this.get("isBackward")},e.prototype.getHasFocus=function(){return this.get("hasFocus")},e.prototype.hasEdgeWithin=function(t,e,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===t){var o=this.getStartOffset();return e<=this.getEndOffset()&&o<=n}if(t!==r&&t!==i)return!1;var s=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=s&&n>=s},e.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},e.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},e.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},e.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},e.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}((0,n(1).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=r},function(t,e,n){"use strict";function r(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(r).join(" "):Array.prototype.map.call(arguments,r).join(" ")}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e,n){var i=t.getSelection(),o=t.getCurrentContent(),s=i;if(i.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return o}else if(t.isSelectionAtStartOfContent())return o;if((s=e(t))===i)return o}return r.removeRange(o,s,n)}},function(t,e,n){var r=n(68),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(26),i=n(156),o=n(71),s=n(69)("IE_PROTO"),a=function(){},u=function(){var t,e=n(97)("iframe"),r=o.length;for(e.style.display="none",n(157).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(9).f,i=n(33),o=n(6)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){n(158);for(var r=n(12),i=n(25),o=n(41),s=n(6)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=r[c],f=l&&l.prototype;f&&!f[s]&&i(f,s,c),o[c]=o.Array}},function(t,e,n){"use strict";
vendor: 4,439 bytes, line 2
2t.exports=function(t,e,n,r){if(t.size){var i=0;t.reduce(function(t,o,s){return e(t,o)||(n(t)&&r(i,s),i=s),o}),n(t.last())&&r(i,t.count())}}},function(t,e,n){"use strict";var r=n(17),i=n(109);t.exports=function(t,e){var n=e.getStartKey(),o=e.getStartOffset(),s=e.getEndKey(),a=e.getEndOffset(),u=i(t,e).getBlockMap(),c=u.keySeq(),l=c.indexOf(n),f=c.indexOf(s)+1;return u.slice(l,f).map(function(t,e){var i=r(),u=t.getText(),c=t.getCharacterList();return n===s?t.merge({key:i,text:u.slice(o,a),characterList:c.slice(o,a)}):e===n?t.merge({key:i,text:u.slice(o),characterList:c.slice(o)}):e===s?t.merge({key:i,text:u.slice(0,a),characterList:c.slice(0,a)}):t.set("key",i)}).toOrderedMap()}},function(t,e,n){"use strict";function r(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var i=n(35)||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(112),s=n(1),a=n(2),u=(0,s.Map)(),c=0,l={getLastCreatedEntityKey:function(){return r("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l.__getLastCreatedEntityKey()},create:function(t,e,n){return r("DraftEntity.create","contentState.createEntity"),l.__create(t,e,n)},add:function(t){return r("DraftEntity.add","contentState.addEntity"),l.__add(t)},get:function(t){return r("DraftEntity.get","contentState.getEntity"),l.__get(t)},mergeData:function(t,e){return r("DraftEntity.mergeData","contentState.mergeEntityData"),l.__mergeData(t,e)},replaceData:function(t,e){return r("DraftEntity.replaceData","contentState.replaceEntityData"),l.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return""+c},__create:function(t,e,n){return l.__add(new o({type:t,mutability:e,data:n||{}}))},__add:function(t){var e=""+ ++c;return u=u.set(e,t),e},__get:function(t){var e=u.get(t);return e||a(!1),e},__mergeData:function(t,e){var n=l.__get(t),r=i({},n.getData(),e),o=n.set("data",r);return u=u.set(t,o),o},__replaceData:function(t,e){var n=l.__get(t).set("data",e);return u=u.set(t,n),n}};t.exports=l},function(t,e,n){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(t,e,n){"use strict";var r={encode:function(t,e,n){return t+"-"+e+"-"+n},decode:function(t){var e=t.split("-"),n=e[0],r=e[1],i=e[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(i,10)}}};t.exports=r},function(t,e,n){"use strict";t.exports=function(t){return"handled"===t||!0===t}},function(t,e,n){"use strict";var r=n(18).isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return r&&t.altKey},hasCommandModifier:function(t){return r?!!t.metaKey&&!t.altKey:i.isCtrlKeyCommand(t)}};t.exports=i},function(t,e,n){var r=n(31),i=n(133),o=n(134),s=n(26),a=n(50),u=n(92),c={},l={};e=t.exports=function(t,e,n,f,d){var p,h,v,y,g=d?function(){return t}:u(t),m=r(n,f,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=a(t.length);p>_;_++)if((y=e?m(s(h=t[_])[0],h[1]):m(t[_]))===c||y===l)return y}else for(v=g.call(t);!(h=v.next()).done;)if((y=i(v,m,h.value,e))===c||y===l)return y};e.BREAK=c,e.RETURN=l},function(t,e,n){var r=n(27);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(66);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(70)("keys"),i=n(51);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(12),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
2ing,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(n(152)),o=r(n(160)),s="function"==typeof o.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};e.default="function"==typeof o.default&&"symbol"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){"use strict";var r=n(75),i=n(7),o=n(102),s=n(25),a=n(33),u=n(41),c=n(155),l=n(54),f=n(100),d=n(6)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,y,g,m){c(n,e,v);var _,b,S,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",k="values"==y,j=!1,M=t.prototype,E=M[d]||M["@@iterator"]||y&&M[y],N=E||w(y),O=y?k?w("entries"):N:void 0,C="Array"==e&&M.entries||E;if(C&&(S=f(C.call(new t)))!==Object.prototype&&S.next&&(l(S,x,!0),r||a(S,d)||s(S,d,h)),k&&E&&"values"!==E.name&&(j=!0,N=function(){return E.call(this)}),r&&!m||!p&&!j&&M[d]||s(M,d,N),u[e]=N,u[x]=h,y)if(_={values:k?N:w("values"),keys:g?N:w("keys"),entries:O},m)for(b in _)b in M||o(M,b,_[b]);else i(i.P+i.F*(p||j),e,_);return _}},function(t,e){t.exports=!0},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(51)("meta"),i=n(27),o=n(33),s=n(9).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(32)(function(){return u(Object.preventExtensions({}))}),l=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,r)&&l(t),t}}},function(t,e,n){var r=n(12),i=n(4),o=n(75),s=n(76),a=n(9).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){"use strict";function r(t){return function(){return t}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){"use strict";var r=n(46),i=n(11),o=n(34),s=n(58),a=n(1),u=n(47),c=n(17),l=n(81),f=a.List,d=a.Record,p=a.Repeat,h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getEntityMap=function(){return s},e.prototype.getBlockMap=function(){return this.get("blockMap")},e.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},e.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},e.prototype.getBlockForKey=function(t){return this.getBlockMap().get(t)},e.prototype.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},e.prototype.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},e.prototype.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,n){return n===t}).skip(1).first()},e.prototype.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).first()},e.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},e.prototype.getFirstBlock=function(){return this.getBlockMap().first()},e.prototype.getLastBlock=function(){return this.getBlockMap().last(
2)},e.prototype.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},e.prototype.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},e.prototype.hasText=function(){var t=this.getBlockMap();return t.size>1||t.first().getLength()>0},e.prototype.createEntity=function(t,e,n){return s.__create(t,e,n),this},e.prototype.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},e.prototype.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},e.prototype.addEntity=function(t){return s.__add(t),this},e.prototype.getEntity=function(t){return s.__get(t)},e.createFromBlockArray=function(t,n){var i=Array.isArray(t)?t:t.contentBlocks,o=r.createFromArray(i),a=o.isEmpty()?new u:u.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:n||s,selectionBefore:a,selectionAfter:a})},e.createFromText=function(t){var n=arguments.length<=1||void 0===arguments[1]?/\r\n?|\n/g:arguments[1],r=t.split(n).map(function(t){return t=l(t),new o({key:c(),text:t,type:"unstyled",characterList:f(p(i.EMPTY,t.length))})});return e.createFromBlockArray(r)},e}(d({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));t.exports=h},function(t,e,n){"use strict";var r=new RegExp("\r","g");t.exports=function(t){return t.replace(r,"")}},function(t,e,n){"use strict";function r(t){return t===a||t===u}function i(t){return r(t)||s(!1),t===a?"ltr":"rtl"}function o(t){c=t}var s=n(2),a="LTR",u="RTL",c=null,l={NEUTRAL:"NEUTRAL",LTR:a,RTL:u,isStrong:r,getHTMLDir:i,getHTMLDirIfDifferent:function(t,e){return r(t)||s(!1),r(e)||s(!1),t===e?null:i(t)},setGlobalDir:o,initGlobalDir:function(){o(a)},getGlobalDir:function(){return c||this.initGlobalDir(),c||s(!1),c}};t.exports=l},function(t,e,n){"use strict";var r=n(1).Map,i=n(3),o=n(48),s=r({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:i.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=s},function(t,e,n){"use strict";function r(t,e){return e&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var n;if(e.isCollapsed()){var i=e.getAnchorKey(),o=e.getAnchorOffset();return o>
20?(n=t.getBlockForKey(i).getEntityAt(o-1),r(t.getEntityMap(),n)):null}var s=e.getStartKey(),a=e.getStartOffset(),u=t.getBlockForKey(s);return n=a===u.getLength()?null:u.getEntityAt(a),r(t.getEntityMap(),n)}},function(t,e,n){"use strict";function r(t,e){var n=i.get(t,e);return"auto"===n||"scroll"===n}var i={get:n(205),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},function(t,e,n){"use strict";var r=n(210),i=n(211);t.exports=function(t){var e=r(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=i(t),o=t===e?t.ownerDocument.documentElement:t,s=t.scrollWidth-o.clientWidth,a=t.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,s)),n.y=Math.max(0,Math.min(n.y,a)),n}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t){for(var e=t;e&&e!==document.documentElement;){var n=r(e);if(null!=n)return n;e=e.parentNode}return null}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.getSelection(),r=t.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),s=i,a=0;if(e>o){var u=r.getKeyBefore(i);null==u?s=i:(s=u,a=r.getBlockForKey(u).getText().length)}else a=o-e;return n.merge({focusKey:s,focusOffset:a,isBackward:!0})}},function(t,e,n){"use strict";function r(t){return a&&t.altKey||f(t)}var i=n(62),o=n(59),s=n(18),a=s.isPlatform("Mac OS X"),u=s.isPlatform("Windows"),c=a&&s.isBrowser("Firefox < 29"),l=i.hasCommandModifier,f=i.isCtrlKeyCommand;t.exports=function(t){switch(t.keyCode){case 66:return l(t)?"bold":null;case 68:return f(t)?"delete":null;case 72:return f(t)?"backspace":null;case 73:return l(t)?"italic":null;case 74:return l(t)?"code":null;case 75:return!u&&f(t)?"secondary-cut":null;case 77:case 79:return f(t)?"split-block":null;case 84:return a&&f(t)?"transpose-characters":null;case 85:return l(t)?"underline":null;case 87:return a&&f(t)?"backspace-word":null;case 89:return f(t)?u?"redo":"secondary-paste":null;case 90:return function(t){return l(t)?t.shiftKey?"redo":"undo":null}(t)||null;case o.RETURN:return"split-block";case o.DELETE:return function(t){return u&&t.shiftKey?null:r(t)?"delete-word":"delete"}(t);case o.BACKSPACE:return function(t){return l(t)&&a?"backspace-to-start-of-line":r(t)?"backspace-word":"backspace"}(t);case o.LEFT:return c&&l(t)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(t)?"move-selection-to-end-of-block":null;default:return null}}},function(t,e,n){t.exports=function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:O(t)}function n(t){return s(t)?t:C(t)}function r(t){return a(t)?t:T(t)}function i(t){return o(t)&&!u(t)?t:I(t)}function o(t){return!(!t||!t[He])}function s(t){return!(!t||!t[We])}function a(t){return!(!t||!t[Ge])}function u(t){return s(t)||a(t)}function c(t){return!(!t||!t[Ve])}function l(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function d(){}function p(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function h(t){return void 0===t.size&&(t.size=t.__iterate(y)),t.size}function v(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?h(t)+e:e}function y(){return!0}function g(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function m(t,e){return b(t,e,0)}function _(t,e){return b(t,e,e)}function b(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function S(t){this.next=t}function w(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function x(){return{value:void 0,done:!0}}function k(t){return!!E(t)}function j(t){return t&&"function"==typeof t.next}function M(t){var e=E(t);return e&&e.call(t)}function E(t){var e=t&&(on&&t[on]||t[sn]);if("function"==typeof e)return e}function N(t){return t&&"number"==typeof t.length}function O(t){return null==t?B():o(t)?t.toSeq():function(t){var e=F(t)||"object"==typeof t&&new D(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function C(t){return null==t?B().toKeyedSeq():o(t)?s(t)?t.toSeq():t.fromEntrySeq():R(t)}function T(t){return null==t?B():o(t)?s(t)?t.entrySeq():t.toIndexedSeq():U(t)}function I(t){return(null==t?B():o(t)?s(t)?t.entrySeq():t:U(t)).toSetSeq()}function L(t){this._array=t,this.size=t.length}function D(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function A(t){this._iterable=t,this.size=t.length||t.size}function z(t){this._iterator=t,this._iteratorCache=[]}function P(t){return!(!t||!t[fn])}function B(){return un||(un=new L([]))}function R(t){var e=Array.isArray(t)?new L(t).fromEntrySeq():j(t)?new z(t).fromEntrySeq():k(t)?new A(t).fromEntrySeq():"object"==typeof t?new D(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function U(t){var e=F(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function F(t){return N(t)?new L(t):j(t)?new z(t):k(t)?new A(t):void 0}function K(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,s=0;s<=o;s++){var a=i[n?o-s:s];if(!1===e(a[1],r?a[0]:s,t))return s+1}return s}return t.__iterateUncached(e,n)}function Y(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,s=0;return new S(function(){var t=i[n?o-s:s];return s++>o?{value:void 0,done:!0}:w(e,r?t[0]:s-1,t[1])})}return t.__iteratorUncached(e,n)}function q(t,e){return e?H(e,t,"",{"":t}):W(t)}function H(t,e,n,r){return Array.isArray(e)?t.call(r,n,T(e).map(function(n,r){return H(t,n,r,e)})):G(e)?t.call(r,n,C(e).map(function(n,r){return H(t,n,r,e)})):e}function W(t){return Array.isArray(t)?T(t).map(W).toList():G(t)?C(t).map(W).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}function V(t,e){if(t===e||t!=t&&e!=e)return!0;
vendor: 2,463 bytes, line 2
2if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function Q(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&V(i[1],t)&&(n||V(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var l=t;t=e,e=l}var f=!0,d=e.__iterate(function(e,r){if(n?!t.has(e):i?!V(e,t.get(r,Xe)):!V(t.get(r,Xe),e))return f=!1,!1});return f&&t.size===d}function Z(t,e){if(!(this instanceof Z))return new Z(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(cn)return cn;cn=this}}function J(t,e){if(!t)throw new Error(e)}function X(t,e,n){if(!(this instanceof X))return new X(t,e,n);if(J(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(ln)return ln;ln=this}}function $(){throw TypeError("Abstract")}function tt(){}function et(){}function nt(){}function rt(t){return t>>>1&1073741824|3221225471&t}function it(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return rt(n)}if("string"===e)return t.length>_n?function(t){var e=wn[t];return void 0===e&&(e=ot(t),Sn===bn&&(Sn=0,wn={}),Sn++,wn[t]=e),e}(t):ot(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(yn&&void 0!==(e=dn.get(t)))return e;if(void 0!==(e=t[mn]))return e;if(!vn){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[mn]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++gn,1073741824&gn&&(gn=0),yn)dn.set(t,e);else{if(void 0!==hn&&!1===hn(t))throw new Error("Non-extensible objects are not allowed as keys.");
vendor: 22,550 bytes, line 2
2if(vn)Object.defineProperty(t,mn,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[mn]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[mn]=e}}return e}(t);if("function"==typeof t.toString)return ot(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ot(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return rt(e)}function st(t){J(t!==1/0,"Cannot perform this action with an infinite size.")}function at(t){return null==t?mt():ut(t)&&!c(t)?t:mt().withMutations(function(e){var r=n(t);st(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function ut(t){return!(!t||!t[xn])}function ct(t,e){this.ownerID=t,this.entries=e}function lt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function ft(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function dt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function pt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function ht(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&yt(t._root)}function vt(t,e){return w(t,e[0],e[1])}function yt(t,e){return{node:t,index:0,__prev:e}}function gt(t,e,n,r){var i=Object.create(kn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function mt(){return jn||(jn=gt(0))}function _t(t,e,n){var r,i;if(t._root){var o=l($e),s=l(tn);if(r=bt(t._root,t.__ownerID,0,void 0,e,n,o,s),!s.value)return t;i=t.size+(o.value?n===Xe?-1:1:0)}else{if(n===Xe)return t;i=1,r=new ct(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?gt(i,r):mt()}function bt(t,e,n,r,i,o,s,a){return t?t.update(e,n,r,i,o,s,a):o===Xe?t:(f(a),f(s),new pt(e,r,[i,o]))}function St(t){return t.constructor===pt||t.constructor===dt}function wt(t,e,n,r,i){if(t.keyHash===r)return new dt(e,r,[t.entry,i]);var o,s=(0===n?t.keyHash:t.keyHash>>>n)&Je,a=(0===n?r:r>>>n)&Je;return new lt(e,1<<s|1<<a,s===a?[wt(t,e,n+Qe,r,i)]:(o=new pt(e,r,i),s<a?[t,o]:[o,t]))}function xt(t,e,n,r){t||(t=new d);for(var i=new pt(t,it(n),[n,r]),o=0;o<e.length;o++){var s=e[o];i=i.update(t,0,void 0,s[0],s[1])}return i}function kt(t,e,r){for(var i=[],s=0;s<r.length;s++){var a=r[s],u=n(a);o(a)||(u=u.map(function(t){return q(t)})),i.push(u)}return Et(t,e,i)}function jt(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):V(t,e)?t:e}function Mt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return V(e,i)?e:i}}function Et(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,Xe,function(t){return t===Xe?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function Nt(t,e,n,r){var i=t===Xe,o=e.next();if(o.done){var s=i?n:t,a=r(s);return a===s?t:a}J(i||t&&t.set,"invalid keyPath");var u=o.value,c=i?Xe:t.get(u,Xe),l=Nt(c,e,n,r);return l===c?t:l===Xe?t.remove(u):(i?mt():t).set(u,l)}function Ot(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Ct(t,e,n,r){var i=r?t:p(t);return i[e]=n,i}function Tt(t){var e=zt();if(null==t)return e;if(It(t))return t;var n=r(t),i=n.size;return 0===i?e:(st(i),i>0&&i<Ze?At(0,i,Qe,null,new Lt(n.toArray())):e.withMutations(function(t){t.setSize(i),n.forEach(function(e,n){return t.set(n,e)})}))}function It(t){return!(!t||!t[On])}function Lt(t,e){this.array=t,this.ownerID=e}function Dt(t,e){function n(t,e,n){return 0===e?r(t,n):i(t,e,n)}function r(t,n){var r=n===a?u&&u.array:t&&t.array,i=n>o?0:o-n,c=s-n;return c>Ze&&(c=Ze),function(){if(i===c)return Ln;var t=e?--c:i++;return r&&r[t]}}function i(t,r,i){var a,u=t&&t.array,c=i>o?0:o-i>>r,l=1+(s-i>>r);return l>Ze&&(l=Ze),function(){for(;;){if(a){var t=a();if(t!==Ln)return t;a=null}if(c===l)return Ln;var o=e?--l:c++;a=n(u&&u[o],r-Qe,i+(o<<r))}}}var o=t._origin,s=t._capacity,a=Kt(s),u=t._tail;return n(t._root,t._level,0)}function At(t,e,n,r,i,o,s){var a=Object.create(Cn);return a.size=e-t,a._origin=t,a._capacity=e,a._level=n,a._root=r,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function zt(){return Tn||(Tn=At(0,0,Qe))}function Pt(t,e,n,r,i,o){var s,a=r>>>n&Je,u=t&&a<t.array.length;if(!u&&void 0===i)return t;if(n>0){var c=t&&t.array[a],l=Pt(c,e,n-Qe,r,i,o);return l===c?t:((s=Bt(t,e)).array[a]=l,s)}return u&&t.array[a]===i?t:(f(o),s=Bt(t,e),void 0===i&&a===s.array.length-1?s.array.pop():s.array[a]=i,s)}function Bt(t,e){return e&&t&&e===t.ownerID?t:new Lt(t?t.array.slice():[],e)}function Rt(t,e){if(e>=Kt(t._capacity))return t._tail;if(e<1<<t._level+Qe){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&Je],r-=Qe;return n}}function Ut(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new d,i=t._origin,o=t._capacity,s=i+e,a=void 0===n?o:n<0?o+n:i+n;if(s===i&&a===o)return t;if(s>=a)return t.clear();for(var u=t._level,c=t._root,l=0;s+l<0;)c=new Lt(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=Qe);l&&(s+=l,i+=l,a+=l,o+=l);for(var f=Kt(o),p=Kt(a);p>=1<<u+Qe;)c=new Lt(c&&c.array.length?[c]:[],r),u+=Qe;var h=t._tail,v=p<f?Rt(t,a-1):p>f?new Lt([],r):h;if(h&&p>f&&s<o&&h.array.length){for(var y=c=Bt(c,r),g=u;g>Qe;g-=Qe){var m=f>>>g&Je;y=y.array[m]=Bt(y.array[m],r)}y.array[f>>>Qe&Je]=h}if(a<o&&(v=v&&v.removeAfter(r,0,a)),s>=p)s-=p,a-=p,u=Qe,c=null,v=v&&v.removeBefore(r,0,s);else if(s>i||p<f){for(l=0;c;){var _=s>>>u&Je;if(_!==p>>>u&Je)break;_&&(l+=(1<<u)*_),u-=Qe,c=c.array[_]}c&&s>i&&(c=c.removeBefore(r,u,s-l)),c&&p<f&&(c=c.removeAfter(r,u,p-l)),l&&(s-=l,a-=l)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=u,t._root=c,t._tail=v,t.__hash=void 0,t.__altered=!0,t):At(s,a,u,c,v)}function Ft(t,e,n){for(var i=[],s=0,a=0;a<n.length;a++){var u=n[a],c=r(u);c.size>s&&(s=c.size),o(u)||(c=c.map(function(t){return q(t)})),i.push(c)}return s>t.size&&(t=t.setSize(s)),Et(t,e,i)}function Kt(t){return t<Ze?0:t-1>>>Qe<<Qe}function Yt(t){return null==t?Wt():qt(t)?t:Wt().withMutations(function(e){var r=n(t);st(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function qt(t){return ut(t)&&c(t)}function Ht(t,e,n,r){var i=Object.create(Yt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function Wt(){return In||(In=Ht(mt(),zt()))}function Gt(t,e,n){var r,i,o=t._map,s=t._list,a=o.get(e),u=void 0!==a;if(n===Xe){if(!u)return t;s.size>=Ze&&s.size>=2*o.size?(i=s.filter(function(t,e){return void 0!==t&&a!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=a===s.size-1?s.pop():s.set(a,void 0))}else if(u){if(n===s.get(a)[1])return t;r=o,i=s.set(a,[e,n])}else r=o.set(e,s.size),i=s.set(s.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Ht(r,i)}function Vt(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Qt(t){this._iter=t,this.size=t.size}function Zt(t){this._iter=t,this.size=t.size}function Jt(t){this._iter=t,this.size=t.size}function Xt(t){var e=pe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=he,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===rn){var r=t.__iterator(e,n);return new S(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===nn?en:nn,n)},e}function $t(t,e,n){var r=pe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,Xe);return o===Xe?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,s){return!1!==r(e.call(n,t,i,s),i,o)},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(rn,i);return new S(function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return w(r,a,e.call(n,s[1],a,t),i)})},r}function te(t,e){var n=pe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Xt(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=he,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function ee(t,e,n,r){var i=pe(t);return r&&(i.has=function(r){var i=t.get(r,Xe);return i!==Xe&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,Xe);return o!==Xe&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return a++,i(t,r?o:a-1,s)},o),a},i.__iteratorUncached=function(i,o){var s=t.__iterator(rn,o),a=0;return new S(function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return w(i,r?c:a++,l,o)}})},i}function ne(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),g(e,n,i))return t;var o=m(e,i),s=_(n,i);if(o!=o||s!=s)return ne(t.toSeq().cacheResult(),e,n,r);var a,u=s-o;u==u&&(a=u<0?0:u);var c=pe(t);return c.size=0===a?a:t.size&&a||void 0,!r&&P(t)&&a>=0&&(c.get=function(e,n){return(e=v(this,e))>=0&&e<a?t.get(e+o,n):n}),c.__iterateUncached=function(e,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(e,n);var s=0,u=!0,c=0;return t.__iterate(function(t,n){if(!u||!(u=s++<o))return c++,!1!==e(t,r?n:c-1,i)&&c!==a}),c},c.__iteratorUncached=function(e,n){if(0!==a&&n)return this.cacheResult().__iterator(e,n);var i=0!==a&&t.__iterator(e,n),s=0,u=0;return new S(function(){for(;s++<o;)i.next();if(++u>a)return{value:void 0,done:!0};var t=i.next();return r||e===nn?t:w(e,u-1,e===en?void 0:t.value[1],t)})},c}function re(t,e,n,r){var i=pe(t);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,u=0;return t.__iterate(function(t,o,c){if(!a||!(a=e.call(n,t,o,c)))return u++,i(t,r?o:u-1,s)}),u},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(rn,o),u=!0,c=0;return new S(function(){var t,o,l;do{if((t=a.next()).done)return r||i===nn?t:w(i,c++,i===en?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(n,l,o,s))}while(u);return i===rn?t:w(i,o,l,t)})},i}function ie(t,e,n){var r=pe(t);return r.__iterateUncached=function(r,i){var s=0,a=!1;return function t(u,c){var l=this;u.__iterate(function(i,u){return(!e||c<e)&&o(i)?t(i,c+1):!1===r(i,n?u:s++,l)&&(a=!0),!a},i)}(t,0),s},r.__iteratorUncached=function(r,i){var s=t.__iterator(r,i),a=[],u=0;return new S(function(){for(;s;){var t=s.next();if(!1===t.done){var c=t.value;if(r===rn&&(c=c[1]),e&&!(a.length<e)||!o(c))return n?t:w(r,u++,c,t);a.push(s),s=c.__iterator(r,i)}else s=a.pop()}return{value:void 0,done:!0}})},r}function oe(t,e,n){e||(e=ve);var r=s(t),i=0,o=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return o.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?C(o):a(t)?T(o):I(o)}function se(t,e,n){if(e||(e=ve),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return ae(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return ae(e,t,n)?n:t})}function ae(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function ue(t,n,r){var i=pe(t);return i.size=new L(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(nn,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),M(i?t.reverse():t)}),s=0,a=!1;return new S(function(){var e;return a||(e=o.map(function(t){return t.next()}),a=e.some(function(t){return t.done})),a?{value:void 0,done:!0}:w(t,s++,n.apply(null,e.map(function(t){return t.value})))})},i}function ce(t,e){return P(t)?e:t.constructor(e)}function le(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function fe(t){return st(t.size),h(t)}function de(t){return s(t)?n:a(t)?r:i}function pe(t){return Object.create((s(t)?C:a(t)?T:I).prototype)}function he(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function ve(t,e){return t>e?1:t<e?-1:0}function ye(t){var n=M(t);if(!n){if(!N(t))throw new TypeError("Expected iterable or array-like: "+t);n=M(e(t))}return n}function ge(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(t);(function(t,e){try{e.forEach(be.bind(void 0,t))}catch(t){}})(i,s),i.size=s.length,i._name=e,i._keys=s,i._defaultValues=t}this._map=at(o)},i=r.prototype=Object.create(Dn);return i.constructor=r,r}function me(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function _e(t){return t._name||t.constructor.name||"Record"}function be(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){J(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Se(t){return null==t?je():we(t)&&!c(t)?t:je().withMutations(function(e){var n=i(t);st(n.size),n.forEach(function(t){return e.add(t)})})}function we(t){return!(!t||!t[zn])}function xe(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function ke(t,e){var n=Object.create(Pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function je(){return An||(An=ke(mt()))}function Me(t){return null==t?Oe():Ee(t)?t:Oe().withMutations(function(e){var n=i(t);st(n.size),n.forEach(function(t){return e.add(t)})})}function Ee(t){return we(t)&&c(t)}function Ne(t,e){var n=Object.create(Rn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Oe(){return Bn||(Bn=Ne(Wt()))}function Ce(t){return null==t?Le():Te(t)?t:Le().unshiftAll(t)}function Te(t){return!(!t||!t[Fn])}function Ie(t,e,n,r){var i=Object.create(Kn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Le(){return Un||(Un=Ie(0))}function De(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Ae(t,e){return e}function ze(t,e){return[e,t]}function Pe(t){return function(){return!t.apply(this,arguments)}}function Be(t){return function(){return-t.apply(this,arguments)}}function Re(t){return"string"==typeof t?JSON.stringify(t):String(t)}function Ue(){return p(arguments)}function Fe(t,e){return t<e?1:t>e?-1:0}function Ke(t){if(t.size===1/0)return 0;var e=c(t),n=s(t),r=e?1:0;return function(t,e){return e=pn(e,3432918353),e=pn(e<<15|e>>>-15,461845907),e=pn(e<<13|e>>>-13,5),e=pn((e=(e+3864292196|0)^t)^e>>>16,2246822507),rt((e=pn(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Ye(it(t),it(e))|0}:function(t,e){r=r+Ye(it(t),it(e))|0}:e?function(t){r=31*r+it(t)|0}:function(t){r=r+it(t)|0}),r)}function Ye(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var qe=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=s,e.isIndexed=a,e.isAssociative=u,e.isOrdered=c,e.Keyed=n,e.Indexed=r,e.Set=i;var He="@@__IMMUTABLE_ITERABLE__@@",We="@@__IMMUTABLE_KEYED__@@",Ge="@@__IMMUTABLE_INDEXED__@@",Ve="@@__IMMUTABLE_ORDERED__@@",Qe=5,Ze=1<<Qe,Je=Ze-1,Xe={},$e={value:!1},tn={value:!1},en=0,nn=1,rn=2,on="function"==typeof Symbol&&Symbol.iterator,sn="@@iterator",an=on||sn;S.prototype.toString=function(){return"[Iterator]"},S.KEYS=en,S.VALUES=nn,S.ENTRIES=rn,S.prototype.inspect=S.prototype.toSource=function(){return this.toString()},S.prototype[an]=function(){return this},t(O,e),O.of=function(){return O(arguments)},O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(t,e){return K(this,t,e,!0)},O.prototype.__iterator=function(t,e){return Y(this,t,e,!0)},t(C,O),C.prototype.toKeyedSeq=function(){return this},t(T,O),T.of=function(){return T(arguments)},T.prototype.toIndexedSeq=function(){return this},T.prototype.toString=function(){return this.__toString("Seq [","]")},T.prototype.__iterate=function(t,e){return K(this,t,e,!1)},T.prototype.__iterator=function(t,e){return Y(this,t,e,!1)},t(I,O),I.of=function(){return I(arguments)},I.prototype.toSetSeq=function(){return this},O.isSeq=P,O.Keyed=C,O.Set=I,O.Indexed=T;var un,cn,ln,fn="@@__IMMUTABLE_SEQ__@@";O.prototype[fn]=!0,t(L,T),L.prototype.get=function(t,e){return this.has(t)?this._array[v(this,t)]:e},L.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},L.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new S(function(){return i>r?{value:void 0,done:!0}:w(t,i,n[e?r-i++:i++])})},t(D,C),D.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},D.prototype.has=function(t){return this._object.hasOwnProperty(t)},D.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var s=r[e?i-o:o];if(!1===t(n[s],s,this))return o+1}return o},D.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new S(function(){var s=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:w(t,s,n[s])})},D.prototype[Ve]=!0,t(A,T),A.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=M(this._iterable),r=0;if(j(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},A.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=M(this._iterable);if(!j(n))return new S(x);var r=0;return new S(function(){var e=n.next();return e.done?e:w(t,r++,e.value)})},t(z,T),z.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(!1===t(r[i],i++,this))return i;for(var o;!(o=n.next()).done;){var s=o.value;if(r[i]=s,!1===t(s,i++,this))break}return i},z.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new S(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return w(t,i,r[i++])})},t(Z,T),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(t,e){return this.has(t)?this._value:e},Z.prototype.includes=function(t){return V(this._value,t)},Z.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new Z(this._value,_(e,n)-m(t,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(t){return V(this._value,t)?0:-1},Z.prototype.lastIndexOf=function(t){return V(this._value,t)?this.size:-1},Z.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},Z.prototype.__iterator=function(t,e){var n=this,r=0;return new S(function(){return r<n.size?w(t,r++,n._value):{value:void 0,done:!0}})},Z.prototype.equals=function(t){return t instanceof Z?V(this._value,t._value):Q(t)},t(X,T),X.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},X.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},X.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},X.prototype.slice=function(t,e){return g(t,e,this.size)?this:(t=m(t,this.size),(e=_(e,this.size))<=t?new X(0,0):new X(this.get(t,this._end),this.get(e,this._end),this._step))},X.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},X.prototype.lastIndexOf=function(t){return this.indexOf(t)},X.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===t(i,o,this))return o+1;i+=e?-r:r}return o},X.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new S(function(){var s=i;return i+=e?-r:r,o>n?{value:void 0,done:!0}:w(t,o++,s)})},X.prototype.equals=function(t){return t instanceof X?this._start===t._start&&this._end===t._end&&this._step===t._step:Q(this,t)},t($,e),t(tt,$),t(et,$),t(nt,$),$.Keyed=tt,$.Indexed=et,$.Set=nt;var dn,pn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},hn=Object.isExtensible,vn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),yn="function"==typeof WeakMap;yn&&(dn=new WeakMap);var gn=0,mn="__immutablehash__";"function"==typeof Symbol&&(mn=Symbol(mn));var _n=16,bn=255,Sn=0,wn={};t(at,tt),at.of=function(){var t=qe.call(arguments,0);return mt().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},at.prototype.toString=function(){return this.__toString("Map {","}")},at.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},at.prototype.set=function(t,e){return _t(this,t,e)},at.prototype.setIn=function(t,e){return this.updateIn(t,Xe,function(){return e})},at.prototype.remove=function(t){return _t(this,t,Xe)},at.prototype.deleteIn=function(t){return this.updateIn(t,function(){return Xe})},at.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},at.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Nt(this,ye(t),e,n);return r===Xe?void 0:r},at.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):mt()},at.prototype.merge=function(){return kt(this,void 0,arguments)},at.prototype.mergeWith=function(t){return kt(this,t,qe.call(arguments,1
vendor: 4,366 bytes, line 2
2))},at.prototype.mergeIn=function(t){var e=qe.call(arguments,1);return this.updateIn(t,mt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},at.prototype.mergeDeep=function(){return kt(this,jt,arguments)},at.prototype.mergeDeepWith=function(t){var e=qe.call(arguments,1);return kt(this,Mt(t),e)},at.prototype.mergeDeepIn=function(t){var e=qe.call(arguments,1);return this.updateIn(t,mt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},at.prototype.sort=function(t){return Yt(oe(this,t))},at.prototype.sortBy=function(t,e){return Yt(oe(this,e,t))},at.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},at.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},at.prototype.asImmutable=function(){return this.__ensureOwner()},at.prototype.wasAltered=function(){return this.__altered},at.prototype.__iterator=function(t,e){return new ht(this,t,e)},at.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},at.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?gt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},at.isMap=ut;var xn="@@__IMMUTABLE_MAP__@@",kn=at.prototype;kn[xn]=!0,kn.delete=kn.remove,kn.removeIn=kn.deleteIn,ct.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(V(n,i[o][0]))return i[o][1];return r},ct.prototype.update=function(t,e,n,r,i,o,s){for(var a=i===Xe,u=this.entries,c=0,l=u.length;c<l&&!V(r,u[c][0]);c++);var d=c<l;if(d?u[c][1]===i:a)return this;if(f(s),(a||!d)&&f(o),!a||1!==u.length){if(!d&&!a&&u.length>=Mn)return xt(t,u,r,i);var h=t&&t===this.ownerID,v=h?u:p(u);return d?a?c===l-1?v.pop():v[c]=v.pop():v[c]=[r,i]:v.push([r,i]),h?(this.entries=v,this):new ct(t,v)}},lt.prototype.get=function(t,e,n,r){void 0===e&&(e=it(n));var i=1<<((0===t?e:e>>>t)&Je),o=this.bitmap;return 0==(o&i)?r:this.nodes[Ot(o&i-1)].get(t+Qe,e,n,r)},lt.prototype.update=function(t,e,n,r,i,o,s){void 0===n&&(n=it(r));var a=(0===e?n:n>>>e)&Je,u=1<<a,c=this.bitmap,l=0!=(c&u);if(!l&&i===Xe)return this;var f=Ot(c&u-1),d=this.nodes,p=l?d[f]:void 0,h=bt(p,t,e+Qe,n,r,i,o,s);if(h===p)return this;if(!l&&h&&d.length>=En)return function(t,e,n,r,i){for(var o=0,s=new Array(Ze),a=0;0!==n;a++,n>>>=1)s[a]=1&n?e[o++]:void 0;return s[r]=i,new ft(t,o+1,s)}(t,d,c,a,h);if(l&&!h&&2===d.length&&St(d[1^f]))return d[1^f];if(l&&h&&1===d.length&&St(h))return h;var v=t&&t===this.ownerID,y=l?h?c:c^u:c|u,g=l?h?Ct(d,f,h,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,s=0;s<r;s++)s===e&&(o=1),i[s]=t[s+o];return i}(d,f,v):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),s=0,a=0;a<i;a++)a===e?(o[a]=n,s=-1):o[a]=t[a+s];return o}(d,f,h,v);return v?(this.bitmap=y,this.nodes=g,this):new lt(t,y,g)},ft.prototype.get=function(t,e,n,r){void 0===e&&(e=it(n));var i=(0===t?e:e>>>t)&Je,o=this.nodes[i];return o?o.get(t+Qe,e,n,r):r},ft.prototype.update=function(t,e,n,r,i,o,s){void 0===n&&(n=it(r));var a=(0===e?n:n>>>e)&Je,u=i===Xe,c=this.nodes,l=c[a];if(u&&!l)return this;var f=bt(l,t,e+Qe,n,r,i,o,s);if(f===l)return this;var d=this.count;if(l){if(!f&&--d<Nn)return function(t,e,n,r){for(var i=0,o=0,s=new Array(n),a=0,u=1,c=e.length;a<c;a++,u<<=1){var l=e[a];void 0!==l&&a!==r&&(i|=u,s[o++]=l)}return new lt(t,i,s)}(t,c,d,a)}else d++;var p=t&&t===this.ownerID,h=Ct(c,a,f,p);return p?(this.count=d,this.nodes=h,this):new ft(t,d,h)},dt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(V(n,i[o][0]))return i[o][1];return r},dt.prototype.update=function(t,e,n,r,i,o,s){void 0===n&&(n=it(r));var a=i===Xe;if(n!==this.keyHash)return a?this:(f(s),f(o),wt(this,t,e,n,[r,i]));for(var u=this.entries,c=0,l=u.length;c<l&&!V(r,u[c][0]);c++);var d=c<l;if(d?u[c][1]===i:a)return this;if(f(s),(a||!d)&&f(o),a&&2===l)return new pt(t,this.keyHash,u[1^c]);var h=t&&t===this.ownerID,v=h?u:p(u);return d?a?c===l-1?v.pop():v[c]=v.pop():v[c]=[r,i]:v.push([r,i]),h?(this.entries=v,this):new dt(t,this.keyHash,v)},pt.prototype.get=function(t,e,n,r){return V(n,this.entry[0])?this.entry[1]:r},pt.prototype.update=function(t,e,n,r,i,o,s){var a=i===Xe,u=V(r,this.entry[0]);
vendor: 22,801 bytes, line 2
2return(u?i===this.entry[1]:a)?this:(f(s),a?void f(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new pt(t,this.keyHash,[r,i]):(f(o),wt(this,t,e,it(r),[r,i])))},ct.prototype.iterate=dt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},lt.prototype.iterate=ft.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&!1===o.iterate(t,e))return!1}},pt.prototype.iterate=function(t,e){return t(this.entry)},t(ht,S),ht.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return vt(t,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return vt(t,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return vt(t,o.entry);e=this._stack=yt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var jn,Mn=Ze/4,En=Ze/2,Nn=Ze/4;t(Tt,et),Tt.of=function(){return this(arguments)},Tt.prototype.toString=function(){return this.__toString("List [","]")},Tt.prototype.get=function(t,e){if((t=v(this,t))>=0&&t<this.size){var n=Rt(this,t+=this._origin);return n&&n.array[t&Je]}return e},Tt.prototype.set=function(t,e){return function(t,e,n){if((e=v(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Ut(t,e).set(0,n):Ut(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=l(tn);return e>=Kt(t._capacity)?r=Pt(r,t.__ownerID,0,e,n,o):i=Pt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):At(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},Tt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Tt.prototype.insert=function(t,e){return this.splice(t,0,e)},Tt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Qe,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):zt()},Tt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Ut(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},Tt.prototype.pop=function(){return Ut(this,0,-1)},Tt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Ut(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},Tt.prototype.shift=function(){return Ut(this,1)},Tt.prototype.merge=function(){return Ft(this,void 0,arguments)},Tt.prototype.mergeWith=function(t){return Ft(this,t,qe.call(arguments,1))},Tt.prototype.mergeDeep=function(){return Ft(this,jt,arguments)},Tt.prototype.mergeDeepWith=function(t){var e=qe.call(arguments,1);return Ft(this,Mt(t),e)},Tt.prototype.setSize=function(t){return Ut(this,0,t)},Tt.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:Ut(this,m(t,n),_(e,n))},Tt.prototype.__iterator=function(t,e){var n=0,r=Dt(this,e);return new S(function(){var e=r();return e===Ln?{value:void 0,done:!0}:w(t,n++,e)})},Tt.prototype.__iterate=function(t,e){for(var n,r=0,i=Dt(this,e);(n=i())!==Ln&&!1!==t(n,r++,this););return r},Tt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?At(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Tt.isList=It;var On="@@__IMMUTABLE_LIST__@@",Cn=Tt.prototype;Cn[On]=!0,Cn.delete=Cn.remove,Cn.setIn=kn.setIn,Cn.deleteIn=Cn.removeIn=kn.removeIn,Cn.update=kn.update,Cn.updateIn=kn.updateIn,Cn.mergeIn=kn.mergeIn,Cn.mergeDeepIn=kn.mergeDeepIn,Cn.withMutations=kn.withMutations,Cn.asMutable=kn.asMutable,Cn.asImmutable=kn.asImmutable,Cn.wasAltered=kn.wasAltered,Lt.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&Je;if(r>=this.array.length)return new Lt([],t);var i,o=0===r;if(e>0){var s=this.array[r];if((i=s&&s.removeBefore(t,e-Qe,n))===s&&o)return this}if(o&&!i)return this;var a=Bt(this,t);if(!o)for(var u=0;u<r;u++)a.array[u]=void 0;return i&&(a.array[r]=i),a},Lt.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&Je;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-Qe,n))===o&&i===this.array.length-1)return this}var s=Bt(this,t);return s.array.splice(i+1),r&&(s.array[i]=r),s};var Tn,In,Ln={};t(Yt,at),Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Yt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Yt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},Yt.prototype.set=function(t,e){return Gt(this,t,e)},Yt.prototype.remove=function(t){return Gt(this,t,Xe)},Yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Yt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Yt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Yt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Ht(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Yt.isOrderedMap=qt,Yt.prototype[Ve]=!0,Yt.prototype.delete=Yt.prototype.remove,t(Vt,C),Vt.prototype.get=function(t,e){return this._iter.get(t,e)},Vt.prototype.has=function(t){return this._iter.has(t)},Vt.prototype.valueSeq=function(){return this._iter.valueSeq()},Vt.prototype.reverse=function(){var t=this,e=te(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Vt.prototype.map=function(t,e){var n=this,r=$t(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Vt.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?fe(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Vt.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(nn,e),r=e?fe(this):0;return new S(function(){var i=n.next();return i.done?i:w(t,e?--r:r++,i.value,i)})},Vt.prototype[Ve]=!0,t(Qt,T),Qt.prototype.includes=function(t){return this._iter.includes(t)},Qt.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Qt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(nn,e),r=0;return new S(function(){var e=n.next();return e.done?e:w(t,r++,e.value,e)})},t(Zt,I),Zt.prototype.has=function(t){return this._iter.includes(t)},Zt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Zt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(nn,e);return new S(function(){var e=n.next();return e.done?e:w(t,e.value,e.value,e)})},t(Jt,C),Jt.prototype.entrySeq=function(){return this._iter.toSeq()},Jt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){le(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Jt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(nn,e);return new S(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){le(r);var i=o(r);return w(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},Qt.prototype.cacheResult=Vt.prototype.cacheResult=Zt.prototype.cacheResult=Jt.prototype.cacheResult=he,t(ge,tt),ge.prototype.toString=function(){return this.__toString(_e(this)+" {","}")},ge.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},ge.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},ge.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=me(this,mt()))},ge.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+_e(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:me(this,n)},ge.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:me(this,e)},ge.prototype.wasAltered=function(){return this._map.wasAltered()},ge.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},ge.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},ge.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?me(this,e,t):(this.__ownerID=t,this._map=e,this)};var Dn=ge.prototype;Dn.delete=Dn.remove,Dn.deleteIn=Dn.removeIn=kn.removeIn,Dn.merge=kn.merge,Dn.mergeWith=kn.mergeWith,Dn.mergeIn=kn.mergeIn,Dn.mergeDeep=kn.mergeDeep,Dn.mergeDeepWith=kn.mergeDeepWith,Dn.mergeDeepIn=kn.mergeDeepIn,Dn.setIn=kn.setIn,Dn.update=kn.update,Dn.updateIn=kn.updateIn,Dn.withMutations=kn.withMutations,Dn.asMutable=kn.asMutable,Dn.asImmutable=kn.asImmutable,t(Se,nt),Se.of=function(){return this(arguments)},Se.fromKeys=function(t){return this(n(t).keySeq())},Se.prototype.toString=function(){return this.__toString("Set {","}")},Se.prototype.has=function(t){return this._map.has(t)},Se.prototype.add=function(t){return xe(this,this._map.set(t,!0))},Se.prototype.remove=function(t){return xe(this,this._map.remove(t))},Se.prototype.clear=function(){return xe(this,this._map.clear())},Se.prototype.union=function(){var t=qe.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Se.prototype.intersect=function(){var t=qe.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Se.prototype.subtract=function(){var t=qe.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Se.prototype.merge=function(){return this.union.apply(this,arguments)},Se.prototype.mergeWith=function(t){var e=qe.call(arguments,1);return this.union.apply(this,e)},Se.prototype.sort=function(t){return Me(oe(this,t))},Se.prototype.sortBy=function(t,e){return Me(oe(this,e,t))},Se.prototype.wasAltered=function(){return this._map.wasAltered()},Se.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Se.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Se.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Se.isSet=we;var An,zn="@@__IMMUTABLE_SET__@@",Pn=Se.prototype;Pn[zn]=!0,Pn.delete=Pn.remove,Pn.mergeDeep=Pn.merge,Pn.mergeDeepWith=Pn.mergeWith,Pn.withMutations=kn.withMutations,Pn.asMutable=kn.asMutable,Pn.asImmutable=kn.asImmutable,Pn.__empty=je,Pn.__make=ke,t(Me,Se),Me.of=function(){return this(arguments)},Me.fromKeys=function(t){return this(n(t).keySeq())},Me.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Me.isOrderedSet=Ee;var Bn,Rn=Me.prototype;Rn[Ve]=!0,Rn.__empty=Oe,Rn.__make=Ne,t(Ce,et),Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("Stack [","]")},Ce.prototype.get=function(t,e){var n=this._head;for(t=v(this,t);n&&t--;)n=n.next;return n?n.value:e},Ce.prototype.peek=function(){return this._head&&this._head.value},Ce.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ie(t,e)},Ce.prototype.pushAll=function(t){if(0===(t=r(t)).size)return this;st(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ie(e,n)},Ce.prototype.pop=function(){return this.slice(1)},Ce.prototype.unshift=function(){return this.push.apply(this,arguments)},Ce.prototype.unshiftAll=function(t){return this.pushAll(t)},Ce.prototype.shift=function(){return this.pop.apply(this,arguments)},Ce.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):Le()},Ce.prototype.slice=function(t,e){if(g(t,e,this.size))return this;var n=m(t,this.size);if(_(e,this.size)!==this.size)return et.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ie(r,i)},Ce.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ie(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ce.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Ce.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new S(function(){if(r){var e=r.value;return r=r.next,w(t,n++,e)}return{value:void 0,done:!0}})},Ce.isStack=Te;var Un,Fn="@@__IMMUTABLE_STACK__@@",Kn=Ce.prototype;Kn[Fn]=!0,Kn.withMutations=kn.withMutations,Kn.asMutable=kn.asMutable,Kn.asImmutable=kn.asImmutable,Kn.wasAltered=kn.wasAltered,e.Iterator=S,De(e,{toArray:function(){st(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Qt(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return at(this.toKeyedSeq())},toObject:function(){st(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Yt(this.toKeyedSeq())},toOrderedSet:function(){return Me(s(this)?this.valueSeq():this)},toSet:function(){return Se(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ce(s(this)?this.valueSeq():this)},toList:function(){return Tt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return ce(this,function(t,e){var r=s(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?R(t):U(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&s(u)||a(t)&&a(u))return u}var c=new L(i);return r?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}(this,qe.call(arguments,0)))},includes:function(t){return this.some(function(e){return V(e,t)})},entries:function(){return this.__iterator(rn)},every:function(t,e){st(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return ce(this,ee(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return st(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){st(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(en)},map:function(t,e){return ce(this,$t(this,t,e))},reduce:function(t,e,n){var r,i;return st(this.size),arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,s){i?(i=!1,r=e):r=t.call(n,r,e,o,s)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return ce(this,te(this,!0))},slice:function(t,e){return ce(this,ne(this,t,e,!0))},some:function(t,e){return!this.every(Pe(t),e)},sort:function(t){return ce(this,oe(this,t))},values:function(){return this.__iterator(nn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return h(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=at().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return Q(this,t)},entrySeq:function(){var t=this;if(t._cache)return new L(t._cache);var e=t.toSeq().map(ze).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Pe(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(y)},flatMap:function(t,e){return ce(this,function(t,e,n){var r=de(t);return t.toSeq().map(function(i,o){return r(e.call(n,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return ce(this,ie(this,t,!0))},fromEntrySeq:function(){return new Jt(this)},get:function(t,e){return this.find(function(e,n){return V(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=ye(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,Xe):Xe)===Xe)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),i=(c(t)?Yt():at()).asMutable();t.__iterate(function(o,s){i.update(e.call(n,o,s,t),function(t){return(t=t||[]).push(r?[s,o]:o),t})});var o=de(t);return i.map(function(e){return ce(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,Xe)!==Xe},hasIn:function(t){return this.getIn(t,Xe)!==Xe},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:e(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return V(e,t)})},keySeq:function(){return this.toSeq().map(Ae).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return se(this,t)},maxBy:function(t,e){return se(this,e,t)},min:function(t){return se(this,t?Be(t):Fe)},minBy:function(t,e){return se(this,e?Be(e):Fe,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ce(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ce(this,re(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Pe(t),e)},sortBy:function(t,e){return ce(this,oe(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ce(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ce(this,function(t,e,n){var r=pe(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var s=0;return t.__iterate(function(t,i,a){return e.call(n,t,i,a)&&++s&&r(t,i,o)}),s},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var s=t.__iterator(rn,i),a=!0;return new S(function(){if(!a)return{value:void 0,done:!0};var t=s.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(n,c,u,o)?r===rn?t:w(r,u,c,t):(a=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Pe(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ke(this))}});var Yn=e.prototype;Yn[He]=!0,Yn[an]=Yn.values,Yn.__toJS=Yn.toArray,Yn.__toStringMapper=Re,Yn.inspect=Yn.toSource=function(){return this.toString()},Yn.chain=Yn.flatMap,Yn.contains=Yn.includes,De(n,{flip:function(){return ce(this,Xt(this))},mapEntries:function(t,e){var n=this,r=0;return ce(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return ce(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var qn=n.prototype;return qn[We]=!0,qn[an]=Yn.entries,qn.__toJS=Yn.toObject,qn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Re(t)},De(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(t,e){return ce(this,ee(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return ce(this,te(this,!1))},slice:function(t,e){return ce(this,ne(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=m(t,t<0?this.count():this.size);var r=this.slice(0,t);return ce(this,1===n?r:r.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return ce(this,ie(this,t,!1))},get:function(t,e){return(t=v(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=v(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return ce(this,function(t,e){var n=pe(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate(function(t,r){return(!o||!1!==n(e,o++,i))&&!1!==n(t,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(nn,r),s=0;return new S(function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?w(n,s++,e):w(n,s++,i.value,i)})},n}(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=ue(this.toSeq(),T.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),ce(this,n)}
vendor: 3,900 bytes, line 2
2,keySeq:function(){return X(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return ce(this,re(this,t,e,!1))},zip:function(){return ce(this,ue(this,Ue,[this].concat(p(arguments))))},zipWith:function(t){var e=p(arguments);return e[0]=this,ce(this,ue(this,t,e))}}),r.prototype[Ge]=!0,r.prototype[Ve]=!0,De(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Yn.includes,i.prototype.contains=i.prototype.includes,De(C,n.prototype),De(T,r.prototype),De(I,i.prototype),De(tt,n.prototype),De(et,r.prototype),De(nt,i.prototype),{Iterable:e,Seq:O,Collection:$,Map:at,OrderedMap:Yt,List:Tt,Stack:Ce,Set:Se,OrderedSet:Me,Record:ge,Range:X,Repeat:Z,is:V,fromJS:q}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=e===n,i=t.getBlockForKey(e);if(!i)return[];var o=[i];if(!r)for(var s=e;s!==n;){var a=t.getBlockAfter(s);if(!a){o=[];break}o.push(a),s=a.getKey()}return o}},function(t,e,n){var r=n(93),i=n(6)("iterator"),o=n(41);t.exports=n(4).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(66),i=n(6)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){t.exports={default:n(143),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports=!n(13)&&!n(32)(function(){return 7!=Object.defineProperty(n(97)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(27),i=n(12).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(33),i=n(38),o=n(146)(!1),s=n(69)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){t.exports={default:n(148),__esModule:!0}},function(t,e,n){var r=n(33),i=n(39),o=n(69)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(7),i=n(4),o=n(32);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){t.exports=n(25)},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(66);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(98),i=n(71).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(52),i=n(42),o=n(38),s=n(64),a=n(33),u=n(96),c=Object.getOwnPropertyDescriptor;e.f=n(13)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){"use strict";t.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1}},function(t,e,n){"use strict";function r(t,e,n){var r;return s(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(r={start:t,end:e})}),"object"!=typeof r&&a(!1),r}function i(t,e,n){var i=e.getCharacterList(),s=n>0?i.get(n-1):void 0,a=n<i.count()?i.get(n):void 0,u=s?s.getEntity():void 0,c=a?a.getEntity():void 0;if(c&&c===u&&"MUTABLE"!==t.__get(c).getMutability()){for(var l,f=r(i,c,n),d=f.start,p=f.end;d<p;)l=i.get(d),i=i.set(d,o.applyEntity(l,null)),d++;return e.set("characterList",i)}return e}var o=n(11),s=n(56),a=n(2);
2t.exports=function(t,e){var n=t.getBlockMap(),r=t.getEntityMap(),o={},s=e.getStartKey(),a=e.getStartOffset(),u=n.get(s),c=i(r,u,a);c!==u&&(o[s]=c);var l=e.getEndKey(),f=e.getEndOffset(),d=n.get(l);s===l&&(d=c);var p=i(r,d,f);return p!==d&&(o[l]=p),Object.keys(o).length?t.merge({blockMap:n.merge(o),selectionAfter:e}):t.set("selectionAfter",e)}},function(t,e,n){"use strict";t.exports=function(t,e,n){if(n===t.count())e.forEach(function(e){t=t.push(e)});else if(0===n)e.reverse().forEach(function(e){t=t.unshift(e)});else{var r=t.slice(0,n),i=t.slice(n);t=r.concat(e,i).toList()}return t}},function(t,e,n){"use strict";function r(t,e){var n=[],r=t.map(function(t){return t.getStyle()}).toList();return a(r,i,f,function(t,r){n.push(new d({start:t+e,end:r+e}))}),u(n)}function i(t,e){return t===e}var o=n(1),s=n(79),a=n(56),u=o.List,c=o.Repeat,l=o.Record,f=s.thatReturnsTrue,d=l({start:null,end:null}),p=l({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(t,e,n){var o=e.getLength();if(!o)return u.of(new p({start:0,end:0,decoratorKey:null,leaves:u.of(new d({start:0,end:0}))}));var s=[],l=n?n.getDecorations(e,t):u(c(null,o)),h=e.getCharacterList();return a(l,i,f,function(t,e){s.push(new p({start:t,end:e,decoratorKey:l.get(t),leaves:r(h.slice(t,e).toList(),t)}))}),u(s)},getFingerprint:function(t){return t.map(function(t){var e=t.get("decoratorKey");return(null!==e?e+"."+(t.get("end")-t.get("start")):"")+"."+t.get("leaves").size}).join("-")}};t.exports=h},function(t,e,n){"use strict";var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getType=function(){return this.get("type")},e.prototype.getMutability=function(){return this.get("mutability")},e.prototype.getData=function(){return this.get("data")},e}((0,n(1).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=r},function(t,e,n){"use strict";function r(t){var e=f.exec(t);return null==e?null:e[0]}function i(t){var e=r(t);return null==e?a.NEUTRAL:d.exec(e)?a.RTL:a.LTR}function o(t,e){if(e=e||a.NEUTRAL,!t.length)return e;var n=i(t);return n===a.NEUTRAL?e:n}function s(t,e){return e||(e=a.getGlobalDir()),a.isStrong(e)||u(!1),o(t,e)}var a=n(82),u=n(2),c="ÖÖ¾××××-××-ת׫-ׯװ-ײ׳-×´×µ-׿ß-ßß-ߪߴ-ߵߺ߻-ß¿à -à à à ¤à ¨à ®-à ¯à °-à ¾à ¿à¡-à¡à¡-à¡à¡à¡-à¢âï¬ï¬-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿ï-ïïï-ïï
ï-ï",l="ØØØØØØØ-ØØ -Ø¿ÙÙ-ÙÙÙ®-ٯٱ-ÛÛÛÛ¥-Û¦Û®-Û¯Ûº-Û¼Û½-Û¾Û¿Ü-ÜÜÜÜÜ-ܯÝ-ÝÝ-Þ¥Þ±Þ²-޿ࢠ-ࢲࢳ-ࣣï-ﮱ﮲-ï¯ï¯-ï¯ï¯-ï´½ïµ-ïµïµ-ï¶ï¶-ï¶ï¶-ï·ï·-ï·ï·°-ﷻ﷼﷾-ï·¿ï¹°-ﹴ﹵ﹶ-ﻼ﻽-﻾",f=new RegExp("["+"A-Za-zªµºÃ-ÃÃ-öø-ƺƻƼ-Æ¿Ç-ÇÇ-ÊÊÊ-ʯʰ-ʸʻ-ËË-ËË -ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿÎÎ-ÎÎÎ-ΡΣ-ϵϷ-ÒÒÒ-Ô¯Ô±-ÕÕÕ-ÕÕ¡-ÖÖà¤à¤-हऻऽा-à¥à¥-à¥à¥-à¥à¥à¥-ॡ।-॥०-९॰ॱॲ-à¦à¦-à¦à¦
-à¦à¦-à¦à¦-নপ-রলশ-হঽা-à§à§-à§à§-à§à§à§à§-à§à§-ৡ০-৯ৰ-ৱ৴-৹৺à¨à¨
-à¨à¨-à¨à¨-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-à©à©-à©à©à©¦-੯ੲ-à©´àªàª
-àªàª-àªàª-નપ-રલ-ળવ-હઽા-à«à«à«-à«à«à« -ૡ૦-૯૰à¬-à¬à¬
-à¬à¬-à¬à¬-ନପ-ରଲ-ଳଵ-ହଽାàà-àà-ààà-àà-à¡à¦-à¯à°à±à²-à·à®à®
-à®à®-à®à®-à®à®-à®à®à®-à®à®£-தந-பம-ஹா-ிà¯-à¯à¯-à¯à¯-à¯à¯à¯à¯¦-௯௰-௲à°-à°à°
-à°à°-à°à°-నప-హఽà±-à±à±-à±à± -ౡ౦-౯౿à²-à²à²
-à²à²-à²à²-ನಪ-ಳವ-ಹಽಾಿà³-à³à³à³-à³à³-à³à³-à³à³à³ -ೡ೦-೯ೱ-à³²à´-à´à´
-à´à´-à´à´-ഺഽാ-àµàµ-àµàµ-àµàµà
2µàµ -ൡ൦-൯൰-൵൹ൺ-ൿà¶-à¶à¶
-à¶à¶-නඳ-රලà·-à·à·-à·à·-à·à·¦-෯ෲ-ෳ෴à¸-ะา-ำà¹-à¹
à¹à¹à¹-à¹à¹-à¹àº-àºàºàº-àºàºàºàº-àºàº-àºàº¡-ຣລວສ-ຫàº-ະາ-ຳຽà»-à»à»à»-à»à»-à»à¼à¼-à¼à¼-à¼à¼à¼à¼-à¼à¼-à¼à¼ -༩༪-༳༴༶༸༾-༿à½-à½à½-ཬཿà¾
à¾-à¾à¾¾-à¿
à¿-à¿à¿-à¿à¿-à¿à¿-à¿à¿-à¿á-áªá«-á¬á±á¸á»-á¼á¿á-áá-áá-áá-áá-áá¡á¢-á¤á¥-á¦á§-áá®-á°áµ-áá-áá-áááá-áá-áá-áá -á
ááá-áºá»á¼á½-áá-áá-ááá-áá -áá-áá-á°á²-áµá¸-á¾áá-á
á-áá-áá-áá-áá -á¨á©-á¼á-áá -á´á-á¬á-á®á¯-á¿á-áá -áªá«-áá®-á°á±-á¸á-áá-áá -á±áµ-á¶á-áá -á¬á®-á°á-á³á¶á¾-á
á-áá-ááá-ááá -á©á -á á -á¡á¡á¡-á¡·á¢-ᢨᢪᢰ-ᣵá¤-á¤á¤£-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸá¥-á¥á¥-á¥á¥°-ᥴá¦-ᦫᦰ-á§á§-á§á§-á§á§-á§á§á¨-á¨á¨-á¨á¨-á¨á¨ -á©á©á©á©¡á©£-ᩤá©-ᩲáª-áªáª-áªáª -᪦ᪧ᪨-áªá¬á¬
-ᬳᬵᬻᬽ-áá-áá
-áá-áá-á á¡-áªá´-á¼á®á®-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿á°-ᰣᰤ-á°«á°´-ᰵ᰻-á°¿á±-á±á±-á±á±-á±á±-ᱷᱸ-ᱽ᱾-᱿á³-á³á³á³¡á³©-ᳬᳮ-ᳱᳲ-ᳳᳵ-á³¶á´-á´«á´¬-ᵪᵫ-ᵷᵸᵹ-á¶á¶-á¶¿á¸-á¼á¼-á¼á¼ -á½
á½-á½á½-á½á½á½á½á½-á½½á¾-á¾´á¾¶-ᾼιá¿-á¿á¿-á¿á¿-á¿á¿-á¿á¿ -Ῥῲ-á¿´á¿¶-ῼââ±â¿â-ââââ-âââ-ââ¤â¦â¨âª-ââ¯-â´âµ-â¸â¹â¼-â¿â
-â
â
â
â
-ââ-ââ
-ââ¶-âºââ-â©â¬â -⣿â°-Ⱞⰰ-â±â± -ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-â³³â´-ⴥⴧâ´â´°-ⵧⵯ⵰â¶-â¶â¶ -ⶦⶨ-ⶮⶰ-ⶶⶸ-â¶¾â·-â·â·-â·â·-â·â·-â·ã
ããã¡-ã©ã®-ã¯ã±-ãµã¸-ãºã»ã¼ã-ãã-ããã¡-ãºã¼-ã¾ã¿ã
-ãã±-ãã-ãã-ãã-ãã -ãºã°-ã¿ã-ãã -ã©ãª-ãã-ãã -ã»ã¿ã-ãã-ã°ã-ãã-ã¾ã-ã¶ã»-ãã -ã¾ã-ä¶µä¸-é¿ê-êêê-êê-ê·ê¸-ê½ê¾-ê¿ê-êêê-êê -ê©êª-ê«ê-êê®ê-êê-êê -ê¥ê¦-ê¯ê²-ê·ê¢-ê¯ê°ê±-êê-êê-êê-êê°-ê±ê·ê¸-ê¹êºê»-ê ê -ê
ê -ê ê -ê ¢ê £-ê ¤ê §ê °-ê µê ¶-ê ·ê¡-ꡳê¢-ê¢ê¢-ꢳꢴ-ê£ê£-ê£ê£-ê£ê£²-ꣷ꣸-꣺ꣻê¤-ê¤ê¤-ꤥ꤮-꤯ꤰ-ê¥ê¥-ê¥ê¥ê¥ -ꥼê¦ê¦-ꦲꦴ-ꦵꦺ-ꦻꦽ-ê§ê§-ê§ê§ê§-ê§ê§-ê§ê§ -ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ê§¾ê¨-ꨨꨯ-ꨰꨳ-ꨴê©-ê©ê©-ê©ê©ê©-ê©ê©-ê©ê© -ꩯꩰꩱ-ê©¶ê©·-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽê«ê«ê«-ê«ê«ê«-ê«ê« -ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵê¬-ê¬ê¬-ê¬ê¬-ê¬ê¬ -ꬦꬨ-ꬮꬰ-êêê-êê¤-ê¥ê¯-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹ê°-í£í°-íí-í»î-ï¤-ï©ï©°-ï«ï¬-ï¬ï¬-ï¬ï¼¡-Zï½-ï½ï½¦-ッーア-ï¾ï¾-ï¾ï¾ -ï¾¾ï¿-ï¿ï¿-ï¿ï¿-ï¿ï¿-ï¿"+c+l+"]"),d=new RegExp("["+c+l+"]"),p={firstStrongChar:r,firstStrongCharDir:i,resolveBlockDir:o,getDirection:s,isDirectionLTR:function(t,e){return s(t,e)===a.LTR},isDirectionRTL:function(t,e){return s(t,e)===a.RTL}};t.exports=p},function(t,e,n){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),i=e.getStartOffset(),o=!1;return r.some(function(t){return i===t.get("start")?(o=!0,!0):i<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return i===e&&(o=!0,!0)})}),o}},function(t,e,n){"use strict";function r(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}var i=n(35)||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(193),s=n(60),a=n(3),u=n(36),c=n(119),l=n(85),f=n(113),d=n(82),p=n(48),h=n(208),v=n(86),y=n(212),g=n(2),m=n(8),_=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||r(t.selection,t.block.getKey())&&t.forceSelection},e.prototype.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n,r=u.findDOMNode(this),i=l.getScrollParent(r),o=v(i);if(i===window){var s=h(r);(n=s.y+s.height-y().height)>0&&window.scrollTo(o.x,o.y+n+10)}else r instanceof HTMLElement||g(!1),(n=r.offsetHeight+r.offsetTop-(i.offsetHeight+o.y))>0&&c.setTop(i,c.getTop(i)+n+10)}},e.prototype._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),u=e.getText(),c=this.props.tree.size-1,l=r(this.props.selection,n);return this.props.tree.map(function(r,p){var h=r.get("leaves"),v=h.size-1,y=h.map(function(r,i){var f=s.encode(n,p,i),d=r.get("start"),h=r.get("end");return a.createElement(o,{key:f,offsetKey:f,block:e,start:d,selection:l?t.props.selection:void 0,forceSelection:t.props.forceSelection,text:u.slice(d,h),styleSet:e.getInlineStyleAt(d),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:p===c&&i===v})}).toArray(),g=r.get("decoratorKey");if(null==g)return y;if(!t.props.decorator)return y;var _=m(t.props.decorator),b=_.getComponentForKey(g);if(!b)return y;var S=_.getPropsForKey(g),w=s.encode(n,p,0),x=u.slice(h.first().get("start"),h.last().get("end")),k=d.getHTMLDirIfDifferent(f.getDirection(x),t.props.direction);
2return a.createElement(b,i({},S,{contentState:t.props.contentState,decoratedText:x,dir:k,key:w,entityKey:e.getEntityAt(r.get("start")),offsetKey:w}),y)}).toArray()},e.prototype.render=function(){var t=this.props,e=t.direction,n=t.offsetKey,r=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===e,"public/DraftStyleDefault/rtl":"RTL"===e});return a.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},e}(a.Component);t.exports=_},function(t,e,n){"use strict";var r=n(203);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},function(t,e,n){"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},function(t,e,n){"use strict";function r(t,e){return!!e&&(t===e.documentElement||t===e.body)}var i={getTop:function(t){var e=t.ownerDocument;return r(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var n=t.ownerDocument;r(t,n)?n.body.scrollTop=n.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return r(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var n=t.ownerDocument;r(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=e:t.scrollLeft=e}};t.exports=i},function(t,e,n){"use strict";function r(t){if("file"==t.kind)return t.getAsFile()}var i=n(215),o=n(216),s=n(79),a=new RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1},c=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.data=e,this.types=e.types?o(e.types):[]}return t.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(t){return u[t]})},t.prototype.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},t.prototype.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.prototype.isLink=function(){return this.types.some(function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},t.prototype.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.prototype.isImage=function(){if(this.types.some(function(t){return-1!=t.indexOf("application/x-moz-file")}))return!0;for(var t=this.getFiles(),e=0;e<t.length;e++){var n=t[e].type;if(!i.isImage(n))return!1}return!0},t.prototype.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.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(r).filter(s.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.prototype.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=c},function(t,e,n){"use strict";t.exports=function t(e){if(e instanceof Element){var n=e.getAttribute("data-offset-key");if(n)return n;for(var r=0;r<e.childNodes.length;r++){var i=t(e.childNodes[r]);if(i)return i}}return null}},function(t,e,n){"use strict";(function(e){function n(t,n){if(!e.FileReader||t.type&&!(t.type in i))n("");else{if(""===t.type){var o="";return r.test(t.name)&&(o=t.name.replace(r,"")),void n(o)}var s=new FileReader;s.onload=function(){n(s.result)},s.onerror=function(){n("")},s.readAsText(t)}}var r=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0},o=5e3;t.exports=function(t,e){var r=0,i=[];t.forEach(function(s){n(s,function(n){r++,n&&i.push(n.slice(0,o)),r
2==t.length&&e(i.join("\r"))})})}}).call(e,n(28))},function(t,e,n){"use strict";var r=n(60),i=n(8);t.exports=function(t,e,n,o,s){var a=i(t.getSelection()),u=r.decode(e),c=u.blockKey,l=t.getBlockTree(c).getIn([u.decoratorKey,"leaves",u.leafKey]),f=r.decode(o),d=f.blockKey,p=t.getBlockTree(d).getIn([f.decoratorKey,"leaves",f.leafKey]),h=l.get("start"),v=p.get("start"),y=l?h+n:null,g=p?v+s:null;if(a.getAnchorKey()===c&&a.getAnchorOffset()===y&&a.getFocusKey()===d&&a.getFocusOffset()===g)return a;var m=!1;if(c===d){var _=l.get("end"),b=p.get("end");m=v===h&&b===_?s<n:v<h}else m=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===d}).first()===d;return a.merge({anchorKey:c,anchorOffset:y,focusKey:d,focusOffset:g,isBackward:m})}},function(t,e,n){"use strict";var r=n(57);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:r(t.getCurrentContent(),e)}},function(t,e,n){"use strict";var r=n(18),i=n(2),o=r.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var o=r===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var s,a=Array.from(e.getClientRects());if(n.push(a),o)return n.reverse(),(s=[]).concat.apply(s,n);e.setEndBefore(r)}i(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=o},function(t,e,n){"use strict";function r(t,e,n){var r=e,a=o(r);if(null!=a||t&&(t===r||t.firstChild===r)||u(!1),t===r&&((r=r.firstChild)instanceof Element&&"true"===r.getAttribute("data-contents")||u(!1),n>0&&(n=r.childNodes.length)),0===n){var l=null;if(null!=a)l=a;else{var f=function(t){for(;t.firstChild&&s(t.firstChild);)t=t.firstChild;return t}(r);l=c(s(f))}return{key:l,offset:0}}var d=r.childNodes[n-1],p=null,h=null;if(s(d)){var v=function(t){for(;t.lastChild&&s(t.lastChild);)t=t.lastChild;return t}(d);p=c(s(v)),h=i(v)}else p=c(a),h=i(d);return{key:p,offset:h}}function i(t){var e=t.textContent;return"\n"===e?0:e.length}var o=n(87),s=n(121),a=n(123),u=n(2),c=n(8);t.exports=function(t,e,n,i,s,u){var l=n.nodeType===Node.TEXT_NODE,f=s.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:a(t,c(o(n)),i,c(o(s)),u),needsRecovery:!1};var d=null,p=null,h=!0;return l?(d={key:c(o(n)),offset:i},p=r(e,s,u)):f?(p={key:c(o(s)),offset:u},d=r(e,n,i)):(d=r(e,n,i),p=r(e,s,u),n===s&&i===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(t,d.key,d.offset,p.key,p.offset),needsRecovery:h}}},function(t,e,n){"use strict";function r(t,e){var n=e?s.exec(t):o.exec(t);return n?n[0]:t}var i="\\s|(?![_])"+n(235).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['ââ]|(?!"+i+").)*(?:(?!"+i+").)"),s=new RegExp("(?:(?!"+i+").)(?:['ââ]|(?!"+i+").)*(?:"+i+")*$"),a={getBackward:function(t){return r(t,!0)},getForward:function(t){return r(t,!1)}};t.exports=a},function(t,e,n){"use strict";t.exports=function(t,e){var n,r=t.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),s=t.getCurrentContent(),a=i;return e>s.getBlockForKey(i).getText().length-o?(a=s.getKeyAfter(i),n=0):n=o+e,r.merge({focusKey:a,focusOffset:n})}},function(t,e,n){"use strict";function r(t){var e=new Array(1);return t&&(e[0]=t),{text:E,inlines:[M()],entities:e,blocks:[]}}function i(){return{text:"\n",inlines:[M()],entities:new Array(1),blocks:[]}}function o(t,e){return{text:"\r",inlines:[M()],entities:new Array(1),blocks:[{type:t,depth:Math.max(0,Math.min(N,e))}]}}function s(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}function a(t,e,n){var r=n.filter(function(e){return e.element===t||e.wrapper===t||e.aliasedElements&&e.aliasedElements.some(function(e){return e===t})}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r](t,e);if(i)return i}return null}(t,e,[s])||"unstyled"}}function u(t,e){var n=t.text.slice(-1),r=e.text.slice(0,1);if("\r"===n&&"\r"===r&&(t.text=t.text.slice(0,-1),t.inlines.pop(),t.entities.pop(),t.blocks.pop()),"\r"===n){if(e.text===E||"\n"===e.text)return t;r!==E&&"\n"!==r||(e.text=e.text.slice(1),e.inlines.shift(),e.entities.shift())}return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}}function c(t){t instanceof HTMLAnchorElement||S(!1);var e=t.protocol;return"http:"===e||"https:"===e||"mailto:"===e}function l(t,e,n,s,f,p,h,v,g){var _=e.nodeName.toLowerCase(),b=!1,S="unstyled",w=d,x=t;if("#text"===_){var k=e.textContent;return""===k.trim()&&"pre"!==f?{chunk:r(g),entityMap:t}:("pre"!==f&&(k=k.replace(C,E)),d=_,{chunk:{text:k,inlines:Array(k.length).fill(n),entities:Array(k.length).fill(g),blocks:[]},entityMap:t})}if(d=_,"br"===_)return"br"!==w||f&&"unstyled"!==a(f,s,v)?{chunk:i(),entityMap:t}:{chunk:o("unstyled",h),entityMap:t};"img"===_&&e instanceof HTMLImageElement&&e.attributes.getNamedItem("src")&&e.attributes.getNamedItem("src").value&&function(){var t=e,n={};B.forEach(function(e){var r=t.getAttribute(e);r&&(n[e]=r)});var r=new m(n.src).toString();e.textContent=r,g=y.__create("IMAGE","MUTABLE",n||{})}();var j={text:"",inlines:[],entities:[],blocks:[]};n=function(t,e,n){var r=z[t];return r?n=n.add(r).toOrderedSet():e instanceof HTMLElement&&function(){var t=e;n=n.withMutations(function(e){var n=t.style.fontWeight,r=t.style.fontStyle,i=t.style.textDecoration;D.indexOf(n)>=0?e.add("BOLD"):A.indexOf(n)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}(),n}
2(_,e,n),"ul"!==_&&"ol"!==_||(s&&(h+=1),s=_),f||-1===p.indexOf(_)?s&&"li"===f&&"li"===_&&(j=o(a(_,s,v),h),f=_,b=!0,S="ul"===s?"unordered-list-item":"ordered-list-item"):(j=o(a(_,s,v),h),f=_,b=!0);var M=e.firstChild;null!=M&&(_=M.nodeName.toLowerCase());for(var N=null;M;){M instanceof HTMLAnchorElement&&M.href&&c(M)?function(){var t=M,e={};P.forEach(function(n){var r=t.getAttribute(n);r&&(e[n]=r)}),e.url=new m(t.href).toString(),N=y.__create("LINK","MUTABLE",e||{})}():N=void 0;var O=l(x,M,n,s,f,p,h,v,N||g),T=O.chunk;x=O.entityMap,j=u(j,T);var I=M.nextSibling;I&&p.indexOf(_)>=0&&f&&(j=u(j,i())),I&&(_=I.nodeName.toLowerCase()),M=I}return b&&(j=u(j,o(S,h))),{chunk:j,entityMap:x}}function f(t,e,n,r){t=t.trim().replace(O,"").replace(T,E).replace(I,"").replace(L,"");var i=function(t){var e=t.get("unstyled").element,n=new k([]);return t.forEach(function(t){t.aliasedElements&&t.aliasedElements.forEach(function(t){n=n.add(t)}),n=n.add(t.element)}),n.filter(function(t){return t&&t!==e}).toArray().sort()}(n),o=e(t);if(!o)return null;d=null;var s=function(t,e){return e.some(function(e){return-1!==t.indexOf("<"+e)})}(t,i)?i:["div"],a=l(r,o,M(),"ul",null,s,-1,n),u=a.chunk,c=a.entityMap;return 0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push({type:"unstyled",depth:0}),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:c}}var d,p=n(11),h=n(34),v=n(83),y=n(58),g=n(1),m=n(246),_=n(17),b=n(130),S=n(2),w=n(8),x=n(81),k=n(1).Set,j=g.List,M=g.OrderedSet,E=" ",N=4,O=new RegExp("\r","g"),C=new RegExp("\n","g"),T=new RegExp(" ","g"),I=new RegExp(" ?","g"),L=new RegExp("​?","g"),D=["bold","bolder","500","600","700","800","900"],A=["light","lighter","100","200","300","400"],z={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},P=["className","href","rel","target","title"],B=["alt","className","height","src","width"];t.exports=function(t){var e=f(t,arguments.length<=1||void 0===arguments[1]?b:arguments[1],arguments.length<=2||void 0===arguments[2]?v:arguments[2],y);if(null==e)return null;var n=e.chunk,r=e.entityMap,i=0;return{contentBlocks:n.text.split("\r").map(function(t,e){t=x(t);var r=i+t.length,o=w(n).inlines.slice(i,r),s=w(n).entities.slice(i,r),a=j(o.map(function(t,e){var n={style:t,entity:null};return s[e]&&(n.entity=s[e]),p.create(n)}));return i=r+1,new h({key:_(),type:w(n).blocks[e].type,depth:w(n).blocks[e].depth,text:t,characterList:a})}),entityMap:r}}},function(t,e,n){"use strict";var r=n(18),i=n(2),o=r.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},function(t,e,n){"use strict";var r={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=r},function(t,e,n){t.exports={default:n(267),__esModule:!0}},function(t,e,n){var r=n(26);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(41),i=n(6)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(25);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(27);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){t.exports={default:n(297),__esModule:!0}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(320);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(322);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})},function(t,e,n){"use strict";function r(t){this.tokens=[],this.tokens.links={},this.options=l({},t||d),this.rules=p.normal,this.options.gfm&&(this.rules=p.gfm)}function i(t,e){if(this.options=l({},e||d),this.links=t,this.rules=h.normal,this.renderer=this.options.renderer||new o,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=h.breaks:this.rules=h.gfm:this.options.pedantic&&(this.rules=h.pedantic)}function o(t){this.options=t||{}}function s(t){this.tokens=[],this.token=null,this.options=l({},t||d),this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(t,e){return t=t.source,e=e||"",function n(r,i){return r?(i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),t=t.replace(r,i),n):new RegExp(t,e)}}Object.defineProperty(e,"__esModule",{value:!0});var u=n(140),c=Object.prototype.hasOwnProperty,l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)c.call(n,r)&&(t[r]=n[r])}return t},f=function(){};f.exec=f;var d={gfm:!0,breaks:!1,pedantic:!1,smartLists:!1,silent:!1,langPrefix:"lang-",renderer:new o,xhtml:!1},p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:f,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:f,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};p.item=a(p.item,"gm")(/bull/g,p.bullet)(),p.list=a(p.list)(/bull/g,p.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+p.def.source+")")(),p.blockquote=a(p.blockquote)("def",p.def)(),p.paragraph=a(p.paragraph)("hr",p.hr)("heading",p.heading)("lheading",p.lheading)("blockquote",p.blockquote)("def",p.def)(),p.normal=l({},p),p.gfm=l({},p.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),p.gfm.paragraph=a(p.paragraph)("(?!","(?!"+p.gfm.fences.source.replace("\\1","\\2")+"|"+p.list.source.replace("\\1","\\3")+"|")(),r.rules=p,r.parse=function(t,e){return new r(e).parse(t)},r.prototype.parse=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(t,!0)},r.prototype.token=function(t,e,n){var r,i,o,s,a,u,c,l,f;for(t=t.replace(/^ +$/gm,"");t;)if((o=this.rules.newline.exec(t))&&(t=t.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(t))t=t.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]});else if(o=this.rules.heading.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(o=this.rules.lheading.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,e,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(t)){for(t=t.substring(o[0].length),s=o[2],this.tokens.push({type:"list_start",ordered:s.length>1}),r=!1,f=(o=o[0].match(this.rules.item)).length,l=0;l<f;l++)c=(u=o[l]).length,~(u=u.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")&&(c-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+c+"}","gm"),"")),this.options.smartLists&&l!==f-1&&(s===(a=p.bullet.exec(o[l+1])[
vendor: 5,578 bytes, line 2
20])||s.length>1&&a.length>1||(t=o.slice(l+1).join("\n")+t,l=f-1)),i=r||/\n\n(?!\s*$)/.test(u),l!==f-1&&(r="\n"===u.charAt(u.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(!n&&e&&(o=this.rules.def.exec(t)))t=t.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(e&&(o=this.rules.paragraph.exec(t)))t=t.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0));return this.tokens};var h={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:f,ins:f,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/,_inside:/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,_href:/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/};h.link=a(h.link)("inside",h._inside)("href",h._href)(),h.reflink=a(h.reflink)("inside",h._inside)(),h.normal=l({},h),h.pedantic=l({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=l({},h.normal,{escape:a(h.escape)("])","~|])")(),del:/^~~(?=\S)([\s\S]*?\S)~~/,ins:/^\+\+(?=\S)([\s\S]*?\S)\+\+/,text:a(h.text)("]|","~+]|")()}),h.breaks=l({},h.gfm,{br:a(h.br)("{2,}","*")(),text:a(h.gfm.text)("{2,}","*")()}),i.rules=h,i.parse=function(t,e,n){return new i(e,n).parse(t)},i.prototype.parse=function(t){for(var e,n,r=new u.FragmentNode;t;)if(n=this.rules.escape.exec(t))t=t.substring(n[0].length),r.appendChild(new u.TextNode(n[1]));else if(n=this.rules.link.exec(t))t=t.substring(n[0].length),this.inLink=!0,r.appendChild(this.outputLink(n,{href:n[2],title:n[3]})),this.inLink=!1;else if((n=this.rules.reflink.exec(t))||(n=this.rules.nolink.exec(t))){if(t=t.substring(n[0].length),e=(n[2]||n[1]).replace(/\s+/g," "),!(e=this.links[e.toLowerCase()])||!e.href){r.appendChild(new u.TextNode(n[0].charAt(0))),t=n[0].substring(1)+t;continue}this.inLink=!0,r.appendChild(this.outputLink(n,e)),this.inLink=!1}else if(n=this.rules.strong.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.strong(this.parse(n[2]||n[1])));else if(n=this.rules.em.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.em(this.parse(n[2]||n[1])));else if(n=this.rules.code.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.codespan(n[2]));else if(n=this.rules.br.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.br());else if(n=this.rules.del.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.del(this.parse(n[1])));else if(n=this.rules.ins.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.ins(this.parse(n[1])));else if(n=this.rules.text.exec(t))t=t.substring(n[0].length),r.appendChild(this.renderer.text(new u.TextNode(n[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0));return r},i.prototype.outputLink=function(t,e){var n=e.href,r=e.title;return"!"!==t[0].charAt(0)?this.renderer.link(n,r,this.parse(t[1])):this.renderer.image(n,r,t[1])},o.prototype.code=function(t,e){var n=[];e&&n.push({name:"class",value:this.options.langPrefix+e});var r=new u.ElementNode("code",n,[t]);return new u.ElementNode("pre",[],[r])},o.prototype.blockquote=function(t){return new u.ElementNode("blockquote",[],[t])},o.prototype.heading=function(t,e){return new u.ElementNode("h"+e,[],[t])},o.prototype.hr=function(){return new u.ElementNode("hr",[],u.SELF_CLOSING)},o.prototype.list=function(t,e){return new u.ElementNode(e?"ol":"ul",[],[t])},o.prototype.listitem=function(t){return new u.ElementNode("li",[],[t])},o.prototype.paragraph=function(t){return new u.ElementNode("p",[],[t])},o.prototype.strong=function(t){return new u.ElementNode("strong",[],[t])},o.prototype.em=function(t){return new u.ElementNode("em",[],[t])},o.prototype.codespan=function(t){return new u.ElementNode("code",[],[new u.TextNode(t)])},o.prototype.br=function(){return new u.ElementNode("br",[],u.SELF_CLOSING)},o.prototype.del=function(t){return new u.ElementNode("del",[],[t])},o.prototype.ins=function(t){return new u.ElementNode("ins",[],[t])},o.prototype.link=function(t,e,n){var r=[{name:"href",value:t}];return e&&r.push({name:"title",value:e}),new u.ElementNode("a",r,[n])},o.prototype.image=function(t,e,n){var r=[{name:"src",value:t}];return e&&r.push({name:"title",value:e}),n&&r.push({name:"alt",value:n}),new u.ElementNode("img",r,u.SELF_CLOSING)},o.prototype.text=function(t){return t},s.parse=function(t,e,n){return new s(e,n).parse(t)},s.prototype.parse=function(t){this.inline=new i(t.links,this.options,this.renderer),this.tokens=t.slice().reverse();for(var e=new u.FragmentNode;this.next();)e.appendChild(this.tok());return e},s.prototype.next=function(){return this.token=this.tokens.pop()},s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},s.prototype.parseText=function(){for(var t=this.token.text;"text"===this.peek().type;)t+="\n"+this.next().text;return this.inline.parse(t)},s.prototype.tok=function(){switch(this.token.type){case"space":return new u.TextNode("");case"hr":return this.renderer.hr();
vendor: 27,290 bytes, line 2
2case"heading":return this.renderer.heading(this.inline.parse(this.token.text),this.token.depth);case"code":return this.renderer.code(this.token.text,this.token.lang);case"blockquote_start":for(var t=new u.FragmentNode;"blockquote_end"!==this.next().type;)t.appendChild(this.tok());return this.renderer.blockquote(t);case"list_start":for(var e=new u.FragmentNode,n=this.token.ordered;"list_end"!==this.next().type;)e.appendChild(this.tok());return this.renderer.list(e,n);case"list_item_start":for(var r=new u.FragmentNode;"list_item_end"!==this.next().type;)r.appendChild("text"===this.token.type?this.parseText():this.tok());return this.renderer.listitem(r);case"loose_item_start":for(var i=new u.FragmentNode;"list_item_end"!==this.next().type;)i.appendChild(this.tok());return this.renderer.listitem(i);case"paragraph":return this.renderer.paragraph(this.inline.parse(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var v={parse:function(t,e){e=l({},d,e);try{var n=s.parse(r.parse(t,e),e)}catch(t){if(!e.silent)throw t;n=new u.FragmentNode([new u.ElementNode("p",[],[new u.TextNode("An error occured:")]),new u.ElementNode("pre",[],[new u.TextNode(t.message)])])}return e.getAST?new u.ElementNode("body",[],[n]):n.toString(this.options.xhtml)}};e.default=v},function(t,e,n){"use strict";function r(t){var e=t.getType();return e===B.BLOCK_TYPE.UNORDERED_LIST_ITEM||e===B.BLOCK_TYPE.ORDERED_LIST_ITEM}function i(t){var e=X()(t.className,st.a.root);return C.a.createElement("div",y()({},t,{className:e}))}function o(t){var e=X()(t.className,mt.a.root);return C.a.createElement("div",y()({},t,{className:e}))}function s(t){var e=t.getSelection(),n=e.getStartKey(),r=t.getCurrentContent().getBlockForKey(n),i=e.getStartOffset();if(e.isCollapsed())return function(t,e){var n=t.getEntityAt(e);if(null==n)return null;for(var r=e;r>0&&t.getEntityAt(r-1)===n;)r-=1;for(var i=r,o=t.getLength();i<o&&t.getEntityAt(i+1)===n;)i+=1;return{entityKey:n,blockKey:t.getKey(),startOffset:r,endOffset:i+1}}(r,0===i?i:i-1);if(n!==e.getEndKey())return null;for(var o=e.getEndOffset(),s=r.getEntityAt(i),a=i;a<o;a++){var u=r.getEntityAt(a);if(null==u||u!==s)return null}return{entityKey:s,blockKey:r.getKey(),startOffset:i,endOffset:o}}function a(t,e,n){switch(e){case"html":return Object(Bt.stateFromHTML)(t,n);case"markdown":return Object(Ut.stateFromMarkdown)(t,n);case"raw":return Object(T.convertFromRaw)(JSON.parse(t));default:throw new Error("Format not supported: "+e)}}function u(t){var e=Xt.a.block;switch(t.getType()){case"unstyled":return X()(e,Xt.a.paragraph);case"blockquote":return X()(e,Xt.a.blockquote);case"code-block":return X()(e,Xt.a.codeBlock);default:return e}}function c(){return Kt.createEmpty(ee)}function l(t,e,n){return Kt.createFromString(t,e,ee,n)}Object.defineProperty(e,"__esModule",{value:!0});var f=n(94),d=n.n(f),p=n(44),h=n.n(p),v=n(14),y=n.n(v),g=n(40),m=n.n(g),_=n(20),b=n.n(_),S=n(15),w=n.n(S),x=n(16),k=n.n(x),j=n(21),M=n.n(j),E=n(22),N=n.n(E),O=n(3),C=n.n(O),T=n(10),I=n(89),L=n.n(I),D=function(t){switch(t.getData().get("textAlign")){case"ALIGN_LEFT":return"text-align--left";case"ALIGN_CENTER":return"text-align--center";case"ALIGN_RIGHT":return"text-align--right";case"ALIGN_JUSTIFY":return"text-align--justify";default:return""}},A=function(t){switch(t.getData().get("textAlign")){case"ALIGN_LEFT":return{style:{textAlign:"left"}};case"ALIGN_CENTER":return{style:{textAlign:"center"}};case"ALIGN_RIGHT":return{style:{textAlign:"right"}};case"ALIGN_JUSTIFY":return{style:{textAlign:"justify"}};default:return{}}},z=function(t){switch(t.style.textAlign){case"right":return{data:{textAlign:"ALIGN_RIGHT"}};case"center":return{data:{textAlign:"ALIGN_CENTER"}};case"justify":return{data:{textAlign:"ALIGN_JUSTIFY"}};case"left":return{data:{textAlign:"ALIGN_LEFT"}};default:return{}}},P=n(90),B=n(29),R=n(266),U=n.n(R),F=n(132),K=n.n(F),Y=n(271),q=n.n(Y),H=n(73),W=n.n(H),G=n(62),V=n(36),Q=n.n(V),Z={display:["INLINE_STYLE_BUTTONS","BLOCK_ALIGNMENT_BUTTONS","BLOCK_TYPE_BUTTONS","LINK_BUTTONS","IMAGE_BUTTON","BLOCK_TYPE_DROPDOWN","HISTORY_BUTTONS"],INLINE_STYLE_BUTTONS:[{label:"Bold",style:"BOLD"},{label:"Italic",style:"ITALIC"},{label:"Strikethrough",style:"STRIKETHROUGH"},{label:"Monospace",style:"CODE"},{label:"Underline",style:"UNDERLINE"}],BLOCK_ALIGNMENT_BUTTONS:[{label:"Align Left",style:"ALIGN_LEFT"},{label:"Align Center",style:"ALIGN_CENTER"},{label:"Align Right",style:"ALIGN_RIGHT"},{label:"Align Justify",style:"ALIGN_JUSTIFY"}],BLOCK_TYPE_DROPDOWN:[{label:"Normal",style:"unstyled"},{label:"Heading Large",style:"header-one"},{label:"Heading Medium",style:"header-two"},{label:"Heading Small",style:"header-three"},{label:"Code Block",style:"code-block"}],BLOCK_TYPE_BUTTONS:[{label:"UL",style:"unordered-list-item"},{label:"OL",style:"ordered-list-item"},{label:"Blockquote",style:"blockquote"}]},J=n(23),X=n.n(J),$=n(30),tt=n.n($),et=n(287),nt=n.n(et),rt=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));return tt()(t),t}return N()(e,t),k()(e,[{key:"render",value:function(){var t=this.props,e=t.className,n=t.isDisabled,r=t.focusOnClick,i=t.formSubmit,o=m()(t,["className","isDisabled","focusOnClick","formSubmit"]);e=X()(e,nt.a.root);var s=!1===r?this._onMouseDownPreventDefault:t.onMouseDown,a=i?"submit":"button";return C.a.createElement("button",y()({type:a},o,{onMouseDown:s,className:e,disabled:n}),t.children)}},{key:"_onMouseDownPreventDefault",value:function(t){t.preventDefault();var e=this.props.onMouseDown;null!=e&&e(t)}}]),e}(O.Component),it=rt,ot=n(290),st=n.n(ot),at=n(292),ut=n.n(at),ct=function(t){function e(){return w()(this,e),M()(this,(e.__proto__||b()(e)).apply(this,arguments))}return N()(e,t),k()(e,[{key:"render",value:function(){var t,e=this.props,n=e.className,r=e.iconName,o=e.label,s=e.children,a=e.isActive,u=e.isSwitch,c=m()(e,["className","iconName","label","children","isActive","isSwitch"]);return n=X()(n,(t={},h()(t,ut.a.root,!0),h()(t,ut.a.isActive,a),t)),C.a.createElement(i,null,C.a.createElement(it,y()({},c,{title:o,className:n,role:u&&"switch","aria-checked":a}),C.a.createElement("span",{className:ut.a["icon-"+r]})),s)}}]),e}(O.Component),lt=ct,ft=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));return tt()(t),t}return N()(e,t),k()(e,[{key:"render",value:function(){var t=this.props,e=t.style,n=(t.onToggle,m()(t,["style","onToggle"])),r=e.toLowerCase();return C.a.createElement(lt,y()({},n,{iconName:r,onClick:this._onClick,focusOnClick:!1,isSwitch:!0}))}},{key:"_onClick",value:function(){this.props.onToggle(this.props.style)}}]),e}(O.Component),dt=ft,pt=n(294),ht=n.n(pt),vt=n(138),yt=n.n(vt),gt=n(299),mt=n.n(gt),_t=n(301),bt=n.n(_t),St=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));tt()(t);var n=t.props.checkOptions,r={};if(n){var i=!0,o=!1,s=void 0;try{for(var a,u=yt()(ht()(n));!(i=(a=u.next()).done);i=!0){var c=a.value,l=n[c].defaultValue;r[c]=l}}catch(t){o=!0,s=t}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}}return t.state={checkOptionValues:r},t}return N()(e,t),k()(e,[{key:"componentDidMount",value:function(){document.addEventListener("click",this._onDocumentClick,!0),document.addEventListener("keydown",this._onDocumentKeydown),this._inputRef&&this._inputRef.focus()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this._onDocumentClick,!0),document.removeEventListener("keydown",this._onDocumentKeydown)}},{key:"render",value:function(){var t=this.props,e=X()(t.className,bt.a.root);return C.a.createElement("div",{className:e},C.a.createElement("div",{className:bt.a.inner},C.a.createElement("input",{ref:this._setInputRef,defaultValue:t.defaultValue,type:"text",placeholder:"https://example.com/",className:bt.a.input,onKeyPress:this._onInputKeyPress}),C.a.createElement(o,{className:bt.a.buttonGroup},C.a.createElement(lt,{label:"Cancel",iconName:"cancel",onClick:t.onCancel}),C.a.createElement(lt,{label:"Submit",iconName:"accept",onClick:this._onSubmit}))),this._renderCheckOptions())}},{key:"_renderCheckOptions",value:function(){var t=this;if(!this.props.checkOptions)return null;var e=this.props.checkOptions;return ht()(e).map(function(n){var r=e&&e[n]?e[n].label:"";return C.a.createElement("div",{key:n,className:bt.a.checkOption},C.a.createElement("label",null,C.a.createElement("input",{type:"checkbox",checked:t.state.checkOptionValues[n],onChange:function(){return t._onCheckOptionPress(n)}}),C.a.createElement("span",null,r)))})}},{key:"_setInputRef",value:function(t){this._inputRef=t}},{key:"_onCheckOptionPress",value:function(t){var e=this.state.checkOptionValues,n=Boolean(e[t]),r=y()({},e,h()({},t,!n));this.setState({checkOptionValues:r})}},{key:"_onInputKeyPress",value:function(t){13===t.which&&(t.preventDefault(),this._onSubmit())}},{key:"_onSubmit",value:function(){var t=this._inputRef?this._inputRef.value:"";this.props.onSubmit(t,this.state.checkOptionValues)}},{key:"_onDocumentClick",value:function(t){Q.a.findDOMNode(this).contains(t.target)||this.props.onCancel(t)}},{key:"_onDocumentKeydown",value:function(t){27===t.keyCode&&this.props.onCancel()}}]),e}(O.Component),wt=St,xt=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));return tt()(t),t}return N()(e,t),k()(e,[{key:"render",value:function(){var t=this.props,e=t.onTogglePopover,n=(t.showPopover,t.checkOptions,m()(t,["onTogglePopover","showPopover","checkOptions"]));return C.a.createElement(lt,y()({},n,{onClick:e}),this._renderPopover())}},{key:"_renderPopover",value:function(){return this.props.showPopover?C.a.createElement(wt,{defaultValue:this.props.defaultValue,checkOptions:this.props.checkOptions,onSubmit:this._onSubmit,onCancel:this._hidePopover}):null}},{key:"_onSubmit",value:function(){var t;(t=this.props).onSubmit.apply(t,arguments)}},{key:"_hidePopover",value:function(){var t;this.props.showPopover&&(t=this.props).onTogglePopover.apply(t,arguments)}}]),e}(O.Component),kt=xt,jt=n(303),Mt=n.n(jt),Et=n(307),Nt=n.n(Et),Ot=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));return tt()(t),t}return N()(e,t),k()(e,[{key:"render",value:function(){var t=this.props,e=t.choices,n=t.selectedKey,r=t.className,i=m()(t,["choices","selectedKey","className"]);r=X()(r,Nt.a.root);var o=null==n?null:e.get(n),s=o&&o.label||"";return C.a.createElement("span",{className:r,title:s},C.a.createElement("select",y()({},i,{value:n,onChange:this._onChange}),this._renderChoices()),C.a.createElement("span",{className:Nt.a.value},s))}},{key:"_onChange",value:function(t){var e=t.target.value;this.props.onChange(e)}},{key:"_renderChoices",value:function(){var t=this.props.choices;return K()(t.entries()).map(function(t){var e=Mt()(t,2),n=e[0],r=e[1],i=r.label,o=r.className;return C.a.createElement("option",{key:n,value:n,className:o},i)})}}]),e}(O.Component),Ct=Ot,Tt=n(309),It=n.n(Tt),Lt=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));return tt()(t),t.state={showLinkInput:!1,showImageInput:!1,customControlState:{}},t}return N()(e,t),k()(e,[{key:"UNSAFE_componentWillMount",value:function(){this.props.keyEmitter.on("keypress",this._onKeypress)}},{key:"componentWillUnmount",value:function(){this.props.keyEmitter.removeListener("keypress",this._onKeypress)}},{key:"render",value:function(){var t=this,e=this.props,n=e.className,r=e.toolbarConfig,i=e.rootStyle,o=e.isOnBottom;null==r&&(r=Z);var s=(r.display||Z.display).map(function(e){switch(e){case"INLINE_STYLE_BUTTONS":return t._renderInlineStyleButtons(e,r);case"BLOCK_ALIGNMENT_BUTTONS":return t._renderBlockAlignmentButtons(e,r);case"BLOCK_TYPE_DROPDOWN":return t._renderBlockTypeDropdown(e,r);case"LINK_BUTTONS":return t._renderLinkButtons(e,r);case"IMAGE_BUTTON":return t._renderImageButton(e,r);case"BLOCK_TYPE_BUTTONS":return t._renderBlockTypeButtons(e,r);case"HISTORY_BUTTONS":return t._renderUndoRedo(e,r)}});return C.a.createElement("div",{className:X()(It.a.root,o&&It.a.onBottom,n),style:i},s,this._renderCustomControls())}},{key:"_renderCustomControls",value:function(){var t=this,e=this.props,n=e.customControls,r=e.editorState;if(null!=n)return n.map(function(e){return"function"===(void 0===e?"undefined":W()(e))?e(t._setCustomControlState,t._getCustomControlState,r):e})}},{key:"_setCustomControlState",value:function(t,e){this.setState(function(n){var r=n.customControlState;return{customControlState:y()({},r,h()({},t,e))}})}},{key:"_getCustomControlState",value:function(t){return this.state.customControlState[t]}},{key:"_renderBlockTypeDropdown",value:function(t,e){var n=this._getCurrentBlockType(),r=new q.a((e.BLOCK_TYPE_DROPDOWN||[]).map(function(t){return[t.style,{label:t.label,className:t.className}]}));return r.has(n)||(n=K()(r.keys())[0]),C.a.createElement(o,{key:t},C.a.createElement(Ct,y()({},e.extraProps,{choices:r,selectedKey:n,onChange:this._selectBlockType,"aria-label":"Block type"})))}},{key:"_renderBlockTypeButtons",value:function(t,e){var n=this,r=this._getCurrentBlockType(),i=(e.BLOCK_TYPE_BUTTONS||[]).map(function(t,i){return C.a.createElement(dt,y()({},e.extraProps,{key:String(i),isActive:t.style===r,label:t.label,onToggle:n._toggleBlockType,style:t.style,className:t.className}))});return C.a.createElement(o,{key:t},i)}},{key:"_renderInlineStyleButtons",value:function(t,e){var n=this,r=this.props.editorState.getCurrentInlineStyle(),i=(e.INLINE_STYLE_BUTTONS||[]).map(function(t,i){return C.a.createElement(dt,y()({},e.extraProps,{key:String(i),isActive:r.has(t.style),label:t.label,onToggle:n._toggleInlineStyle,style:t.style,className:t.className}))});return C.a.createElement(o,{key:t},i)}},{key:"_renderBlockAlignmentButtons",value:function(t,e){var n=this,r=this.props.editorState,i=r.getCurrentContent(),s=r.getSelection().getStartKey(),a=i.getBlockForKey(s).getData().get("textAlign"),u=(e.BLOCK_ALIGNMENT_BUTTONS||[]).map(function(t,r){return C.a.createElement(dt,y()({},e.extraProps,{key:String(r),isActive:a===t.style,label:t.label,onToggle:n._toggleAlignment,style:t.style,className:t.className}))});return C.a.createElement(o,{key:t},u)}},{key:"_renderLinkButtons",value:function(t,e){var n=this.props.editorState.getSelection(),r=this._getEntityAtCursor(),i=!n.isCollapsed(),s=null!=r&&r.type===B.ENTITY_TYPE.LINK,a=i||s,u=r&&s?r.getData().url:"",c=e.LINK_BUTTONS||{},l=c.link||{},f=c.removeLink||{},d=l.label||"Link",p=f.label||"Remove Link",h=!(!r||!s)&&"_blank"===r.getData().target,v=!(!r||!s)&&"nofollow"===r.getData().rel;return C.a.createElement(o,{key:t},C.a.createElement(kt,{label:d,iconName:"link",isDisabled:!a,showPopover:this.state.showLinkInput,onTogglePopover:this._toggleShowLinkInput,defaultValue:u,onSubmit:this._setLink,checkOptions:{targetBlank:{label:"Open link in new tab",defaultValue:h},noFollow:{label:"No follow",defaultValue:v}}}),C.a.createElement(lt,y()({},e.extraProps,{label:p,iconName:"remove-link",isDisabled:!s,onClick:this._removeLink,focusOnClick:!1})))}},{key:"_renderImageButton",value:function(t,e){var n=(e.IMAGE_BUTTON||{}).label||"Image";return C.a.createElement(o,{key:t},C.a.createElement(kt,{label:n,iconName:"image",showPopover:this.state.showImageInput,onTogglePopover:this._toggleShowImageInput,onSubmit:this._setImage}))}},{key:"_renderUndoRedo",value:function(t,e){var n=this.props.editorState,r=0!==n.getUndoStack().size,i=0!==n.getRedoStack().size,s=e.HISTORY_BUTTONS||{},a=s.undo||{},u=s.redo||{},c=a.label||"Undo",l=u.label||"Redo";return C.a.createElement(o,{key:t},C.a.createElement(lt,y()({},e.extraProps,{label:c,iconName:"undo",isDisabled:!r,onClick:this._undo,focusOnClick:!1})),C.a.createElement(lt,y()({},e.extraProps,{label:l,iconName:"redo",isDisabled:!i,onClick:this._redo,focusOnClick:!1})))}},{key:"_onKeypress",value:function(t,e){Object(G.hasCommandModifier)(t)&&75===t.keyCode&&(this.props.editorState.getSelection().isCollapsed()||(this.setState({showLinkInput:!0}),e.wasHandled=!0))}},{key:"_toggleShowLinkInput",value:function(t){var e=this.state.showLinkInput;if(e){var n=!0;if(t&&"click"===t.type){var r=Q.a.findDOMNode(this).parentNode,i=document.activeElement;null==i||i===document.body||r.contains(i)||(n=!1)}n&&this.props.focusEditor()}this.setState({showLinkInput:!e})}},{key:"_toggleShowImageInput",value:function(t){var e=this.state.showImageInput;if(e){var n=!0;if(t&&"click"===t.type){var r=Q.a.findDOMNode(this).parentNode,i=document.activeElement;null==i||i===document.body||r.contains(i)||(n=!1)}n&&this.props.focusEditor()}this.setState({showImageInput:!e})}},{key:"_setImage",value:function(t){var e=this.props.editorState,n=e.getCurrentContent(),r=e.getSelection(),i=(n=n.createEntity(B.ENTITY_TYPE.IMAGE,"IMMUTABLE",{src:t})).getLastCreatedEntityKey(),o=T.Modifier.insertText(n,r," ",null,i);this.setState({showImageInput:!1}),this.props.onChange(T.EditorState.push(e,o)),this._focusEditor()}},{key:"_setLink",value:function(t,e){var n=this.props.editorState,r=n.getCurrentContent(),i=n.getSelection(),o=i,s=!1;if(i.isCollapsed()){var a=this._getEntityDescriptionAtCursor();a&&(s=!0,i=i.merge({anchorOffset:a.startOffset,focusOffset:a.endOffset,isBackward:!1}))}else s=!0;if(this.setState({showLinkInput:!1}),s){var u=e.targetBlank?"_blank":void 0,c=e.noFollow?"nofollow":void 0,l=(r=r.createEntity(B.ENTITY_TYPE.LINK,"MUTABLE",{url:t,target:u,rel:c})).getLastCreatedEntityKey();n=T.EditorState.push(n,r),n=T.RichUtils.toggleLink(n,i,l),n=T.EditorState.acceptSelection(n,o),this.props.onChange(n)}this._focusEditor()}},{key:"_removeLink",value:function(){var t=this.props.editorState,e=s(t);if(null!=e){var n=e.blockKey,r=e.startOffset,i=e.endOffset;this.props.onChange(function(t,e,n,r){var i=t.getCurrentContent(),o=i.getBlockMap(),s=o.get(e),a=s.getCharacterList().map(function(t,e){return e>=n&&e<r?T.CharacterMetadata.applyEntity(t,null):t}),u=s.set("characterList",a),c=o.set(e,u),l=i.set("blockMap",c);return T.EditorState.push(t,l,"apply-entity")}(t,n,r,i))}}},{key:"_getEntityDescriptionAtCursor",value:function(){return s(this.props.editorState)}},{key:"_getEntityAtCursor",value:function(){var t=this.props.editorState,e=t.getCurrentContent(),n=s(t);return null==n?null:e.getEntity(n.entityKey)}},{key:"_getCurrentBlockType",value:function(){var t=this.props.editorState,e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()}},{key:"_selectBlockType",value:function(){this._toggleBlockType.apply(this,arguments),this._focusEditor()}},{key:"_toggleBlockType",value:function(t){this.props.onChange(T.RichUtils.toggleBlockType(this.props.editorState,t))}},{key:"_toggleInlineStyle",value:function(t){this.props.onChange(T.RichUtils.toggleInlineStyle(this.props.editorState,t))}},{key:"_toggleAlignment",value:function(t){var e,n=this.props.editorState,r=n.getSelection(),i=n.getCurrentContent(),o=r.getStartKey(),s=i.getBlockForKey(o),a=s.getData();e=a.get("textAlign")===t?a.remove("textAlign"):a.set("textAlign",t);var u=s.set("data",e),c=i.merge({blockMap:i.getBlockMap().set(o,u)}),l=T.EditorState.push(n,c,"change-block-data");this.props.onChange(l)}},{key:"_undo",value:function(){var t=this.props.editorState;this.props.onChange(T.EditorState.undo(t))}},{key:"_redo",value:function(){var t=this.props.editorState;this.props.onChange(T.EditorState.redo(t))}},{key:"_focusEditor",value:function(){var t=this;setTimeout(function(){t.props.focusEditor()},50)}}]),e}(O.Component),Dt=Lt,At=n(311),zt=n.n(At),Pt=n(313),Bt=n(318),Rt=n(325),Ut=n(327),Ft=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w()(this,t),this._cache=n,this._editorState=e}return k()(t,[{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(e){return this._editorState===e?this:new t(e)}},{key:"toString",value:function(t,e){var n=this._cache[t];return null!=n?n:this._cache[t]=function(t,e,n){var r=t.getCurrentContent();switch(e){case"html":return Object(Pt.stateToHTML)(r,n);case"markdown":return Object(Rt.stateToMarkdown)(r);case"raw":return zt()(Object(T.convertToRaw)(r));default:throw new Error("Format not supported: "+e)}}(this.getEditorState(),t,e)}},{key:"setContentFromString",value:function(e,n,r){return new t(T.EditorState.push(this._editorState,a(e,n,r),"secondary-paste"),h()({},n,e))}}],[{key:"createEmpty",value:function(e){return new t(T.EditorState.createEmpty(e))}},{key:"createFromState",value:function(e){return new t(e)}},{key:"createFromString",value:function(e,n,r,i){var o=a(e,n,i);return new t(T.EditorState.createWithContent(o,r),h()({},n,e))}}]),t}(),Kt=Ft,Yt={strategy:function(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();if(null!=e){var r=n?n.getEntity(e):null;return null!=r&&r.getType()===B.ENTITY_TYPE.LINK}return!1},e)},component:function(t){var e=t.contentState.getEntity(t.entityKey).getData().url;return C.a.createElement("a",{href:e},t.children)}},qt=n(329),Ht=n.n(qt),Wt=function(t){function e(t){w()(this,e);var n=M()(this,(e.__proto__||b()(e)).call(this,t));tt()(n);var r=t.contentState.getEntity(t.entityKey).getData(),i=r.width,o=r.height;return n.state={width:i,height:o},n}return N()(e,t),k()(e,[{key:"componentDidMount",value:function(){var t=this,e=this.state,n=e.width,r=e.height,i=this.props.contentState.getEntity(this.props.entityKey),o=new Image,s=i.getData().src;o.src=s,o.onload=function(){null!=n&&null!=r||(t.setState({width:o.width,height:o.height}),T.Entity.mergeData(t.props.entityKey,{width:o.width,height:o.height,originalWidth:o.width,originalHeight:o.height}))}}},{key:"render",value:function(){var t=this.state,e=t.width,n=t.height,r=this.props.className,i=this.props.contentState.getEntity(this.props.entityKey).getData().src;r=X()(r,Ht.a.root);var o={verticalAlign:"bottom",backgroundImage:'url("'+i+'")',backgroundSize:e+"px "+n+"px",lineHeight:n+"px",fontSize:n+"px",width:e,height:n,letterSpacing:e};return C.a.createElement("span",{className:r,style:o,onClick:this._onClick},this.props.children)}},{key:"_onClick",value:function(){console.log("image clicked")}},{key:"_handleResize",value:function(t,e){var n=e.size,r=n.width,i=n.height;this.setState({width:r,height:i}),T.Entity.mergeData(this.props.entityKey,{width:r,height:i})}}]),e}(O.Component),Gt={strategy:function(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();if(null!=e){var r=n?n.getEntity(e):null;return null!=r&&r.getType()===B.ENTITY_TYPE.IMAGE}return!1},e)},component:Wt},Vt=function(t,e){return function(n){if(e){var r=e(n);if(null!=r)return r}return t(n)}},Qt=n(331),Zt=n.n(Qt),Jt=(n(332),n(334)),Xt=n.n(Jt);n.d(e,"decorator",function(){return ee}),n.d(e,"createEmptyValue",function(){return c}),n.d(e,"createValueFromString",function(){return l}),n.d(e,"EditorValue",function(){return Kt}),n.d(e,"getTextAlignBlockMetadata",function(){return z}),n.d(e,"getTextAlignClassName",function(){return D}),n.d(e,"getTextAlignStyles",function(){return A}),n.d(e,"ButtonGroup",function(){return o}),n.d(e,"Button",function(){return it}),n.d(e,"Dropdown",function(){return Ct});var $t={CODE:{backgroundColor:"#f3f3f3",fontFamily:'"Inconsolata", "Menlo", "Consolas", monospace',fontSize:16,padding:2}},te=function(t){function e(){w()(this,e);var t=M()(this,(e.__proto__||b()(e)).apply(this,arguments));return t._keyEmitter=new Zt.a,tt()(t),t}return N()(e,t),k()(e,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this._focus()}},{key:"render",value:function(){var t,e=this,n=this.props,r=n.value,i=n.className,o=n.toolbarClassName,s=n.editorClassName,a=n.placeholder,c=n.customStyleMap,l=n.readOnly,f=n.toolbarHidden,d=n.disabled,p=n.toolbarConfig,v=n.toolbarOnBottom,g=n.blockStyleFn,_=n.customControls,b=n.keyBindingFn,S=n.rootStyle,w=n.toolbarStyle,x=n.editorStyle,k=m()(n,["value","className","toolbarClassName","editorClassName","placeholder","customStyleMap","readOnly","toolbarHidden","disabled","toolbarConfig","toolbarOnBottom","blockStyleFn","customControls","keyBindingFn","rootStyle","toolbarStyle","editorStyle"]),j=r.getEditorState();c=c?y()({},$t,c):$t;var M=X()((t={},h()(t,Xt.a.editor,!0),h()(t,Xt.a.hidePlaceholder,this._shouldHidePlaceholder()),t),s);null==l&&(l=d);var E=void 0;return l||f||(E=C.a.createElement(Dt,{rootStyle:w,isOnBottom:v,className:o,keyEmitter:this._keyEmitter,editorState:j,onChange:this._onChange,focusEditor:this._focus,toolbarConfig:p,customControls:_})),C.a.createElement("div",{className:X()(Xt.a.root,i),style:S},!v&&E,C.a.createElement("div",{className:M,style:x},C.a.createElement(T.Editor,y()({},k,{blockStyleFn:Vt(u,g),customStyleMap:c,editorState:j,handleReturn:this._handleReturn,keyBindingFn:b||this._customKeyHandler,handleKeyCommand:this._handleKeyCommand,onTab:this._onTab,onChange:this._onChange,placeholder:a,ariaLabel:a||"Edit text",ref:function(t){e.editor=t},spellCheck:!0,readOnly:l}))),v&&E)}},{key:"_shouldHidePlaceholder",value:function(){var t=this.props.value.getEditorState().getCurrentContent();return!t.hasText()&&"unstyled"!==t.getBlockMap().first().getType()}},{key:"_handleReturn",value:function(t){var e=this.props.handleReturn;return!!(null!=e&&e(t)||this._handleReturnSoftNewline(t)||this._handleReturnEmptyListItem()||this._handleReturnSpecialBlock())}},{key:"_handleReturnSoftNewline",value:function(t){var e=this.props.value.getEditorState();if(U()(t)){var n=e.getSelection();if(n.isCollapsed())this._onChange(T.RichUtils.insertSoftNewline(e));else{var r=e.getCurrentContent(),i=T.Modifier.removeRange(r,n,"forward"),o=i.getSelectionAfter(),s=i.getBlockForKey(o.getStartKey());i=T.Modifier.insertText(i,o,"\n",s.getInlineStyleAt(o.getStartOffset()),null),this._onChange(T.EditorState.push(e,i,"insert-fragment"))}return!0}return!1}},{key:"_handleReturnEmptyListItem",value:function(){var t=this.props.value.getEditorState(),e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),i=e.getStartKey(),o=n.getBlockForKey(i);if(r(o)&&0===o.getLength()){var s=o.getDepth(),a=0===s?function(t,e,n){var r=t.getCurrentContent(),i=r.getBlockForKey(e);if(i.getType()===n)return t;var o=i.set("type",n),s=r.merge({blockMap:r.getBlockMap().set(e,o)});return T.EditorState.push(t,s,"change-block-type")}(t,i,B.BLOCK_TYPE.UNSTYLED):function(t,e,n){var r=t.getCurrentContent(),i=r.getBlockForKey(e);if(i.getDepth()===n)return t;var o=i.set("depth",n),s=r.merge({blockMap:r.getBlockMap().set(e,o)});return T.EditorState.push(t,s,"adjust-depth")}(t,i,s-1);return this._onChange(a),!0}}return!1}},{key:"_handleReturnSpecialBlock",value:function(){var t=this.props.value.getEditorState(),e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),i=e.getStartKey(),o=n.getBlockForKey(i);if(!r(o)&&o.getType()!==B.BLOCK_TYPE.UNSTYLED&&o.getLength()===e.getStartOffset()){var s=function(t,e,n){var r=t.getCurrentContent(),i=r.getBlockMap(),o=i.get(e),s=i.toSeq().takeUntil(function(t){return t===o}),a=i.toSeq().skipUntil(function(t){return t===o}).rest(),u=Object(T.genKey)(),c=new T.ContentBlock({key:u,type:n,text:"",characterList:o.getCharacterList().slice(0,0),depth:0}),l=s.concat([[e,o],[u,c]],a).toOrderedMap(),f=t.getSelection(),d=r.merge({blockMap:l,selectionBefore:f,selectionAfter:f.merge({anchorKey:u,anchorOffset:0,focusKey:u,focu
2sOffset:0,isBackward:!1})});return T.EditorState.push(t,d,"split-block")}(t,i,B.BLOCK_TYPE.UNSTYLED);return this._onChange(s),!0}}return!1}},{key:"_onTab",value:function(t){var e=this.props.value.getEditorState(),n=T.RichUtils.onTab(t,e,2);n!==e&&this._onChange(n)}},{key:"_customKeyHandler",value:function(t){var e={};return this._keyEmitter.emit("keypress",t,e),e.wasHandled?null:L()(t)}},{key:"_handleKeyCommand",value:function(t){var e=this.props.value.getEditorState(),n=T.RichUtils.handleKeyCommand(e,t);return!!n&&(this._onChange(n),!0)}},{key:"_onChange",value:function(t){var e=this.props,n=e.onChange,r=e.value;if(null!=n){var i=r.setEditorState(t),o=i.getEditorState();this._handleInlineImageSelection(o),n(i)}}},{key:"_handleInlineImageSelection",value:function(t){var e=t.getSelection(),n=function(t){var e=t.getCurrentContent(),n=e.getBlockMap(),r=t.getSelection();if(r.isCollapsed())return new P.OrderedMap;var i=r.getStartKey(),o=r.getEndKey();return i===o?new P.OrderedMap({startKey:e.getBlockForKey(i)}):n.takeUntil(function(t,e){return e===o}).skipUntil(function(t,e){return e===i})}(t),r=function(t){return t>0&&t<n.size-1},i=function(t,n){return 0===n&&t>e.getStartOffset()},o=function(t,r){return r===n.size-1&&t<e.getEndOffset()};n.toIndexedSeq().forEach(function(t,e){Gt.strategy(t,function(n){(i(n,e)||r(e)||o(n,e))&&function(t,e){var n=t.getEntityAt(e);T.Entity.mergeData(n,{selected:!0})}(t,n)})})}},{key:"_focus",value:function(){this.editor.focus()}}]),e}(O.Component),ee=(e.default=te,new T.CompositeDecorator([Yt,Gt]));d()(te,{EditorValue:Kt,decorator:ee,createEmptyValue:c,createValueFromString:l,ButtonGroup:o,Button:it,Dropdown:Ct})},function(t,e,n){n(144),t.exports=n(4).Object.assign},function(t,e,n){var r=n(7);r(r.S+r.F,"Object",{assign:n(145)})},function(t,e,n){"use strict";var r=n(43),i=n(72),o=n(52),s=n(39),a=n(65),u=Object.assign;t.exports=!u||n(32)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,l=i.f,f=o.f;u>c;)for(var d,p=a(arguments[c++]),h=l?r(p).concat(l(p)):r(p),v=h.length,y=0;v>y;)f.call(p,d=h[y++])&&(n[d]=p[d]);return n}:u},function(t,e,n){var r=n(38),i=n(50),o=n(147);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),l=o(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(68),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){n(149);var r=n(4).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(7);r(r.S+r.F*!n(13),"Object",{defineProperty:n(9).f})},function(t,e,n){n(151),t.exports=n(4).Object.getPrototypeOf},function(t,e,n){var r=n(39),i=n(100);n(101)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){t.exports={default:n(153),__esModule:!0}},function(t,e,n){n(45),n(55),t.exports=n(76).f("iterator")},function(t,e,n){var r=n(68),i=n(67);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(53),i=n(42),o=n(54),s={};n(25)(s,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(9),i=n(26),o=n(43);t.exports=n(13)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(12).document;t.exports=r&&r.documentElement},function(t,e,n){"use strict";var r=n(159),i=n(103),o=n(41),s=n(38);t.exports=n(74)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){t.exports={default:n(161),__esModule:!0}},function(t,e,n){n(162),n(107),n(165),n(166),t.exports=n(4).Symbol},function(t,e,n){"use strict";var r=n(12),i=n(33),o=n(13),s=n(7),a=n(102),u=n(77).KEY,c=n(32),l=n(70),f=n(54),d=n(51),p=n(6),h=n(76),v=n(78),y=n(163),g=n(104),m=n(26),_=n(38),b=n(64),S=n(42),w=n(53),x=n(164),k=n(106),j=n(9),M=n(43),E=k.f,N=j.f,O=x.f,C=r.Symbol,T=r.JSON,I=T&&T.stringify,L=p("_hidden"),D=p("toPrimitive"),A={}.propertyIsEnumerable,z=l("symbol-registry"),P=l("symbols"),B=l("op-symbol
2s"),R=Object.prototype,U="function"==typeof C,F=r.QObject,K=!F||!F.prototype||!F.prototype.findChild,Y=o&&c(function(){return 7!=w(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(R,e);r&&delete R[e],N(t,e,n),r&&t!==R&&N(R,e,r)}:N,q=function(t){var e=P[t]=w(C.prototype);return e._k=t,e},H=U&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},W=function(t,e,n){return t===R&&W(B,e,n),m(t),e=b(e,!0),m(n),i(P,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=w(n,{enumerable:S(0,!1)})):(i(t,L)||N(t,L,S(1,{})),t[L][e]=!0),Y(t,e,n)):N(t,e,n)},G=function(t,e){m(t);for(var n,r=y(e=_(e)),i=0,o=r.length;o>i;)W(t,n=r[i++],e[n]);return t},V=function(t){var e=A.call(this,t=b(t,!0));return!(this===R&&i(P,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(P,t)||i(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=_(t),e=b(e,!0),t!==R||!i(P,e)||i(B,e)){var n=E(t,e);return!n||!i(P,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=O(_(t)),r=[],o=0;n.length>o;)i(P,e=n[o++])||e==L||e==u||r.push(e);return r},J=function(t){for(var e,n=t===R,r=O(n?B:_(t)),o=[],s=0;r.length>s;)!i(P,e=r[s++])||n&&!i(R,e)||o.push(P[e]);return o};U||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(B,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),Y(this,t,S(1,n))};return o&&K&&Y(R,t,{configurable:!0,set:e}),q(t)},a(C.prototype,"toString",function(){return this._k}),k.f=Q,j.f=W,n(105).f=x.f=Z,n(52).f=V,n(72).f=J,o&&!n(75)&&a(R,"propertyIsEnumerable",V,!0),h.f=function(t){return q(p(t))}),s(s.G+s.W+s.F*!U,{Symbol:C});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$=0;X.length>$;)p(X[$++]);for(var tt=M(p.store),et=0;tt.length>et;)v(tt[et++]);s(s.S+s.F*!U,"Symbol",{for:function(t){return i(z,t+="")?z[t]:z[t]=C(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),s(s.S+s.F*!U,"Object",{create:function(t,e){return void 0===e?w(t):G(w(t),e)},defineProperty:W,defineProperties:G,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:J}),T&&s(s.S+s.F*(!U||c(function(){var t=C();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return"function"==typeof(e=r[1])&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,I.apply(T,r)}}}),C.prototype[D]||n(25)(C.prototype,D,C.prototype.valueOf),f(C,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(43),i=n(72),o=n(52);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(38),i=n(105).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},function(t,e,n){n(78)("asyncIterator")},function(t,e,n){n(78)("observable")},function(t,e,n){t.exports={default:n(168),__esModule:!0}},function(t,e,n){n(169),t.exports=n(4).Object.setPrototypeOf},function(t,e,n){var r=n(7);r(r.S,"Object",{setPrototypeOf:n(170).set})},function(t,e,n){var r=n(27),i=n(26),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(31)(Function.call,n(106).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(172),__esModule:!0}},function(t,e,n){n(173);var r=n(4).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(7);r(r.S,"Object",{create:n(53)})},function(t,e,n){"use strict";var r=n(46),i=n(11),o=n(34),s=n(5),a=n(0),u=(n(47),n(1)),c=n(17),l=n(188),f=u.List,d=u.Repeat,p={insertAtomicBlock:function(t,e,n){var u=t.getCurrentContent(),l=t.getSelection(),p=s.removeRange(u,l,"backward"),h=p.getSelectionAfter(),v=s.splitBlock(p,h),y=v.getSelectionAfter(),g=s.setBlockType(v,y,"atomic"),m=i.create({entity:e}),_=[new o({key:c(),type:"atomic",text:n,characterList:f(d(m,n.length))}),new o({key:c(),type:"unstyled",text:"",characterList:f()})],b=r.createFromArray(_),S=s.replaceWithFragment(g,y,b),w=S.merge
vendor: 9,124 bytes, line 2
2({selectionBefore:l,selectionAfter:S.getSelectionAfter().set("hasFocus",!0)});return a.push(t,w,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var i=t.getCurrentContent(),o=t.getSelection(),u=void 0;if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());u=l(i,e,c,r)}else{var f=s.removeRange(i,n,"backward"),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())u=l(f,e,p,"before");else if(d.getEndOffset()===p.getLength())u=l(f,e,p,"after");else{var h=s.splitBlock(f,d),v=h.getSelectionAfter(),y=h.getBlockForKey(v.getFocusKey());u=l(h,e,y,"before")}}var g=u.merge({selectionBefore:o,selectionAfter:u.getSelectionAfter().set("hasFocus",!0)});return a.push(t,g,"move-block")}};t.exports=p},function(t,e,n){"use strict";function r(t,e,n,r){var s=t.getBlockMap(),a=e.getStartKey(),u=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),f=s.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===c}).concat(o([[c,s.get(c)]])).map(function(t,e){var o,s;a===c?(o=u,s=l):(o=e===a?u:0,s=e===c?l:t.getLength());for(var f,d=t.getCharacterList();o<s;)f=d.get(o),d=d.set(o,r?i.applyStyle(f,n):i.removeStyle(f,n)),o++;return t.set("characterList",d)});return t.merge({blockMap:s.merge(f),selectionBefore:e,selectionAfter:e})}var i=n(11),o=n(1).Map,s={add:function(t,e,n){return r(t,e,n,!0)},remove:function(t,e,n){return r(t,e,n,!1)}};t.exports=s},function(t,e,n){"use strict";var r=n(1),i=n(177);t.exports=function(t,e,n){var o=t.getBlockMap(),s=e.getStartKey(),a=e.getStartOffset(),u=e.getEndKey(),c=e.getEndOffset(),l=o.skipUntil(function(t,e){return e===s}).takeUntil(function(t,e){return e===u}).toOrderedMap().merge(r.OrderedMap([[u,o.get(u)]])).map(function(t,e){var r=e===s?a:0,o=e===u?c:t.getLength();return i(t,r,o,n)});return t.merge({blockMap:o.merge(l),selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n,i){for(var o=t.getCharacterList();e<n;)o=o.set(e,r.applyEntity(o.get(e),i)),e++;return t.set("characterList",o)}},function(t,e,n){"use strict";function r(t,e,n,r,a,u,c){var l=n.getStartOffset(),f=n.getEndOffset(),d=t.__get(a).getMutability(),p=c?l:f;if("MUTABLE"===d)return n;var h=o(e,a).filter(function(t){return p<=t.end&&p>=t.start});1!=h.length&&s(!1);var v=h[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1});u||(c?f=v.end:l=v.start);var y=i.getRemovalRange(l,f,e.getText().slice(v.start,v.end),v.start,r);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}var i=n(179),o=n(180),s=n(2);t.exports=function(t,e,n,i,o){var s=i.getStartOffset(),a=i.getEndOffset(),u=e.getEntityAt(s),c=n.getEntityAt(a-1);if(!u&&!c)return i;var l=i;if(u&&u===c)l=r(t,e,l,o,u,!0,!0);else if(u&&c){var f=r(t,e,l,o,u,!1,!0),d=r(t,n,l,o,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(u){var p=r(t,e,l,o,u,!1,!0);l=l.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var h=r(t,n,l,o,c,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},function(t,e,n){"use strict";t.exports={getRemovalRange:function(t,e,n,r,i){var o=n.split(" ");o=o.map(function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<o.length-1)return t+" ";return t});for(var s,a=r,u=null,c=null,l=0;l<o.length;l++){if(t<(s=a+o[l].length)&&a<e)null!==u||(u=a),c=s;else if(null!==u)break;a=s}var f=r+n.length,d=u===r,p=c===f;return(!d&&p||d&&!p)&&("forward"===i?c!==f&&c++:u!==r&&u--),{start:u,end:c}}}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){n.push({start:t,end:e})}),n.length||r(!1),n}},function(t,e,n){"use strict";var r=n(46),i=n(17),o=n(110),s=n(2);t.exports=function(t,e,n){e.isCollapsed()||s(!1);var a,u,c=e.getStartKey(),l=e.getStartOffset(),f=t.getBlockMap(),d=n.size;if(1===d){var p=f.get(c),h=n.first(),v=p.getText(),y=p.getCharacterList(),g=p.merge({text:v.slice(0,l)+h.getText()+v.slice(l),characterList:o(y,h.getCharacterList(),l),data:h.getData()});return f=f.set(c,g),a=c,u=l+h.getText().length,t.merge({blockMap:f.set(c,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:a,anchorOffset:u,focusKey:a,focusOffset:u,isBackward:!1})})}var m=[];return t.getBlockMap().forEach(function(t,e){if(e===c){var r=t.getText(),o=t.getCharacterList(),s=r.length,u=r.slice(0,l),f=o.slice(0,l),p=n.first(),h=t.merge({text:u+p.getText(),characterList:f.concat(p.getCharacterList()),type:u?t.getType():p.getType(),data:p.getData()});m.push(h),n.slice(1,d-1).forEach(function(t){m.push(t.set("key",i()))});var v=r.slice(l,s),y=o.slice(l,s),g=n.last();a=i();var _=g.merge({key:a,text:g.getText()+v,characterList:g.getCharacterList().concat(y),data:g.getData()});m.push(_)}else m.push(t)}),u=n.last().getLength(),t.merge({blockMap:r.createFromArray(m),selectionBefore:e,selectionAfter:e.merge({anchorKey:a,anchorOffset:u,focusKey:a,focusOffset:u,isBackward:!1})})}},function(t,e,n){"use strict";var r=n(1),i=n(110),o=n(2),s=r.Repeat;t.exports=function(t,e,n,r){e.isCollapsed()||o(!1);var a=n.length;if(!a)return t;var u=t.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),f=u.get(c),d=f.getText(),p=f.merge({text:d.slice(0,l)+n+d.slice(l,f.getLength()),characterList:i(f.getCharacterList(),s(r,a).toList(),l)}),h=l+a;return t.merge({blockMap:u.set(c,p),selectionAfter:e.merge({anchorOffset:h,focusOffset:h})})}},function(t,e,n){"use strict";var r=n(1).Map;t.exports=function(t,e,n){var i=e.getStartKey(),o=e.getEndKey(),s=t.getBlockMap(),a=s.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat(r([[o,s.get(o)]])).map(n);return t.merge({blockMap:s.merge(a),selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),o=e.getStartKey(),s=e.getStartOffset(),a=e.getEndKey(),u=e.getEndOffset(),c=i.get(o),l=i.get(a);n=c===l?function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),i=t.slice(n);t=r.concat(i).toList()}return t}(c.getCharacterList(),s,u):c.getCharacterList().slice(0,s).concat(l.getCharacterList().slice(u));var f=c.merge({text:c.getText().slice(0,s)+l.getText().slice(u),characterList:n}),d=i.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===a}).concat(r.Map([[a,null]])).map(function(t,e){return e===o?f:null});return i=i.merge(d).filter(function(t){return!!t}),t.merge({blockMap:i,selectionBefore:e,selectionAfter:e.merge({anchorKey:o,anchorOffset:s,focusKey:o,focusOffset:s,isBackward:!1})})}},function(t,e,n){"use strict";var r=n(1),i=n(17),o=n(2),s=r.Map;t.exports=function(t,e){e.isCollapsed()||o(!1);var n=e.getAnchorKey(),r=e.getAnchorOffset(),a=t.getBlockMap(),u=a.get(n),c=u.getText(),l=u.getCharacterList(),f=u.merge({text:c.slice(0,r),characterList:l.slice(0,r)}),d=i(),p=f.merge({key:d,text:c.slice(r),characterList:l.slice(r),data:s()}),h=a.toSeq().takeUntil(function(t){return t===u}),v=a.toSeq().skipUntil(function(t){return t===u}).rest(),y=h.concat([[f.getKey(),f],[p.getKey(),p]],v).toOrderedMap();return t.merge({blockMap:y,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})}},function(t,e,n){"use strict";var r,i=n(1),o=n(187),s=n(8),a=i.OrderedMap,u={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),u=n.valueSeq().map(function(t){return s(r).getDirection(t.getText())}),c=a(n.keySeq().zip(u));return null!=e&&i.is(e,c)?e:c}};t.exports=u},function(t,e,n){"use strict";var r=n(113),i=n(82),o=n(2),s=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),e?i.isStrong(e)||o(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}return t.prototype.reset=function(){this._lastDir=this._defaultDir},t.prototype.getDirection=function(t){return this._lastDir=r.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e,n,i){e.getKey()===n.getKey()&&r(!1),"replace"===i&&r(!1);var o=n.getKey(),s=t.getBlockBefore(o),a=t.getBlockAfter(o),u=t.getBlockMap().delete(e.getKey()),c=u.toSeq().takeUntil(function(t){return t===n}),l=u.toSeq().skipUntil(function(t){return t===n}).skip(1),f=void 0;return"before"===i?(s&&s.getKey()===e.getKey()&&r(!1),f=c.concat([[e.getKey(),e],[n.getKey(),n]],l).toOrderedMap()):"after"===i&&(a&&a.getKey()===e.getKey()&&r(!1),f=c.concat([[n.getKey(),n],[e.getKey(),e]],l).toOrderedMap()),t.merge({blockMap:f,selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:e.getKey(),focusKey:e.getKey()})})}},function(t,e,n){"use strict";var r=n(1).List,i=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._decorators=e.slice()}return t.prototype.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);
2return this._decorators.forEach(function(r,i){var o=0;(0,r.strategy)(t,function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(function(t,e,n,r){for(var i=e;i<n;i++)t[i]=r}(n,t,e,i+"."+o),o++)},e)}),r(n)},t.prototype.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},t.prototype.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=i},function(t,e,n){"use strict";var r=n(35)||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(83),o=n(114),s=n(191),a=n(192),u=n(214),c=n(217),l=n(250),f=n(0),d=n(3),p=n(36),h=n(119),v=n(85),y=n(18),g=n(48),m=n(79),_=n(17),b=n(89),S=n(86),w=n(2),x=n(8),k=y.isBrowser("IE"),j=!k,M={edit:c,composite:s,drag:u,cut:null,render:null},E=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=n.editorKey||_(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=n.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.focus=r._focus.bind(r),r.blur=r._blur.bind(r),r.setMode=r._setMode.bind(r),r.exitCurrentMode=r._exitCurrentMode.bind(r),r.restoreEditorDOM=r._restoreEditorDOM.bind(r),r.setClipboard=r._setClipboard.bind(r),r.getClipboard=r._getClipboard.bind(r),r.getEditorKey=function(){return r._editorKey},r.update=r._update.bind(r),r.onDragEnter=r._onDragEnter.bind(r),r.onDragLeave=r._onDragLeave.bind(r),r.state={contentsKey:0},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&r(e,n)}}},e.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},e.prototype._renderPlaceholder=function(){return this._showPlaceholder()?d.createElement(l,{text:x(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID}):null},e.prototype.render=function(){var t=this.props,e=t.readOnly,n=t.textAlignment,i=g({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===n,"DraftEditor/alignRight":"right"===n,"DraftEditor/alignCenter":"center"===n});return d.createElement("div",{className:i},this._renderPlaceholder(),d.createElement("div",{className:g("DraftEditor/editorContainer"),ref:"editorContainer"},d.createElement("div",{"aria-activedescendant":e?null:this.props.ariaActiveDescendantID,"aria-autocomplete":e?null:this.props.ariaAutoComplete,"aria-describedby":this._showPlaceholder()?this._placeholderAccessibilityID:null,"aria-expanded":e?null:this.props.ariaExpanded,"aria-haspopup":e?null:this.props.ariaHasPopup,"aria-label":this.props.ariaLabel,"aria-owns":e?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:g({notranslate:!e,"public/DraftEditor/content":!0}),contentEditable:!e,"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:"editor",role:e?null:this.props.role||"textbox",spell
vendor: 11,375 bytes, line 2
2Check:j&&this.props.spellCheck,style:{outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},d.createElement(a,{blockRenderMap:this.props.blockRenderMap,blockRendererFn:this.props.blockRendererFn,blockStyleFn:this.props.blockStyleFn,customStyleMap:r({},o,this.props.customStyleMap),customStyleFn:this.props.customStyleFn,editorKey:this._editorKey,editorState:this.props.editorState,key:"contents"+this.state.contentsKey,textDirectionality:this.props.textDirectionality}))))},e.prototype.componentDidMount=function(){this.setMode("edit"),k&&document.execCommand("AutoUrlDetect",!1,!1)},e.prototype.componentWillUpdate=function(t){this._blockSelectEvents=!0,this._latestEditorState=t.editorState},e.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1},e.prototype._focus=function(t){var e=this.props.editorState,n=e.getSelection().getHasFocus(),r=p.findDOMNode(this.refs.editor),i=v.getScrollParent(r),o=t||S(i),s=o.x,a=o.y;r instanceof HTMLElement||w(!1),r.focus(),i===window?window.scrollTo(s,a):h.setTop(i,a),n||this.update(f.forceSelection(e,e.getSelection()))},e.prototype._blur=function(){var t=p.findDOMNode(this.refs.editor);t instanceof HTMLElement||w(!1),t.blur()},e.prototype._setMode=function(t){this._handler=M[t]},e.prototype._exitCurrentMode=function(){this.setMode("edit")},e.prototype._restoreEditorDOM=function(t){var e=this;this.setState({contentsKey:this.state.contentsKey+1},function(){e._focus(t)})},e.prototype._setClipboard=function(t){this._clipboard=t},e.prototype._getClipboard=function(){return this._clipboard},e.prototype._update=function(t){this._latestEditorState=t,this.props.onChange(t)},e.prototype._onDragEnter=function(){this._dragCount++},e.prototype._onDragLeave=function(){0==--this._dragCount&&this.exitCurrentMode()},e}(d.Component);E.defaultProps={blockRenderMap:i,blockRendererFn:m.thatReturnsNull,blockStyleFn:m.thatReturns(""),keyBindingFn:b,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},t.exports=E},function(t,e,n){"use strict";var r=n(5),i=n(0),o=n(59),s=n(84),a=n(115),u=!1,c=!1,l="",f={onBeforeInput:function(t,e){l=(l||"")+e.data},onCompositionStart:function(t){c=!0},onCompositionEnd:function(t){u=!1,c=!1,setTimeout(function(){u||f.resolveComposition(t)},20)},onKeyDown:function(t,e){if(!c)return f.resolveComposition(t),void t._onKeyDown(e);e.which!==o.RIGHT&&e.which!==o.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===o.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!c){u=!0;var e=l;l="";var n=i.set(t._latestEditorState,{inCompositionMode:!1}),o=n.getCurrentInlineStyle(),f=s(n.getCurrentContent(),n.getSelection()),d=!e||a(n)||o.size>0||null!==f;if(d&&t.restoreEditorDOM(),t.exitCurrentMode(),e){var p=r.replaceText(n.getCurrentContent(),n.getSelection(),e,o,f);return void t.update(i.push(n,p,"insert-characters"))}d&&t.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};t.exports=f},function(t,e,n){"use strict";function r(t,e,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":4===e,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})}var i=n(35)||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(116),s=n(60),a=(n(0),n(3)),u=n(48),c=n(213),l=n(8),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var s=e.getCurrentContent(),a=n.getCurrentContent(),u=e.getDecorator(),c=n.getDecorator();return i!==o||s!==a||u!==c||n.mustForceSelection()},e.prototype.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,u=t.customStyleMap,f=t.customStyleFn,d=t.editorState,p=d.getCurrentContent(),h=d.getSelection(),v=d.mustForceSelection(),y=d.getDecorator(),g=l(d.getDirectionMap()),m=p.getBlocksAsArray(),_=[],b=null,S=null,w=0;w<m.length;w++){var x=m[w],k=x.getKey(),j=x.getType(),M=n(x),E=void 0,N=void 0,O=void 0;M&&(E=M.component,N=M.props,O=M.editable);var C=this.props.textDirectionality||g.get(k),T=s.encode(k,0,0),I={contentState:p,block:x,blockProps:N,customStyleMap:u,customStyleFn:f,decorator:y,direction:C,forceSelection:v,key:k,offsetKey:T,selection:h,tree:d.getBlockTree(k)},L=e.get(j),D=L.wrapper,A=L.element||e.get("unstyled").element,z=x.getDepth(),P=this.props.blockStyleFn(x);"li"===A&&(P=c(P,r(j,z,S!==D||null===b||z>b,C)));var B=E||o,R={className:P,"data-block":!0,"data-editor":this.props.editorKey,"data-offset-key":T,key:k};void 0!==O&&(R=i({},R,{contentEditable:O,suppressContentEditableWarning:!0}));var U=a.createElement(A,R,a.createElement(B,I));_.push({block:U,wrapperTemplate:D,key:k,offsetKey:T}),b=D?x.getDepth():null,S=D}for(var F=[],K=0;K<_.length;){var Y=_[K];if(Y.wrapperTemplate){var q=[];do{q.push(_[K].block),K++}while(K<_.length&&_[K].wrapperTemplate===Y.wrapperTemplate);var H=a.cloneElement(Y.wrapperTemplate,{key:Y.key+"-wrap","data-offset-key":Y.offsetKey},q);F.push(H)}else F.push(Y.block),K++}return a.createElement("div",{"data-contents":"true"},F)},e}(a.Component);t.exports=f},function(t,e,n){"use strict";var r=n(35),i=(n(34),n(194)),o=n(3),s=n(36),a=n(2),u=n(201),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,r=e.start,i=e.text,o=n.getKey(),c=r+i.length;if(t.hasEdgeWithin(o,r,c)){var l=s.findDOMNode(this);l||a(!1);var f=l.firstChild;f||a(!1);var d=void 0;f.nodeType===Node.TEXT_NODE?d=f:"BR"===f.tagName?d=l:(d=f.firstChild)||a(!1),u(t,d,o,r,c)}}},e.prototype.shouldComponentUpdate=function(t){var e=s.findDOMNode(this.refs.leaf);return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},e.prototype.componentDidUpdate=function(){this._setSelection()},e.prototype.componentDidMount=function(){this._setSelection()},e.prototype.render=function(){var t=this.props.block,e=this.props.text;e.endsWith("\n")&&this.props.isLast&&(e+="\n");var n=this.props,s=n.customStyleMap,a=n.customStyleFn,u=n.offsetKey,c=n.styleSet,l=c.reduce(function(t,e){var n={},i=s[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(n.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),r(t,i,n)},{});if(a){var f=a(c,t);l=r(l,f)}return o.createElement("span",{"data-offset-key":u,ref:"leaf",style:l},o.createElement(i,null,e))},e}(o.Component);t.exports=c},function(t,e,n){"use strict";var r=n(3),i=n(36),o=n(18),s=n(2),a=o.isBrowser("IE <= 11"),u=a?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),c=a?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),l=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._forceFlag=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){var e=i.findDOMNode(this),n=""===t.children;return e instanceof Element||s(!1),n?!function(t){return a?"\n"===t.textContent:"BR"===t.tagName}(e):e.textContent!==t.children},e.prototype.componentWillUpdate=function(){this._forceFlag=!this._forceFlag},e.prototype.render=function(){return""===this.props.children?this._forceFlag?u:c:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},e}(r.Component);t.exports=l},function(t,e,n){"use strict";var r=n(196),i="Unknown",o={"Mac OS":"Mac OS X"},s=(new r).getResult(),a=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(s.browser.version),u={browserArchitecture:s.cpu.architecture||i,browserFullVersion:s.browser.version||i,browserMinorVersion:a.minor||i,browserName:s.browser.name||i,browserVersion:s.browser.major||i,deviceName:s.device.model||i,engineName:s.engine.name||i,engineVersion:s.engine.version||i,platformArchitecture:s.cpu.architecture||i,platformName:function(t){return o[t]||t}(s.os.name)||i,platformVersion:s.os.version||i,platformFullVersion:s.os.version||i};t.exports=u},function(t,e,n){var r;!function(i){"use strict";var o="model",s="name",a="type",u="vendor",c="version",l="mobile",f="tablet",d={extend:function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return"string"==typeof t?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(t,e){for(var n,r,i,o,s,a,u=0;u<e.length&&!s;){var c=e[u],l=e[u+1];for(n=r=0;n<c.length&&!s;)if(s=c[n++].exec(t))for(i=0;i<l.length;i++)a=s[++r],"object"==typeof(o=l[i])&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[
vendor: 7,296 bytes, line 2
21],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;u+=2}},str:function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(d.has(e[n][r],t))return"?"===n?void 0:n}else if(d.has(e[n],t))return"?"===n?void 0:n;return t}},h={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{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"}}}},v={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[s,c],[/(opios)[\/\s]+([\w\.]+)/i],[[s,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[s,"Opera"],c],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser)\/([\w\.-]+)/i],[s,c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[s,"IE"],c],[/(edge)\/((\d+)?[\w\.]+)/i],[s,c],[/(yabrowser)\/([\w\.]+)/i],[[s,"Yandex"],c],[/(puffin)\/([\w\.]+)/i],[[s,"Puffin"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[s,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],c],[/(micromessenger)\/([\w\.]+)/i],[[s,"WeChat"],c],[/(QQ)\/([\d\.]+)/i],[s,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[s,c],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[s,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[s,"Facebook"]],[/(headlesschrome) ([\w\.]+)/i],[c,[s,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[s,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[s,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[s,c],[/(dolfin)\/([\w\.]+)/i],[[s,"Dolphin"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[s,"Chrome"],c],[/(coast)\/([\w\.]+)/i],[[s,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[s,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[s,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,s],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[c,p.str,h.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[s,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],c],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",d.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",d.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",d.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[o,u,[a,f]],[/applecoremedia\/[\w\.]+ \((ipad)/],[o,[u,"Apple"],[a,f]],[/(apple\s{0,1}tv)/i],[[o,"Apple TV"],[u,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[u,o,[a,f]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[o,[u,"Amazon"],[a,f]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[o,p.str,h.device.amazon.model],[u,"Amazon"],[a,l]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[o,u,[a,l]],[/\((ip[honed|\s\w*]+);/i],[o,[u,"Apple"],[a,l]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[u,o,[a,l]],[/\(bb10;\s(\w+)/i],[o,[u,"BlackBerry"],[a,l]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[o,[u,"Asus"],[a,f]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[u,"Sony"],[o,"Xperia Tablet"],[a,f]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[o,[u,"Sony"],[a,l]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[u,o,[a,"console"]],[/android.+;\s(shield)\sbuild/i],[o,[u,"Nvidia"],[a,"console"]],[/(playstation\s[34portablevi]+)/i],[o,[u,"Sony"],[a,"console"]],[/(sprint\s(\w+))/i],[[u,p.str,h.device.sprint.vendor],[o,p.str,h.device.sprint.model],[a,l]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[u,o,[a,f]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[u,[o,/_/g," "],[a,l]],[/(nexus\s9)/i],[o,[u,"HTC"],[a,f]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[o,[u,"Huawei"],[a,l]],[/(microsoft);\s(lumia[\s\w]+)/i],[u,o,[a,l]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[o,[u,"Microsoft"],[a,"console"]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[u,"Microsoft"],[a,l]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[o,[u,"Motorola"],[a,l]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[o,[u,"Motorola"],[a,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[u,d.trim],[o,d.trim],[a,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[u,"Samsung"],[a,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[o,[u,"Sharp"],[a,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[u,"Samsung"],o,[a,f]],[/smart-tv.+(samsung)/i],[u,[a,"smarttv"],o],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[u,"Samsung"],o,[a,l]],[/sie-(\w+)*/i],[o,[u,"Siemens"],[a,l]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[u,"Nokia"],o,[a,l]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[o,[u,"Acer"],[a,f]],[/android.+([vl]k\-?\d{3})\s+build/i],[o,[u,"LG"],[a,f]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[u,"LG"],o,[a,f]],[/(lg) netcast\.tv/i],[u,o,[a,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],[o,[u,"LG"],[a,l]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[o,[u,"Lenovo"],[a,f]],[/linux;.+((jolla));/i],[u,o,[a,l]],[/((pebble))app\/[\d\.]+\s/i],[u,o,[a,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[u,o,[a,l]],[/crkey/i],[[o,"Chromecast"],[u,"Google"]],[/android.+;\s(glass)\s\d/i],[o,[u,"Google"],[a,"wearable"]],[/android.+;\s(pixel c)\s/i],[o,[u,"Google"],[a,f]],[/android.+;\s(pixel xl|pixel)\s/i],[o,[u,"Google"],[a,l]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(
2hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[[o,/_/g," "],[u,"Xiaomi"],[a,l]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[o,[u,"Meizu"],[a,f]],[/android.+a000(1)\s+build/i],[o,[u,"OnePlus"],[a,l]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[o,[u,"RCA"],[a,f]],[/android.+[;\/]\s*(Venue[\d\s]*)\s+build/i],[o,[u,"Dell"],[a,f]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[o,[u,"Verizon"],[a,f]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[u,"Barnes & Noble"],o,[a,f]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[o,[u,"NuVision"],[a,f]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[[u,"ZTE"],o,[a,f]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[o,[u,"Swiss"],[a,l]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[o,[u,"Swiss"],[a,f]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[o,[u,"Zeki"],[a,f]],[/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i],[[u,"Dragon Touch"],o,[a,f]],[/android.+[;\/]\s*(NS-?.+)\s+build/i],[o,[u,"Insignia"],[a,f]],[/android.+[;\/]\s*((NX|Next)-?.+)\s+build/i],[o,[u,"NextBook"],[a,f]],[/android.+[;\/]\s*(Xtreme\_?)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[u,"Voice"],o,[a,l]],[/android.+[;\/]\s*(LVTEL\-?)?(V1[12])\s+build/i],[[u,"LvTel"],o,[a,l]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[o,[u,"Envizen"],[a,f]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(.*\b)\s+build/i],[u,o,[a,f]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[o,[u,"MachSpeed"],[a,f]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[u,o,[a,f]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[o,[u,"Rotor"],[a,f]],[/android.+(KS(.+))\s+build/i],[o,[u,"Amazon"],[a,f]],[/android.+(Gigaset)[\s\-]+(Q.+)\s+build/i],[u,o,[a,f]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[a,d.lowerize],u,o],[/(android.+)[;\/].+build/i],[o,[u,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[s,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,c],[/rv\:([\w\.]+).*(gecko)/i],[c,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[s,[c,p.str,h.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[c,p.str,h.os.windows.version]],[/\((bb)(10);
vendor: 3,401 bytes, line 2
2/i],[[s,"BlackBerry"],c],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[s,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[s,"Symbian"],c],[/\((series40);/i],[s],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"],c],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[s,c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],c],[/(sunos)\s?([\w\.]+\d)*/i],[[s,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[s,c],[/(haiku)\s(\w+)/i],[s,c],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[[c,/_/g,"."],[s,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[s,"Mac OS"],[c,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[s,c]]},y=function(t,e){this[s]=t,this[c]=e},g=function(t){this.architecture=t},m=function(t,e,n){this[u]=t,this[o]=e,this[a]=n},_=y,b=y,S=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof S))return new S(t,e).getResult();var n=t||(i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=e?d.extend(v,e):v,o=new y,s=new g,a=new m,u=new _,c=new b;return this.getBrowser=function(){return p.rgx.call(o,n,r.browser),o.major=d.major(o.version),o},this.getCPU=function(){return p.rgx.call(s,n,r.cpu),s},this.getDevice=function(){return p.rgx.call(a,n,r.device),a},this.getEngine=function(){return p.rgx.call(u,n,r.engine),u},this.getOS=function(){return p.rgx.call(c,n,r.os),c},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=t,o=new y,s=new g,a=new m,u=new _,c=new b,this},this};S.VERSION="0.7.14",S.BROWSER={NAME:s,MAJOR:"major",VERSION:c},S.CPU={ARCHITECTURE:"architecture"},S.DEVICE={MODEL:o,VENDOR:u,TYPE:a,CONSOLE:"console",MOBILE:l,SMARTTV:"smarttv",TABLET:f,WEARABLE:"wearable",EMBEDDED:"embedded"},S.ENGINE={NAME:s,VERSION:c},S.OS={NAME:s,VERSION:c},void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=S),e.UAParser=S):n(197)?void 0!==(r=function(){return S}.call(e,n,e,t))&&(t.exports=r):i&&(i.UAParser=S);var w=i&&(i.jQuery||i.Zepto);if(void 0!==w){var x=new S;w.ua=x.getResult(),w.ua.get=function(){return x.getUA()},w.ua.set=function(t){x.setUA(t);var e=x.getResult();for(var n in e)w.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e,n){"use strict";function r(t,e){var n=t.split(y);return n.length>1?n.some(function(t){return b.contains(t,e)}):function(t,e){var n=t.split(g);if(n.length>0&&n.length<=2||h(!1),1===n.length)return i(n[0],e);var r=n[0],o=n[1];return c(r)&&c(o)||h(!1),i(">="+r,e)&&i("<="+o,e)}(t=n[0].trim(),e)}function i(t,e){if(""===(t=t.trim()))return!0;var n=e.split(v),r=a(t),i=r.modifier,c=r.rangeComponents;switch(i){case"<":return o(n,c);case"<=":return function(t,e){var n=p(t,e);
2return-1===n||0===n}(n,c);case">=":return s(n,c);case">":return function(t,e){return 1===p(t,e)}(n,c);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var i=r.length-1,a=parseInt(r[i],10);return u(a)&&(r[i]=a+1+""),s(t,n)&&o(t,r)}(n,c);default:return function(t,e){return 0===p(t,e)}(n,c)}}function o(t,e){return-1===p(t,e)}function s(t,e){var n=p(t,e);return 1===n||0===n}function a(t){var e=t.split(v),n=e[0].match(m);return n||h(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function u(t){return!isNaN(t)&&isFinite(t)}function c(t){return!a(t).modifier}function l(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function f(t,e){var n=t.match(_)[1],r=e.match(_)[1],i=parseInt(n,10),o=parseInt(r,10);return u(i)&&u(o)&&i!==o?d(i,o):d(t,e)}function d(t,e){return typeof t!=typeof e&&h(!1),t>e?1:t<e?-1:0}function p(t,e){for(var n=function(t,e){l(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var i=n;i<t.length;i++)t[i]="0"}return l(e,t.length),[t,e]}(t,e),r=n[0],i=n[1],o=0;o<i.length;o++){var s=f(r[o],i[o]);if(s)return s}return 0}var h=n(2),v=/\./,y=/\|\|/,g=/\s+\-\s+/,m=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,_=/^(\d*)(.*)/,b={contains:function(t,e){return r(t.trim(),e.trim())}};t.exports=b},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){if(!t)return null;var i={};for(var o in t)r.call(t,o)&&(i[o]=e.call(n,t[o],o,t));return i}},function(t,e,n){"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},function(t,e,n){"use strict";(function(e){function r(t){if(!t)return"[empty]";var e=i(t);return e.nodeType===Node.TEXT_NODE?e.textContent:(e instanceof Element||d(!1),e.innerHTML)}function i(t){if(t.nodeType===Node.TEXT_NODE){var e=t.textContent.length;return document.createTextNode("[text "+e+"]")}for(var n=t.cloneNode(),r=t.childNodes,o=0;o<r.length;o++)n.appendChild(i(r[o]));return n}function o(t){for(var e=t;e;){if(e instanceof Element&&e.hasAttribute("contenteditable"))return r(e);e=e.parentNode}return"Could not find contentEditable parent of node"}function s(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function a(t,e,n,r){if(t.extend&&l(f(),e))n>s(e)&&c.logSelectionStateFailure({anonymizedDom:o(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),t.extend(e,n);else{var i=t.getRangeAt(0);i.setEnd(e,n),t.addRange(i.cloneRange())}}function u(t,e,n,r){var i=document.createRange();n>s(e)&&c.logSelectionStateFailure({anonymizedDom:o(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),i.setStart(e,n),t.addRange(i)}var c=n(202),l=n(117),f=n(118),d=n(2);t.exports=function(t,n,r,i,o){if(l(document.documentElement,n)){var s=e.getSelection(),c=t.getAnchorKey(),f=t.getAnchorOffset(),d=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!s.extend&&h){var v=c,y=f;c=d,f=p,d=v,p=y,h=!1}var g=c===r&&i<=f&&o>=f,m=d===r&&i<=p&&o>=p;if(g&&m)return s.removeAllRanges(),u(s,n,f-i,t),void a(s,n,p-i,t);if(h){if(m&&(s.removeAllRanges(),u(s,n,p-i,t)),g){var _=s.focusNode,b=s.focusOffset;s.removeAllRanges(),u(s,n,f-i,t),a(s,_,b,t)}}else g&&(s.removeAllRanges(),u(s,n,f-i,t)),m&&a(s,n,p-i,t)}}}).call(e,n(28))},function(t,e,n){"use strict";t.exports={logSelectionStateFailure:function(){return null}}},function(t,e,n){"use strict";var r=n(204);t.exports=function(t){return r(t)&&3==t.nodeType}},function(t,e,n){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},function(t,e,n){"use strict";function r(t){return null==t?t:String(t)}var i=n(206),o=n(207);t.exports=function(t,e){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return r(n.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return r(n.getPropertyValue(o(e)));if("display"===e)return"none"}return r(t.currentStyle?"float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[i(e)]:t.style&&t.style[i(e)])}},function(t,e,n){"use strict";var r=/-(.)/g;t.exports=function(t){return t.replace(r,function(t,e){return e.toUpperCase()})}},function(t,e,n){"use strict";var r=/([A-Z])/g;t.exports=function(t){return t.replace(r,"-$1").toLowerCase()}},function(t,e,n){"use strict";var r=n(209);t.exports=function(t){var e=r(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},function(t,e,n){"use strict";var r=n(117);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!r(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},function(t,e,n){"use strict";var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:r||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},function(t,e,n){"use strict";
vendor: 6,634 bytes, line 2
2t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},function(t,e,n){"use strict";function r(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function i(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function o(){return{width:window.innerWidth||r(),height:window.innerHeight||i()}}o.withoutScrollbars=function(){return{width:r(),height:i()}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){t||(t="");var e=void 0,n=arguments.length;if(n>1)for(var r=1;r<n;r++)(e=arguments[r])&&(t=(t?t+" ":"")+e);return t}},function(t,e,n){"use strict";function r(t,e){var n=null,r=null;if("function"==typeof document.caretRangeFromPoint){var i=document.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=d(n),r=d(r);var o=d(c(n));return f(e,o,r,o,r)}function i(t,e){var n=a.moveText(t.getCurrentContent(),t.getSelection(),e);return u.push(t,n,"insert-fragment")}function o(t,e,n){var r=a.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return u.push(t,r,"insert-fragment")}var s=n(120),a=n(5),u=n(0),c=n(87),l=n(122),f=n(123),d=n(8),p=n(61),h={onDragEnd:function(t){t.exitCurrentMode()},onDrop:function(t,e){var n=new s(e.nativeEvent.dataTransfer),a=t._latestEditorState,u=r(e.nativeEvent,a);if(e.preventDefault(),t.exitCurrentMode(),null!=u){var c=n.getFiles();if(c.length>0){if(t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(u,c)))return;return void l(c,function(e){e&&t.update(o(a,u,e))})}var f=t._internalDrag?"internal":"external";if(!t.props.handleDrop||!p(t.props.handleDrop(u,n,f)))return t._internalDrag?void t.update(i(a,u)):void t.update(o(a,u,n.getText()))}}};t.exports=h},function(t,e,n){"use strict";function r(t){return t.split("/")}var i={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var e=r(t);return i.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};t.exports=i},function(t,e,n){"use strict";var r=n(2);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}(t):[t]}},function(t,e,n){"use strict";var r={onBeforeInput:n(218),onBlur:n(222),onCompositionStart:n(223),onCopy:n(224),onCut:n(225),onDragOver:n(226),onDragStart:n(227),onFocus:n(228),onInput:n(229),onKeyDown:n(230),onPaste:n(244),onSelect:n(248)};t.exports=r},function(t,e,n){"use strict";function r(t){return y&&(t==h||t==v)}function i(t,e,n,r){var i=s.replaceText(t.getCurrentContent(),t.getSelection(),e,n,r);return a.push(t,i,"insert-characters")}var o=n(111),s=n(5),a=n(0),u=n(18),c=n(84),l=n(115),f=n(8),d=n(219),p=n(61),h="'",v="/",y=u.isBrowser("Firefox");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,s=e.data;if(s){if(t.props.handleBeforeInput&&p(t.props.handleBeforeInput(s,n)))return void e.preventDefault();var u=n.getSelection();if(!u.isCollapsed())return e.preventDefault(),void t.update(i(n,s,n.getCurrentInlineStyle(),c(n.getCurrentContent(),n.getSelection())));var h=!l(n),v=i(n,s,n.getCurrentInlineStyle(),c(n.getCurrentContent(),n.getSelection()));if(!h)return e.preventDefault(),void t.update(v);var y=u.getAnchorKey(),g=n.getBlockTree(y),m=o.getFingerprint(g),_=o.getFingerprint(v.getBlockTree(y));r(s)||m!==_||f(v.getDirectionMap()).get(y)!==f(n.getDirectionMap()).get(y)?(e.preventDefault(),t.update(v)):(v=a.set(v,{nativelyRenderedContent:v.getCurrentContent()}),t._pendingStateFromBeforeInput=v,d(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},function(t,e,n){"use strict";(function(e){n(220),t.exports=e.setImmediate}).call(e,n(28))},function(t,e,n){(function(t,e){!function(t){"use strict";function n(t){delete s[t]}function r(t){if(a)setTimeout(r,0,t);else{var e=s[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{n(t),a=!1}}}}if(!t.setImmediate){var i,o=1,s={},a=!1,u=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){r(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&r(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),i=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){r(t.data)},i=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;i=function(e){var n=u.createElement("script");n.onreadystatechange=function(){r(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():i=function(t){setTimeout(r,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return s[o]=r,i(o),o++},c.clearImmediate=n}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(28),n(221))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(){h&&d&&(h=!1,d.length?p=d.concat(p):v=-1,p.length&&s())}
2function s(){if(!h){var t=i(o);h=!0;for(var e=p.length;e;){for(d=p,p=[];++v<e;)d&&d[v].run();v=-1,e=p.length}d=null,h=!1,function(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}var c,l,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var d,p=[],h=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new a(t,e)),1!==p.length||h||i(s)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(18),o=n(118),s=i.isEngine("WebKit");t.exports=function(t,n){s&&o()===document.body&&e.getSelection().removeAllRanges();var i=t._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var u=a.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(n),t.update(r.acceptSelection(i,u))}}}).call(e,n(28))},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){t.setMode("composite"),t.update(r.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},function(t,e,n){"use strict";var r=n(124);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(r(t._latestEditorState))}},function(t,e,n){"use strict";function r(t){var e=i.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}var i=n(5),o=n(0),s=n(85),a=n(124),u=n(86);t.exports=function(t,e){var n=t._latestEditorState;if(n.getSelection().isCollapsed())e.preventDefault();else{var i=s.getScrollParent(e.target),o=u(i),c=o.x,l=o.y,f=a(n);t.setClipboard(f),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM({x:c,y:l}),t.exitCurrentMode(),t.update(r(n))},0)}}},function(t,e,n){"use strict";t.exports=function(t,e){t._internalDrag=!1,t.setMode("drag"),e.preventDefault()}},function(t,e,n){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var o=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),t.update(r.forceSelection(n,o))}}},function(t,e,n){"use strict";(function(e){var r=n(108),i=n(5),o=n(60),s=n(0),a=n(18),u=n(87),c=n(8),l=a.isEngine("Gecko"),f="\n\n";t.exports=function(t){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=e.getSelection(),a=n.anchorNode,d=n.isCollapsed,p=a.nodeType!==Node.TEXT_NODE,h=a.nodeType!==Node.TEXT_NODE&&a.nodeType!==Node.ELEMENT_NODE;if(r.draft_killswitch_allow_nontextnodes){if(p)return}else if(h)return;if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var v=a.parentNode;a.nodeValue=v.textContent;for(var y=v.firstChild;null!==y;y=y.nextSibling)y!==a&&v.removeChild(y)}var g=a.textContent,m=t._latestEditorState,_=c(u(a)),b=o.decode(_),S=b.blockKey,w=b.decoratorKey,x=b.leafKey,k=m.getBlockTree(S).getIn([w,"leaves",x]),j=k.start,M=k.end,E=m.getCurrentContent(),N=E.getBlockForKey(S),O=N.getText().slice(j,M);if(g.endsWith(f)&&(g=g.slice(0,-1)),g!==O){var C,T,I,L,D=m.getSelection(),A=D.merge({anchorOffset:j,focusOffset:M,isBackward:!1}),z=N.getEntityAt(j),P=z&&E.getEntity(z),B="MUTABLE"===(P&&P.getMutability()),R=B?"spellcheck-change":"apply-entity",U=i.replaceText(E,A,g,N.getInlineStyleAt(j),B?N.getEntityAt(j):null);if(l)C=n.anchorOffset,T=n.focusOffset,L=(I=j+Math.min(C,T))+Math.abs(C-T),C=I,T=L;else{var F=g.length-O.length;I=D.getStartOffset(),L=D.getEndOffset(),C=d?L+F:I,T=L+F}
2var K=U.merge({selectionBefore:E.getSelectionAfter(),selectionAfter:D.merge({anchorOffset:C,focusOffset:T})});t.update(s.push(m,K,R))}}}).call(e,n(28))},function(t,e,n){"use strict";function r(t,e){switch(t){case"redo":return o.redo(e);case"delete":return v(e);case"delete-word":return d(e);case"backspace":return h(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e);case"split-block":return p(e);case"transpose-characters":return m(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return y(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}var i=n(5),o=n(0),s=n(62),a=n(59),u=n(231),c=n(18),l=n(232),f=n(234),d=n(236),p=n(237),h=n(238),v=n(239),y=n(240),g=n(241),m=n(242),_=n(243),b=n(61),S=s.isOptionKeyCommand,w=c.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,s=t._latestEditorState;switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&b(t.props.handleReturn(e,s)))return;break;case a.ESC:return e.preventDefault(),void(t.props.onEscape&&t.props.onEscape(e));case a.TAB:return void(t.props.onTab&&t.props.onTab(e));case a.UP:return void(t.props.onUpArrow&&t.props.onUpArrow(e));case a.DOWN:return void(t.props.onDownArrow&&t.props.onDownArrow(e));case a.SPACE:if(w&&S(e)){e.preventDefault();var u=i.replaceText(s.getCurrentContent(),s.getSelection(),"Â ");return void t.update(o.push(s,u,"insert-characters"))}}var c=t.props.keyBindingFn(e);if(c){if("undo"===c)return void _(e,s,t.update);if(e.preventDefault(),!t.props.handleKeyCommand||!b(t.props.handleKeyCommand(c,s))){var l=r(c,s);l!==s&&t.update(l)}}}},function(t,e,n){"use strict";var r=n(5),i=n(0),o=n(57),s=n(8),a=null,u={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),u=null;if(n.isCollapsed()){var c=n.getAnchorKey(),l=e.getBlockForKey(c).getLength();if(l===n.getAnchorOffset())return t;u=n.set("focusOffset",l)}else u=n;u=s(u),a=o(e,u);var f=r.removeRange(e,u,"forward");return f===e?t:i.push(t,f,"remove-range")},paste:function(t){if(!a)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),a);return i.push(t,e,"insert-fragment")}};t.exports=u},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(233),o=n(126),s=n(88),a=n(49);t.exports=function(t){var n=a(t,function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return s(t,1);var r=e.getSelection().getRangeAt(0);return r=i(r),o(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return n===t.getCurrentContent()?t:r.push(t,n,"remove-range")}}).call(e,n(28))},function(t,e,n){"use strict";function r(t,e){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,s=0;s<t.length;s++){var a=t[s];0!==a.width&&1!==a.width&&(n=Math.min(n,a.top),r=Math.min(r,a.bottom),i=Math.max(i,a.top),o=Math.max(o,a.bottom))}return i<=r&&i-n<e&&o-r<e}function i(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}var o=n(37),s=n(125),a=n(2);t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=document.createElement("div");n.style.fontFamily=e.fontFamily,n.style.fontSize=e.fontSize,n.style.fontStyle=e.fontStyle,n.style.fontWeight=e.fontWeight,n.style.lineHeight=e.lineHeight,n.style.position="absolute",n.textContent="M";var r=document.body;r||a(!1),r.appendChild(n);var i=n.getBoundingClientRect();return r.removeChild(n),i.height}(e),u=t.endContainer,c=t.endOffset;for(t.setStart(t.startContainer,0);r(s(t),n)&&(u=t.startContainer,c=t.startOffset,u.parentNode||a(!1),t.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var l=u,f=c-1;;){for(var d=l.nodeValue,p=f;p>=0;p--)if(!(null!=d&&p>0&&o.isSurrogatePair(d,p-1))){if(t.setStart(l,p),!r(s(t),n))break;u=l,c=p}if(-1===p||0===l.childNodes.length)break;f=i(l=l.childNodes[p])}return t.setStart(u,c),t}},function(t,e,n){"use strict";var r=n(127),i=n(0),o=n(88),s=n(49);t.exports=function(t){var e=s(t,function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return o(t,1);var i=e.getStartKey(),s=t.getCurrentContent().getBlockForKey(i).getText().slice(0,n),a=r.getBackward(s);return o(t,a.length||1)},"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},function(t,e,n){"use strict";
2t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;ã»ããã-ãã-ãï¼-ï¼ï¼-ï¼ï¼»-ï½ï½-・⸮ØÙª-Ù¬ØØØï´¾ï´¿á ।ááâ-â§â°-â¡-±´-¸º»¿]"}}},function(t,e,n){"use strict";var r=n(127),i=n(0),o=n(128),s=n(49);t.exports=function(t){var e=s(t,function(t){var e=t.getSelection(),n=e.getStartOffset(),i=e.getStartKey(),s=t.getCurrentContent().getBlockForKey(i).getText().slice(n),a=r.getForward(s);return o(t,a.length||1)},"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},function(t,e,n){"use strict";var r=n(5),i=n(0);t.exports=function(t){var e=r.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},function(t,e,n){"use strict";var r=n(0),i=n(37),o=n(88),s=n(49);t.exports=function(t){var e=s(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),s=e.getAnchorOffset(),a=n.getBlockForKey(r).getText()[s-1];return o(t,a?i.getUTF16Length(a,0):1)},"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(t,e,n){"use strict";var r=n(0),i=n(37),o=n(128),s=n(49);t.exports=function(t){var e=s(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),s=e.getAnchorOffset(),a=n.getBlockForKey(r).getText()[s];return o(t,a?i.getUTF16Length(a,0):1)},"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),i=t.getCurrentContent().getBlockForKey(n).getLength();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0}
2)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(t,e,n){"use strict";var r=n(5),i=n(0),o=n(57);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var s,a,u=e.getAnchorKey(),c=t.getCurrentContent(),l=c.getBlockForKey(u).getLength();if(l<=1)return t;n===l?(s=e.set("anchorOffset",n-1),a=e):a=(s=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=o(c,s),d=r.removeRange(c,s,"backward"),p=d.getSelectionAfter(),h=p.getAnchorOffset()-1,v=p.merge({anchorOffset:h,focusOffset:h}),y=r.replaceWithFragment(d,v,f),g=i.push(t,y,"insert-fragment");return i.acceptSelection(g,a)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){var i=r.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(r.set(e,{nativelyRenderedContent:null})),setTimeout(function(){n(i)},0)):n(i);else{var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}}},function(t,e,n){"use strict";function r(t,e,n){var r=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return c.push(t,r.set("entityMap",n),"insert-fragment")}var i=n(46),o=n(11),s=n(120),a=n(5),u=n(245),c=n(0),l=n(84),f=n(122),d=n(61),p=n(247);t.exports=function(t,e){e.preventDefault();var n=new s(e.clipboardData);if(!n.isRichText()){var h=n.getFiles(),v=n.getText();if(h.length>0){if(t.props.handlePastedFiles&&d(t.props.handlePastedFiles(h)))return;return void f(h,function(e){if(e=e||v){var n=t._latestEditorState,r=p(e),s=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.processText(r,s),d=i.createFromArray(f),h=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),d);t.update(c.push(n,h,"insert-fragment"))}})}}var y=[],g=n.getText(),m=n.getHTML(),_=t._latestEditorState;if(!t.props.handlePastedText||!d(t.props.handlePastedText(g,m,_))){if(g&&(y=p(g)),!t.props.stripPastedStyles){var b=t.getClipboard();if(n.isRichText()&&b){if(-1!==m.indexOf(t.getEditorKey())||1===y.length&&1===b.size&&b.first().getText()===g)return void t.update(r(t._latestEditorState,b))}else if(b&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}(y,b))return void t.update(r(t._latestEditorState,b));if(m){var S=u.processHTML(m,t.props.blockRenderMap);if(S){var w=S.contentBlocks,x=S.entityMap;if(w){var k=i.createFromArray(w);return void t.update(r(t._latestEditorState,k,x))}}}t.setClipboard(null)}if(y.length){var j=o.create({style:_.getCurrentInlineStyle(),entity:l(_.getCurrentContent(),_.getSelection())}),M=u.processText(y,j),E=i.createFromArray(M);t.update(r(t._latestEditorState,E))}}}},function(t,e,n){"use strict";var r=(n(11),n(34)),i=n(1),o=n(129),s=n(17),a=n(130),u=n(81),c=i.List,l=i.Repeat,f={processHTML:function(t,e){return o(t,a,e)},processText:function(t,e){return t.map(function(t){return t=u(t),new r({key:s(),type:"unstyled",text:t,characterList:c(l(e,t.length))})})}};t.exports=f},function(t,e,n){"use strict";var r=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._uri=e}return t.prototype.toString=function(){return this._uri},t}();t.exports=r},function(t,e,n){"use strict";var r=/\r\n?|\n/g;t.exports=function(t){return t.split(r)}},function(t,e,n){"use strict";var r=n(0),i=n(36),o=n(249),s=n(2);t.exports=function(t){if(!t._blockSelectEvents&&t._latestEditorState===t.props.editorState){var e=t.props.editorState,n=i.findDOMNode(t.refs.editorContainer);n||s(!1),n.firstChild instanceof HTMLElement||s(!1);var a=o(e,n.firstChild),u=a.selectionState;u!==e.getSelection()&&(e=a.needsRecovery?r.forceSelection(e,u):r.acceptSelection(e,u),t.update(e))}}},function(t,e,n){"use strict";(function(e){var r=n(126);t.exports=function(t,n){var i=e.getSelection();return 0===i.rangeCount?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(t,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(e,n(28))},function(t,e,n){"use strict";var r=n(3),i=n(48),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},e.prototype.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
2Focus":t});return r.createElement("div",{className:e},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID},this.props.text))},e}(r.Component);t.exports=o},function(t,e,n){"use strict";var r=n(5),i=n(0),o=(n(47),n(252)),s=n(8),a={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=i.push(t,e,"insert-characters");return i.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var s=n.getBlockMap().delete(o.getKey()),u=n.merge({blockMap:s,selectionAfter:e});if(u!==n)return i.push(t,u,"remove-range")}var c=a.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),o=e.getStartKey(),s=n.getBlockForKey(o).getLength();if(e.getStartOffset()<s)return null;var a=n.getBlockAfter(o);if(!a||"atomic"!==a.getType())return null;var u=e.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),c=r.removeRange(n,u,"forward");return c!==n?i.push(t,c,"remove-range"):null},onTab:function(t,e,n){var r=e.getSelection(),s=r.getAnchorKey();if(s!==r.getFocusKey())return e;var a=e.getCurrentContent(),u=a.getBlockForKey(s),c=u.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var l=a.getBlockBefore(s);if(!l)return e;var f=l.getType();if("unordered-list-item"!==f&&"ordered-list-item"!==f)return e;var d=u.getDepth();if(!t.shiftKey&&d===n)return e;n=Math.min(l.getDepth()+1,n);var p=o(a,r,t.shiftKey?-1:1,n);return i.push(e,p,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),o=n.getStartKey(),a=n.getEndKey(),u=t.getCurrentContent(),c=n;if(o!==a&&0===n.getEndOffset()){var l=s(u.getBlockBefore(a));a=l.getKey(),c=c.merge({anchorKey:o,anchorOffset:n.getStartOffset(),focusKey:a,focusOffset:l.getLength(),isBackward:!1})}if(u.getBlockMap().skipWhile(function(t,e){return e!==o}).reverse().skipWhile(function(t,e){return e!==a}).some(function(t){return"atomic"===t.getType()}))return t;var f=u.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,r.setBlockType(u,c,f),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?a.toggleBlockType(t,"code-block"):a.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),o=t.getCurrentInlineStyle();if(n.isCollapsed())return i.setInlineStyleOverride(t,o.has(e)?o.remove(e):o.add(e));var s,a=t.getCurrentContent();return s=o.has(e)?r.removeInlineStyle(a,n,e):r.applyInlineStyle(a,n,e),i.push(t,s,"change-inline-style")},toggleLink:function(t,e,n){var o=r.applyEntity(t.getCurrentContent(),e,n);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var i=e.getAnchorKey(),o=t.getCurrentContent(),s=o.getBlockForKey(i);if(s.getLength()>0)return null;var a=s.getType(),u=o.getBlockBefore(i);if("code-block"===a&&u&&"code-block"===u.getType())return null;if("unstyled"!==a)return r.setBlockType(o,e,"unstyled")}return null}};t.exports=a},function(t,e,n){"use strict";
2t.exports=function(t,e,n,r){var i=e.getStartKey(),o=e.getEndKey(),s=t.getBlockMap(),a=s.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat([[o,s.get(o)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return s=s.merge(a),t.merge({blockMap:s,selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=n(131),i=n(254),o=n(255);t.exports=function(t){var e=0,n={},s=[];t.getBlockMap().forEach(function(t,a){t.findEntityRanges(function(t){return null!==t.getEntity()},function(i){var o=r.stringify(t.getEntityAt(i));n.hasOwnProperty(o)||(n[o]=""+e++)}),s.push({key:a,text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:o(t),entityRanges:i(t,n),data:t.getData().toObject()})});var a=Object.keys(n),u={};return a.forEach(function(e,n){var i=t.getEntity(r.unstringify(e));u[n]={type:i.getType(),mutability:i.getMutability(),data:i.getData()}}),{entityMap:u,blocks:s}}},function(t,e,n){"use strict";var r=n(131),i=n(37).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(o,s){var a=t.getText(),u=t.getEntityAt(o);n.push({offset:i(a.slice(0,o)),length:i(a.slice(o,s)),key:Number(e[r.stringify(u)])})}),n}},function(t,e,n){"use strict";var r=n(37),i=n(56),o=function(t,e){return t===e},s=function(t){return!!t},a=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return function(t,e,n){var a=[],u=e.map(function(t){return t.has(n)}).toList();return i(u,o,s,function(e,i){var o=t.getText();a.push({offset:r.strlen(o.slice(0,e)),length:r.strlen(o.slice(e,i)),style:n})}),a}(t,e,n)});return Array.prototype.concat.apply(a,n.toJS())}},function(t,e,n){"use strict";var r=n(35)||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(34),o=n(80),s=n(58),a=n(257),u=n(258),c=n(259),l=n(17),f=n(1).Map;t.exports=function(t){var e=t.blocks,n=t.entityMap,d={};Object.keys(n).forEach(function(t){var e=n[t],r=e.type,i=e.mutability,o=e.data,a=s.__create(r,i,o||{});d[t]=a});var p=e.map(function(t){var e=t.key,n=t.type,o=t.text,s=t.depth,p=t.inlineStyleRanges,h=t.entityRanges,v=t.data;e=e||l(),n=n||"unstyled",s=s||0,p=p||[],h=h||[],v=f(v);var y=c(o,p),g=h.filter(function(t){return d.hasOwnProperty(t.key)}).map(function(t){return r({},t,{key:d[t.key]})}),m=u(o,g),_=a(y,m);return new i({key:e,type:n,text:o,depth:s,characterList:_,data:v})});return o.createFromBlockArray(p)}},function(t,e,n){"use strict";var r=n(11),i=n(1).List;t.exports=function(t,e){var n=t.map(function(t,n){var i=e[n];return r.create({style:t,entity:i})});return i(n)}},function(t,e,n){"use strict";var r=n(37).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var i=r(t,0,e.offset).length,o=i+r(t,e.offset,e.length).length,s=i;s<o;s++)n[s]=e.key}),n}},function(t,e,n){"use strict";var r=n(37),i=n(1).OrderedSet,o=r.substr,s=i();t.exports=function(t,e){var n=Array(t.length).fill(s);return e&&e.forEach(function(e){for(var r=o(t,0,e.offset).length,i=r+o(t,e.offset,e.length).length;r<i;)n[r]=n[r].add(e.style),r++}),n}},function(t,e,n){"use strict";var r=n(261);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.getRangeAt(0),i=r(n),o=i.top,s=i.right,a=i.bottom,u=i.left;return 0===o&&0===s&&0===a&&0===u?null:i}},function(t,e,n){"use strict";var r=n(125);t.exports=function(t){var e=r(t),n=0,i=0,o=0,s=0;if(e.length){if(e.length>1&&0===e[0].width){var a=e[1];n=a.top,i=a.right,o=a.bottom,s=a.left}else{var u=e[0];n=u.top,i=u.right,o=u.bottom,s=u.left}for(var c=1;c<e.length;c++){var l=e[c];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),i=Math.max(i,l.right),o=Math.max(o,l.bottom),s=Math.min(s,l.left))}}return{top:n,right:i,bottom:o,left:s,width:i-s,height:o-n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.BLOCK_TYPE={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},i=e.ENTITY_TYPE={LINK:"LINK",IMAGE:"IMAGE"},o=e.INLINE_STYLE={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"};e.default={BLOCK_TYPE:r,ENTITY_TYPE:i,INLINE_STYLE:o}},function(t,e,n){"use strict";function r(t,e){for(var n=o,r=o,s=[],a=0,u=0,c=t.length;u<c;u++){r=n;var l=e.get(u);n=l?l.getStyle():o,u>0&&!(0,i.is)(n,r)&&(s.push([t.slice(a,u),r]),a=u)}return s.push([t.slice(a),n]),s}
vendor: 4,998 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_SET=void 0,e.default=function(t,e){for(var n=null,i=null,o=[],s=0,a=0,u=t.length;a<u;a++){i=n;var c=e.get(a);n=c?c.getEntity():null,a>0&&n!==i&&(o.push([i,r(t.slice(s,a),e.slice(s,a))]),s=a)}return o.push([n,r(t.slice(s),e.slice(s))]),o};var i=n(90),o=e.EMPTY_SET=new i.OrderedSet},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(91));e.default=function(t){return function(e,n){var i=e.getCurrentContent(),o=n||e.getSelection(),s=o.getStartKey(),a=o.getEndKey(),u=o.getStartOffset(),c=o.getEndOffset(),l=s===a,f=(0,r.default)(i,s,a),d=!1,p=u+1,h=c-1;return f.forEach(function(e){t(e,function(t,n){if(!d){var r=e.getKey();l&&(n<p||t>h)||r===s&&n<p||r===a&&t>h||(d=!0)}},i)}),d}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),i=function(t){return t&&t.__esModule?t:{default:t}}(n(91));e.default=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),s=2;s<n;s++)o[s-2]=arguments[s];var a=t.getCurrentContent(),u=t.getSelection(),c=u.getStartKey(),l=u.getEndKey(),f=u.getStartOffset(),d=u.getEndOffset(),p=c===l,h=(0,i.default)(a,c,l),v=t;return h.forEach(function(t){var n=t.getKey(),i=f,s=d;n===c?(i=f,s=p?d:t.getText().length):n===l?(i=p?f:0,s=d):(i=0,s=t.getText().length);var a=new r.SelectionState({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:s});v=e.apply(void 0,[v,a].concat(o))}),r.EditorState.forceSelection(v,u)}},function(t,e,n){"use strict";var r=n(59);t.exports=function(t){return t.which===r.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},function(t,e,n){n(45),n(268),t.exports=n(4).Array.from},function(t,e,n){"use strict";var r=n(31),i=n(7),o=n(39),s=n(133),a=n(134),u=n(50),c=n(269),l=n(92);i(i.S+i.F*!n(270)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,d=o(t),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v,g=0,m=l(d);if(y&&(v=r(v,h>2?arguments[2]:void 0,2)),null==m||p==Array&&a(m))for(n=new p(e=u(d.length));e>g;g++)c(n,g,y?v(d[g],g):d[g]);else for(f=m.call(d),n=new p;!(i=f.next()).done;g++)c(n,g,y?s(f,v,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(9),i=n(42);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(6)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){t.exports={default:n(272),__esModule:!0}},function(t,e,n){n(107),n(45),n(55),n(273),n(280),n(283),n(285),t.exports=n(4).Map},function(t,e,n){"use strict";var r=n(274),i=n(137);t.exports=n(276)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(9).f,i=n(53),o=n(135),s=n(31),a=n(136),u=n(63),c=n(74),l=n(103),f=n(275),d=n(13),p=n(77).fastKey,h=n(137),v=d?"_s":"size",y=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){a(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&u(r,n,t[c],t)});return o(l.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=h(this,e),r=y(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(t){h(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(h(this,e),t)}}),d&&r(l.prototype,"size",{get:function(){return h(this,e)[v]}}),l},def:function(t,e,n){var r,i,o=y(t,e);return o?o.v=n:(t._l=o={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=h(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?l(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(12),i=n(4),o=n(9),s=n(13),a=n(6)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(12),i=n(7),o=n(77),s=n(32),a=n(25),u=n(135),c=n(63),l=n(136),f=n(27),d=n(54),p=n(9).f,h=n(277)(0),v=n(13);t.exports=function(t,e,n,y,g,m){var _=r[t],b=_,S=g?"set":"add",w=b&&b.prototype,x={};
2return v&&"function"==typeof b&&(m||w.forEach&&!s(function(){(new b).entries().next()}))?(b=e(function(e,n){l(e,b,t,"_c"),e._c=new _,null!=n&&c(n,g,e[S],e)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!m||"clear"!=t)&&a(b.prototype,t,function(n,r){if(l(this,b,t),!e&&m&&!f(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i})}),m||p(b.prototype,"size",{get:function(){return this._c.size}})):(b=y.getConstructor(e,t,g,S),u(b.prototype,n),o.NEED=!0),d(b,t),x[t]=b,i(i.G+i.W+i.F,x),m||y.setStrong(b,t,g),b}},function(t,e,n){var r=n(31),i=n(65),o=n(39),s=n(50),a=n(278);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,d=5==t||f,p=e||a;return function(e,a,h){for(var v,y,g=o(e),m=i(g),_=r(a,h,3),b=s(m.length),S=0,w=n?p(e,b):u?p(e,0):void 0;b>S;S++)if((d||S in m)&&(y=_(v=m[S],S,g),t))if(n)w[S]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return S;case 2:w.push(v)}else if(l)return!1;return f?-1:c||l?l:w}}},function(t,e,n){var r=n(279);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(27),i=n(104),o=n(6)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(7);r(r.P+r.R,"Map",{toJSON:n(281)("Map")})},function(t,e,n){var r=n(93),i=n(282);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){var r=n(63);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){n(284)("Map")},function(t,e,n){"use strict";var r=n(7);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){n(286)("Map")},function(t,e,n){"use strict";var r=n(7),i=n(95),o=n(31),s=n(63);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,u=arguments[1];return i(this),(e=void 0!==u)&&i(u),null==t?new this:(n=[],e?(r=0,a=o(u,arguments[2],2),s(t,!1,function(t){n.push(a(t,r++))})):s(t,!1,n.push,n),new this(n))}})}},function(t,e,n){var r=n(288);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,".Button__root___1gz0c{display:inline-block;margin:0 5px 0 0;padding:3px 8px;height:30px;line-height:22px;box-sizing:border-box;background:none #fdfdfd;background:linear-gradient(180deg,#fdfdfd 0,#f6f7f8);border:1px solid #999;border-radius:2px;color:#333;text-decoration:none;font-size:inherit;font-family:inherit;cursor:pointer;white-space:nowrap}.Button__root___1gz0c:disabled{cursor:not-allowed;background:none transparent}.Button__root___1gz0c:disabled>*{opacity:.5}",""]),e.locals={root:"Button__root___1gz0c"}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,n){var r=n(291);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,".ButtonWrap__root___1EO_R{display:inline-block;position:relative;z-index:10}",""]),e.locals={root:"ButtonWrap__root___1EO_R"}},function(t,e,n){var r=n(293);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0))
vendor: 16,677 bytes, line 2
2.push([t.i,'.IconButton__root___3tqZW{padding-left:3px;padding-right:3px}.IconButton__icon___3YgOS{display:inline-block;width:22px;height:22px;background-position:50%;background-repeat:no-repeat;background-size:18px}.IconButton__isActive___2Ey8p{background:none #d8d8d8}.IconButton__icon-undo___EQSRP{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTcuODU2IDI0YzIuNjY1LTQuODMgMy4xMTUtMTIuMTk1LTcuMzU2LTExLjk1VjE4bC05LTkgOS05djUuODJDMjMuMDM4IDUuNDk1IDI0LjQzNSAxNi44OSAxNy44NTYgMjR6Ii8+PC9zdmc+");background-size:14px}.IconButton__icon-redo___30MVz{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMuNSA1LjgyVjBsOSA5LTkgOXYtNS45NUMzLjAzIDExLjgwNiAzLjQ3OCAxOS4xNyA2LjE0NCAyNC0uNDM2IDE2Ljg5Ljk2MiA1LjQ5NCAxMy41IDUuODJ6Ii8+PC9zdmc+");background-size:14px}.IconButton__icon-unordered-list-item___Pvkrr{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNNC42NTYgMy4zNDRIMTR2MS4zMTNINC42NTZWMy4zNDR6bTAgNS4zMTJWNy4zNDNIMTR2MS4zMTNINC42NTZ6bTAgNHYtMS4zMTNIMTR2MS4zMTNINC42NTZ6bS0yLTEuNTNxLjM3NSAwIC42NC4yNXQuMjY3LjYyNC0uMjY2LjYyNS0uNjQuMjUtLjYyNi0uMjVUMS43OCAxMnQuMjUtLjYyNS42MjYtLjI1em0wLTguMTI2cS40MDYgMCAuNzAzLjI4dC4yOTYuNzItLjI5Ny43Mi0uNzA0LjI4LS43MDMtLjI4VDEuNjU2IDR0LjI5Ny0uNzIuNzAzLS4yOHptMCA0cS40MDYgMCAuNzAzLjI4dC4yOTYuNzItLjI5Ny43Mi0uNzA0LjI4LS43MDMtLjI4VDEuNjU2IDh0LjI5Ny0uNzIuNzAzLS4yOHoiLz48L3N2Zz4=")}.IconButton__icon-ordered-list-item___2rzD0{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNNC42NTYgOC42NTZWNy4zNDNIMTR2MS4zMTNINC42NTZ6bTAgNHYtMS4zMTNIMTR2MS4zMTNINC42NTZ6bTAtOS4zMTJIMTR2MS4zMTNINC42NTZWMy4zNDR6bS0zLjMxMiA0di0uNjg4aDJ2LjYyNWwtMS4yMiAxLjM3NmgxLjIydi42ODhoLTJWOC43MmwxLjE4OC0xLjM3NkgxLjM0NHptLjY1Ni0ydi0yaC0uNjU2di0uNjg4aDEuMzEzdjIuNjg4SDJ6bS0uNjU2IDZ2LS42ODhoMnYyLjY4OGgtMnYtLjY4OGgxLjMxM3YtLjMxM0gydi0uNjg4aC42NTd2LS4zMTNIMS4zNDR6Ii8+PC9zdmc+")}.IconButton__icon-blockquote___17VSX{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOS4zNDQgMTEuMzQ0bDEuMzEzLTIuNjg4aC0ydi00aDR2NGwtMS4zMTMgMi42ODhoLTJ6bS01LjM0NCAwbDEuMzQ0LTIuNjg4aC0ydi00aDR2NEw2IDExLjM0NEg0eiIvPjwvc3ZnPg==")}.IconButton__icon-bold___2zl9t{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOSAxMC4zNDRxLjQzOCAwIC43Mi0uMjk3dC4yOC0uNzAzLS4yOC0uNzAzVDkgOC4zNDVINi42NTZ2Mkg5em0tMi4zNDQtNnYyaDJxLjQwNiAwIC43MDMtLjI5N3QuMjk2LS43MDMtLjI5Ny0uNzAzLS43MDQtLjI5NmgtMnptMy43NSAyLjg0NHExLjQzOC42NTYgMS40MzggMi4yOCAwIDEuMDY0LS43MDMgMS43OThUOS4zNzYgMTJoLTQuNzJWMi42NTZoNC4xOXExLjEyNCAwIDEuODkuNzh0Ljc2NiAxLjkwNy0xLjA5MyAxLjg0NHoiLz48L3N2Zz4=")}.IconButton__icon-italic___2hHzc{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNNi42NTYgMi42NTZIMTJ2MmgtMS44NzVMNy44NzUgMTBoMS40N3YySDR2LTJoMS44NzVsMi4yNS01LjM0NGgtMS40N3YtMnoiLz48L3N2Zz4=")}.IconButton__icon-underline___2EmZJ{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNMy4zNDQgMTIuNjU2aDkuMzEzVjE0SDMuMzQ0di0xLjM0NHpNOCAxMS4zNDRxLTEuNjU2IDAtMi44MjgtMS4xNzJUNCA3LjM0NFYyaDEuNjU2djUuMzQ0cTAgLjk3LjY4OCAxLjY0VDggOS42NTh0MS42NTYtLjY3Mi42ODgtMS42NFYySDEydjUuMzQ0UTEyIDkgMTAuODI4IDEwLjE3MlQ4IDExLjM0NHoiLz48L3N2Zz4=")}.IconButton__icon-strikethrough___QtE2X{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjMuNTcgMTJxLjE5IDAgLjMxLjEydC4xMi4zMXYuODU2cTAgLjE4OC0uMTIuMzA4dC0uMzEuMTJILjQzcS0uMTg4IDAtLjMwOC0uMTJUMCAxMy4yODZ2LS44NTdxMC0uMTkuMTItLjMxVC40MjggMTJIMjMuNTd6bS0xNy4xLS44NTdxLS4zNzYtLjQ3LS42ODQtMS4wNy0uNjQzLTEuMy0uNjQzLTIuNTIgMC0yLjQyMyAxLjc5NS00LjEzNyAxLjc4LTEuNyA1LjI2My0xLjcuNjcgMCAyLjIzOC4yNTMuODg0LjE2IDIuMzcuNjQyLjEzNS41MS4yODIgMS41OC4xODggMS42NDcuMTg4IDIuNDUgMCAuMjQyLS4wNjcuNjA0bC0uMTYuMDQtMS4xMjUtLjA4LS4xODgtLjAyN3EtLjY3LTEuOTk3LTEuMzgtMi43NDctMS4xNzgtMS4yMi0yLjgxMi0xLjIyLTEuNTI3IDAtMi40MzguNzktLjg5Ny43NzgtLjg5NyAxLjk1NiAwIC45NzcuODg0IDEuODc0dDMuNzM3IDEuNzI4cS45MjUuMjY4IDIuMzE4Ljg4NC43NzcuMzc1IDEuMjcyLjY5Nkg2LjQ3em02Ljc5IDMuNDI4aDUuNTAzcS4wOTQuNTIzLjA5NCAxLjIzMyAwIDEuNDg3LS41NSAyLjg0LS4zMDcuNzM2LS45NSAxLjM5Mi0uNDk2LjQ3LTEuNDYgMS4wODUtMS4wNy42NDMtMi4wNS44ODQtMS4wNy4yOC0yLjcxOC4yOC0xLjUyOCAwLTIuNjEzLS4zMDdsLTEuODc1LS41MzZxLS43NjMtLjIxMy0uOTY0LS4zNzQtLjEwNy0uMTA3LS4xMDctLjI5NXYtLjE3M3EwLTEuNDQ2LS4wMjYtMi4wOS0uMDEzLS40IDAtLjkxbC4wMjctLjQ5NnYtLjU4OGwxLjM2Ny0uMDI3cS4yLjQ1NS40MDIuOTV0LjMuNzUuMTY3LjM2M3EuNDcuNzYzIDEuMDcgMS4yNi41NzcuNDggMS40MDcuNzYyLjc5LjI5NSAxLjc2OC4yOTUuODU3IDAgMS44NjItLjM2MiAxLjAzLS4zNDggMS42MzQtMS4xNTIuNjMtLjgxNi42My0xLjcyNyAwLTEuMTI1LTEuMDg2LTIuMTAzLS40NTUtLjM4OC0xLjgzNS0uOTV6Ii8+PC9zdmc+");background-size:14px}.IconButton__icon-code___3F1pe{background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTE2IDExNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEuNDE0Ij48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0yMi40NjQgMjguNDhjMCAyLjg5NS4zNDQgNS45MDUuODA2IDkuMDIuMzQyIDMuMDEuNjkgNi4wMi42OSA4LjkxNyAwIDMuNTYyLS45MTcgNy43OS04Ljk1NSA3LjkxMnY3LjIzNmM4LjAzNi4xMTUgOC45NTYgNC42NzIgOC45NTYgNy45MTIgMCAyLjg4Ni0uMzQ4IDUuNzgzLS42OSA4Ljc4Ny0uNDYyIDMuMDEzLS44MDYgNi4xMzQtLjgwNiA4LjkyIDAgMTEuMjM4IDcuMTA2IDE1LjI1MiAxNy4wODcgMTUuMjUyaDMuMzJ2LTcuOTEyaC0yLjA2MmMtNS43MjYgMC04LjAyNS0zLjIzMy04LjAyNS04Ljc5NiAwLTIuMjM2LjM0NC00LjU3LjgwNi03LjAyMy4yMjctMi40MzguNjg0LTUuMTIuNjg0LTguMTIuMTE1LTcuNzkyLTMuMzItMTEuMjUzLTkuMTc0LTEyLjU4NnYtLjIyNWM1Ljg1NC0xLjMzMiA5LjI5My00LjY3NiA5LjE3LTEyLjQ3IDAtMi44OTUtLjQ1Ny01LjU2NS0uNjg0LTguMDI0LS40NjItMi40NC0uODA3LTQuNzc3LS44MDctNy4wMTIgMC01LjQ1IDIuMDU4LTguNjg4IDguMDI0LTguNjg4aDIuMDY2di04LjAxNGgtMy4zMmMtMTAuMjA1LS4wMDMtMTcuMDg2IDQuNDQ0LTE3LjA4NiAxNC45MTV6TTkyLjA2IDQ2LjQxN2MwLTIuODkzLjQ1My01LjkwMy44MDMtOC45MTguMzQzLTMuMTE0Ljc5Ny02LjEyLjc5Ny05LjAyIDAtMTAuNDctNi44NzUtMTQuOTE3LTE3LjA4LTE0LjkxN2gtMy4zMjd2OC4wMTdoMi4wNmM1Ljg1Mi4xMTQgNy45MSAzLjIzMyA3LjkxIDguNjg4IDAgMi4yMy0uMzQyIDQuNTY1LS42ODUgNy4wMTItLjM1IDIuNDU1LS42OTIgNS4xMjYtLjY5MiA4LjAyNC0uMTA1IDcuNzk3IDMuMzI3IDExLjEzNiA5LjA1NiAxMi40N3YuMjIyYy01LjcyIDEuMzMzLTkuMTYgNC43OTYtOS4wNTYgMTIuNTg3IDAgMyAuMzQyIDUuNjg2LjY5MiA4LjEyLjM0MyAyLjQ1NS42ODYgNC43OS42ODYgNy4wMjUgMCA1LjU1NC0yLjE4IDguNjgtNy45MTIgOC43ODhoLTIuMDZ2Ny45MTJoMy4zMjVjOS45NzUgMCAxNy4wNzYtNC4wMSAxNy4wNzYtMTUuMjUgMC0yLjc4My0uNDU0LTUuOS0uNzk2LTguOTE0LS4zNDctMy4wMS0uODA1LTUuOS0uODA1LTguNzk1IDAtMy4yMzMgMS4wMzUtNy43OSA4Ljk0My03LjkxM1Y1NC4zMmMtNy45MDQtLjExMi04LjkzNS00LjM0LTguOTM1LTcuOTAzeiIvPjwvZz48L3N2Zz4=")}.IconButton__icon-link___2umEl{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDIyIDI0Ij48cGF0aCBkPSJNMTkuNSAxNi4yODZxMC0uNTM2LS4zNzUtLjkxbC0yLjc4Ni0yLjc4N3EtLjM3Ni0uMzc2LS45MTItLjM3Ni0uNTYzIDAtLjk2NC40M2wuMjU0LjI0N3EuMjE0LjIwOC4yODguMjl0LjIuMjUzLjE3NS4zNDIuMDQ4LjM2OHEwIC41MzYtLjM3NS45MXQtLjkxLjM3NnEtLjIwMiAwLS4zNy0uMDQ4dC0uMzQtLjE3NC0uMjU1LS4yLS4yODgtLjI5LS4yNDgtLjI1M3EtLjQ0Mi40MTUtLjQ0Mi45NzggMCAuNTM2LjM3NS45MWwyLjc2IDIuNzczcS4zNi4zNjIuOTEuMzYyLjUzNiAwIC45MS0uMzQ4bDEuOTctMS45NTVxLjM3NS0uMzc1LjM3NS0uODk3em0tOS40MTUtOS40NDJxMC0uNTM2LS4zNzUtLjkxTDYuOTUgMy4xNnEtLjM3NC0uMzc0LS45MS0uMzc0LS41MjIgMC0uOTEuMzYyTDMuMTYgNS4xMDNxLS4zNzUuMzc1LS4zNzUuODk3IDAgLjUzNi4zNzUuOTFsMi43ODYgMi43ODdxLjM2Mi4zNjIuOTEuMzYyLjU2NCAwIC45NjUtLjQxNmwtLjI1My0uMjQ4cS0uMjEzLS4yMDgtLjI4OC0uMjg4dC0uMjAyLS4yNTQtLjE3NC0uMzQyLS4wNDctLjM2OHEwLS41MzYuMzc1LS45MXQuOTEtLjM3NnEuMjAyIDAgLjM3LjA0N3QuMzQuMTc0LjI1NS4yLjI4OC4yODguMjQ4LjI1NHEuNDQyLS40MTUuNDQyLS45Nzh6bTExLjk4NiA5LjQ0MnEwIDEuNjA3LTEuMTM3IDIuNzJsLTEuOTcgMS45NTRxLTEuMTEgMS4xMTItMi43MTggMS4xMTItMS42MiAwLTIuNzMyLTEuMTM4bC0yLjc2LTIuNzcycS0xLjExLTEuMTEyLTEuMTEtMi43MiAwLTEuNjQ2IDEuMTc4LTIuNzk4bC0xLjE3OC0xLjE4cS0xLjE1MiAxLjE4LTIuNzg2IDEuMTgtMS42MDcgMC0yLjczMi0xLjEyNUwxLjMzOCA4LjczMlEuMjEzIDcuNjA4LjIxMyA2VDEuMzUgMy4yODNsMS45Ny0xLjk1NVE0LjQzMi4yMTUgNi4wNC4yMTVxMS42MiAwIDIuNzMgMS4xMzhsMi43NiAyLjc3MnExLjExMiAxLjExMiAxLjExMiAyLjcyIDAgMS42NDYtMS4xOCAyLjc5OGwxLjE4IDEuMThxMS4xNTItMS4xOCAyLjc4Ni0xLjE4IDEuNjA3IDAgMi43MzIgMS4xMjVsMi43ODYgMi43ODZxMS4xMjUgMS4xMjUgMS4xMjUgMi43MzJ6Ii8+PC9zdmc+");background-size:14px}.IconButton__icon-remove-link___j61pw{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDIyIDI0Ij48cGF0aCBkPSJNNS44OCAxNy4wMjJsLTMuNDMgMy40M3EtLjEzNC4xMi0uMzA4LjEyLS4xNiAwLS4zMDgtLjEyLS4xMi0uMTM1LS4xMi0uMzF0LjEyLS4zMDdsMy40My0zLjQzcS4xMzMtLjEyLjMwNy0uMTJ0LjMxLjEycS4xMi4xMzUuMTIuMzF0LS4xMi4zMDd6bTIuMjYzLjU1djQuMjg1cTAgLjE4OC0uMTIuMzA4dC0uMzEuMTItLjMwNy0uMTItLjEyLS4zMDhWMTcuNTdxMC0uMTg3LjEyLS4zMDd0LjMwOC0uMTIuMzA4LjEyLjEyLjMwOHptLTMtM3EwIC4xODctLjEyLjMwN3QtLjMxLjEySC40M3EtLjE4OCAwLS4zMDgtLjEyVDAgMTQuNTd0LjEyLS4zMDcuMzA4LS4xMmg0LjI4NnEuMTg4IDAgLjMwOC4xMnQuMTIuMzA4em0xNi45MjggMS43MTRxMCAxLjYwNy0xLjEzNyAyLjcybC0xLjk3IDEuOTU0cS0xLjExIDEuMTEyLTIuNzE4IDEuMTEyLTEuNjIgMC0yLjczMi0xLjEzOEw5LjA0IDE2LjQ0N3EtLjI4LS4yOC0uNTYzLS43NWwzLjItLjI0IDMuNjU3IDMuNjdxLjM2Mi4zNi45MS4zNjd0LjkxMi0uMzU1bDEuOTctMS45NTZxLjM3NC0uMzc1LjM3NC0uODk3IDAtLjUzNi0uMzc1LS45MWwtMy42Ny0zLjY4NC4yNC0zLjJxLjQ3LjI4Ljc1LjU2Mmw0LjUgNC41cTEuMTI2IDEuMTUyIDEuMTI2IDIuNzMyek0xMy44MSA2LjU5bC0zLjIuMjRMNi45NSAzLjE2cS0uMzc0LS4zNzUtLjkxLS4zNzUtLjUyMiAwLS45MS4zNjJMMy4xNiA1LjEwMnEtLjM3NS4zNzUtLjM3NS44OTcgMCAuNTM1LjM3NS45MWwzLjY3IDMuNjctLjI0IDMuMjE0cS0uNDctLjI4LS43NS0uNTYzbC00LjUtNC41US4yMTMgNy41OC4yMTMgNnEwLTEuNjA4IDEuMTM4LTIuNzJsMS45Ny0xLjk1NVE0LjQzLjIxMyA2LjA0LjIxM3ExLjYyIDAgMi43MzIgMS4xMzhsNC40NzMgNC40ODhxLjI4LjI4LjU2My43NXptOC40NzggMS4xMjRxMCAuMTg4LS4xMi4zMDh0LS4zMS4xMmgtNC4yODVxLS4xODcgMC0uMzA3LS4xMnQtLjEyLS4zMDguMTItLjMwOC4zMDgtLjEyaDQuMjg3cS4xODggMCAuMzA4LjEydC4xMi4zMDh6TTE1IC40M3Y0LjI4NXEwIC4xODgtLjEyLjMwOHQtLjMxLjEyLS4zMDctLjEyLS4xMi0uMzA4Vi40M3EwLS4xOS4xMi0uMzFUMTQuNTcgMHQuMzEuMTIuMTIuMzF6bTUuNDUgMi4wMmwtMy40MjggMy40M3EtLjE0Ny4xMi0uMzA4LjEydC0uMzA4LS4xMnEtLjEyLS4xMzQtLjEyLS4zMDh0LjEyLS4zMDhsMy40My0zLjQzcS4xMzMtLjEyLjMwNy0uMTJ0LjMwOC4xMnEuMTIyLjEzNS4xMjIuMzF0LS4xMi4zMDd6Ii8+PC9zdmc+");background-size:14px}.IconButton__icon-image___1gW7U{background-image:url("data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgNTMzLjMzMyA1MzMuMzM0IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MzMuMzMzIDUzMy4zMzQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8cGF0aCBkPSJNNDY2LjY2NywxMDBoLTQwMHYzMzMuMzMzaDQwMFYxMDB6IE01MzMuMzMzLDMzLjMzM0w1MzMuMzMzLDMzLjMzM1Y1MDBIMFYzMy4zMzNINTMzLjMzM3ogTTQzMy4zMzMsNDAwSDEwMHYtNjYuNjY3ICAgbDEwMC0xNjYuNjY3bDEzNi45NzksMTY2LjY2N2w5Ni4zNTQtNjYuNjY2VjMwMFY0MDB6IE0zMzMuMzMzLDE4My4zMzNjMCwyNy42MTQsMjIuMzg2LDUwLDUwLDUwczUwLTIyLjM4Niw1MC01MHMtMjIuMzg2LTUwLTUwLTUwICAgUzMzMy4zMzMsMTU1LjcxOSwzMzMuMzMzLDE4My4zMzN6IiBmaWxsPSIjMDAwMDAwIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==");background-size:14px}.IconButton__icon-cancel___fx4TT{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjMuNzggMTkuMjhMMTYuNSAxMmw3LjI4LTcuMjhhLjc0OC43NDggMCAwIDAgMC0xLjA2TDIwLjM0LjIxOGEuNzUuNzUgMCAwIDAtMS4wNi0uMDAyTDEyIDcuNDk4IDQuNzE3LjIyYS43NDguNzQ4IDAgMCAwLTEuMDYgMEwuMjE3IDMuNjZhLjc1Ljc1IDAgMCAwIDAgMS4wNkw3LjQ5NyAxMmwtNy4yOCA3LjI4YS43NDguNzQ4IDAgMCAwIDAgMS4wNmwzLjQ0IDMuNDRhLjc1Ljc1IDAgMCAwIDEuMDYuMDAybDcuMjgtNy4yOCA3LjI4MiA3LjI4Yy4wNzguMDc4LjE3LjEzNS4yNjguMTcuMjY3LjEuNTguMDQ0Ljc5My0uMTdsMy40NC0zLjQ0YS43NS43NSAwIDAgMCAwLTEuMDZ6Ii8+PC9zdmc+");background-size:13px}.IconButton__icon-accept___2D6M9{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjAuMjUgM0w5IDE0LjI1IDMuNzUgOSAwIDEyLjc1bDkgOSAxNS0xNXoiLz48L3N2Zz4=");background-size:13px}.IconButton__icon-align_left___1S9rt{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KPHBhdGggZD0iTTkuOSwxMGgtOFY4LjdoOFYxMHogTTkuOSwzLjNoLTh2MS4zaDhWMy4zeiBNMS44LDEyLjdoMTIuM3YtMS4zSDEuOFYxMi43eiBNMS44LDZ2MS4zaDEyLjNWNkgxLjh6Ii8+Cjwvc3ZnPgo=")}.IconButton__icon-align_center___KBWGR{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KPHBhdGggZD0iTTEyLDQuN0g0VjMuM2g4VjQuN3ogTTEyLDguN0g0VjEwaDhWOC43eiBNMS44LDZ2MS4zaDEyLjNWNkgxLjh6IE0xLjgsMTIuN2gxMi4zdi0xLjNIMS44VjEyLjd6Ii8+Cjwvc3ZnPgo=")}.IconButton__icon-align_right___1bWGZ{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KPHBhdGggZD0iTTEuOCwxMS4zaDEyLjN2MS4zSDEuOFYxMS4zeiBNMTQuMiwzLjNoLTh2MS4zaDhWMy4zeiBNNi4xLDguN1YxMGg4VjguN0g2LjF6IE0xLjgsNnYxLjNoMTIuM1Y2SDEuOHoiLz4KPC9zdmc+Cg==")}.IconButton__icon-align_justify___3eBV5{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KPHBhdGggZD0iTTEuOCw4LjdoMTIuM1YxMEgxLjhWOC43eiBNMS44LDEyLjdoMTIuM3YtMS4zSDEuOFYxMi43eiBNMS44LDcuM2gxMi4zVjZIMS44VjcuM3ogTTEuOCwzLjN2MS4zaDEyLjNWMy4zSDEuOHoiLz4KPC9zdmc+Cg==")}',""]),e.locals={root:"IconButton__root___3tqZW",icon:"IconButton__icon___3YgOS",isActive:"IconButton__isActive___2Ey8p","icon-undo":"IconButton__icon-undo___EQSRP IconButton__icon___3YgOS","icon-redo":"IconButton__icon-redo___30MVz IconButton__icon___3YgOS","icon-unordered-list-item":"IconButton__icon-unordered-list-item___Pvkrr IconButton__icon___3YgOS","icon-ordered-list-item":"IconButton__icon-ordered-list-item___2rzD0 IconButton__icon___3YgOS","icon-blockquote":"IconButton__icon-blockquote___17VSX IconButton__icon___3YgOS","icon-bold":"IconButton__icon-bold___2zl9t IconButton__icon___3YgOS","icon-italic":"IconButton__icon-italic___2hHzc IconButton__icon___3YgOS","icon-underline":"IconButton__icon-underline___2EmZJ IconButton__icon___3YgOS","icon-strikethrough":"IconButton__icon-strikethrough___QtE2X IconButton__icon___3YgOS","icon-code":"IconButton__icon-code___3F1pe IconButton__icon___3YgOS","icon-link":"IconButton__icon-link___2umEl IconButton__icon___3YgOS","icon-remove-link":"IconButton__icon-remove-link___j61pw IconButton__icon___3YgOS","icon-image":"IconButton__icon-image___1gW7U IconButton__icon___3YgOS","icon-cancel":"IconButton__icon-cancel___fx4TT IconButton__icon___3YgOS","icon-accept":"IconButton__icon-accept___2D6M9 IconButton__icon___3YgOS","icon-align_left":"IconButton__icon-align_left___1S9rt IconButton__icon___3YgOS","icon-align_center":"IconButton__icon-align_center___KBWGR IconButton__icon___3YgOS","icon-align_right":"IconButton__icon-align_right___1bWGZ IconButton__icon___3YgOS","icon-align_justify":"IconButton__icon-align_justify___3eBV5 IconButton__icon___3YgOS"}},function(t,e,n){t.exports={default:n(295),__esModule:!0}},function(t,e,n){n(296),t.exports=n(4).Object.keys},function(t,e,n){var r=n(39),i=n(43);n(101)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(55),n(45),t.exports=n(298)},function(t,e,n){var r=n(26),i=n(92);t.exports=n(4).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){var r=n(300);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0
2,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,".ButtonGroup__root___3lEAn{display:inline-block;vertical-align:top;margin:0 5px 5px 0;white-space:nowrap}.ButtonGroup__root___3lEAn:last-child{margin-right:0}.ButtonGroup__root___3lEAn>div>button{margin-right:0;border-radius:0}.ButtonGroup__root___3lEAn>div>button:focus{position:relative;z-index:1}.ButtonGroup__root___3lEAn>div:first-child>button{border-top-left-radius:2px;border-bottom-left-radius:2px}.ButtonGroup__root___3lEAn>div+div>button{border-left-width:0}.ButtonGroup__root___3lEAn>div:last-child>button{border-top-right-radius:2px;border-bottom-right-radius:2px}",""]),e.locals={root:"ButtonGroup__root___3lEAn"}},function(t,e,n){var r=n(302);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,'.InputPopover__root___3Hpj9{position:absolute;top:calc(100% + 5px);left:0;width:260px;background:none #fdfdfd;background:linear-gradient(180deg,#fdfdfd 0,#f6f7f8);border:1px solid #999;border-radius:2px;box-sizing:border-box;padding:4px}.InputPopover__root___3Hpj9:before{top:-10px;border:5px solid transparent;border-bottom-color:#999}.InputPopover__root___3Hpj9:after,.InputPopover__root___3Hpj9:before{content:"";display:block;position:absolute;width:0;height:0;left:10px}.InputPopover__root___3Hpj9:after{top:-9px;border:5px solid transparent;border-bottom-color:#fdfdfd}.InputPopover__inner___32V5P{display:flex}.InputPopover__input___264Za{display:block;flex:1 0 auto;height:30px;background:none #fff;border:1px solid #999;border-radius:2px;box-sizing:border-box;padding:2px 6px;font-family:inherit;font-size:inherit;line-height:24px}.InputPopover__inner___32V5P .InputPopover__buttonGroup___2c3Sl{flex:0 1 auto;margin-left:4px;margin-bottom:0}.InputPopover__checkOption___32S87{margin:8px 2px}.InputPopover__checkOption___32S87 input{margin-right:8px;cursor:pointer}',""]),e.locals={root:"InputPopover__root___3Hpj9",inner:"InputPopover__inner___32V5P",input:"InputPopover__input___264Za",buttonGroup:"InputPopover__buttonGroup___2c3Sl",checkOption:"InputPopover__checkOption___32S87"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(n(304)),o=r(n(138));e.default=function(t,e){if(Array.isArray(t))return t;if((0,i.default)(Object(t)))return function(t,e){var n=[],r=!0,i=!1,s=void 0;try{for(var a,u=(0,o.default)(t);!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,s=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw s}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,n){t.exports={default:n(305),__esModule:!0}},function(t,e,n){n(55),n(45),t.exports=n(306)},function(t,e,n){var r=n(93),i=n(6)("iterator"),o=n(41);t.exports=n(4).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){var r=n(308);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,'.Dropdown__root___3ALmx{display:inline-block;position:relative;line-height:22px;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Dropdown__root___3ALmx select{position:relative;z-index:2;display:inline-block;box-sizing:border-box;height:30px;line-height:inherit;font-family:inherit;font-size:inherit;color:inherit;margin:0;padding:0;border:4px solid transparent;border-right-width:10px;border-left-width:5px;background:none transparent;opacity:0;cursor:pointer}.Dropdown__root___3ALmx .Dropdown__value___34Py9{display:block;position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;line-height:23px;border:1px solid #999;border-radius:2px;padding:3px;padding-right:33px;padding-left:12px;white-space:nowrap;text-overflow:ellipsis}.Dropdown__root___3ALmx .Dropdown__value___34Py9:after,.Dropdown__root___3ALmx .Dropdown__value___34Py9:before{display:block;content:"";position:absolute;top:50%;right:10px;width:0;height:0;border:4px solid transparent}.Dropdown__root___3ALmx .Dropdown__value___34Py9:before{margin-top:-10px;border-bottom-color:#555}.Dropdown__root___3ALmx .Dropdown__value___34Py9:after{margin-top:1px;border-top-color:#555}.Dropdown__root___3ALmx select:focus+.Dropdown__value___34Py9{border-color:#66afe9}@media screen and (-webkit-min-device-pixel-ratio:0){.Dropdown__root___3ALmx select{opacity:1;color:inherit;-webkit-appearance:none;border-left-width:12px;border-right-width:35px}.Dropdown__root___3ALmx select+.Dropdown__value___34Py9{color:transparent}.Dropdown__root___3ALmx select:focus+.Dropdown__value___34Py9{border-color:#999}}',""]),e.locals={root:"Dropdown__root___3ALmx",value:"Dropdown__value___34Py9"}},function(t,e,n){var r=n(310);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,".EditorToolbar__root___3_Aqz{font-family:Helvetica,sans-serif;font-size:14px;margin:0 10px;padding:10px 0 5px;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.EditorToolbar__onBottom___1h7l0{border-top:1px solid #ddd;border-bottom:none}",""]),e.locals={root:"EditorToolbar__root___3_Aqz",onBottom:"EditorToolbar__onBottom___1h7l0"}},function(t,e,n){t.exports={default:n(312),__esModule:!0}},function(t,e,n){var r=n(4),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(314);Object.defineProperty(e,"stateToHTML",{enumerable:!0,get:function(){return function(t){return t&&t.__esModule?t:{default:t}}(r).default}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){switch(t){case g.BLOCK_TYPE.HEADER_ONE:return["h1"];case g.BLOCK_TYPE.HEADER_TWO:return["h2"];case g.BLOCK_TYPE.HEADER_THREE:return["h3"];case g.BLOCK_TYPE.HEADER_FOUR:return["h4"];case g.BLOCK_TYPE.HEADER_FIVE:return["h5"];case g.BLOCK_TYPE.HEADER_SIX:return["h6"];case g.BLOCK_TYPE.UNORDERED_LIST_ITEM:case g.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case g.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case g.BLOCK_TYPE.CODE:return["pre","code"];case g.BLOCK_TYPE.ATOMIC:return["figure"];default:return[e||"p"]}}function s(t){if(null==t)return"";var e=[],n=!0,r=!1,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(n=(o=s.next()).done);
2n=!0){var u=o.value,c=t[u];null!=c&&e.push(" "+u+'="'+a(c+"")+'"')}}catch(t){r=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return e.join("")}function a(t){return t.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")}Object.defineProperty(e,"__esModule",{value:!0});var u,c,l,f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},p=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=function(t,e){return new O(t,e).generate()};var h=r(n(315)),v=r(n(316)),y=r(n(317)),g=n(29),m=g.INLINE_STYLE.BOLD,_=g.INLINE_STYLE.CODE,b=g.INLINE_STYLE.ITALIC,S=g.INLINE_STYLE.STRIKETHROUGH,w=g.INLINE_STYLE.UNDERLINE,x="<br>",k=/^data-([a-z0-9-]+)$/,j=(i(u={},m,{element:"strong"}),i(u,_,{element:"code"}),i(u,b,{element:"em"}),i(u,S,{element:"del"}),i(u,w,{element:"u"}),u),M=[m,b,w,S,_],E=(i(c={},g.ENTITY_TYPE.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),i(c,g.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),c),N=(i(l={},g.ENTITY_TYPE.LINK,function(t,e){var n=E.hasOwnProperty(t)?E[t]:{},r=e.getData(),i={},o=!0,s=!1,a=void 0;try{for(var u,c=Object.keys(r)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value,f=r[l];n.hasOwnProperty(l)?i[n[l]]=f:k.test(l)&&(i[l]=f)}}catch(t){s=!0,a=t}finally{try{!o&&c.return&&c.return()}finally{if(s)throw a}}return i}),i(l,g.ENTITY_TYPE.IMAGE,function(t,e){var n=E.hasOwnProperty(t)?E[t]:{},r=e.getData(),i={},o=!0,s=!1,a=void 0;try{for(var u,c=Object.keys(r)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value,f=r[l];n.hasOwnProperty(l)?i[n[l]]=f:k.test(l)&&(i[l]=f)}}catch(t){s=!0,a=t}finally{try{!o&&c.return&&c.return()}finally{if(s)throw a}}return i}),l),O=function(){function t(e,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),null==n&&(n={}),this.contentState=e,this.options=n;var r=(0,h.default)(n.inlineStyles,[j,M]),i=d(r,2),o=i[0],s=i[1];this.inlineStyles=o,this.styleOrder=s}return p(t,[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var t=this.options,e=t.blockRenderers,n=t.defaultBlockTag,r=this.blocks[this.currentBlock],i=r.getType(),o=function(t){switch(t){case g.BLOCK_TYPE.UNORDERED_LIST_ITEM:return"ul";case g.BLOCK_TYPE.ORDERED_LIST_ITEM:return"ol";default:return null}}(i);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var s=null!=e&&e.hasOwnProperty(i)?e[i]:null,a=s?s(r):null;if(null!=a)return this.output.push(a),this.output.push("\n"),void(this.currentBlock+=1);this.writeStartTag(r,n),this.output.push(this.renderBlockContent(r));var u=this.getNextBlock();if(function(t){switch(t){case g.BLOCK_TYPE.UNORDERED_LIST_ITEM:case g.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(i)&&u&&u.getDepth()===r.getDepth()+1){this.output.push("\n");var c=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(u.getDepth()),this.wrapperTag=c,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(r,n)}},{key:"processBlocksAtDepth",value:function(t){for(var e=this.blocks[this.currentBlock];e&&e.getDepth()===t;)this.processBlock(),e=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(t,e){var n=o(t.getType(),e),r=void 0;if(this.options.blockStyleFn){var i=this.options.blockStyleFn(t)||{},a=i.attributes,u=i.style;if(a=(0,v.default)(a),null!=u){var c=(0,y.default)(u);a=null==a?{style:c}:f({},a,{style:c}
2)}r=s(a)}else r="";var l=!0,d=!1,p=void 0;try{for(var h,g=n[Symbol.iterator]();!(l=(h=g.next()).done);l=!0){var m=h.value;this.output.push("<"+m+r+">")}}catch(t){d=!0,p=t}finally{try{!l&&g.return&&g.return()}finally{if(d)throw p}}}},{key:"writeEndTag",value:function(t,e){var n=o(t.getType(),e);if(1===n.length)this.output.push("</"+n[0]+">\n");else{var r=[],i=!0,s=!1,a=void 0;try{for(var u,c=n[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;r.unshift("</"+l+">")}}catch(t){s=!0,a=t}finally{try{!i&&c.return&&c.return()}finally{if(s)throw a}}this.output.push(r.join("")+"\n")}}},{key:"openWrapperTag",value:function(t){this.wrapperTag=t,this.indent(),this.output.push("<"+t+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var t=this.wrapperTag;t&&(this.indentLevel-=1,this.indent(),this.output.push("</"+t+">\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(t){var e=this,n=t.getType(),r=t.getText();if(""===r)return x;r=this.preserveWhitespace(r);var i=t.getCharacterList();return(0,g.getEntityRanges)(r,i).map(function(t){var r=d(t,2),i=r[0],o=r[1].map(function(t){var r=d(t,2),i=r[0],o=r[1],a=function(t){return t.split("&").join("&").split("<").join("<").split(">").join(">").split("Â ").join(" ").split("\n").join(x+"\n")}(i),u=!0,c=!1,l=void 0;try{for(var p,h=e.styleOrder[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var m=p.value;if((m!==_||n!==g.BLOCK_TYPE.CODE)&&o.has(m)){var b=e.inlineStyles[m],S=b.element,w=b.attributes,k=b.style;if(null==S&&(S="span"),w=(0,v.default)(w),null!=k){var j=(0,y.default)(k);w=null==w?{style:j}:f({},w,{style:j})}a="<"+S+s(w)+">"+a+"</"+S+">"}}}catch(t){c=!0,l=t}finally{try{!u&&h.return&&h.return()}finally{if(c)throw l}}return a}).join(""),a=i?e.contentState.getEntity(i):null,u=null==a?null:a.getType().toUpperCase(),c=void 0;if(null!=a&&e.options.entityStyleFn&&(c=e.options.entityStyleFn(a))){var l=c,p=l.element,h=l.attributes,m=l.style;if(null==p&&(p="span"),h=(0,v.default)(h),null!=m){var b=(0,y.default)(m);h=null==h?{style:b}:f({},h,{style:b})}return"<"+p+s(h)+">"+o+"</"+p+">"}return null!=u&&u===g.ENTITY_TYPE.LINK?"<a"+s(N.hasOwnProperty(u)?N[u](u,a):null)+">"+o+"</a>":null!=u&&u===g.ENTITY_TYPE.IMAGE?"<img"+s(N.hasOwnProperty(u)?N[u](u,a):null)+"/>":o}).join("")}},{key:"preserveWhitespace",value:function(t){for(var e=t.length,n=new Array(e),r=0;r<e;r++)" "!==t[r]||0!==r&&r!==e-1&&" "!==t[r-1]?n[r]=t[r]:n[r]="Â ";return n.join("")}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default=function(t,e){if(null==t)return e;var n=i(e,2),o=n[0],s=n[1],a=r({},o),u=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(s)),c=!0,l=!1,f=void 0;try{for(var d,p=Object.keys(t)[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var h=d.value;if(o.hasOwnProperty(h)){var v=o[h];a[h]=r({},v,t[h])}else a[h]=t[h],u.push(h)}}catch(t){l=!0,f=t}finally{try{!c&&p.return&&p.return()}finally{if(l)throw f}}return[a,u]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};e.default=function(t){if(null==t)return t;var e={},n=!1,i=!0,o=!1,s=void 0;try{for(var a,u=Object.keys(t)[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value,l=c;r.hasOwnProperty(c)&&(l=r[c],n=!0),e[l]=t[c]}}catch(t){o=!0,s=t}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}return n?e:t}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=/^(moz|ms|o|webkit)-/,i=/^\d+$/,o=/([A-Z])/g,s={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};e.default=function(t){return Object.keys(t).map(function(e){var n=function(t,e){var n=void 0;return"string"==typeof e?n=i.test(e):(n=!0,e=String(e)),n&&"0"!==e&&!0!==s[t]?e+"px":e}(e,t[e]);return function(t){return t.replace(o,"-$1").toLowerCase().replace(r,"-$1-")}(e)+": "+n}).join("; ")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(319);Object.defineProperty(e,"stateFromHTML",{enumerable:!0,get:function(){return function(t){return t&&t.__esModule?t:{default:t}}(r).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e||{},o=n.parser,s=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(n,["parser"]);null==o&&(o=i.default);var a=o(t);return(0,r.stateFromElement)(a,s)};var r=n(139),i=function(t){return t&&t.__esModule?t:{default:t}}(n(324))},function(t,e,n){"use strict";function r(t,e){var n=function(t,e){for(;" "===t.charAt(0);)t=t.slice(1),e=e.slice(1);return{text:t,characterMeta:e}}(t=t.replace(/[ \t\n]/g," "),e),r=function(t,e){for(;" "===t.slice(-1);)t=t.slice(0,-1),e=e.slice(0,-1);return{text:t,characterMeta:e}}(t=n.text,e=n.characterMeta);t=r.text,e=r.characterMeta;for(var i=t.length;i--;)" "===t.charAt(i)&&" "===t.charAt(i-1)&&(t=t.slice(0,i)+t.slice(i+1),e=e.slice(0,i).concat(e.slice(i+1)));var o=(0,s.default)({text:t,characterMeta:e},v+" ",v);t=o.text,e=o.characterMeta;var a=(0,s.default)({text:t,characterMeta:e}," "+v,v);return{text:t=a.text,characterMeta:e=a.characterMeta}}function i(t,e){return new b(e).process(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.stateFromElement=i;var s=function(t){return t&&t.__esModule?t:{default:t}}(n(321)),a=n(10),u=n(90),c=n(29),l=n(140),f=n(323),d=(0,u.OrderedSet)(),p=new a.ContentBlock({key:(0,a.genKey)(),text:"",type:c.BLOCK_TYPE.UNSTYLED,characterList:(0,u.List)(),depth:0}),h=/(\r\n|\r|\n)/g,v="\r",y=/^data-([a-z0-9-]+)$/,g={a:{href:"url",rel:"rel",target:"target",title:"title"},img:{src:"src",alt:"alt"}},m=function(t,e){var n={};if(g.hasOwnProperty(t))for(var r=g[t],i=0;i<e.attributes.length;i++){var o=e.attributes[i],s=o.name,a=o.value;if(null!=a)if(r.hasOwnProperty(s)){n[r[s]]=a}else y.test(s)&&(n[s]=a)}return n},_={a:function(t,e,n){var r=m(e,n);if(null!=r.url)return t.createEntity(c.ENTITY_TYPE.LINK,r)},img:function(t,e,n){var r=m(e,n);if(null!=r.src)return t.createEntity(c.ENTITY_TYPE.IMAGE,r)}},b=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.inlineCreators={Style:function(t){return{type:"STYLE",style:t}},Entity:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return{type:"ENTITY",entityKey:e.createEntity(t,n,r)}}},this.options=n,this.contentStateForEntities=a.ContentState.createFromBlockArray([]),this.blockStack=[],this.blockList=[],this.depth=0}return o(t,[{key:"process",value:function(t){this.processBlockElement(t);var e=[];return this.blockList.forEach(function(t){var n=function(t){var e="",n=(0,u.Seq)();return t.forEach(function(t){e+=t.text,n=n.concat(t.characterMeta)}),{text:e,characterMeta:n}}(t.textFragments),i=n.text,o=n.characterMeta,s=!1;if(i===v&&(s=!0,i=""),"pre"===t.tagName){var c=function(t,e){return"\n"===t.charAt(0)&&(t=t.slice(1),e=e.slice(1)),{text:t,characterMeta:e}}(i,o);i=c.text,o=c.characterMeta}else{var l=r(i,o);i=l.text,o=l.characterMeta}((i=i.split(v).join("\n")).length||s)&&e.push(new a.ContentBlock({key:(0,a.genKey)(),text:i,type:t.type,characterList:o.toList(),depth:t.depth,data:t.data?(0,u.Map)(t.data):(0,u.Map)()}))}),e.length||(e=[p]),a.ContentState.createFromBlockArray(e,this.contentStateForEntities.getEntity
2Map())}},{key:"getBlockTypeFromTagName",value:function(t){var e=this.options.blockTypes;if(e&&e[t])return e[t];switch(t){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?c.BLOCK_TYPE.ORDERED_LIST_ITEM:c.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return c.BLOCK_TYPE.BLOCKQUOTE;case"h1":return c.BLOCK_TYPE.HEADER_ONE;case"h2":return c.BLOCK_TYPE.HEADER_TWO;case"h3":return c.BLOCK_TYPE.HEADER_THREE;case"h4":return c.BLOCK_TYPE.HEADER_FOUR;case"h5":return c.BLOCK_TYPE.HEADER_FIVE;case"h6":return c.BLOCK_TYPE.HEADER_SIX;case"pre":return c.BLOCK_TYPE.CODE;case"figure":return c.BLOCK_TYPE.ATOMIC;default:return c.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(t){if(t){var e=this.options.customBlockFn,n=t.nodeName.toLowerCase(),r=void 0,i=void 0;if(e){var o=e(t);null!=o&&(r=o.type,i=o.data)}var s=!0;null==r&&(s=!1,r=this.getBlockTypeFromTagName(n));var a=function(t){switch(t){case c.BLOCK_TYPE.UNORDERED_LIST_ITEM:case c.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(r),u=!f.SPECIAL_ELEMENTS.hasOwnProperty(n);if(!s&&!function(t){return t!==c.BLOCK_TYPE.UNSTYLED}(r)){var l=this.blockStack.slice(-1)[0];l&&(r=l.type)}var p={tagName:n,textFragments:[],type:r,styleStack:[d],entityStack:[null],depth:a?this.depth:0,data:i};u&&(this.blockList.push(p),a&&(this.depth+=1)),this.blockStack.push(p),null!=t.childNodes&&Array.from(t.childNodes).forEach(this.processNode,this),this.blockStack.pop(),u&&a&&(this.depth-=1)}}},{key:"processInlineElement",value:function(t){var e=t.nodeName.toLowerCase();if("br"!==e){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],i=n.entityStack.slice(-1)[0],o=this.options.customInlineFn,s=o?o(t,this.inlineCreators):null;if(null!=s)switch(s.type){case"STYLE":r=r.add(s.style);break;case"ENTITY":i=s.entityKey}else r=function(t,e,n){switch(e){case"b":case"strong":return t.add(c.INLINE_STYLE.BOLD);case"i":case"em":return t.add(c.INLINE_STYLE.ITALIC);case"u":case"ins":return t.add(c.INLINE_STYLE.UNDERLINE);case"code":return t.add(c.INLINE_STYLE.CODE);case"s":case"del":return t.add(c.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[e]?t.add(n[e]):t}}(r,e,this.options.elementStyles),_.hasOwnProperty(e)&&(i=_[e](this,e,t)||i);n.styleStack.push(r),n.entityStack.push(i),null!=t.childNodes&&Array.from(t.childNodes).forEach(this.processNode,this),f.SELF_CLOSING_ELEMENTS.hasOwnProperty(e)&&this.processText("Â "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(v)}},{key:"processTextNode",value:function(t){var e=t.nodeValue;e=(e=e.replace(h,"\n")).split("â").join(v),this.processText(e)}},{key:"processText",value:function(t){var e=this.blockStack.slice(-1)[0],n=e.styleStack.slice(-1)[0],r=e.entityStack.slice(-1)[0],i=a.CharacterMetadata.create({style:n,entity:r}),o=(0,u.Repeat)(i,t.length);e.textFragments.push({text:t,characterMeta:o})}},{key:"processNode",value:function(t){if(t.nodeType===l.NODE_TYPE_ELEMENT){var e=t,n=e.nodeName.toLowerCase();f.INLINE_ELEMENTS.hasOwnProperty(n)?this.processInlineElement(e):this.processBlockElement(e)}else t.nodeType===l.NODE_TYPE_TEXT&&this.processTextNode(t)}},{key:"createEntity",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return this.contentStateForEntities=this.contentStateForEntities.createEntity(t,n,e),this.contentStateForEntities.getLastCreatedEntityKey()}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t,e){for(var n=t.slice(0,0);e-- >0;)n=n.concat(t);return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){for(var i=t.text,o=t.characterMeta,s=e.length,a=n.length,u=[],c=o.slice(0,0),l=0,f=i.indexOf(e);-1!==f;)u.push(i.slice(l,f)+n),c=c.concat(o.slice(l,f),r(o.slice(f,f+1),a)),l=f+s,f=i.indexOf(e,l);return u.push(i.slice(l)),c=c.concat(o.slice(l)),{text:u.join(""),characterMeta:c}}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
vendor: 4,380 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=[],l=e.NODE_TYPE_ELEMENT=1,f=e.NODE_TYPE_TEXT=3,d=e.NODE_TYPE_FRAGMENT=11,p=e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},h=e.Node=function t(){s(this,t)};e.TextNode=function(t){function e(t){s(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return n.nodeType=f,n.nodeName="#text",n.nodeValue=t,n}return o(e,t),u(e,[{key:"toString",value:function(){return function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}(this.nodeValue)}}]),e}(h),e.ElementNode=function(t){function e(t,n,r){s(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));null==n&&(n=c);var a=!0===p[t];return o.nodeType=l,o._name=t.toLowerCase(),o.attributes=n,o._attrMap=new Map(n.map(function(t){return[t.name,t]})),o.nodeName=t.toUpperCase(),o.childNodes=[],o._isSelfClosing=a,!a&&r&&r.forEach(o.appendChild,o),o}return o(e,t),u(e,[{key:"appendChild",value:function(t){if(t.nodeType===d){if(null!=t.childNodes){var e,n=t.childNodes;(e=this.childNodes).push.apply(e,r(n))}}else this.childNodes.push(t)}},{key:"getAttribute",value:function(t){var e=this._attrMap.get(t);if(e)return e.value}},{key:"toString",value:function(t){var e=[],n=!0,r=!1,i=void 0;try{for(var o,s=this.attributes[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value,c=u.name,l=u.value;e.push(c+(l?'="'+a(l)+'"':""))}}catch(t){r=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}var f=e.length?" "+e.join(" "):"";if(this._isSelfClosing)return"<"+this._name+f+(t?"/>":">");var d=this.childNodes.map(function(e){return e.toString(t)}).join("");return"<"+this._name+f+">"+d+"</"+this._name+">"}},{key:"tagName",get:function(){return this.nodeName}},{key:"className",get:function(){return this.getAttribute("class")||""}}]),e}(h),e.FragmentNode=function(t){function e(t){s(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return n.nodeType=d,n.childNodes=[],t&&t.forEach(n.appendChild,n),n}return o(e,t),u(e,[{key:"appendChild",value:function(t){if(t.nodeType===d){if(null!=t.childNodes){var e,n=t.childNodes;(e=this.childNodes).push.apply(e,r(n))}}else this.childNodes.push(t)}},{key:"toString",value:function(t){return this.childNodes.map(function(e){return e.toString(t)}).join("")}}]),e}(h)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INLINE_ELEMENTS={a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1,acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1},e.SPECIAL_ELEMENTS={area:1,base:1,br:1,col:1,colgroup:1,command:1,dl:1,embed:1,head:1,hgroup:1,hr:1,iframe:1,img:1,input:1,keygen:1,link:1,meta:1,ol:1,optgroup:1,option:1,param:1,script:1,select:1,source:1,style:1,table:1,tbody:1,textarea:1,tfoot:1,thead:1,title:1,tr:1,track:1,ul:1,wbr:1,basefont:1,dialog:1,dir:1,isindex:1},e.SELF_CLOSING_ELEMENTS={img:1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0;return"undefined"!=typeof DOMParser?e=(new DOMParser).parseFromString(t,"text/html"):(e=document.implementation.createHTMLDocument("")).documentElement&&(e.documentElement.innerHTML=t),e.body||e.createElement("body")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(326);Object.defineProperty(e,"stateToMarkdown",{enumerable:!0,get:function(){return function(t){return t&&t.__esModule?t:{default:t}}(r).default}})},function(t,e,n){"use strict";function r(t){switch(t){case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:case u.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function i(t){return t.replace(/\)/g,"%29")}function o(t){return t.replace(/"/g,'\\"')}
2Object.defineProperty(e,"__esModule",{value:!0});var s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=function(t){return new h(t).generate()};var u=n(29),c=u.INLINE_STYLE.BOLD,l=u.INLINE_STYLE.CODE,f=u.INLINE_STYLE.ITALIC,d=u.INLINE_STYLE.STRIKETHROUGH,p=u.INLINE_STYLE.UNDERLINE,h=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.contentState=e}return a(t,[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlockMap().toArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.listItemCounts={};this.currentBlock<this.totalBlocks;)this.processBlock();return this.output.join("")}},{key:"processBlock",value:function(){var t=this.blocks[this.currentBlock],e=t.getType();switch(e){case u.BLOCK_TYPE.HEADER_ONE:this.insertLineBreaks(1),this.output.push("# "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.HEADER_TWO:this.insertLineBreaks(1),this.output.push("## "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.HEADER_THREE:this.insertLineBreaks(1),this.output.push("### "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.HEADER_FOUR:this.insertLineBreaks(1),this.output.push("#### "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.HEADER_FIVE:this.insertLineBreaks(1),this.output.push("##### "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.HEADER_SIX:this.insertLineBreaks(1),this.output.push("###### "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.UNORDERED_LIST_ITEM:var n=t.getDepth(),i=this.getLastBlock(),o=i?i.getType():null,
2s=i&&r(o)?i.getDepth():null;o!==e&&s!==n-1&&(this.insertLineBreaks(1),o===u.BLOCK_TYPE.ORDERED_LIST_ITEM&&this.insertLineBreaks(1));var a=" ".repeat(4*t.depth);this.output.push(a+"- "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.ORDERED_LIST_ITEM:var c=t.getDepth(),l=this.getLastBlock(),f=l?l.getType():null,d=l&&r(f)?l.getDepth():null;f!==e&&d!==c-1&&(this.insertLineBreaks(1),f===u.BLOCK_TYPE.UNORDERED_LIST_ITEM&&this.insertLineBreaks(1));var p=" ".repeat(4*c),h=this.getListItemCount(t)%10;this.output.push(p+(h+". ")+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.BLOCKQUOTE:this.insertLineBreaks(1),this.output.push(" > "+this.renderBlockContent(t)+"\n");break;case u.BLOCK_TYPE.CODE:this.insertLineBreaks(1),this.output.push(" "+this.renderBlockContent(t)+"\n");break;default:this.insertLineBreaks(1),this.output.push(this.renderBlockContent(t)+"\n")}this.currentBlock+=1}},{key:"getLastBlock",value:function(){return this.blocks[this.currentBlock-1]}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"getListItemCount",value:function(t){for(var e=t.getType(),n=t.getDepth(),i=this.currentBlock-1,o=this.blocks[i];o&&r(o.getType())&&o.getDepth()>n;)i-=1,o=this.blocks[i];return o&&o.getType()===e&&o.getDepth()===n||(this.listItemCounts[n]=0),this.listItemCounts[n]=this.listItemCounts[n]+1}},{key:"insertLineBreaks",value:function(){this.currentBlock>0&&this.output.push("\n")}},{key:"renderBlockContent",value:function(t){var e=this.contentState,n=t.getType(),r=t.getText();if(""===r)return"â";var a=t.getCharacterList();return(0,u.getEntityRanges)(r,a).map(function(t){var r=s(t,2),a=r[0],h=r[1].map(function(t){var e=s(t,2),r=e[0],i=e[1];if(!r)return"";var o=function(t){return t.replace(/[*_`]/g,"\\$&")}(r);return i.has(c)&&(o="**"+o+"**"),i.has(p)&&(o="++"+o+"++"),i.has(f)&&(o="_"+o+"_"),i.has(d)&&(o="~~"+o+"~~"),i.has(l)&&(o=n===u.BLOCK_TYPE.CODE?o:"`"+o+"`"),o}).join(""),v=a?e.getEntity(a):null;if(null!=v&&v.getType()===u.ENTITY_TYPE.LINK){var y=v.getData(),g=y.url||"",m=y.title?' "'+o(y.title)+'"':"";return"["+h+"]("+i(g)+m+")"}if(null!=v&&v.getType()===u.ENTITY_TYPE.IMAGE){var _=v.getData(),b=_.src||"";return"+")"}return h}).join("")}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(328);Object.defineProperty(e,"stateFromMarkdown",{enumerable:!0,get:function(){return r(i).default}});var o=n(141);Object.defineProperty(e,"MarkdownParser",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=r.default.parse(t,{getAST:!0});return(0,i.stateFromElement)(n,e)};var r=function(t){return t&&t.__esModule?t:{default:t}}(n(141)),i=n(139)},function(t,e,n){var r=n(330);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,".ImageSpan__root___RoAqL{background-repeat:no-repeat;display:inline-block;overflow:hidden;cursor:pointer}.ImageSpan__resize___1Hx5M{border:1px dashed #78a300;position:relative;max-width:100%;display:inline-block;line-height:0;top:-1px;left:-1px}.ImageSpan__resizeHandle___18rou{cursor:nwse-resize;position:absolute;z-index:2;line-height:1;bottom:-4px;right:-5px;border:1px solid #fff;background-color:#78a300;width:8px;height:8px}",""]),e.locals={root:"ImageSpan__root___RoAqL",resize:"ImageSpan__resize___1Hx5M",resizeHandle:"ImageSpan__resizeHandle___18rou"}},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!function(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,s,a,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((e
vendor: 7,798 bytes, line 2
2=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(o(n=this._events[t]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(i(n))for(a=Array.prototype.slice.call(arguments,1),s=(c=n.slice()).length,u=0;u<s;u++)c[u].apply(this,a);return!0},n.prototype.addListener=function(t,e){var s;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?i(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,i(this._events[t])&&!this._events[t].warned&&(s=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,o,s,a;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(s=(n=this._events[t]).length,o=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(i(n)){for(a=s;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){var r=n(333);"string"==typeof r&&(r=[[t.i,r,""]]);var i={transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e){t.exports='/**\n * We inherit the height of the container by default\n */\n\n.DraftEditor-root,\n.DraftEditor-editorContainer,\n.public-DraftEditor-content {\n height: inherit;\n text-align: initial;\n}\n\n.DraftEditor-root {\n position: relative;\n}\n\n/**\n * Zero-opacity background used to allow focus in IE. Otherwise, clicks\n * fall through to the placeholder.\n */\n\n.DraftEditor-editorContainer {\n background-color: rgba(255, 255, 255, 0);\n /* Repair mysterious missing Safari cursor */\n border: 1px solid transparent;\n position: relative;\n z-index: 1;\n}\n\n.public-DraftEditor-content {\n outline: none;\n white-space: pre-wrap;\n}\n\n.public-DraftEditor-block {\n position: relative;\n}\n\n.DraftEditor-alignLeft .public-DraftEditor-block {\n text-align: left;\n}\n\n.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root {\n left: 0;\n text-align: left;\n}\n\n.DraftEditor-alignCenter .public-DraftEditor-block {\n text-align: center;\n}\n\n.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root {\n margin: 0 auto;\n text-align: center;\n width: 100%;\n}\n\n.DraftEditor-alignRight .public-DraftEditor-block {\n text-align: right;\n}\n\n.DraftEditor-alignRight .public-DraftEditorPlaceholder-root {\n right: 0;\n text-align: right;\n}\n/**\n * @providesModule DraftEditorPlaceholder\n */\n\n.public-DraftEditorPlaceholder-root {\n color: #9197a3;\n position: absolute;\n z-index: 0;\n}\n\n.public-DraftEditorPlaceholder-hasFocus {\n color: #bdc1c9;\n}\n\n.DraftEditorPlaceholder-hidden {\n display: none;\n}\n/**\n * @providesModule DraftStyleDefault\n */\n\n.public-DraftStyleDefault-block {\n position: relative;\n white-space: pre-wrap;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-ltr {\n direction: ltr;\n text-align: left;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-rtl {\n direction: rtl;\n text-align: right;\n}\n\n/**\n * These rules provide appropriate text direction for counter pseudo-elements.\n */\n\n/* @noflip */\n\n.public-DraftStyleDefault-listLTR {\n direction: ltr;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-listRTL {\n direction: rtl;\n}\n\n/**\n * Default spacing for list container elements. Override with CSS as needed.\n */\n\n.public-DraftStyleDefault-ul,\n.public-DraftStyleDefault-ol {\n margin: 16px 0;\n padding: 0;\n}\n\n/**\n * Default counters and styles are provided for five levels of nesting.\n * If you require nesting beyond that level, you should use your own CSS\n * classes to do so. If you care about handling RTL languages, the rules you\n * create should look a lot like these.\n */\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR {\n margin-left: 1.5em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL {\n margin-right: 1.5em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR {\n margin-left: 3em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL {\n margin-right: 3em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR {\n margin-left: 4.5em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL {\n margin-right: 4.5em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR {\n margin-left: 6em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL {\n margin-right: 6em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR {\n margin-left: 7.5em;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL {\n margin-right: 7.5em;\n}\n\n/**\n * Only use `square` list-style after the first two levels.\n */\n\n.public-DraftStyleDefault-unorderedListItem {\n list-style-type: square;\n position: relative;\n}\n\n.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0 {\n list-style-type: disc;\n}\n\n.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1 {\n list-style-type: circle;\n}\n\n/**\n * Ordered list item counters are managed with CSS, since all list nesting is\n * purely visual.\n */\n\n.public-DraftStyleDefault-orderedListItem {\n list-style-type: none;\n position: relative;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before {\n left: -36px;\n position: absolute;\n text-align: right;\n width: 30px;\n}\n\n/* @noflip */\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before {\n position: absolute;\n right: -36px;\n text-align: left;\n width: 30px;\n}\n\n/**\n * Counters are reset in JavaScript. If you need different c
2ounter styles,\n * override these rules. If you need more nesting, create your own rules to\n * do so.\n */\n\n.public-DraftStyleDefault-orderedListItem:before {\n content: counter(ol0) ". ";\n counter-increment: ol0;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before {\n content: counter(ol1) ". ";\n counter-increment: ol1;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before {\n content: counter(ol2) ". ";\n counter-increment: ol2;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before {\n content: counter(ol3) ". ";\n counter-increment: ol3;\n}\n\n.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before {\n content: counter(ol4) ". ";\n counter-increment: ol4;\n}\n\n.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset {\n counter-reset: ol0;\n}\n\n.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset {\n counter-reset: ol1;\n}\n\n.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset {\n counter-reset: ol2;\n}\n\n.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset {\n counter-reset: ol3;\n}\n\n.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset {\n counter-reset: ol4;\n}\n'},function(t,e,n){var r=n(335);"string"==typeof r&&(r=[[t.i,r,""]]);var i={sourceMap:!0,transform:void 0};n(19)(r,i),r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(24)(void 0)).push([t.i,".RichTextEditor__root___2QXK-{background:#fff;border:1px solid #ddd;border-radius:3px;font-family:Georgia,serif;font-size:14px}.RichTextEditor__editor___1QqIU{cursor:text;font-size:16px}.text-align--center .public-DraftStyleDefault-ltr{text-align:center}.text-align--right .public-DraftStyleDefault-ltr{text-align:right}.text-align--justify .public-DraftStyleDefault-ltr{text-align:justify}.RichTextEditor__editor___1QqIU .public-DraftEditor-content,.RichTextEditor__editor___1QqIU .public-DraftEditorPlaceholder-root{margin:0;padding:9px}.RichTextEditor__editor___1QqIU .public-DraftEditor-content{overflow:auto}.RichTextEditor__hidePlaceholder___3WLid .public-DraftEditorPlaceholder-root{display:none}.RichTextEditor__editor___1QqIU .RichTextEditor__paragraph___3NTf9,.RichTextEditor__editor___1QqIU pre{margin:14px 0}.RichTextEditor__editor___1QqIU .RichTextEditor__codeBlock____KD4Q{background-color:#f3f3f3;font-family:Inconsolata,Menlo,Consolas,monospace;font-size:16px;margin:14px 0;padding:20px}.RichTextEditor__editor___1QqIU .RichTextEditor__codeBlock____KD4Q span[style]{padding:0!important}.RichTextEditor__editor___1QqIU .RichTextEditor__blockquote___1vCYl{border-left:5px solid #eee;color:#666;font-family:Hoefler Text,Georgia,serif;font-style:italic;margin:16px 0;padding:10px 20px}.RichTextEditor__editor___1QqIU .RichTextEditor__block___2Vs_D:first-child,.RichTextEditor__editor___1QqIU ol:first-child,.RichTextEditor__editor___1QqIU pre:first-child,.RichTextEditor__editor___1QqIU ul:first-child{margin-top:0}.RichTextEditor__editor___1QqIU .RichTextEditor__block___2Vs_D:last-child,.RichTextEditor__editor___1QqIU ol:last-child,.RichTextEditor__editor___1QqIU pre:last-child,.RichTextEditor__editor___1QqIU ul:last-child{margin-bottom:0}",""]),e.locals={root:"RichTextEditor__root___2QXK-",editor:"RichTextEditor__editor___1QqIU",hidePlaceholder:"RichTextEditor__hidePlaceholder___3WLid",paragraph:"RichTextEditor__paragraph___3NTf9",codeBlock:"RichTextEditor__codeBlock____KD4Q",blockquote:"RichTextEditor__blockquote___1vCYl",block:"RichTextEditor__block___2Vs_D"}}])},10188:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DOWN:()=>d,LEFT:()=>c,RIGHT:()=>l,Swipeable:()=>w,UP:()=>f,useSwipeable:()=>S});var r=n(96540),i=n(5556),o=n.n(i);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}var a={preventDefaultTouchmoveEvent:!1,delta:10,rotationAngle:0,trackMouse:!1,trackTouch:!0},u={xy:[0,0],swiping:!1,eventData:void 0,start:void 0},c="Left",l="Right",f="Up",d="Down",p="touchstart",h="touchmove",v="touchend",y="mousemove",g="mouseup";function m(t,e){if(0===e)return t;var n=Math.PI/180*e;return[t[0]*Math.cos(n)+t[1]*Math.sin(n),t[1]*Math.cos(n)-t[0]*Math.sin(n)]}function _(t,e){var n=function(e){e.touches&&e.touches.length>1||t(function(t,n){n.trackMouse&&(document.addEventListener(y,r),document.addEventListener(g,a));var i=e.touches?e.touches[0]:e,o=m([i.clientX,i.clientY],n.rotationAngle);return s({},t,u,{eventData:{initial:[].concat(o),first:!0},xy:o,start:e.timeStamp||0})})},r=function(e){t(function(t,n){if(!t.xy[0]||!t.xy[1]||e.touches&&e.touches.length>1)return t;var r=e.touches?e.touches[0]:e,i=m([r.clientX,r.clientY],n.rotationAngle),o=i[0],a=i[1],u=t.xy[0]-o,p=t.xy[1]-a,h=Math.abs(u),v=Math.abs(p),y=(e.timeStamp||0)-t.start,g=Math.sqrt(h*h+v*v)/(y||1);if(h<n.delta&&v<n.delta&&!t.swiping)return t;var _=function(t,e,n,r){return t>e?n>0?c:l:r>0?f:d}(h,v,u,p),b=s({},t.eventData,{event:e,absX:h,absY:v,deltaX:u,deltaY:p,velocity:g,dir:_});n.onSwiping&&n.onSwiping(b);var S=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+_])&&(S=!0),S&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&e.cancelable&&e.preventDefault(),s({},t,{eventData:s({},b,{first:!1}),swiping:!0})})},i=function(e){t(function(t,n){var r;return t.swiping&&(r=s({},t.eventData,{event:e}),n.onSwiped&&n.onSwiped(r),n["onSwiped"+r.dir]&&n["onSwiped"+r.dir](r)),s({},t,u,{eventData:r})})},o=function(){document.removeEventListener(y,r),document.removeEventListener(g,a)},a=function(t){o(),i(t)},_=function(t){if(t&&t.addEventListener){var e=[[p,n],[h,r],[v,i]];return e.forEach(function(e){var n=e[0],r=e[1];return t.addEventListener(n,r)}),function(){return e.forEach(function(e){var n=e[0],r=e[1];return t.removeEventListener(n,r)})}}},b={ref:function(e){null!==e&&t(function(t,n){if(t.el===e)return t;var r={};return t.el&&t.el!==e&&t.cleanUpTouch&&(t.cleanUpTouch(),r.cleanUpTouch=null),n.trackTouch&&e&&(r.cleanUpTouch=_(e)),s({},t,{el:e},r)})}};return e.trackMouse&&(b.onMouseDown=n),[b,_]}function b(t,e,n){var r={};return!e.trackTouch&&t.cleanUpTouch?(t.cleanUpTouch(),r.cleanUpTouch=null):e.trackTouch&&!t.cleanUpTouch&&t.el&&(r.cleanUpTouch=n(t.el)),s({},t,r)}function S(t){var e=t.trackMouse,n=r.useRef(s({},u,{type:"hook"})),i=r.useRef();i.current=s({},a,t);var o=r.useMemo(function(){return _(function(t){return n.current=t(n.current,i.current)},{trackMouse:e})},[e]),c=o[0],l=o[1];return n.current=b(n.current,i.current,l),c}var w=function(t){var e,n;function i(e){var n;return(n=t.call(this,e)||this)._set=function(t){n.transientState=t(n.transientState,n.props)},n.transientState=s({},u,{type:"class"}),n}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.render=function(){var t=this.props,e=t.className,n=t.style,i=t.nodeName,o=void 0===i?"div":i,a=t.innerRef,u=t.children,c=t.trackMouse,l=_(this._set,{trackMouse:c}),f=l[0],d=l[1];this.transientState=b(this.transientState,this.props,d);var p=a?function(t){return a(t),f.ref(t)}:f.ref;return r.createElement(o,s({},f,{className:e,style:n,ref:p}),u)},i}(r.PureComponent);w.propTypes={onSwiped:o().func,onSwiping:o().func,onSwipedUp:o().func,onSwipedRight:o().func,onSwipedDown:o().func,onSwipedLeft:o().func,delta:o().number,preventDefaultTouchmoveEvent:o().bool,nodeName:o().string,trackMouse:o().bool,trackTouch:o().bool,innerRef:o().func,rotationAngle:o().number},w.defaultProps=a},43591:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>k});var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&u()}function a(){s(o)}function u(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return u}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,207 bytes, line 2
2w t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},d=m(0,0,0,0);function p(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+p(t["border-"+n+"-width"])},0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=f(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=p(o)}return e}(r),o=i.left+i.right,s=i.top+i.bottom,a=p(r.width),u=p(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=h(r,"left","right")+o),Math.round(u+s)!==n&&(u-=h(r,"top","bottom")+s)),!function(t){return t===f(t).document.documentElement}(t)){var c=Math.round(a+o)-e,l=Math.round(u+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(l)&&(u-=l)}return m(i.left,i.top,a,u)}var y="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return i?y(t)?function(t){var e=t.getBBox();return m(0,0,e.width,e.height)}(t):v(t):d}function m(t,e,n,r){return{x:t,y:e,width:n,height:r}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,r,i,o,s,a,u,c=(r=(n=e).x,i=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(a.prototype),l(u,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),u);l(this,{target:t,contentRect:c})},S=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new b(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),w="undefined"!=typeof WeakMap?new WeakMap:new r,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new S(e,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){x.prototype[t]=function(){var e;return(e=w.get(this))[t].apply(e,arguments)}});const k=void 0!==o.ResizeObserver?o.ResizeObserver:x}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.